public bool SupportsFeature(ContentEditorFeature featureName) { switch (featureName) { case ContentEditorFeature.RTLDirectionDefault: return(BidiHelper.IsRightToLeft || CultureHelper.IsRtlLcid(User32.GetKeyboardLayout(0) & 0xFFFF)); case ContentEditorFeature.RTLFeatures: CheckForRtlLang(); return(rtlMode); case ContentEditorFeature.ImageUpload: case ContentEditorFeature.Script: case ContentEditorFeature.Embeds: case ContentEditorFeature.XHTML: case ContentEditorFeature.ImageClickThroughs: case ContentEditorFeature.OpenDialogOnInsertLinkDialog: case ContentEditorFeature.TidyWhitespace: case ContentEditorFeature.SpecialPaste: case ContentEditorFeature.UrlContentSourcePaste: case ContentEditorFeature.ShowAllLinkOptions: case ContentEditorFeature.SupportsImageClickThroughs: case ContentEditorFeature.ImageBorderInherit: case ContentEditorFeature.Table: case ContentEditorFeature.PreviewMode: case ContentEditorFeature.SourceEditor: case ContentEditorFeature.ShadowImageForDrafts: case ContentEditorFeature.UnicodeEllipsis: case ContentEditorFeature.CleanHtmlOnPaste: case ContentEditorFeature.BrokenSmartContent: case ContentEditorFeature.ViewNormalEditorShortcut: case ContentEditorFeature.AutoLinking: case ContentEditorFeature.ResetFocusToFixIME: { return(false); } case ContentEditorFeature.TabAsIndent: case ContentEditorFeature.SpellCheckIgnoreOnce: case ContentEditorFeature.CenterImageWithParagraph: case ContentEditorFeature.DivNewLine: case ContentEditorFeature.PlainTextEditor: case ContentEditorFeature.HideNonVisibleElements: case ContentEditorFeature.EnableSidebar: case ContentEditorFeature.ShowLinkTooltipForImages: case ContentEditorFeature.AlwaysInsertInlineImagesAsInline: { return(true); } default: { throw new ArgumentException("Unknown feature name: " + featureName); } } }
public bool SupportsFeature(ContentEditorFeature featureName) { switch (featureName) { case ContentEditorFeature.ImageClickThroughs: return false; default: return true; } }
public bool SupportsFeature(ContentEditorFeature featureName) { switch (featureName) { case ContentEditorFeature.RTLDirectionDefault: return BidiHelper.IsRightToLeft || CultureHelper.IsRtlLcid(User32.GetKeyboardLayout(0) & 0xFFFF); case ContentEditorFeature.RTLFeatures: CheckForRtlLang(); return rtlMode; case ContentEditorFeature.ImageUpload: case ContentEditorFeature.Script: case ContentEditorFeature.Embeds: case ContentEditorFeature.XHTML: case ContentEditorFeature.ImageClickThroughs: case ContentEditorFeature.OpenDialogOnInsertLinkDialog: case ContentEditorFeature.TidyWhitespace: case ContentEditorFeature.SpecialPaste: case ContentEditorFeature.UrlContentSourcePaste: case ContentEditorFeature.ShowAllLinkOptions: case ContentEditorFeature.SupportsImageClickThroughs: case ContentEditorFeature.ImageBorderInherit: case ContentEditorFeature.Table: case ContentEditorFeature.PreviewMode: case ContentEditorFeature.SourceEditor: case ContentEditorFeature.ShadowImageForDrafts: case ContentEditorFeature.UnicodeEllipsis: case ContentEditorFeature.CleanHtmlOnPaste: case ContentEditorFeature.BrokenSmartContent: case ContentEditorFeature.ViewNormalEditorShortcut: case ContentEditorFeature.AutoLinking: case ContentEditorFeature.ResetFocusToFixIME: { return false; } case ContentEditorFeature.TabAsIndent: case ContentEditorFeature.SpellCheckIgnoreOnce: case ContentEditorFeature.CenterImageWithParagraph: case ContentEditorFeature.DivNewLine: case ContentEditorFeature.PlainTextEditor: case ContentEditorFeature.HideNonVisibleElements: case ContentEditorFeature.EnableSidebar: case ContentEditorFeature.ShowLinkTooltipForImages: case ContentEditorFeature.AlwaysInsertInlineImagesAsInline: { return true; } default: { throw new ArgumentException("Unknown feature name: " + featureName); } } }
public bool SupportsFeature(ContentEditorFeature featureName) { switch (featureName) { case ContentEditorFeature.ImageClickThroughs: return(false); default: return(true); } }
public bool SupportsFeature(ContentEditorFeature featureName) { switch (featureName) { case ContentEditorFeature.ImageClickThroughs: case ContentEditorFeature.OpenDialogOnInsertLinkDialog: case ContentEditorFeature.TidyWhitespace: case ContentEditorFeature.EnableSidebar: case ContentEditorFeature.SpecialPaste: case ContentEditorFeature.UrlContentSourcePaste: case ContentEditorFeature.ShowAllLinkOptions: case ContentEditorFeature.SupportsImageClickThroughs: case ContentEditorFeature.ImageBorderInherit: case ContentEditorFeature.Table: case ContentEditorFeature.SourceEditor: case ContentEditorFeature.PreviewMode: case ContentEditorFeature.ShadowImageForDrafts: case ContentEditorFeature.UnicodeEllipsis: case ContentEditorFeature.SpellCheckIgnoreOnce: case ContentEditorFeature.CleanHtmlOnPaste: case ContentEditorFeature.BrokenSmartContent: case ContentEditorFeature.ViewNormalEditorShortcut: case ContentEditorFeature.AutoLinking: case ContentEditorFeature.ResetFocusToFixIME: case ContentEditorFeature.AlwaysInsertInlineImagesAsInline: { return(true); } case ContentEditorFeature.TabAsIndent: case ContentEditorFeature.CenterImageWithParagraph: case ContentEditorFeature.DivNewLine: case ContentEditorFeature.PlainTextEditor: case ContentEditorFeature.HideNonVisibleElements: case ContentEditorFeature.ShowLinkTooltipForImages: { return(false); } default: { // It could be unknown because it is a per blog setting, and not global // thus its setting is controlled through IEditorOptions throw new ArgumentException("Unknown feature name: " + featureName); } } }
public bool SupportsFeature(ContentEditorFeature featureName) { switch (featureName) { case ContentEditorFeature.ImageClickThroughs: case ContentEditorFeature.OpenDialogOnInsertLinkDialog: case ContentEditorFeature.TidyWhitespace: case ContentEditorFeature.EnableSidebar: case ContentEditorFeature.SpecialPaste: case ContentEditorFeature.UrlContentSourcePaste: case ContentEditorFeature.ShowAllLinkOptions: case ContentEditorFeature.SupportsImageClickThroughs: case ContentEditorFeature.ImageBorderInherit: case ContentEditorFeature.Table: case ContentEditorFeature.SourceEditor: case ContentEditorFeature.PreviewMode: case ContentEditorFeature.ShadowImageForDrafts: case ContentEditorFeature.UnicodeEllipsis: case ContentEditorFeature.SpellCheckIgnoreOnce: case ContentEditorFeature.CleanHtmlOnPaste: case ContentEditorFeature.BrokenSmartContent: case ContentEditorFeature.ViewNormalEditorShortcut: case ContentEditorFeature.AutoLinking: case ContentEditorFeature.ResetFocusToFixIME: case ContentEditorFeature.AlwaysInsertInlineImagesAsInline: { return true; } case ContentEditorFeature.TabAsIndent: case ContentEditorFeature.CenterImageWithParagraph: case ContentEditorFeature.DivNewLine: case ContentEditorFeature.PlainTextEditor: case ContentEditorFeature.HideNonVisibleElements: case ContentEditorFeature.ShowLinkTooltipForImages: { return false; } default: { // It could be unknown because it is a per blog setting, and not global // thus its setting is controlled through IEditorOptions throw new ArgumentException("Unknown feature name: " + featureName); } } }
public static bool SupportsFeature(ContentEditorFeature featureName) { Debug.Assert(_contentTarget != null, "Attempting to check for features without specifying a ContentTarget."); return(_contentTarget.SupportsFeature(featureName)); }