SmartAPI
Open Source .NET RQL library for RedDot CMS / OpenText WSM Management Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
IFrame.cs
Go to the documentation of this file.
1 ï»¿// SmartAPI - .Net programmatic access to RedDot servers
2 //
3 // Copyright (C) 2013 erminas GbR
4 //
5 // This program is free software: you can redistribute it and/or modify it
6 // under the terms of the GNU General Public License as published by the Free Software Foundation,
7 // either version 3 of the License, or (at your option) any later version.
8 // This program is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11 // See the GNU General Public License for more details.
12 //
13 // You should have received a copy of the GNU General Public License along with this program.
14 // If not, see <http://www.gnu.org/licenses/>.
15 
16 using System.Xml;
17 using erminas.SmartAPI.CMS.Converter;
18 
19 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
20 {
22  {
23  string FrameName { get; set; }
24  Frameborder Frameborder { get; set; }
25  bool IsNotResizing { get; set; }
26  bool IsSyntaxConformingToXHtml { get; set; }
27  string MarginHeight { get; set; }
28  string MarginWidth { get; set; }
29  Scrolling Scrolling { get; set; }
30  string Src { get; set; }
31  string Supplement { get; set; }
32  }
33 
34  internal class Frame : AbstractWorkflowAssignments, IFrame
35  {
36  internal Frame(IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
37  {
38  PreassignedContentClasses = new PreassignedContentClassesAndPageDefinitions(this);
39  }
40 
41  public override ContentClassCategory Category
42  {
43  get { return ContentClassCategory.Structural; }
44  }
45 
46  [RedDot("eltframename")]
47  public string FrameName
48  {
49  get { return GetAttributeValue<string>(); }
50  set { SetAttributeValue(value); }
51  }
52 
53  [RedDot("eltframeborder", ConverterType = typeof (StringEnumConverter<Frameborder>))]
55  {
56  get { return GetAttributeValue<Frameborder>(); }
57  set { SetAttributeValue(value); }
58  }
59 
60  [RedDot("eltnoresize")]
61  public bool IsNotResizing
62  {
63  get { return GetAttributeValue<bool>(); }
64  set { SetAttributeValue(value); }
65  }
66 
67  [RedDot("eltxhtmlcompliant")]
68  public bool IsSyntaxConformingToXHtml
69  {
70  get { return GetAttributeValue<bool>(); }
71  set { SetAttributeValue(value); }
72  }
73 
74  [RedDot("eltmarginheight")]
75  public string MarginHeight
76  {
77  get { return GetAttributeValue<string>(); }
78  set { SetAttributeValue(value); }
79  }
80 
81  [RedDot("eltmarginwidth")]
82  public string MarginWidth
83  {
84  get { return GetAttributeValue<string>(); }
85  set { SetAttributeValue(value); }
86  }
87 
88  public PreassignedContentClassesAndPageDefinitions PreassignedContentClasses { get; private set; }
89 
90  [RedDot("eltscrolling", ConverterType = typeof (StringEnumConverter<Scrolling>))]
91  public Scrolling Scrolling
92  {
93  get { return GetAttributeValue<Scrolling>(); }
94  set { SetAttributeValue(value); }
95  }
96 
97  [RedDot("eltsrc")]
98  public string Src
99  {
100  get { return GetAttributeValue<string>(); }
101  set { SetAttributeValue(value); }
102  }
103 
104  [RedDot("eltsupplement")]
105  public string Supplement
106  {
107  get { return GetAttributeValue<string>(); }
108  set { SetAttributeValue(value); }
109  }
110  }
111 }