npoi
2432 строки · 68.9 Кб
1using NPOI.OpenXml4Net.Util;
2using NPOI.OpenXmlFormats.Dml.Spreadsheet;
3using System;
4using System.ComponentModel;
5using System.Diagnostics;
6using System.IO;
7using System.Xml;
8using System.Xml.Serialization;
9
10namespace NPOI.OpenXmlFormats.Dml
11{
12[Serializable]
13
14[System.ComponentModel.DesignerCategoryAttribute("code")]
15[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
16[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
17public class CT_ConnectorLocking
18{
19
20private CT_OfficeArtExtensionList extLstField;
21
22private bool noGrpField;
23
24private bool noSelectField;
25
26private bool noRotField;
27
28private bool noChangeAspectField;
29
30private bool noMoveField;
31
32private bool noResizeField;
33
34private bool noEditPointsField;
35
36private bool noAdjustHandlesField;
37
38private bool noChangeArrowheadsField;
39
40private bool noChangeShapeTypeField;
41public static CT_ConnectorLocking Parse(XmlNode node, XmlNamespaceManager namespaceManager)
42{
43if (node == null)
44return null;
45CT_ConnectorLocking ctObj = new CT_ConnectorLocking();
46ctObj.noGrp = XmlHelper.ReadBool(node.Attributes["noGrp"]);
47ctObj.noSelect = XmlHelper.ReadBool(node.Attributes["noSelect"]);
48ctObj.noRot = XmlHelper.ReadBool(node.Attributes["noRot"]);
49ctObj.noChangeAspect = XmlHelper.ReadBool(node.Attributes["noChangeAspect"]);
50ctObj.noMove = XmlHelper.ReadBool(node.Attributes["noMove"]);
51ctObj.noResize = XmlHelper.ReadBool(node.Attributes["noResize"]);
52ctObj.noEditPoints = XmlHelper.ReadBool(node.Attributes["noEditPoints"]);
53ctObj.noAdjustHandles = XmlHelper.ReadBool(node.Attributes["noAdjustHandles"]);
54ctObj.noChangeArrowheads = XmlHelper.ReadBool(node.Attributes["noChangeArrowheads"]);
55ctObj.noChangeShapeType = XmlHelper.ReadBool(node.Attributes["noChangeShapeType"]);
56foreach (XmlNode childNode in node.ChildNodes)
57{
58if (childNode.LocalName == "extLst")
59ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
60}
61return ctObj;
62}
63
64
65
66internal void Write(StreamWriter sw, string nodeName)
67{
68sw.Write(string.Format("<a:{0}", nodeName));
69XmlHelper.WriteAttribute(sw, "noGrp", this.noGrp);
70XmlHelper.WriteAttribute(sw, "noSelect", this.noSelect);
71XmlHelper.WriteAttribute(sw, "noRot", this.noRot);
72XmlHelper.WriteAttribute(sw, "noChangeAspect", this.noChangeAspect);
73XmlHelper.WriteAttribute(sw, "noMove", this.noMove);
74XmlHelper.WriteAttribute(sw, "noResize", this.noResize);
75XmlHelper.WriteAttribute(sw, "noEditPoints", this.noEditPoints);
76XmlHelper.WriteAttribute(sw, "noAdjustHandles", this.noAdjustHandles);
77XmlHelper.WriteAttribute(sw, "noChangeArrowheads", this.noChangeArrowheads);
78XmlHelper.WriteAttribute(sw, "noChangeShapeType", this.noChangeShapeType);
79sw.Write(">");
80if (this.extLst != null)
81this.extLst.Write(sw, "extLst");
82sw.Write(string.Format("</a:{0}>", nodeName));
83}
84
85public CT_ConnectorLocking()
86{
87//this.extLstField = new CT_OfficeArtExtensionList();
88this.noGrpField = false;
89this.noSelectField = false;
90this.noRotField = false;
91this.noChangeAspectField = false;
92this.noMoveField = false;
93this.noResizeField = false;
94this.noEditPointsField = false;
95this.noAdjustHandlesField = false;
96this.noChangeArrowheadsField = false;
97this.noChangeShapeTypeField = false;
98}
99
100[XmlElement(Order = 0)]
101public CT_OfficeArtExtensionList extLst
102{
103get
104{
105return this.extLstField;
106}
107set
108{
109this.extLstField = value;
110}
111}
112
113[XmlAttribute]
114[DefaultValue(false)]
115public bool noGrp
116{
117get
118{
119return this.noGrpField;
120}
121set
122{
123this.noGrpField = value;
124}
125}
126
127[XmlAttribute]
128[DefaultValue(false)]
129public bool noSelect
130{
131get
132{
133return this.noSelectField;
134}
135set
136{
137this.noSelectField = value;
138}
139}
140
141[XmlAttribute]
142[DefaultValue(false)]
143public bool noRot
144{
145get
146{
147return this.noRotField;
148}
149set
150{
151this.noRotField = value;
152}
153}
154
155[XmlAttribute]
156[DefaultValue(false)]
157public bool noChangeAspect
158{
159get
160{
161return this.noChangeAspectField;
162}
163set
164{
165this.noChangeAspectField = value;
166}
167}
168
169[XmlAttribute]
170[DefaultValue(false)]
171public bool noMove
172{
173get
174{
175return this.noMoveField;
176}
177set
178{
179this.noMoveField = value;
180}
181}
182
183[XmlAttribute]
184[DefaultValue(false)]
185public bool noResize
186{
187get
188{
189return this.noResizeField;
190}
191set
192{
193this.noResizeField = value;
194}
195}
196
197[XmlAttribute]
198[DefaultValue(false)]
199public bool noEditPoints
200{
201get
202{
203return this.noEditPointsField;
204}
205set
206{
207this.noEditPointsField = value;
208}
209}
210
211[XmlAttribute]
212[DefaultValue(false)]
213public bool noAdjustHandles
214{
215get
216{
217return this.noAdjustHandlesField;
218}
219set
220{
221this.noAdjustHandlesField = value;
222}
223}
224
225[XmlAttribute]
226[DefaultValue(false)]
227public bool noChangeArrowheads
228{
229get
230{
231return this.noChangeArrowheadsField;
232}
233set
234{
235this.noChangeArrowheadsField = value;
236}
237}
238
239[XmlAttribute]
240[DefaultValue(false)]
241public bool noChangeShapeType
242{
243get
244{
245return this.noChangeShapeTypeField;
246}
247set
248{
249this.noChangeShapeTypeField = value;
250}
251}
252}
253
254
255
256[Serializable]
257
258[System.ComponentModel.DesignerCategoryAttribute("code")]
259[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
260[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
261public class CT_PictureLocking
262{
263
264private CT_OfficeArtExtensionList extLstField;
265
266private bool noGrpField;
267
268private bool noSelectField;
269
270private bool noRotField;
271
272private bool noChangeAspectField;
273
274private bool noMoveField;
275
276private bool noResizeField;
277
278private bool noEditPointsField;
279
280private bool noAdjustHandlesField;
281
282private bool noChangeArrowheadsField;
283
284private bool noChangeShapeTypeField;
285
286private bool noCropField;
287
288public CT_PictureLocking()
289{
290//this.extLstField = new CT_OfficeArtExtensionList();
291this.noGrpField = false;
292this.noSelectField = false;
293this.noRotField = false;
294this.noChangeAspectField = false;
295this.noMoveField = false;
296this.noResizeField = false;
297this.noEditPointsField = false;
298this.noAdjustHandlesField = false;
299this.noChangeArrowheadsField = false;
300this.noChangeShapeTypeField = false;
301this.noCropField = false;
302}
303public static CT_PictureLocking Parse(XmlNode node, XmlNamespaceManager namespaceManager)
304{
305if (node == null)
306return null;
307CT_PictureLocking ctObj = new CT_PictureLocking();
308ctObj.noGrp = XmlHelper.ReadBool(node.Attributes["noGrp"]);
309ctObj.noSelect = XmlHelper.ReadBool(node.Attributes["noSelect"]);
310ctObj.noRot = XmlHelper.ReadBool(node.Attributes["noRot"]);
311ctObj.noChangeAspect = XmlHelper.ReadBool(node.Attributes["noChangeAspect"]);
312ctObj.noMove = XmlHelper.ReadBool(node.Attributes["noMove"]);
313ctObj.noResize = XmlHelper.ReadBool(node.Attributes["noResize"]);
314ctObj.noEditPoints = XmlHelper.ReadBool(node.Attributes["noEditPoints"]);
315ctObj.noAdjustHandles = XmlHelper.ReadBool(node.Attributes["noAdjustHandles"]);
316ctObj.noChangeArrowheads = XmlHelper.ReadBool(node.Attributes["noChangeArrowheads"]);
317ctObj.noChangeShapeType = XmlHelper.ReadBool(node.Attributes["noChangeShapeType"]);
318ctObj.noCrop = XmlHelper.ReadBool(node.Attributes["noCrop"]);
319foreach (XmlNode childNode in node.ChildNodes)
320{
321if (childNode.LocalName == "extLst")
322ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
323}
324return ctObj;
325}
326
327
328
329internal void Write(StreamWriter sw, string nodeName)
330{
331sw.Write(string.Format("<a:{0}", nodeName));
332if(noGrp)
333XmlHelper.WriteAttribute(sw, "noGrp", this.noGrp);
334if (noSelect)
335XmlHelper.WriteAttribute(sw, "noSelect", this.noSelect);
336if (noRot)
337XmlHelper.WriteAttribute(sw, "noRot", this.noRot);
338if (noChangeAspect)
339XmlHelper.WriteAttribute(sw, "noChangeAspect", this.noChangeAspect);
340if (noMove)
341XmlHelper.WriteAttribute(sw, "noMove", this.noMove);
342if (noResize)
343XmlHelper.WriteAttribute(sw, "noResize", this.noResize);
344if (noEditPoints)
345XmlHelper.WriteAttribute(sw, "noEditPoints", this.noEditPoints);
346if (noAdjustHandles)
347XmlHelper.WriteAttribute(sw, "noAdjustHandles", this.noAdjustHandles);
348if (noChangeArrowheads)
349XmlHelper.WriteAttribute(sw, "noChangeArrowheads", this.noChangeArrowheads);
350if (noChangeShapeType)
351XmlHelper.WriteAttribute(sw, "noChangeShapeType", this.noChangeShapeType);
352if (noCrop)
353XmlHelper.WriteAttribute(sw, "noCrop", this.noCrop);
354sw.Write(">");
355if (this.extLst != null)
356this.extLst.Write(sw, "extLst");
357sw.Write(string.Format("</a:{0}>", nodeName));
358}
359[XmlElement(Order = 0)]
360public CT_OfficeArtExtensionList extLst
361{
362get
363{
364return this.extLstField;
365}
366set
367{
368this.extLstField = value;
369}
370}
371
372[XmlAttribute]
373[DefaultValue(false)]
374public bool noGrp
375{
376get
377{
378return this.noGrpField;
379}
380set
381{
382this.noGrpField = value;
383}
384}
385
386[XmlAttribute]
387[DefaultValue(false)]
388public bool noSelect
389{
390get
391{
392return this.noSelectField;
393}
394set
395{
396this.noSelectField = value;
397}
398}
399
400[XmlAttribute]
401[DefaultValue(false)]
402public bool noRot
403{
404get
405{
406return this.noRotField;
407}
408set
409{
410this.noRotField = value;
411}
412}
413
414[XmlAttribute]
415[DefaultValue(false)]
416public bool noChangeAspect
417{
418get
419{
420return this.noChangeAspectField;
421}
422set
423{
424this.noChangeAspectField = value;
425}
426}
427
428[XmlAttribute]
429[DefaultValue(false)]
430public bool noMove
431{
432get
433{
434return this.noMoveField;
435}
436set
437{
438this.noMoveField = value;
439}
440}
441
442[XmlAttribute]
443[DefaultValue(false)]
444public bool noResize
445{
446get
447{
448return this.noResizeField;
449}
450set
451{
452this.noResizeField = value;
453}
454}
455
456[XmlAttribute]
457[DefaultValue(false)]
458public bool noEditPoints
459{
460get
461{
462return this.noEditPointsField;
463}
464set
465{
466this.noEditPointsField = value;
467}
468}
469
470[XmlAttribute]
471[DefaultValue(false)]
472public bool noAdjustHandles
473{
474get
475{
476return this.noAdjustHandlesField;
477}
478set
479{
480this.noAdjustHandlesField = value;
481}
482}
483
484[XmlAttribute]
485[DefaultValue(false)]
486public bool noChangeArrowheads
487{
488get
489{
490return this.noChangeArrowheadsField;
491}
492set
493{
494this.noChangeArrowheadsField = value;
495}
496}
497
498[XmlAttribute]
499[DefaultValue(false)]
500public bool noChangeShapeType
501{
502get
503{
504return this.noChangeShapeTypeField;
505}
506set
507{
508this.noChangeShapeTypeField = value;
509}
510}
511
512[XmlAttribute]
513[DefaultValue(false)]
514public bool noCrop
515{
516get
517{
518return this.noCropField;
519}
520set
521{
522this.noCropField = value;
523}
524}
525}
526
527
528
529
530
531[Serializable]
532
533[System.ComponentModel.DesignerCategoryAttribute("code")]
534[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
535[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
536public class CT_GraphicalObjectFrameLocking
537{
538
539private CT_OfficeArtExtensionList extLstField;
540
541private bool noGrpField;
542
543private bool noDrilldownField;
544
545private bool noSelectField;
546
547private bool noChangeAspectField;
548
549private bool noMoveField;
550
551private bool noResizeField;
552
553public CT_GraphicalObjectFrameLocking()
554{
555//this.extLstField = new CT_OfficeArtExtensionList();
556this.noGrpField = false;
557this.noDrilldownField = false;
558this.noSelectField = false;
559this.noChangeAspectField = false;
560this.noMoveField = false;
561this.noResizeField = false;
562}
563public static CT_GraphicalObjectFrameLocking Parse(XmlNode node, XmlNamespaceManager namespaceManager)
564{
565if (node == null)
566return null;
567CT_GraphicalObjectFrameLocking ctObj = new CT_GraphicalObjectFrameLocking();
568ctObj.noGrp = XmlHelper.ReadBool(node.Attributes["noGrp"]);
569ctObj.noDrilldown = XmlHelper.ReadBool(node.Attributes["noDrilldown"]);
570ctObj.noSelect = XmlHelper.ReadBool(node.Attributes["noSelect"]);
571ctObj.noChangeAspect = XmlHelper.ReadBool(node.Attributes["noChangeAspect"]);
572ctObj.noMove = XmlHelper.ReadBool(node.Attributes["noMove"]);
573ctObj.noResize = XmlHelper.ReadBool(node.Attributes["noResize"]);
574foreach (XmlNode childNode in node.ChildNodes)
575{
576if (childNode.LocalName == "extLst")
577ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
578}
579return ctObj;
580}
581
582
583
584internal void Write(StreamWriter sw, string nodeName)
585{
586sw.Write(string.Format("<a:{0} xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\"", nodeName));
587XmlHelper.WriteAttribute(sw, "noGrp", this.noGrp, false);
588XmlHelper.WriteAttribute(sw, "noDrilldown", this.noDrilldown, false);
589XmlHelper.WriteAttribute(sw, "noSelect", this.noSelect, false);
590XmlHelper.WriteAttribute(sw, "noChangeAspect", this.noChangeAspect, false);
591XmlHelper.WriteAttribute(sw, "noMove", this.noMove, false);
592XmlHelper.WriteAttribute(sw, "noResize", this.noResize, false);
593if (this.extLst != null && this.extLst.ext.Count != 0)
594{
595sw.Write(">");
596this.extLst.Write(sw, "extLst");
597sw.Write(string.Format("</a:{0}>", nodeName));
598}
599else
600{
601sw.Write("/>");
602}
603}
604
605[XmlElement(Order = 0)]
606public CT_OfficeArtExtensionList extLst
607{
608get
609{
610return this.extLstField;
611}
612set
613{
614this.extLstField = value;
615}
616}
617
618[XmlAttribute]
619[DefaultValue(false)]
620public bool noGrp
621{
622get
623{
624return this.noGrpField;
625}
626set
627{
628this.noGrpField = value;
629}
630}
631
632[XmlAttribute]
633[DefaultValue(false)]
634public bool noDrilldown
635{
636get
637{
638return this.noDrilldownField;
639}
640set
641{
642this.noDrilldownField = value;
643}
644}
645
646[XmlAttribute]
647[DefaultValue(false)]
648public bool noSelect
649{
650get
651{
652return this.noSelectField;
653}
654set
655{
656this.noSelectField = value;
657}
658}
659
660[XmlAttribute]
661[DefaultValue(false)]
662public bool noChangeAspect
663{
664get
665{
666return this.noChangeAspectField;
667}
668set
669{
670this.noChangeAspectField = value;
671}
672}
673
674[XmlAttribute]
675[DefaultValue(false)]
676public bool noMove
677{
678get
679{
680return this.noMoveField;
681}
682set
683{
684this.noMoveField = value;
685}
686}
687
688[XmlAttribute]
689[DefaultValue(false)]
690public bool noResize
691{
692get
693{
694return this.noResizeField;
695}
696set
697{
698this.noResizeField = value;
699}
700}
701}
702
703
704[Serializable]
705
706[System.ComponentModel.DesignerCategoryAttribute("code")]
707[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
708[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
709public class CT_NonVisualDrawingProps
710{
711public static CT_NonVisualDrawingProps Parse(XmlNode node, XmlNamespaceManager namespaceManager)
712{
713if (node == null)
714return null;
715CT_NonVisualDrawingProps ctObj = new CT_NonVisualDrawingProps();
716ctObj.id = XmlHelper.ReadUInt(node.Attributes["id"]);
717ctObj.name = XmlHelper.ReadString(node.Attributes["name"]);
718ctObj.descr = XmlHelper.ReadString(node.Attributes["descr"]);
719ctObj.hidden = XmlHelper.ReadBool(node.Attributes["hidden"]);
720foreach (XmlNode childNode in node.ChildNodes)
721{
722if (childNode.LocalName == "hlinkClick")
723ctObj.hlinkClick = CT_Hyperlink.Parse(childNode, namespaceManager);
724else if (childNode.LocalName == "hlinkHover")
725ctObj.hlinkHover = CT_Hyperlink.Parse(childNode, namespaceManager);
726else if (childNode.LocalName == "extLst")
727ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
728}
729return ctObj;
730}
731
732
733
734internal void Write(StreamWriter sw, string nodeName)
735{
736sw.Write(string.Format("<pic:{0}", nodeName));
737XmlHelper.WriteAttribute(sw, "id", this.id, true);
738XmlHelper.WriteAttribute(sw, "name", this.name);
739XmlHelper.WriteAttribute(sw, "descr", this.descr);
740if(this.hidden)
741XmlHelper.WriteAttribute(sw, "hidden", this.hidden);
742sw.Write(">");
743if (this.hlinkClick != null)
744this.hlinkClick.Write(sw, "hlinkClick");
745if (this.hlinkHover != null)
746this.hlinkHover.Write(sw, "hlinkHover");
747if (this.extLst != null)
748this.extLst.Write(sw, "extLst");
749sw.Write(string.Format("</pic:{0}>", nodeName));
750}
751
752private CT_Hyperlink hlinkClickField = null;
753
754private CT_Hyperlink hlinkHoverField = null;
755
756private CT_OfficeArtExtensionList extLstField = null;
757
758private uint idField;
759
760private string nameField = null;
761
762private string descrField;
763
764private bool? hiddenField = null;
765
766[XmlElement(Order = 0)]
767public CT_Hyperlink hlinkClick
768{
769get
770{
771return this.hlinkClickField;
772}
773set
774{
775this.hlinkClickField = value;
776}
777}
778
779[XmlElement(Order = 1)]
780public CT_Hyperlink hlinkHover
781{
782get
783{
784return this.hlinkHoverField;
785}
786set
787{
788this.hlinkHoverField = value;
789}
790}
791
792[XmlElement(Order = 2)]
793public CT_OfficeArtExtensionList extLst
794{
795get
796{
797return this.extLstField;
798}
799set
800{
801this.extLstField = value;
802}
803}
804
805[XmlAttribute]
806public uint id
807{
808get
809{
810return this.idField;
811}
812set
813{
814this.idField = value;
815}
816}
817
818[XmlAttribute]
819public string name
820{
821get
822{
823return this.nameField;
824}
825set
826{
827this.nameField = value;
828}
829}
830
831[XmlAttribute]
832[DefaultValue("")]
833public string descr
834{
835get
836{
837return null == this.descrField ? "" : descrField;
838}
839set
840{
841this.descrField = value;
842}
843}
844[XmlIgnore]
845public bool descrSpecified
846{
847get { return (null != descrField); }
848}
849[XmlAttribute]
850[DefaultValue(false)]
851public bool hidden
852{
853get
854{
855return null == this.hiddenField ? false : (bool)hiddenField;
856}
857set
858{
859this.hiddenField = value;
860}
861}
862
863[XmlIgnore]
864public bool hiddenSpecified
865{
866get { return (null != hiddenField); }
867}
868}
869
870
871[Serializable]
872
873[System.ComponentModel.DesignerCategoryAttribute("code")]
874[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
875[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
876public class CT_NonVisualDrawingShapeProps
877{
878
879private CT_ShapeLocking spLocksField;
880
881private CT_OfficeArtExtensionList extLstField;
882
883private bool txBoxField;
884public static CT_NonVisualDrawingShapeProps Parse(XmlNode node, XmlNamespaceManager namespaceManager)
885{
886if (node == null)
887return null;
888CT_NonVisualDrawingShapeProps ctObj = new CT_NonVisualDrawingShapeProps();
889ctObj.txBox = XmlHelper.ReadBool(node.Attributes["txBox"]);
890foreach (XmlNode childNode in node.ChildNodes)
891{
892if (childNode.LocalName == "spLocks")
893ctObj.spLocks = CT_ShapeLocking.Parse(childNode, namespaceManager);
894else if (childNode.LocalName == "extLst")
895ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
896}
897return ctObj;
898}
899
900
901
902internal void Write(StreamWriter sw, string nodeName)
903{
904sw.Write(string.Format("<a:{0}", nodeName));
905XmlHelper.WriteAttribute(sw, "txBox", this.txBox, false);
906sw.Write(">");
907if (this.spLocks != null)
908this.spLocks.Write(sw, "spLocks");
909if (this.extLst != null)
910this.extLst.Write(sw, "extLst");
911sw.Write(string.Format("</a:{0}>", nodeName));
912}
913
914
915
916[XmlElement(Order = 0)]
917public CT_ShapeLocking spLocks
918{
919get
920{
921return this.spLocksField;
922}
923set
924{
925this.spLocksField = value;
926}
927}
928
929[XmlElement(Order = 1)]
930public CT_OfficeArtExtensionList extLst
931{
932get
933{
934return this.extLstField;
935}
936set
937{
938this.extLstField = value;
939}
940}
941
942[XmlAttribute]
943[DefaultValue(false)]
944public bool txBox
945{
946get
947{
948return this.txBoxField;
949}
950set
951{
952this.txBoxField = value;
953}
954}
955}
956
957
958[Serializable]
959
960[System.ComponentModel.DesignerCategoryAttribute("code")]
961[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
962[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
963public class CT_NonVisualConnectorProperties
964{
965public static CT_NonVisualConnectorProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)
966{
967if (node == null)
968return null;
969CT_NonVisualConnectorProperties ctObj = new CT_NonVisualConnectorProperties();
970foreach (XmlNode childNode in node.ChildNodes)
971{
972if (childNode.LocalName == "cxnSpLocks")
973ctObj.cxnSpLocks = CT_ConnectorLocking.Parse(childNode, namespaceManager);
974else if (childNode.LocalName == "stCxn")
975ctObj.stCxn = CT_Connection.Parse(childNode, namespaceManager);
976else if (childNode.LocalName == "endCxn")
977ctObj.endCxn = CT_Connection.Parse(childNode, namespaceManager);
978else if (childNode.LocalName == "extLst")
979ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
980}
981return ctObj;
982}
983
984
985
986internal void Write(StreamWriter sw, string nodeName)
987{
988sw.Write(string.Format("<xdr:{0}", nodeName));
989sw.Write(">");
990if (this.cxnSpLocks != null)
991this.cxnSpLocks.Write(sw, "cxnSpLocks");
992if (this.stCxn != null)
993this.stCxn.Write(sw, "stCxn");
994if (this.endCxn != null)
995this.endCxn.Write(sw, "endCxn");
996if (this.extLst != null)
997this.extLst.Write(sw, "extLst");
998sw.Write(string.Format("</xdr:{0}>", nodeName));
999}
1000
1001
1002private CT_ConnectorLocking cxnSpLocksField;
1003
1004private CT_Connection stCxnField;
1005
1006private CT_Connection endCxnField;
1007
1008private CT_OfficeArtExtensionList extLstField;
1009
1010public CT_NonVisualConnectorProperties()
1011{
1012}
1013
1014[XmlElement(Order = 0)]
1015public CT_ConnectorLocking cxnSpLocks
1016{
1017get
1018{
1019return this.cxnSpLocksField;
1020}
1021set
1022{
1023this.cxnSpLocksField = value;
1024}
1025}
1026
1027[XmlElement(Order = 1)]
1028public CT_Connection stCxn
1029{
1030get
1031{
1032return this.stCxnField;
1033}
1034set
1035{
1036this.stCxnField = value;
1037}
1038}
1039
1040[XmlElement(Order = 2)]
1041public CT_Connection endCxn
1042{
1043get
1044{
1045return this.endCxnField;
1046}
1047set
1048{
1049this.endCxnField = value;
1050}
1051}
1052
1053[XmlElement(Order = 3)]
1054public CT_OfficeArtExtensionList extLst
1055{
1056get
1057{
1058return this.extLstField;
1059}
1060set
1061{
1062this.extLstField = value;
1063}
1064}
1065}
1066
1067
1068
1069[Serializable]
1070
1071[System.ComponentModel.DesignerCategoryAttribute("code")]
1072[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
1073[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
1074public class CT_NonVisualPictureProperties
1075{
1076public static CT_NonVisualPictureProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1077{
1078if (node == null)
1079return null;
1080CT_NonVisualPictureProperties ctObj = new CT_NonVisualPictureProperties();
1081ctObj.preferRelativeResize = XmlHelper.ReadBool(node.Attributes["preferRelativeResize"], true);
1082foreach (XmlNode childNode in node.ChildNodes)
1083{
1084if (childNode.LocalName == "picLocks")
1085ctObj.picLocks = CT_PictureLocking.Parse(childNode, namespaceManager);
1086else if (childNode.LocalName == "extLst")
1087ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
1088}
1089return ctObj;
1090}
1091
1092
1093
1094internal void Write(StreamWriter sw, string nodeName)
1095{
1096sw.Write(string.Format("<pic:{0}", nodeName));
1097if (!preferRelativeResize)
1098XmlHelper.WriteAttribute(sw, "preferRelativeResize", this.preferRelativeResize);
1099sw.Write(">");
1100if (this.picLocks != null)
1101this.picLocks.Write(sw, "picLocks");
1102if (this.extLst != null)
1103this.extLst.Write(sw, "extLst");
1104sw.Write(string.Format("</pic:{0}>", nodeName));
1105}
1106
1107private CT_PictureLocking picLocksField = null;
1108
1109private CT_OfficeArtExtensionList extLstField = null;
1110
1111private bool preferRelativeResizeField = true;
1112
1113public CT_NonVisualPictureProperties()
1114{
1115}
1116
1117public CT_PictureLocking AddNewPicLocks()
1118{
1119this.picLocksField = new CT_PictureLocking();
1120return picLocksField;
1121}
1122
1123[XmlElement(Order = 0)]
1124public CT_PictureLocking picLocks
1125{
1126get
1127{
1128return this.picLocksField;
1129}
1130set
1131{
1132this.picLocksField = value;
1133}
1134}
1135
1136[XmlElement(Order = 1)]
1137public CT_OfficeArtExtensionList extLst
1138{
1139get
1140{
1141return this.extLstField;
1142}
1143set
1144{
1145this.extLstField = value;
1146}
1147}
1148
1149[XmlAttribute]
1150public bool preferRelativeResize
1151{
1152get
1153{
1154return preferRelativeResizeField;
1155}
1156set
1157{
1158this.preferRelativeResizeField = value;
1159}
1160}
1161}
1162
1163
1164[Serializable]
1165
1166[System.ComponentModel.DesignerCategoryAttribute("code")]
1167[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
1168[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
1169public class CT_NonVisualGroupDrawingShapeProps
1170{
1171
1172private CT_GroupLocking grpSpLocksField;
1173
1174private CT_OfficeArtExtensionList extLstField;
1175
1176public static CT_NonVisualGroupDrawingShapeProps Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1177{
1178if (node == null)
1179return null;
1180CT_NonVisualGroupDrawingShapeProps ctObj = new CT_NonVisualGroupDrawingShapeProps();
1181foreach (XmlNode childNode in node.ChildNodes)
1182{
1183if (childNode.LocalName == "grpSpLocks")
1184ctObj.grpSpLocks = CT_GroupLocking.Parse(childNode, namespaceManager);
1185else if (childNode.LocalName == "extLst")
1186ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
1187}
1188return ctObj;
1189}
1190
1191
1192
1193internal void Write(StreamWriter sw, string nodeName)
1194{
1195sw.Write(string.Format("<{0}", nodeName));
1196sw.Write(">");
1197if (this.grpSpLocks != null)
1198this.grpSpLocks.Write(sw, "grpSpLocks");
1199if (this.extLst != null)
1200this.extLst.Write(sw, "extLst");
1201sw.Write(string.Format("</{0}>", nodeName));
1202}
1203
1204public CT_NonVisualGroupDrawingShapeProps()
1205{
1206//this.extLstField = new CT_OfficeArtExtensionList();
1207//this.grpSpLocksField = new CT_GroupLocking();
1208}
1209
1210[XmlElement(Order = 0)]
1211public CT_GroupLocking grpSpLocks
1212{
1213get
1214{
1215return this.grpSpLocksField;
1216}
1217set
1218{
1219this.grpSpLocksField = value;
1220}
1221}
1222
1223[XmlElement(Order = 1)]
1224public CT_OfficeArtExtensionList extLst
1225{
1226get
1227{
1228return this.extLstField;
1229}
1230set
1231{
1232this.extLstField = value;
1233}
1234}
1235}
1236
1237
1238[Serializable]
1239[System.ComponentModel.DesignerCategoryAttribute("code")]
1240[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
1241[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
1242public class CT_NonVisualGraphicFrameProperties
1243{
1244
1245private CT_GraphicalObjectFrameLocking graphicFrameLocksField;
1246
1247private CT_OfficeArtExtensionList extLstField;
1248
1249public CT_NonVisualGraphicFrameProperties()
1250{
1251//this.extLstField = new CT_OfficeArtExtensionList();
1252//this.graphicFrameLocksField = new CT_GraphicalObjectFrameLocking();
1253}
1254public static CT_NonVisualGraphicFrameProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1255{
1256if (node == null)
1257return null;
1258CT_NonVisualGraphicFrameProperties ctObj = new CT_NonVisualGraphicFrameProperties();
1259foreach (XmlNode childNode in node.ChildNodes)
1260{
1261if (childNode.LocalName == "graphicFrameLocks")
1262ctObj.graphicFrameLocks = CT_GraphicalObjectFrameLocking.Parse(childNode, namespaceManager);
1263else if (childNode.LocalName == "extLst")
1264ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
1265}
1266return ctObj;
1267}
1268
1269
1270
1271internal void Write(StreamWriter sw, string nodeName)
1272{
1273sw.Write(string.Format("<a:{0}", nodeName));
1274sw.Write(">");
1275if (this.graphicFrameLocks != null)
1276this.graphicFrameLocks.Write(sw, "graphicFrameLocks");
1277if (this.extLst != null)
1278this.extLst.Write(sw, "extLst");
1279sw.Write(string.Format("</a:{0}>", nodeName));
1280}
1281
1282[XmlElement(Order = 0)]
1283public CT_GraphicalObjectFrameLocking graphicFrameLocks
1284{
1285get
1286{
1287return this.graphicFrameLocksField;
1288}
1289set
1290{
1291this.graphicFrameLocksField = value;
1292}
1293}
1294
1295[XmlElement(Order = 1)]
1296public CT_OfficeArtExtensionList extLst
1297{
1298get
1299{
1300return this.extLstField;
1301}
1302set
1303{
1304this.extLstField = value;
1305}
1306}
1307}
1308
1309[Serializable]
1310
1311[System.ComponentModel.DesignerCategoryAttribute("code")]
1312[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
1313[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
1314public class CT_ShapeLocking
1315{
1316
1317private CT_OfficeArtExtensionList extLstField;
1318
1319private bool noGrpField;
1320
1321private bool noSelectField;
1322
1323private bool noRotField;
1324
1325private bool noChangeAspectField;
1326
1327private bool noMoveField;
1328
1329private bool noResizeField;
1330
1331private bool noEditPointsField;
1332
1333private bool noAdjustHandlesField;
1334
1335private bool noChangeArrowheadsField;
1336
1337private bool noChangeShapeTypeField;
1338
1339private bool noTextEditField;
1340public static CT_ShapeLocking Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1341{
1342if (node == null)
1343return null;
1344CT_ShapeLocking ctObj = new CT_ShapeLocking();
1345ctObj.noGrp = XmlHelper.ReadBool(node.Attributes["noGrp"]);
1346ctObj.noSelect = XmlHelper.ReadBool(node.Attributes["noSelect"]);
1347ctObj.noRot = XmlHelper.ReadBool(node.Attributes["noRot"]);
1348ctObj.noChangeAspect = XmlHelper.ReadBool(node.Attributes["noChangeAspect"]);
1349ctObj.noMove = XmlHelper.ReadBool(node.Attributes["noMove"]);
1350ctObj.noResize = XmlHelper.ReadBool(node.Attributes["noResize"]);
1351ctObj.noEditPoints = XmlHelper.ReadBool(node.Attributes["noEditPoints"]);
1352ctObj.noAdjustHandles = XmlHelper.ReadBool(node.Attributes["noAdjustHandles"]);
1353ctObj.noChangeArrowheads = XmlHelper.ReadBool(node.Attributes["noChangeArrowheads"]);
1354ctObj.noChangeShapeType = XmlHelper.ReadBool(node.Attributes["noChangeShapeType"]);
1355ctObj.noTextEdit = XmlHelper.ReadBool(node.Attributes["noTextEdit"]);
1356foreach (XmlNode childNode in node.ChildNodes)
1357{
1358if (childNode.LocalName == "extLst")
1359ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
1360}
1361return ctObj;
1362}
1363
1364
1365
1366internal void Write(StreamWriter sw, string nodeName)
1367{
1368sw.Write(string.Format("<a:{0}", nodeName));
1369XmlHelper.WriteAttribute(sw, "noGrp", this.noGrp, false);
1370XmlHelper.WriteAttribute(sw, "noSelect", this.noSelect, false);
1371XmlHelper.WriteAttribute(sw, "noRot", this.noRot, false);
1372XmlHelper.WriteAttribute(sw, "noChangeAspect", this.noChangeAspect, false);
1373XmlHelper.WriteAttribute(sw, "noMove", this.noMove, false);
1374XmlHelper.WriteAttribute(sw, "noResize", this.noResize, false);
1375XmlHelper.WriteAttribute(sw, "noEditPoints", this.noEditPoints, false);
1376XmlHelper.WriteAttribute(sw, "noAdjustHandles", this.noAdjustHandles, false);
1377XmlHelper.WriteAttribute(sw, "noChangeArrowheads", this.noChangeArrowheads, false);
1378XmlHelper.WriteAttribute(sw, "noChangeShapeType", this.noChangeShapeType, false);
1379XmlHelper.WriteAttribute(sw, "noTextEdit", this.noTextEdit, false);
1380
1381if (this.extLst == null)
1382{
1383sw.Write("/>");
1384}
1385else
1386{
1387sw.Write(">");
1388this.extLst.Write(sw, "extLst");
1389sw.Write(string.Format("</a:{0}>", nodeName));
1390}
1391}
1392public CT_ShapeLocking()
1393{
1394//this.extLstField = new CT_OfficeArtExtensionList();
1395this.noGrpField = false;
1396this.noSelectField = false;
1397this.noRotField = false;
1398this.noChangeAspectField = false;
1399this.noMoveField = false;
1400this.noResizeField = false;
1401this.noEditPointsField = false;
1402this.noAdjustHandlesField = false;
1403this.noChangeArrowheadsField = false;
1404this.noChangeShapeTypeField = false;
1405this.noTextEditField = false;
1406}
1407
1408[XmlElement(Order = 0)]
1409public CT_OfficeArtExtensionList extLst
1410{
1411get
1412{
1413return this.extLstField;
1414}
1415set
1416{
1417this.extLstField = value;
1418}
1419}
1420
1421[XmlAttribute]
1422[DefaultValue(false)]
1423public bool noGrp
1424{
1425get
1426{
1427return this.noGrpField;
1428}
1429set
1430{
1431this.noGrpField = value;
1432}
1433}
1434
1435[XmlAttribute]
1436[DefaultValue(false)]
1437public bool noSelect
1438{
1439get
1440{
1441return this.noSelectField;
1442}
1443set
1444{
1445this.noSelectField = value;
1446}
1447}
1448
1449[XmlAttribute]
1450[DefaultValue(false)]
1451public bool noRot
1452{
1453get
1454{
1455return this.noRotField;
1456}
1457set
1458{
1459this.noRotField = value;
1460}
1461}
1462
1463[XmlAttribute]
1464[DefaultValue(false)]
1465public bool noChangeAspect
1466{
1467get
1468{
1469return this.noChangeAspectField;
1470}
1471set
1472{
1473this.noChangeAspectField = value;
1474}
1475}
1476
1477[XmlAttribute]
1478[DefaultValue(false)]
1479public bool noMove
1480{
1481get
1482{
1483return this.noMoveField;
1484}
1485set
1486{
1487this.noMoveField = value;
1488}
1489}
1490
1491[XmlAttribute]
1492[DefaultValue(false)]
1493public bool noResize
1494{
1495get
1496{
1497return this.noResizeField;
1498}
1499set
1500{
1501this.noResizeField = value;
1502}
1503}
1504
1505[XmlAttribute]
1506[DefaultValue(false)]
1507public bool noEditPoints
1508{
1509get
1510{
1511return this.noEditPointsField;
1512}
1513set
1514{
1515this.noEditPointsField = value;
1516}
1517}
1518
1519[XmlAttribute]
1520[DefaultValue(false)]
1521public bool noAdjustHandles
1522{
1523get
1524{
1525return this.noAdjustHandlesField;
1526}
1527set
1528{
1529this.noAdjustHandlesField = value;
1530}
1531}
1532
1533[XmlAttribute]
1534[DefaultValue(false)]
1535public bool noChangeArrowheads
1536{
1537get
1538{
1539return this.noChangeArrowheadsField;
1540}
1541set
1542{
1543this.noChangeArrowheadsField = value;
1544}
1545}
1546
1547[XmlAttribute]
1548[DefaultValue(false)]
1549public bool noChangeShapeType
1550{
1551get
1552{
1553return this.noChangeShapeTypeField;
1554}
1555set
1556{
1557this.noChangeShapeTypeField = value;
1558}
1559}
1560
1561[XmlAttribute]
1562[DefaultValue(false)]
1563public bool noTextEdit
1564{
1565get
1566{
1567return this.noTextEditField;
1568}
1569set
1570{
1571this.noTextEditField = value;
1572}
1573}
1574}
1575
1576[Serializable]
1577
1578[System.ComponentModel.DesignerCategoryAttribute("code")]
1579[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
1580[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
1581public class CT_GroupLocking
1582{
1583
1584private CT_OfficeArtExtensionList extLstField;
1585
1586private bool noGrpField;
1587
1588private bool noUngrpField;
1589
1590private bool noSelectField;
1591
1592private bool noRotField;
1593
1594private bool noChangeAspectField;
1595
1596private bool noMoveField;
1597
1598private bool noResizeField;
1599
1600public CT_GroupLocking()
1601{
1602//this.extLstField = new CT_OfficeArtExtensionList();
1603this.noGrpField = false;
1604this.noUngrpField = false;
1605this.noSelectField = false;
1606this.noRotField = false;
1607this.noChangeAspectField = false;
1608this.noMoveField = false;
1609this.noResizeField = false;
1610}
1611public static CT_GroupLocking Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1612{
1613if (node == null)
1614return null;
1615CT_GroupLocking ctObj = new CT_GroupLocking();
1616ctObj.noGrp = XmlHelper.ReadBool(node.Attributes["noGrp"]);
1617ctObj.noUngrp = XmlHelper.ReadBool(node.Attributes["noUngrp"]);
1618ctObj.noSelect = XmlHelper.ReadBool(node.Attributes["noSelect"]);
1619ctObj.noRot = XmlHelper.ReadBool(node.Attributes["noRot"]);
1620ctObj.noChangeAspect = XmlHelper.ReadBool(node.Attributes["noChangeAspect"]);
1621ctObj.noMove = XmlHelper.ReadBool(node.Attributes["noMove"]);
1622ctObj.noResize = XmlHelper.ReadBool(node.Attributes["noResize"]);
1623foreach (XmlNode childNode in node.ChildNodes)
1624{
1625if (childNode.LocalName == "extLst")
1626ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
1627}
1628return ctObj;
1629}
1630
1631
1632
1633internal void Write(StreamWriter sw, string nodeName)
1634{
1635sw.Write(string.Format("<a:{0}", nodeName));
1636if(this.noGrp)
1637XmlHelper.WriteAttribute(sw, "noGrp", this.noGrp);
1638if(this.noUngrp)
1639XmlHelper.WriteAttribute(sw, "noUngrp", this.noUngrp);
1640if(this.noSelect)
1641XmlHelper.WriteAttribute(sw, "noSelect", this.noSelect);
1642if(this.noRot)
1643XmlHelper.WriteAttribute(sw, "noRot", this.noRot);
1644if(this.noChangeAspect)
1645XmlHelper.WriteAttribute(sw, "noChangeAspect", this.noChangeAspect);
1646if(this.noMove)
1647XmlHelper.WriteAttribute(sw, "noMove", this.noMove);
1648if(this.noResize)
1649XmlHelper.WriteAttribute(sw, "noResize", this.noResize);
1650sw.Write("/>");
1651/*if (this.extLst != null)
1652this.extLst.Write(sw, "extLst");*/
1653}
1654
1655[XmlElement(Order = 0)]
1656public CT_OfficeArtExtensionList extLst
1657{
1658get
1659{
1660return this.extLstField;
1661}
1662set
1663{
1664this.extLstField = value;
1665}
1666}
1667
1668[XmlAttribute]
1669[DefaultValue(false)]
1670public bool noGrp
1671{
1672get
1673{
1674return this.noGrpField;
1675}
1676set
1677{
1678this.noGrpField = value;
1679}
1680}
1681
1682[XmlAttribute]
1683[DefaultValue(false)]
1684public bool noUngrp
1685{
1686get
1687{
1688return this.noUngrpField;
1689}
1690set
1691{
1692this.noUngrpField = value;
1693}
1694}
1695
1696[XmlAttribute]
1697[DefaultValue(false)]
1698public bool noSelect
1699{
1700get
1701{
1702return this.noSelectField;
1703}
1704set
1705{
1706this.noSelectField = value;
1707}
1708}
1709
1710[XmlAttribute]
1711[DefaultValue(false)]
1712public bool noRot
1713{
1714get
1715{
1716return this.noRotField;
1717}
1718set
1719{
1720this.noRotField = value;
1721}
1722}
1723
1724[XmlAttribute]
1725[DefaultValue(false)]
1726public bool noChangeAspect
1727{
1728get
1729{
1730return this.noChangeAspectField;
1731}
1732set
1733{
1734this.noChangeAspectField = value;
1735}
1736}
1737
1738[XmlAttribute]
1739[DefaultValue(false)]
1740public bool noMove
1741{
1742get
1743{
1744return this.noMoveField;
1745}
1746set
1747{
1748this.noMoveField = value;
1749}
1750}
1751
1752[XmlAttribute]
1753[DefaultValue(false)]
1754public bool noResize
1755{
1756get
1757{
1758return this.noResizeField;
1759}
1760set
1761{
1762this.noResizeField = value;
1763}
1764}
1765}
1766[Serializable]
1767[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
1768[XmlRoot(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main", IsNullable = true)]
1769public class CT_ShapeProperties
1770{
1771
1772private CT_Transform2D xfrmField = null;
1773
1774private CT_CustomGeometry2D custGeomField = null;
1775
1776private CT_PresetGeometry2D prstGeomField = null;
1777
1778private CT_NoFillProperties noFillField = null;
1779
1780private CT_SolidColorFillProperties solidFillField = null;
1781
1782private CT_GradientFillProperties gradFillField = null;
1783
1784private CT_BlipFillProperties blipFillField = null;
1785
1786private CT_PatternFillProperties pattFillField = null;
1787
1788private CT_GroupFillProperties grpFillField = null;
1789
1790private CT_LineProperties lnField = null;
1791
1792private CT_EffectList effectLstField = null;
1793
1794private CT_EffectContainer effectDagField = null;
1795
1796private CT_Scene3D scene3dField = null;
1797
1798private CT_Shape3D sp3dField = null;
1799
1800private CT_OfficeArtExtensionList extLstField = null;
1801
1802private ST_BlackWhiteMode bwModeField = ST_BlackWhiteMode.none;
1803
1804
1805public CT_PresetGeometry2D AddNewPrstGeom()
1806{
1807this.prstGeomField = new CT_PresetGeometry2D();
1808return this.prstGeomField;
1809}
1810public CT_Transform2D AddNewXfrm()
1811{
1812this.xfrmField = new CT_Transform2D();
1813return this.xfrmField;
1814}
1815public CT_SolidColorFillProperties AddNewSolidFill()
1816{
1817this.solidFillField = new CT_SolidColorFillProperties();
1818return this.solidFillField;
1819}
1820public bool IsSetPattFill()
1821{
1822return this.pattFillField != null;
1823}
1824public bool IsSetSolidFill()
1825{
1826return this.solidFillField != null;
1827}
1828public bool IsSetLn()
1829{
1830return this.lnField != null;
1831}
1832public CT_LineProperties AddNewLn()
1833{
1834this.lnField = new CT_LineProperties();
1835return lnField;
1836}
1837public void unsetPattFill()
1838{
1839this.pattFill = null;
1840}
1841public void unsetSolidFill()
1842{
1843this.solidFill = null;
1844}
1845
1846[XmlElement(Order = 0)]
1847public CT_Transform2D xfrm
1848{
1849get
1850{
1851return this.xfrmField;
1852}
1853set
1854{
1855this.xfrmField = value;
1856}
1857}
1858
1859[XmlElement(Order = 1)]
1860public CT_CustomGeometry2D custGeom
1861{
1862get
1863{
1864return this.custGeomField;
1865}
1866set
1867{
1868this.custGeomField = value;
1869}
1870}
1871
1872[XmlElement(Order = 2)]
1873public CT_PresetGeometry2D prstGeom
1874{
1875get
1876{
1877return this.prstGeomField;
1878}
1879set
1880{
1881this.prstGeomField = value;
1882}
1883}
1884
1885[XmlElement(Order = 3)]
1886public CT_NoFillProperties noFill
1887{
1888get
1889{
1890return this.noFillField;
1891}
1892set
1893{
1894this.noFillField = value;
1895}
1896}
1897
1898[XmlElement(Order = 4)]
1899public CT_SolidColorFillProperties solidFill
1900{
1901get
1902{
1903return this.solidFillField;
1904}
1905set
1906{
1907this.solidFillField = value;
1908}
1909}
1910
1911[XmlElement(Order = 5)]
1912public CT_GradientFillProperties gradFill
1913{
1914get
1915{
1916return this.gradFillField;
1917}
1918set
1919{
1920this.gradFillField = value;
1921}
1922}
1923
1924[XmlElement(Order = 6)]
1925public CT_BlipFillProperties blipFill
1926{
1927get
1928{
1929return this.blipFillField;
1930}
1931set
1932{
1933this.blipFillField = value;
1934}
1935}
1936
1937[XmlElement(Order = 7)]
1938public CT_PatternFillProperties pattFill
1939{
1940get
1941{
1942return this.pattFillField;
1943}
1944set
1945{
1946this.pattFillField = value;
1947}
1948}
1949
1950[XmlElement(Order = 8)]
1951public CT_GroupFillProperties grpFill
1952{
1953get
1954{
1955return this.grpFillField;
1956}
1957set
1958{
1959this.grpFillField = value;
1960}
1961}
1962
1963[XmlElement(Order = 9)]
1964public CT_LineProperties ln
1965{
1966get
1967{
1968return this.lnField;
1969}
1970set
1971{
1972this.lnField = value;
1973}
1974}
1975
1976[XmlElement(Order = 10)]
1977public CT_EffectList effectLst
1978{
1979get
1980{
1981return this.effectLstField;
1982}
1983set
1984{
1985this.effectLstField = value;
1986}
1987}
1988
1989[XmlElement(Order = 11)]
1990public CT_EffectContainer effectDag
1991{
1992get
1993{
1994return this.effectDagField;
1995}
1996set
1997{
1998this.effectDagField = value;
1999}
2000}
2001
2002[XmlElement(Order = 12)]
2003public CT_Scene3D scene3d
2004{
2005get
2006{
2007return this.scene3dField;
2008}
2009set
2010{
2011this.scene3dField = value;
2012}
2013}
2014
2015[XmlElement(Order = 13)]
2016public CT_Shape3D sp3d
2017{
2018get
2019{
2020return this.sp3dField;
2021}
2022set
2023{
2024this.sp3dField = value;
2025}
2026}
2027
2028[XmlElement(Order = 14)]
2029public CT_OfficeArtExtensionList extLst
2030{
2031get
2032{
2033return this.extLstField;
2034}
2035set
2036{
2037this.extLstField = value;
2038}
2039}
2040
2041[XmlAttribute]
2042public ST_BlackWhiteMode bwMode
2043{
2044get
2045{
2046return this.bwModeField;
2047}
2048set
2049{
2050this.bwModeField = value;
2051}
2052}
2053[XmlIgnore]
2054public bool bwModeSpecified
2055{
2056get { return ST_BlackWhiteMode.none != this.bwModeField; }
2057}
2058
2059public static CT_ShapeProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2060{
2061if (node == null)
2062return null;
2063CT_ShapeProperties ctObj = new CT_ShapeProperties();
2064if (node.Attributes["bwMode"] != null)
2065ctObj.bwMode = (ST_BlackWhiteMode)Enum.Parse(typeof(ST_BlackWhiteMode), node.Attributes["bwMode"].Value);
2066foreach (XmlNode childNode in node.ChildNodes)
2067{
2068if (childNode.LocalName == "xfrm")
2069ctObj.xfrm = CT_Transform2D.Parse(childNode, namespaceManager);
2070else if (childNode.LocalName == "custGeom")
2071ctObj.custGeom = CT_CustomGeometry2D.Parse(childNode, namespaceManager);
2072else if (childNode.LocalName == "prstGeom")
2073ctObj.prstGeom = CT_PresetGeometry2D.Parse(childNode, namespaceManager);
2074else if (childNode.LocalName == "noFill")
2075ctObj.noFill = new CT_NoFillProperties();
2076else if (childNode.LocalName == "solidFill")
2077ctObj.solidFill = CT_SolidColorFillProperties.Parse(childNode, namespaceManager);
2078else if (childNode.LocalName == "gradFill")
2079ctObj.gradFill = CT_GradientFillProperties.Parse(childNode, namespaceManager);
2080else if (childNode.LocalName == "blipFill")
2081ctObj.blipFill = CT_BlipFillProperties.Parse(childNode, namespaceManager);
2082else if (childNode.LocalName == "pattFill")
2083ctObj.pattFill = CT_PatternFillProperties.Parse(childNode, namespaceManager);
2084else if (childNode.LocalName == "grpFill")
2085ctObj.grpFill = new CT_GroupFillProperties();
2086else if (childNode.LocalName == "ln")
2087ctObj.ln = CT_LineProperties.Parse(childNode, namespaceManager);
2088else if (childNode.LocalName == "effectLst")
2089ctObj.effectLst = CT_EffectList.Parse(childNode, namespaceManager);
2090else if (childNode.LocalName == "effectDag")
2091ctObj.effectDag = CT_EffectContainer.Parse(childNode, namespaceManager);
2092else if (childNode.LocalName == "scene3d")
2093ctObj.scene3d = CT_Scene3D.Parse(childNode, namespaceManager);
2094else if (childNode.LocalName == "sp3d")
2095ctObj.sp3d = CT_Shape3D.Parse(childNode, namespaceManager);
2096else if (childNode.LocalName == "extLst")
2097ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
2098}
2099return ctObj;
2100}
2101
2102
2103
2104internal void Write(StreamWriter sw, string nodeName)
2105{
2106sw.Write(string.Format("<{0}", nodeName));
2107if(this.bwMode!= ST_BlackWhiteMode.none)
2108XmlHelper.WriteAttribute(sw, "bwMode", this.bwMode.ToString());
2109sw.Write(">");
2110if (this.xfrm != null)
2111this.xfrm.Write(sw, "a:xfrm");
2112if (this.custGeom != null)
2113this.custGeom.Write(sw, "custGeom");
2114if (this.prstGeom != null)
2115this.prstGeom.Write(sw, "prstGeom");
2116if (this.noFill != null)
2117sw.Write("<a:noFill/>");
2118if (this.solidFill != null)
2119this.solidFill.Write(sw, "solidFill");
2120if (this.gradFill != null)
2121this.gradFill.Write(sw, "gradFill");
2122if (this.blipFill != null)
2123this.blipFill.Write(sw, "a:blipFill");
2124if (this.pattFill != null)
2125this.pattFill.Write(sw, "pattFill");
2126if (this.grpFill != null)
2127sw.Write("<a:grpFill/>");
2128if (this.ln != null)
2129this.ln.Write(sw, "ln");
2130if (this.effectLst != null)
2131this.effectLst.Write(sw, "effectLst");
2132if (this.effectDag != null)
2133this.effectDag.Write(sw, "effectDag");
2134if (this.scene3d != null)
2135this.scene3d.Write(sw, "scene3d");
2136if (this.sp3d != null)
2137this.sp3d.Write(sw, "sp3d");
2138if (this.extLst != null)
2139this.extLst.Write(sw, "extLst");
2140sw.Write(string.Format("</{0}>", nodeName));
2141}
2142
2143}
2144
2145[Serializable]
2146[XmlType(Namespace = "http://schemas.openxmlformats.org/drawingml/2006/main")]
2147public partial class CT_GroupShapeProperties
2148{
2149
2150private CT_GroupTransform2D xfrmField;
2151
2152private CT_NoFillProperties noFillField;
2153
2154private CT_SolidColorFillProperties solidFillField;
2155
2156private CT_GradientFillProperties gradFillField;
2157
2158private CT_BlipFillProperties blipFillField;
2159
2160private CT_PatternFillProperties pattFillField;
2161
2162private CT_GroupFillProperties grpFillField;
2163
2164private CT_EffectList effectLstField;
2165
2166private CT_EffectContainer effectDagField;
2167
2168private CT_Scene3D scene3dField;
2169
2170private CT_OfficeArtExtensionList extLstField;
2171
2172private ST_BlackWhiteMode bwModeField;
2173
2174private bool bwModeFieldSpecified;
2175public static CT_GroupShapeProperties Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2176{
2177if (node == null)
2178return null;
2179CT_GroupShapeProperties ctObj = new CT_GroupShapeProperties();
2180if (node.Attributes["bwMode"] != null)
2181ctObj.bwMode = (ST_BlackWhiteMode)Enum.Parse(typeof(ST_BlackWhiteMode), node.Attributes["bwMode"].Value);
2182foreach (XmlNode childNode in node.ChildNodes)
2183{
2184if (childNode.LocalName == "xfrm")
2185ctObj.xfrm = CT_GroupTransform2D.Parse(childNode, namespaceManager);
2186else if (childNode.LocalName == "noFill")
2187ctObj.noFill = new CT_NoFillProperties();
2188else if (childNode.LocalName == "solidFill")
2189ctObj.solidFill = CT_SolidColorFillProperties.Parse(childNode, namespaceManager);
2190else if (childNode.LocalName == "gradFill")
2191ctObj.gradFill = CT_GradientFillProperties.Parse(childNode, namespaceManager);
2192else if (childNode.LocalName == "blipFill")
2193ctObj.blipFill = CT_BlipFillProperties.Parse(childNode, namespaceManager);
2194else if (childNode.LocalName == "pattFill")
2195ctObj.pattFill = CT_PatternFillProperties.Parse(childNode, namespaceManager);
2196else if (childNode.LocalName == "grpFill")
2197ctObj.grpFill = new CT_GroupFillProperties();
2198else if (childNode.LocalName == "effectLst")
2199ctObj.effectLst = CT_EffectList.Parse(childNode, namespaceManager);
2200else if (childNode.LocalName == "effectDag")
2201ctObj.effectDag = CT_EffectContainer.Parse(childNode, namespaceManager);
2202else if (childNode.LocalName == "scene3d")
2203ctObj.scene3d = CT_Scene3D.Parse(childNode, namespaceManager);
2204else if (childNode.LocalName == "extLst")
2205ctObj.extLst = CT_OfficeArtExtensionList.Parse(childNode, namespaceManager);
2206}
2207return ctObj;
2208}
2209
2210
2211
2212internal void Write(StreamWriter sw, string nodeName)
2213{
2214sw.Write(string.Format("<{0}", nodeName));
2215if(this.bwMode!= ST_BlackWhiteMode.none)
2216XmlHelper.WriteAttribute(sw, "bwMode", this.bwMode.ToString());
2217sw.Write(">");
2218if (this.xfrm != null)
2219this.xfrm.Write(sw, "xfrm");
2220if (this.noFill != null)
2221sw.Write("<a:noFill/>");
2222if (this.solidFill != null)
2223this.solidFill.Write(sw, "solidFill");
2224if (this.gradFill != null)
2225this.gradFill.Write(sw, "gradFill");
2226if (this.blipFill != null)
2227this.blipFill.Write(sw, "a:blipFill");
2228if (this.pattFill != null)
2229this.pattFill.Write(sw, "pattFill");
2230if (this.grpFill != null)
2231sw.Write("<a:grpFill/>");
2232if (this.effectLst != null)
2233this.effectLst.Write(sw, "effectLst");
2234if (this.effectDag != null)
2235this.effectDag.Write(sw, "effectDag");
2236if (this.scene3d != null)
2237this.scene3d.Write(sw, "scene3d");
2238if (this.extLst != null)
2239this.extLst.Write(sw, "extLst");
2240sw.Write(string.Format("</{0}>", nodeName));
2241}
2242
2243public CT_GroupShapeProperties()
2244{
2245//this.extlstfield = new ct_officeartextensionlist();
2246//this.scene3dfield = new ct_scene3d();
2247//this.effectdagfield = new ct_effectcontainer();
2248//this.effectlstfield = new ct_effectlist();
2249//this.grpfillfield = new ct_groupfillproperties();
2250//this.pattfillfield = new ct_patternfillproperties();
2251//this.blipfillfield = new ct_blipfillproperties();
2252//this.gradfillfield = new ct_gradientfillproperties();
2253//this.solidfillfield = new ct_solidcolorfillproperties();
2254//this.nofillfield = new ct_nofillproperties();
2255//this.xfrmField = new CT_GroupTransform2D();
2256}
2257
2258public CT_GroupTransform2D AddNewXfrm()
2259{
2260this.xfrmField = new CT_GroupTransform2D();
2261return this.xfrmField;
2262}
2263[XmlElement(Order = 0)]
2264public CT_GroupTransform2D xfrm
2265{
2266get
2267{
2268return this.xfrmField;
2269}
2270set
2271{
2272this.xfrmField = value;
2273}
2274}
2275
2276[XmlElement(Order = 1)]
2277public CT_NoFillProperties noFill
2278{
2279get
2280{
2281return this.noFillField;
2282}
2283set
2284{
2285this.noFillField = value;
2286}
2287}
2288
2289[XmlElement(Order = 2)]
2290public CT_SolidColorFillProperties solidFill
2291{
2292get
2293{
2294return this.solidFillField;
2295}
2296set
2297{
2298this.solidFillField = value;
2299}
2300}
2301
2302[XmlElement(Order = 3)]
2303public CT_GradientFillProperties gradFill
2304{
2305get
2306{
2307return this.gradFillField;
2308}
2309set
2310{
2311this.gradFillField = value;
2312}
2313}
2314
2315[XmlElement(Order = 4)]
2316public CT_BlipFillProperties blipFill
2317{
2318get
2319{
2320return this.blipFillField;
2321}
2322set
2323{
2324this.blipFillField = value;
2325}
2326}
2327
2328[XmlElement(Order = 5)]
2329public CT_PatternFillProperties pattFill
2330{
2331get
2332{
2333return this.pattFillField;
2334}
2335set
2336{
2337this.pattFillField = value;
2338}
2339}
2340
2341[XmlElement(Order = 6)]
2342public CT_GroupFillProperties grpFill
2343{
2344get
2345{
2346return this.grpFillField;
2347}
2348set
2349{
2350this.grpFillField = value;
2351}
2352}
2353
2354[XmlElement(Order = 7)]
2355public CT_EffectList effectLst
2356{
2357get
2358{
2359return this.effectLstField;
2360}
2361set
2362{
2363this.effectLstField = value;
2364}
2365}
2366
2367[XmlElement(Order = 8)]
2368public CT_EffectContainer effectDag
2369{
2370get
2371{
2372return this.effectDagField;
2373}
2374set
2375{
2376this.effectDagField = value;
2377}
2378}
2379
2380[XmlElement(Order = 9)]
2381public CT_Scene3D scene3d
2382{
2383get
2384{
2385return this.scene3dField;
2386}
2387set
2388{
2389this.scene3dField = value;
2390}
2391}
2392
2393[XmlElement(Order = 10)]
2394public CT_OfficeArtExtensionList extLst
2395{
2396get
2397{
2398return this.extLstField;
2399}
2400set
2401{
2402this.extLstField = value;
2403}
2404}
2405
2406[XmlAttribute]
2407public ST_BlackWhiteMode bwMode
2408{
2409get
2410{
2411return this.bwModeField;
2412}
2413set
2414{
2415this.bwModeField = value;
2416}
2417}
2418
2419[XmlIgnore]
2420public bool bwModeSpecified
2421{
2422get
2423{
2424return this.bwModeFieldSpecified;
2425}
2426set
2427{
2428this.bwModeFieldSpecified = value;
2429}
2430}
2431}
2432}
2433