2 // System.Web.DesignTimeParseData class
6 // Miguel de Icaza (miguel@novell.com)
10 // Copyright (C) 2005 Novell, Inc (http://www.novell.com)
12 // Permission is hereby granted, free of charge, to any person obtaining
13 // a copy of this software and associated documentation files (the
14 // "Software"), to deal in the Software without restriction, including
15 // without limitation the rights to use, copy, modify, merge, publish,
16 // distribute, sublicense, and/or sell copies of the Software, and to
17 // permit persons to whom the Software is furnished to do so, subject to
18 // the following conditions:
20 // The above copyright notice and this permission notice shall be
21 // included in all copies or substantial portions of the Software.
23 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
27 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
28 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
29 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
32 using System.Collections;
33 using System.ComponentModel.Design;
34 using System.Security.Permissions;
36 namespace System.Web.UI {
38 // CAS - no InheritanceDemand here as the class is sealed
39 [AspNetHostingPermission (SecurityAction.LinkDemand, Level = AspNetHostingPermissionLevel.Minimal)]
40 public sealed class DesignTimeParseData {
41 EventHandler db_handler;
48 ICollection collection;
51 public DesignTimeParseData (IDesignerHost designerHost, string parseText)
57 public DesignTimeParseData (IDesignerHost designerHost, string parseText, string filter)
58 : this (designerHost, parseText)
64 public EventHandler DataBindingHandler {
74 public IDesignerHost DesignerHost {
80 public string DocumentUrl {
90 public string ParseText {
96 public string Filter {
97 get { return filter; }
100 public bool ShouldApplyTheme {
101 get { return theme; }
102 set { theme = value; }
105 // FIXME: there's probably a way to set this somewhere...
106 public ICollection UserControlRegisterEntries {
107 get { return collection; }