npoi

Форк
0
/
StyleDefaults.cs 
264 строки · 9.2 Кб
1
// ------------------------------------------------------------------------------
2
//  <auto-generated>
3
//    Generated by Xsd2Code. Version 3.4.0.38967
4
//    <NameSpace>NPOI.OpenXmlFormats.Dml</NameSpace><Collection>List</Collection><codeType>CSharp</codeType><EnableDataBinding>False</EnableDataBinding><EnableLazyLoading>False</EnableLazyLoading><TrackingChangesEnable>False</TrackingChangesEnable><GenTrackingClasses>False</GenTrackingClasses><HidePrivateFieldInIDE>False</HidePrivateFieldInIDE><EnableSummaryComment>False</EnableSummaryComment><VirtualProp>False</VirtualProp><IncludeSerializeMethod>False</IncludeSerializeMethod><UseBaseClass>False</UseBaseClass><GenBaseClass>False</GenBaseClass><GenerateCloneMethod>False</GenerateCloneMethod><GenerateDataContracts>False</GenerateDataContracts><CodeBaseTag>Net20</CodeBaseTag><SerializeMethodName>Serialize</SerializeMethodName><DeserializeMethodName>Deserialize</DeserializeMethodName><SaveToFileMethodName>SaveToFile</SaveToFileMethodName><LoadFromFileMethodName>LoadFromFile</LoadFromFileMethodName><GenerateXMLAttributes>True</GenerateXMLAttributes><EnableEncoding>False</EnableEncoding><AutomaticProperties>False</AutomaticProperties><GenerateShouldSerialize>False</GenerateShouldSerialize><DisableDebug>True</DisableDebug><PropNameSpecified>Default</PropNameSpecified><Encoder>UTF8</Encoder><CustomUsings></CustomUsings><ExcludeIncludedTypes>True</ExcludeIncludedTypes><EnableInitializeFields>True</EnableInitializeFields>
5
//  </auto-generated>
6
// ------------------------------------------------------------------------------
7
namespace NPOI.OpenXmlFormats.Dml
8
{
9
    using System;
10
    using System.Diagnostics;
11
    using System.Xml.Serialization;
12
    using System.Collections;
13
    using System.Xml.Schema;
14
    using System.ComponentModel;
15
    using System.Collections.Generic;
16
    using System.Xml;
17
    using System.IO;
18

19

20
    [Serializable]
21
    
22
    [System.ComponentModel.DesignerCategoryAttribute("code")]
23
    [XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
24
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
25
    public class CT_DefaultShapeDefinition
26
    {
27

28
        private CT_ShapeProperties spPrField;
29

30
        private CT_TextBodyProperties bodyPrField;
31

32
        private CT_TextListStyle lstStyleField;
33

34
        private CT_ShapeStyle styleField;
35

36
        private CT_OfficeArtExtensionList extLstField;
37
        public static CT_DefaultShapeDefinition Parse(XmlNode node, XmlNamespaceManager namespaceManager)
38
        {
39
            if (node == null)
40
                return null;
41
            CT_DefaultShapeDefinition ctObj = new CT_DefaultShapeDefinition();
42
            foreach (XmlNode childNode in node.ChildNodes)
43
            {
44
                if (childNode.LocalName == "spPr")
45
                    ctObj.spPr = CT_ShapeProperties.Parse(childNode, namespaceManager);
46
                else if (childNode.LocalName == "bodyPr")
47
                    ctObj.bodyPr = CT_TextBodyProperties.Parse(childNode, namespaceManager);
48
                else if (childNode.LocalName == "lstStyle")
49
                    ctObj.lstStyle = CT_TextListStyle.Parse(childNode, namespaceManager);
50
                else if (childNode.LocalName == "style")
51
                    ctObj.style = CT_ShapeStyle.Parse(childNode, namespaceManager);
52
                else if (childNode.LocalName == "extLst")
53
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
54
            }
55
            return ctObj;
56
        }
57

58

59

60
        internal void Write(StreamWriter sw, string nodeName)
61
        {
62
            sw.Write(string.Format("<a:{0}", nodeName));
63
            sw.Write(">");
64
            if (this.spPr != null)
65
                this.spPr.Write(sw, "a:spPr");
66
            if (this.bodyPr != null)
67
                this.bodyPr.Write(sw, "bodyPr");
68
            if (this.lstStyle != null)
69
                this.lstStyle.Write(sw, "lstStyle");
70
            if (this.style != null)
71
                this.style.Write(sw, "style");
72
            if (this.extLst != null)
73
                this.extLst.Write(sw, "extLst");
74
            sw.Write(string.Format("</a:{0}>", nodeName));
75
        }
76

77
        public CT_DefaultShapeDefinition()
78
        {
79
            //this.extLstField = new CT_OfficeArtExtensionList();
80
            //this.styleField = new CT_ShapeStyle();
81
            //this.lstStyleField = new CT_TextListStyle();
82
            //this.bodyPrField = new CT_TextBodyProperties();
83
            //this.spPrField = new CT_ShapeProperties();
84
        }
85

86
        [XmlElement(Order = 0)]
87
        public CT_ShapeProperties spPr
88
        {
89
            get
90
            {
91
                return this.spPrField;
92
            }
93
            set
94
            {
95
                this.spPrField = value;
96
            }
97
        }
98

99
        [XmlElement(Order = 1)]
100
        public CT_TextBodyProperties bodyPr
101
        {
102
            get
103
            {
104
                return this.bodyPrField;
105
            }
106
            set
107
            {
108
                this.bodyPrField = value;
109
            }
110
        }
111

112
        [XmlElement(Order = 2)]
113
        public CT_TextListStyle lstStyle
114
        {
115
            get
116
            {
117
                return this.lstStyleField;
118
            }
119
            set
120
            {
121
                this.lstStyleField = value;
122
            }
123
        }
124

125
        [XmlElement(Order = 3)]
126
        public CT_ShapeStyle style
127
        {
128
            get
129
            {
130
                return this.styleField;
131
            }
132
            set
133
            {
134
                this.styleField = value;
135
            }
136
        }
137

138
        [XmlElement(Order = 4)]
139
        public CT_OfficeArtExtensionList extLst
140
        {
141
            get
142
            {
143
                return this.extLstField;
144
            }
145
            set
146
            {
147
                this.extLstField = value;
148
            }
149
        }
150
    }
151

152

153
    [Serializable]
154
    
155
    [System.ComponentModel.DesignerCategoryAttribute("code")]
156
    [XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
157
    [XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
158
    public class CT_ObjectStyleDefaults
159
    {
160

161
        private CT_DefaultShapeDefinition spDefField;
162

163
        private CT_DefaultShapeDefinition lnDefField;
164

165
        private CT_DefaultShapeDefinition txDefField;
166

167
        private CT_OfficeArtExtensionList extLstField;
168

169
        public CT_ObjectStyleDefaults()
170
        {
171
            //this.extLstField = new CT_OfficeArtExtensionList();
172
            //this.txDefField = new CT_DefaultShapeDefinition();
173
            //this.lnDefField = new CT_DefaultShapeDefinition();
174
            //this.spDefField = new CT_DefaultShapeDefinition();
175
        }
176
        public static CT_ObjectStyleDefaults Parse(XmlNode node, XmlNamespaceManager namespaceManager)
177
        {
178
            if (node == null)
179
                return null;
180
            CT_ObjectStyleDefaults ctObj = new CT_ObjectStyleDefaults();
181
            foreach (XmlNode childNode in node.ChildNodes)
182
            {
183
                if (childNode.LocalName == "spDef")
184
                    ctObj.spDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager);
185
                else if (childNode.LocalName == "lnDef")
186
                    ctObj.lnDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager);
187
                else if (childNode.LocalName == "txDef")
188
                    ctObj.txDef = CT_DefaultShapeDefinition.Parse(childNode, namespaceManager);
189
                else if (childNode.LocalName == "extLst")
190
                    ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
191
            }
192
            return ctObj;
193
        }
194

195

196

197
        internal void Write(StreamWriter sw, string nodeName)
198
        {
199
            sw.Write(string.Format("<a:{0}", nodeName));
200
            sw.Write(">");
201
            if (this.spDef != null)
202
                this.spDef.Write(sw, "spDef");
203
            if (this.lnDef != null)
204
                this.lnDef.Write(sw, "lnDef");
205
            if (this.txDef != null)
206
                this.txDef.Write(sw, "txDef");
207
            if (this.extLst != null)
208
                this.extLst.Write(sw, "extLst");
209
            sw.Write(string.Format("</a:{0}>", nodeName));
210
        }
211

212
        [XmlElement(Order = 0)]
213
        public CT_DefaultShapeDefinition spDef
214
        {
215
            get
216
            {
217
                return this.spDefField;
218
            }
219
            set
220
            {
221
                this.spDefField = value;
222
            }
223
        }
224

225
        [XmlElement(Order = 1)]
226
        public CT_DefaultShapeDefinition lnDef
227
        {
228
            get
229
            {
230
                return this.lnDefField;
231
            }
232
            set
233
            {
234
                this.lnDefField = value;
235
            }
236
        }
237

238
        [XmlElement(Order = 2)]
239
        public CT_DefaultShapeDefinition txDef
240
        {
241
            get
242
            {
243
                return this.txDefField;
244
            }
245
            set
246
            {
247
                this.txDefField = value;
248
            }
249
        }
250

251
        [XmlElement(Order = 3)]
252
        public CT_OfficeArtExtensionList extLst
253
        {
254
            get
255
            {
256
                return this.extLstField;
257
            }
258
            set
259
            {
260
                this.extLstField = value;
261
            }
262
        }
263
    }
264
}
265

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.