Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

SmartContentSource Class

Base class for plugins that wish to enable the insertion of smart, two-way editable HTML content into posts. The source of content to be inserted can any or all of the following: an Insert dialog box, a URL, or Live Clipboard data.


public class abstract SmartContentSource : WriterPlugin

Property Description

ResizeCapabilities

Resize capabilities for this SmartContentSource object

Method Description

CreateContent

Create content using an Insert dialog box.

CreateContentFromLiveClipboard

Create content using the contents of a Live Clipboard XML document.

CreateContentFromUrl

Create content based on a URL.

CreateEditor

Create a new SmartContentEditor object for this content source.

GenerateEditorHtml

Generate the HTML content that represents the ISmartContent item within the post editor.

GeneratePublishHtml

Generate the HTML content that is published to the destination blog.

OnResizeComplete

Notification that the sizing of an object is complete.

OnResizeStart

Notification that the resizing of the specified ISmartContent object is about to begin.

OnResizing

Notification of real-time resizing of the object.

Implementers of this class should override the CreateContent method(s) corresponding to the content-sources they wish to support. Note also that each of the CreateContent methods has a corresponding class-level attribute that must be specified along with the override.

There is a single instance of a given SmartContentSource created for each Windows Live Writer process. The implementation of SmartContentSource objects must therefore be stateless (the context required to carry out the responsibilities of the various methods are passed as parameters to the respective methods).

Inherits from:

System.Object

WindowsLive.Writer.Api.WriterPlugin

WindowsLive.Writer.Api.SmartContentSource

Assembly: windowslive.writer.api.dll

WindowsLive.Writer.Api

Show:
© 2015 Microsoft