-
Notifications
You must be signed in to change notification settings - Fork 1
/
CT_PPrBase.go
593 lines (584 loc) · 19.8 KB
/
CT_PPrBase.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
// Copyright 2017 Baliance. All rights reserved.
//
// DO NOT EDIT: generated by gooxml ECMA-376 generator
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.
package wml
import (
"encoding/xml"
"baliance.com/gooxml"
)
type CT_PPrBase struct {
// Referenced Paragraph Style
PStyle *CT_String
// Keep Paragraph With Next Paragraph
KeepNext *CT_OnOff
// Keep All Lines On One Page
KeepLines *CT_OnOff
// Start Paragraph on Next Page
PageBreakBefore *CT_OnOff
// Text Frame Properties
FramePr *CT_FramePr
// Allow First/Last Line to Display on a Separate Page
WidowControl *CT_OnOff
// Numbering Definition Instance Reference
NumPr *CT_NumPr
// Suppress Line Numbers for Paragraph
SuppressLineNumbers *CT_OnOff
// Paragraph Borders
PBdr *CT_PBdr
// Paragraph Shading
Shd *CT_Shd
// Set of Custom Tab Stops
Tabs *CT_Tabs
// Suppress Hyphenation for Paragraph
SuppressAutoHyphens *CT_OnOff
// Use East Asian Typography Rules for First and Last Character per Line
Kinsoku *CT_OnOff
// Allow Line Breaking At Character Level
WordWrap *CT_OnOff
// Allow Punctuation to Extend Past Text Extents
OverflowPunct *CT_OnOff
// Compress Punctuation at Start of a Line
TopLinePunct *CT_OnOff
// Automatically Adjust Spacing of Latin and East Asian Text
AutoSpaceDE *CT_OnOff
// Automatically Adjust Spacing of East Asian Text and Numbers
AutoSpaceDN *CT_OnOff
// Right to Left Paragraph Layout
Bidi *CT_OnOff
// Automatically Adjust Right Indent When Using Document Grid
AdjustRightInd *CT_OnOff
// Use Document Grid Settings for Inter-Line Paragraph Spacing
SnapToGrid *CT_OnOff
// Spacing Between Lines and Above/Below Paragraph
Spacing *CT_Spacing
// Paragraph Indentation
Ind *CT_Ind
// Ignore Spacing Above and Below When Using Identical Styles
ContextualSpacing *CT_OnOff
// Use Left/Right Indents as Inside/Outside Indents
MirrorIndents *CT_OnOff
// Prevent Text Frames From Overlapping
SuppressOverlap *CT_OnOff
// Paragraph Alignment
Jc *CT_Jc
// Paragraph Text Flow Direction
TextDirection *CT_TextDirection
// Vertical Character Alignment on Line
TextAlignment *CT_TextAlignment
// Allow Surrounding Paragraphs to Tight Wrap to Text Box Contents
TextboxTightWrap *CT_TextboxTightWrap
// Associated Outline Level
OutlineLvl *CT_DecimalNumber
// Associated HTML div ID
DivId *CT_DecimalNumber
// Paragraph Conditional Formatting
CnfStyle *CT_Cnf
}
func NewCT_PPrBase() *CT_PPrBase {
ret := &CT_PPrBase{}
return ret
}
func (m *CT_PPrBase) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
e.EncodeToken(start)
if m.PStyle != nil {
sepStyle := xml.StartElement{Name: xml.Name{Local: "w:pStyle"}}
e.EncodeElement(m.PStyle, sepStyle)
}
if m.KeepNext != nil {
sekeepNext := xml.StartElement{Name: xml.Name{Local: "w:keepNext"}}
e.EncodeElement(m.KeepNext, sekeepNext)
}
if m.KeepLines != nil {
sekeepLines := xml.StartElement{Name: xml.Name{Local: "w:keepLines"}}
e.EncodeElement(m.KeepLines, sekeepLines)
}
if m.PageBreakBefore != nil {
sepageBreakBefore := xml.StartElement{Name: xml.Name{Local: "w:pageBreakBefore"}}
e.EncodeElement(m.PageBreakBefore, sepageBreakBefore)
}
if m.FramePr != nil {
seframePr := xml.StartElement{Name: xml.Name{Local: "w:framePr"}}
e.EncodeElement(m.FramePr, seframePr)
}
if m.WidowControl != nil {
sewidowControl := xml.StartElement{Name: xml.Name{Local: "w:widowControl"}}
e.EncodeElement(m.WidowControl, sewidowControl)
}
if m.NumPr != nil {
senumPr := xml.StartElement{Name: xml.Name{Local: "w:numPr"}}
e.EncodeElement(m.NumPr, senumPr)
}
if m.SuppressLineNumbers != nil {
sesuppressLineNumbers := xml.StartElement{Name: xml.Name{Local: "w:suppressLineNumbers"}}
e.EncodeElement(m.SuppressLineNumbers, sesuppressLineNumbers)
}
if m.PBdr != nil {
sepBdr := xml.StartElement{Name: xml.Name{Local: "w:pBdr"}}
e.EncodeElement(m.PBdr, sepBdr)
}
if m.Shd != nil {
seshd := xml.StartElement{Name: xml.Name{Local: "w:shd"}}
e.EncodeElement(m.Shd, seshd)
}
if m.Tabs != nil {
setabs := xml.StartElement{Name: xml.Name{Local: "w:tabs"}}
e.EncodeElement(m.Tabs, setabs)
}
if m.SuppressAutoHyphens != nil {
sesuppressAutoHyphens := xml.StartElement{Name: xml.Name{Local: "w:suppressAutoHyphens"}}
e.EncodeElement(m.SuppressAutoHyphens, sesuppressAutoHyphens)
}
if m.Kinsoku != nil {
sekinsoku := xml.StartElement{Name: xml.Name{Local: "w:kinsoku"}}
e.EncodeElement(m.Kinsoku, sekinsoku)
}
if m.WordWrap != nil {
sewordWrap := xml.StartElement{Name: xml.Name{Local: "w:wordWrap"}}
e.EncodeElement(m.WordWrap, sewordWrap)
}
if m.OverflowPunct != nil {
seoverflowPunct := xml.StartElement{Name: xml.Name{Local: "w:overflowPunct"}}
e.EncodeElement(m.OverflowPunct, seoverflowPunct)
}
if m.TopLinePunct != nil {
setopLinePunct := xml.StartElement{Name: xml.Name{Local: "w:topLinePunct"}}
e.EncodeElement(m.TopLinePunct, setopLinePunct)
}
if m.AutoSpaceDE != nil {
seautoSpaceDE := xml.StartElement{Name: xml.Name{Local: "w:autoSpaceDE"}}
e.EncodeElement(m.AutoSpaceDE, seautoSpaceDE)
}
if m.AutoSpaceDN != nil {
seautoSpaceDN := xml.StartElement{Name: xml.Name{Local: "w:autoSpaceDN"}}
e.EncodeElement(m.AutoSpaceDN, seautoSpaceDN)
}
if m.Bidi != nil {
sebidi := xml.StartElement{Name: xml.Name{Local: "w:bidi"}}
e.EncodeElement(m.Bidi, sebidi)
}
if m.AdjustRightInd != nil {
seadjustRightInd := xml.StartElement{Name: xml.Name{Local: "w:adjustRightInd"}}
e.EncodeElement(m.AdjustRightInd, seadjustRightInd)
}
if m.SnapToGrid != nil {
sesnapToGrid := xml.StartElement{Name: xml.Name{Local: "w:snapToGrid"}}
e.EncodeElement(m.SnapToGrid, sesnapToGrid)
}
if m.Spacing != nil {
sespacing := xml.StartElement{Name: xml.Name{Local: "w:spacing"}}
e.EncodeElement(m.Spacing, sespacing)
}
if m.Ind != nil {
seind := xml.StartElement{Name: xml.Name{Local: "w:ind"}}
e.EncodeElement(m.Ind, seind)
}
if m.ContextualSpacing != nil {
secontextualSpacing := xml.StartElement{Name: xml.Name{Local: "w:contextualSpacing"}}
e.EncodeElement(m.ContextualSpacing, secontextualSpacing)
}
if m.MirrorIndents != nil {
semirrorIndents := xml.StartElement{Name: xml.Name{Local: "w:mirrorIndents"}}
e.EncodeElement(m.MirrorIndents, semirrorIndents)
}
if m.SuppressOverlap != nil {
sesuppressOverlap := xml.StartElement{Name: xml.Name{Local: "w:suppressOverlap"}}
e.EncodeElement(m.SuppressOverlap, sesuppressOverlap)
}
if m.Jc != nil {
sejc := xml.StartElement{Name: xml.Name{Local: "w:jc"}}
e.EncodeElement(m.Jc, sejc)
}
if m.TextDirection != nil {
setextDirection := xml.StartElement{Name: xml.Name{Local: "w:textDirection"}}
e.EncodeElement(m.TextDirection, setextDirection)
}
if m.TextAlignment != nil {
setextAlignment := xml.StartElement{Name: xml.Name{Local: "w:textAlignment"}}
e.EncodeElement(m.TextAlignment, setextAlignment)
}
if m.TextboxTightWrap != nil {
setextboxTightWrap := xml.StartElement{Name: xml.Name{Local: "w:textboxTightWrap"}}
e.EncodeElement(m.TextboxTightWrap, setextboxTightWrap)
}
if m.OutlineLvl != nil {
seoutlineLvl := xml.StartElement{Name: xml.Name{Local: "w:outlineLvl"}}
e.EncodeElement(m.OutlineLvl, seoutlineLvl)
}
if m.DivId != nil {
sedivId := xml.StartElement{Name: xml.Name{Local: "w:divId"}}
e.EncodeElement(m.DivId, sedivId)
}
if m.CnfStyle != nil {
secnfStyle := xml.StartElement{Name: xml.Name{Local: "w:cnfStyle"}}
e.EncodeElement(m.CnfStyle, secnfStyle)
}
e.EncodeToken(xml.EndElement{Name: start.Name})
return nil
}
func (m *CT_PPrBase) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
// initialize to default
lCT_PPrBase:
for {
tok, err := d.Token()
if err != nil {
return err
}
switch el := tok.(type) {
case xml.StartElement:
switch el.Name {
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "pStyle"}:
m.PStyle = NewCT_String()
if err := d.DecodeElement(m.PStyle, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "keepNext"}:
m.KeepNext = NewCT_OnOff()
if err := d.DecodeElement(m.KeepNext, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "keepLines"}:
m.KeepLines = NewCT_OnOff()
if err := d.DecodeElement(m.KeepLines, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "pageBreakBefore"}:
m.PageBreakBefore = NewCT_OnOff()
if err := d.DecodeElement(m.PageBreakBefore, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "framePr"}:
m.FramePr = NewCT_FramePr()
if err := d.DecodeElement(m.FramePr, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "widowControl"}:
m.WidowControl = NewCT_OnOff()
if err := d.DecodeElement(m.WidowControl, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "numPr"}:
m.NumPr = NewCT_NumPr()
if err := d.DecodeElement(m.NumPr, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "suppressLineNumbers"}:
m.SuppressLineNumbers = NewCT_OnOff()
if err := d.DecodeElement(m.SuppressLineNumbers, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "pBdr"}:
m.PBdr = NewCT_PBdr()
if err := d.DecodeElement(m.PBdr, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "shd"}:
m.Shd = NewCT_Shd()
if err := d.DecodeElement(m.Shd, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "tabs"}:
m.Tabs = NewCT_Tabs()
if err := d.DecodeElement(m.Tabs, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "suppressAutoHyphens"}:
m.SuppressAutoHyphens = NewCT_OnOff()
if err := d.DecodeElement(m.SuppressAutoHyphens, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "kinsoku"}:
m.Kinsoku = NewCT_OnOff()
if err := d.DecodeElement(m.Kinsoku, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "wordWrap"}:
m.WordWrap = NewCT_OnOff()
if err := d.DecodeElement(m.WordWrap, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "overflowPunct"}:
m.OverflowPunct = NewCT_OnOff()
if err := d.DecodeElement(m.OverflowPunct, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "topLinePunct"}:
m.TopLinePunct = NewCT_OnOff()
if err := d.DecodeElement(m.TopLinePunct, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "autoSpaceDE"}:
m.AutoSpaceDE = NewCT_OnOff()
if err := d.DecodeElement(m.AutoSpaceDE, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "autoSpaceDN"}:
m.AutoSpaceDN = NewCT_OnOff()
if err := d.DecodeElement(m.AutoSpaceDN, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "bidi"}:
m.Bidi = NewCT_OnOff()
if err := d.DecodeElement(m.Bidi, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "adjustRightInd"}:
m.AdjustRightInd = NewCT_OnOff()
if err := d.DecodeElement(m.AdjustRightInd, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "snapToGrid"}:
m.SnapToGrid = NewCT_OnOff()
if err := d.DecodeElement(m.SnapToGrid, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "spacing"}:
m.Spacing = NewCT_Spacing()
if err := d.DecodeElement(m.Spacing, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "ind"}:
m.Ind = NewCT_Ind()
if err := d.DecodeElement(m.Ind, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "contextualSpacing"}:
m.ContextualSpacing = NewCT_OnOff()
if err := d.DecodeElement(m.ContextualSpacing, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "mirrorIndents"}:
m.MirrorIndents = NewCT_OnOff()
if err := d.DecodeElement(m.MirrorIndents, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "suppressOverlap"}:
m.SuppressOverlap = NewCT_OnOff()
if err := d.DecodeElement(m.SuppressOverlap, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "jc"}:
m.Jc = NewCT_Jc()
if err := d.DecodeElement(m.Jc, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "textDirection"}:
m.TextDirection = NewCT_TextDirection()
if err := d.DecodeElement(m.TextDirection, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "textAlignment"}:
m.TextAlignment = NewCT_TextAlignment()
if err := d.DecodeElement(m.TextAlignment, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "textboxTightWrap"}:
m.TextboxTightWrap = NewCT_TextboxTightWrap()
if err := d.DecodeElement(m.TextboxTightWrap, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "outlineLvl"}:
m.OutlineLvl = NewCT_DecimalNumber()
if err := d.DecodeElement(m.OutlineLvl, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "divId"}:
m.DivId = NewCT_DecimalNumber()
if err := d.DecodeElement(m.DivId, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "cnfStyle"}:
m.CnfStyle = NewCT_Cnf()
if err := d.DecodeElement(m.CnfStyle, &el); err != nil {
return err
}
default:
gooxml.Log("skipping unsupported element on CT_PPrBase %v", el.Name)
if err := d.Skip(); err != nil {
return err
}
}
case xml.EndElement:
break lCT_PPrBase
case xml.CharData:
}
}
return nil
}
// Validate validates the CT_PPrBase and its children
func (m *CT_PPrBase) Validate() error {
return m.ValidateWithPath("CT_PPrBase")
}
// ValidateWithPath validates the CT_PPrBase and its children, prefixing error messages with path
func (m *CT_PPrBase) ValidateWithPath(path string) error {
if m.PStyle != nil {
if err := m.PStyle.ValidateWithPath(path + "/PStyle"); err != nil {
return err
}
}
if m.KeepNext != nil {
if err := m.KeepNext.ValidateWithPath(path + "/KeepNext"); err != nil {
return err
}
}
if m.KeepLines != nil {
if err := m.KeepLines.ValidateWithPath(path + "/KeepLines"); err != nil {
return err
}
}
if m.PageBreakBefore != nil {
if err := m.PageBreakBefore.ValidateWithPath(path + "/PageBreakBefore"); err != nil {
return err
}
}
if m.FramePr != nil {
if err := m.FramePr.ValidateWithPath(path + "/FramePr"); err != nil {
return err
}
}
if m.WidowControl != nil {
if err := m.WidowControl.ValidateWithPath(path + "/WidowControl"); err != nil {
return err
}
}
if m.NumPr != nil {
if err := m.NumPr.ValidateWithPath(path + "/NumPr"); err != nil {
return err
}
}
if m.SuppressLineNumbers != nil {
if err := m.SuppressLineNumbers.ValidateWithPath(path + "/SuppressLineNumbers"); err != nil {
return err
}
}
if m.PBdr != nil {
if err := m.PBdr.ValidateWithPath(path + "/PBdr"); err != nil {
return err
}
}
if m.Shd != nil {
if err := m.Shd.ValidateWithPath(path + "/Shd"); err != nil {
return err
}
}
if m.Tabs != nil {
if err := m.Tabs.ValidateWithPath(path + "/Tabs"); err != nil {
return err
}
}
if m.SuppressAutoHyphens != nil {
if err := m.SuppressAutoHyphens.ValidateWithPath(path + "/SuppressAutoHyphens"); err != nil {
return err
}
}
if m.Kinsoku != nil {
if err := m.Kinsoku.ValidateWithPath(path + "/Kinsoku"); err != nil {
return err
}
}
if m.WordWrap != nil {
if err := m.WordWrap.ValidateWithPath(path + "/WordWrap"); err != nil {
return err
}
}
if m.OverflowPunct != nil {
if err := m.OverflowPunct.ValidateWithPath(path + "/OverflowPunct"); err != nil {
return err
}
}
if m.TopLinePunct != nil {
if err := m.TopLinePunct.ValidateWithPath(path + "/TopLinePunct"); err != nil {
return err
}
}
if m.AutoSpaceDE != nil {
if err := m.AutoSpaceDE.ValidateWithPath(path + "/AutoSpaceDE"); err != nil {
return err
}
}
if m.AutoSpaceDN != nil {
if err := m.AutoSpaceDN.ValidateWithPath(path + "/AutoSpaceDN"); err != nil {
return err
}
}
if m.Bidi != nil {
if err := m.Bidi.ValidateWithPath(path + "/Bidi"); err != nil {
return err
}
}
if m.AdjustRightInd != nil {
if err := m.AdjustRightInd.ValidateWithPath(path + "/AdjustRightInd"); err != nil {
return err
}
}
if m.SnapToGrid != nil {
if err := m.SnapToGrid.ValidateWithPath(path + "/SnapToGrid"); err != nil {
return err
}
}
if m.Spacing != nil {
if err := m.Spacing.ValidateWithPath(path + "/Spacing"); err != nil {
return err
}
}
if m.Ind != nil {
if err := m.Ind.ValidateWithPath(path + "/Ind"); err != nil {
return err
}
}
if m.ContextualSpacing != nil {
if err := m.ContextualSpacing.ValidateWithPath(path + "/ContextualSpacing"); err != nil {
return err
}
}
if m.MirrorIndents != nil {
if err := m.MirrorIndents.ValidateWithPath(path + "/MirrorIndents"); err != nil {
return err
}
}
if m.SuppressOverlap != nil {
if err := m.SuppressOverlap.ValidateWithPath(path + "/SuppressOverlap"); err != nil {
return err
}
}
if m.Jc != nil {
if err := m.Jc.ValidateWithPath(path + "/Jc"); err != nil {
return err
}
}
if m.TextDirection != nil {
if err := m.TextDirection.ValidateWithPath(path + "/TextDirection"); err != nil {
return err
}
}
if m.TextAlignment != nil {
if err := m.TextAlignment.ValidateWithPath(path + "/TextAlignment"); err != nil {
return err
}
}
if m.TextboxTightWrap != nil {
if err := m.TextboxTightWrap.ValidateWithPath(path + "/TextboxTightWrap"); err != nil {
return err
}
}
if m.OutlineLvl != nil {
if err := m.OutlineLvl.ValidateWithPath(path + "/OutlineLvl"); err != nil {
return err
}
}
if m.DivId != nil {
if err := m.DivId.ValidateWithPath(path + "/DivId"); err != nil {
return err
}
}
if m.CnfStyle != nil {
if err := m.CnfStyle.ValidateWithPath(path + "/CnfStyle"); err != nil {
return err
}
}
return nil
}