public CspOptions BuildCspOptions() { _options.Script = AllowScripts.BuildOptions(); _options.Style = AllowStyles.BuildOptions(); #pragma warning disable CS0618 // Type or member is obsolete _options.Child = AllowChildren.BuildOptions(); #pragma warning restore CS0618 // Type or member is obsolete _options.Connect = AllowConnections.BuildOptions(); _options.Manifest = AllowManifest.BuildOptions(); _options.Default = ByDefaultAllow.BuildOptions(); _options.Font = AllowFonts.BuildOptions(); _options.FormAction = AllowFormActions.BuildOptions(); _options.FrameAncestors = AllowFraming.BuildOptions(); _options.Img = AllowImages.BuildOptions(); _options.Media = AllowAudioAndVideo.BuildOptions(); Tuple <CspObjectSrcOptions, CspPluginTypesOptions> pluginOptions = AllowPlugins.BuildOptions(); _options.Object = pluginOptions.Item1; _options.PluginTypes = pluginOptions.Item2; _options.Sandbox = _sandboxBuilder.BuildOptions(); _options.Frame = AllowFrames.BuildOptions(); _options.Worker = AllowWorkers.BuildOptions(); _options.Prefetch = AllowPrefetch.BuildOptions(); _options.BaseUri = AllowBaseUri.BuildOptions(); _options.RequireSri = RequireSri.BuildOptions(); _options.OnSendingHeader = OnSendingHeader; return(_options); }
/// <summary> /// Creates a new designer attribute for handling a string value. /// </summary> /// <param name="displayName">The name shown on the node and in the property editor for the property.</param> /// <param name="description">The description shown in the property editor for the property.</param> /// <param name="category">The category shown in the property editor for the property.</param> /// <param name="displayMode">Defines how the property is visualised in the editor.</param> /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param> /// <param name="flags">Defines the designer flags stored for the property.</param> public DesignerPropertyEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, AllowStyles styles, string dependedProperty, string dependingProperty, ValueTypes filterType = ValueTypes.All, double min = double.MinValue, double max = double.MaxValue) : base(displayName, description, category, displayMode, displayOrder, flags, typeof(DesignerPropertyEnumEditor), null, filterType) { _styles = styles; _dependedProperty = dependedProperty; _dependingProperty = dependingProperty; _minValue = min; _maxValue = max; }
public CspOptions BuildCspOptions() { _options.Script = AllowScripts.BuildOptions(); _options.Style = AllowStyles.BuildOptions(); _options.Child = AllowChildren.BuildOptions(); _options.Connect = AllowConnections.BuildOptions(); _options.Default = ByDefaultAllow.BuildOptions(); _options.Font = AllowFonts.BuildOptions(); _options.FormAction = AllowFormActions.BuildOptions(); _options.FrameAncestors = AllowFraming.BuildOptions(); _options.Img = AllowImages.BuildOptions(); _options.Media = AllowAudioAndVideo.BuildOptions(); Tuple <CspObjectSrcOptions, CspPluginTypesOptions> pluginOptions = AllowPlugins.BuildOptions(); _options.Object = pluginOptions.Item1; _options.PluginTypes = pluginOptions.Item2; _options.Sandbox = _sandboxBuilder.BuildOptions(); return(_options); }
public bool HasStyles(AllowStyles styles) { return (_styles & styles) == styles; }
/// <summary> /// Creates a new designer attribute for handling a string value. /// </summary> /// <param name="displayName">The name shown on the node and in the property editor for the property.</param> /// <param name="description">The description shown in the property editor for the property.</param> /// <param name="category">The category shown in the property editor for the property.</param> /// <param name="displayMode">Defines how the property is visualised in the editor.</param> /// <param name="displayOrder">Defines the order the properties will be sorted in when shown in the property grid. Lower come first.</param> /// <param name="flags">Defines the designer flags stored for the property.</param> public DesignerRightValueEnum(string displayName, string description, string category, DisplayMode displayMode, int displayOrder, DesignerFlags flags, AllowStyles styles, MethodType methodType, string dependedProperty, string dependingProperty, ValueTypes filterType = ValueTypes.All) : base(displayName, description, category, displayMode, displayOrder, flags, styles, dependedProperty, dependingProperty, filterType) { _methodType = methodType; }
public bool HasStyles(AllowStyles styles) { return((_styles & styles) == styles); }