internal ExtendedHtmlEditorMashallingHandler(IHtmlMarshallingTarget editorContext, IContentSourceSite sourceSite, IHtmlEditorHost blogEditor, OpenLiveWriter.Interop.Com.IDropTarget unhandledDropTarget) : base(editorContext) { _insertionSite = sourceSite; _blogEditor = blogEditor; _unhandledDropTarget = unhandledDropTarget; }
internal ExtendedHtmlEditorMashallingHandler(IHtmlMarshallingTarget editorContext, IContentSourceSite sourceSite, IHtmlEditorHost blogEditor, OpenLiveWriter.Interop.Com.IDropTarget unhandledDropTarget) : base(editorContext) { _insertionSite = sourceSite; _blogEditor = blogEditor; _unhandledDropTarget = unhandledDropTarget; }
protected bool DoInsertDataCore(List <string> files, DataAction action, MarkupPointer begin, MarkupPointer end) { IHtmlEditorHost blogEditor = _blogEditor; ImageInsertEntryPoint imageInsertEntryPoint = ImageInsertEntryPoint; EditorContext.Invoke(delegate { //hack: drive the selection textRange to the caret (before calling InsertImages) EditorContext.MarkupServices.CreateMarkupRange(begin, end).ToTextRange().select(); string[] fileArray = files.ToArray(); blogEditor.InsertImages(fileArray, ImageInsertEntryPoint.DragDrop); }); return(true); }
internal HtmlGenerator(IHtmlEditorHost editorHost) : base(editorHost.DefaultBlockElement) { _editorHost = editorHost; }
public ImageClipboardFormatHandler(DataObjectMeister dataObject, DataFormatHandlerContext handlerContext, IHtmlMarshallingTarget editorContext, IHtmlEditorHost blogEditor) : base(dataObject, handlerContext, editorContext) { _blogEditor = blogEditor; }
public ImageFileFormatHandler(DataObjectMeister dataObject, DataFormatHandlerContext handlerContext, IHtmlMarshallingTarget editorContext, IHtmlEditorHost blogEditor) : base(dataObject, handlerContext, editorContext, blogEditor) { }
public override void Dispose() { _blogEditor = null; base.Dispose(); }
internal HtmlGenerator(IHtmlEditorHost editorHost) : base(editorHost.DefaultBlockElement) { _editorHost = editorHost; }
public override void Dispose() { _blogEditor = null; base.Dispose(); }
public ImageClipboardFormatHandler(DataObjectMeister dataObject, DataFormatHandlerContext handlerContext, IHtmlMarshallingTarget editorContext, IHtmlEditorHost blogEditor) : base(dataObject, handlerContext, editorContext) { _blogEditor = blogEditor; }
public ImageFileFormatHandler(DataObjectMeister dataObject, DataFormatHandlerContext handlerContext, IHtmlMarshallingTarget editorContext, IHtmlEditorHost blogEditor) : base(dataObject, handlerContext, editorContext, blogEditor) { }