Beispiel #1
0
 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;
 }
Beispiel #3
0
        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;
 }
Beispiel #5
0
 public ImageClipboardFormatHandler(DataObjectMeister dataObject, DataFormatHandlerContext handlerContext, IHtmlMarshallingTarget editorContext, IHtmlEditorHost blogEditor)
     : base(dataObject, handlerContext, editorContext)
 {
     _blogEditor = blogEditor;
 }
Beispiel #6
0
 public ImageFileFormatHandler(DataObjectMeister dataObject, DataFormatHandlerContext handlerContext, IHtmlMarshallingTarget editorContext, IHtmlEditorHost blogEditor)
     : base(dataObject, handlerContext, editorContext, blogEditor)
 {
 }
Beispiel #7
0
 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)
        {

        }