Windows Live
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.

Syntax

public class abstract SmartContentSource : WriterPlugin
Public Properties

Property Description

ResizeCapabilities

Resize capabilities for this SmartContentSource object

Public Methods

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 Weblog.

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.

Remarks

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

Requirements

Assembly: windowslive.writer.api.dll

Namespace

WindowsLive.Writer.Api

See Also

Other Resources

Windows Live Writer Content Source Plugin Reference

Page view tracker