npoi
6536 строк · 178.4 Кб
1using System;
2using System.Collections.Generic;
3using System.Xml.Schema;
4using System.Xml.Serialization;
5using NPOI.OpenXmlFormats.Vml.Wordprocessing;
6using NPOI.OpenXmlFormats.Vml.Office;
7using NPOI.OpenXmlFormats.Vml.Spreadsheet;
8using NPOI.OpenXmlFormats.Vml.Presentation;
9using System.IO;
10using System.Xml;
11using System.Text;
12using System.ComponentModel;
13using NPOI.OpenXml4Net.Util;
14
15namespace NPOI.OpenXmlFormats.Vml
16{
17[Serializable]
18
19[System.ComponentModel.DesignerCategory("code")]
20[XmlType(Namespace = "urn:schemas-microsoft-com:vml")]
21public class CT_Fill
22{
23
24private string idField;
25
26private ST_FillType typeField;
27
28private bool typeFieldSpecified;
29
30private ST_TrueFalse onField;
31
32private bool onFieldSpecified;
33
34private string colorField;
35
36private string opacityField;
37
38private string color2Field;
39
40private string srcField;
41
42private string sizeField;
43
44private string originField;
45
46private string positionField;
47
48private ST_ImageAspect aspectField;
49
50private bool aspectFieldSpecified;
51
52private string colorsField;
53
54private decimal angleField;
55
56private bool angleFieldSpecified;
57
58private ST_TrueFalse alignshapeField;
59
60private bool alignshapeFieldSpecified;
61
62private string focusField;
63
64private string focussizeField;
65
66private string focuspositionField;
67
68private ST_FillMethod methodField;
69
70private bool methodFieldSpecified;
71
72private ST_TrueFalse recolorField;
73
74private bool recolorFieldSpecified;
75
76private ST_TrueFalse rotateField;
77
78private bool rotateFieldSpecified;
79
80//private string id1Field;
81
82public static CT_Fill Parse(XmlNode node, XmlNamespaceManager namespaceManager)
83{
84if (node == null)
85return null;
86CT_Fill ctObj = new CT_Fill();
87ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
88if (node.Attributes["type"] != null)
89ctObj.type = (ST_FillType)Enum.Parse(typeof(ST_FillType), node.Attributes["type"].Value);
90if (node.Attributes["on"] != null)
91ctObj.on = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["on"]);
92ctObj.color = XmlHelper.ReadString(node.Attributes["color"]);
93ctObj.opacity = XmlHelper.ReadString(node.Attributes["opacity"]);
94ctObj.color2 = XmlHelper.ReadString(node.Attributes["color2"]);
95ctObj.src = XmlHelper.ReadString(node.Attributes["src"]);
96ctObj.size = XmlHelper.ReadString(node.Attributes["size"]);
97ctObj.origin = XmlHelper.ReadString(node.Attributes["origin"]);
98ctObj.position = XmlHelper.ReadString(node.Attributes["position"]);
99if (node.Attributes["aspect"] != null)
100ctObj.aspect = (ST_ImageAspect)Enum.Parse(typeof(ST_ImageAspect), node.Attributes["aspect"].Value);
101ctObj.colors = XmlHelper.ReadString(node.Attributes["colors"]);
102if (node.Attributes["angle"] != null)
103ctObj.angle = XmlHelper.ReadDecimal(node.Attributes["angle"]);
104if (node.Attributes["alignshape"] != null)
105ctObj.alignshape = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["alignshape"]);
106ctObj.focus = XmlHelper.ReadString(node.Attributes["focus"]);
107ctObj.focussize = XmlHelper.ReadString(node.Attributes["focussize"]);
108ctObj.focusposition = XmlHelper.ReadString(node.Attributes["focusposition"]);
109if (node.Attributes["method"] != null)
110ctObj.method = (ST_FillMethod)Enum.Parse(typeof(ST_FillMethod), node.Attributes["method"].Value);
111if (node.Attributes["recolor"] != null)
112ctObj.recolor = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["recolor"]);
113if (node.Attributes["rotate"] != null)
114ctObj.rotate = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["rotate"]);
115return ctObj;
116}
117
118
119
120internal void Write(StreamWriter sw, string nodeName)
121{
122sw.Write(string.Format("<v:{0}", nodeName));
123XmlHelper.WriteAttribute(sw, "id", this.id);
124XmlHelper.WriteAttribute(sw, "type", this.type.ToString());
125NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "on", this.on);
126XmlHelper.WriteAttribute(sw, "color", this.color);
127XmlHelper.WriteAttribute(sw, "opacity", this.opacity);
128XmlHelper.WriteAttribute(sw, "color2", this.color2);
129XmlHelper.WriteAttribute(sw, "src", this.src);
130XmlHelper.WriteAttribute(sw, "size", this.size);
131XmlHelper.WriteAttribute(sw, "origin", this.origin);
132XmlHelper.WriteAttribute(sw, "position", this.position);
133XmlHelper.WriteAttribute(sw, "aspect", this.aspect.ToString());
134XmlHelper.WriteAttribute(sw, "colors", this.colors);
135XmlHelper.WriteAttribute(sw, "angle", (double)this.angle);
136NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "alignshape", this.alignshape);
137XmlHelper.WriteAttribute(sw, "focus", this.focus);
138XmlHelper.WriteAttribute(sw, "focussize", this.focussize);
139XmlHelper.WriteAttribute(sw, "focusposition", this.focusposition);
140XmlHelper.WriteAttribute(sw, "method", this.method.ToString());
141NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "recolor", this.recolor);
142NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "rotate", this.rotate);
143sw.Write(">");
144sw.Write(string.Format("</v:{0}>", nodeName));
145}
146
147[XmlAttribute]
148public string id
149{
150get
151{
152return this.idField;
153}
154set
155{
156this.idField = value;
157}
158}
159
160
161[XmlAttribute]
162public ST_FillType type
163{
164get
165{
166return this.typeField;
167}
168set
169{
170this.typeField = value;
171}
172}
173
174
175[XmlIgnore]
176public bool typeSpecified
177{
178get
179{
180return this.typeFieldSpecified;
181}
182set
183{
184this.typeFieldSpecified = value;
185}
186}
187
188
189[XmlAttribute]
190public ST_TrueFalse on
191{
192get
193{
194return this.onField;
195}
196set
197{
198this.onField = value;
199}
200}
201
202
203[XmlIgnore]
204public bool onSpecified
205{
206get
207{
208return this.onFieldSpecified;
209}
210set
211{
212this.onFieldSpecified = value;
213}
214}
215
216
217[XmlAttribute]
218public string color
219{
220get
221{
222return this.colorField;
223}
224set
225{
226this.colorField = value;
227}
228}
229
230
231[XmlAttribute]
232public string opacity
233{
234get
235{
236return this.opacityField;
237}
238set
239{
240this.opacityField = value;
241}
242}
243
244
245[XmlAttribute]
246public string color2
247{
248get
249{
250return this.color2Field;
251}
252set
253{
254this.color2Field = value;
255}
256}
257
258
259[XmlAttribute]
260public string src
261{
262get
263{
264return this.srcField;
265}
266set
267{
268this.srcField = value;
269}
270}
271
272
273[XmlAttribute]
274public string size
275{
276get
277{
278return this.sizeField;
279}
280set
281{
282this.sizeField = value;
283}
284}
285
286
287[XmlAttribute]
288public string origin
289{
290get
291{
292return this.originField;
293}
294set
295{
296this.originField = value;
297}
298}
299
300
301[XmlAttribute]
302public string position
303{
304get
305{
306return this.positionField;
307}
308set
309{
310this.positionField = value;
311}
312}
313
314
315[XmlAttribute]
316public ST_ImageAspect aspect
317{
318get
319{
320return this.aspectField;
321}
322set
323{
324this.aspectField = value;
325}
326}
327
328
329[XmlIgnore]
330public bool aspectSpecified
331{
332get
333{
334return this.aspectFieldSpecified;
335}
336set
337{
338this.aspectFieldSpecified = value;
339}
340}
341
342
343[XmlAttribute]
344public string colors
345{
346get
347{
348return this.colorsField;
349}
350set
351{
352this.colorsField = value;
353}
354}
355
356
357[XmlAttribute]
358public decimal angle
359{
360get
361{
362return this.angleField;
363}
364set
365{
366this.angleField = value;
367}
368}
369
370
371[XmlIgnore]
372public bool angleSpecified
373{
374get
375{
376return this.angleFieldSpecified;
377}
378set
379{
380this.angleFieldSpecified = value;
381}
382}
383
384
385[XmlAttribute]
386public ST_TrueFalse alignshape
387{
388get
389{
390return this.alignshapeField;
391}
392set
393{
394this.alignshapeField = value;
395}
396}
397
398
399[XmlIgnore]
400public bool alignshapeSpecified
401{
402get
403{
404return this.alignshapeFieldSpecified;
405}
406set
407{
408this.alignshapeFieldSpecified = value;
409}
410}
411
412
413[XmlAttribute]
414public string focus
415{
416get
417{
418return this.focusField;
419}
420set
421{
422this.focusField = value;
423}
424}
425
426
427[XmlAttribute]
428public string focussize
429{
430get
431{
432return this.focussizeField;
433}
434set
435{
436this.focussizeField = value;
437}
438}
439
440
441[XmlAttribute]
442public string focusposition
443{
444get
445{
446return this.focuspositionField;
447}
448set
449{
450this.focuspositionField = value;
451}
452}
453
454
455[XmlAttribute]
456public ST_FillMethod method
457{
458get
459{
460return this.methodField;
461}
462set
463{
464this.methodField = value;
465}
466}
467
468
469[XmlIgnore]
470public bool methodSpecified
471{
472get
473{
474return this.methodFieldSpecified;
475}
476set
477{
478this.methodFieldSpecified = value;
479}
480}
481
482
483[XmlAttribute]
484public ST_TrueFalse recolor
485{
486get
487{
488return this.recolorField;
489}
490set
491{
492this.recolorField = value;
493}
494}
495
496
497[XmlIgnore]
498public bool recolorSpecified
499{
500get
501{
502return this.recolorFieldSpecified;
503}
504set
505{
506this.recolorFieldSpecified = value;
507}
508}
509
510
511[XmlAttribute]
512public ST_TrueFalse rotate
513{
514get
515{
516return this.rotateField;
517}
518set
519{
520this.rotateField = value;
521}
522}
523
524
525[XmlIgnore]
526public bool rotateSpecified
527{
528get
529{
530return this.rotateFieldSpecified;
531}
532set
533{
534this.rotateFieldSpecified = value;
535}
536}
537}
538
539
540[Serializable]
541[XmlType(Namespace = "urn:schemas-microsoft-com:vml")]
542public enum ST_FillType
543{
544
545
546solid,
547
548
549gradient,
550
551
552gradientRadial,
553
554
555tile,
556
557
558pattern,
559
560
561frame,
562}
563
564
565[Serializable]
566[XmlType(Namespace = "urn:schemas-microsoft-com:vml")]
567public enum ST_TrueFalse
568{
569
570f,
571t,
572@true,
573@false,
574}
575
576
577[Serializable]
578[XmlType(Namespace = "urn:schemas-microsoft-com:vml")]
579public enum ST_ImageAspect
580{
581
582
583ignore,
584
585
586atMost,
587
588
589atLeast,
590}
591
592
593[Serializable]
594[XmlType(Namespace = "urn:schemas-microsoft-com:vml")]
595public enum ST_FillMethod
596{
597
598
599none,
600
601
602linear,
603
604
605sigma,
606
607
608any,
609
610
611[XmlEnum("linear sigma")]
612linearsigma,
613}
614[Serializable]
615
616[System.ComponentModel.DesignerCategory("code")]
617[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
618[XmlRoot("shape",Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
619public class CT_Shape {
620
621
622private string typeField;
623
624private string adjField;
625private string styleField;
626private CT_Path pathField;
627
628private string equationxmlField;
629
630private string idField;
631private string fillcolorField;
632private ST_InsetMode insetmodeField;
633
634private ST_TrueFalse strokedField;
635private string wrapcoordsField;
636
637public static CT_Shape Parse(XmlNode node, XmlNamespaceManager namespaceManager)
638{
639if (node == null)
640return null;
641CT_Shape ctObj = new CT_Shape();
642ctObj.wrapcoords = XmlHelper.ReadString(node.Attributes["wrapcoords"]);
643if (node.Attributes["stroked"] != null)
644ctObj.stroked = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["stroked"]);
645ctObj.spid = XmlHelper.ReadString(node.Attributes["o:spid"]);
646ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
647ctObj.fillcolor = XmlHelper.ReadString(node.Attributes["fillcolor"]);
648if (node.Attributes["o:insetmode"] != null)
649ctObj.insetmode = (ST_InsetMode)Enum.Parse(typeof(ST_InsetMode), node.Attributes["o:insetmode"].Value);
650ctObj.type = XmlHelper.ReadString(node.Attributes["type"]);
651ctObj.adj = XmlHelper.ReadString(node.Attributes["adj"]);
652ctObj.equationxml = XmlHelper.ReadString(node.Attributes["equationxml"]);
653ctObj.style = XmlHelper.ReadString(node.Attributes["style"]);
654ctObj.ClientData = new List<CT_ClientData>();
655foreach (XmlNode childNode in node.ChildNodes)
656{
657if (childNode.LocalName == "textdata")
658ctObj.textdata = CT_Rel.Parse(childNode, namespaceManager);
659else if (childNode.LocalName == "anchorlock")
660ctObj.anchorlock = new CT_AnchorLock();
661else if (childNode.LocalName == "borderright")
662ctObj.borderright = CT_Border.Parse(childNode, namespaceManager);
663else if (childNode.LocalName == "borderleft")
664ctObj.borderleft = CT_Border.Parse(childNode, namespaceManager);
665else if (childNode.LocalName == "borderbottom")
666ctObj.borderbottom = CT_Border.Parse(childNode, namespaceManager);
667else if (childNode.LocalName == "bordertop")
668ctObj.bordertop = CT_Border.Parse(childNode, namespaceManager);
669else if (childNode.LocalName == "iscomment")
670ctObj.iscomment = new CT_Empty();
671else if (childNode.LocalName == "stroke")
672ctObj.stroke = CT_Stroke.Parse(childNode, namespaceManager);
673else if (childNode.LocalName == "wrap")
674ctObj.wrap = CT_Wrap.Parse(childNode, namespaceManager);
675else if (childNode.LocalName == "textbox")
676ctObj.textbox = CT_Textbox.Parse(childNode, namespaceManager);
677else if (childNode.LocalName == "fill")
678ctObj.fill = CT_Fill.Parse(childNode, namespaceManager);
679else if (childNode.LocalName == "formulas")
680ctObj.formulas = CT_Formulas.Parse(childNode, namespaceManager);
681else if (childNode.LocalName == "handles")
682ctObj.handles = CT_Handles.Parse(childNode, namespaceManager);
683else if (childNode.LocalName == "imagedata")
684ctObj.imagedata = CT_ImageData.Parse(childNode, namespaceManager);
685else if (childNode.LocalName == "lock")
686ctObj.@lock = CT_Lock.Parse(childNode, namespaceManager);
687else if (childNode.LocalName == "shadow")
688ctObj.shadow = CT_Shadow.Parse(childNode, namespaceManager);
689else if (childNode.LocalName == "path")
690ctObj.path = CT_Path.Parse(childNode, namespaceManager);
691else if (childNode.LocalName == "textpath")
692ctObj.textpath = CT_TextPath.Parse(childNode, namespaceManager);
693else if (childNode.LocalName == "ClientData")
694ctObj.ClientData.Add(CT_ClientData.Parse(childNode, namespaceManager));
695}
696return ctObj;
697}
698
699
700
701public void Write(StreamWriter sw, string nodeName)
702{
703sw.Write(string.Format("<v:{0}", nodeName));
704XmlHelper.WriteAttribute(sw, "id", this.id);
705XmlHelper.WriteAttribute(sw, "o:spid", this.spid);
706XmlHelper.WriteAttribute(sw, "type", this.type);
707XmlHelper.WriteAttribute(sw, "style", this.style);
708XmlHelper.WriteAttribute(sw, "fillcolor", this.fillcolor);
709NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "stroked", this.stroked);
710XmlHelper.WriteAttribute(sw, "wrapcoords", this.wrapcoords);
711XmlHelper.WriteAttribute(sw, "o:insetmode", this.insetmode.ToString());
712XmlHelper.WriteAttribute(sw, "adj", this.adj);
713XmlHelper.WriteAttribute(sw, "equationxml", this.equationxml);
714sw.Write(">");
715
716if (this.iscomment != null)
717sw.Write("<iscomment/>");
718if (this.stroke != null)
719this.stroke.Write(sw, "stroke");
720if (this.wrap != null)
721this.wrap.Write(sw, "wrap");
722if (this.fill != null)
723this.fill.Write(sw, "fill");
724if (this.formulas != null)
725this.formulas.Write(sw, "formulas");
726if (this.handles != null)
727this.handles.Write(sw, "handles");
728if (this.imagedata != null)
729this.imagedata.Write(sw, "imagedata");
730if (this.@lock != null)
731this.@lock.Write(sw, "lock");
732if (this.shadow != null)
733this.shadow.Write(sw, "shadow");
734if (this.path != null)
735this.path.Write(sw, "path");
736if (this.textpath != null)
737this.textpath.Write(sw, "textpath");
738if (this.textbox != null)
739this.textbox.Write(sw, "textbox");
740if (this.textdata != null)
741this.textdata.Write(sw, "textdata");
742if (this.anchorlock != null)
743sw.Write("<w:anchorlock/>");
744if (this.borderright != null)
745this.borderright.Write(sw, "borderright");
746if (this.borderleft != null)
747this.borderleft.Write(sw, "borderleft");
748if (this.borderbottom != null)
749this.borderbottom.Write(sw, "borderbottom");
750if (this.bordertop != null)
751this.bordertop.Write(sw, "bordertop");
752if (this.ClientData != null)
753{
754foreach (CT_ClientData x in this.ClientData)
755{
756x.Write(sw, "ClientData");
757}
758}
759sw.Write(string.Format("</v:{0}>", nodeName));
760}
761
762[XmlAttribute]
763public string wrapcoords
764{
765get { return wrapcoordsField; }
766set { wrapcoordsField = value; }
767}
768[XmlAttribute]
769[DefaultValue(ST_TrueFalse.t)]
770public ST_TrueFalse stroked
771{
772get { return strokedField; }
773set { strokedField = value; }
774}
775
776
777//static XmlSerializer serializer = new XmlSerializer(typeof(CT_Shape), "urn:schemas-microsoft-com:vml");
778//public static CT_Shape Parse(string xmltext)
779//{
780// TextReader tr = new StringReader(xmltext);
781// CT_Shape obj = (CT_Shape)serializer.Deserialize(tr);
782// return obj;
783//}
784private string spidField;
785
786[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
787public string spid
788{
789get { return this.spidField; }
790set { this.spidField = value; }
791}
792[XmlAttribute]
793public string id
794{
795get { return idField; }
796set { idField = value; }
797}
798
799[XmlAttribute]
800public string fillcolor
801{
802get { return fillcolorField; }
803set { fillcolorField = value; }
804}
805
806[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
807[DefaultValue(ST_InsetMode.auto)]
808public ST_InsetMode insetmode
809{
810get { return insetmodeField; }
811set { insetmodeField = value; }
812}
813
814public CT_Textbox AddNewTextbox()
815{
816textboxField = new CT_Textbox();
817return this.textboxField;
818}
819
820private CT_Wrap wrapField;
821private CT_Fill fillField;
822private CT_Formulas formulasField;
823private CT_Handles handlesField;
824private CT_ImageData imagedataField;
825private CT_Stroke strokeField;
826private CT_Shadow shadowField;
827private CT_Textbox textboxField;
828private CT_TextPath textpathField;
829private CT_Empty iscommentField;
830private CT_Lock lockField;
831private CT_Border bordertopField;
832private CT_Border borderrightField;
833private CT_Border borderleftField;
834private CT_Border borderbottomField;
835private CT_AnchorLock anchorlockField;
836private CT_Rel textdataField;
837
838[XmlElement(Namespace = "urn:schemas-microsoft-com:office:powerpoint")]
839public CT_Rel textdata
840{
841get { return this.textdataField; }
842set { this.textdataField = value; }
843}
844[XmlElement(Namespace = "urn:schemas-microsoft-com:office:word")]
845public CT_AnchorLock anchorlock
846{
847get { return this.anchorlockField; }
848set { this.anchorlockField = value; }
849}
850[XmlElement(Namespace = "urn:schemas-microsoft-com:office:word")]
851public CT_Border borderright
852{
853get { return this.borderrightField; }
854set { this.borderrightField = value; }
855}
856[XmlElement(Namespace = "urn:schemas-microsoft-com:office:word")]
857public CT_Border borderleft
858{
859get { return this.borderleftField; }
860set { this.borderleftField = value; }
861}
862[XmlElement(Namespace = "urn:schemas-microsoft-com:office:word")]
863public CT_Border borderbottom
864{
865get { return this.borderbottomField; }
866set { this.borderbottomField = value; }
867}
868[XmlElement(Namespace = "urn:schemas-microsoft-com:office:word")]
869public CT_Border bordertop
870{
871get { return this.bordertopField; }
872set { this.bordertopField = value; }
873}
874[XmlElement(Namespace = "urn:schemas-microsoft-com:office:powerpoint")]
875public CT_Empty iscomment
876{
877get { return this.iscommentField; }
878set { this.iscommentField = value; }
879}
880[XmlElement]
881public CT_Stroke stroke
882{
883get { return this.strokeField; }
884set { this.strokeField = value; }
885}
886
887
888[XmlElement(Namespace="urn:schemas-microsoft-com:office:word")]
889public CT_Wrap wrap
890{
891get { return this.wrapField; }
892set { this.wrapField = value; }
893}
894[XmlElement]
895public CT_Textbox textbox
896{
897get { return this.textboxField; }
898set { this.textboxField = value; }
899}
900[XmlElement]
901public CT_Fill fill
902{
903get { return this.fillField; }
904set { this.fillField = value; }
905}
906[XmlElement]
907public CT_Formulas formulas
908{
909get { return this.formulasField; }
910set { this.formulasField = value; }
911}
912[XmlElement]
913public CT_Handles handles
914{
915get { return this.handlesField; }
916set { this.handlesField = value; }
917}
918[XmlElement]
919public CT_ImageData imagedata
920{
921get { return this.imagedataField; }
922set { this.imagedataField = value; }
923}
924[XmlElement(ElementName = "lock", Namespace = "urn:schemas-microsoft-com:office:office")]
925public CT_Lock @lock
926{
927get
928{
929return this.lockField;
930}
931set
932{
933this.lockField = value;
934}
935}
936
937[XmlElement]
938public CT_Shadow shadow
939{
940get { return this.shadowField; }
941set { this.shadowField = value; }
942}
943
944public CT_Fill AddNewFill()
945{
946this.fillField=new CT_Fill();
947return this.fillField;
948}
949public CT_Shadow AddNewShadow()
950{
951this.shadowField = new CT_Shadow();
952return this.shadowField;
953}
954public CT_Path AddNewPath()
955{
956this.pathField = new CT_Path();
957return this.pathField;
958}
959
960List<CT_ClientData> clientDataField = null;
961public List<CT_ClientData> ClientData
962{
963get
964{
965return clientDataField;
966}
967set
968{
969this.clientDataField = value;
970}
971}
972public CT_ClientData GetClientDataArray(int index)
973{
974return clientDataField != null ? this.clientDataField[index] : null;
975}
976public int sizeOfClientDataArray()
977{
978if (clientDataField == null)
979return 0;
980return clientDataField.Count;
981}
982public CT_ClientData AddNewClientData()
983{
984CT_ClientData cd=new CT_ClientData();
985if (clientDataField == null)
986this.clientDataField = new List<CT_ClientData>();
987this.clientDataField.Add(cd);
988return cd;
989}
990
991
992[XmlAttribute]
993public string type {
994get {
995return this.typeField;
996}
997set {
998this.typeField = value;
999}
1000}
1001
1002
1003[XmlAttribute]
1004public string adj {
1005get {
1006return this.adjField;
1007}
1008set {
1009this.adjField = value;
1010}
1011}
1012
1013
1014[XmlElement]
1015public CT_Path path {
1016get {
1017return this.pathField;
1018}
1019set {
1020this.pathField = value;
1021}
1022}
1023
1024
1025[XmlAttribute]
1026public string equationxml {
1027get {
1028return this.equationxmlField;
1029}
1030set {
1031this.equationxmlField = value;
1032}
1033}
1034[XmlAttribute]
1035public string style
1036{
1037get
1038{
1039return this.styleField;
1040}
1041set
1042{
1043this.styleField = value;
1044}
1045}
1046//internal static XmlSerializerNamespaces namespaces = new XmlSerializerNamespaces(new XmlQualifiedName[] {
1047// new XmlQualifiedName("o", "urn:schemas-microsoft-com:office:office"),
1048// new XmlQualifiedName("x", "urn:schemas-microsoft-com:office:excel"),
1049// new XmlQualifiedName("v", "urn:schemas-microsoft-com:vml")
1050//});
1051
1052//public override string ToString()
1053//{
1054// using (StringWriter stringWriter = new StringWriter())
1055// {
1056// XmlWriterSettings settings = new XmlWriterSettings();
1057
1058// settings.Encoding = Encoding.UTF8;
1059// settings.OmitXmlDeclaration = true;
1060
1061// using (XmlWriter writer = XmlWriter.Create(stringWriter, settings))
1062// {
1063// serializer.Serialize(writer, this, namespaces);
1064// }
1065// return stringWriter.ToString();
1066// }
1067//}
1068[XmlElement]
1069public CT_TextPath textpath
1070{
1071get
1072{
1073return this.textpathField;
1074}
1075set
1076{
1077this.textpathField = value;
1078}
1079}
1080
1081public void Set(CT_Shape shape)
1082{
1083this.adj = shape.adj;
1084this.anchorlock = shape.anchorlock;
1085this.borderbottom = shape.borderbottom;
1086this.borderleft = shape.borderleft;
1087this.borderright = shape.borderright;
1088this.bordertop = shape.bordertop;
1089this.equationxml = shape.equationxml;
1090this.fill = shape.fill;
1091this.fillcolor = shape.fillcolor;
1092this.formulas = shape.formulas;
1093this.handles = shape.handles;
1094this.imagedata = shape.imagedata;
1095this.insetmode = shape.insetmode;
1096this.iscomment = shape.iscomment;
1097this.@lock = shape.@lock;
1098this.path = shape.path;
1099this.shadow = shape.shadow;
1100this.spid = shape.spid;
1101this.stroke = shape.stroke;
1102this.stroked = shape.stroked;
1103this.style = shape.style;
1104this.textbox = shape.textbox;
1105this.textdata = shape.textdata;
1106this.textpath = shape.textpath;
1107this.wrap = shape.wrap;
1108this.wrapcoords = shape.wrapcoords;
1109}
1110
1111public CT_TextPath AddNewTextpath()
1112{
1113this.textpathField = new CT_TextPath();
1114return this.textpathField;
1115}
1116
1117public int SizeOfClientDataArray()
1118{
1119return clientDataField == null ? 0 : clientDataField.Count;
1120}
1121}
1122
1123
1124[Serializable]
1125
1126[System.ComponentModel.DesignerCategory("code")]
1127[XmlType(Namespace = "urn:schemas-microsoft-com:vml")]
1128public class CT_Formulas
1129{
1130private List<CT_F> fField = null; // 0..*
1131
1132
1133[XmlElement("f", Form = XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
1134public List<CT_F> f
1135{
1136get { return this.fField; }
1137set { this.fField = value; }
1138}
1139[XmlIgnore]
1140public bool fSpecified
1141{
1142get { return (null != fField); }
1143}
1144
1145public CT_F AddNewF()
1146{
1147if (this.fField == null)
1148this.fField = new List<CT_F>();
1149this.fField.Add(new CT_F());
1150return this.fField[this.fField.Count - 1];
1151}
1152
1153public static CT_Formulas Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1154{
1155if (node == null)
1156return null;
1157CT_Formulas ctObj = new CT_Formulas();
1158ctObj.f = new List<CT_F>();
1159foreach (XmlNode childNode in node.ChildNodes)
1160{
1161if (childNode.LocalName == "f")
1162ctObj.f.Add(CT_F.Parse(childNode, namespaceManager));
1163}
1164return ctObj;
1165}
1166
1167
1168
1169internal void Write(StreamWriter sw, string nodeName)
1170{
1171sw.Write(string.Format("<v:{0}", nodeName));
1172sw.Write(">");
1173if (this.f != null)
1174{
1175foreach (CT_F x in this.f)
1176{
1177x.Write(sw, "f");
1178}
1179}
1180sw.Write(string.Format("</v:{0}>", nodeName));
1181}
1182
1183}
1184
1185
1186[Serializable]
1187
1188[System.ComponentModel.DesignerCategory("code")]
1189[XmlType(Namespace = "urn:schemas-microsoft-com:vml")]
1190public class CT_F
1191{
1192private string eqnField = null;
1193
1194[XmlAttribute]
1195public string eqn
1196{
1197get { return this.eqnField; }
1198set { this.eqnField = value; }
1199}
1200[XmlIgnore]
1201public bool eqnSpecified
1202{
1203get { return (null != eqnField); }
1204}
1205public static CT_F Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1206{
1207if (node == null)
1208return null;
1209CT_F ctObj = new CT_F();
1210ctObj.eqn = XmlHelper.ReadString(node.Attributes["eqn"]);
1211return ctObj;
1212}
1213
1214
1215
1216internal void Write(StreamWriter sw, string nodeName)
1217{
1218sw.Write(string.Format("<v:{0}", nodeName));
1219XmlHelper.WriteAttribute(sw, "eqn", this.eqn);
1220sw.Write("/>");
1221}
1222
1223}
1224
1225
1226[Serializable]
1227
1228[System.ComponentModel.DesignerCategory("code")]
1229[XmlType(Namespace = "urn:schemas-microsoft-com:vml")]
1230public class CT_Handles
1231{
1232
1233private List<CT_H> hField = null;
1234
1235[XmlElement("h")]
1236public List<CT_H> h
1237{
1238get { return this.hField; }
1239set { this.hField = value; }
1240}
1241[XmlIgnore]
1242public bool hSpecified
1243{
1244get { return (null != hField); }
1245}
1246
1247public CT_H AddNewH()
1248{
1249if (hField == null)
1250hField = new List<CT_H>();
1251CT_H h = new CT_H();
1252hField.Add(h);
1253return h;
1254}
1255
1256public static CT_Handles Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1257{
1258if (node == null)
1259return null;
1260CT_Handles ctObj = new CT_Handles();
1261ctObj.h = new List<CT_H>();
1262foreach (XmlNode childNode in node.ChildNodes)
1263{
1264if (childNode.LocalName == "h")
1265ctObj.h.Add(CT_H.Parse(childNode, namespaceManager));
1266}
1267return ctObj;
1268}
1269
1270
1271
1272internal void Write(StreamWriter sw, string nodeName)
1273{
1274sw.Write(string.Format("<v:{0}", nodeName));
1275sw.Write(">");
1276if (this.h != null)
1277{
1278foreach (CT_H x in this.h)
1279{
1280x.Write(sw, "h");
1281}
1282}
1283sw.Write(string.Format("</v:{0}>", nodeName));
1284}
1285
1286}
1287
1288
1289[Serializable]
1290
1291[System.ComponentModel.DesignerCategory("code")]
1292[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
1293public class CT_H {
1294
1295private string positionField;
1296
1297private string polarField;
1298
1299private string mapField;
1300
1301private ST_TrueFalse invxField;
1302
1303private bool invxFieldSpecified;
1304
1305private ST_TrueFalse invyField;
1306
1307private bool invyFieldSpecified; // TODO remove
1308
1309private ST_TrueFalseBlank switchField;
1310
1311private bool switchFieldSpecified;
1312
1313private string xrangeField;
1314
1315private string yrangeField;
1316
1317private string radiusrangeField;
1318
1319
1320[XmlAttribute]
1321public string position {
1322get {
1323return this.positionField;
1324}
1325set {
1326this.positionField = value;
1327}
1328}
1329
1330
1331[XmlAttribute]
1332public string polar {
1333get {
1334return this.polarField;
1335}
1336set {
1337this.polarField = value;
1338}
1339}
1340
1341
1342[XmlAttribute]
1343public string map {
1344get {
1345return this.mapField;
1346}
1347set {
1348this.mapField = value;
1349}
1350}
1351
1352
1353[XmlAttribute]
1354public ST_TrueFalse invx {
1355get {
1356return this.invxField;
1357}
1358set {
1359this.invxField = value;
1360}
1361}
1362
1363
1364[XmlIgnore]
1365public bool invxSpecified {
1366get {
1367return this.invxFieldSpecified;
1368}
1369set {
1370this.invxFieldSpecified = value;
1371}
1372}
1373
1374
1375[XmlAttribute]
1376public ST_TrueFalse invy {
1377get {
1378return this.invyField;
1379}
1380set {
1381this.invyField = value;
1382}
1383}
1384
1385
1386[XmlIgnore]
1387public bool invySpecified {
1388get {
1389return this.invyFieldSpecified;
1390}
1391set {
1392this.invyFieldSpecified = value;
1393}
1394}
1395
1396
1397[XmlAttribute]
1398public ST_TrueFalseBlank @switch {
1399get {
1400return this.switchField;
1401}
1402set {
1403this.switchField = value;
1404}
1405}
1406
1407
1408[XmlIgnore]
1409public bool switchSpecified {
1410get {
1411return this.switchFieldSpecified;
1412}
1413set {
1414this.switchFieldSpecified = value;
1415}
1416}
1417
1418
1419[XmlAttribute]
1420public string xrange {
1421get {
1422return this.xrangeField;
1423}
1424set {
1425this.xrangeField = value;
1426}
1427}
1428
1429
1430[XmlAttribute]
1431public string yrange {
1432get {
1433return this.yrangeField;
1434}
1435set {
1436this.yrangeField = value;
1437}
1438}
1439
1440
1441[XmlAttribute]
1442public string radiusrange {
1443get {
1444return this.radiusrangeField;
1445}
1446set {
1447this.radiusrangeField = value;
1448}
1449}
1450public static CT_H Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1451{
1452if (node == null)
1453return null;
1454CT_H ctObj = new CT_H();
1455ctObj.position = XmlHelper.ReadString(node.Attributes["position"]);
1456ctObj.polar = XmlHelper.ReadString(node.Attributes["polar"]);
1457ctObj.map = XmlHelper.ReadString(node.Attributes["map"]);
1458if (node.Attributes["invx"] != null)
1459ctObj.invx = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["invx"]);
1460if (node.Attributes["invy"] != null)
1461ctObj.invy = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["invy"]);
1462if (node.Attributes["switch"] != null)
1463ctObj.@switch = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalseBlank(node.Attributes["switch"]);
1464ctObj.xrange = XmlHelper.ReadString(node.Attributes["xrange"]);
1465ctObj.yrange = XmlHelper.ReadString(node.Attributes["yrange"]);
1466ctObj.radiusrange = XmlHelper.ReadString(node.Attributes["radiusrange"]);
1467return ctObj;
1468}
1469
1470
1471
1472internal void Write(StreamWriter sw, string nodeName)
1473{
1474sw.Write(string.Format("<v:{0}", nodeName));
1475XmlHelper.WriteAttribute(sw, "position", this.position);
1476XmlHelper.WriteAttribute(sw, "polar", this.polar);
1477XmlHelper.WriteAttribute(sw, "map", this.map);
1478NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "invx", this.invx);
1479NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "invy", this.invy);
1480NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "switch", this.@switch);
1481XmlHelper.WriteAttribute(sw, "xrange", this.xrange);
1482XmlHelper.WriteAttribute(sw, "yrange", this.yrange);
1483XmlHelper.WriteAttribute(sw, "radiusrange", this.radiusrange);
1484sw.Write(">");
1485sw.Write(string.Format("</v:{0}>", nodeName));
1486}
1487}
1488
1489
1490[Serializable]
1491
1492[System.ComponentModel.DesignerCategory("code")]
1493[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
1494[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
1495public class CT_ImageData {
1496
1497
1498private string relidField;
1499private string titleField;
1500private string oleidField;
1501private string movieField;
1502private string idField;
1503
1504private string srcField;
1505
1506private string cropleftField;
1507
1508private string croptopField;
1509
1510private string croprightField;
1511
1512private string cropbottomField;
1513
1514private string gainField;
1515
1516private string blacklevelField;
1517
1518private string gammaField;
1519
1520private ST_TrueFalse grayscaleField;
1521
1522private bool grayscaleFieldSpecified;
1523
1524private ST_TrueFalse bilevelField;
1525
1526private bool bilevelFieldSpecified;
1527
1528private string chromakeyField;
1529
1530private string embosscolorField;
1531
1532private string recolortargetField;
1533
1534//private string id1Field;
1535
1536private string pictField;
1537
1538private string hrefField;
1539
1540public static CT_ImageData Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1541{
1542if (node == null)
1543return null;
1544CT_ImageData ctObj = new CT_ImageData();
1545ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
1546ctObj.src = XmlHelper.ReadString(node.Attributes["src"]);
1547ctObj.cropleft = XmlHelper.ReadString(node.Attributes["cropleft"]);
1548ctObj.croptop = XmlHelper.ReadString(node.Attributes["croptop"]);
1549ctObj.cropright = XmlHelper.ReadString(node.Attributes["cropright"]);
1550ctObj.cropbottom = XmlHelper.ReadString(node.Attributes["cropbottom"]);
1551ctObj.gain = XmlHelper.ReadString(node.Attributes["gain"]);
1552ctObj.blacklevel = XmlHelper.ReadString(node.Attributes["blacklevel"]);
1553ctObj.gamma = XmlHelper.ReadString(node.Attributes["gamma"]);
1554if (node.Attributes["grayscale"] != null)
1555ctObj.grayscale = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["grayscale"]);
1556if (node.Attributes["bilevel"] != null)
1557ctObj.bilevel = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["bilevel"]);
1558ctObj.chromakey = XmlHelper.ReadString(node.Attributes["chromakey"]);
1559ctObj.embosscolor = XmlHelper.ReadString(node.Attributes["embosscolor"]);
1560ctObj.recolortarget = XmlHelper.ReadString(node.Attributes["recolortarget"]);
1561ctObj.pict = XmlHelper.ReadString(node.Attributes["pict"]);
1562ctObj.href = XmlHelper.ReadString(node.Attributes["r:href"]);
1563ctObj.relid = XmlHelper.ReadString(node.Attributes["o:relid"]);
1564ctObj.title = XmlHelper.ReadString(node.Attributes["o:title"]);
1565ctObj.movie = XmlHelper.ReadString(node.Attributes["o:movie"]);
1566ctObj.oleid = XmlHelper.ReadString(node.Attributes["o:oleid"]);
1567return ctObj;
1568}
1569
1570
1571
1572internal void Write(StreamWriter sw, string nodeName)
1573{
1574sw.Write(string.Format("<v:{0}", nodeName));
1575XmlHelper.WriteAttribute(sw, "id", this.id);
1576XmlHelper.WriteAttribute(sw, "src", this.src);
1577XmlHelper.WriteAttribute(sw, "cropleft", this.cropleft);
1578XmlHelper.WriteAttribute(sw, "croptop", this.croptop);
1579XmlHelper.WriteAttribute(sw, "cropright", this.cropright);
1580XmlHelper.WriteAttribute(sw, "cropbottom", this.cropbottom);
1581XmlHelper.WriteAttribute(sw, "gain", this.gain);
1582XmlHelper.WriteAttribute(sw, "blacklevel", this.blacklevel);
1583XmlHelper.WriteAttribute(sw, "gamma", this.gamma);
1584NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "grayscale", this.grayscale);
1585NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "bilevel", this.bilevel);
1586XmlHelper.WriteAttribute(sw, "chromakey", this.chromakey);
1587XmlHelper.WriteAttribute(sw, "embosscolor", this.embosscolor);
1588XmlHelper.WriteAttribute(sw, "recolortarget", this.recolortarget);
1589XmlHelper.WriteAttribute(sw, "pict", this.pict);
1590XmlHelper.WriteAttribute(sw, "r:href", this.href);
1591XmlHelper.WriteAttribute(sw, "o:relid", this.relid);
1592XmlHelper.WriteAttribute(sw, "o:title", this.title);
1593XmlHelper.WriteAttribute(sw, "o:movie", this.movie);
1594XmlHelper.WriteAttribute(sw, "o:oleid", this.oleid);
1595sw.Write("/>");
1596}
1597
1598[XmlAttribute]
1599public string id
1600{
1601get {
1602return this.idField;
1603}
1604set {
1605this.idField = value;
1606}
1607}
1608
1609
1610[XmlAttribute]
1611public string src {
1612get {
1613return this.srcField;
1614}
1615set {
1616this.srcField = value;
1617}
1618}
1619
1620
1621[XmlAttribute]
1622public string cropleft {
1623get {
1624return this.cropleftField;
1625}
1626set {
1627this.cropleftField = value;
1628}
1629}
1630
1631
1632[XmlAttribute]
1633public string croptop {
1634get {
1635return this.croptopField;
1636}
1637set {
1638this.croptopField = value;
1639}
1640}
1641
1642
1643[XmlAttribute]
1644public string cropright {
1645get {
1646return this.croprightField;
1647}
1648set {
1649this.croprightField = value;
1650}
1651}
1652
1653
1654[XmlAttribute]
1655public string cropbottom {
1656get {
1657return this.cropbottomField;
1658}
1659set {
1660this.cropbottomField = value;
1661}
1662}
1663
1664
1665[XmlAttribute]
1666public string gain {
1667get {
1668return this.gainField;
1669}
1670set {
1671this.gainField = value;
1672}
1673}
1674
1675
1676[XmlAttribute]
1677public string blacklevel {
1678get {
1679return this.blacklevelField;
1680}
1681set {
1682this.blacklevelField = value;
1683}
1684}
1685
1686
1687[XmlAttribute]
1688public string gamma {
1689get {
1690return this.gammaField;
1691}
1692set {
1693this.gammaField = value;
1694}
1695}
1696
1697
1698[XmlAttribute]
1699public ST_TrueFalse grayscale {
1700get {
1701return this.grayscaleField;
1702}
1703set {
1704this.grayscaleField = value;
1705}
1706}
1707
1708
1709[XmlIgnore]
1710public bool grayscaleSpecified {
1711get {
1712return this.grayscaleFieldSpecified;
1713}
1714set {
1715this.grayscaleFieldSpecified = value;
1716}
1717}
1718
1719
1720[XmlAttribute]
1721public ST_TrueFalse bilevel {
1722get {
1723return this.bilevelField;
1724}
1725set {
1726this.bilevelField = value;
1727}
1728}
1729
1730
1731[XmlIgnore]
1732public bool bilevelSpecified {
1733get {
1734return this.bilevelFieldSpecified;
1735}
1736set {
1737this.bilevelFieldSpecified = value;
1738}
1739}
1740
1741
1742[XmlAttribute]
1743public string chromakey {
1744get {
1745return this.chromakeyField;
1746}
1747set {
1748this.chromakeyField = value;
1749}
1750}
1751
1752
1753[XmlAttribute]
1754public string embosscolor {
1755get {
1756return this.embosscolorField;
1757}
1758set {
1759this.embosscolorField = value;
1760}
1761}
1762
1763
1764[XmlAttribute]
1765public string recolortarget {
1766get {
1767return this.recolortargetField;
1768}
1769set {
1770this.recolortargetField = value;
1771}
1772}
1773
1774
1775[XmlAttribute]//(Form=System.Xml.Schema.XmlSchemaForm.Qualified, Namespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships")]
1776public string pict {
1777get {
1778return this.pictField;
1779}
1780set {
1781this.pictField = value;
1782}
1783}
1784
1785
1786[XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, Namespace="http://schemas.openxmlformats.org/officeDocument/2006/relationships")]
1787public string href {
1788get {
1789return this.hrefField;
1790}
1791set {
1792this.hrefField = value;
1793}
1794}
1795
1796[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
1797public string relid
1798{
1799get
1800{
1801return this.relidField;
1802}
1803set
1804{
1805this.relidField = value;
1806}
1807}
1808[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
1809public string title
1810{
1811get
1812{
1813return this.titleField;
1814}
1815set
1816{
1817this.titleField = value;
1818}
1819}
1820[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
1821public string movie
1822{
1823get
1824{
1825return this.movieField;
1826}
1827set
1828{
1829this.movieField = value;
1830}
1831}
1832[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
1833public string oleid
1834{
1835get {
1836return this.oleidField;
1837}
1838set
1839{
1840this.oleidField = value;
1841}
1842}
1843}
1844
1845
1846[Serializable]
1847
1848[System.ComponentModel.DesignerCategory("code")]
1849[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
1850[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
1851public class CT_Path {
1852
1853private string idField;
1854
1855private string vField;
1856
1857private string limoField;
1858
1859private string textboxrectField;
1860
1861private ST_TrueFalse fillokField;
1862
1863private bool fillokFieldSpecified;
1864
1865private ST_TrueFalse strokeokField;
1866
1867private bool strokeokFieldSpecified;
1868
1869private ST_TrueFalse shadowokField;
1870
1871private bool shadowokFieldSpecified;
1872
1873private ST_TrueFalse arrowokField;
1874
1875private bool arrowokFieldSpecified;
1876
1877private ST_TrueFalse gradientshapeokField;
1878
1879private bool gradientshapeokFieldSpecified;
1880
1881private ST_TrueFalse textpathokField;
1882
1883private bool textpathokFieldSpecified;
1884
1885private ST_TrueFalse insetpenokField;
1886
1887private bool insetpenokFieldSpecified;
1888
1889private ST_ConnectType connecttypeField;
1890
1891private string connectlocsField;
1892
1893private bool connectlocsFieldSpecified;
1894
1895private string connectanglesField;
1896
1897private bool connectanglesFieldSpecified;
1898
1899private ST_TrueFalse extrusionokField;
1900
1901private bool extrusionokFieldSpecified;
1902
1903[XmlAttribute]
1904public string id
1905{
1906get {
1907return this.idField;
1908}
1909set {
1910this.idField = value;
1911}
1912}
1913[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
1914public ST_ConnectType connecttype
1915{
1916get
1917{
1918return this.connecttypeField;
1919}
1920set
1921{
1922this.connecttypeField = value;
1923}
1924}
1925
1926[XmlAttribute]
1927public string v {
1928get {
1929return this.vField;
1930}
1931set {
1932this.vField = value;
1933}
1934}
1935
1936
1937[XmlAttribute]
1938public string limo {
1939get {
1940return this.limoField;
1941}
1942set {
1943this.limoField = value;
1944}
1945}
1946
1947
1948[XmlAttribute]
1949public string textboxrect {
1950get {
1951return this.textboxrectField;
1952}
1953set {
1954this.textboxrectField = value;
1955}
1956}
1957
1958
1959[XmlAttribute]
1960public ST_TrueFalse fillok {
1961get {
1962return this.fillokField;
1963}
1964set {
1965this.fillokField = value;
1966}
1967}
1968
1969
1970[XmlIgnore]
1971public bool fillokSpecified {
1972get {
1973return this.fillokFieldSpecified;
1974}
1975set {
1976this.fillokFieldSpecified = value;
1977}
1978}
1979
1980
1981[XmlAttribute]
1982public ST_TrueFalse strokeok {
1983get {
1984return this.strokeokField;
1985}
1986set {
1987this.strokeokField = value;
1988}
1989}
1990
1991
1992[XmlIgnore]
1993public bool strokeokSpecified {
1994get {
1995return this.strokeokFieldSpecified;
1996}
1997set {
1998this.strokeokFieldSpecified = value;
1999}
2000}
2001
2002
2003[XmlAttribute]
2004public ST_TrueFalse shadowok {
2005get {
2006return this.shadowokField;
2007}
2008set {
2009this.shadowokField = value;
2010}
2011}
2012
2013
2014[XmlIgnore]
2015public bool shadowokSpecified {
2016get {
2017return this.shadowokFieldSpecified;
2018}
2019set {
2020this.shadowokFieldSpecified = value;
2021}
2022}
2023
2024
2025[XmlAttribute]
2026public ST_TrueFalse arrowok {
2027get {
2028return this.arrowokField;
2029}
2030set {
2031this.arrowokField = value;
2032}
2033}
2034
2035
2036[XmlIgnore]
2037public bool arrowokSpecified {
2038get {
2039return this.arrowokFieldSpecified;
2040}
2041set {
2042this.arrowokFieldSpecified = value;
2043}
2044}
2045
2046
2047[XmlAttribute]
2048public ST_TrueFalse gradientshapeok {
2049get {
2050return this.gradientshapeokField;
2051}
2052set {
2053this.gradientshapeokField = value;
2054}
2055}
2056
2057
2058[XmlIgnore]
2059public bool gradientshapeokSpecified {
2060get {
2061return this.gradientshapeokFieldSpecified;
2062}
2063set {
2064this.gradientshapeokFieldSpecified = value;
2065}
2066}
2067
2068
2069[XmlAttribute]
2070public ST_TrueFalse textpathok {
2071get {
2072return this.textpathokField;
2073}
2074set {
2075this.textpathokField = value;
2076}
2077}
2078
2079
2080[XmlIgnore]
2081public bool textpathokSpecified {
2082get {
2083return this.textpathokFieldSpecified;
2084}
2085set {
2086this.textpathokFieldSpecified = value;
2087}
2088}
2089
2090
2091[XmlAttribute]
2092public ST_TrueFalse insetpenok {
2093get {
2094return this.insetpenokField;
2095}
2096set {
2097this.insetpenokField = value;
2098}
2099}
2100
2101
2102[XmlIgnore]
2103public bool insetpenokSpecified {
2104get {
2105return this.insetpenokFieldSpecified;
2106}
2107set {
2108this.insetpenokFieldSpecified = value;
2109}
2110}
2111[XmlAttribute]
2112public string connectlocs
2113{
2114get
2115{
2116return this.connectlocsField;
2117}
2118set
2119{
2120this.connectlocsField = value;
2121}
2122}
2123[XmlIgnore]
2124public bool connectlocsSpecified
2125{
2126get
2127{
2128return this.connectlocsFieldSpecified;
2129}
2130set
2131{
2132this.connectlocsFieldSpecified = value;
2133}
2134}
2135[XmlAttribute]
2136public string connectangles
2137{
2138get
2139{
2140return this.connectanglesField;
2141}
2142set
2143{
2144this.connectanglesField = value;
2145}
2146}
2147[XmlIgnore]
2148public bool connectanglesSpecified
2149{
2150get
2151{
2152return this.connectanglesFieldSpecified;
2153}
2154set
2155{
2156this.connectanglesFieldSpecified = value;
2157}
2158}
2159[XmlAttribute(Namespace="urn:schemas-microsoft-com:office:office")]
2160public ST_TrueFalse extrusionok
2161{
2162get
2163{
2164return this.extrusionokField;
2165}
2166set
2167{
2168this.extrusionokField = value;
2169}
2170}
2171[XmlIgnore]
2172public bool extrusionokSpecified
2173{
2174get
2175{
2176return this.extrusionokFieldSpecified;
2177}
2178set
2179{
2180this.extrusionokFieldSpecified = value;
2181}
2182}
2183public static CT_Path Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2184{
2185if (node == null)
2186return null;
2187CT_Path ctObj = new CT_Path();
2188ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
2189if (node.Attributes["o:connecttype"] != null)
2190ctObj.connecttype = (ST_ConnectType)Enum.Parse(typeof(ST_ConnectType), node.Attributes["o:connecttype"].Value);
2191ctObj.v = XmlHelper.ReadString(node.Attributes["v"]);
2192ctObj.limo = XmlHelper.ReadString(node.Attributes["limo"]);
2193ctObj.textboxrect = XmlHelper.ReadString(node.Attributes["textboxrect"]);
2194if (node.Attributes["fillok"] != null)
2195ctObj.fillok = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["fillok"]);
2196if (node.Attributes["strokeok"] != null)
2197ctObj.strokeok = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["strokeok"]);
2198if (node.Attributes["shadowok"] != null)
2199ctObj.shadowok = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["shadowok"]);
2200if (node.Attributes["arrowok"] != null)
2201ctObj.arrowok = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["arrowok"]);
2202if (node.Attributes["gradientshapeok"] != null)
2203ctObj.gradientshapeok = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["gradientshapeok"]);
2204if (node.Attributes["textpathok"] != null)
2205ctObj.textpathok = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["textpathok"]);
2206if (node.Attributes["insetpenok"] != null)
2207ctObj.insetpenok = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["insetpenok"]);
2208ctObj.connectlocs = XmlHelper.ReadString(node.Attributes["connectlocs"]);
2209ctObj.connectangles = XmlHelper.ReadString(node.Attributes["connectangles"]);
2210if (node.Attributes["o:extrusionok"] != null)
2211ctObj.extrusionok = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["o:extrusionok"]);
2212return ctObj;
2213}
2214
2215
2216
2217internal void Write(StreamWriter sw, string nodeName)
2218{
2219sw.Write(string.Format("<v:{0}", nodeName));
2220XmlHelper.WriteAttribute(sw, "id", this.id);
2221XmlHelper.WriteAttribute(sw, "o:connecttype", this.connecttype.ToString());
2222XmlHelper.WriteAttribute(sw, "v", this.v);
2223XmlHelper.WriteAttribute(sw, "limo", this.limo);
2224XmlHelper.WriteAttribute(sw, "textboxrect", this.textboxrect);
2225NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "fillok", this.fillok);
2226NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "strokeok", this.strokeok);
2227NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "shadowok", this.shadowok);
2228NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "arrowok", this.arrowok);
2229NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "gradientshapeok", this.gradientshapeok);
2230NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "textpathok", this.textpathok);
2231NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "insetpenok", this.insetpenok);
2232XmlHelper.WriteAttribute(sw, "connectlocs", this.connectlocs);
2233XmlHelper.WriteAttribute(sw, "connectangles", this.connectangles);
2234NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "o:extrusionok", this.extrusionok, false);
2235sw.Write(">");
2236sw.Write(string.Format("</v:{0}>", nodeName));
2237}
2238
2239}
2240
2241
2242[Serializable]
2243
2244[System.ComponentModel.DesignerCategory("code")]
2245[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
2246[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
2247public class CT_Shadow {
2248
2249private string idField;
2250
2251private ST_TrueFalse onField;
2252
2253private bool onFieldSpecified;
2254
2255private ST_ShadowType typeField;
2256
2257private bool typeFieldSpecified;
2258
2259private ST_TrueFalse obscuredField;
2260
2261private bool obscuredFieldSpecified;
2262
2263private string colorField;
2264
2265private string opacityField;
2266
2267private string offsetField;
2268
2269private string color2Field;
2270
2271private string offset2Field;
2272
2273private string originField;
2274
2275private string matrixField;
2276public static CT_Shadow Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2277{
2278if (node == null)
2279return null;
2280CT_Shadow ctObj = new CT_Shadow();
2281ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
2282if (node.Attributes["on"] != null)
2283ctObj.on = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["on"]);
2284if (node.Attributes["type"] != null)
2285ctObj.type = (ST_ShadowType)Enum.Parse(typeof(ST_ShadowType), node.Attributes["type"].Value);
2286if (node.Attributes["obscured"] != null)
2287ctObj.obscured = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["obscured"]);
2288ctObj.color = XmlHelper.ReadString(node.Attributes["color"]);
2289ctObj.opacity = XmlHelper.ReadString(node.Attributes["opacity"]);
2290ctObj.offset = XmlHelper.ReadString(node.Attributes["offset"]);
2291ctObj.color2 = XmlHelper.ReadString(node.Attributes["color2"]);
2292ctObj.offset2 = XmlHelper.ReadString(node.Attributes["offset2"]);
2293ctObj.origin = XmlHelper.ReadString(node.Attributes["origin"]);
2294ctObj.matrix = XmlHelper.ReadString(node.Attributes["matrix"]);
2295return ctObj;
2296}
2297
2298
2299
2300internal void Write(StreamWriter sw, string nodeName)
2301{
2302sw.Write(string.Format("<v:{0}", nodeName));
2303XmlHelper.WriteAttribute(sw, "id", this.id);
2304NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "on", this.on);
2305XmlHelper.WriteAttribute(sw, "type", this.type.ToString());
2306NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "obscured", this.obscured);
2307XmlHelper.WriteAttribute(sw, "color", this.color);
2308XmlHelper.WriteAttribute(sw, "opacity", this.opacity);
2309XmlHelper.WriteAttribute(sw, "offset", this.offset);
2310XmlHelper.WriteAttribute(sw, "color2", this.color2);
2311XmlHelper.WriteAttribute(sw, "offset2", this.offset2);
2312XmlHelper.WriteAttribute(sw, "origin", this.origin);
2313XmlHelper.WriteAttribute(sw, "matrix", this.matrix);
2314sw.Write(">");
2315sw.Write(string.Format("</v:{0}>", nodeName));
2316}
2317
2318
2319[XmlAttribute]
2320public string id
2321{
2322get {
2323return this.idField;
2324}
2325set {
2326this.idField = value;
2327}
2328}
2329
2330
2331[XmlAttribute]
2332public ST_TrueFalse on {
2333get {
2334return this.onField;
2335}
2336set {
2337this.onField = value;
2338}
2339}
2340
2341
2342[XmlIgnore]
2343public bool onSpecified {
2344get {
2345return this.onFieldSpecified;
2346}
2347set {
2348this.onFieldSpecified = value;
2349}
2350}
2351
2352
2353[XmlAttribute]
2354public ST_ShadowType type {
2355get {
2356return this.typeField;
2357}
2358set {
2359this.typeField = value;
2360}
2361}
2362
2363
2364[XmlIgnore]
2365public bool typeSpecified {
2366get {
2367return this.typeFieldSpecified;
2368}
2369set {
2370this.typeFieldSpecified = value;
2371}
2372}
2373
2374
2375[XmlAttribute]
2376public ST_TrueFalse obscured {
2377get {
2378return this.obscuredField;
2379}
2380set {
2381this.obscuredField = value;
2382}
2383}
2384
2385
2386[XmlIgnore]
2387public bool obscuredSpecified {
2388get {
2389return this.obscuredFieldSpecified;
2390}
2391set {
2392this.obscuredFieldSpecified = value;
2393}
2394}
2395
2396
2397[XmlAttribute]
2398public string color {
2399get {
2400return this.colorField;
2401}
2402set {
2403this.colorField = value;
2404}
2405}
2406
2407
2408[XmlAttribute]
2409public string opacity {
2410get {
2411return this.opacityField;
2412}
2413set {
2414this.opacityField = value;
2415}
2416}
2417
2418
2419[XmlAttribute]
2420public string offset {
2421get {
2422return this.offsetField;
2423}
2424set {
2425this.offsetField = value;
2426}
2427}
2428
2429
2430[XmlAttribute]
2431public string color2 {
2432get {
2433return this.color2Field;
2434}
2435set {
2436this.color2Field = value;
2437}
2438}
2439
2440
2441[XmlAttribute]
2442public string offset2 {
2443get {
2444return this.offset2Field;
2445}
2446set {
2447this.offset2Field = value;
2448}
2449}
2450
2451
2452[XmlAttribute]
2453public string origin {
2454get {
2455return this.originField;
2456}
2457set {
2458this.originField = value;
2459}
2460}
2461
2462
2463[XmlAttribute]
2464public string matrix {
2465get {
2466return this.matrixField;
2467}
2468set {
2469this.matrixField = value;
2470}
2471}
2472}
2473
2474
2475[Serializable]
2476[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
2477[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
2478public enum ST_ShadowType {
2479
2480
2481single,
2482
2483
2484@double,
2485
2486
2487emboss,
2488
2489
2490perspective,
2491}
2492
2493
2494[Serializable]
2495
2496[System.ComponentModel.DesignerCategory("code")]
2497[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
2498[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
2499public class CT_Stroke {
2500
2501private string idField;
2502
2503private ST_TrueFalse onField;
2504
2505private bool onFieldSpecified;
2506
2507private string weightField;
2508
2509private string colorField;
2510
2511private string opacityField;
2512
2513private ST_StrokeLineStyle linestyleField;
2514
2515private bool linestyleFieldSpecified;
2516
2517private decimal miterlimitField;
2518
2519private bool miterlimitFieldSpecified;
2520
2521private ST_StrokeJoinStyle joinstyleField;
2522
2523private bool joinstyleFieldSpecified;
2524
2525private ST_StrokeEndCap endcapField;
2526
2527private bool endcapFieldSpecified;
2528
2529private string dashstyleField;
2530
2531private ST_FillType filltypeField;
2532
2533private bool filltypeFieldSpecified;
2534
2535private string srcField;
2536
2537private ST_ImageAspect imageaspectField;
2538
2539private bool imageaspectFieldSpecified;
2540
2541private string imagesizeField;
2542
2543private ST_TrueFalse imagealignshapeField;
2544
2545private bool imagealignshapeFieldSpecified;
2546
2547private string color2Field;
2548
2549private ST_StrokeArrowType startarrowField;
2550
2551private bool startarrowFieldSpecified;
2552
2553private ST_StrokeArrowWidth startarrowwidthField;
2554
2555private bool startarrowwidthFieldSpecified;
2556
2557private ST_StrokeArrowLength startarrowlengthField;
2558
2559private bool startarrowlengthFieldSpecified;
2560
2561private ST_StrokeArrowType endarrowField;
2562
2563private bool endarrowFieldSpecified;
2564
2565private ST_StrokeArrowWidth endarrowwidthField;
2566
2567private bool endarrowwidthFieldSpecified;
2568
2569private ST_StrokeArrowLength endarrowlengthField;
2570
2571private bool endarrowlengthFieldSpecified;
2572
2573//private string id1Field;
2574
2575private ST_TrueFalse insetpenField;
2576
2577private bool insetpenFieldSpecified;
2578
2579public static CT_Stroke Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2580{
2581if (node == null)
2582return null;
2583CT_Stroke ctObj = new CT_Stroke();
2584ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
2585if (node.Attributes["on"] != null)
2586ctObj.on = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["on"]);
2587ctObj.weight = XmlHelper.ReadString(node.Attributes["weight"]);
2588ctObj.color = XmlHelper.ReadString(node.Attributes["color"]);
2589ctObj.opacity = XmlHelper.ReadString(node.Attributes["opacity"]);
2590if (node.Attributes["linestyle"] != null)
2591{
2592ctObj.linestyle = (ST_StrokeLineStyle)Enum.Parse(typeof(ST_StrokeLineStyle), node.Attributes["linestyle"].Value);
2593ctObj.linestyleFieldSpecified = true;
2594}
2595else
2596{
2597ctObj.linestyleFieldSpecified = false;
2598}
2599if (node.Attributes["miterlimit"] != null)
2600{
2601ctObj.miterlimit = XmlHelper.ReadDecimal(node.Attributes["miterlimit"]);
2602ctObj.miterlimitFieldSpecified = true;
2603}
2604else
2605{
2606ctObj.miterlimitFieldSpecified = false;
2607}
2608if (node.Attributes["joinstyle"] != null)
2609{
2610ctObj.joinstyleFieldSpecified = true;
2611ctObj.joinstyle = (ST_StrokeJoinStyle)Enum.Parse(typeof(ST_StrokeJoinStyle), node.Attributes["joinstyle"].Value);
2612}
2613else
2614{
2615ctObj.joinstyleFieldSpecified = false;
2616}
2617if (node.Attributes["endcap"] != null)
2618{
2619ctObj.endcap = (ST_StrokeEndCap)Enum.Parse(typeof(ST_StrokeEndCap), node.Attributes["endcap"].Value);
2620ctObj.endcapFieldSpecified = true;
2621}
2622else
2623{
2624ctObj.endcapFieldSpecified = false;
2625}
2626ctObj.dashstyle = XmlHelper.ReadString(node.Attributes["dashstyle"]);
2627
2628if (node.Attributes["filltype"] != null)
2629{
2630ctObj.filltype = (ST_FillType)Enum.Parse(typeof(ST_FillType), node.Attributes["filltype"].Value);
2631ctObj.filltypeFieldSpecified = true;
2632}
2633else
2634{
2635ctObj.filltypeFieldSpecified = false;
2636}
2637ctObj.src = XmlHelper.ReadString(node.Attributes["src"]);
2638if (node.Attributes["imageaspect"] != null)
2639{
2640ctObj.imageaspect = (ST_ImageAspect)Enum.Parse(typeof(ST_ImageAspect), node.Attributes["imageaspect"].Value);
2641ctObj.imageaspectFieldSpecified = true;
2642}
2643else
2644{
2645ctObj.imageaspectFieldSpecified = false;
2646}
2647ctObj.imagesize = XmlHelper.ReadString(node.Attributes["imagesize"]);
2648if (node.Attributes["imagealignshape"] != null)
2649{
2650ctObj.imagealignshape = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["imagealignshape"]);
2651ctObj.imagealignshapeSpecified = true;
2652}
2653else
2654{
2655ctObj.imagealignshapeSpecified = false;
2656}
2657ctObj.color2 = XmlHelper.ReadString(node.Attributes["color2"]);
2658if (node.Attributes["startarrow"] != null)
2659{
2660ctObj.startarrow = (ST_StrokeArrowType)Enum.Parse(typeof(ST_StrokeArrowType), node.Attributes["startarrow"].Value);
2661ctObj.startarrowFieldSpecified = true;
2662}
2663else
2664{
2665ctObj.startarrowFieldSpecified = false;
2666}
2667if (node.Attributes["startarrowwidth"] != null)
2668{
2669ctObj.startarrowwidth = (ST_StrokeArrowWidth)Enum.Parse(typeof(ST_StrokeArrowWidth), node.Attributes["startarrowwidth"].Value);
2670ctObj.startarrowwidthFieldSpecified = true;
2671}
2672else
2673{
2674ctObj.startarrowwidthFieldSpecified = false;
2675}
2676if (node.Attributes["startarrowlength"] != null)
2677{
2678ctObj.startarrowlength = (ST_StrokeArrowLength)Enum.Parse(typeof(ST_StrokeArrowLength), node.Attributes["startarrowlength"].Value);
2679ctObj.startarrowlengthFieldSpecified = true;
2680}
2681else
2682{
2683ctObj.startarrowlengthFieldSpecified = false;
2684}
2685if (node.Attributes["endarrow"] != null)
2686{
2687ctObj.endarrow = (ST_StrokeArrowType)Enum.Parse(typeof(ST_StrokeArrowType), node.Attributes["endarrow"].Value);
2688ctObj.endarrowFieldSpecified = true;
2689}
2690else
2691{
2692ctObj.endarrowFieldSpecified = false;
2693}
2694if (node.Attributes["endarrowwidth"] != null)
2695{
2696ctObj.endarrowwidth = (ST_StrokeArrowWidth)Enum.Parse(typeof(ST_StrokeArrowWidth), node.Attributes["endarrowwidth"].Value);
2697ctObj.endarrowwidthFieldSpecified = true;
2698}
2699else
2700{
2701ctObj.endarrowwidthFieldSpecified = false;
2702}
2703if (node.Attributes["endarrowlength"] != null)
2704{
2705ctObj.endarrowlength = (ST_StrokeArrowLength)Enum.Parse(typeof(ST_StrokeArrowLength), node.Attributes["endarrowlength"].Value);
2706ctObj.endarrowlengthFieldSpecified = true;
2707}
2708else
2709{
2710ctObj.endarrowlengthFieldSpecified = false;
2711}
2712if (node.Attributes["insetpen"] != null)
2713ctObj.insetpen = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["insetpen"]);
2714return ctObj;
2715}
2716
2717
2718
2719internal void Write(StreamWriter sw, string nodeName)
2720{
2721sw.Write(string.Format("<v:{0}", nodeName));
2722XmlHelper.WriteAttribute(sw, "id", this.id);
2723NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "on", this.on);
2724XmlHelper.WriteAttribute(sw, "weight", this.weight);
2725XmlHelper.WriteAttribute(sw, "color", this.color);
2726XmlHelper.WriteAttribute(sw, "opacity", this.opacity);
2727if(linestyleFieldSpecified)
2728XmlHelper.WriteAttribute(sw, "linestyle", this.linestyle.ToString());
2729if(miterlimitFieldSpecified)
2730XmlHelper.WriteAttribute(sw, "miterlimit", (float)this.miterlimit);
2731if(joinstyleFieldSpecified)
2732XmlHelper.WriteAttribute(sw, "joinstyle", this.joinstyle.ToString());
2733if(endcapFieldSpecified)
2734XmlHelper.WriteAttribute(sw, "endcap", this.endcap.ToString());
2735XmlHelper.WriteAttribute(sw, "dashstyle", this.dashstyle);
2736if(filltypeFieldSpecified)
2737XmlHelper.WriteAttribute(sw, "filltype", this.filltype.ToString());
2738XmlHelper.WriteAttribute(sw, "src", this.src);
2739if(imageaspectFieldSpecified)
2740XmlHelper.WriteAttribute(sw, "imageaspect", this.imageaspect.ToString());
2741XmlHelper.WriteAttribute(sw, "imagesize", this.imagesize);
2742if(imagealignshapeFieldSpecified)
2743NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "imagealignshape", this.imagealignshape);
2744XmlHelper.WriteAttribute(sw, "color2", this.color2);
2745if(startarrowSpecified)
2746XmlHelper.WriteAttribute(sw, "startarrow", this.startarrow.ToString());
2747if(startarrowwidthFieldSpecified)
2748XmlHelper.WriteAttribute(sw, "startarrowwidth", this.startarrowwidth.ToString());
2749if(startarrowlengthFieldSpecified)
2750XmlHelper.WriteAttribute(sw, "startarrowlength", this.startarrowlength.ToString());
2751if(endarrowFieldSpecified)
2752XmlHelper.WriteAttribute(sw, "endarrow", this.endarrow.ToString());
2753if(endarrowwidthFieldSpecified)
2754XmlHelper.WriteAttribute(sw, "endarrowwidth", this.endarrowwidth.ToString());
2755if(endarrowlengthFieldSpecified)
2756XmlHelper.WriteAttribute(sw, "endarrowlength", this.endarrowlength.ToString());
2757NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "insetpen", this.insetpen);
2758sw.Write("/>");
2759}
2760
2761[XmlAttribute]
2762public string id
2763{
2764get {
2765return this.idField;
2766}
2767set {
2768this.idField = value;
2769}
2770}
2771
2772
2773[XmlAttribute]
2774public ST_TrueFalse on {
2775get {
2776return this.onField;
2777}
2778set {
2779this.onField = value;
2780}
2781}
2782
2783
2784[XmlIgnore]
2785public bool onSpecified {
2786get {
2787return this.onFieldSpecified;
2788}
2789set {
2790this.onFieldSpecified = value;
2791}
2792}
2793
2794
2795[XmlAttribute]
2796public string weight {
2797get {
2798return this.weightField;
2799}
2800set {
2801this.weightField = value;
2802}
2803}
2804
2805
2806[XmlAttribute]
2807public string color {
2808get {
2809return this.colorField;
2810}
2811set {
2812this.colorField = value;
2813}
2814}
2815
2816
2817[XmlAttribute]
2818public string opacity {
2819get {
2820return this.opacityField;
2821}
2822set {
2823this.opacityField = value;
2824}
2825}
2826
2827
2828[XmlAttribute]
2829public ST_StrokeLineStyle linestyle {
2830get {
2831return this.linestyleField;
2832}
2833set {
2834this.linestyleField = value;
2835this.linestyleFieldSpecified = true;
2836}
2837}
2838
2839
2840[XmlIgnore]
2841public bool linestyleSpecified {
2842get {
2843return this.linestyleFieldSpecified;
2844}
2845set {
2846this.linestyleFieldSpecified = value;
2847}
2848}
2849
2850
2851[XmlAttribute]
2852public decimal miterlimit {
2853get {
2854return this.miterlimitField;
2855}
2856set {
2857this.miterlimitField = value;
2858this.miterlimitFieldSpecified = true;
2859}
2860}
2861
2862
2863[XmlIgnore]
2864public bool miterlimitSpecified {
2865get {
2866return this.miterlimitFieldSpecified;
2867}
2868set {
2869this.miterlimitFieldSpecified = value;
2870}
2871}
2872
2873
2874[XmlAttribute]
2875public ST_StrokeJoinStyle joinstyle {
2876get {
2877return this.joinstyleField;
2878}
2879set {
2880this.joinstyleField = value;
2881this.joinstyleFieldSpecified = true;
2882}
2883}
2884
2885
2886[XmlIgnore]
2887public bool joinstyleSpecified {
2888get {
2889return this.joinstyleFieldSpecified;
2890}
2891set {
2892this.joinstyleFieldSpecified = value;
2893}
2894}
2895
2896
2897[XmlAttribute]
2898public ST_StrokeEndCap endcap {
2899get {
2900return this.endcapField;
2901}
2902set {
2903this.endcapField = value;
2904this.endcapFieldSpecified = true;
2905}
2906}
2907
2908
2909[XmlIgnore]
2910public bool endcapSpecified {
2911get {
2912return this.endcapFieldSpecified;
2913}
2914set {
2915this.endcapFieldSpecified = value;
2916}
2917}
2918
2919
2920[XmlAttribute]
2921public string dashstyle {
2922get {
2923return this.dashstyleField;
2924}
2925set {
2926this.dashstyleField = value;
2927}
2928}
2929
2930
2931[XmlAttribute]
2932public ST_FillType filltype {
2933get {
2934return this.filltypeField;
2935}
2936set {
2937this.filltypeField = value;
2938this.filltypeFieldSpecified = true;
2939}
2940}
2941
2942
2943[XmlIgnore]
2944public bool filltypeSpecified {
2945get {
2946return this.filltypeFieldSpecified;
2947}
2948set {
2949this.filltypeFieldSpecified = value;
2950}
2951}
2952
2953
2954[XmlAttribute]
2955public string src {
2956get {
2957return this.srcField;
2958}
2959set {
2960this.srcField = value;
2961}
2962}
2963
2964
2965[XmlAttribute]
2966public ST_ImageAspect imageaspect {
2967get {
2968return this.imageaspectField;
2969}
2970set {
2971this.imageaspectField = value;
2972this.imageaspectFieldSpecified = true;
2973}
2974}
2975
2976
2977[XmlIgnore]
2978public bool imageaspectSpecified {
2979get {
2980return this.imageaspectFieldSpecified;
2981}
2982set {
2983this.imageaspectFieldSpecified = value;
2984}
2985}
2986
2987
2988[XmlAttribute]
2989public string imagesize {
2990get {
2991return this.imagesizeField;
2992}
2993set {
2994this.imagesizeField = value;
2995}
2996}
2997
2998
2999[XmlAttribute]
3000public ST_TrueFalse imagealignshape {
3001get {
3002return this.imagealignshapeField;
3003}
3004set {
3005this.imagealignshapeField = value;
3006this.imagealignshapeFieldSpecified = true;
3007}
3008}
3009
3010
3011[XmlIgnore]
3012public bool imagealignshapeSpecified {
3013get {
3014return this.imagealignshapeFieldSpecified;
3015}
3016set {
3017this.imagealignshapeFieldSpecified = value;
3018}
3019}
3020
3021
3022[XmlAttribute]
3023public string color2 {
3024get {
3025return this.color2Field;
3026}
3027set {
3028this.color2Field = value;
3029}
3030}
3031
3032
3033[XmlAttribute]
3034public ST_StrokeArrowType startarrow {
3035get {
3036return this.startarrowField;
3037}
3038set {
3039this.startarrowField = value;
3040this.startarrowFieldSpecified = true;
3041}
3042}
3043
3044
3045[XmlIgnore]
3046public bool startarrowSpecified {
3047get {
3048return this.startarrowFieldSpecified;
3049}
3050set {
3051this.startarrowFieldSpecified = value;
3052}
3053}
3054
3055
3056[XmlAttribute]
3057public ST_StrokeArrowWidth startarrowwidth {
3058get {
3059return this.startarrowwidthField;
3060}
3061set {
3062this.startarrowwidthField = value;
3063this.startarrowwidthFieldSpecified = true;
3064}
3065}
3066
3067
3068[XmlIgnore]
3069public bool startarrowwidthSpecified {
3070get {
3071return this.startarrowwidthFieldSpecified;
3072}
3073set {
3074this.startarrowwidthFieldSpecified = value;
3075}
3076}
3077
3078
3079[XmlAttribute]
3080public ST_StrokeArrowLength startarrowlength {
3081get {
3082return this.startarrowlengthField;
3083}
3084set {
3085this.startarrowlengthField = value;
3086this.startarrowlengthFieldSpecified = true;
3087}
3088}
3089
3090
3091[XmlIgnore]
3092public bool startarrowlengthSpecified {
3093get {
3094return this.startarrowlengthFieldSpecified;
3095}
3096set {
3097this.startarrowlengthFieldSpecified = value;
3098}
3099}
3100
3101
3102[XmlAttribute]
3103public ST_StrokeArrowType endarrow {
3104get {
3105return this.endarrowField;
3106}
3107set {
3108this.endarrowField = value;
3109this.endarrowFieldSpecified = true;
3110}
3111}
3112
3113
3114[XmlIgnore]
3115public bool endarrowSpecified {
3116get {
3117return this.endarrowFieldSpecified;
3118}
3119set {
3120this.endarrowFieldSpecified = value;
3121}
3122}
3123
3124
3125[XmlAttribute]
3126public ST_StrokeArrowWidth endarrowwidth {
3127get {
3128return this.endarrowwidthField;
3129}
3130set {
3131this.endarrowwidthField = value;
3132this.endarrowwidthFieldSpecified = true;
3133}
3134}
3135
3136
3137[XmlIgnore]
3138public bool endarrowwidthSpecified {
3139get {
3140return this.endarrowwidthFieldSpecified;
3141}
3142set {
3143this.endarrowwidthFieldSpecified = value;
3144}
3145}
3146
3147
3148[XmlAttribute]
3149public ST_StrokeArrowLength endarrowlength {
3150get {
3151return this.endarrowlengthField;
3152}
3153set {
3154this.endarrowlengthField = value;
3155this.endarrowlengthFieldSpecified = true;
3156}
3157}
3158
3159
3160[XmlIgnore]
3161public bool endarrowlengthSpecified {
3162get {
3163return this.endarrowlengthFieldSpecified;
3164}
3165set {
3166this.endarrowlengthFieldSpecified = value;
3167}
3168}
3169
3170
3171[XmlAttribute]
3172public ST_TrueFalse insetpen {
3173get {
3174return this.insetpenField;
3175}
3176set {
3177this.insetpenField = value;
3178this.insetpenFieldSpecified = true;
3179}
3180}
3181
3182
3183[XmlIgnore]
3184public bool insetpenSpecified {
3185get {
3186return this.insetpenFieldSpecified;
3187}
3188set {
3189this.insetpenFieldSpecified = value;
3190}
3191}
3192}
3193
3194
3195[Serializable]
3196[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3197[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
3198public enum ST_StrokeLineStyle {
3199
3200
3201single,
3202
3203
3204thinThin,
3205
3206
3207thinThick,
3208
3209
3210thickThin,
3211
3212
3213thickBetweenThin,
3214}
3215
3216
3217[Serializable]
3218[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3219[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
3220public enum ST_StrokeJoinStyle {
3221
3222
3223round,
3224
3225
3226bevel,
3227
3228
3229miter,
3230}
3231
3232
3233[Serializable]
3234[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3235[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
3236public enum ST_StrokeEndCap {
3237
3238
3239flat,
3240
3241
3242square,
3243
3244
3245round,
3246}
3247
3248
3249[Serializable]
3250[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3251[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
3252public enum ST_StrokeArrowType {
3253
3254
3255none,
3256
3257
3258block,
3259
3260
3261classic,
3262
3263
3264oval,
3265
3266
3267diamond,
3268
3269
3270open,
3271}
3272
3273
3274[Serializable]
3275[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3276[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
3277public enum ST_StrokeArrowWidth {
3278
3279
3280narrow,
3281
3282
3283medium,
3284
3285
3286wide,
3287}
3288
3289
3290[Serializable]
3291[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3292[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
3293public enum ST_StrokeArrowLength {
3294
3295
3296@short,
3297
3298
3299medium,
3300
3301
3302@long,
3303}
3304
3305
3306[Serializable]
3307
3308[System.ComponentModel.DesignerCategory("code")]
3309[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3310[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
3311public class CT_Textbox {
3312
3313private string itemField;
3314
3315private string idField;
3316
3317private string styleField;
3318
3319private string insetField;
3320
3321
3322//[XmlAnyElement()]
3323public string ItemXml {
3324get {
3325return this.itemField;
3326}
3327set {
3328this.itemField = value;
3329}
3330}
3331
3332
3333[XmlAttribute]
3334public string id
3335{
3336get {
3337return this.idField;
3338}
3339set {
3340this.idField = value;
3341}
3342}
3343
3344
3345[XmlAttribute]
3346public string style {
3347get {
3348return this.styleField;
3349}
3350set {
3351this.styleField = value;
3352}
3353}
3354
3355
3356[XmlAttribute]
3357public string inset {
3358get {
3359return this.insetField;
3360}
3361set {
3362this.insetField = value;
3363}
3364}
3365public static CT_Textbox Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3366{
3367if (node == null)
3368return null;
3369CT_Textbox ctObj = new CT_Textbox();
3370ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
3371ctObj.style = XmlHelper.ReadString(node.Attributes["style"]);
3372ctObj.inset = XmlHelper.ReadString(node.Attributes["inset"]);
3373ctObj.ItemXml = node.InnerXml;
3374return ctObj;
3375}
3376
3377
3378
3379internal void Write(StreamWriter sw, string nodeName)
3380{
3381sw.Write(string.Format("<v:{0}", nodeName));
3382XmlHelper.WriteAttribute(sw, "id", this.id);
3383XmlHelper.WriteAttribute(sw, "style", this.style);
3384XmlHelper.WriteAttribute(sw, "inset", this.inset);
3385sw.Write(">");
3386if (this.ItemXml != null)
3387sw.Write(this.ItemXml);
3388sw.Write(string.Format("</v:{0}>", nodeName));
3389}
3390
3391}
3392
3393
3394[Serializable]
3395
3396[System.ComponentModel.DesignerCategory("code")]
3397[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3398[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
3399public class CT_TextPath {
3400
3401private string idField;
3402
3403private string styleField;
3404
3405private ST_TrueFalse onField;
3406
3407private bool onFieldSpecified;
3408
3409private ST_TrueFalse fitshapeField;
3410
3411private bool fitshapeFieldSpecified;
3412
3413private ST_TrueFalse fitpathField;
3414
3415private bool fitpathFieldSpecified;
3416
3417private ST_TrueFalse trimField;
3418
3419private bool trimFieldSpecified;
3420
3421private ST_TrueFalse xscaleField;
3422
3423private bool xscaleFieldSpecified;
3424
3425private string stringField;
3426
3427public static CT_TextPath Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3428{
3429if (node == null)
3430return null;
3431CT_TextPath ctObj = new CT_TextPath();
3432ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
3433ctObj.style = XmlHelper.ReadString(node.Attributes["style"]);
3434if (node.Attributes["on"] != null)
3435ctObj.on = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["on"]);
3436if (node.Attributes["fitshape"] != null)
3437ctObj.fitshape = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["fitshape"]);
3438if (node.Attributes["fitpath"] != null)
3439ctObj.fitpath = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["fitpath"]);
3440if (node.Attributes["trim"] != null)
3441ctObj.trim = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["trim"]);
3442if (node.Attributes["xscale"] != null)
3443ctObj.xscale = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["xscale"]);
3444ctObj.@string = XmlHelper.ReadString(node.Attributes["string"]);
3445return ctObj;
3446}
3447
3448
3449
3450internal void Write(StreamWriter sw, string nodeName)
3451{
3452sw.Write(string.Format("<v:{0}", nodeName));
3453XmlHelper.WriteAttribute(sw, "id", this.id);
3454XmlHelper.WriteAttribute(sw, "style", this.style);
3455NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "on", this.on);
3456NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "fitshape", this.fitshape);
3457NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "fitpath", this.fitpath);
3458NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "trim", this.trim);
3459NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "xscale", this.xscale);
3460XmlHelper.WriteAttribute(sw, "string", this.@string);
3461sw.Write(">");
3462sw.Write(string.Format("</v:{0}>", nodeName));
3463}
3464
3465[XmlAttribute]
3466public string id
3467{
3468get {
3469return this.idField;
3470}
3471set {
3472this.idField = value;
3473}
3474}
3475
3476
3477[XmlAttribute]
3478public string style {
3479get {
3480return this.styleField;
3481}
3482set {
3483this.styleField = value;
3484}
3485}
3486
3487
3488[XmlAttribute]
3489public ST_TrueFalse on {
3490get {
3491return this.onField;
3492}
3493set {
3494this.onField = value;
3495}
3496}
3497
3498
3499[XmlIgnore]
3500public bool onSpecified {
3501get {
3502return this.onFieldSpecified;
3503}
3504set {
3505this.onFieldSpecified = value;
3506}
3507}
3508
3509
3510[XmlAttribute]
3511public ST_TrueFalse fitshape {
3512get {
3513return this.fitshapeField;
3514}
3515set {
3516this.fitshapeField = value;
3517}
3518}
3519
3520
3521[XmlIgnore]
3522public bool fitshapeSpecified {
3523get {
3524return this.fitshapeFieldSpecified;
3525}
3526set {
3527this.fitshapeFieldSpecified = value;
3528}
3529}
3530
3531
3532[XmlAttribute]
3533public ST_TrueFalse fitpath {
3534get {
3535return this.fitpathField;
3536}
3537set {
3538this.fitpathField = value;
3539}
3540}
3541
3542
3543[XmlIgnore]
3544public bool fitpathSpecified {
3545get {
3546return this.fitpathFieldSpecified;
3547}
3548set {
3549this.fitpathFieldSpecified = value;
3550}
3551}
3552
3553
3554[XmlAttribute]
3555public ST_TrueFalse trim {
3556get {
3557return this.trimField;
3558}
3559set {
3560this.trimField = value;
3561}
3562}
3563
3564
3565[XmlIgnore]
3566public bool trimSpecified {
3567get {
3568return this.trimFieldSpecified;
3569}
3570set {
3571this.trimFieldSpecified = value;
3572}
3573}
3574
3575
3576[XmlAttribute]
3577public ST_TrueFalse xscale {
3578get {
3579return this.xscaleField;
3580}
3581set {
3582this.xscaleField = value;
3583}
3584}
3585
3586
3587[XmlIgnore]
3588public bool xscaleSpecified {
3589get {
3590return this.xscaleFieldSpecified;
3591}
3592set {
3593this.xscaleFieldSpecified = value;
3594}
3595}
3596
3597
3598[XmlAttribute]
3599public string @string {
3600get {
3601return this.stringField;
3602}
3603set {
3604this.stringField = value;
3605}
3606}
3607}
3608
3609
3610[Serializable]
3611[XmlType(Namespace="urn:schemas-microsoft-com:vml", IncludeInSchema=false)]
3612public enum ItemsChoiceType1 {
3613
3614
3615[XmlEnum("urn:schemas-microsoft-com:office:excel:ClientData")]
3616ClientData,
3617
3618
3619[XmlEnum("urn:schemas-microsoft-com:office:powerpoint:iscomment")]
3620iscomment,
3621
3622
3623[XmlEnum("urn:schemas-microsoft-com:office:powerpoint:textdata")]
3624textdata,
3625
3626
3627[XmlEnum("urn:schemas-microsoft-com:office:word:anchorlock")]
3628anchorlock,
3629
3630
3631[XmlEnum("urn:schemas-microsoft-com:office:word:borderbottom")]
3632borderbottom,
3633
3634
3635[XmlEnum("urn:schemas-microsoft-com:office:word:borderleft")]
3636borderleft,
3637
3638
3639[XmlEnum("urn:schemas-microsoft-com:office:word:borderright")]
3640borderright,
3641
3642
3643[XmlEnum("urn:schemas-microsoft-com:office:word:bordertop")]
3644bordertop,
3645
3646
3647[XmlEnum("urn:schemas-microsoft-com:office:word:wrap")]
3648wrap,
3649
3650
3651fill,
3652
3653
3654formulas,
3655
3656
3657handles,
3658
3659
3660imagedata,
3661
3662
3663path,
3664
3665
3666shadow,
3667
3668
3669stroke,
3670
3671
3672textbox,
3673
3674
3675textpath,
3676}
3677
3678
3679[Serializable]
3680
3681[System.ComponentModel.DesignerCategory("code")]
3682[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
3683[XmlRoot("shapetype",Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
3684public class CT_Shapetype {
3685
3686private CT_Path pathField;
3687
3688private List<CT_Formulas> formulasField = new List<CT_Formulas>();
3689
3690private List<CT_Handles> handlesField = new List<CT_Handles>();
3691
3692private List<CT_Fill> fillField = new List<CT_Fill>();
3693
3694private CT_Stroke strokeField;
3695
3696private List<CT_Shadow> shadowField;
3697
3698private List<CT_Textbox> textboxField;
3699
3700private List<CT_TextPath> textpathField = new List<CT_TextPath>();
3701
3702private List<CT_ImageData> imagedataField;
3703
3704private List<CT_Wrap> wrapField;
3705
3706private List<CT_AnchorLock> anchorlockField;
3707
3708private CT_Lock lockField;
3709
3710private List<CT_Border> bordertopField;
3711
3712private List<CT_Border> borderbottomField;
3713
3714private List<CT_Border> borderleftField;
3715
3716private List<CT_Border> borderrightField;
3717
3718private List<CT_ClientData> clientDataField;
3719
3720private List<CT_Rel> textdataField;
3721
3722private string adjField;
3723private string idField;
3724private ST_TrueFalse filledField = ST_TrueFalse.t;
3725private ST_TrueFalse strokedField = ST_TrueFalse.t;
3726private ST_TrueFalse preferrelativeField;
3727//private string styleField;
3728private float sptField;
3729private string coordsizeField;
3730
3731//static XmlSerializer serializer = new XmlSerializer(typeof(CT_Shapetype), "urn:schemas-microsoft-com:vml");
3732
3733//public static CT_Shapetype Parse(string xmltext)
3734//{
3735// TextReader tr = new StringReader(xmltext);
3736// CT_Shapetype obj = (CT_Shapetype)serializer.Deserialize(tr);
3737// return obj;
3738//}
3739
3740public static CT_Shapetype Parse(XmlNode node, XmlNamespaceManager namespaceManager)
3741{
3742if (node == null)
3743return null;
3744CT_Shapetype ctObj = new CT_Shapetype();
3745if (node.Attributes["stroked"] != null)
3746ctObj.stroked = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["stroked"]);
3747if (node.Attributes["filled"] != null)
3748ctObj.filled = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["filled"]);
3749if (node.Attributes["o:preferrelative"] != null)
3750ctObj.preferrelative = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse2(node.Attributes["o:preferrelative"]);
3751ctObj.coordsize = XmlHelper.ReadString(node.Attributes["coordsize"]);
3752if (node.Attributes["o:spt"] != null)
3753ctObj.id = XmlHelper.ReadString(node.Attributes["o:spt"]);
3754ctObj.adj = XmlHelper.ReadString(node.Attributes["adj"]);
3755ctObj.path2 = XmlHelper.ReadString(node.Attributes["path"]);
3756ctObj.formulas = new List<CT_Formulas>();
3757ctObj.handles = new List<CT_Handles>();
3758ctObj.fill = new List<CT_Fill>();
3759ctObj.shadow = new List<CT_Shadow>();
3760ctObj.textbox = new List<CT_Textbox>();
3761ctObj.textpath = new List<CT_TextPath>();
3762ctObj.imagedata = new List<CT_ImageData>();
3763ctObj.wrap = new List<CT_Wrap>();
3764ctObj.anchorlock = new List<CT_AnchorLock>();
3765ctObj.bordertop = new List<CT_Border>();
3766ctObj.borderbottom = new List<CT_Border>();
3767ctObj.borderleft = new List<CT_Border>();
3768ctObj.borderright = new List<CT_Border>();
3769ctObj.Clientdata = new List<CT_ClientData>();
3770ctObj.textdata = new List<CT_Rel>();
3771foreach (XmlNode childNode in node.ChildNodes)
3772{
3773if (childNode.LocalName == "stroke")
3774ctObj.stroke = CT_Stroke.Parse(childNode, namespaceManager);
3775else if (childNode.LocalName == "path")
3776ctObj.path = CT_Path.Parse(childNode, namespaceManager);
3777else if (childNode.LocalName == "lock")
3778ctObj.@lock = CT_Lock.Parse(childNode, namespaceManager);
3779else if (childNode.LocalName == "formulas")
3780ctObj.formulas.Add(CT_Formulas.Parse(childNode, namespaceManager));
3781else if (childNode.LocalName == "handles")
3782ctObj.handles.Add(CT_Handles.Parse(childNode, namespaceManager));
3783else if (childNode.LocalName == "fill")
3784ctObj.fill.Add(CT_Fill.Parse(childNode, namespaceManager));
3785else if (childNode.LocalName == "shadow")
3786ctObj.shadow.Add(CT_Shadow.Parse(childNode, namespaceManager));
3787else if (childNode.LocalName == "textbox")
3788ctObj.textbox.Add(CT_Textbox.Parse(childNode, namespaceManager));
3789else if (childNode.LocalName == "textpath")
3790ctObj.textpath.Add(CT_TextPath.Parse(childNode, namespaceManager));
3791else if (childNode.LocalName == "imagedata")
3792ctObj.imagedata.Add(CT_ImageData.Parse(childNode, namespaceManager));
3793else if (childNode.LocalName == "wrap")
3794ctObj.wrap.Add(CT_Wrap.Parse(childNode, namespaceManager));
3795else if (childNode.LocalName == "anchorlock")
3796ctObj.anchorlock.Add(new CT_AnchorLock());
3797else if (childNode.LocalName == "bordertop")
3798ctObj.bordertop.Add(CT_Border.Parse(childNode, namespaceManager));
3799else if (childNode.LocalName == "borderbottom")
3800ctObj.borderbottom.Add(CT_Border.Parse(childNode, namespaceManager));
3801else if (childNode.LocalName == "borderleft")
3802ctObj.borderleft.Add(CT_Border.Parse(childNode, namespaceManager));
3803else if (childNode.LocalName == "borderright")
3804ctObj.borderright.Add(CT_Border.Parse(childNode, namespaceManager));
3805else if (childNode.LocalName == "ClientData")
3806ctObj.Clientdata.Add(CT_ClientData.Parse(childNode, namespaceManager));
3807else if (childNode.LocalName == "textdata")
3808ctObj.textdata.Add(CT_Rel.Parse(childNode, namespaceManager));
3809}
3810return ctObj;
3811}
3812
3813
3814
3815public void Write(StreamWriter sw, string nodeName)
3816{
3817sw.Write(string.Format("<v:{0}", nodeName));
3818NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "stroked", this.stroked, true);
3819NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "filled", this.filled, true);
3820NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "o:preferrelative", this.preferrelative);
3821XmlHelper.WriteAttribute(sw, "coordsize", this.coordsize);
3822XmlHelper.WriteAttribute(sw, "o:spt", this.spt);
3823XmlHelper.WriteAttribute(sw, "id", this.id);
3824XmlHelper.WriteAttribute(sw, "adj", this.adj);
3825XmlHelper.WriteAttribute(sw, "path", this.path2);
3826sw.Write(">");
3827if (this.stroke != null)
3828this.stroke.Write(sw, "stroke");
3829if (this.path != null)
3830this.path.Write(sw, "path");
3831if (this.textpath != null)
3832{
3833foreach (CT_TextPath x in this.textpath)
3834{
3835x.Write(sw, "textpath");
3836}
3837}
3838if (this.formulas != null)
3839{
3840foreach (CT_Formulas x in this.formulas)
3841{
3842x.Write(sw, "formulas");
3843}
3844}
3845if (this.handles != null)
3846{
3847foreach (CT_Handles x in this.handles)
3848{
3849x.Write(sw, "handles");
3850}
3851}
3852if (this.fill != null)
3853{
3854foreach (CT_Fill x in this.fill)
3855{
3856x.Write(sw, "fill");
3857}
3858}
3859if (this.shadow != null)
3860{
3861foreach (CT_Shadow x in this.shadow)
3862{
3863x.Write(sw, "shadow");
3864}
3865}
3866if (this.@lock != null)
3867this.@lock.Write(sw, "lock");
3868if (this.textbox != null)
3869{
3870foreach (CT_Textbox x in this.textbox)
3871{
3872x.Write(sw, "textbox");
3873}
3874}
3875if (this.imagedata != null)
3876{
3877foreach (CT_ImageData x in this.imagedata)
3878{
3879x.Write(sw, "imagedata");
3880}
3881}
3882if (this.wrap != null)
3883{
3884foreach (CT_Wrap x in this.wrap)
3885{
3886x.Write(sw, "wrap");
3887}
3888}
3889if (this.anchorlock != null)
3890{
3891foreach (CT_AnchorLock x in this.anchorlock)
3892{
3893sw.Write("<anchorlock/>");
3894}
3895}
3896if (this.bordertop != null)
3897{
3898foreach (CT_Border x in this.bordertop)
3899{
3900x.Write(sw, "bordertop");
3901}
3902}
3903if (this.borderbottom != null)
3904{
3905foreach (CT_Border x in this.borderbottom)
3906{
3907x.Write(sw, "borderbottom");
3908}
3909}
3910if (this.borderleft != null)
3911{
3912foreach (CT_Border x in this.borderleft)
3913{
3914x.Write(sw, "borderleft");
3915}
3916}
3917if (this.borderright != null)
3918{
3919foreach (CT_Border x in this.borderright)
3920{
3921x.Write(sw, "borderright");
3922}
3923}
3924if (this.Clientdata != null)
3925{
3926foreach (CT_ClientData x in this.Clientdata)
3927{
3928x.Write(sw, "ClientData");
3929}
3930}
3931if (this.textdata != null)
3932{
3933foreach (CT_Rel x in this.textdata)
3934{
3935x.Write(sw, "textdata");
3936}
3937}
3938sw.Write(string.Format("</v:{0}>", nodeName));
3939}
3940
3941[XmlAttribute]
3942public ST_TrueFalse stroked
3943{
3944get
3945{
3946return this.strokedField;
3947}
3948set
3949{
3950this.strokedField = value;
3951}
3952}
3953[XmlAttribute]
3954public ST_TrueFalse filled
3955{
3956get
3957{
3958return this.filledField;
3959}
3960set
3961{
3962this.filledField = value;
3963}
3964}
3965[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
3966public ST_TrueFalse preferrelative
3967{
3968get
3969{
3970return this.preferrelativeField;
3971}
3972set
3973{
3974this.preferrelativeField = value;
3975}
3976}
3977[XmlAttribute]
3978public string coordsize
3979{
3980get
3981{
3982return this.coordsizeField;
3983}
3984set
3985{
3986this.coordsizeField = value;
3987}
3988}
3989
3990[XmlAttribute(Namespace = "urn:schemas-microsoft-com:office:office")]
3991public float spt
3992{
3993get
3994{
3995return this.sptField;
3996}
3997set
3998{
3999this.sptField = value;
4000}
4001}
4002private string path1Field;
4003
4004[XmlAttribute]
4005public string id
4006{
4007get {
4008return this.idField;
4009}
4010set
4011{
4012this.idField = value;
4013}
4014}
4015
4016
4017[XmlElement("stroke")]
4018public CT_Stroke stroke
4019{
4020get
4021{
4022return this.strokeField;
4023}
4024set
4025{
4026this.strokeField = value;
4027}
4028}
4029
4030
4031[XmlElement("formulas")]
4032public List<CT_Formulas> formulas
4033{
4034get
4035{
4036return this.formulasField;
4037}
4038set
4039{
4040
4041this.formulasField = value;
4042}
4043}
4044
4045
4046[XmlElement("handles")]
4047public List<CT_Handles> handles
4048{
4049get
4050{
4051return this.handlesField;
4052}
4053set
4054{
4055this.handlesField = value;
4056}
4057}
4058
4059
4060[XmlElement("fill")]
4061public List<CT_Fill> fill
4062{
4063get
4064{
4065return this.fillField;
4066}
4067set
4068{
4069this.fillField = value;
4070}
4071}
4072
4073
4074
4075
4076[XmlElement("shadow")]
4077public List<CT_Shadow> shadow
4078{
4079get
4080{
4081return this.shadowField;
4082}
4083set
4084{
4085this.shadowField = value;
4086}
4087}
4088
4089
4090[XmlElement("textbox")]
4091public List<CT_Textbox> textbox
4092{
4093get
4094{
4095return this.textboxField;
4096}
4097set
4098{
4099this.textboxField = value;
4100}
4101}
4102
4103
4104[XmlElement("textpath")]
4105public List<CT_TextPath> textpath
4106{
4107get
4108{
4109return this.textpathField;
4110}
4111set
4112{
4113this.textpathField = value;
4114}
4115}
4116
4117
4118[XmlElement("imagedata")]
4119public List<CT_ImageData> imagedata
4120{
4121get
4122{
4123return this.imagedataField;
4124}
4125set
4126{
4127this.imagedataField = value;
4128}
4129}
4130
4131
4132[XmlElement("wrap", Namespace = "urn:schemas-microsoft-com:office:word")]
4133public List<CT_Wrap> wrap
4134{
4135get
4136{
4137return this.wrapField;
4138}
4139set
4140{
4141this.wrapField = value;
4142}
4143}
4144
4145
4146[XmlElement("anchorlock", Namespace = "urn:schemas-microsoft-com:office:word")]
4147public List<CT_AnchorLock> anchorlock
4148{
4149get
4150{
4151return this.anchorlockField;
4152}
4153set
4154{
4155this.anchorlockField = value;
4156}
4157}
4158
4159[XmlElement("path")]
4160public CT_Path path
4161{
4162get
4163{
4164return this.pathField;
4165}
4166set
4167{
4168
4169this.pathField = value;
4170}
4171}
4172
4173[XmlElement("lock", Namespace = "urn:schemas-microsoft-com:office:office")]
4174public CT_Lock @lock
4175{
4176get
4177{
4178return this.lockField;
4179}
4180set
4181{
4182this.lockField = value;
4183}
4184}
4185
4186[XmlElement("bordertop", Namespace = "urn:schemas-microsoft-com:office:word")]
4187public List<CT_Border> bordertop
4188{
4189get
4190{
4191return this.bordertopField;
4192}
4193set
4194{
4195this.bordertopField = value;
4196}
4197}
4198
4199
4200[XmlElement("borderbottom", Namespace = "urn:schemas-microsoft-com:office:word")]
4201public List<CT_Border> borderbottom
4202{
4203get
4204{
4205return this.borderbottomField;
4206}
4207set
4208{
4209this.borderbottomField = value;
4210}
4211}
4212
4213
4214[XmlElement("borderleft", Namespace = "urn:schemas-microsoft-com:office:word")]
4215public List<CT_Border> borderleft
4216{
4217get
4218{
4219return this.borderleftField;
4220}
4221set
4222{
4223this.borderleftField = value;
4224}
4225}
4226
4227
4228[XmlElement("borderright", Namespace = "urn:schemas-microsoft-com:office:word")]
4229public List<CT_Border> borderright
4230{
4231get
4232{
4233return this.borderrightField;
4234}
4235set
4236{
4237this.borderrightField = value;
4238}
4239}
4240
4241
4242[XmlElement("clientdata", Namespace="urn:schemas-microsoft-com:office:excel")]
4243public List<CT_ClientData> Clientdata {
4244get {
4245return this.clientDataField;
4246}
4247set {
4248this.clientDataField = value;
4249}
4250}
4251
4252
4253[XmlElement("textdata", Namespace = "urn:schemas-microsoft-com:office:powerpoint")]
4254public List<CT_Rel> textdata
4255{
4256get
4257{
4258return this.textdataField;
4259}
4260set
4261{
4262this.textdataField = value;
4263}
4264}
4265
4266
4267[XmlAttribute]
4268public string adj {
4269get {
4270return this.adjField;
4271}
4272set {
4273this.adjField = value;
4274}
4275}
4276
4277
4278[XmlAttribute("path")]
4279public string path2 {
4280get {
4281return this.path1Field;
4282}
4283set {
4284this.path1Field = value;
4285}
4286}
4287
4288public CT_Stroke AddNewStroke()
4289{
4290this.strokeField = new CT_Stroke();
4291return strokeField;
4292}
4293public CT_Path AddNewPath()
4294{
4295this.pathField = new CT_Path();
4296return this.pathField;
4297}
4298//internal static XmlSerializerNamespaces namespaces = new XmlSerializerNamespaces(new XmlQualifiedName[] {
4299// new XmlQualifiedName("o", "urn:schemas-microsoft-com:office:office"),
4300// new XmlQualifiedName("x", "urn:schemas-microsoft-com:office:excel"),
4301// new XmlQualifiedName("v", "urn:schemas-microsoft-com:vml")
4302//});
4303
4304//public override string ToString()
4305//{
4306// using (StringWriter stringWriter = new StringWriter())
4307// {
4308// XmlWriterSettings settings = new XmlWriterSettings();
4309// settings.Encoding = Encoding.UTF8;
4310// settings.OmitXmlDeclaration = true;
4311
4312// using (XmlWriter writer = XmlWriter.Create(stringWriter, settings))
4313// {
4314// serializer.Serialize(writer, this, namespaces);
4315// }
4316// return stringWriter.ToString();
4317// }
4318//}
4319
4320public CT_Formulas AddNewFormulas()
4321{
4322if (this.formulasField == null)
4323this.formulasField = new List<CT_Formulas>();
4324CT_Formulas obj = new CT_Formulas();
4325this.formulasField.Add(obj);
4326return obj;
4327}
4328
4329public CT_TextPath AddNewTextpath()
4330{
4331if (this.textpathField == null)
4332this.textpathField = new List<CT_TextPath>();
4333CT_TextPath obj = new CT_TextPath();
4334this.textpathField.Add(obj);
4335return obj;
4336}
4337
4338public CT_Handles AddNewHandles()
4339{
4340if (this.handlesField == null)
4341this.handlesField = new List<CT_Handles>();
4342CT_Handles obj = new CT_Handles();
4343this.handlesField.Add(obj);
4344return obj;
4345}
4346
4347public CT_Lock AddNewLock()
4348{
4349CT_Lock lockField = new CT_Lock();
4350return lockField;
4351}
4352}
4353
4354
4355[Serializable]
4356
4357[System.ComponentModel.DesignerCategory("code")]
4358[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
4359[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
4360public class CT_Group {
4361
4362private List<object> itemsField = new List<object>();
4363
4364private List<ItemsChoiceType6> itemsElementNameField = new List<ItemsChoiceType6>();
4365
4366private ST_TrueFalse filledField;
4367
4368private bool filledFieldSpecified;
4369
4370private string fillcolorField;
4371
4372private ST_EditAs editasField;
4373
4374private bool editasFieldSpecified;
4375
4376
4377[XmlElement("ClientData", typeof(CT_ClientData), Namespace="urn:schemas-microsoft-com:office:excel")]
4378[XmlElement("textdata", typeof(CT_Rel), Namespace="urn:schemas-microsoft-com:office:powerpoint")]
4379[XmlElement("anchorlock", typeof(CT_AnchorLock), Namespace="urn:schemas-microsoft-com:office:word")]
4380[XmlElement("borderbottom", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
4381[XmlElement("borderleft", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
4382[XmlElement("borderright", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
4383[XmlElement("bordertop", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
4384[XmlElement("wrap", typeof(CT_Wrap), Namespace="urn:schemas-microsoft-com:office:word")]
4385[XmlElement("arc", typeof(CT_Arc))]
4386[XmlElement("curve", typeof(CT_Curve))]
4387[XmlElement("fill", typeof(CT_Fill))]
4388[XmlElement("formulas", typeof(CT_Formulas))]
4389[XmlElement("group", typeof(CT_Group))]
4390[XmlElement("handles", typeof(CT_Handles))]
4391[XmlElement("image", typeof(CT_Image))]
4392[XmlElement("imagedata", typeof(CT_ImageData))]
4393[XmlElement("line", typeof(CT_Line))]
4394[XmlElement("oval", typeof(CT_Oval))]
4395[XmlElement("path", typeof(CT_Path))]
4396[XmlElement("polyline", typeof(CT_PolyLine))]
4397[XmlElement("rect", typeof(CT_Rect))]
4398[XmlElement("roundrect", typeof(CT_RoundRect))]
4399[XmlElement("shadow", typeof(CT_Shadow))]
4400[XmlElement("shape", typeof(CT_Shape))]
4401[XmlElement("shapetype", typeof(CT_Shapetype))]
4402[XmlElement("stroke", typeof(CT_Stroke))]
4403[XmlElement("textbox", typeof(CT_Textbox))]
4404[XmlElement("textpath", typeof(CT_TextPath))]
4405[XmlChoiceIdentifier("ItemsElementName")]
4406public object[] Items {
4407get {
4408if (this.itemsField == null)
4409return null;
4410return this.itemsField.ToArray();
4411}
4412set {
4413if (value == null)
4414this.itemsField = new List<object>();
4415else
4416this.itemsField = new List<object>(value);
4417}
4418}
4419
4420
4421[XmlElement("ItemsElementName")]
4422[XmlIgnore]
4423public ItemsChoiceType6[] ItemsElementName {
4424get {
4425return this.itemsElementNameField.ToArray();
4426}
4427set {
4428if (value == null)
4429this.itemsElementNameField = new List<ItemsChoiceType6>();
4430else
4431this.itemsElementNameField = new List<ItemsChoiceType6>(value);
4432}
4433}
4434
4435
4436[XmlAttribute]
4437public ST_TrueFalse filled {
4438get {
4439return this.filledField;
4440}
4441set {
4442this.filledField = value;
4443}
4444}
4445
4446
4447[XmlIgnore]
4448public bool filledSpecified {
4449get {
4450return this.filledFieldSpecified;
4451}
4452set {
4453this.filledFieldSpecified = value;
4454}
4455}
4456
4457
4458[XmlAttribute]
4459public string fillcolor {
4460get {
4461return this.fillcolorField;
4462}
4463set {
4464this.fillcolorField = value;
4465}
4466}
4467
4468
4469[XmlAttribute]
4470public ST_EditAs editas {
4471get {
4472return this.editasField;
4473}
4474set {
4475this.editasField = value;
4476}
4477}
4478
4479
4480[XmlIgnore]
4481public bool editasSpecified {
4482get {
4483return this.editasFieldSpecified;
4484}
4485set {
4486this.editasFieldSpecified = value;
4487}
4488}
4489
4490public CT_Shapetype AddNewShapetype()
4491{
4492return AddNewObject<CT_Shapetype>(ItemsChoiceType6.shapetype);
4493}
4494#region Generic methods for object operation
4495
4496private List<T> GetObjectList<T>(ItemsChoiceType6 type) where T : class
4497{
4498lock (this)
4499{
4500List<T> list = new List<T>();
4501for (int i = 0; i < itemsElementNameField.Count; i++)
4502{
4503if (itemsElementNameField[i] == type)
4504list.Add(itemsField[i] as T);
4505}
4506return list;
4507}
4508}
4509private int SizeOfObjectArray(ItemsChoiceType6 type)
4510{
4511lock (this)
4512{
4513int size = 0;
4514for (int i = 0; i < itemsElementNameField.Count; i++)
4515{
4516if (itemsElementNameField[i] == type)
4517size++;
4518}
4519return size;
4520}
4521}
4522private T GetObjectArray<T>(int p, ItemsChoiceType6 type) where T : class
4523{
4524lock (this)
4525{
4526int pos = GetObjectIndex(type, p);
4527if (pos < 0 || pos >= this.itemsField.Count)
4528return null;
4529return itemsField[pos] as T;
4530}
4531}
4532private T InsertNewObject<T>(ItemsChoiceType6 type, int p) where T : class, new()
4533{
4534T t = new T();
4535lock (this)
4536{
4537int pos = GetObjectIndex(type, p);
4538this.itemsElementNameField.Insert(pos, type);
4539this.itemsField.Insert(pos, t);
4540}
4541return t;
4542}
4543private T AddNewObject<T>(ItemsChoiceType6 type) where T : class, new()
4544{
4545T t = new T();
4546lock (this)
4547{
4548this.itemsElementNameField.Add(type);
4549this.itemsField.Add(t);
4550}
4551return t;
4552}
4553private void SetObjectArray<T>(ItemsChoiceType6 type, int p, T obj) where T : class
4554{
4555lock (this)
4556{
4557int pos = GetObjectIndex(type, p);
4558if (pos < 0 || pos >= this.itemsField.Count)
4559return;
4560if (this.itemsField[pos] is T)
4561this.itemsField[pos] = obj;
4562else
4563throw new Exception(string.Format(@"object types are difference, itemsField[{0}] is {1}, and parameter obj is {2}",
4564pos, this.itemsField[pos].GetType().Name, typeof(T).Name));
4565}
4566}
4567private int GetObjectIndex(ItemsChoiceType6 type, int p)
4568{
4569int index = -1;
4570int pos = 0;
4571for (int i = 0; i < itemsElementNameField.Count; i++)
4572{
4573if (itemsElementNameField[i] == type)
4574{
4575if (pos == p)
4576{
4577//return itemsField[p] as T;
4578index = i;
4579break;
4580}
4581else
4582pos++;
4583}
4584}
4585return index;
4586}
4587private void RemoveObject(ItemsChoiceType6 type, int p)
4588{
4589lock (this)
4590{
4591int pos = GetObjectIndex(type, p);
4592if (pos < 0 || pos >= this.itemsField.Count)
4593return;
4594itemsElementNameField.RemoveAt(pos);
4595itemsField.RemoveAt(pos);
4596}
4597}
4598#endregion
4599
4600public CT_Shape AddNewShape()
4601{
4602return AddNewObject<CT_Shape>(ItemsChoiceType6.shape);
4603}
4604}
4605
4606
4607[Serializable]
4608
4609[System.ComponentModel.DesignerCategory("code")]
4610[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
4611[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
4612public class CT_Arc {
4613
4614private List<CT_Path> pathField;
4615
4616private List<CT_Formulas> formulasField;
4617
4618private List<CT_Handles> handlesField;
4619
4620private List<CT_Fill> fillField;
4621
4622private List<CT_Stroke> strokeField;
4623
4624private List<CT_Shadow> shadowField;
4625
4626private List<CT_Textbox> textboxField;
4627
4628private List<CT_TextPath> textpathField;
4629
4630private List<CT_ImageData> imagedataField;
4631
4632private List<CT_Wrap> wrapField;
4633
4634private List<CT_AnchorLock> anchorlockField;
4635
4636private List<CT_Border> bordertopField;
4637
4638private List<CT_Border> borderbottomField;
4639
4640private List<CT_Border> borderleftField;
4641
4642private List<CT_Border> borderrightField;
4643
4644private List<CT_ClientData> clientDataField;
4645
4646private List<CT_Rel> textdataField;
4647
4648private decimal startAngleField;
4649
4650private bool startAngleFieldSpecified;
4651
4652private decimal endAngleField;
4653
4654private bool endAngleFieldSpecified;
4655
4656
4657[XmlElement("path")]
4658public List<CT_Path> path {
4659get {
4660return this.pathField;
4661}
4662set {
4663this.pathField = value;
4664}
4665}
4666
4667
4668[XmlElement("formulas")]
4669public List<CT_Formulas> formulas {
4670get {
4671return this.formulasField;
4672}
4673set {
4674this.formulasField = value;
4675}
4676}
4677
4678
4679[XmlElement("handles")]
4680public List<CT_Handles> handles {
4681get {
4682return this.handlesField;
4683}
4684set {
4685this.handlesField = value;
4686}
4687}
4688
4689
4690[XmlElement("fill")]
4691public List<CT_Fill> fill {
4692get {
4693return this.fillField;
4694}
4695set {
4696this.fillField = value;
4697}
4698}
4699
4700
4701[XmlElement("stroke")]
4702public List<CT_Stroke> stroke {
4703get {
4704return this.strokeField;
4705}
4706set {
4707this.strokeField = value;
4708}
4709}
4710
4711
4712[XmlElement("shadow")]
4713public List<CT_Shadow> shadow {
4714get {
4715return this.shadowField;
4716}
4717set {
4718this.shadowField = value;
4719}
4720}
4721
4722
4723[XmlElement("textbox")]
4724public List<CT_Textbox> textbox {
4725get {
4726return this.textboxField;
4727}
4728set {
4729this.textboxField = value;
4730}
4731}
4732
4733
4734[XmlElement("textpath")]
4735public List<CT_TextPath> textpath {
4736get {
4737return this.textpathField;
4738}
4739set {
4740this.textpathField = value;
4741}
4742}
4743
4744
4745[XmlElement("imagedata")]
4746public List<CT_ImageData> imagedata {
4747get {
4748return this.imagedataField;
4749}
4750set {
4751this.imagedataField = value;
4752}
4753}
4754
4755
4756[XmlElement("wrap", Namespace="urn:schemas-microsoft-com:office:word")]
4757public List<CT_Wrap> wrap {
4758get {
4759return this.wrapField;
4760}
4761set {
4762this.wrapField = value;
4763}
4764}
4765
4766
4767[XmlElement("anchorlock", Namespace="urn:schemas-microsoft-com:office:word")]
4768public List<CT_AnchorLock> anchorlock {
4769get {
4770return this.anchorlockField;
4771}
4772set {
4773this.anchorlockField = value;
4774}
4775}
4776
4777
4778[XmlElement("bordertop", Namespace="urn:schemas-microsoft-com:office:word")]
4779public List<CT_Border> bordertop {
4780get {
4781return this.bordertopField;
4782}
4783set {
4784this.bordertopField = value;
4785}
4786}
4787
4788
4789[XmlElement("borderbottom", Namespace="urn:schemas-microsoft-com:office:word")]
4790public List<CT_Border> borderbottom {
4791get {
4792return this.borderbottomField;
4793}
4794set {
4795this.borderbottomField = value;
4796}
4797}
4798
4799
4800[XmlElement("borderleft", Namespace="urn:schemas-microsoft-com:office:word")]
4801public List<CT_Border> borderleft {
4802get {
4803return this.borderleftField;
4804}
4805set {
4806this.borderleftField = value;
4807}
4808}
4809
4810
4811[XmlElement("borderright", Namespace="urn:schemas-microsoft-com:office:word")]
4812public List<CT_Border> borderright {
4813get {
4814return this.borderrightField;
4815}
4816set {
4817this.borderrightField = value;
4818}
4819}
4820
4821
4822[XmlElement("ClientData", Namespace="urn:schemas-microsoft-com:office:excel")]
4823public List<CT_ClientData> ClientData {
4824get {
4825return this.clientDataField;
4826}
4827set {
4828this.clientDataField = value;
4829}
4830}
4831
4832
4833[XmlElement("textdata", Namespace="urn:schemas-microsoft-com:office:powerpoint")]
4834public List<CT_Rel> textdata {
4835get {
4836return this.textdataField;
4837}
4838set {
4839this.textdataField = value;
4840}
4841}
4842
4843
4844[XmlAttribute]
4845public decimal startAngle {
4846get {
4847return this.startAngleField;
4848}
4849set {
4850this.startAngleField = value;
4851}
4852}
4853
4854
4855[XmlIgnore]
4856public bool startAngleSpecified {
4857get {
4858return this.startAngleFieldSpecified;
4859}
4860set {
4861this.startAngleFieldSpecified = value;
4862}
4863}
4864
4865
4866[XmlAttribute]
4867public decimal endAngle {
4868get {
4869return this.endAngleField;
4870}
4871set {
4872this.endAngleField = value;
4873}
4874}
4875
4876
4877[XmlIgnore]
4878public bool endAngleSpecified {
4879get {
4880return this.endAngleFieldSpecified;
4881}
4882set {
4883this.endAngleFieldSpecified = value;
4884}
4885}
4886}
4887
4888
4889[Serializable]
4890
4891[System.ComponentModel.DesignerCategory("code")]
4892[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
4893[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
4894public class CT_Curve {
4895
4896private List<CT_Path> pathField;
4897
4898private List<CT_Formulas> formulasField;
4899
4900private List<CT_Handles> handlesField;
4901
4902private List<CT_Fill> fillField;
4903
4904private List<CT_Stroke> strokeField;
4905
4906private List<CT_Shadow> shadowField;
4907
4908private List<CT_Textbox> textboxField;
4909
4910private List<CT_TextPath> textpathField;
4911
4912private List<CT_ImageData> imagedataField;
4913
4914private List<CT_Wrap> wrapField;
4915
4916private List<CT_AnchorLock> anchorlockField;
4917
4918private List<CT_Border> bordertopField;
4919
4920private List<CT_Border> borderbottomField;
4921
4922private List<CT_Border> borderleftField;
4923
4924private List<CT_Border> borderrightField;
4925
4926private List<CT_ClientData> clientDataField;
4927
4928private List<CT_Rel> textdataField;
4929
4930private string fromField;
4931
4932private string control1Field;
4933
4934private string control2Field;
4935
4936private string toField;
4937
4938
4939[XmlElement("path")]
4940public List<CT_Path> path {
4941get {
4942return this.pathField;
4943}
4944set {
4945this.pathField = value;
4946}
4947}
4948
4949
4950[XmlElement("formulas")]
4951public List<CT_Formulas> formulas {
4952get {
4953return this.formulasField;
4954}
4955set {
4956this.formulasField = value;
4957}
4958}
4959
4960
4961[XmlElement("handles")]
4962public List<CT_Handles> handles {
4963get {
4964return this.handlesField;
4965}
4966set {
4967this.handlesField = value;
4968}
4969}
4970
4971
4972[XmlElement("fill")]
4973public List<CT_Fill> fill {
4974get {
4975return this.fillField;
4976}
4977set {
4978this.fillField = value;
4979}
4980}
4981
4982
4983[XmlElement("stroke")]
4984public List<CT_Stroke> stroke {
4985get {
4986return this.strokeField;
4987}
4988set {
4989this.strokeField = value;
4990}
4991}
4992
4993
4994[XmlElement("shadow")]
4995public List<CT_Shadow> shadow {
4996get {
4997return this.shadowField;
4998}
4999set {
5000this.shadowField = value;
5001}
5002}
5003
5004
5005[XmlElement("textbox")]
5006public List<CT_Textbox> textbox {
5007get {
5008return this.textboxField;
5009}
5010set {
5011this.textboxField = value;
5012}
5013}
5014
5015
5016[XmlElement("textpath")]
5017public List<CT_TextPath> textpath {
5018get {
5019return this.textpathField;
5020}
5021set {
5022this.textpathField = value;
5023}
5024}
5025
5026
5027[XmlElement("imagedata")]
5028public List<CT_ImageData> imagedata {
5029get {
5030return this.imagedataField;
5031}
5032set {
5033this.imagedataField = value;
5034}
5035}
5036
5037
5038[XmlElement("wrap", Namespace="urn:schemas-microsoft-com:office:word")]
5039public List<CT_Wrap> wrap {
5040get {
5041return this.wrapField;
5042}
5043set {
5044this.wrapField = value;
5045}
5046}
5047
5048
5049[XmlElement("anchorlock", Namespace="urn:schemas-microsoft-com:office:word")]
5050public List<CT_AnchorLock> anchorlock {
5051get {
5052return this.anchorlockField;
5053}
5054set {
5055this.anchorlockField = value;
5056}
5057}
5058
5059
5060[XmlElement("bordertop", Namespace="urn:schemas-microsoft-com:office:word")]
5061public List<CT_Border> bordertop {
5062get {
5063return this.bordertopField;
5064}
5065set {
5066this.bordertopField = value;
5067}
5068}
5069
5070
5071[XmlElement("borderbottom", Namespace="urn:schemas-microsoft-com:office:word")]
5072public List<CT_Border> borderbottom {
5073get {
5074return this.borderbottomField;
5075}
5076set {
5077this.borderbottomField = value;
5078}
5079}
5080
5081
5082[XmlElement("borderleft", Namespace="urn:schemas-microsoft-com:office:word")]
5083public List<CT_Border> borderleft {
5084get {
5085return this.borderleftField;
5086}
5087set {
5088this.borderleftField = value;
5089}
5090}
5091
5092
5093[XmlElement("borderright", Namespace="urn:schemas-microsoft-com:office:word")]
5094public List<CT_Border> borderright {
5095get {
5096return this.borderrightField;
5097}
5098set {
5099this.borderrightField = value;
5100}
5101}
5102
5103
5104[XmlElement("ClientData", Namespace="urn:schemas-microsoft-com:office:excel")]
5105public List<CT_ClientData> ClientData {
5106get {
5107return this.clientDataField;
5108}
5109set {
5110this.clientDataField = value;
5111}
5112}
5113
5114
5115[XmlElement("textdata", Namespace="urn:schemas-microsoft-com:office:powerpoint")]
5116public List<CT_Rel> textdata {
5117get {
5118return this.textdataField;
5119}
5120set {
5121this.textdataField = value;
5122}
5123}
5124
5125
5126[XmlAttribute]
5127public string from {
5128get {
5129return this.fromField;
5130}
5131set {
5132this.fromField = value;
5133}
5134}
5135
5136
5137[XmlAttribute]
5138public string control1 {
5139get {
5140return this.control1Field;
5141}
5142set {
5143this.control1Field = value;
5144}
5145}
5146
5147
5148[XmlAttribute]
5149public string control2 {
5150get {
5151return this.control2Field;
5152}
5153set {
5154this.control2Field = value;
5155}
5156}
5157
5158
5159[XmlAttribute]
5160public string to {
5161get {
5162return this.toField;
5163}
5164set {
5165this.toField = value;
5166}
5167}
5168}
5169
5170
5171[Serializable]
5172
5173[System.ComponentModel.DesignerCategory("code")]
5174[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
5175[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
5176public class CT_Image {
5177
5178private List<CT_Path> pathField;
5179
5180private List<CT_Formulas> formulasField;
5181
5182private List<CT_Handles> handlesField;
5183
5184private List<CT_Fill> fillField;
5185
5186private List<CT_Stroke> strokeField;
5187
5188private List<CT_Shadow> shadowField;
5189
5190private List<CT_Textbox> textboxField;
5191
5192private List<CT_TextPath> textpathField;
5193
5194private List<CT_ImageData> imagedataField;
5195
5196private List<CT_Wrap> wrapField;
5197
5198private List<CT_AnchorLock> anchorlockField;
5199
5200private List<CT_Border> bordertopField;
5201
5202private List<CT_Border> borderbottomField;
5203
5204private List<CT_Border> borderleftField;
5205
5206private List<CT_Border> borderrightField;
5207
5208private List<CT_ClientData> clientDataField;
5209
5210private List<CT_Rel> textdataField;
5211
5212private string srcField;
5213
5214private string cropleftField;
5215
5216private string croptopField;
5217
5218private string croprightField;
5219
5220private string cropbottomField;
5221
5222private string gainField;
5223
5224private string blacklevelField;
5225
5226private string gammaField;
5227
5228private ST_TrueFalse grayscaleField;
5229
5230private bool grayscaleFieldSpecified;
5231
5232private ST_TrueFalse bilevelField;
5233
5234private bool bilevelFieldSpecified;
5235
5236
5237[XmlElement("path")]
5238public List<CT_Path> path {
5239get {
5240return this.pathField;
5241}
5242set {
5243this.pathField = value;
5244}
5245}
5246
5247
5248[XmlElement("formulas")]
5249public List<CT_Formulas> formulas {
5250get {
5251return this.formulasField;
5252}
5253set {
5254this.formulasField = value;
5255}
5256}
5257
5258
5259[XmlElement("handles")]
5260public List<CT_Handles> handles {
5261get {
5262return this.handlesField;
5263}
5264set {
5265this.handlesField = value;
5266}
5267}
5268
5269
5270[XmlElement("fill")]
5271public List<CT_Fill> fill {
5272get {
5273return this.fillField;
5274}
5275set {
5276this.fillField = value;
5277}
5278}
5279
5280
5281[XmlElement("stroke")]
5282public List<CT_Stroke> stroke {
5283get {
5284return this.strokeField;
5285}
5286set {
5287this.strokeField = value;
5288}
5289}
5290
5291
5292[XmlElement("shadow")]
5293public List<CT_Shadow> shadow {
5294get {
5295return this.shadowField;
5296}
5297set {
5298this.shadowField = value;
5299}
5300}
5301
5302
5303[XmlElement("textbox")]
5304public List<CT_Textbox> textbox {
5305get {
5306return this.textboxField;
5307}
5308set {
5309this.textboxField = value;
5310}
5311}
5312
5313
5314[XmlElement("textpath")]
5315public List<CT_TextPath> textpath {
5316get {
5317return this.textpathField;
5318}
5319set {
5320this.textpathField = value;
5321}
5322}
5323
5324
5325[XmlElement("imagedata")]
5326public List<CT_ImageData> imagedata {
5327get {
5328return this.imagedataField;
5329}
5330set {
5331this.imagedataField = value;
5332}
5333}
5334
5335
5336[XmlElement("wrap", Namespace="urn:schemas-microsoft-com:office:word")]
5337public List<CT_Wrap> wrap {
5338get {
5339return this.wrapField;
5340}
5341set {
5342this.wrapField = value;
5343}
5344}
5345
5346
5347[XmlElement("anchorlock", Namespace="urn:schemas-microsoft-com:office:word")]
5348public List<CT_AnchorLock> anchorlock {
5349get {
5350return this.anchorlockField;
5351}
5352set {
5353this.anchorlockField = value;
5354}
5355}
5356
5357
5358[XmlElement("bordertop", Namespace="urn:schemas-microsoft-com:office:word")]
5359public List<CT_Border> bordertop {
5360get {
5361return this.bordertopField;
5362}
5363set {
5364this.bordertopField = value;
5365}
5366}
5367
5368
5369[XmlElement("borderbottom", Namespace="urn:schemas-microsoft-com:office:word")]
5370public List<CT_Border> borderbottom {
5371get {
5372return this.borderbottomField;
5373}
5374set {
5375this.borderbottomField = value;
5376}
5377}
5378
5379
5380[XmlElement("borderleft", Namespace="urn:schemas-microsoft-com:office:word")]
5381public List<CT_Border> borderleft {
5382get {
5383return this.borderleftField;
5384}
5385set {
5386this.borderleftField = value;
5387}
5388}
5389
5390
5391[XmlElement("borderright", Namespace="urn:schemas-microsoft-com:office:word")]
5392public List<CT_Border> borderright {
5393get {
5394return this.borderrightField;
5395}
5396set {
5397this.borderrightField = value;
5398}
5399}
5400
5401
5402[XmlElement("ClientData", Namespace="urn:schemas-microsoft-com:office:excel")]
5403public List<CT_ClientData> ClientData {
5404get {
5405return this.clientDataField;
5406}
5407set {
5408this.clientDataField = value;
5409}
5410}
5411
5412
5413[XmlElement("textdata", Namespace="urn:schemas-microsoft-com:office:powerpoint")]
5414public List<CT_Rel> textdata {
5415get {
5416return this.textdataField;
5417}
5418set {
5419this.textdataField = value;
5420}
5421}
5422
5423
5424[XmlAttribute]
5425public string src {
5426get {
5427return this.srcField;
5428}
5429set {
5430this.srcField = value;
5431}
5432}
5433
5434
5435[XmlAttribute]
5436public string cropleft {
5437get {
5438return this.cropleftField;
5439}
5440set {
5441this.cropleftField = value;
5442}
5443}
5444
5445
5446[XmlAttribute]
5447public string croptop {
5448get {
5449return this.croptopField;
5450}
5451set {
5452this.croptopField = value;
5453}
5454}
5455
5456
5457[XmlAttribute]
5458public string cropright {
5459get {
5460return this.croprightField;
5461}
5462set {
5463this.croprightField = value;
5464}
5465}
5466
5467
5468[XmlAttribute]
5469public string cropbottom {
5470get {
5471return this.cropbottomField;
5472}
5473set {
5474this.cropbottomField = value;
5475}
5476}
5477
5478
5479[XmlAttribute]
5480public string gain {
5481get {
5482return this.gainField;
5483}
5484set {
5485this.gainField = value;
5486}
5487}
5488
5489
5490[XmlAttribute]
5491public string blacklevel {
5492get {
5493return this.blacklevelField;
5494}
5495set {
5496this.blacklevelField = value;
5497}
5498}
5499
5500
5501[XmlAttribute]
5502public string gamma {
5503get {
5504return this.gammaField;
5505}
5506set {
5507this.gammaField = value;
5508}
5509}
5510
5511
5512[XmlAttribute]
5513public ST_TrueFalse grayscale {
5514get {
5515return this.grayscaleField;
5516}
5517set {
5518this.grayscaleField = value;
5519}
5520}
5521
5522
5523[XmlIgnore]
5524public bool grayscaleSpecified {
5525get {
5526return this.grayscaleFieldSpecified;
5527}
5528set {
5529this.grayscaleFieldSpecified = value;
5530}
5531}
5532
5533
5534[XmlAttribute]
5535public ST_TrueFalse bilevel {
5536get {
5537return this.bilevelField;
5538}
5539set {
5540this.bilevelField = value;
5541}
5542}
5543
5544
5545[XmlIgnore]
5546public bool bilevelSpecified {
5547get {
5548return this.bilevelFieldSpecified;
5549}
5550set {
5551this.bilevelFieldSpecified = value;
5552}
5553}
5554}
5555
5556
5557[Serializable]
5558
5559[System.ComponentModel.DesignerCategory("code")]
5560[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
5561[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
5562public class CT_Line {
5563
5564private List<CT_Path> pathField;
5565
5566private List<CT_Formulas> formulasField;
5567
5568private List<CT_Handles> handlesField;
5569
5570private List<CT_Fill> fillField;
5571
5572private List<CT_Stroke> strokeField;
5573
5574private List<CT_Shadow> shadowField;
5575
5576private List<CT_Textbox> textboxField;
5577
5578private List<CT_TextPath> textpathField;
5579
5580private List<CT_ImageData> imagedataField;
5581
5582private List<CT_Wrap> wrapField;
5583
5584private List<CT_AnchorLock> anchorlockField;
5585
5586private List<CT_Border> bordertopField;
5587
5588private List<CT_Border> borderbottomField;
5589
5590private List<CT_Border> borderleftField;
5591
5592private List<CT_Border> borderrightField;
5593
5594private List<CT_ClientData> clientDataField;
5595
5596private List<CT_Rel> textdataField;
5597
5598private string fromField;
5599
5600private string toField;
5601
5602
5603[XmlElement("path")]
5604public List<CT_Path> path {
5605get {
5606return this.pathField;
5607}
5608set {
5609this.pathField = value;
5610}
5611}
5612
5613
5614[XmlElement("formulas")]
5615public List<CT_Formulas> formulas {
5616get {
5617return this.formulasField;
5618}
5619set {
5620this.formulasField = value;
5621}
5622}
5623
5624
5625[XmlElement("handles")]
5626public List<CT_Handles> handles {
5627get {
5628return this.handlesField;
5629}
5630set {
5631this.handlesField = value;
5632}
5633}
5634
5635
5636[XmlElement("fill")]
5637public List<CT_Fill> fill {
5638get {
5639return this.fillField;
5640}
5641set {
5642this.fillField = value;
5643}
5644}
5645
5646
5647[XmlElement("stroke")]
5648public List<CT_Stroke> stroke {
5649get {
5650return this.strokeField;
5651}
5652set {
5653this.strokeField = value;
5654}
5655}
5656
5657
5658[XmlElement("shadow")]
5659public List<CT_Shadow> shadow {
5660get {
5661return this.shadowField;
5662}
5663set {
5664this.shadowField = value;
5665}
5666}
5667
5668
5669[XmlElement("textbox")]
5670public List<CT_Textbox> textbox {
5671get {
5672return this.textboxField;
5673}
5674set {
5675this.textboxField = value;
5676}
5677}
5678
5679
5680[XmlElement("textpath")]
5681public List<CT_TextPath> textpath {
5682get {
5683return this.textpathField;
5684}
5685set {
5686this.textpathField = value;
5687}
5688}
5689
5690
5691[XmlElement("imagedata")]
5692public List<CT_ImageData> imagedata {
5693get {
5694return this.imagedataField;
5695}
5696set {
5697this.imagedataField = value;
5698}
5699}
5700
5701
5702[XmlElement("wrap", Namespace="urn:schemas-microsoft-com:office:word")]
5703public List<CT_Wrap> wrap {
5704get {
5705return this.wrapField;
5706}
5707set {
5708this.wrapField = value;
5709}
5710}
5711
5712
5713[XmlElement("anchorlock", Namespace="urn:schemas-microsoft-com:office:word")]
5714public List<CT_AnchorLock> anchorlock {
5715get {
5716return this.anchorlockField;
5717}
5718set {
5719this.anchorlockField = value;
5720}
5721}
5722
5723
5724[XmlElement("bordertop", Namespace="urn:schemas-microsoft-com:office:word")]
5725public List<CT_Border> bordertop {
5726get {
5727return this.bordertopField;
5728}
5729set {
5730this.bordertopField = value;
5731}
5732}
5733
5734
5735[XmlElement("borderbottom", Namespace="urn:schemas-microsoft-com:office:word")]
5736public List<CT_Border> borderbottom {
5737get {
5738return this.borderbottomField;
5739}
5740set {
5741this.borderbottomField = value;
5742}
5743}
5744
5745
5746[XmlElement("borderleft", Namespace="urn:schemas-microsoft-com:office:word")]
5747public List<CT_Border> borderleft {
5748get {
5749return this.borderleftField;
5750}
5751set {
5752this.borderleftField = value;
5753}
5754}
5755
5756
5757[XmlElement("borderright", Namespace="urn:schemas-microsoft-com:office:word")]
5758public List<CT_Border> borderright {
5759get {
5760return this.borderrightField;
5761}
5762set {
5763this.borderrightField = value;
5764}
5765}
5766
5767
5768[XmlElement("ClientData", Namespace="urn:schemas-microsoft-com:office:excel")]
5769public List<CT_ClientData> ClientData {
5770get {
5771return this.clientDataField;
5772}
5773set {
5774this.clientDataField = value;
5775}
5776}
5777
5778
5779[XmlElement("textdata", Namespace="urn:schemas-microsoft-com:office:powerpoint")]
5780public List<CT_Rel> textdata {
5781get {
5782return this.textdataField;
5783}
5784set {
5785this.textdataField = value;
5786}
5787}
5788
5789
5790[XmlAttribute]
5791public string from {
5792get {
5793return this.fromField;
5794}
5795set {
5796this.fromField = value;
5797}
5798}
5799
5800
5801[XmlAttribute]
5802public string to {
5803get {
5804return this.toField;
5805}
5806set {
5807this.toField = value;
5808}
5809}
5810}
5811
5812
5813[Serializable]
5814
5815[System.ComponentModel.DesignerCategory("code")]
5816[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
5817[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
5818public class CT_Oval {
5819
5820private List<object> itemsField = new List<object>();
5821
5822private List<ItemsChoiceType2> itemsElementNameField = new List<ItemsChoiceType2>();
5823
5824
5825[XmlElement("ClientData", typeof(CT_ClientData), Namespace = "urn:schemas-microsoft-com:office:excel")]
5826[XmlElement("textdata", typeof(CT_Rel), Namespace = "urn:schemas-microsoft-com:office:powerpoint")]
5827[XmlElement("anchorlock", typeof(CT_AnchorLock), Namespace = "urn:schemas-microsoft-com:office:word")]
5828[XmlElement("borderbottom", typeof(CT_Border), Namespace = "urn:schemas-microsoft-com:office:word")]
5829[XmlElement("borderleft", typeof(CT_Border), Namespace = "urn:schemas-microsoft-com:office:word")]
5830[XmlElement("borderright", typeof(CT_Border), Namespace = "urn:schemas-microsoft-com:office:word")]
5831[XmlElement("bordertop", typeof(CT_Border), Namespace = "urn:schemas-microsoft-com:office:word")]
5832[XmlElement("wrap", typeof(CT_Wrap), Namespace = "urn:schemas-microsoft-com:office:word")]
5833[XmlElement("fill", typeof(CT_Fill))]
5834[XmlElement("formulas", typeof(CT_Formulas))]
5835[XmlElement("handles", typeof(CT_Handles))]
5836[XmlElement("imagedata", typeof(CT_ImageData))]
5837[XmlElement("path", typeof(CT_Path))]
5838[XmlElement("shadow", typeof(CT_Shadow))]
5839[XmlElement("stroke", typeof(CT_Stroke))]
5840[XmlElement("textbox", typeof(CT_Textbox))]
5841[XmlElement("textpath", typeof(CT_TextPath))]
5842[XmlChoiceIdentifier("ItemsElementName")]
5843public object[] Items
5844{
5845get
5846{
5847return this.itemsField.ToArray();
5848}
5849set
5850{
5851if (value == null)
5852this.itemsField = new List<object>();
5853else
5854this.itemsField = new List<object>(value);
5855}
5856}
5857
5858
5859[XmlElement("ItemsElementName")]
5860[XmlIgnore]
5861public ItemsChoiceType2[] ItemsElementName {
5862get {
5863return this.itemsElementNameField.ToArray();
5864}
5865set {
5866if (value == null)
5867this.itemsElementNameField = new List<ItemsChoiceType2>();
5868else
5869this.itemsElementNameField = new List<ItemsChoiceType2>(value);
5870}
5871}
5872}
5873
5874
5875[Serializable]
5876[XmlType(Namespace="urn:schemas-microsoft-com:vml", IncludeInSchema=false)]
5877public enum ItemsChoiceType2 {
5878
5879
5880[XmlEnum("urn:schemas-microsoft-com:office:excel:ClientData")]
5881ClientData,
5882
5883
5884[XmlEnum("urn:schemas-microsoft-com:office:powerpoint:textdata")]
5885textdata,
5886
5887
5888[XmlEnum("urn:schemas-microsoft-com:office:word:anchorlock")]
5889anchorlock,
5890
5891
5892[XmlEnum("urn:schemas-microsoft-com:office:word:borderbottom")]
5893borderbottom,
5894
5895
5896[XmlEnum("urn:schemas-microsoft-com:office:word:borderleft")]
5897borderleft,
5898
5899
5900[XmlEnum("urn:schemas-microsoft-com:office:word:borderright")]
5901borderright,
5902
5903
5904[XmlEnum("urn:schemas-microsoft-com:office:word:bordertop")]
5905bordertop,
5906
5907
5908[XmlEnum("urn:schemas-microsoft-com:office:word:wrap")]
5909wrap,
5910
5911
5912fill,
5913
5914
5915formulas,
5916
5917
5918handles,
5919
5920
5921imagedata,
5922
5923
5924path,
5925
5926
5927shadow,
5928
5929
5930stroke,
5931
5932
5933textbox,
5934
5935
5936textpath,
5937}
5938
5939
5940[Serializable]
5941
5942[System.ComponentModel.DesignerCategory("code")]
5943[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
5944[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
5945public class CT_PolyLine {
5946
5947private List<object> itemsField = new List<object>();
5948
5949private List<ItemsChoiceType3> itemsElementNameField = new List<ItemsChoiceType3>();
5950
5951private string pointsField;
5952
5953
5954[XmlElement("ClientData", typeof(CT_ClientData), Namespace="urn:schemas-microsoft-com:office:excel")]
5955[XmlElement("textdata", typeof(CT_Rel), Namespace="urn:schemas-microsoft-com:office:powerpoint")]
5956[XmlElement("anchorlock", typeof(CT_AnchorLock), Namespace="urn:schemas-microsoft-com:office:word")]
5957[XmlElement("borderbottom", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
5958[XmlElement("borderleft", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
5959[XmlElement("borderright", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
5960[XmlElement("bordertop", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
5961[XmlElement("wrap", typeof(CT_Wrap), Namespace="urn:schemas-microsoft-com:office:word")]
5962[XmlElement("fill", typeof(CT_Fill))]
5963[XmlElement("formulas", typeof(CT_Formulas))]
5964[XmlElement("handles", typeof(CT_Handles))]
5965[XmlElement("imagedata", typeof(CT_ImageData))]
5966[XmlElement("path", typeof(CT_Path))]
5967[XmlElement("shadow", typeof(CT_Shadow))]
5968[XmlElement("stroke", typeof(CT_Stroke))]
5969[XmlElement("textbox", typeof(CT_Textbox))]
5970[XmlElement("textpath", typeof(CT_TextPath))]
5971[XmlChoiceIdentifier("ItemsElementName")]
5972public object[] Items {
5973get {
5974return this.itemsField.ToArray();
5975}
5976set {
5977if (value == null)
5978this.itemsField = new List<object>();
5979else
5980this.itemsField = new List<object>(value);
5981}
5982}
5983
5984
5985[XmlElement("ItemsElementName")]
5986[XmlIgnore]
5987public ItemsChoiceType3[] ItemsElementName {
5988get {
5989return this.itemsElementNameField.ToArray();
5990}
5991set {
5992if (value == null)
5993this.itemsElementNameField = new List<ItemsChoiceType3>();
5994else
5995this.itemsElementNameField = new List<ItemsChoiceType3>(value);
5996}
5997}
5998
5999
6000[XmlAttribute]
6001public string points {
6002get {
6003return this.pointsField;
6004}
6005set {
6006this.pointsField = value;
6007}
6008}
6009}
6010
6011
6012[Serializable]
6013[XmlType(Namespace="urn:schemas-microsoft-com:vml", IncludeInSchema=false)]
6014public enum ItemsChoiceType3 {
6015
6016
6017[XmlEnum("urn:schemas-microsoft-com:office:excel:ClientData")]
6018ClientData,
6019
6020
6021[XmlEnum("urn:schemas-microsoft-com:office:powerpoint:textdata")]
6022textdata,
6023
6024
6025[XmlEnum("urn:schemas-microsoft-com:office:word:anchorlock")]
6026anchorlock,
6027
6028
6029[XmlEnum("urn:schemas-microsoft-com:office:word:borderbottom")]
6030borderbottom,
6031
6032
6033[XmlEnum("urn:schemas-microsoft-com:office:word:borderleft")]
6034borderleft,
6035
6036
6037[XmlEnum("urn:schemas-microsoft-com:office:word:borderright")]
6038borderright,
6039
6040
6041[XmlEnum("urn:schemas-microsoft-com:office:word:bordertop")]
6042bordertop,
6043
6044
6045[XmlEnum("urn:schemas-microsoft-com:office:word:wrap")]
6046wrap,
6047
6048
6049fill,
6050
6051
6052formulas,
6053
6054
6055handles,
6056
6057
6058imagedata,
6059
6060
6061path,
6062
6063
6064shadow,
6065
6066
6067stroke,
6068
6069
6070textbox,
6071
6072
6073textpath,
6074}
6075
6076
6077[Serializable]
6078
6079[System.ComponentModel.DesignerCategory("code")]
6080[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
6081[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
6082public class CT_Rect {
6083
6084//private List<object> itemsField;
6085
6086//private ItemsChoiceType4[] itemsElementNameField;
6087
6088
6089//[XmlElement("ClientData", typeof(CT_ClientData), Namespace="urn:schemas-microsoft-com:office:excel")]
6090//[XmlElement("textdata", typeof(CT_Rel), Namespace="urn:schemas-microsoft-com:office:powerpoint")]
6091//[XmlElement("anchorlock", typeof(CT_AnchorLock), Namespace="urn:schemas-microsoft-com:office:word")]
6092//[XmlElement("borderbottom", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
6093//[XmlElement("borderleft", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
6094//[XmlElement("borderright", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
6095//[XmlElement("bordertop", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
6096//[XmlElement("wrap", typeof(CT_Wrap), Namespace="urn:schemas-microsoft-com:office:word")]
6097//[XmlElement("fill", typeof(CT_Fill))]
6098//[XmlElement("formulas", typeof(CT_Formulas))]
6099//[XmlElement("handles", typeof(CT_Handles))]
6100//[XmlElement("imagedata", typeof(CT_ImageData))]
6101//[XmlElement("path", typeof(CT_Path))]
6102//[XmlElement("shadow", typeof(CT_Shadow))]
6103//[XmlElement("stroke", typeof(CT_Stroke))]
6104//[XmlElement("textbox", typeof(CT_Textbox))]
6105//[XmlElement("textpath", typeof(CT_TextPath))]
6106//[XmlChoiceIdentifier("ItemsElementName")]
6107//public List<object> Items {
6108// get {
6109// return this.itemsField;
6110// }
6111// set {
6112// this.itemsField = value;
6113// }
6114//}
6115
6116
6117//[XmlElement("ItemsElementName")]
6118//[XmlIgnore]
6119//public ItemsChoiceType4[] ItemsElementName {
6120// get {
6121// return this.itemsElementNameField;
6122// }
6123// set {
6124// this.itemsElementNameField = value;
6125// }
6126//}
6127}
6128
6129
6130[Serializable]
6131[XmlType(Namespace="urn:schemas-microsoft-com:vml", IncludeInSchema=false)]
6132public enum ItemsChoiceType4 {
6133
6134
6135[XmlEnum("urn:schemas-microsoft-com:office:excel:ClientData")]
6136ClientData,
6137
6138
6139[XmlEnum("urn:schemas-microsoft-com:office:powerpoint:textdata")]
6140textdata,
6141
6142
6143[XmlEnum("urn:schemas-microsoft-com:office:word:anchorlock")]
6144anchorlock,
6145
6146
6147[XmlEnum("urn:schemas-microsoft-com:office:word:borderbottom")]
6148borderbottom,
6149
6150
6151[XmlEnum("urn:schemas-microsoft-com:office:word:borderleft")]
6152borderleft,
6153
6154
6155[XmlEnum("urn:schemas-microsoft-com:office:word:borderright")]
6156borderright,
6157
6158
6159[XmlEnum("urn:schemas-microsoft-com:office:word:bordertop")]
6160bordertop,
6161
6162
6163[XmlEnum("urn:schemas-microsoft-com:office:word:wrap")]
6164wrap,
6165
6166
6167fill,
6168
6169
6170formulas,
6171
6172
6173handles,
6174
6175
6176imagedata,
6177
6178
6179path,
6180
6181
6182shadow,
6183
6184
6185stroke,
6186
6187
6188textbox,
6189
6190
6191textpath,
6192}
6193
6194
6195[Serializable]
6196
6197[System.ComponentModel.DesignerCategory("code")]
6198[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
6199[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
6200public class CT_RoundRect {
6201
6202//private List<object> itemsField;
6203
6204//private ItemsChoiceType5[] itemsElementNameField;
6205
6206private string arcsizeField;
6207
6208
6209//[XmlElement("ClientData", typeof(CT_ClientData), Namespace="urn:schemas-microsoft-com:office:excel")]
6210//[XmlElement("textdata", typeof(CT_Rel), Namespace="urn:schemas-microsoft-com:office:powerpoint")]
6211//[XmlElement("anchorlock", typeof(CT_AnchorLock), Namespace="urn:schemas-microsoft-com:office:word")]
6212//[XmlElement("borderbottom", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
6213//[XmlElement("borderleft", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
6214//[XmlElement("borderright", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
6215//[XmlElement("bordertop", typeof(CT_Border), Namespace="urn:schemas-microsoft-com:office:word")]
6216//[XmlElement("wrap", typeof(CT_Wrap), Namespace="urn:schemas-microsoft-com:office:word")]
6217//[XmlElement("fill", typeof(CT_Fill))]
6218//[XmlElement("formulas", typeof(CT_Formulas))]
6219//[XmlElement("handles", typeof(CT_Handles))]
6220//[XmlElement("imagedata", typeof(CT_ImageData))]
6221//[XmlElement("path", typeof(CT_Path))]
6222//[XmlElement("shadow", typeof(CT_Shadow))]
6223//[XmlElement("stroke", typeof(CT_Stroke))]
6224//[XmlElement("textbox", typeof(CT_Textbox))]
6225//[XmlElement("textpath", typeof(CT_TextPath))]
6226//[XmlChoiceIdentifier("ItemsElementName")]
6227//public List<object> Items {
6228// get {
6229// return this.itemsField;
6230// }
6231// set {
6232// this.itemsField = value;
6233// }
6234//}
6235
6236
6237//[XmlElement("ItemsElementName")]
6238//[XmlIgnore]
6239//public ItemsChoiceType5[] ItemsElementName {
6240// get {
6241// return this.itemsElementNameField;
6242// }
6243// set {
6244// this.itemsElementNameField = value;
6245// }
6246//}
6247
6248
6249[XmlAttribute]
6250public string arcsize {
6251get {
6252return this.arcsizeField;
6253}
6254set {
6255this.arcsizeField = value;
6256}
6257}
6258}
6259
6260
6261[Serializable]
6262[XmlType(Namespace="urn:schemas-microsoft-com:vml", IncludeInSchema=false)]
6263public enum ItemsChoiceType5 {
6264
6265
6266[XmlEnum("urn:schemas-microsoft-com:office:excel:ClientData")]
6267ClientData,
6268
6269
6270[XmlEnum("urn:schemas-microsoft-com:office:powerpoint:textdata")]
6271textdata,
6272
6273
6274[XmlEnum("urn:schemas-microsoft-com:office:word:anchorlock")]
6275anchorlock,
6276
6277
6278[XmlEnum("urn:schemas-microsoft-com:office:word:borderbottom")]
6279borderbottom,
6280
6281
6282[XmlEnum("urn:schemas-microsoft-com:office:word:borderleft")]
6283borderleft,
6284
6285
6286[XmlEnum("urn:schemas-microsoft-com:office:word:borderright")]
6287borderright,
6288
6289
6290[XmlEnum("urn:schemas-microsoft-com:office:word:bordertop")]
6291bordertop,
6292
6293
6294[XmlEnum("urn:schemas-microsoft-com:office:word:wrap")]
6295wrap,
6296
6297
6298fill,
6299
6300
6301formulas,
6302
6303
6304handles,
6305
6306
6307imagedata,
6308
6309
6310path,
6311
6312
6313shadow,
6314
6315
6316stroke,
6317
6318
6319textbox,
6320
6321
6322textpath,
6323}
6324
6325
6326[Serializable]
6327[XmlType(Namespace="urn:schemas-microsoft-com:vml", IncludeInSchema=false)]
6328public enum ItemsChoiceType6 {
6329
6330
6331[XmlEnum("urn:schemas-microsoft-com:office:excel:ClientData")]
6332ClientData,
6333
6334
6335[XmlEnum("urn:schemas-microsoft-com:office:powerpoint:textdata")]
6336textdata,
6337
6338
6339[XmlEnum("urn:schemas-microsoft-com:office:word:anchorlock")]
6340anchorlock,
6341
6342
6343[XmlEnum("urn:schemas-microsoft-com:office:word:borderbottom")]
6344borderbottom,
6345
6346
6347[XmlEnum("urn:schemas-microsoft-com:office:word:borderleft")]
6348borderleft,
6349
6350
6351[XmlEnum("urn:schemas-microsoft-com:office:word:borderright")]
6352borderright,
6353
6354
6355[XmlEnum("urn:schemas-microsoft-com:office:word:bordertop")]
6356bordertop,
6357
6358
6359[XmlEnum("urn:schemas-microsoft-com:office:word:wrap")]
6360wrap,
6361
6362
6363arc,
6364
6365
6366curve,
6367
6368
6369fill,
6370
6371
6372formulas,
6373
6374
6375group,
6376
6377
6378handles,
6379
6380
6381image,
6382
6383
6384imagedata,
6385
6386
6387line,
6388
6389
6390oval,
6391
6392
6393path,
6394
6395
6396polyline,
6397
6398
6399rect,
6400
6401
6402roundrect,
6403
6404
6405shadow,
6406
6407
6408shape,
6409
6410
6411shapetype,
6412
6413
6414stroke,
6415
6416
6417textbox,
6418
6419
6420textpath,
6421}
6422
6423
6424[Serializable]
6425[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
6426[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
6427public enum ST_EditAs {
6428
6429
6430canvas,
6431
6432
6433orgchart,
6434
6435
6436radial,
6437
6438
6439cycle,
6440
6441
6442stacked,
6443
6444
6445venn,
6446
6447
6448bullseye,
6449}
6450
6451
6452[Serializable]
6453
6454[System.ComponentModel.DesignerCategory("code")]
6455[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
6456[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=true)]
6457public class CT_Background {
6458
6459private CT_Fill fillField;
6460
6461private string idField;
6462
6463private ST_TrueFalse filledField;
6464
6465private bool filledFieldSpecified;
6466
6467private string fillcolorField;
6468
6469
6470public CT_Fill fill {
6471get {
6472return this.fillField;
6473}
6474set {
6475this.fillField = value;
6476}
6477}
6478
6479
6480[XmlAttribute]
6481public string id
6482{
6483get {
6484return this.idField;
6485}
6486set {
6487this.idField = value;
6488}
6489}
6490
6491
6492[XmlAttribute]
6493public ST_TrueFalse filled {
6494get {
6495return this.filledField;
6496}
6497set {
6498this.filledField = value;
6499}
6500}
6501
6502
6503[XmlIgnore]
6504public bool filledSpecified {
6505get {
6506return this.filledFieldSpecified;
6507}
6508set {
6509this.filledFieldSpecified = value;
6510}
6511}
6512
6513
6514[XmlAttribute]
6515public string fillcolor {
6516get {
6517return this.fillcolorField;
6518}
6519set {
6520this.fillcolorField = value;
6521}
6522}
6523}
6524
6525
6526[Serializable]
6527[XmlType(Namespace="urn:schemas-microsoft-com:vml")]
6528[XmlRoot(Namespace="urn:schemas-microsoft-com:vml", IsNullable=false)]
6529public enum ST_Ext
6530{
6531NONE,
6532view,
6533edit,
6534backwardCompatible,
6535}
6536}
6537