17 using erminas.SmartAPI.CMS.Converter;
18 using erminas.SmartAPI.CMS.Project.Folder;
20 namespace erminas.SmartAPI.CMS.Project.ContentClasses.Elements
24 int? AutomaticMaximumScalingHeight {
get;
set; }
25 int? AutomaticMaximumScalingWidth {
get;
set; }
26 int? ColorDepthInBit {
get;
set; }
27 new void CommitInCurrentLanguage();
28 new void CommitInLanguage(
string languageAbbreviation);
34 string EligibleSuffixes {
get;
set; }
38 bool IsConvertingOnlyNonWebCompatibleFiles {
get;
set; }
39 bool IsDragAndDropActivated {
get;
set; }
40 bool IsLanguageIndependent {
get;
set; }
41 bool IsLinkNotAutomaticallyRemoved {
get;
set; }
42 bool IsNotRelevantForWorklow {
get;
set; }
43 bool IsNotUsedInForm {
get;
set; }
44 bool IsScaledOrConverted {
get;
set; }
45 int? MaxFileSizeInKB {
get;
set; }
46 string Quality {
get;
set; }
47 string RequiredNamePattern {
get;
set; }
48 int? RequiredPictureHeight {
get;
set; }
49 int? RequiredPictureWidth {
get;
set; }
50 ILanguageDependentValue<IFile> SampleFile {
get; }
51 ILanguageDependentValue<IFile> SrcFile {
get; }
55 internal class Media : ContentClassElement, IMedia
57 internal Media(
IContentClass contentClass, XmlElement xmlElement) : base(contentClass, xmlElement)
61 [RedDot(
"eltmaxpicheight")]
62 public int? AutomaticMaximumScalingHeight
64 get {
return GetAttributeValue<int?>(); }
65 set { SetAttributeValue(value); }
68 [RedDot(
"eltmaxpicwidth")]
69 public int? AutomaticMaximumScalingWidth
71 get {
return GetAttributeValue<int?>(); }
72 set { SetAttributeValue(value); }
80 [RedDot(
"eltpicdepth")]
81 public int? ColorDepthInBit
83 get {
return GetAttributeValue<int?>(); }
84 set { SetAttributeValue(value); }
87 [RedDot(
"eltconvertmode", ConverterType = typeof (StringEnumConverter<MediaConversionMode>))]
90 get {
return GetAttributeValue<MediaConversionMode>(); }
91 set { SetAttributeValue(value); }
94 [RedDot(
"eltsuffixes")]
95 public string EligibleSuffixes
97 get {
return GetAttributeValue<string>(); }
98 set { SetAttributeValue(value); }
101 [RedDot(
"eltfolderguid", ConverterType = typeof (FolderConverter))]
104 get {
return GetAttributeValue<IFolder>(); }
105 set { SetAttributeValue(value); }
108 [RedDot(
"eltonlynonwebsources")]
109 public bool IsConvertingOnlyNonWebCompatibleFiles
111 get {
return GetAttributeValue<bool>(); }
112 set { SetAttributeValue(value); }
115 [RedDot(
"eltdragdrop")]
116 public bool IsDragAndDropActivated
118 get {
return GetAttributeValue<bool>(); }
119 set { SetAttributeValue(value); }
122 [RedDot(
"eltlanguageindependent")]
123 public bool IsLanguageIndependent
125 get {
return GetAttributeValue<bool>(); }
126 set { SetAttributeValue(value); }
129 [RedDot(
"eltdonotremove")]
130 public bool IsLinkNotAutomaticallyRemoved
132 get {
return GetAttributeValue<bool>(); }
133 set { SetAttributeValue(value); }
136 [RedDot(
"eltignoreworkflow")]
137 public bool IsNotRelevantForWorklow
139 get {
return GetAttributeValue<bool>(); }
140 set { SetAttributeValue(value); }
143 [RedDot(
"elthideinform")]
144 public bool IsNotUsedInForm
146 get {
return GetAttributeValue<bool>(); }
147 set { SetAttributeValue(value); }
150 [RedDot(
"eltconvert")]
151 public bool IsScaledOrConverted
153 get {
return GetAttributeValue<bool>(); }
154 set { SetAttributeValue(value); }
157 [RedDot(
"eltmaxsize")]
158 public int? MaxFileSizeInKB
160 get {
return GetAttributeValue<int?>(); }
161 set { SetAttributeValue(value); }
164 [RedDot(
"eltcompression")]
165 public string Quality
167 get {
return GetAttributeValue<string>(); }
168 set { SetAttributeValue(value); }
171 [RedDot(
"eltfilename")]
172 public string RequiredNamePattern
174 get {
return GetAttributeValue<string>(); }
175 set { SetAttributeValue(value); }
178 [RedDot(
"eltpicheight")]
179 public int? RequiredPictureHeight
181 get {
return GetAttributeValue<int?>(); }
182 set { SetAttributeValue(value); }
185 [RedDot(
"eltpicwidth")]
186 public int? RequiredPictureWidth
188 get {
return GetAttributeValue<int?>(); }
189 set { SetAttributeValue(value); }
192 [RedDot(
"__examplefile", ConverterType = typeof (ExampleFileConverter), DependsOn =
"eltfolderguid")]
193 public ILanguageDependentValue<IFile> SampleFile
195 get {
return GetAttributeValue<ILanguageDependentValue<IFile>>(); }
198 [RedDot(
"__srcfile", ConverterType = typeof (SrcFileConverter))]
199 public ILanguageDependentValue<IFile> SrcFile
201 get {
return GetAttributeValue<ILanguageDependentValue<IFile>>(); }
204 [RedDot(
"elttargetformat", ConverterType = typeof (StringEnumConverter<TargetFormat>))]
207 get {
return GetAttributeValue<TargetFormat>(); }
208 set { SetAttributeValue(value); }
211 #region ICanBeRequiredForEditing Members
213 [RedDot(
"eltrequired")]
214 public bool IsEditingMandatory
216 get {
return GetAttributeValue<bool>(); }
217 set { SetAttributeValue(value); }