17 using erminas.SmartAPI.CMS.Converter;
18 using erminas.SmartAPI.CMS.Project.Folder;
20 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
37 string AltText {
get;
set; }
39 string Border {
get;
set; }
40 string DefaultValue {
get;
set; }
41 string DescriptionInCurrentDisplayLanguage {
get;
set; }
44 string HSpace {
get;
set; }
45 string Height {
get;
set; }
46 bool IsAltPreassignedAutomatically {
get;
set; }
47 bool IsLanguageIndependent {
get;
set; }
48 bool IsOnlyPathAndFilenameInserted {
get;
set; }
49 bool IsSyntaxConformingToXHtml {
get;
set; }
50 ILanguageDependentValue<IFile> SampleImage {
get; }
51 ILanguageDependentValue<IFile> SrcFile {
get; }
52 string Supplement {
get;
set; }
53 string Usemap {
get;
set; }
54 string VSpace {
get;
set; }
55 string Width {
get;
set; }
58 internal class Browse : ContentClassElement, IBrowse
60 internal Browse(
IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
64 [RedDot(
"eltalign", ConverterType = typeof (StringEnumConverter<BrowseAlignment>))]
67 get {
return GetAttributeValue<BrowseAlignment>(); }
68 set { SetAttributeValue(value); }
74 get {
return GetAttributeValue<string>(); }
75 set { SetAttributeValue(value); }
78 [RedDot(
"eltnextpagetype", ConverterType = typeof (EnumConverter<Appearance>))]
81 get {
return GetAttributeValue<Appearance>(); }
82 set { SetAttributeValue(value); }
88 get {
return GetAttributeValue<string>(); }
89 set { SetAttributeValue(value); }
97 [RedDot(
"eltdefaultvalue")]
98 public string DefaultValue
100 get {
return GetAttributeValue<string>(); }
101 set { SetAttributeValue(value); }
104 [RedDot(
"eltrddescription")]
105 public string DescriptionInCurrentDisplayLanguage
107 get {
return GetAttributeValue<string>(); }
108 set { SetAttributeValue(value); }
111 [RedDot(
"eltdirection", ConverterType = typeof (EnumConverter<Direction>))]
114 get {
return GetAttributeValue<Direction>(); }
115 set { SetAttributeValue(value); }
118 [RedDot(
"eltfolderguid", ConverterType = typeof (FolderConverter))]
121 get {
return GetAttributeValue<IFolder>(); }
122 set { SetAttributeValue(value); }
125 [RedDot(
"elthspace")]
128 get {
return GetAttributeValue<string>(); }
129 set { SetAttributeValue(value); }
132 [RedDot(
"eltheight")]
135 get {
return GetAttributeValue<string>(); }
136 set { SetAttributeValue(value); }
139 [RedDot(
"eltpresetalt")]
140 public bool IsAltPreassignedAutomatically
142 get {
return GetAttributeValue<bool>(); }
143 set { SetAttributeValue(value); }
146 [RedDot(
"eltlanguageindependent")]
147 public bool IsLanguageIndependent
149 get {
return GetAttributeValue<bool>(); }
150 set { SetAttributeValue(value); }
153 [RedDot(
"eltonlyhrefvalue")]
154 public bool IsOnlyPathAndFilenameInserted
156 get {
return GetAttributeValue<bool>(); }
157 set { SetAttributeValue(value); }
160 [RedDot(
"eltxhtmlcompliant")]
161 public bool IsSyntaxConformingToXHtml
163 get {
return GetAttributeValue<bool>(); }
164 set { SetAttributeValue(value); }
167 [RedDot(
"__examplefile", ConverterType = typeof (ExampleFileConverter), DependsOn =
"eltfolderguid")]
168 public ILanguageDependentValue<IFile> SampleImage
170 get {
return GetAttributeValue<ILanguageDependentValue<IFile>>(); }
173 [RedDot(
"__srcfile", ConverterType = typeof (SrcFileConverter))]
174 public ILanguageDependentValue<IFile> SrcFile
176 get {
return GetAttributeValue<ILanguageDependentValue<IFile>>(); }
179 [RedDot(
"eltsupplement")]
180 public string Supplement
182 get {
return GetAttributeValue<string>(); }
183 set { SetAttributeValue(value); }
186 [RedDot(
"eltusermap")]
189 get {
return GetAttributeValue<string>(); }
190 set { SetAttributeValue(value); }
193 [RedDot(
"eltvspace")]
196 get {
return GetAttributeValue<string>(); }
197 set { SetAttributeValue(value); }
203 get {
return GetAttributeValue<string>(); }
204 set { SetAttributeValue(value); }