17 using erminas.SmartAPI.CMS.Converter;
18 using erminas.SmartAPI.CMS.Project.Folder;
20 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
26 ILanguageDependentValue<string> AltText {
get; }
28 string Border {
get;
set; }
32 string HSpace {
get;
set; }
34 string Height {
get;
set; }
36 string ImageLinkSupplement {
get;
set; }
38 bool IsAltPreassignedAutomatically {
get;
set; }
40 bool IsBorderAutomaticallyInsertedIntoPage {
get;
set; }
42 bool IsHeightAutomaticallyInsertedIntoPage {
get;
set; }
44 bool IsWidthAutomaticallyInsertedIntoPage {
get;
set; }
46 ILanguageDependentValue<IFile> SrcFile {
get; }
48 string Usemap {
get;
set; }
50 string VSpace {
get;
set; }
52 string Width {
get;
set; }
55 internal class ImageAnchor : Anchor, IImageAnchor
57 internal ImageAnchor(
IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
61 [RedDot(
"eltalign", ConverterType = typeof (StringEnumConverter<ImageAlignment>))]
64 get {
return GetAttributeValue<ImageAlignment>(); }
65 set { SetAttributeValue(value); }
69 public ILanguageDependentValue<string> AltText
71 get {
return GetAttributeValue<ILanguageDependentValue<string>>(); }
77 get {
return GetAttributeValue<string>(); }
78 set { SetAttributeValue(value); }
81 [RedDot(
"eltfolderguid", ConverterType = typeof (FolderConverter))]
84 get {
return GetAttributeValue<IFolder>(); }
85 set { SetAttributeValue(value); }
91 get {
return GetAttributeValue<string>(); }
92 set { SetAttributeValue(value); }
98 get {
return GetAttributeValue<string>(); }
99 set { SetAttributeValue(value); }
102 [RedDot(
"eltimagesupplement")]
103 public string ImageLinkSupplement
105 get {
return GetAttributeValue<string>(); }
106 set { SetAttributeValue(value); }
109 [RedDot(
"eltpresetalt")]
110 public bool IsAltPreassignedAutomatically
112 get {
return GetAttributeValue<bool>(); }
113 set { SetAttributeValue(value); }
116 [RedDot(
"eltautoborder")]
117 public bool IsBorderAutomaticallyInsertedIntoPage
119 get {
return GetAttributeValue<bool>(); }
120 set { SetAttributeValue(value); }
123 [RedDot(
"eltautoheight")]
124 public bool IsHeightAutomaticallyInsertedIntoPage
126 get {
return GetAttributeValue<bool>(); }
127 set { SetAttributeValue(value); }
130 [RedDot(
"eltautowidth")]
131 public bool IsWidthAutomaticallyInsertedIntoPage
133 get {
return GetAttributeValue<bool>(); }
134 set { SetAttributeValue(value); }
137 [RedDot(
"__srcfile", ConverterType = typeof (SrcFileConverter))]
138 public ILanguageDependentValue<IFile> SrcFile
140 get {
return GetAttributeValue<ILanguageDependentValue<IFile>>(); }
143 [RedDot(
"eltusermap")]
146 get {
return GetAttributeValue<string>(); }
147 set { SetAttributeValue(value); }
150 [RedDot(
"eltvspace")]
153 get {
return GetAttributeValue<string>(); }
154 set { SetAttributeValue(value); }
160 get {
return GetAttributeValue<string>(); }
161 set { SetAttributeValue(value); }