本文整理汇总了C#中IHtmlEditorComponentContext类的典型用法代码示例。如果您正苦于以下问题:C# IHtmlEditorComponentContext类的具体用法?C# IHtmlEditorComponentContext怎么用?C# IHtmlEditorComponentContext使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IHtmlEditorComponentContext类属于命名空间,在下文中一共展示了IHtmlEditorComponentContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例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;
}
示例3: SmartContentElementBehavior
public SmartContentElementBehavior(IHtmlEditorComponentContext editorContext, IBlogPostSidebarContext sidebarContext, IContentSourceSidebarContext contentSourceContext, SmartContentResizedListener resizedListener)
: base(editorContext)
{
_editorContext = editorContext;
_sidebarContext = sidebarContext;
_contentSourceContext = contentSourceContext;
_resizedListener = resizedListener;
}
示例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);
}
}
示例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);
}
示例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;
}
示例7: ImagePropertiesSidebar
public ImagePropertiesSidebar(
IHtmlEditorComponentContext editorContext,
IBlogPostImageEditingContext imageEditingContext,
CreateFileCallback createFileCallback)
{
_editorContext = editorContext;
_dataContext = imageEditingContext;
_createFileCallback = createFileCallback;
}
示例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);
}
示例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);
}
示例10: PictureEditingManager
public PictureEditingManager(
IHtmlEditorComponentContext editorContext,
IBlogPostImageEditingContext imageEditingContext,
CreateFileCallback createFileCallback)
{
_editorContext = editorContext;
_imageEditingContext = imageEditingContext;
_createFileCallback = createFileCallback;
InitializeCommands();
}
示例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;
}
示例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)) ;
}
示例13: TableEditingManager
public TableEditingManager(IHtmlEditorComponentContext editorContext)
{
_editorContext = editorContext;
if (!GlobalEditorOptions.SupportsFeature(ContentEditorFeature.Table))
{
_editorContext.SelectionChanged += new EventHandler(_editorContext_SelectionChanged);
_selectionChangedHooked = true;
}
InitializeCommands();
}
示例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();
}
示例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);
}