本文整理汇总了C#中IHtmlEditorComponentContext类的典型用法代码示例。如果您正苦于以下问题:C# IHtmlEditorComponentContext类的具体用法?C# IHtmlEditorComponentContext怎么用?C# IHtmlEditorComponentContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IHtmlEditorComponentContext类属于命名空间,在下文中一共展示了IHtmlEditorComponentContext类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ElementControlBehavior
public ElementControlBehavior(IHtmlEditorComponentContext editorContext)
: base(editorContext)
{
controls = new BehaviorControlCollection(this);
controls.ControlAdded += new BehaviorControlCollection.ControlEvent(controls_ControlAdded);
controls.ControlRemoved += new BehaviorControlCollection.ControlEvent(controls_ControlRemoved);
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:7,代码来源:ElementControlBehavior.cs
示例2: TableEditingContext
public TableEditingContext(IHtmlEditorComponentContext editorContext)
{
// list of cell element behaviors (demand create if necessary)
if (!editorContext.Cookies.Contains(CELL_ELEMENT_BEHAVIORS))
editorContext.Cookies[CELL_ELEMENT_BEHAVIORS] = new ArrayList();
_cellElementBehaviors = editorContext.Cookies[CELL_ELEMENT_BEHAVIORS] as ArrayList;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:7,代码来源:TableEditingContext.cs
示例3: SmartContentElementBehavior
public SmartContentElementBehavior(IHtmlEditorComponentContext editorContext, IBlogPostSidebarContext sidebarContext, IContentSourceSidebarContext contentSourceContext, SmartContentResizedListener resizedListener)
: base(editorContext)
{
_editorContext = editorContext;
_sidebarContext = sidebarContext;
_contentSourceContext = contentSourceContext;
_resizedListener = resizedListener;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:8,代码来源:SmartContentElementBehavior.cs
示例4: Initialize
public static void Initialize(IHtmlEditorComponentContext editorContext, IBlogPostImageDataContext dataContext, CreateFileCallback callback)
{
// initialize one form per-thread
if ( _imagePropertyForm == null )
{
_imagePropertyForm = new ImageEditingPropertyForm() ;
_imagePropertyForm.Init(editorContext, dataContext, callback);
}
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:9,代码来源:ImageEditingPropertyForm.cs
示例5: DisabledSmartContentElementBehavior
public DisabledSmartContentElementBehavior(IHtmlEditorComponentContext editorContext, IContentSourceSidebarContext contentSourceContext)
: base(editorContext)
{
_focusControl = new FocusControl(this);
_focusControl.Visible = false;
_contentSourceContext = contentSourceContext;
Controls.Add(_focusControl);
_dragDropController = new SmartContentDragAndDropSource(editorContext);
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:9,代码来源:DisabledSmartContentElementBehavior.cs
示例6: InlineEditField
public InlineEditField(IHTMLElement element, ISmartContent smartContent, IHtmlEditorComponentContext editorContext, IHTMLElement smartContentElement, IUndoRedoExecutingChecker undoRedoCheck)
{
Debug.Assert(element != null, "Making an edit field with a null element.");
_element = element;
_smartContent = smartContent;
_smartContentElement = smartContentElement;
_editorContext = editorContext;
_undoRedoCheck = undoRedoCheck;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:9,代码来源:InlineEditField.cs
示例7: ImagePropertiesSidebar
public ImagePropertiesSidebar(
IHtmlEditorComponentContext editorContext,
IBlogPostImageEditingContext imageEditingContext,
CreateFileCallback createFileCallback)
{
_editorContext = editorContext;
_dataContext = imageEditingContext;
_createFileCallback = createFileCallback;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:9,代码来源:ImagePropertiesSidebar.cs
示例8: ImagePropertiesSidebarHostControl
public ImagePropertiesSidebarHostControl(
ISidebarContext sidebarContext,
IHtmlEditorComponentContext editorContext,
IBlogPostImageEditingContext imageEditingContext,
CreateFileCallback createFileCallback)
{
// Instead of creating the image sidebar, we now create the manager for ribbon commands releated to image editing.
_pictureEditingManager = new PictureEditingManager(editorContext, imageEditingContext, createFileCallback);
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:9,代码来源:ImagePropertiesSidebarHostControl.cs
示例9: ExtendedEntrySplitterElementBehavior
public ExtendedEntrySplitterElementBehavior(IHtmlEditorComponentContext editorContext)
: base(editorContext)
{
_splitter = new SplitterControl();
_splitter.VirtualLocation = new Point(0, _verticalPadding);
Controls.Add(_splitter);
//keep the line width synchronized with the element's width
ElementSizeChanged += new EventHandler(ExtendedEntrySplitterElementBehavior_ElementSizeChanged);
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:10,代码来源:ExtendedEntrySplitterElementBehavior.cs
示例10: PictureEditingManager
public PictureEditingManager(
IHtmlEditorComponentContext editorContext,
IBlogPostImageEditingContext imageEditingContext,
CreateFileCallback createFileCallback)
{
_editorContext = editorContext;
_imageEditingContext = imageEditingContext;
_createFileCallback = createFileCallback;
InitializeCommands();
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:11,代码来源:ImagePropertiesSidebarControl.cs
示例11: SelectIfSmartContentElement
public static SmartContentSelection SelectIfSmartContentElement(IHtmlEditorComponentContext editorComponentContext, IHTMLElement e, SmartContentState contentState)
{
if (e != null)
{
IHTMLElement smartContent = ContentSourceManager.GetContainingSmartContent(e);
if (smartContent == null)
return null;
return SelectElement(editorComponentContext, smartContent, contentState);
}
return null;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:12,代码来源:SmartContentSelection.cs
示例12: Init
private void Init(IHtmlEditorComponentContext editorContext, IBlogPostImageDataContext dataContext, CreateFileCallback callback)
{
_editorContext = editorContext ;
_editorContext.SelectionChanged +=new EventHandler(_editorContext_SelectionChanged);
_imageDataContext = dataContext;
_createFileCallback = callback ;
this.imagePropertyEditorControl1.Init(dataContext);
base.Init(editorContext.MainFrameWindow, typeof(CommandViewImageProperties)) ;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:12,代码来源:ImageEditingPropertyForm.cs
示例13: TableEditingManager
public TableEditingManager(IHtmlEditorComponentContext editorContext)
{
_editorContext = editorContext;
if (!GlobalEditorOptions.SupportsFeature(ContentEditorFeature.Table))
{
_editorContext.SelectionChanged += new EventHandler(_editorContext_SelectionChanged);
_selectionChangedHooked = true;
}
InitializeCommands();
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:12,代码来源:TableEditingManager.cs
示例14: RibbonControl
public RibbonControl(IHtmlEditorComponentContext componentContext, IHtmlEditorCommandSource commandSource)
{
// Note that this code is *not* called within Mail.
// Shared canvas commands/code need to go in ContentEditor.
this.componentContext = componentContext;
this.commandSource = commandSource;
componentContext.CommandManager.BeginUpdate();
componentContext.CommandManager.Add(CommandId.FileMenu, null);
componentContext.CommandManager.Add(CommandId.HomeTab, null);
componentContext.CommandManager.Add(new GroupCommand(CommandId.ClipboardGroup, componentContext.CommandManager.Get(CommandId.Paste)));
componentContext.CommandManager.Add(new GroupCommand(CommandId.PublishGroup, componentContext.CommandManager.Get(CommandId.PostAndPublish)));
componentContext.CommandManager.Add(new Command(CommandId.ParagraphGroup)); // Has it's own icon
componentContext.CommandManager.Add(new GroupCommand(CommandId.InsertGroup, componentContext.CommandManager.Get(CommandId.InsertPictureFromFile)));
componentContext.CommandManager.Add(CommandId.InsertTab, null);
componentContext.CommandManager.Add(new GroupCommand(CommandId.BreaksGroup, componentContext.CommandManager.Get(CommandId.InsertHorizontalLine)));
componentContext.CommandManager.Add(new GroupCommand(CommandId.TablesGroup, componentContext.CommandManager.Get(CommandId.InsertTable)));
componentContext.CommandManager.Add(new GroupCommand(CommandId.MediaGroup, componentContext.CommandManager.Get(CommandId.InsertPictureFromFile)));
componentContext.CommandManager.Add(new GroupCommand(CommandId.PluginsGroup, componentContext.CommandManager.Get(CommandId.PluginsGallery)));
componentContext.CommandManager.Add(new Command(CommandId.BlogProviderTab));
componentContext.CommandManager.Add(new GroupCommand(CommandId.BlogProviderBlogGroup, componentContext.CommandManager.Get(CommandId.ConfigureWeblog)));
componentContext.CommandManager.Add(new GroupCommand(CommandId.BlogProviderThemeGroup, componentContext.CommandManager.Get(CommandId.UpdateWeblogStyle)));
componentContext.CommandManager.Add(CommandId.PreviewTab, null);
// Already added PublishGroup
componentContext.CommandManager.Add(new GroupCommand(CommandId.BrowserGroup, componentContext.CommandManager.Get(CommandId.UpdateWeblogStyle)));
// Already added TextEditingGroup
componentContext.CommandManager.Add(new GroupCommand(CommandId.PreviewGroup, componentContext.CommandManager.Get(CommandId.ClosePreview)));
componentContext.CommandManager.Add(CommandId.DebugTab, null);
componentContext.CommandManager.Add(new Command(CommandId.GeneralDebugGroup));
componentContext.CommandManager.Add(new Command(CommandId.DialogDebugGroup));
componentContext.CommandManager.Add(new Command(CommandId.TextDebugGroup));
componentContext.CommandManager.Add(new Command(CommandId.ValidateDebugGroup));
componentContext.CommandManager.Add(new Command(CommandId.FormatMapGroup));
componentContext.CommandManager.Add(new Command(CommandId.FormatMapPropertiesGroup));
componentContext.CommandManager.EndUpdate();
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:46,代码来源:RibbonControl.cs
示例15: ResizableElementBehavior
public ResizableElementBehavior(IHtmlEditorComponentContext editorContext)
: base(editorContext)
{
_dragBufferControl = new BehaviorControl();
_dragBufferControl.Visible = false;
_resizerControl = new ResizerControl();
_resizerControl.SizerModeChanged += new SizerModeEventHandler(resizerControl_SizerModeChanged);
_resizerControl.Resized += new EventHandler(resizerControl_Resized);
_resizerControl.Visible = false;
Controls.Add(_dragBufferControl);
Controls.Add(_resizerControl);
_dragDropController = new SmartContentDragAndDropSource(editorContext);
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:17,代码来源:ResizableElementBehavior.cs
示例16: TableColumnSizeEditor
public TableColumnSizeEditor(IHTMLTable table, IHtmlEditorComponentContext editorContext, IHTMLPaintSiteRaw paintSite)
{
Debug.Assert(((IHTMLElement)table).offsetHeight > 0 && ((IHTMLElement)table).offsetWidth > 0,
"TableColumnSizeEditor unexpectedly attached to a table with no height and/or width!");
// save references
_table = table;
_editorContext = editorContext;
_paintSite = paintSite;
// initialize sizing
_sizingOperation = new SizingOperation(_editorContext, _table);
// initialize table editing context
_tableEditingContext = new TableEditingContext(editorContext);
// subscribe to events
_editorContext.PreHandleEvent += new OpenLiveWriter.Mshtml.HtmlEditDesignerEventHandler(_editorContext_PreHandleEvent);
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:19,代码来源:TableColumnSizeEditor.cs
示例17: HtmlEditorSidebarHost
public HtmlEditorSidebarHost(IHtmlEditorComponentContext editorContext)
{
// save reference to context
_editorContext = editorContext;
_editorContext.SelectionChanged += new EventHandler(_editorContext_SelectionChanged);
_editorContext.DocumentEvents.Click += new OpenLiveWriter.Mshtml.HtmlEventHandler(DocumentEvents_Click);
base.BackColor = UIPaint.Instance.FrameGradientLight;
// initialize
InitializeDockPadding();
InitializeControls();
//AdjustLayoutForLargeFonts() ;
// default visibility to previous value
Visible = false;
//create the UI theme
_uiTheme = new SidebarUITheme(this);
AccessibleName = Res.Get(StringId.SidebarPanel);
// Create an automation ID
Name = "SidebarPanel";
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:24,代码来源:HtmlEditorSidebarHost.cs
示例18: ContentSelection
protected ContentSelection(IHtmlEditorComponentContext editorComponentContext, IHTMLElement element, SmartContentState contentState)
{
_editorComponentContext = editorComponentContext;
_markupServices = editorComponentContext.MarkupServices;
_element = element;
_contentState = contentState;
_markupRange = _markupServices.CreateMarkupRange(_element, true);
_markupRange.Start.Gravity = _POINTER_GRAVITY.POINTER_GRAVITY_Right;
_markupRange.End.Gravity = _POINTER_GRAVITY.POINTER_GRAVITY_Left;
_markupRange.Start.Cling = false;
_markupRange.End.Cling = false;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:13,代码来源:SmartContentSelection.cs
示例19: ExtendedEntrySweeper
public ExtendedEntrySweeper(IHtmlEditorComponentContext editorContext, IHTMLDocument3 document, IHTMLElement extendedEntry)
{
_editorContext = editorContext;
_realExtendedEntry = extendedEntry;
_document = document;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:6,代码来源:ExtendedEntrySplitterElementBehavior.cs
示例20: BehaviorDragAndDropSource
/// <summary>
/// Initialize with editor context
/// </summary>
/// <param name="context">editor context</param>
public BehaviorDragAndDropSource(IHtmlEditorComponentContext context)
{
// store reference to context
EditorContext = context;
}
开发者ID:gmilazzoitag,项目名称:OpenLiveWriter,代码行数:9,代码来源:BehaviorDragDropSource.cs
注:本文中的IHtmlEditorComponentContext类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论