17 using erminas.SmartAPI.CMS.Converter;
18 using erminas.SmartAPI.Utils.CachedCollections;
20 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
27 IIndexedCachedList<int, IInfoAttribute> AllContentAttributes {
get; }
31 bool IsNotConvertingCharactersToHtml {
get;
set; }
32 bool IsUsingDataOfPageInTargetContainer {
get;
set; }
33 bool IsUsingMainLink {
get;
set; }
34 bool IsUsingRfc3066 {
get;
set; }
38 string Separator {
get;
set; }
39 string UserDefinedDateFormat {
get;
set; }
42 internal class Info : ContentClassElement, IInfo
44 internal Info(
IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
51 public IIndexedCachedList<int, IInfoAttribute> AllContentAttributes
53 get {
return ContentClass.Project.InfoAttributes; }
61 [RedDot(
"eltsubtype", ConverterType = typeof (InfoElementConverter))]
62 public IInfoAttribute Content
64 get {
return GetAttributeValue<IInfoAttribute>(); }
65 set { SetAttributeValue(value); }
68 [RedDot(
"eltformatno", ConverterType = typeof (DateTimeFormatConverter))]
69 public IDateTimeFormat DateFormat
71 get {
return GetAttributeValue<IDateTimeFormat>(); }
72 set { SetAttributeValue(value); }
75 [RedDot(
"eltdonothtmlencode")]
76 public bool IsNotConvertingCharactersToHtml
78 get {
return GetAttributeValue<bool>(); }
79 set { SetAttributeValue(value); }
82 [RedDot(
"eltevalcalledpage")]
83 public bool IsUsingDataOfPageInTargetContainer
85 get {
return GetAttributeValue<bool>(); }
86 set { SetAttributeValue(value); }
89 [RedDot(
"eltusemainlink")]
90 public bool IsUsingMainLink
92 get {
return GetAttributeValue<bool>(); }
93 set { SetAttributeValue(value); }
96 [RedDot(
"eltuserfc3066")]
97 public bool IsUsingRfc3066
99 get {
return GetAttributeValue<bool>(); }
100 set { SetAttributeValue(value); }
103 [RedDot(
"eltlanguagevariantguid")]
104 public ILanguageVariant LanguageVariantForUrlOfPage
106 get {
return GetAttributeValue<ILanguageVariant>(); }
107 set { SetAttributeValue(value); }
110 [RedDot(
"eltlcid", ConverterType = typeof (LocaleConverter))]
111 public ISystemLocale Locale
113 get {
return GetAttributeValue<ISystemLocale>(); }
114 set { SetAttributeValue(value); }
117 [RedDot(
"eltprojectvariantguid", ConverterType = typeof (ProjectVariantConverter))]
118 public IProjectVariant ProjectVariantForUrlOfPage
120 get {
return GetAttributeValue<IProjectVariant>(); }
121 set { SetAttributeValue(value); }
124 [RedDot(
"eltkeywordseparator")]
125 public string Separator
127 get {
return GetAttributeValue<string>(); }
128 set { SetAttributeValue(value); }
131 [RedDot(
"eltformatting")]
132 public string UserDefinedDateFormat
134 get {
return GetAttributeValue<string>(); }
135 set { SetAttributeValue(value); }