18 using erminas.SmartAPI.CMS.Converter;
20 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
26 string AltText {
get;
set; }
28 string Border {
get;
set; }
30 string HSpace {
get;
set; }
34 bool IsAltPreassignedAutomatically {
get;
set; }
36 string Supplement {
get;
set; }
38 string Usemap {
get;
set; }
40 string VSpace {
get;
set; }
43 internal class HitList : List, IHitList
45 internal HitList(
IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
49 [RedDot(
"eltalign", ConverterType = typeof (StringEnumConverter<BasicAlignment>))]
52 get {
return GetAttributeValue<BasicAlignment>(); }
53 set { SetAttributeValue(value); }
59 get {
return GetAttributeValue<string>(); }
60 set { SetAttributeValue(value); }
66 get {
return GetAttributeValue<string>(); }
67 set { SetAttributeValue(value); }
70 public override void CommitInLanguage(
string abbreviation)
72 var element = GetElementForLanguage(abbreviation);
74 element.SetAttributeValue(
"eltsrc", RQL.SESSIONKEY_PLACEHOLDER);
76 base.CommitInLanguage(abbreviation);
82 get {
return GetAttributeValue<string>(); }
83 set { SetAttributeValue(value); }
86 [RedDot(
"elthittype", ConverterType = typeof (StringEnumConverter<HitListType>))]
89 get {
return GetAttributeValue<HitListType>(); }
94 throw new ArgumentException(
string.Format(
"Hit list type cannot be set to {0} by the user",
97 SetAttributeValue(value);
101 [RedDot(
"eltpresetalt")]
102 public bool IsAltPreassignedAutomatically
104 get {
return GetAttributeValue<bool>(); }
105 set { SetAttributeValue(value); }
108 [RedDot(
"eltsupplement")]
109 public string Supplement
111 get {
return GetAttributeValue<string>(); }
112 set { SetAttributeValue(value); }
115 [RedDot(
"eltusermap")]
118 get {
return GetAttributeValue<string>(); }
119 set { SetAttributeValue(value); }
122 [RedDot(
"eltvspace")]
125 get {
return GetAttributeValue<string>(); }
126 set { SetAttributeValue(value); }