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.
| Method | Description |
|---|---|
|
Create content using an Insert dialog box. | |
|
Create content using the contents of a Live Clipboard XML document. | |
|
Create content based on a URL. | |
|
Create a new SmartContentEditor object for this content source. | |
|
Generate the HTML content that represents the ISmartContent item within the post editor. | |
|
Generate the HTML content that is published to the destination blog. | |
|
Notification that the sizing of an object is complete. | |
|
Notification that the resizing of the specified ISmartContent object is about to begin. | |
|
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