npoi

Форк
0
/
OfficeDrawing.cs 
4156 строк · 101.6 Кб
1
using System;
2
using System.ComponentModel;
3
using System.Xml.Serialization;
4
using NPOI.OpenXmlFormats.Vml.Spreadsheet;
5
using System.Collections.Generic;
6
using System.Xml;
7
using System.IO;
8
using System.Text;
9
using NPOI.OpenXml4Net.Util;
10

11
namespace NPOI.OpenXmlFormats.Vml.Office
12
{
13
    
14
    
15

16
    [Serializable]
17

18
    [System.ComponentModel.DesignerCategory("code")]
19
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
20
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
21
    public class CT_ShapeDefaults {
22
        
23
        private CT_Fill fillField;
24
        
25
        private CT_Stroke strokeField;
26
        
27
        private CT_Textbox textboxField;
28
        
29
        private CT_Shadow shadowField;
30
        
31
        private CT_Skew skewField;
32
        
33
        private CT_Extrusion extrusionField;
34
        
35
        private CT_Callout calloutField;
36
        
37
        private CT_Lock lockField;
38
        
39
        private CT_ColorMru colormruField;
40
        
41
        private CT_ColorMenu colormenuField;
42
        
43
        private ST_Ext extField = ST_Ext.NONE;
44
        
45
        
46
        
47
        private string spidmaxField;
48
        
49
        private string styleField;
50
        
51
        private ST_TrueFalse fill1Field;
52
        
53
        private bool fill1FieldSpecified;
54
        
55
        private string fillcolorField;
56
        
57
        private ST_TrueFalse stroke1Field;
58
        
59
        private bool stroke1FieldSpecified;
60
        
61
        private string strokecolorField;
62
        
63
        private ST_TrueFalse allowincellField;
64
        
65
        private bool allowincellFieldSpecified;
66
        
67
    
68
        [XmlElement(Namespace="urn:schemas-microsoft-com:vml")]
69
        public CT_Fill fill {
70
            get {
71
                return this.fillField;
72
            }
73
            set {
74
                this.fillField = value;
75
            }
76
        }
77
        
78
    
79
        [XmlElement(Namespace="urn:schemas-microsoft-com:vml")]
80
        public CT_Stroke stroke {
81
            get {
82
                return this.strokeField;
83
            }
84
            set {
85
                this.strokeField = value;
86
            }
87
        }
88
        
89
    
90
        [XmlElement(Namespace="urn:schemas-microsoft-com:vml")]
91
        public CT_Textbox textbox {
92
            get {
93
                return this.textboxField;
94
            }
95
            set {
96
                this.textboxField = value;
97
            }
98
        }
99
        
100
    
101
        [XmlElement(Namespace="urn:schemas-microsoft-com:vml")]
102
        public CT_Shadow shadow {
103
            get {
104
                return this.shadowField;
105
            }
106
            set {
107
                this.shadowField = value;
108
            }
109
        }
110
        
111
    
112
        public CT_Skew skew {
113
            get {
114
                return this.skewField;
115
            }
116
            set {
117
                this.skewField = value;
118
            }
119
        }
120
        
121
    
122
        public CT_Extrusion extrusion {
123
            get {
124
                return this.extrusionField;
125
            }
126
            set {
127
                this.extrusionField = value;
128
            }
129
        }
130
        
131
    
132
        public CT_Callout callout {
133
            get {
134
                return this.calloutField;
135
            }
136
            set {
137
                this.calloutField = value;
138
            }
139
        }
140
        
141
    
142
        public CT_Lock @lock {
143
            get {
144
                return this.lockField;
145
            }
146
            set {
147
                this.lockField = value;
148
            }
149
        }
150
        
151
    
152
        public CT_ColorMru colormru {
153
            get {
154
                return this.colormruField;
155
            }
156
            set {
157
                this.colormruField = value;
158
            }
159
        }
160
        
161
    
162
        public CT_ColorMenu colormenu {
163
            get {
164
                return this.colormenuField;
165
            }
166
            set {
167
                this.colormenuField = value;
168
            }
169
        }
170

171

172
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
173
        public ST_Ext ext
174
        {
175
            get { return this.extField; }
176
            set { this.extField = value; }
177
        }
178
        [XmlIgnore]
179
        public bool extSpecified
180
        {
181
            get { return ST_Ext.NONE != this.extField; }
182
        }        
183
    
184
        [XmlAttribute(DataType="integer")]
185
        public string spidmax {
186
            get {
187
                return this.spidmaxField;
188
            }
189
            set {
190
                this.spidmaxField = value;
191
            }
192
        }
193
        
194
    
195
        [XmlAttribute]
196
        public string style {
197
            get {
198
                return this.styleField;
199
            }
200
            set {
201
                this.styleField = value;
202
            }
203
        }
204
        
205
    
206
        [XmlAttribute("fill")]
207
        public ST_TrueFalse fill1 {
208
            get {
209
                return this.fill1Field;
210
            }
211
            set {
212
                this.fill1Field = value;
213
            }
214
        }
215
        
216
    
217
        [XmlIgnore]
218
        public bool fill1Specified {
219
            get {
220
                return this.fill1FieldSpecified;
221
            }
222
            set {
223
                this.fill1FieldSpecified = value;
224
            }
225
        }
226
        
227
    
228
        [XmlAttribute]
229
        public string fillcolor {
230
            get {
231
                return this.fillcolorField;
232
            }
233
            set {
234
                this.fillcolorField = value;
235
            }
236
        }
237
        
238
    
239
        [XmlAttribute("stroke")]
240
        public ST_TrueFalse stroke1 {
241
            get {
242
                return this.stroke1Field;
243
            }
244
            set {
245
                this.stroke1Field = value;
246
            }
247
        }
248
        
249
    
250
        [XmlIgnore]
251
        public bool stroke1Specified {
252
            get {
253
                return this.stroke1FieldSpecified;
254
            }
255
            set {
256
                this.stroke1FieldSpecified = value;
257
            }
258
        }
259
        
260
    
261
        [XmlAttribute]
262
        public string strokecolor {
263
            get {
264
                return this.strokecolorField;
265
            }
266
            set {
267
                this.strokecolorField = value;
268
            }
269
        }
270
        
271
    
272
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
273
        public ST_TrueFalse allowincell {
274
            get {
275
                return this.allowincellField;
276
            }
277
            set {
278
                this.allowincellField = value;
279
            }
280
        }
281
        
282
    
283
        [XmlIgnore]
284
        public bool allowincellSpecified {
285
            get {
286
                return this.allowincellFieldSpecified;
287
            }
288
            set {
289
                this.allowincellFieldSpecified = value;
290
            }
291
        }
292
    }
293
    
294

295

296

297
    [Serializable]
298

299
    [System.ComponentModel.DesignerCategory("code")]
300
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
301
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
302
    public class CT_Skew {
303
        
304
        private ST_Ext extField = ST_Ext.NONE;
305
        
306
        
307
        
308
        private string idField;
309
        
310
        private ST_TrueFalse onField;
311
        
312
        private bool onFieldSpecified;
313
        
314
        private string offsetField;
315
        
316
        private string originField;
317
        
318
        private string matrixField;
319

320

321
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
322
        public ST_Ext ext
323
        {
324
            get { return this.extField; }
325
            set { this.extField = value; }
326
        }
327
        [XmlIgnore]
328
        public bool extSpecified
329
        {
330
            get { return ST_Ext.NONE != this.extField; }
331
        }
332

333
        [XmlAttribute]
334
        public string id
335
        {
336
            get {
337
                return this.idField;
338
            }
339
            set {
340
                this.idField = value;
341
            }
342
        }
343
        
344
    
345
        [XmlAttribute]
346
        public ST_TrueFalse on {
347
            get {
348
                return this.onField;
349
            }
350
            set {
351
                this.onField = value;
352
            }
353
        }
354
        
355
    
356
        [XmlIgnore]
357
        public bool onSpecified {
358
            get {
359
                return this.onFieldSpecified;
360
            }
361
            set {
362
                this.onFieldSpecified = value;
363
            }
364
        }
365
        
366
    
367
        [XmlAttribute]
368
        public string offset {
369
            get {
370
                return this.offsetField;
371
            }
372
            set {
373
                this.offsetField = value;
374
            }
375
        }
376
        
377
    
378
        [XmlAttribute]
379
        public string origin {
380
            get {
381
                return this.originField;
382
            }
383
            set {
384
                this.originField = value;
385
            }
386
        }
387
        
388
    
389
        [XmlAttribute]
390
        public string matrix {
391
            get {
392
                return this.matrixField;
393
            }
394
            set {
395
                this.matrixField = value;
396
            }
397
        }
398
    }
399
        
400

401
    [Serializable]
402
    [XmlType(TypeName="ST_TrueFalse", Namespace="urn:schemas-microsoft-com:office:office")]
403
    [XmlRoot("ST_TrueFalse", Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
404
    public enum ST_TrueFalse {
405
        f,
406
        t,
407
        @true,
408
        @false,
409
    }
410
    
411

412
    [Serializable]
413

414
    [System.ComponentModel.DesignerCategory("code")]
415
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
416
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
417
    public class CT_Extrusion {
418
        
419
        private ST_Ext extField = ST_Ext.NONE;
420
        
421
        
422
        
423
        private ST_TrueFalse onField;
424
        
425
        private bool onFieldSpecified;
426
        
427
        private ST_ExtrusionType typeField;
428
        
429
        private ST_ExtrusionRender renderField;
430
        
431
        private string viewpointoriginField;
432
        
433
        private string viewpointField;
434
        
435
        private ST_ExtrusionPlane planeField;
436
        
437
        private float skewangleField;
438
        
439
        private bool skewangleFieldSpecified;
440
        
441
        private string skewamtField;
442
        
443
        private string foredepthField;
444
        
445
        private string backdepthField;
446
        
447
        private string orientationField;
448
        
449
        private float orientationangleField;
450
        
451
        private bool orientationangleFieldSpecified;
452
        
453
        private ST_TrueFalse lockrotationcenterField;
454
        
455
        private bool lockrotationcenterFieldSpecified;
456
        
457
        private ST_TrueFalse autorotationcenterField;
458
        
459
        private bool autorotationcenterFieldSpecified;
460
        
461
        private string rotationcenterField;
462
        
463
        private string rotationangleField;
464
        
465
        private ST_ColorMode colormodeField;
466
        
467
        private bool colormodeFieldSpecified;
468
        
469
        private string colorField;
470
        
471
        private float shininessField;
472
        
473
        private bool shininessFieldSpecified;
474
        
475
        private string specularityField;
476
        
477
        private string diffusityField;
478
        
479
        private ST_TrueFalse metalField;
480
        
481
        private bool metalFieldSpecified;
482
        
483
        private string edgeField;
484
        
485
        private string facetField;
486
        
487
        private ST_TrueFalse lightfaceField;
488
        
489
        private bool lightfaceFieldSpecified;
490
        
491
        private string brightnessField;
492
        
493
        private string lightpositionField;
494
        
495
        private string lightlevelField;
496
        
497
        private ST_TrueFalse lightharshField;
498
        
499
        private bool lightharshFieldSpecified;
500
        
501
        private string lightposition2Field;
502
        
503
        private string lightlevel2Field;
504
        
505
        private ST_TrueFalse lightharsh2Field;
506
        
507
        private bool lightharsh2FieldSpecified;
508
        
509
        public CT_Extrusion() {
510
            this.typeField = ST_ExtrusionType.parallel;
511
            this.renderField = ST_ExtrusionRender.solid;
512
            this.planeField = ST_ExtrusionPlane.XY;
513
        }
514

515

516
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
517
        public ST_Ext ext
518
        {
519
            get { return this.extField; }
520
            set { this.extField = value; }
521
        }
522
        [XmlIgnore]
523
        public bool extSpecified
524
        {
525
            get { return ST_Ext.NONE != this.extField; }
526
        }        
527
    
528
        [XmlAttribute]
529
        public ST_TrueFalse on {
530
            get {
531
                return this.onField;
532
            }
533
            set {
534
                this.onField = value;
535
            }
536
        }
537
        
538
    
539
        [XmlIgnore]
540
        public bool onSpecified {
541
            get {
542
                return this.onFieldSpecified;
543
            }
544
            set {
545
                this.onFieldSpecified = value;
546
            }
547
        }
548
        
549
    
550
        [XmlAttribute]
551
        [DefaultValue(ST_ExtrusionType.parallel)]
552
        public ST_ExtrusionType type {
553
            get {
554
                return this.typeField;
555
            }
556
            set {
557
                this.typeField = value;
558
            }
559
        }
560
        
561
    
562
        [XmlAttribute]
563
        [DefaultValue(ST_ExtrusionRender.solid)]
564
        public ST_ExtrusionRender render {
565
            get {
566
                return this.renderField;
567
            }
568
            set {
569
                this.renderField = value;
570
            }
571
        }
572
        
573
    
574
        [XmlAttribute]
575
        public string viewpointorigin {
576
            get {
577
                return this.viewpointoriginField;
578
            }
579
            set {
580
                this.viewpointoriginField = value;
581
            }
582
        }
583
        
584
    
585
        [XmlAttribute]
586
        public string viewpoint {
587
            get {
588
                return this.viewpointField;
589
            }
590
            set {
591
                this.viewpointField = value;
592
            }
593
        }
594
        
595
    
596
        [XmlAttribute]
597
        [DefaultValue(ST_ExtrusionPlane.XY)]
598
        public ST_ExtrusionPlane plane {
599
            get {
600
                return this.planeField;
601
            }
602
            set {
603
                this.planeField = value;
604
            }
605
        }
606
        
607
    
608
        [XmlAttribute]
609
        public float skewangle {
610
            get {
611
                return this.skewangleField;
612
            }
613
            set {
614
                this.skewangleField = value;
615
            }
616
        }
617
        
618
    
619
        [XmlIgnore]
620
        public bool skewangleSpecified {
621
            get {
622
                return this.skewangleFieldSpecified;
623
            }
624
            set {
625
                this.skewangleFieldSpecified = value;
626
            }
627
        }
628
        
629
    
630
        [XmlAttribute]
631
        public string skewamt {
632
            get {
633
                return this.skewamtField;
634
            }
635
            set {
636
                this.skewamtField = value;
637
            }
638
        }
639
        
640
    
641
        [XmlAttribute]
642
        public string foredepth {
643
            get {
644
                return this.foredepthField;
645
            }
646
            set {
647
                this.foredepthField = value;
648
            }
649
        }
650
        
651
    
652
        [XmlAttribute]
653
        public string backdepth {
654
            get {
655
                return this.backdepthField;
656
            }
657
            set {
658
                this.backdepthField = value;
659
            }
660
        }
661
        
662
    
663
        [XmlAttribute]
664
        public string orientation {
665
            get {
666
                return this.orientationField;
667
            }
668
            set {
669
                this.orientationField = value;
670
            }
671
        }
672
        
673
    
674
        [XmlAttribute]
675
        public float orientationangle {
676
            get {
677
                return this.orientationangleField;
678
            }
679
            set {
680
                this.orientationangleField = value;
681
            }
682
        }
683
        
684
    
685
        [XmlIgnore]
686
        public bool orientationangleSpecified {
687
            get {
688
                return this.orientationangleFieldSpecified;
689
            }
690
            set {
691
                this.orientationangleFieldSpecified = value;
692
            }
693
        }
694
        
695
    
696
        [XmlAttribute]
697
        public ST_TrueFalse lockrotationcenter {
698
            get {
699
                return this.lockrotationcenterField;
700
            }
701
            set {
702
                this.lockrotationcenterField = value;
703
            }
704
        }
705
        
706
    
707
        [XmlIgnore]
708
        public bool lockrotationcenterSpecified {
709
            get {
710
                return this.lockrotationcenterFieldSpecified;
711
            }
712
            set {
713
                this.lockrotationcenterFieldSpecified = value;
714
            }
715
        }
716
        
717
    
718
        [XmlAttribute]
719
        public ST_TrueFalse autorotationcenter {
720
            get {
721
                return this.autorotationcenterField;
722
            }
723
            set {
724
                this.autorotationcenterField = value;
725
            }
726
        }
727
        
728
    
729
        [XmlIgnore]
730
        public bool autorotationcenterSpecified {
731
            get {
732
                return this.autorotationcenterFieldSpecified;
733
            }
734
            set {
735
                this.autorotationcenterFieldSpecified = value;
736
            }
737
        }
738
        
739
    
740
        [XmlAttribute]
741
        public string rotationcenter {
742
            get {
743
                return this.rotationcenterField;
744
            }
745
            set {
746
                this.rotationcenterField = value;
747
            }
748
        }
749
        
750
    
751
        [XmlAttribute]
752
        public string rotationangle {
753
            get {
754
                return this.rotationangleField;
755
            }
756
            set {
757
                this.rotationangleField = value;
758
            }
759
        }
760
        
761
    
762
        [XmlAttribute]
763
        public ST_ColorMode colormode {
764
            get {
765
                return this.colormodeField;
766
            }
767
            set {
768
                this.colormodeField = value;
769
            }
770
        }
771
        
772
    
773
        [XmlIgnore]
774
        public bool colormodeSpecified {
775
            get {
776
                return this.colormodeFieldSpecified;
777
            }
778
            set {
779
                this.colormodeFieldSpecified = value;
780
            }
781
        }
782
        
783
    
784
        [XmlAttribute]
785
        public string color {
786
            get {
787
                return this.colorField;
788
            }
789
            set {
790
                this.colorField = value;
791
            }
792
        }
793
        
794
    
795
        [XmlAttribute]
796
        public float shininess {
797
            get {
798
                return this.shininessField;
799
            }
800
            set {
801
                this.shininessField = value;
802
            }
803
        }
804
        
805
    
806
        [XmlIgnore]
807
        public bool shininessSpecified {
808
            get {
809
                return this.shininessFieldSpecified;
810
            }
811
            set {
812
                this.shininessFieldSpecified = value;
813
            }
814
        }
815
        
816
    
817
        [XmlAttribute]
818
        public string specularity {
819
            get {
820
                return this.specularityField;
821
            }
822
            set {
823
                this.specularityField = value;
824
            }
825
        }
826
        
827
    
828
        [XmlAttribute]
829
        public string diffusity {
830
            get {
831
                return this.diffusityField;
832
            }
833
            set {
834
                this.diffusityField = value;
835
            }
836
        }
837
        
838
    
839
        [XmlAttribute]
840
        public ST_TrueFalse metal {
841
            get {
842
                return this.metalField;
843
            }
844
            set {
845
                this.metalField = value;
846
            }
847
        }
848
        
849
    
850
        [XmlIgnore]
851
        public bool metalSpecified {
852
            get {
853
                return this.metalFieldSpecified;
854
            }
855
            set {
856
                this.metalFieldSpecified = value;
857
            }
858
        }
859
        
860
    
861
        [XmlAttribute]
862
        public string edge {
863
            get {
864
                return this.edgeField;
865
            }
866
            set {
867
                this.edgeField = value;
868
            }
869
        }
870
        
871
    
872
        [XmlAttribute]
873
        public string facet {
874
            get {
875
                return this.facetField;
876
            }
877
            set {
878
                this.facetField = value;
879
            }
880
        }
881
        
882
    
883
        [XmlAttribute]
884
        public ST_TrueFalse lightface {
885
            get {
886
                return this.lightfaceField;
887
            }
888
            set {
889
                this.lightfaceField = value;
890
            }
891
        }
892
        
893
    
894
        [XmlIgnore]
895
        public bool lightfaceSpecified {
896
            get {
897
                return this.lightfaceFieldSpecified;
898
            }
899
            set {
900
                this.lightfaceFieldSpecified = value;
901
            }
902
        }
903
        
904
    
905
        [XmlAttribute]
906
        public string brightness {
907
            get {
908
                return this.brightnessField;
909
            }
910
            set {
911
                this.brightnessField = value;
912
            }
913
        }
914
        
915
    
916
        [XmlAttribute]
917
        public string lightposition {
918
            get {
919
                return this.lightpositionField;
920
            }
921
            set {
922
                this.lightpositionField = value;
923
            }
924
        }
925
        
926
    
927
        [XmlAttribute]
928
        public string lightlevel {
929
            get {
930
                return this.lightlevelField;
931
            }
932
            set {
933
                this.lightlevelField = value;
934
            }
935
        }
936
        
937
    
938
        [XmlAttribute]
939
        public ST_TrueFalse lightharsh {
940
            get {
941
                return this.lightharshField;
942
            }
943
            set {
944
                this.lightharshField = value;
945
            }
946
        }
947
        
948
    
949
        [XmlIgnore]
950
        public bool lightharshSpecified {
951
            get {
952
                return this.lightharshFieldSpecified;
953
            }
954
            set {
955
                this.lightharshFieldSpecified = value;
956
            }
957
        }
958
        
959
    
960
        [XmlAttribute]
961
        public string lightposition2 {
962
            get {
963
                return this.lightposition2Field;
964
            }
965
            set {
966
                this.lightposition2Field = value;
967
            }
968
        }
969
        
970
    
971
        [XmlAttribute]
972
        public string lightlevel2 {
973
            get {
974
                return this.lightlevel2Field;
975
            }
976
            set {
977
                this.lightlevel2Field = value;
978
            }
979
        }
980
        
981
    
982
        [XmlAttribute]
983
        public ST_TrueFalse lightharsh2 {
984
            get {
985
                return this.lightharsh2Field;
986
            }
987
            set {
988
                this.lightharsh2Field = value;
989
            }
990
        }
991
        
992
    
993
        [XmlIgnore]
994
        public bool lightharsh2Specified {
995
            get {
996
                return this.lightharsh2FieldSpecified;
997
            }
998
            set {
999
                this.lightharsh2FieldSpecified = value;
1000
            }
1001
        }
1002
    }
1003
    
1004

1005
    [Serializable]
1006
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1007
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
1008
    public enum ST_ExtrusionType {
1009
        
1010
    
1011
        perspective,
1012
        
1013
    
1014
        parallel,
1015
    }
1016
    
1017

1018
    [Serializable]
1019
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1020
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
1021
    public enum ST_ExtrusionRender {
1022
        
1023
    
1024
        solid,
1025
        
1026
    
1027
        wireFrame,
1028
        
1029
    
1030
        boundingCube,
1031
    }
1032
    
1033

1034
    [Serializable]
1035
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1036
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
1037
    public enum ST_ExtrusionPlane {
1038
        
1039
    
1040
        XY,
1041
        
1042
    
1043
        ZX,
1044
        
1045
    
1046
        YZ,
1047
    }
1048
    
1049

1050
    [Serializable]
1051
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1052
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
1053
    public enum ST_ColorMode {
1054
        
1055
    
1056
        auto,
1057
        
1058
    
1059
        custom,
1060
    }
1061
    
1062

1063
    [Serializable]
1064

1065
    [System.ComponentModel.DesignerCategory("code")]
1066
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1067
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
1068
    public class CT_Callout {
1069
        
1070
        private ST_Ext extField = ST_Ext.NONE;
1071
        
1072
        
1073
        
1074
        private ST_TrueFalse onField;
1075
        
1076
        private bool onFieldSpecified;
1077
        
1078
        private string typeField;
1079
        
1080
        private string gapField;
1081
        
1082
        private ST_Angle angleField;
1083
        
1084
        private bool angleFieldSpecified;
1085
        
1086
        private ST_TrueFalse dropautoField;
1087
        
1088
        private bool dropautoFieldSpecified;
1089
        
1090
        private string dropField;
1091
        
1092
        private string distanceField;
1093
        
1094
        private ST_TrueFalse lengthspecifiedField;
1095
        
1096
        private string lengthField;
1097
        
1098
        private ST_TrueFalse accentbarField;
1099
        
1100
        private bool accentbarFieldSpecified;
1101
        
1102
        private ST_TrueFalse textborderField;
1103
        
1104
        private bool textborderFieldSpecified;
1105
        
1106
        private ST_TrueFalse minusxField;
1107
        
1108
        private bool minusxFieldSpecified;
1109
        
1110
        private ST_TrueFalse minusyField;
1111
        
1112
        private bool minusyFieldSpecified;
1113
        
1114
        public CT_Callout() {
1115
            this.lengthspecifiedField = ST_TrueFalse.f;
1116
        }
1117

1118
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
1119
        public ST_Ext ext
1120
        {
1121
            get { return this.extField; }
1122
            set { this.extField = value; }
1123
        }
1124
        [XmlIgnore]
1125
        public bool extSpecified
1126
        {
1127
            get { return ST_Ext.NONE != this.extField; }
1128
        }
1129
    
1130
        [XmlAttribute]
1131
        public ST_TrueFalse on {
1132
            get {
1133
                return this.onField;
1134
            }
1135
            set {
1136
                this.onField = value;
1137
            }
1138
        }
1139
        
1140
    
1141
        [XmlIgnore]
1142
        public bool onSpecified {
1143
            get {
1144
                return this.onFieldSpecified;
1145
            }
1146
            set {
1147
                this.onFieldSpecified = value;
1148
            }
1149
        }
1150
        
1151
    
1152
        [XmlAttribute]
1153
        public string type {
1154
            get {
1155
                return this.typeField;
1156
            }
1157
            set {
1158
                this.typeField = value;
1159
            }
1160
        }
1161
        
1162
    
1163
        [XmlAttribute]
1164
        public string gap {
1165
            get {
1166
                return this.gapField;
1167
            }
1168
            set {
1169
                this.gapField = value;
1170
            }
1171
        }
1172
        
1173
    
1174
        [XmlAttribute]
1175
        public ST_Angle angle {
1176
            get {
1177
                return this.angleField;
1178
            }
1179
            set {
1180
                this.angleField = value;
1181
            }
1182
        }
1183
        
1184
    
1185
        [XmlIgnore]
1186
        public bool angleSpecified {
1187
            get {
1188
                return this.angleFieldSpecified;
1189
            }
1190
            set {
1191
                this.angleFieldSpecified = value;
1192
            }
1193
        }
1194
        
1195
    
1196
        [XmlAttribute]
1197
        public ST_TrueFalse dropauto {
1198
            get {
1199
                return this.dropautoField;
1200
            }
1201
            set {
1202
                this.dropautoField = value;
1203
            }
1204
        }
1205
        
1206
    
1207
        [XmlIgnore]
1208
        public bool dropautoSpecified {
1209
            get {
1210
                return this.dropautoFieldSpecified;
1211
            }
1212
            set {
1213
                this.dropautoFieldSpecified = value;
1214
            }
1215
        }
1216
        
1217
    
1218
        [XmlAttribute]
1219
        public string drop {
1220
            get {
1221
                return this.dropField;
1222
            }
1223
            set {
1224
                this.dropField = value;
1225
            }
1226
        }
1227
        
1228
    
1229
        [XmlAttribute]
1230
        public string distance {
1231
            get {
1232
                return this.distanceField;
1233
            }
1234
            set {
1235
                this.distanceField = value;
1236
            }
1237
        }
1238
        
1239
    
1240
        [XmlAttribute]
1241
        [DefaultValue(ST_TrueFalse.f)]
1242
        public ST_TrueFalse lengthspecified {
1243
            get {
1244
                return this.lengthspecifiedField;
1245
            }
1246
            set {
1247
                this.lengthspecifiedField = value;
1248
            }
1249
        }
1250
        
1251
    
1252
        [XmlAttribute]
1253
        public string length {
1254
            get {
1255
                return this.lengthField;
1256
            }
1257
            set {
1258
                this.lengthField = value;
1259
            }
1260
        }
1261
        
1262
    
1263
        [XmlAttribute]
1264
        public ST_TrueFalse accentbar {
1265
            get {
1266
                return this.accentbarField;
1267
            }
1268
            set {
1269
                this.accentbarField = value;
1270
            }
1271
        }
1272
        
1273
    
1274
        [XmlIgnore]
1275
        public bool accentbarSpecified {
1276
            get {
1277
                return this.accentbarFieldSpecified;
1278
            }
1279
            set {
1280
                this.accentbarFieldSpecified = value;
1281
            }
1282
        }
1283
        
1284
    
1285
        [XmlAttribute]
1286
        public ST_TrueFalse textborder {
1287
            get {
1288
                return this.textborderField;
1289
            }
1290
            set {
1291
                this.textborderField = value;
1292
            }
1293
        }
1294
        
1295
    
1296
        [XmlIgnore]
1297
        public bool textborderSpecified {
1298
            get {
1299
                return this.textborderFieldSpecified;
1300
            }
1301
            set {
1302
                this.textborderFieldSpecified = value;
1303
            }
1304
        }
1305
        
1306
    
1307
        [XmlAttribute]
1308
        public ST_TrueFalse minusx {
1309
            get {
1310
                return this.minusxField;
1311
            }
1312
            set {
1313
                this.minusxField = value;
1314
            }
1315
        }
1316
        
1317
    
1318
        [XmlIgnore]
1319
        public bool minusxSpecified {
1320
            get {
1321
                return this.minusxFieldSpecified;
1322
            }
1323
            set {
1324
                this.minusxFieldSpecified = value;
1325
            }
1326
        }
1327
        
1328
    
1329
        [XmlAttribute]
1330
        public ST_TrueFalse minusy {
1331
            get {
1332
                return this.minusyField;
1333
            }
1334
            set {
1335
                this.minusyField = value;
1336
            }
1337
        }
1338
        
1339
    
1340
        [XmlIgnore]
1341
        public bool minusySpecified {
1342
            get {
1343
                return this.minusyFieldSpecified;
1344
            }
1345
            set {
1346
                this.minusyFieldSpecified = value;
1347
            }
1348
        }
1349
    }
1350
    
1351

1352
    [Serializable]
1353
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1354
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
1355
    public enum ST_Angle {
1356
        
1357
    
1358
        any,
1359
        
1360
    
1361
        [XmlEnum("30")]
1362
        Item30,
1363
        
1364
    
1365
        [XmlEnum("45")]
1366
        Item45,
1367
        
1368
    
1369
        [XmlEnum("60")]
1370
        Item60,
1371
        
1372
    
1373
        [XmlEnum("90")]
1374
        Item90,
1375
        
1376
    
1377
        auto,
1378
    }
1379
    
1380

1381
    [Serializable]
1382

1383
    [System.ComponentModel.DesignerCategory("code")]
1384
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1385
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
1386
    public class CT_Lock {
1387
        
1388
        private ST_Ext extField = ST_Ext.NONE;
1389
        
1390
        
1391
        
1392
        private ST_TrueFalse positionField;
1393
        
1394
        private bool positionFieldSpecified;
1395
        
1396
        private ST_TrueFalse selectionField;
1397
        
1398
        private bool selectionFieldSpecified;
1399
        
1400
        private ST_TrueFalse groupingField;
1401
        
1402
        private bool groupingFieldSpecified;
1403
        
1404
        private ST_TrueFalse ungroupingField;
1405
        
1406
        private bool ungroupingFieldSpecified;
1407
        
1408
        private ST_TrueFalse rotationField;
1409
        
1410
        private bool rotationFieldSpecified;
1411
        
1412
        private ST_TrueFalse croppingField;
1413
        
1414
        private bool croppingFieldSpecified;
1415
        
1416
        private ST_TrueFalse verticiesField;
1417
        
1418
        private bool verticiesFieldSpecified;
1419
        
1420
        private ST_TrueFalse adjusthandlesField;
1421
        
1422
        private bool adjusthandlesFieldSpecified;
1423
        
1424
        private ST_TrueFalse textField;
1425
        
1426
        private bool textFieldSpecified;
1427
        
1428
        private ST_TrueFalse aspectratioField;
1429
        
1430
        private bool aspectratioFieldSpecified;
1431
        
1432
        private ST_TrueFalse shapetypeField;
1433
        
1434
        private bool shapetypeFieldSpecified;
1435

1436
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
1437
        public ST_Ext ext
1438
        {
1439
            get { return this.extField; }
1440
            set { this.extField = value; }
1441
        }
1442
        [XmlIgnore]
1443
        public bool extSpecified
1444
        {
1445
            get { return ST_Ext.NONE != this.extField; }
1446
        }
1447
    
1448
        [XmlAttribute]
1449
        public ST_TrueFalse position {
1450
            get {
1451
                return this.positionField;
1452
            }
1453
            set {
1454
                this.positionField = value;
1455
            }
1456
        }
1457
        
1458
    
1459
        [XmlIgnore]
1460
        public bool positionSpecified {
1461
            get {
1462
                return this.positionFieldSpecified;
1463
            }
1464
            set {
1465
                this.positionFieldSpecified = value;
1466
            }
1467
        }
1468
        
1469
    
1470
        [XmlAttribute]
1471
        public ST_TrueFalse selection {
1472
            get {
1473
                return this.selectionField;
1474
            }
1475
            set {
1476
                this.selectionField = value;
1477
            }
1478
        }
1479
        
1480
    
1481
        [XmlIgnore]
1482
        public bool selectionSpecified {
1483
            get {
1484
                return this.selectionFieldSpecified;
1485
            }
1486
            set {
1487
                this.selectionFieldSpecified = value;
1488
            }
1489
        }
1490
        
1491
    
1492
        [XmlAttribute]
1493
        public ST_TrueFalse grouping {
1494
            get {
1495
                return this.groupingField;
1496
            }
1497
            set {
1498
                this.groupingField = value;
1499
            }
1500
        }
1501
        
1502
    
1503
        [XmlIgnore]
1504
        public bool groupingSpecified {
1505
            get {
1506
                return this.groupingFieldSpecified;
1507
            }
1508
            set {
1509
                this.groupingFieldSpecified = value;
1510
            }
1511
        }
1512
        
1513
    
1514
        [XmlAttribute]
1515
        public ST_TrueFalse ungrouping {
1516
            get {
1517
                return this.ungroupingField;
1518
            }
1519
            set {
1520
                this.ungroupingField = value;
1521
            }
1522
        }
1523
        
1524
    
1525
        [XmlIgnore]
1526
        public bool ungroupingSpecified {
1527
            get {
1528
                return this.ungroupingFieldSpecified;
1529
            }
1530
            set {
1531
                this.ungroupingFieldSpecified = value;
1532
            }
1533
        }
1534
        
1535
    
1536
        [XmlAttribute]
1537
        public ST_TrueFalse rotation {
1538
            get {
1539
                return this.rotationField;
1540
            }
1541
            set {
1542
                this.rotationField = value;
1543
            }
1544
        }
1545
        
1546
    
1547
        [XmlIgnore]
1548
        public bool rotationSpecified {
1549
            get {
1550
                return this.rotationFieldSpecified;
1551
            }
1552
            set {
1553
                this.rotationFieldSpecified = value;
1554
            }
1555
        }
1556
        
1557
    
1558
        [XmlAttribute]
1559
        public ST_TrueFalse cropping {
1560
            get {
1561
                return this.croppingField;
1562
            }
1563
            set {
1564
                this.croppingField = value;
1565
            }
1566
        }
1567
        
1568
    
1569
        [XmlIgnore]
1570
        public bool croppingSpecified {
1571
            get {
1572
                return this.croppingFieldSpecified;
1573
            }
1574
            set {
1575
                this.croppingFieldSpecified = value;
1576
            }
1577
        }
1578
        
1579
    
1580
        [XmlAttribute]
1581
        public ST_TrueFalse verticies {
1582
            get {
1583
                return this.verticiesField;
1584
            }
1585
            set {
1586
                this.verticiesField = value;
1587
            }
1588
        }
1589
        
1590
    
1591
        [XmlIgnore]
1592
        public bool verticiesSpecified {
1593
            get {
1594
                return this.verticiesFieldSpecified;
1595
            }
1596
            set {
1597
                this.verticiesFieldSpecified = value;
1598
            }
1599
        }
1600
        
1601
    
1602
        [XmlAttribute]
1603
        public ST_TrueFalse adjusthandles {
1604
            get {
1605
                return this.adjusthandlesField;
1606
            }
1607
            set {
1608
                this.adjusthandlesField = value;
1609
            }
1610
        }
1611
        
1612
    
1613
        [XmlIgnore]
1614
        public bool adjusthandlesSpecified {
1615
            get {
1616
                return this.adjusthandlesFieldSpecified;
1617
            }
1618
            set {
1619
                this.adjusthandlesFieldSpecified = value;
1620
            }
1621
        }
1622
        
1623
    
1624
        [XmlAttribute]
1625
        public ST_TrueFalse text {
1626
            get {
1627
                return this.textField;
1628
            }
1629
            set {
1630
                this.textField = value;
1631
            }
1632
        }
1633
        
1634
    
1635
        [XmlIgnore]
1636
        public bool textSpecified {
1637
            get {
1638
                return this.textFieldSpecified;
1639
            }
1640
            set {
1641
                this.textFieldSpecified = value;
1642
            }
1643
        }
1644
        
1645
    
1646
        [XmlAttribute]
1647
        public ST_TrueFalse aspectratio {
1648
            get {
1649
                return this.aspectratioField;
1650
            }
1651
            set {
1652
                this.aspectratioField = value;
1653
            }
1654
        }
1655
        
1656
    
1657
        [XmlIgnore]
1658
        public bool aspectratioSpecified {
1659
            get {
1660
                return this.aspectratioFieldSpecified;
1661
            }
1662
            set {
1663
                this.aspectratioFieldSpecified = value;
1664
            }
1665
        }
1666
        
1667
    
1668
        [XmlAttribute]
1669
        public ST_TrueFalse shapetype {
1670
            get {
1671
                return this.shapetypeField;
1672
            }
1673
            set {
1674
                this.shapetypeField = value;
1675
            }
1676
        }
1677
        
1678
    
1679
        [XmlIgnore]
1680
        public bool shapetypeSpecified {
1681
            get {
1682
                return this.shapetypeFieldSpecified;
1683
            }
1684
            set {
1685
                this.shapetypeFieldSpecified = value;
1686
            }
1687
        }
1688

1689
        public static CT_Lock Parse(XmlNode node, XmlNamespaceManager namespaceManager)
1690
        {
1691
            if (node == null)
1692
                return null;
1693
            CT_Lock ctObj = new CT_Lock();
1694
            if (node.Attributes["v:ext"] != null)
1695
                ctObj.ext = (ST_Ext)Enum.Parse(typeof(ST_Ext), node.Attributes["v:ext"].Value);
1696
            if (node.Attributes["position"] != null)
1697
                ctObj.position = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["position"]);
1698
            if (node.Attributes["selection"] != null)
1699
                ctObj.selection = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["selection"]);
1700
            if (node.Attributes["grouping"] != null)
1701
                ctObj.grouping = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["grouping"]);
1702
            if (node.Attributes["ungrouping"] != null)
1703
                ctObj.ungrouping = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["ungrouping"]);
1704
            if (node.Attributes["rotation"] != null)
1705
                ctObj.rotation = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["rotation"]);
1706
            if (node.Attributes["cropping"] != null)
1707
                ctObj.cropping = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["cropping"]);
1708
            if (node.Attributes["verticies"] != null)
1709
                ctObj.verticies = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["verticies"]);
1710
            if (node.Attributes["adjusthandles"] != null)
1711
                ctObj.adjusthandles = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["adjusthandles"]);
1712
            if (node.Attributes["text"] != null)
1713
                ctObj.text = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["text"]);
1714
            if (node.Attributes["aspectratio"] != null)
1715
                ctObj.aspectratio = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["aspectratio"]);
1716
            if (node.Attributes["shapetype"] != null)
1717
                ctObj.shapetype = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalse(node.Attributes["shapetype"]);
1718
            return ctObj;
1719
        }
1720

1721

1722

1723
        internal void Write(StreamWriter sw, string nodeName)
1724
        {
1725
            sw.Write(string.Format("<o:{0}", nodeName));
1726
            if(this.ext != ST_Ext.NONE)
1727
                XmlHelper.WriteAttribute(sw, "v:ext", this.ext.ToString());
1728
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "position", this.position);
1729
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "selection", this.selection);
1730
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "grouping", this.grouping);
1731
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "ungrouping", this.ungrouping);
1732
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "rotation", this.rotation);
1733
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "cropping", this.cropping);
1734
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "verticies", this.verticies);
1735
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "adjusthandles", this.adjusthandles);
1736
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "text", this.text);
1737
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "aspectratio", this.aspectratio);
1738
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "shapetype", this.shapetype);
1739
            sw.Write("/>");
1740
        }
1741
    }
1742
    
1743

1744
    [Serializable]
1745

1746
    [System.ComponentModel.DesignerCategory("code")]
1747
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1748
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
1749
    public class CT_ColorMru {
1750
        
1751
        private ST_Ext extField = ST_Ext.NONE;
1752
        
1753
        
1754
        
1755
        private string colorsField;
1756

1757
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
1758
        public ST_Ext ext
1759
        {
1760
            get { return this.extField; }
1761
            set { this.extField = value; }
1762
        }
1763
        [XmlIgnore]
1764
        public bool extSpecified
1765
        {
1766
            get { return ST_Ext.NONE != this.extField; }
1767
        }
1768
    
1769
        [XmlAttribute]
1770
        public string colors {
1771
            get {
1772
                return this.colorsField;
1773
            }
1774
            set {
1775
                this.colorsField = value;
1776
            }
1777
        }
1778
    }
1779
    
1780

1781
    [Serializable]
1782

1783
    [System.ComponentModel.DesignerCategory("code")]
1784
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1785
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
1786
    public class CT_ColorMenu {
1787
        
1788
        private ST_Ext extField = ST_Ext.NONE;
1789
        
1790
        
1791
        
1792
        private string strokecolorField;
1793
        
1794
        private string fillcolorField;
1795
        
1796
        private string shadowcolorField;
1797
        
1798
        private string extrusioncolorField;
1799

1800
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
1801
        public ST_Ext ext
1802
        {
1803
            get { return this.extField; }
1804
            set { this.extField = value; }
1805
        }
1806
        [XmlIgnore]
1807
        public bool extSpecified
1808
        {
1809
            get { return ST_Ext.NONE != this.extField; }
1810
        }
1811
    
1812
        [XmlAttribute]
1813
        public string strokecolor {
1814
            get {
1815
                return this.strokecolorField;
1816
            }
1817
            set {
1818
                this.strokecolorField = value;
1819
            }
1820
        }
1821
        
1822
    
1823
        [XmlAttribute]
1824
        public string fillcolor {
1825
            get {
1826
                return this.fillcolorField;
1827
            }
1828
            set {
1829
                this.fillcolorField = value;
1830
            }
1831
        }
1832
        
1833
    
1834
        [XmlAttribute]
1835
        public string shadowcolor {
1836
            get {
1837
                return this.shadowcolorField;
1838
            }
1839
            set {
1840
                this.shadowcolorField = value;
1841
            }
1842
        }
1843
        
1844
    
1845
        [XmlAttribute]
1846
        public string extrusioncolor {
1847
            get {
1848
                return this.extrusioncolorField;
1849
            }
1850
            set {
1851
                this.extrusioncolorField = value;
1852
            }
1853
        }
1854
    }
1855
    
1856

1857
    [Serializable]
1858

1859
    [System.ComponentModel.DesignerCategory("code")]
1860
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1861
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
1862
    public class CT_Ink {
1863
        
1864
        private byte[] iField;
1865
        
1866
        private ST_TrueFalse annotationField;
1867
        
1868
        private bool annotationFieldSpecified;
1869
        
1870
    
1871
        [XmlAttribute(DataType="base64Binary")]
1872
        public byte[] i {
1873
            get {
1874
                return this.iField;
1875
            }
1876
            set {
1877
                this.iField = value;
1878
            }
1879
        }
1880
        
1881
    
1882
        [XmlAttribute]
1883
        public ST_TrueFalse annotation {
1884
            get {
1885
                return this.annotationField;
1886
            }
1887
            set {
1888
                this.annotationField = value;
1889
            }
1890
        }
1891
        
1892
    
1893
        [XmlIgnore]
1894
        public bool annotationSpecified {
1895
            get {
1896
                return this.annotationFieldSpecified;
1897
            }
1898
            set {
1899
                this.annotationFieldSpecified = value;
1900
            }
1901
        }
1902
    }
1903
    
1904

1905
    [Serializable]
1906

1907
    [System.ComponentModel.DesignerCategory("code")]
1908
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
1909
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
1910
    public class CT_SignatureLine {
1911
        
1912
        private ST_Ext extField = ST_Ext.NONE;
1913
        
1914
        
1915
        
1916
        private ST_TrueFalse issignaturelineField;
1917
        
1918
        private bool issignaturelineFieldSpecified;
1919
        
1920
        private string idField;
1921
        
1922
        private string providField;
1923
        
1924
        private ST_TrueFalse signinginstructionssetField;
1925
        
1926
        private bool signinginstructionssetFieldSpecified;
1927
        
1928
        private ST_TrueFalse allowcommentsField;
1929
        
1930
        private bool allowcommentsFieldSpecified;
1931
        
1932
        private ST_TrueFalse showsigndateField;
1933
        
1934
        private bool showsigndateFieldSpecified;
1935
        
1936
        private string suggestedsignerField;
1937
        
1938
        private string suggestedsigner2Field;
1939
        
1940
        private string suggestedsigneremailField;
1941
        
1942
        private string signinginstructionsField;
1943
        
1944
        private string addlxmlField;
1945
        
1946
        private string sigprovurlField;
1947

1948
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
1949
        public ST_Ext ext
1950
        {
1951
            get { return this.extField; }
1952
            set { this.extField = value; }
1953
        }
1954
        [XmlIgnore]
1955
        public bool extSpecified
1956
        {
1957
            get { return ST_Ext.NONE != this.extField; }
1958
        }
1959
    
1960
        [XmlAttribute]
1961
        public ST_TrueFalse issignatureline {
1962
            get {
1963
                return this.issignaturelineField;
1964
            }
1965
            set {
1966
                this.issignaturelineField = value;
1967
            }
1968
        }
1969
        
1970
    
1971
        [XmlIgnore]
1972
        public bool issignaturelineSpecified {
1973
            get {
1974
                return this.issignaturelineFieldSpecified;
1975
            }
1976
            set {
1977
                this.issignaturelineFieldSpecified = value;
1978
            }
1979
        }
1980
        
1981
    
1982
        [XmlAttribute(DataType = "token")]
1983
        public string id {
1984
            get {
1985
                return this.idField;
1986
            }
1987
            set {
1988
                this.idField = value;
1989
            }
1990
        }
1991
        
1992
    
1993
        [XmlAttribute(DataType="token")]
1994
        public string provid {
1995
            get {
1996
                return this.providField;
1997
            }
1998
            set {
1999
                this.providField = value;
2000
            }
2001
        }
2002
        
2003
    
2004
        [XmlAttribute]
2005
        public ST_TrueFalse signinginstructionsset {
2006
            get {
2007
                return this.signinginstructionssetField;
2008
            }
2009
            set {
2010
                this.signinginstructionssetField = value;
2011
            }
2012
        }
2013
        
2014
    
2015
        [XmlIgnore]
2016
        public bool signinginstructionssetSpecified {
2017
            get {
2018
                return this.signinginstructionssetFieldSpecified;
2019
            }
2020
            set {
2021
                this.signinginstructionssetFieldSpecified = value;
2022
            }
2023
        }
2024
        
2025
    
2026
        [XmlAttribute]
2027
        public ST_TrueFalse allowcomments {
2028
            get {
2029
                return this.allowcommentsField;
2030
            }
2031
            set {
2032
                this.allowcommentsField = value;
2033
            }
2034
        }
2035
        
2036
    
2037
        [XmlIgnore]
2038
        public bool allowcommentsSpecified {
2039
            get {
2040
                return this.allowcommentsFieldSpecified;
2041
            }
2042
            set {
2043
                this.allowcommentsFieldSpecified = value;
2044
            }
2045
        }
2046
        
2047
    
2048
        [XmlAttribute]
2049
        public ST_TrueFalse showsigndate {
2050
            get {
2051
                return this.showsigndateField;
2052
            }
2053
            set {
2054
                this.showsigndateField = value;
2055
            }
2056
        }
2057
        
2058
    
2059
        [XmlIgnore]
2060
        public bool showsigndateSpecified {
2061
            get {
2062
                return this.showsigndateFieldSpecified;
2063
            }
2064
            set {
2065
                this.showsigndateFieldSpecified = value;
2066
            }
2067
        }
2068
        
2069
    
2070
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
2071
        public string suggestedsigner {
2072
            get {
2073
                return this.suggestedsignerField;
2074
            }
2075
            set {
2076
                this.suggestedsignerField = value;
2077
            }
2078
        }
2079
        
2080
    
2081
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
2082
        public string suggestedsigner2 {
2083
            get {
2084
                return this.suggestedsigner2Field;
2085
            }
2086
            set {
2087
                this.suggestedsigner2Field = value;
2088
            }
2089
        }
2090
        
2091
    
2092
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
2093
        public string suggestedsigneremail {
2094
            get {
2095
                return this.suggestedsigneremailField;
2096
            }
2097
            set {
2098
                this.suggestedsigneremailField = value;
2099
            }
2100
        }
2101
        
2102
    
2103
        [XmlAttribute]
2104
        public string signinginstructions {
2105
            get {
2106
                return this.signinginstructionsField;
2107
            }
2108
            set {
2109
                this.signinginstructionsField = value;
2110
            }
2111
        }
2112
        
2113
    
2114
        [XmlAttribute]
2115
        public string addlxml {
2116
            get {
2117
                return this.addlxmlField;
2118
            }
2119
            set {
2120
                this.addlxmlField = value;
2121
            }
2122
        }
2123
        
2124
    
2125
        [XmlAttribute]
2126
        public string sigprovurl {
2127
            get {
2128
                return this.sigprovurlField;
2129
            }
2130
            set {
2131
                this.sigprovurlField = value;
2132
            }
2133
        }
2134
    }
2135
    
2136

2137
    [Serializable]
2138

2139
    [System.ComponentModel.DesignerCategory("code")]
2140
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2141
    [XmlRoot("shapelayout",Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = true)]
2142
    public class CT_ShapeLayout
2143
    {
2144
        private CT_IdMap idmapField = null;
2145
        private CT_RegroupTable regrouptableField = null;
2146
        private CT_Rules rulesField = null;
2147
        private ST_Ext extField = ST_Ext.NONE;
2148

2149
        //static XmlSerializer serializer = new XmlSerializer(typeof(CT_ShapeLayout), "urn:schemas-microsoft-com:office:office");
2150
        //public static CT_ShapeLayout Parse(string xmltext)
2151
        //{
2152
        //    TextReader tr = new StringReader(xmltext);
2153
        //    CT_ShapeLayout obj = (CT_ShapeLayout)serializer.Deserialize(tr);
2154
        //    return obj;
2155
        //}
2156

2157
        public CT_IdMap AddNewIdmap()
2158
        {
2159
            idmapField = new CT_IdMap();
2160
            return idmapField;
2161
        }
2162

2163
        [XmlElement]
2164
        public CT_IdMap idmap
2165
        {
2166
            get { return this.idmapField; }
2167
            set { this.idmapField = value; }
2168
        }
2169

2170
        [XmlElement]
2171
        public CT_RegroupTable regrouptable
2172
        {
2173
            get { return this.regrouptableField; }
2174
            set { this.regrouptableField = value; }
2175
        }
2176

2177
        [XmlElement]
2178
        public CT_Rules rules
2179
        {
2180
            get { return this.rulesField; }
2181
            set { this.rulesField = value; }
2182
        }
2183

2184

2185
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
2186
        public ST_Ext ext
2187
        {
2188
            get { return this.extField; }
2189
            set { this.extField = value; }
2190
        }
2191
        [XmlIgnore]
2192
        public bool extSpecified
2193
        {
2194
            get { return ST_Ext.NONE != this.extField; }
2195
        }
2196
        //internal static XmlSerializerNamespaces namespaces = new XmlSerializerNamespaces(new XmlQualifiedName[] {
2197
        //    new XmlQualifiedName("o", "urn:schemas-microsoft-com:office:office"),
2198
        //    new XmlQualifiedName("x", "urn:schemas-microsoft-com:office:excel"),
2199
        //    new XmlQualifiedName("v", "urn:schemas-microsoft-com:vml")
2200
        //});
2201

2202
        //public override string ToString()
2203
        //{
2204
        //    using (StringWriter stringWriter = new StringWriter())
2205
        //    {
2206
        //        XmlWriterSettings settings = new XmlWriterSettings();
2207

2208
        //        settings.Encoding = Encoding.UTF8;
2209
        //        settings.OmitXmlDeclaration = true;
2210
        //        using (XmlWriter writer = XmlWriter.Create(stringWriter, settings))
2211
        //        {
2212
        //            serializer.Serialize(writer, this, namespaces);
2213
        //        }
2214
        //        return stringWriter.ToString();
2215
        //    }
2216
        //}
2217

2218
        public static CT_ShapeLayout Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2219
        {
2220
            if (node == null)
2221
                return null;
2222
            CT_ShapeLayout ctObj = new CT_ShapeLayout();
2223
            if (node.Attributes["v:ext"] != null)
2224
                ctObj.ext = (ST_Ext)Enum.Parse(typeof(ST_Ext), node.Attributes["v:ext"].Value);
2225
            foreach (XmlNode childNode in node.ChildNodes)
2226
            {
2227
                if (childNode.LocalName == "idmap")
2228
                    ctObj.idmap = CT_IdMap.Parse(childNode, namespaceManager);
2229
                else if (childNode.LocalName == "regrouptable")
2230
                    ctObj.regrouptable = CT_RegroupTable.Parse(childNode, namespaceManager);
2231
                else if (childNode.LocalName == "rules")
2232
                    ctObj.rules = CT_Rules.Parse(childNode, namespaceManager);
2233
            }
2234
            return ctObj;
2235
        }
2236

2237

2238

2239
        public void Write(StreamWriter sw, string nodeName)
2240
        {
2241
            sw.Write(string.Format("<o:{0}", nodeName));
2242
            XmlHelper.WriteAttribute(sw, "v:ext", this.ext.ToString());
2243
            sw.Write(">");
2244
            if (this.idmap != null)
2245
                this.idmap.Write(sw, "idmap");
2246
            if (this.regrouptable != null)
2247
                this.regrouptable.Write(sw, "regrouptable");
2248
            if (this.rules != null)
2249
                this.rules.Write(sw, "rules");
2250
            sw.Write(string.Format("</o:{0}>", nodeName));
2251
        }
2252

2253
    }
2254

2255

2256
    [Serializable]
2257

2258
    [System.ComponentModel.DesignerCategory("code")]
2259
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2260
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = true)]
2261
    public class CT_IdMap
2262
    {
2263
        private ST_Ext extField = ST_Ext.NONE;
2264
        private string dataField = null;
2265

2266
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
2267
        public ST_Ext ext
2268
        {
2269
            get { return this.extField; }
2270
            set { this.extField = value; }
2271
        }
2272
        [XmlIgnore]
2273
        public bool extSpecified
2274
        {
2275
            get { return ST_Ext.NONE != this.extField; }
2276
        }
2277

2278
        [XmlAttribute]
2279
        public string data
2280
        {
2281
            get { return this.dataField; }
2282
            set { this.dataField = value; }
2283
        }
2284
        [XmlIgnore]
2285
        public bool dataSpecified
2286
        {
2287
            get { return null != this.dataField; }
2288
        }
2289

2290
        public static CT_IdMap Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2291
        {
2292
            if (node == null)
2293
                return null;
2294
            CT_IdMap ctObj = new CT_IdMap();
2295
            if (node.Attributes["v:ext"] != null)
2296
                ctObj.ext = (ST_Ext)Enum.Parse(typeof(ST_Ext), node.Attributes["v:ext"].Value);
2297
            ctObj.data = XmlHelper.ReadString(node.Attributes["data"]);
2298
            return ctObj;
2299
        }
2300

2301
        internal void Write(StreamWriter sw, string nodeName)
2302
        {
2303
            sw.Write(string.Format("<o:{0}", nodeName));
2304
            XmlHelper.WriteAttribute(sw, "v:ext", this.ext.ToString());
2305
            XmlHelper.WriteAttribute(sw, "data", this.data);
2306
            sw.Write("/>");
2307
        }
2308

2309
    }
2310

2311

2312
    [Serializable]
2313

2314
    [System.ComponentModel.DesignerCategory("code")]
2315
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2316
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = true)]
2317
    public class CT_RegroupTable
2318
    {
2319
        public static CT_RegroupTable Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2320
        {
2321
            if (node == null)
2322
                return null;
2323
            CT_RegroupTable ctObj = new CT_RegroupTable();
2324
            if (node.Attributes["v:ext"] != null)
2325
                ctObj.ext = (ST_Ext)Enum.Parse(typeof(ST_Ext), node.Attributes["v:ext"].Value);
2326
            ctObj.entry = new List<CT_Entry>();
2327
            foreach (XmlNode childNode in node.ChildNodes)
2328
            {
2329
                if (childNode.LocalName == "entry")
2330
                    ctObj.entry.Add(CT_Entry.Parse(childNode, namespaceManager));
2331
            }
2332
            return ctObj;
2333
        }
2334

2335

2336

2337
        internal void Write(StreamWriter sw, string nodeName)
2338
        {
2339
            sw.Write(string.Format("<o:{0}", nodeName));
2340
            XmlHelper.WriteAttribute(sw, "v:ext", this.ext.ToString());
2341
            sw.Write(">");
2342
            if (this.entry != null)
2343
            {
2344
                foreach (CT_Entry x in this.entry)
2345
                {
2346
                    x.Write(sw, "entry");
2347
                }
2348
            }
2349
            sw.Write(string.Format("</o:{0}>", nodeName));
2350
        }
2351

2352

2353
        private List<CT_Entry> entryField = null; // 0..*
2354
        private ST_Ext extField = ST_Ext.NONE;
2355

2356
        [XmlElement("entry")]
2357
        public List<CT_Entry> entry
2358
        {
2359
            get { return this.entryField; }
2360
            set { this.entryField = value; }
2361
        }
2362

2363
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
2364
        public ST_Ext ext
2365
        {
2366
            get { return this.extField; }
2367
            set { this.extField = value; }
2368
        }
2369
        [XmlIgnore]
2370
        public bool extSpecified
2371
        {
2372
            get { return ST_Ext.NONE != this.extField; }
2373
        }
2374
    }
2375
    
2376

2377
    [Serializable]
2378

2379
    [System.ComponentModel.DesignerCategory("code")]
2380
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2381
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = true)]
2382
    public class CT_Entry
2383
    {
2384
        private int? newField = null;
2385
        private int? oldField = null;
2386

2387
        [XmlAttribute]
2388
        public int? @new
2389
        {
2390
            get { return newField; }
2391
            set { newField = value; }
2392
        }
2393
        [XmlIgnore]
2394
        public bool newSpecified
2395
        {
2396
            get { return null != this.newField; }
2397
        }
2398

2399
        [XmlAttribute]
2400
        public int? old
2401
        {
2402
            get { return oldField; }
2403
            set { oldField = value; }
2404
        }
2405
        [XmlIgnore]
2406
        public bool oldSpecified
2407
        {
2408
            get { return null != this.oldField; }
2409
        }
2410
        public static CT_Entry Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2411
        {
2412
            if (node == null)
2413
                return null;
2414
            CT_Entry ctObj = new CT_Entry();
2415
            if (node.Attributes["new"] != null)
2416
                ctObj.@new = XmlHelper.ReadInt(node.Attributes["new"]);
2417
            if (node.Attributes["old"] != null)
2418
                ctObj.old = XmlHelper.ReadInt(node.Attributes["old"]);
2419
            return ctObj;
2420
        }
2421

2422

2423

2424
        internal void Write(StreamWriter sw, string nodeName)
2425
        {
2426
            sw.Write(string.Format("<o:{0}", nodeName));
2427
            
2428
            if(@new.HasValue)
2429
            {
2430
                XmlHelper.WriteAttribute(sw, "new", @new.Value);
2431
            }
2432

2433
            if(old.HasValue)
2434
            {
2435
                XmlHelper.WriteAttribute(sw, "old", old.Value);
2436
            }
2437

2438
            sw.Write(">");
2439
            sw.Write(string.Format("</o:{0}>", nodeName));
2440
        }
2441

2442
    }
2443

2444

2445
    [Serializable]
2446

2447
    [System.ComponentModel.DesignerCategory("code")]
2448
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2449
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = true)]
2450
    public class CT_Rules
2451
    {
2452
        private List<CT_R> rField = null; // 0..*
2453
        private ST_Ext extField = ST_Ext.NONE;
2454

2455

2456
        [XmlElement("r")]
2457
        public List<CT_R> r
2458
        {
2459
            get { return this.rField; }
2460
            set { this.rField = value; }
2461
        }
2462

2463
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
2464
        public ST_Ext ext
2465
        {
2466
            get { return this.extField; }
2467
            set { this.extField = value; }
2468
        }
2469
        [XmlIgnore]
2470
        public bool extSpecified
2471
        {
2472
            get { return ST_Ext.NONE != this.extField; }
2473
        }
2474

2475
        public static CT_Rules Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2476
        {
2477
            if (node == null)
2478
                return null;
2479
            CT_Rules ctObj = new CT_Rules();
2480
            if (node.Attributes["v:ext"] != null)
2481
                ctObj.ext = (ST_Ext)Enum.Parse(typeof(ST_Ext), node.Attributes["v:ext"].Value);
2482
            ctObj.r = new List<CT_R>();
2483
            foreach (XmlNode childNode in node.ChildNodes)
2484
            {
2485
                if (childNode.LocalName == "r")
2486
                    ctObj.r.Add(CT_R.Parse(childNode, namespaceManager));
2487
            }
2488
            return ctObj;
2489
        }
2490

2491

2492

2493
        internal void Write(StreamWriter sw, string nodeName)
2494
        {
2495
            sw.Write(string.Format("<o:{0}", nodeName));
2496
            if(this.ext!= ST_Ext.NONE)
2497
                XmlHelper.WriteAttribute(sw, "v:ext", this.ext.ToString());
2498
            sw.Write(">");
2499
            if (this.r != null)
2500
            {
2501
                foreach (CT_R x in this.r)
2502
                {
2503
                    x.Write(sw, "r");
2504
                }
2505
            }
2506
            sw.Write(string.Format("</o:{0}>", nodeName));
2507
        }
2508

2509
    }
2510

2511

2512
    [Serializable]
2513

2514
    [System.ComponentModel.DesignerCategory("code")]
2515
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2516
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = true)]
2517
    public class CT_R
2518
    {
2519

2520
        private List<CT_Proxy> proxyField = null; // 0..*       
2521
        private string idField = string.Empty; // 1..1
2522
        private ST_RType typeField = ST_RType.NONE; // others optional
2523
        private ST_How howField = ST_How.NONE;
2524
        private string idrefField = null;
2525

2526
        [XmlElement("proxy")]
2527
        public List<CT_Proxy> proxy
2528
        {
2529
            get { return this.proxyField; }
2530
            set { this.proxyField = value; }
2531
        }
2532

2533
        [XmlAttribute]
2534
        public string id
2535
        {
2536
            get { return this.idField; }
2537
            set { this.idField = value; }
2538
        }
2539

2540
        [XmlAttribute]
2541
        public ST_RType type
2542
        {
2543
            get { return this.typeField; }
2544
            set { this.typeField = value; }
2545
        }
2546
        [XmlIgnore]
2547
        public bool typeSpecified
2548
        {
2549
            get { return ST_RType.NONE != this.typeField; }
2550
        }
2551

2552
        [XmlAttribute]
2553
        public ST_How how
2554
        {
2555
            get { return this.howField; }
2556
            set { this.howField = value; }
2557
        }
2558
        [XmlIgnore]
2559
        public bool howSpecified
2560
        {
2561
            get { return ST_How.NONE != this.howField; }
2562
        }
2563

2564
        [XmlAttribute]
2565
        public string idref
2566
        {
2567
            get { return this.idrefField; }
2568
            set { this.idrefField = value; }
2569
        }
2570
        [XmlIgnore]
2571
        public bool idrefSpecified
2572
        {
2573
            get { return null != this.idrefField; }
2574
        }
2575

2576
        public static CT_R Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2577
        {
2578
            if (node == null)
2579
                return null;
2580
            CT_R ctObj = new CT_R();
2581
            ctObj.id = XmlHelper.ReadString(node.Attributes["id"]);
2582
            if (node.Attributes["type"] != null)
2583
                ctObj.type = (ST_RType)Enum.Parse(typeof(ST_RType), node.Attributes["type"].Value);
2584
            if (node.Attributes["how"] != null)
2585
                ctObj.how = (ST_How)Enum.Parse(typeof(ST_How), node.Attributes["how"].Value);
2586
            ctObj.idref = XmlHelper.ReadString(node.Attributes["idref"]);
2587
            ctObj.proxy = new List<CT_Proxy>();
2588
            foreach (XmlNode childNode in node.ChildNodes)
2589
            {
2590
                if (childNode.LocalName == "proxy")
2591
                    ctObj.proxy.Add(CT_Proxy.Parse(childNode, namespaceManager));
2592
            }
2593
            return ctObj;
2594
        }
2595

2596

2597

2598
        internal void Write(StreamWriter sw, string nodeName)
2599
        {
2600
            sw.Write(string.Format("<o:{0}", nodeName));
2601
            XmlHelper.WriteAttribute(sw, "id", this.id);
2602
            if(this.type!=ST_RType.NONE)
2603
                XmlHelper.WriteAttribute(sw, "type", this.type.ToString());
2604
            if (this.how != ST_How.NONE)
2605
                XmlHelper.WriteAttribute(sw, "how", this.how.ToString());
2606
            XmlHelper.WriteAttribute(sw, "idref", this.idref);
2607
            sw.Write(">");
2608
            if (this.proxy != null)
2609
            {
2610
                foreach (CT_Proxy x in this.proxy)
2611
                {
2612
                    x.Write(sw, "proxy");
2613
                }
2614
            }
2615
            sw.Write(string.Format("</o:{0}>", nodeName));
2616
        }
2617
    }
2618

2619

2620
    [Serializable]
2621

2622
    [System.ComponentModel.DesignerCategory("code")]
2623
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2624
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = true)]
2625
    public class CT_Proxy
2626
    {
2627

2628
        private ST_TrueFalseBlank startField = ST_TrueFalseBlank.NONE;
2629
        private ST_TrueFalseBlank endField = ST_TrueFalseBlank.NONE;
2630
        private string idrefField = null;
2631
        private int? connectlocField;
2632

2633
        [XmlAttribute]
2634
        [DefaultValue(ST_TrueFalseBlank.@false)]
2635
        public ST_TrueFalseBlank start
2636
        {
2637
            get { return this.startField; }
2638
            set { this.startField = value; }
2639
        }
2640
        [XmlIgnore]
2641
        public bool startSpecified
2642
        {
2643
            get { return (ST_TrueFalseBlank.NONE != startField); }
2644
        }
2645

2646
        [XmlAttribute]
2647
        [DefaultValue(ST_TrueFalseBlank.@false)]
2648
        public ST_TrueFalseBlank end
2649
        {
2650
            get { return this.endField; }
2651
            set { this.endField = value; }
2652
        }
2653
        [XmlIgnore]
2654
        public bool endSpecified
2655
        {
2656
            get { return (ST_TrueFalseBlank.NONE != endField); }
2657
        }
2658

2659
        [XmlAttribute]
2660
        public string idref
2661
        {
2662
            get { return this.idrefField; }
2663
            set { this.idrefField = value; }
2664
        }
2665
        [XmlIgnore]
2666
        public bool idrefSpecified
2667
        {
2668
            get { return (null != idrefField); }
2669
        }
2670

2671
        [XmlAttribute]
2672
        public int connectloc
2673
        {
2674
            get { return (int)this.connectlocField; }
2675
            set { this.connectlocField = value; }
2676
        }
2677
        [XmlIgnore]
2678
        public bool connectlocSpecified
2679
        {
2680
            get
2681
            {
2682
                return null != this.connectlocField;
2683
            }
2684
        }
2685

2686
        public static CT_Proxy Parse(XmlNode node, XmlNamespaceManager namespaceManager)
2687
        {
2688
            if (node == null)
2689
                return null;
2690
            CT_Proxy ctObj = new CT_Proxy();
2691
            if (node.Attributes["start"] != null)
2692
                ctObj.start = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalseBlank(node.Attributes["start"]);
2693
            if (node.Attributes["end"] != null)
2694
                ctObj.end = NPOI.OpenXmlFormats.Util.XmlHelper.ReadTrueFalseBlank(node.Attributes["end"]);
2695
            ctObj.idref = XmlHelper.ReadString(node.Attributes["idref"]);
2696
            if (node.Attributes["connectloc"] != null)
2697
                ctObj.connectloc = XmlHelper.ReadInt(node.Attributes["connectloc"]);
2698
            return ctObj;
2699
        }
2700

2701
        internal void Write(StreamWriter sw, string nodeName)
2702
        {
2703
            sw.Write(string.Format("<o:{0}", nodeName));
2704
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "start", this.start);
2705
            NPOI.OpenXmlFormats.Util.XmlHelper.WriteAttribute(sw, "end", this.end);
2706
            XmlHelper.WriteAttribute(sw, "idref", this.idref);
2707
            XmlHelper.WriteAttribute(sw, "connectloc", this.connectloc);
2708
            sw.Write(">");
2709
            sw.Write(string.Format("</o:{0}>", nodeName));
2710
        }
2711

2712

2713
    }
2714

2715

2716
    [Serializable]
2717
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2718
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = false)]
2719
    public enum ST_RType
2720
    {
2721
        NONE,
2722
        arc,
2723
        callout,
2724
        connector,
2725
        align,
2726
    }
2727

2728

2729
    [Serializable]
2730
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
2731
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = false)]
2732
    public enum ST_How
2733
    {
2734
        NONE,
2735
        top,
2736
        middle,
2737
        bottom,
2738
        left,
2739
        center,
2740
        right,
2741
    }
2742
    
2743

2744
    [Serializable]
2745

2746
    [System.ComponentModel.DesignerCategory("code")]
2747
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
2748
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
2749
    public class CT_Diagram {
2750
        
2751
        private CT_RelationTable relationtableField;
2752
        
2753
        private ST_Ext extField = ST_Ext.NONE;
2754
        
2755
        
2756
        
2757
        private string dgmstyleField;
2758
        
2759
        private ST_TrueFalse autoformatField;
2760
        
2761
        private bool autoformatFieldSpecified;
2762
        
2763
        private ST_TrueFalse reverseField;
2764
        
2765
        private bool reverseFieldSpecified;
2766
        
2767
        private ST_TrueFalse autolayoutField;
2768
        
2769
        private bool autolayoutFieldSpecified;
2770
        
2771
        private string dgmscalexField;
2772
        
2773
        private string dgmscaleyField;
2774
        
2775
        private string dgmfontsizeField;
2776
        
2777
        private string constrainboundsField;
2778
        
2779
        private string dgmbasetextscaleField;
2780
        
2781
    
2782
        public CT_RelationTable relationtable {
2783
            get {
2784
                return this.relationtableField;
2785
            }
2786
            set {
2787
                this.relationtableField = value;
2788
            }
2789
        }
2790

2791

2792
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
2793
        public ST_Ext ext
2794
        {
2795
            get { return this.extField; }
2796
            set { this.extField = value; }
2797
        }
2798
        [XmlIgnore]
2799
        public bool extSpecified
2800
        {
2801
            get { return ST_Ext.NONE != this.extField; }
2802
        }
2803
        
2804
    
2805
        [XmlAttribute(DataType="integer")]
2806
        public string dgmstyle {
2807
            get {
2808
                return this.dgmstyleField;
2809
            }
2810
            set {
2811
                this.dgmstyleField = value;
2812
            }
2813
        }
2814
        
2815
    
2816
        [XmlAttribute]
2817
        public ST_TrueFalse autoformat {
2818
            get {
2819
                return this.autoformatField;
2820
            }
2821
            set {
2822
                this.autoformatField = value;
2823
            }
2824
        }
2825
        
2826
    
2827
        [XmlIgnore]
2828
        public bool autoformatSpecified {
2829
            get {
2830
                return this.autoformatFieldSpecified;
2831
            }
2832
            set {
2833
                this.autoformatFieldSpecified = value;
2834
            }
2835
        }
2836
        
2837
    
2838
        [XmlAttribute]
2839
        public ST_TrueFalse reverse {
2840
            get {
2841
                return this.reverseField;
2842
            }
2843
            set {
2844
                this.reverseField = value;
2845
            }
2846
        }
2847
        
2848
    
2849
        [XmlIgnore]
2850
        public bool reverseSpecified {
2851
            get {
2852
                return this.reverseFieldSpecified;
2853
            }
2854
            set {
2855
                this.reverseFieldSpecified = value;
2856
            }
2857
        }
2858
        
2859
    
2860
        [XmlAttribute]
2861
        public ST_TrueFalse autolayout {
2862
            get {
2863
                return this.autolayoutField;
2864
            }
2865
            set {
2866
                this.autolayoutField = value;
2867
            }
2868
        }
2869
        
2870
    
2871
        [XmlIgnore]
2872
        public bool autolayoutSpecified {
2873
            get {
2874
                return this.autolayoutFieldSpecified;
2875
            }
2876
            set {
2877
                this.autolayoutFieldSpecified = value;
2878
            }
2879
        }
2880
        
2881
    
2882
        [XmlAttribute(DataType="integer")]
2883
        public string dgmscalex {
2884
            get {
2885
                return this.dgmscalexField;
2886
            }
2887
            set {
2888
                this.dgmscalexField = value;
2889
            }
2890
        }
2891
        
2892
    
2893
        [XmlAttribute(DataType="integer")]
2894
        public string dgmscaley {
2895
            get {
2896
                return this.dgmscaleyField;
2897
            }
2898
            set {
2899
                this.dgmscaleyField = value;
2900
            }
2901
        }
2902
        
2903
    
2904
        [XmlAttribute(DataType="integer")]
2905
        public string dgmfontsize {
2906
            get {
2907
                return this.dgmfontsizeField;
2908
            }
2909
            set {
2910
                this.dgmfontsizeField = value;
2911
            }
2912
        }
2913
        
2914
    
2915
        [XmlAttribute]
2916
        public string constrainbounds {
2917
            get {
2918
                return this.constrainboundsField;
2919
            }
2920
            set {
2921
                this.constrainboundsField = value;
2922
            }
2923
        }
2924
        
2925
    
2926
        [XmlAttribute(DataType="integer")]
2927
        public string dgmbasetextscale {
2928
            get {
2929
                return this.dgmbasetextscaleField;
2930
            }
2931
            set {
2932
                this.dgmbasetextscaleField = value;
2933
            }
2934
        }
2935
    }
2936
    
2937

2938
    [Serializable]
2939

2940
    [System.ComponentModel.DesignerCategory("code")]
2941
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
2942
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
2943
    public class CT_RelationTable {
2944
        
2945
        private  List<CT_Relation> relField;
2946
        
2947
        private ST_Ext extField = ST_Ext.NONE;
2948
        
2949
        
2950
        
2951
    
2952
        [XmlElement("rel")]
2953
        public  List<CT_Relation> rel {
2954
            get {
2955
                return this.relField;
2956
            }
2957
            set {
2958
                this.relField = value;
2959
            }
2960
        }
2961

2962

2963
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
2964
        public ST_Ext ext
2965
        {
2966
            get { return this.extField; }
2967
            set { this.extField = value; }
2968
        }
2969
        [XmlIgnore]
2970
        public bool extSpecified
2971
        {
2972
            get { return ST_Ext.NONE != this.extField; }
2973
        }
2974
    }
2975
    
2976

2977
    [Serializable]
2978

2979
    [System.ComponentModel.DesignerCategory("code")]
2980
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
2981
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
2982
    public class CT_Relation {
2983
        
2984
        private ST_Ext extField = ST_Ext.NONE;
2985
        
2986
        
2987
        
2988
        private string idsrcField;
2989
        
2990
        private string iddestField;
2991
        
2992
        private string idcntrField;
2993

2994

2995
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
2996
        public ST_Ext ext
2997
        {
2998
            get { return this.extField; }
2999
            set { this.extField = value; }
3000
        }
3001
        [XmlIgnore]
3002
        public bool extSpecified
3003
        {
3004
            get { return ST_Ext.NONE != this.extField; }
3005
        }       
3006
    
3007
        [XmlAttribute]
3008
        public string idsrc {
3009
            get {
3010
                return this.idsrcField;
3011
            }
3012
            set {
3013
                this.idsrcField = value;
3014
            }
3015
        }
3016
        
3017
    
3018
        [XmlAttribute]
3019
        public string iddest {
3020
            get {
3021
                return this.iddestField;
3022
            }
3023
            set {
3024
                this.iddestField = value;
3025
            }
3026
        }
3027
        
3028
    
3029
        [XmlAttribute]
3030
        public string idcntr {
3031
            get {
3032
                return this.idcntrField;
3033
            }
3034
            set {
3035
                this.idcntrField = value;
3036
            }
3037
        }
3038
    }
3039
    
3040

3041
    [Serializable]
3042

3043
    [System.ComponentModel.DesignerCategory("code")]
3044
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
3045
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
3046
    public class CT_OLEObject {
3047
        
3048
        private ST_OLELinkType linkTypeField;
3049
        
3050
        private bool linkTypeFieldSpecified;
3051
        
3052
        private ST_TrueFalseBlank lockedFieldField;
3053
        
3054
        private bool lockedFieldFieldSpecified;
3055
        
3056
        private string fieldCodesField;
3057
        
3058
        private ST_OLEType typeField;
3059
        
3060
        private bool typeFieldSpecified;
3061
        
3062
        private string progIDField;
3063
        
3064
        private string shapeIDField;
3065
        
3066
        private ST_OLEDrawAspect drawAspectField;
3067
        
3068
        private bool drawAspectFieldSpecified;
3069
        
3070
        private string objectIDField;
3071
        
3072
        private string idField;
3073
        
3074
        private ST_OLEUpdateMode updateModeField;
3075
        
3076
        private bool updateModeFieldSpecified;
3077
        
3078
    
3079
        public ST_OLELinkType LinkType {
3080
            get {
3081
                return this.linkTypeField;
3082
            }
3083
            set {
3084
                this.linkTypeField = value;
3085
            }
3086
        }
3087
        
3088
    
3089
        [XmlIgnore]
3090
        public bool LinkTypeSpecified {
3091
            get {
3092
                return this.linkTypeFieldSpecified;
3093
            }
3094
            set {
3095
                this.linkTypeFieldSpecified = value;
3096
            }
3097
        }
3098
        
3099
    
3100
        public ST_TrueFalseBlank LockedField {
3101
            get {
3102
                return this.lockedFieldField;
3103
            }
3104
            set {
3105
                this.lockedFieldField = value;
3106
            }
3107
        }
3108
        
3109
    
3110
        [XmlIgnore]
3111
        public bool LockedFieldSpecified {
3112
            get {
3113
                return this.lockedFieldFieldSpecified;
3114
            }
3115
            set {
3116
                this.lockedFieldFieldSpecified = value;
3117
            }
3118
        }
3119
        
3120
    
3121
        public string FieldCodes {
3122
            get {
3123
                return this.fieldCodesField;
3124
            }
3125
            set {
3126
                this.fieldCodesField = value;
3127
            }
3128
        }
3129
        
3130
    
3131
        [XmlAttribute]
3132
        public ST_OLEType Type {
3133
            get {
3134
                return this.typeField;
3135
            }
3136
            set {
3137
                this.typeField = value;
3138
            }
3139
        }
3140
        
3141
    
3142
        [XmlIgnore]
3143
        public bool TypeSpecified {
3144
            get {
3145
                return this.typeFieldSpecified;
3146
            }
3147
            set {
3148
                this.typeFieldSpecified = value;
3149
            }
3150
        }
3151
        
3152
    
3153
        [XmlAttribute]
3154
        public string ProgID {
3155
            get {
3156
                return this.progIDField;
3157
            }
3158
            set {
3159
                this.progIDField = value;
3160
            }
3161
        }
3162
        
3163
    
3164
        [XmlAttribute]
3165
        public string ShapeID {
3166
            get {
3167
                return this.shapeIDField;
3168
            }
3169
            set {
3170
                this.shapeIDField = value;
3171
            }
3172
        }
3173
        
3174
    
3175
        [XmlAttribute]
3176
        public ST_OLEDrawAspect DrawAspect {
3177
            get {
3178
                return this.drawAspectField;
3179
            }
3180
            set {
3181
                this.drawAspectField = value;
3182
            }
3183
        }
3184
        
3185
    
3186
        [XmlIgnore]
3187
        public bool DrawAspectSpecified {
3188
            get {
3189
                return this.drawAspectFieldSpecified;
3190
            }
3191
            set {
3192
                this.drawAspectFieldSpecified = value;
3193
            }
3194
        }
3195
        
3196
    
3197
        [XmlAttribute]
3198
        public string ObjectID {
3199
            get {
3200
                return this.objectIDField;
3201
            }
3202
            set {
3203
                this.objectIDField = value;
3204
            }
3205
        }
3206

3207

3208
        [XmlAttribute]
3209
        public string id
3210
        {
3211
            get {
3212
                return this.idField;
3213
            }
3214
            set {
3215
                this.idField = value;
3216
            }
3217
        }
3218
        
3219
    
3220
        [XmlAttribute]
3221
        public ST_OLEUpdateMode UpdateMode {
3222
            get {
3223
                return this.updateModeField;
3224
            }
3225
            set {
3226
                this.updateModeField = value;
3227
            }
3228
        }
3229
        
3230
    
3231
        [XmlIgnore]
3232
        public bool UpdateModeSpecified {
3233
            get {
3234
                return this.updateModeFieldSpecified;
3235
            }
3236
            set {
3237
                this.updateModeFieldSpecified = value;
3238
            }
3239
        }
3240
    }
3241
    
3242

3243
    [Serializable]
3244
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
3245
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
3246
    public enum ST_OLELinkType {
3247
        
3248
    
3249
        Picture,
3250
        
3251
    
3252
        Bitmap,
3253
        
3254
    
3255
        EnhancedMetaFile,
3256
    }
3257
    
3258

3259
    [Serializable]
3260
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
3261
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
3262
    public enum ST_OLEType {
3263
        
3264
    
3265
        Embed,
3266
        
3267
    
3268
        Link,
3269
    }
3270
    
3271

3272
    [Serializable]
3273
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
3274
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
3275
    public enum ST_OLEDrawAspect {
3276
        
3277
    
3278
        Content,
3279
        
3280
    
3281
        Icon,
3282
    }
3283
    
3284

3285
    [Serializable]
3286
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
3287
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
3288
    public enum ST_OLEUpdateMode {
3289
        
3290
    
3291
        Always,
3292
        
3293
    
3294
        OnCall,
3295
    }
3296

3297

3298
    [Serializable]
3299

3300
    [System.ComponentModel.DesignerCategory("code")]
3301
    [XmlType(Namespace = "urn:schemas-microsoft-com:office:office")]
3302
    [XmlRoot(Namespace = "urn:schemas-microsoft-com:office:office", IsNullable = true)]
3303
    public class CT_Complex
3304
    {
3305

3306
        private ST_Ext extField = ST_Ext.NONE;
3307

3308
        
3309

3310

3311
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
3312
        public ST_Ext ext
3313
        {
3314
            get { return this.extField; }
3315
            set { this.extField = value; }
3316
        }
3317
        [XmlIgnore]
3318
        public bool extSpecified
3319
        {
3320
            get { return ST_Ext.NONE != this.extField; }
3321
        }
3322
    }    
3323

3324
    [Serializable]
3325

3326
    [System.ComponentModel.DesignerCategory("code")]
3327
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
3328
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
3329
    public class CT_StrokeChild {
3330
        
3331
        private ST_Ext extField = ST_Ext.NONE;
3332
        
3333
        
3334
        
3335
        private ST_TrueFalse onField;
3336
        
3337
        private bool onFieldSpecified;
3338
        
3339
        private string weightField;
3340
        
3341
        private string colorField;
3342
        
3343
        private string color2Field;
3344
        
3345
        private string opacityField;
3346
        
3347
        private ST_StrokeLineStyle linestyleField;
3348
        
3349
        private bool linestyleFieldSpecified;
3350
        
3351
        private decimal miterlimitField;
3352
        
3353
        private bool miterlimitFieldSpecified;
3354
        
3355
        private ST_StrokeJoinStyle joinstyleField;
3356
        
3357
        private bool joinstyleFieldSpecified;
3358
        
3359
        private ST_StrokeEndCap endcapField;
3360
        
3361
        private bool endcapFieldSpecified;
3362
        
3363
        private string dashstyleField;
3364
        
3365
        private ST_TrueFalse insetpenField;
3366
        
3367
        private bool insetpenFieldSpecified;
3368
        
3369
        private ST_FillType filltypeField;
3370
        
3371
        private bool filltypeFieldSpecified;
3372
        
3373
        private string srcField;
3374
        
3375
        private ST_ImageAspect imageaspectField;
3376
        
3377
        private bool imageaspectFieldSpecified;
3378
        
3379
        private string imagesizeField;
3380
        
3381
        private ST_TrueFalse imagealignshapeField;
3382
        
3383
        private bool imagealignshapeFieldSpecified;
3384
        
3385
        private ST_StrokeArrowType startarrowField;
3386
        
3387
        private bool startarrowFieldSpecified;
3388
        
3389
        private ST_StrokeArrowWidth startarrowwidthField;
3390
        
3391
        private bool startarrowwidthFieldSpecified;
3392
        
3393
        private ST_StrokeArrowLength startarrowlengthField;
3394
        
3395
        private bool startarrowlengthFieldSpecified;
3396
        
3397
        private ST_StrokeArrowType endarrowField;
3398
        
3399
        private bool endarrowFieldSpecified;
3400
        
3401
        private ST_StrokeArrowWidth endarrowwidthField;
3402
        
3403
        private bool endarrowwidthFieldSpecified;
3404
        
3405
        private ST_StrokeArrowLength endarrowlengthField;
3406
        
3407
        private bool endarrowlengthFieldSpecified;
3408
        
3409
        private string hrefField;
3410
        
3411
        private string althrefField;
3412
        
3413
        private string titleField;
3414
        
3415
        private ST_TrueFalse forcedashField;
3416
        
3417
        private bool forcedashFieldSpecified;
3418

3419

3420
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
3421
        public ST_Ext ext
3422
        {
3423
            get { return this.extField; }
3424
            set { this.extField = value; }
3425
        }
3426
        [XmlIgnore]
3427
        public bool extSpecified
3428
        {
3429
            get { return ST_Ext.NONE != this.extField; }
3430
        }       
3431
    
3432
        [XmlAttribute]
3433
        public ST_TrueFalse on {
3434
            get {
3435
                return this.onField;
3436
            }
3437
            set {
3438
                this.onField = value;
3439
            }
3440
        }
3441
        
3442
    
3443
        [XmlIgnore]
3444
        public bool onSpecified {
3445
            get {
3446
                return this.onFieldSpecified;
3447
            }
3448
            set {
3449
                this.onFieldSpecified = value;
3450
            }
3451
        }
3452
        
3453
    
3454
        [XmlAttribute]
3455
        public string weight {
3456
            get {
3457
                return this.weightField;
3458
            }
3459
            set {
3460
                this.weightField = value;
3461
            }
3462
        }
3463
        
3464
    
3465
        [XmlAttribute]
3466
        public string color {
3467
            get {
3468
                return this.colorField;
3469
            }
3470
            set {
3471
                this.colorField = value;
3472
            }
3473
        }
3474
        
3475
    
3476
        [XmlAttribute]
3477
        public string color2 {
3478
            get {
3479
                return this.color2Field;
3480
            }
3481
            set {
3482
                this.color2Field = value;
3483
            }
3484
        }
3485
        
3486
    
3487
        [XmlAttribute]
3488
        public string opacity {
3489
            get {
3490
                return this.opacityField;
3491
            }
3492
            set {
3493
                this.opacityField = value;
3494
            }
3495
        }
3496
        
3497
    
3498
        [XmlAttribute]
3499
        public ST_StrokeLineStyle linestyle {
3500
            get {
3501
                return this.linestyleField;
3502
            }
3503
            set {
3504
                this.linestyleField = value;
3505
            }
3506
        }
3507
        
3508
    
3509
        [XmlIgnore]
3510
        public bool linestyleSpecified {
3511
            get {
3512
                return this.linestyleFieldSpecified;
3513
            }
3514
            set {
3515
                this.linestyleFieldSpecified = value;
3516
            }
3517
        }
3518
        
3519
    
3520
        [XmlAttribute]
3521
        public decimal miterlimit {
3522
            get {
3523
                return this.miterlimitField;
3524
            }
3525
            set {
3526
                this.miterlimitField = value;
3527
            }
3528
        }
3529
        
3530
    
3531
        [XmlIgnore]
3532
        public bool miterlimitSpecified {
3533
            get {
3534
                return this.miterlimitFieldSpecified;
3535
            }
3536
            set {
3537
                this.miterlimitFieldSpecified = value;
3538
            }
3539
        }
3540
        
3541
    
3542
        [XmlAttribute]
3543
        public ST_StrokeJoinStyle joinstyle {
3544
            get {
3545
                return this.joinstyleField;
3546
            }
3547
            set {
3548
                this.joinstyleField = value;
3549
            }
3550
        }
3551
        
3552
    
3553
        [XmlIgnore]
3554
        public bool joinstyleSpecified {
3555
            get {
3556
                return this.joinstyleFieldSpecified;
3557
            }
3558
            set {
3559
                this.joinstyleFieldSpecified = value;
3560
            }
3561
        }
3562
        
3563
    
3564
        [XmlAttribute]
3565
        public ST_StrokeEndCap endcap {
3566
            get {
3567
                return this.endcapField;
3568
            }
3569
            set {
3570
                this.endcapField = value;
3571
            }
3572
        }
3573
        
3574
    
3575
        [XmlIgnore]
3576
        public bool endcapSpecified {
3577
            get {
3578
                return this.endcapFieldSpecified;
3579
            }
3580
            set {
3581
                this.endcapFieldSpecified = value;
3582
            }
3583
        }
3584
        
3585
    
3586
        [XmlAttribute]
3587
        public string dashstyle {
3588
            get {
3589
                return this.dashstyleField;
3590
            }
3591
            set {
3592
                this.dashstyleField = value;
3593
            }
3594
        }
3595
        
3596
    
3597
        [XmlAttribute]
3598
        public ST_TrueFalse insetpen {
3599
            get {
3600
                return this.insetpenField;
3601
            }
3602
            set {
3603
                this.insetpenField = value;
3604
            }
3605
        }
3606
        
3607
    
3608
        [XmlIgnore]
3609
        public bool insetpenSpecified {
3610
            get {
3611
                return this.insetpenFieldSpecified;
3612
            }
3613
            set {
3614
                this.insetpenFieldSpecified = value;
3615
            }
3616
        }
3617
        
3618
    
3619
        [XmlAttribute]
3620
        public ST_FillType filltype {
3621
            get {
3622
                return this.filltypeField;
3623
            }
3624
            set {
3625
                this.filltypeField = value;
3626
            }
3627
        }
3628
        
3629
    
3630
        [XmlIgnore]
3631
        public bool filltypeSpecified {
3632
            get {
3633
                return this.filltypeFieldSpecified;
3634
            }
3635
            set {
3636
                this.filltypeFieldSpecified = value;
3637
            }
3638
        }
3639
        
3640
    
3641
        [XmlAttribute]
3642
        public string src {
3643
            get {
3644
                return this.srcField;
3645
            }
3646
            set {
3647
                this.srcField = value;
3648
            }
3649
        }
3650
        
3651
    
3652
        [XmlAttribute]
3653
        public ST_ImageAspect imageaspect {
3654
            get {
3655
                return this.imageaspectField;
3656
            }
3657
            set {
3658
                this.imageaspectField = value;
3659
            }
3660
        }
3661
        
3662
    
3663
        [XmlIgnore]
3664
        public bool imageaspectSpecified {
3665
            get {
3666
                return this.imageaspectFieldSpecified;
3667
            }
3668
            set {
3669
                this.imageaspectFieldSpecified = value;
3670
            }
3671
        }
3672
        
3673
    
3674
        [XmlAttribute]
3675
        public string imagesize {
3676
            get {
3677
                return this.imagesizeField;
3678
            }
3679
            set {
3680
                this.imagesizeField = value;
3681
            }
3682
        }
3683
        
3684
    
3685
        [XmlAttribute]
3686
        public ST_TrueFalse imagealignshape {
3687
            get {
3688
                return this.imagealignshapeField;
3689
            }
3690
            set {
3691
                this.imagealignshapeField = value;
3692
            }
3693
        }
3694
        
3695
    
3696
        [XmlIgnore]
3697
        public bool imagealignshapeSpecified {
3698
            get {
3699
                return this.imagealignshapeFieldSpecified;
3700
            }
3701
            set {
3702
                this.imagealignshapeFieldSpecified = value;
3703
            }
3704
        }
3705
        
3706
    
3707
        [XmlAttribute]
3708
        public ST_StrokeArrowType startarrow {
3709
            get {
3710
                return this.startarrowField;
3711
            }
3712
            set {
3713
                this.startarrowField = value;
3714
            }
3715
        }
3716
        
3717
    
3718
        [XmlIgnore]
3719
        public bool startarrowSpecified {
3720
            get {
3721
                return this.startarrowFieldSpecified;
3722
            }
3723
            set {
3724
                this.startarrowFieldSpecified = value;
3725
            }
3726
        }
3727
        
3728
    
3729
        [XmlAttribute]
3730
        public ST_StrokeArrowWidth startarrowwidth {
3731
            get {
3732
                return this.startarrowwidthField;
3733
            }
3734
            set {
3735
                this.startarrowwidthField = value;
3736
            }
3737
        }
3738
        
3739
    
3740
        [XmlIgnore]
3741
        public bool startarrowwidthSpecified {
3742
            get {
3743
                return this.startarrowwidthFieldSpecified;
3744
            }
3745
            set {
3746
                this.startarrowwidthFieldSpecified = value;
3747
            }
3748
        }
3749
        
3750
    
3751
        [XmlAttribute]
3752
        public ST_StrokeArrowLength startarrowlength {
3753
            get {
3754
                return this.startarrowlengthField;
3755
            }
3756
            set {
3757
                this.startarrowlengthField = value;
3758
            }
3759
        }
3760
        
3761
    
3762
        [XmlIgnore]
3763
        public bool startarrowlengthSpecified {
3764
            get {
3765
                return this.startarrowlengthFieldSpecified;
3766
            }
3767
            set {
3768
                this.startarrowlengthFieldSpecified = value;
3769
            }
3770
        }
3771
        
3772
    
3773
        [XmlAttribute]
3774
        public ST_StrokeArrowType endarrow {
3775
            get {
3776
                return this.endarrowField;
3777
            }
3778
            set {
3779
                this.endarrowField = value;
3780
            }
3781
        }
3782
        
3783
    
3784
        [XmlIgnore]
3785
        public bool endarrowSpecified {
3786
            get {
3787
                return this.endarrowFieldSpecified;
3788
            }
3789
            set {
3790
                this.endarrowFieldSpecified = value;
3791
            }
3792
        }
3793
        
3794
    
3795
        [XmlAttribute]
3796
        public ST_StrokeArrowWidth endarrowwidth {
3797
            get {
3798
                return this.endarrowwidthField;
3799
            }
3800
            set {
3801
                this.endarrowwidthField = value;
3802
            }
3803
        }
3804
        
3805
    
3806
        [XmlIgnore]
3807
        public bool endarrowwidthSpecified {
3808
            get {
3809
                return this.endarrowwidthFieldSpecified;
3810
            }
3811
            set {
3812
                this.endarrowwidthFieldSpecified = value;
3813
            }
3814
        }
3815
        
3816
    
3817
        [XmlAttribute]
3818
        public ST_StrokeArrowLength endarrowlength {
3819
            get {
3820
                return this.endarrowlengthField;
3821
            }
3822
            set {
3823
                this.endarrowlengthField = value;
3824
            }
3825
        }
3826
        
3827
    
3828
        [XmlIgnore]
3829
        public bool endarrowlengthSpecified {
3830
            get {
3831
                return this.endarrowlengthFieldSpecified;
3832
            }
3833
            set {
3834
                this.endarrowlengthFieldSpecified = value;
3835
            }
3836
        }
3837
        
3838
    
3839
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
3840
        public string href {
3841
            get {
3842
                return this.hrefField;
3843
            }
3844
            set {
3845
                this.hrefField = value;
3846
            }
3847
        }
3848
        
3849
    
3850
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
3851
        public string althref {
3852
            get {
3853
                return this.althrefField;
3854
            }
3855
            set {
3856
                this.althrefField = value;
3857
            }
3858
        }
3859
        
3860
    
3861
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
3862
        public string title {
3863
            get {
3864
                return this.titleField;
3865
            }
3866
            set {
3867
                this.titleField = value;
3868
            }
3869
        }
3870
        
3871
    
3872
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
3873
        public ST_TrueFalse forcedash {
3874
            get {
3875
                return this.forcedashField;
3876
            }
3877
            set {
3878
                this.forcedashField = value;
3879
            }
3880
        }
3881
        
3882
    
3883
        [XmlIgnore]
3884
        public bool forcedashSpecified {
3885
            get {
3886
                return this.forcedashFieldSpecified;
3887
            }
3888
            set {
3889
                this.forcedashFieldSpecified = value;
3890
            }
3891
        }
3892
    }
3893
    
3894

3895
    [Serializable]
3896

3897
    [System.ComponentModel.DesignerCategory("code")]
3898
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
3899
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
3900
    public class CT_ClipPath {
3901
        
3902
        private string vField;
3903
        
3904
    
3905
        [XmlAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified)]
3906
        public string v {
3907
            get {
3908
                return this.vField;
3909
            }
3910
            set {
3911
                this.vField = value;
3912
            }
3913
        }
3914
    }
3915
    
3916

3917
    [Serializable]
3918

3919
    [System.ComponentModel.DesignerCategory("code")]
3920
    [XmlType(TypeName="CT_Fill", Namespace="urn:schemas-microsoft-com:office:office")]
3921
    [XmlRoot("CT_Fill", Namespace="urn:schemas-microsoft-com:office:office", IsNullable=true)]
3922
    public class CT_Fill {
3923
        
3924
        private ST_Ext extField = ST_Ext.NONE;
3925
        
3926
        
3927
        
3928
        private ST_FillType1 typeField;
3929
        
3930
        private bool typeFieldSpecified;
3931

3932

3933
        [XmlAttribute(Form = System.Xml.Schema.XmlSchemaForm.Qualified, Namespace = "urn:schemas-microsoft-com:vml")]
3934
        public ST_Ext ext
3935
        {
3936
            get { return this.extField; }
3937
            set { this.extField = value; }
3938
        }
3939
        [XmlIgnore]
3940
        public bool extSpecified
3941
        {
3942
            get { return ST_Ext.NONE != this.extField; }
3943
        }       
3944
    
3945
        [XmlAttribute]
3946
        public ST_FillType1 type {
3947
            get {
3948
                return this.typeField;
3949
            }
3950
            set {
3951
                this.typeField = value;
3952
            }
3953
        }
3954
        
3955
    
3956
        [XmlIgnore]
3957
        public bool typeSpecified {
3958
            get {
3959
                return this.typeFieldSpecified;
3960
            }
3961
            set {
3962
                this.typeFieldSpecified = value;
3963
            }
3964
        }
3965
    }
3966
    
3967

3968
    [Serializable]
3969
    [XmlType(TypeName="ST_FillType", Namespace="urn:schemas-microsoft-com:office:office")]
3970
    [XmlRoot("ST_FillType", Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
3971
    public enum ST_FillType1 {
3972
        
3973
    
3974
        gradientCenter,
3975
        
3976
    
3977
        solid,
3978
        
3979
    
3980
        pattern,
3981
        
3982
    
3983
        tile,
3984
        
3985
    
3986
        frame,
3987
        
3988
    
3989
        gradientUnscaled,
3990
        
3991
    
3992
        gradientRadial,
3993
        
3994
    
3995
        gradient,
3996
        
3997
    
3998
        background,
3999
    }
4000
    
4001

4002
    [Serializable]
4003
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
4004
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
4005
    public enum ST_BWMode {
4006
        
4007
    
4008
        color,
4009
        
4010
    
4011
        auto,
4012
        
4013
    
4014
        grayScale,
4015
        
4016
    
4017
        lightGrayscale,
4018
        
4019
    
4020
        inverseGray,
4021
        
4022
    
4023
        grayOutline,
4024
        
4025
    
4026
        highContrast,
4027
        
4028
    
4029
        black,
4030
        
4031
    
4032
        white,
4033
        
4034
    
4035
        hide,
4036
        
4037
    
4038
        undrawn,
4039
        
4040
    
4041
        blackTextAndLines,
4042
    }
4043
    
4044

4045
    [Serializable]
4046
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
4047
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
4048
    public enum ST_ScreenSize {
4049
        
4050
    
4051
        [XmlEnum("544,376")]
4052
        Item544376,
4053
        
4054
    
4055
        [XmlEnum("640,480")]
4056
        Item640480,
4057
        
4058
    
4059
        [XmlEnum("720,512")]
4060
        Item720512,
4061
        
4062
    
4063
        [XmlEnum("800,600")]
4064
        Item800600,
4065
        
4066
    
4067
        [XmlEnum("1024,768")]
4068
        Item1024768,
4069
        
4070
    
4071
        [XmlEnum("1152,862")]
4072
        Item1152862,
4073
    }
4074
    
4075

4076
    [Serializable]
4077
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
4078
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
4079
    public enum ST_InsetMode {
4080
        auto,
4081
        custom,
4082
    }
4083
    
4084

4085
    [Serializable]
4086
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
4087
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
4088
    public enum ST_CalloutPlacement {
4089
        
4090
    
4091
        top,
4092
        
4093
    
4094
        center,
4095
        
4096
    
4097
        bottom,
4098
        
4099
    
4100
        user,
4101
    }
4102
    
4103

4104
    [Serializable]
4105
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
4106
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
4107
    public enum ST_ConnectorType {
4108
        
4109
    
4110
        none,
4111
        
4112
    
4113
        straight,
4114
        
4115
    
4116
        elbow,
4117
        
4118
    
4119
        curved,
4120
    }
4121
    
4122

4123
    [Serializable]
4124
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
4125
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
4126
    public enum ST_HrAlign {
4127
        
4128
    
4129
        left,
4130
        
4131
    
4132
        right,
4133
        
4134
    
4135
        center,
4136
    }
4137
    
4138

4139
    [Serializable]
4140
    [XmlType(Namespace="urn:schemas-microsoft-com:office:office")]
4141
    [XmlRoot(Namespace="urn:schemas-microsoft-com:office:office", IsNullable=false)]
4142
    public enum ST_ConnectType {
4143
        
4144
    
4145
        none,
4146
        
4147
    
4148
        rect,
4149
        
4150
    
4151
        segments,
4152
        
4153
    
4154
        custom,
4155
    }
4156
}
4157

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

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

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

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