SmartAPI
Open Source .NET RQL library for RedDot CMS / OpenText WSM Management Server
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
ContentClasses/Elements/IList.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 
18 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
19 {
21  {
22  string FontClass { get; set; }
23 
24  string FontColor { get; set; }
25 
26  string FontFace { get; set; }
27 
28  string FontSize { get; set; }
29 
33  bool IsDisplayingConnectedPagesInTargetContainerOfMainLinkIfAvailable { get; set; }
34 
35  bool IsFontBold { get; set; }
36 
37  bool IsOnlyPathAndFilenameInserted { get; set; }
38 
39  bool IsSyntaxConformingToXHtml { get; set; }
40 
41  bool IsTransferingElementContentOfFollowingPages { get; set; }
42 
43  Pages.Elements.IContainer PreassignedTargetContainer { get; set; }
44  }
45 
46  internal class List : AbstractWorkflowAssignments, IList
47  {
48  private readonly TargetContainerPreassignment _targetContainerPreassignment;
49  private readonly ReferencePreassignment _referencePreassignment;
50 
51  internal List(IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
52  {
53  _targetContainerPreassignment = new TargetContainerPreassignment(this);
54  PreassignedContentClasses = new PreassignedContentClassesAndPageDefinitions(this);
55  _referencePreassignment = new ReferencePreassignment(this);
56  }
57 
58  public override void Refresh()
59  {
60  _referencePreassignment.InvalidateCache();
61  base.Refresh();
62  }
63 
64  public override sealed ContentClassCategory Category
65  {
66  get { return ContentClassCategory.Structural; }
67  }
68 
69  public IReferencePreassignTarget PreassignedReference
70  {
71  get { return _referencePreassignment.Target; }
72  set { _referencePreassignment.Target = value; }
73  }
74 
75  [RedDot("eltfontclass")]
76  public string FontClass
77  {
78  get { return GetAttributeValue<string>(); }
79  set { SetAttributeValue(value); }
80  }
81 
82  [RedDot("eltfontcolor")]
83  public string FontColor
84  {
85  get { return GetAttributeValue<string>(); }
86  set { SetAttributeValue(value); }
87  }
88 
89  [RedDot("eltfontface")]
90  public string FontFace
91  {
92  get { return GetAttributeValue<string>(); }
93  set { SetAttributeValue(value); }
94  }
95 
96  [RedDot("eltfontsize")]
97  public string FontSize
98  {
99  get { return GetAttributeValue<string>(); }
100  set { SetAttributeValue(value); }
101  }
102 
103  public bool IsDisplayingConnectedPagesInTargetContainerOfMainLinkIfAvailable
104  {
105  get { return _targetContainerPreassignment.IsDisplayingConnectedPagesInTargetContainerOfMainLinkIfAvailable; }
106  set { _targetContainerPreassignment.IsDisplayingConnectedPagesInTargetContainerOfMainLinkIfAvailable = value; }
107  }
108 
109  [RedDot("eltfontbold")]
110  public bool IsFontBold
111  {
112  get { return GetAttributeValue<bool>(); }
113  set { SetAttributeValue(value); }
114  }
115 
116  [RedDot("eltonlyhrefvalue")]
117  public bool IsOnlyPathAndFilenameInserted
118  {
119  get { return GetAttributeValue<bool>(); }
120  set { SetAttributeValue(value); }
121  }
122 
123  [RedDot("eltxhtmlcompliant")]
124  public bool IsSyntaxConformingToXHtml
125  {
126  get { return GetAttributeValue<bool>(); }
127  set { SetAttributeValue(value); }
128  }
129 
130  [RedDot("eltextendedlist")]
131  public bool IsTransferingElementContentOfFollowingPages
132  {
133  get { return GetAttributeValue<bool>(); }
134  set { SetAttributeValue(value); }
135  }
136 
137  public PreassignedContentClassesAndPageDefinitions PreassignedContentClasses { get; private set; }
138 
139  public Pages.Elements.IContainer PreassignedTargetContainer
140  {
141  get { return _targetContainerPreassignment.TargetContainer; }
142  set { _targetContainerPreassignment.TargetContainer = value; }
143  }
144  }
145 }