17 using erminas.SmartAPI.CMS.Converter;
19 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
23 string DescriptionInCurrentDisplayLanguage {
get;
set; }
25 ILanguageDependentValue<string> ExampleText {
get; }
29 bool IsCrlfConvertedToBr {
get;
set; }
31 bool IsDisplayingConnectedPagesInTargetContainerOfMainLinkIfAvailable {
get;
set; }
33 bool IsDynamic {
get;
set; }
35 bool IsLanguageIndependent {
get;
set; }
37 bool IsLinkNotAutomaticallyRemoved {
get;
set; }
39 bool IsNotConvertingCharactersToHtml {
get;
set; }
41 bool IsNotRelevantForWorklow {
get;
set; }
43 bool IsOnlyPathAndFilenameInserted {
get;
set; }
45 bool IsSyntaxConformingToXHtml {
get;
set; }
47 bool IsTransferingContentOfFollowingPages {
get;
set; }
51 Pages.Elements.IContainer PreassignedTargetContainer {
get;
set; }
55 string Supplement {
get;
set; }
57 string Value {
get;
set; }
59 new void CommitInCurrentLanguage();
61 new void CommitInLanguage(
string languageAbbreviation);
64 internal class Anchor : AbstractWorkflowAssignments, IAnchor
66 private readonly ReferencePreassignment _referencePreassignment;
67 private readonly TargetContainerPreassignment _targetContainerPreassignment;
69 protected Anchor(
IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
71 PreassignedContentClasses =
new PreassignedContentClassesAndPageDefinitions(
this);
72 _targetContainerPreassignment =
new TargetContainerPreassignment(
this);
73 _referencePreassignment =
new ReferencePreassignment(
this);
76 public override void Refresh()
78 _referencePreassignment.InvalidateCache();
87 [RedDot(
"eltrddescription")]
88 public string DescriptionInCurrentDisplayLanguage
90 get {
return GetAttributeValue<string>(); }
91 set { SetAttributeValue(value); }
94 [RedDot(
"eltrdexample")]
95 public ILanguageDependentValue<string> ExampleText
97 get {
return GetAttributeValue<ILanguageDependentValue<string>>(); }
100 [RedDot(
"elttarget", ConverterType = typeof (StringEnumConverter<HtmlTarget>))]
103 get {
return GetAttributeValue<HtmlTarget>(); }
104 set { SetAttributeValue(value); }
107 [RedDot(
"eltcrlftobr")]
108 public bool IsCrlfConvertedToBr
110 get {
return GetAttributeValue<bool>(); }
111 set { SetAttributeValue(value); }
114 public bool IsDisplayingConnectedPagesInTargetContainerOfMainLinkIfAvailable
116 get {
return _targetContainerPreassignment.IsDisplayingConnectedPagesInTargetContainerOfMainLinkIfAvailable; }
117 set { _targetContainerPreassignment.IsDisplayingConnectedPagesInTargetContainerOfMainLinkIfAvailable = value; }
120 [RedDot(
"eltisdynamic")]
121 public bool IsDynamic
123 get {
return GetAttributeValue<bool>(); }
124 set { SetAttributeValue(value); }
127 [RedDot(
"eltrequired")]
128 public bool IsEditingMandatory
130 get {
return GetAttributeValue<bool>(); }
131 set { SetAttributeValue(value); }
134 [RedDot(
"eltlanguageindependent")]
135 public bool IsLanguageIndependent
137 get {
return GetAttributeValue<bool>(); }
138 set { SetAttributeValue(value); }
141 [RedDot(
"eltdonotremove")]
142 public bool IsLinkNotAutomaticallyRemoved
144 get {
return GetAttributeValue<bool>(); }
145 set { SetAttributeValue(value); }
148 [RedDot(
"eltdonothtmlencode")]
149 public bool IsNotConvertingCharactersToHtml
151 get {
return GetAttributeValue<bool>(); }
152 set { SetAttributeValue(value); }
155 [RedDot(
"eltignoreworkflow")]
156 public bool IsNotRelevantForWorklow
158 get {
return GetAttributeValue<bool>(); }
159 set { SetAttributeValue(value); }
162 [RedDot(
"eltonlyhrefvalue")]
163 public bool IsOnlyPathAndFilenameInserted
165 get {
return GetAttributeValue<bool>(); }
166 set { SetAttributeValue(value); }
169 [RedDot(
"eltxhtmlcompliant")]
170 public bool IsSyntaxConformingToXHtml
172 get {
return GetAttributeValue<bool>(); }
173 set { SetAttributeValue(value); }
176 [RedDot(
"eltextendedlist")]
177 public bool IsTransferingContentOfFollowingPages
179 get {
return GetAttributeValue<bool>(); }
180 set { SetAttributeValue(value); }
183 [RedDot(
"eltlanguagevariantguid", ConverterType = typeof (LanguageVariantConverter))]
184 public ILanguageVariant LanguageVariantToSwitchTo
186 get {
return GetAttributeValue<ILanguageVariant>(); }
187 set { SetAttributeValue(value); }
190 public PreassignedContentClassesAndPageDefinitions PreassignedContentClasses {
get;
private set; }
192 public Pages.Elements.IContainer PreassignedTargetContainer
194 get {
return _targetContainerPreassignment.TargetContainer; }
195 set { _targetContainerPreassignment.TargetContainer = value; }
198 [RedDot(
"eltprojectvariantguid", ConverterType = typeof (ProjectVariantConverter))]
199 public IProjectVariant ProjectVariantToSwitchTo
201 get {
return GetAttributeValue<IProjectVariant>(); }
202 set { SetAttributeValue(value); }
205 [RedDot(
"eltsupplement")]
206 public string Supplement
208 get {
return GetAttributeValue<string>(); }
209 set { SetAttributeValue(value); }
215 get {
return GetAttributeValue<string>(); }
216 set { SetAttributeValue(value); }
219 public IReferencePreassignTarget PreassignedReference
221 get {
return _referencePreassignment.Target; }
222 set { _referencePreassignment.Target = value; }