2020-08-23 14:15:53 +00:00
|
|
|
//
|
|
|
|
// Copyright 2020 FoxyUtils ehf. All rights reserved.
|
|
|
|
//
|
|
|
|
// This is a commercial product and requires a license to operate.
|
|
|
|
// A trial license can be obtained at https://unidoc.io
|
|
|
|
//
|
|
|
|
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by the UniDoc End User License Agreement
|
|
|
|
// terms that can be accessed at https://unidoc.io/eula/
|
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
package vml ;import (_e "encoding/xml";_a "fmt";_g "github.com/unidoc/unioffice";_bg "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";_c "github.com/unidoc/unioffice/schema/soo/wml";_cg "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/excel";_f "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/powerpoint";_bcb "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/word";_bc "strconv";);const (ST_ExtUnset ST_Ext =0;ST_ExtView ST_Ext =1;ST_ExtEdit ST_Ext =2;ST_ExtBackwardCompatible ST_Ext =3;);func (_bfaac ST_StrokeEndCap )Validate ()error {return _bfaac .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_Id and its children
|
|
|
|
func (_egfe *AG_Id )Validate ()error {return _egfe .ValidateWithPath ("\u0041\u0047\u005fI\u0064")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcBottom and its children
|
|
|
|
func (_fegbc *OfcBottom )Validate ()error {return _fegbc .ValidateWithPath ("\u004ff\u0063\u0042\u006f\u0074\u0074\u006fm");};func (_eeadc *OfcSkew )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_eeadc .OfcCT_Skew =*NewOfcCT_Skew ();for _ ,_cafcg :=range start .Attr {if _cafcg .Name .Local =="\u0069\u0064"{_gdbc ,_afff :=_cafcg .Value ,error (nil );if _afff !=nil {return _afff ;};_eeadc .IdAttr =&_gdbc ;continue ;};if _cafcg .Name .Local =="\u006f\u006e"{_eeadc .OnAttr .UnmarshalXMLAttr (_cafcg );continue ;};if _cafcg .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_adbcc ,_bdcde :=_cafcg .Value ,error (nil );if _bdcde !=nil {return _bdcde ;};_eeadc .OffsetAttr =&_adbcc ;continue ;};if _cafcg .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_fffcf ,_egcc :=_cafcg .Value ,error (nil );if _egcc !=nil {return _egcc ;};_eeadc .OriginAttr =&_fffcf ;continue ;};if _cafcg .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_baddg ,_fggba :=_cafcg .Value ,error (nil );if _fggba !=nil {return _fggba ;};_eeadc .MatrixAttr =&_baddg ;continue ;};if _cafcg .Name .Local =="\u0065\u0078\u0074"{_eeadc .ExtAttr .UnmarshalXMLAttr (_cafcg );continue ;};};for {_bfccc ,_defab :=d .Token ();if _defab !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0053\u006b\u0065\u0077\u003a\u0020\u0025\u0073",_defab );};if _ebfa ,_aabbc :=_bfccc .(_e .EndElement );_aabbc &&_ebfa .Name ==start .Name {break ;};};return nil ;};type Path struct{CT_Path };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcTop and its children, prefixing error messages with path
|
|
|
|
func (_cgdee *OfcTop )ValidateWithPath (path string )error {if _cdgad :=_cgdee .OfcCT_StrokeChild .ValidateWithPath (path );_cdgad !=nil {return _cdgad ;};return nil ;};func (_agecb *OfcCT_ColorMru )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_acead :=range start .Attr {if _acead .Name .Local =="\u0063\u006f\u006c\u006f\u0072\u0073"{_egded ,_eefba :=_acead .Value ,error (nil );if _eefba !=nil {return _eefba ;};_agecb .ColorsAttr =&_egded ;continue ;};if _acead .Name .Local =="\u0065\u0078\u0074"{_agecb .ExtAttr .UnmarshalXMLAttr (_acead );continue ;};};for {_eafg ,_daga :=d .Token ();if _daga !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u004f\u0066\u0063C\u0054\u005f\u0043\u006f\u006c\u006f\u0072\u004d\u0072\u0075:\u0020\u0025\u0073",_daga );};if _ggbdga ,_gdgcf :=_eafg .(_e .EndElement );_gdgcf &&_ggbdga .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_OfficeCoreAttributes and its children
|
|
|
|
func (_gdec *AG_OfficeCoreAttributes )Validate ()error {return _gdec .ValidateWithPath ("\u0041\u0047\u005fOf\u0066\u0069\u0063\u0065\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};func NewAG_Fill ()*AG_Fill {_dgg :=&AG_Fill {};return _dgg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Proxy and its children, prefixing error messages with path
|
|
|
|
func (_ccdce *OfcCT_Proxy )ValidateWithPath (path string )error {if _eagfa :=_ccdce .StartAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0061\u0072\u0074\u0041\u0074\u0074\u0072");_eagfa !=nil {return _eagfa ;};if _dgffe :=_ccdce .EndAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0041\u0074\u0074\u0072");_dgffe !=nil {return _dgffe ;};return nil ;};func (_bgdba *OfcST_Angle )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_ccbdd ,_dgfcc :=d .Token ();if _dgfcc !=nil {return _dgfcc ;};if _badbg ,_gbgcf :=_ccbdd .(_e .EndElement );_gbgcf &&_badbg .Name ==start .Name {*_bgdba =1;return nil ;};if _ffcde ,_dcffd :=_ccbdd .(_e .CharData );!_dcffd {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_ccbdd );}else {switch string (_ffcde ){case "":*_bgdba =0;case "\u0061\u006e\u0079":*_bgdba =1;case "\u0033\u0030":*_bgdba =2;case "\u0034\u0035":*_bgdba =3;case "\u0036\u0030":*_bgdba =4;case "\u0039\u0030":*_bgdba =5;case "\u0061\u0075\u0074\u006f":*_bgdba =6;};};_ccbdd ,_dgfcc =d .Token ();if _dgfcc !=nil {return _dgfcc ;};if _becfb ,_ccfba :=_ccbdd .(_e .EndElement );_ccfba &&_becfb .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_ccbdd );};type ST_StrokeArrowType byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Arc and its children, prefixing error messages with path
|
|
|
|
func (_affd *Arc )ValidateWithPath (path string )error {if _cacde :=_affd .CT_Arc .ValidateWithPath (path );_cacde !=nil {return _cacde ;};return nil ;};func NewOfcExtrusion ()*OfcExtrusion {_fbgff :=&OfcExtrusion {};_fbgff .OfcCT_Extrusion =*NewOfcCT_Extrusion ();return _fbgff ;};func NewOfcSignatureline ()*OfcSignatureline {_deeagfa :=&OfcSignatureline {};_deeagfa .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();return _deeagfa ;};func (_bbfad *OfcClippath )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_bbfad .OfcCT_ClipPath =*NewOfcCT_ClipPath ();for _ ,_adgbe :=range start .Attr {if _adgbe .Name .Local =="\u0076"{_bgffcg ,_dcbbge :=_adgbe .Value ,error (nil );if _dcbbge !=nil {return _dcbbge ;};_bbfad .VAttr =_bgffcg ;continue ;};};for {_dgaee ,_bbfbbe :=d .Token ();if _bbfbbe !=nil {return _a .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_bbfbbe );};if _ffcda ,_bdbged :=_dgaee .(_e .EndElement );_bdbged &&_ffcda .Name ==start .Name {break ;};};return nil ;};func (_bcfab *Shape )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_bcfab .CT_Shape =*NewCT_Shape ();for _ ,_fdfcbf :=range start .Attr {if _fdfcbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdfcbf .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_efbfb ,_fagbc :=_bc .ParseInt (_fdfcbf .Value ,10,64);if _fagbc !=nil {return _fagbc ;};_bcfab .RegroupidAttr =&_efbfb ;continue ;};if _fdfcbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdfcbf .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_bcfab .DoubleclicknotifyAttr .UnmarshalXMLAttr (_fdfcbf );continue ;};if _fdfcbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdfcbf .Name .Local =="\u0063\u006c\u0069\u0070"{_bcfab .ClipAttr .UnmarshalXMLAttr (_fdfcbf );continue ;};if _fdfcbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdfcbf .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_bcfab .ButtonAttr .UnmarshalXMLAttr (_fdfcbf );continue ;};if _fdfcbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdfcbf .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_bcfab .UserhiddenAttr .UnmarshalXMLAttr (_fdfcbf );continue ;};if _fdfcbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdfcbf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_bcfab .BulletAttr .UnmarshalXMLAttr (_fdfcbf );continue ;};if _fdfcbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdfcbf .Name .Local =="\u0067f\u0078\u0064\u0061\u0074\u0061"{_agbgc ,_fffgf :=_fdfcbf .Value ,error (nil );if _fffgf !=nil {return _fffgf ;};_bcfab .GfxdataAttr =&_agbgc ;continue ;};if _fdfcbf .Name .Space =="\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the EG_ShapeElements and its children, prefixing error messages with path
|
|
|
|
func (_gabc *EG_ShapeElements )ValidateWithPath (path string )error {if _gabc .Path !=nil {if _gcdaa :=_gabc .Path .ValidateWithPath (path +"\u002f\u0050\u0061t\u0068");_gcdaa !=nil {return _gcdaa ;};};if _gabc .Formulas !=nil {if _ecdae :=_gabc .Formulas .ValidateWithPath (path +"\u002fF\u006f\u0072\u006d\u0075\u006c\u0061s");_ecdae !=nil {return _ecdae ;};};if _gabc .Handles !=nil {if _dfaa :=_gabc .Handles .ValidateWithPath (path +"\u002f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");_dfaa !=nil {return _dfaa ;};};if _gabc .Fill !=nil {if _fgfdf :=_gabc .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_fgfdf !=nil {return _fgfdf ;};};if _gabc .Stroke !=nil {if _dbefe :=_gabc .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_dbefe !=nil {return _dbefe ;};};if _gabc .Shadow !=nil {if _agcea :=_gabc .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_agcea !=nil {return _agcea ;};};if _gabc .Textbox !=nil {if _cgbg :=_gabc .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_cgbg !=nil {return _cgbg ;};};if _gabc .Textpath !=nil {if _fggff :=_gabc .Textpath .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0070\u0061\u0074h");_fggff !=nil {return _fggff ;};};if _gabc .Imagedata !=nil {if _gcfcb :=_gabc .Imagedata .ValidateWithPath (path +"\u002f\u0049\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061");_gcfcb !=nil {return _gcfcb ;};};if _gabc .Skew !=nil {if _fecgf :=_gabc .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_fecgf !=nil {return _fecgf ;};};if _gabc .Extrusion !=nil {if _dfeega :=_gabc .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_dfeega !=nil {return _dfeega ;};};if _gabc .Callout !=nil {if _gbbgd :=_gabc .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_gbbgd !=nil {return _gbbgd ;};};if _gabc .Lock !=nil {if _dbaga :=_gabc .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_dbaga !=nil {return _dbaga ;};};if _gabc .Clippath !=nil {if _gcac :=_gabc .Clippath .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0070\u0061\u0074h");_gcac !=nil {return _gcac ;};};if _gabc .Signatureline !=nil {if _aaag :=_gabc .Signatureline .ValidateWithPath (path +"\u002f\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065");_aaag !=nil {return _aaag ;};};if _gabc .Wrap !=nil {if _abaed :=_gabc .Wrap .ValidateWithPath (path +"\u002f\u0057\u0072a\u0070");_abaed !=nil {return _abaed ;};};if _gabc .Anchorlock !=nil {if _gfac :=_gabc .Anchorlock .ValidateWithPath (path +"/\u0041\u006e\u0063\u0068\u006f\u0072\u006c\u006f\u0063\u006b");_gfac !=nil {return _gfac ;};};if _gabc .Bordertop !=nil {if _bfede :=_gabc .Bordertop .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070");_bfede !=nil {return _bfede ;};};if _gabc .Borderbottom !=nil {if _bdcedf :=_gabc .Borderbottom .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0062\u006f\u0074\u0074\u006f\u006d");_bdcedf !=nil {return _bdcedf ;};};if _gabc .Borderleft !=nil {if _bgdc :=_gabc .Borderleft .ValidateWithPath (path +"/\u0042\u006f\u0072\u0064\u0065\u0072\u006c\u0065\u0066\u0074");_bgdc !=nil {return _bgdc ;};};if _gabc .Borderright !=nil {if _bbgde :=_gabc .Borderright .ValidateWithPath (path +"\u002f\u0042\u006fr\u0064\u0065\u0072\u0072\u0069\u0067\u0068\u0074");_bbgde !=nil {return _bbgde ;};};if _gabc .ClientData !=nil {if _gced :=_gabc .ClientData .ValidateWithPath (path +"/\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");_gced !=nil {return _gced ;};};if _gabc .Textdata !=nil {if _edaaa :=_gabc .Textdata .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0064\u0061\u0074a");_edaaa !=nil {return _edaaa ;};};return nil ;};func (_ecaba *ST_Ext )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_ecaba =0;case "\u0076\u0069\u0065\u0077":*_ecaba =1;case "\u0065\u0064\u0069\u0074":*_ecaba =2;case "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Skew and its children
|
|
|
|
func (_deacba *OfcCT_Skew )Validate ()error {return _deacba .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u006b\u0065\u0077");};func (_ebed *AG_OfficeCoreAttributes )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _ebed .SpidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_ebed .SpidAttr )});};if _ebed .OnedAttr !=_bg .ST_TrueFalseUnset {_daa ,_gffa :=_ebed .OnedAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e\u0065\u0064"});if _gffa !=nil {return _gffa ;};start .Attr =append (start .Attr ,_daa );};if _ebed .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_ebed .RegroupidAttr )});};if _ebed .DoubleclicknotifyAttr !=_bg .ST_TrueFalseUnset {_gefb ,_beec :=_ebed .DoubleclicknotifyAttr .MarshalXMLAttr (_e .Name {Local :"\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"});if _beec !=nil {return _beec ;};start .Attr =append (start .Attr ,_gefb );};if _ebed .ButtonAttr !=_bg .ST_TrueFalseUnset {_afda ,_eebf :=_ebed .ButtonAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u0074\u0074\u006f\u006e"});if _eebf !=nil {return _eebf ;};start .Attr =append (start .Attr ,_afda );};if _ebed .UserhiddenAttr !=_bg .ST_TrueFalseUnset {_egd ,_ddb :=_ebed .UserhiddenAttr .MarshalXMLAttr (_e .Name {Local :"\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _ddb !=nil {return _ddb ;};start .Attr =append (start .Attr ,_egd );};if _ebed .BulletAttr !=_bg .ST_TrueFalseUnset {_fea ,_fbbd :=_ebed .BulletAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u006c\u006c\u0065\u0074"});if _fbbd !=nil {return _fbbd ;};start .Attr =append (start .Attr ,_fea );};if _ebed .HrAttr !=_bg .ST_TrueFalseUnset {_bab ,_fgd :=_ebed .HrAttr .MarshalXMLAttr (_e .Name {Local :"\u0068\u0072"});if _fgd !=nil {return _fgd ;};start .Attr =append (start .Attr ,_bab );};if _ebed .HrstdAttr !=_bg .ST_TrueFalseUnset {_edb ,_cdgc :=_ebed .HrstdAttr .MarshalXMLAttr (_e .Name {Local :"\u0068\u0072\u0073t\u0064"});if _cdgc !=nil {return _cdgc ;};start .Attr =append (start .Attr ,_edb );};if _ebed .HrnoshadeAttr !=_bg .ST_TrueFalseUnset {_fca ,_cbgd :=_ebed .HrnoshadeAttr .MarshalXMLAttr (_e .Name {Local :"\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"});if _cbgd !=nil {return _cbgd ;};start .Attr =append (start .Attr ,_fca );};if _ebed .HrpctAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f:\u0068\u0072\u0070\u0063\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_ebed .HrpctAttr )});};if _ebed .HralignAttr !=OfcST_HrAlignUnset {_ddee ,_abg :=_ebed .HralignAttr .MarshalXMLAttr (_e .Name {Local :"\u0068r\u0061\u006c\u0069\u0067\u006e"});if _abg !=nil {return _abg ;};start .Attr =append (start .Attr ,_ddee );};if _ebed .AllowincellAttr !=_bg .ST_TrueFalseUnset {_cba ,_dabc :=_ebed .AllowincellAttr .MarshalXMLAttr (_e .Name {Local :"a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"});if _dabc !=nil {return _dabc ;};start .Attr =append (start .Attr ,_cba );};if _ebed .AllowoverlapAttr !=_bg .ST_TrueFalseUnset {_cbge ,_ccc :=_ebed .AllowoverlapAttr .MarshalXMLAttr (_e .Name {Local :"\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"});if _ccc !=nil {return _ccc ;};start .Attr =append (start .Attr ,_cbge );};if _ebed .UserdrawnAttr !=_bg .ST_TrueFalseUnset {_ggcc ,_dcb :=_ebed .UserdrawnAttr .MarshalXMLAttr (_e .Name {Local :"\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"});if _dcb !=nil {return _dcb ;};start .Attr =append (start .Attr ,_ggcc );};if _ebed .BordertopcolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003ab\u006f\u0072\u0064e\u0072\u0074\u006f\u0070\u0063\u006f\u006c\u006f\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_ebed .BordertopcolorAttr )});};if _ebed .BorderleftcolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCallout and its children, prefixing error messages with path
|
|
|
|
func (_cedeg *OfcCallout )ValidateWithPath (path string )error {if _dbfee :=_cedeg .OfcCT_Callout .ValidateWithPath (path );_dbfee !=nil {return _dbfee ;};return nil ;};func (_ddcf *CT_F )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_cgg :=range start .Attr {if _cgg .Name .Local =="\u0065\u0071\u006e"{_bbgbe ,_bbec :=_cgg .Value ,error (nil );if _bbec !=nil {return _bbec ;};_ddcf .EqnAttr =&_bbgbe ;continue ;};};for {_ebcd ,_dgfec :=d .Token ();if _dgfec !=nil {return _a .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u0043\u0054\u005f\u0046\u003a\u0020\u0025\u0073",_dgfec );};if _eebde ,_bebdd :=_ebcd .(_e .EndElement );_bebdd &&_eebde .Name ==start .Name {break ;};};return nil ;};type OfcST_ConnectorType byte ;func (_bbeef *ST_StrokeEndCap )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_bbeef =0;case "\u0066\u006c\u0061\u0074":*_bbeef =1;case "\u0073\u0071\u0075\u0061\u0072\u0065":*_bbeef =2;case "\u0072\u006f\u0075n\u0064":*_bbeef =3;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_Chromakey and its children, prefixing error messages with path
|
|
|
|
func (_fcec *AG_Chromakey )ValidateWithPath (path string )error {return nil };type Textpath struct{CT_TextPath };type ST_Ext byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMru and its children, prefixing error messages with path
|
|
|
|
func (_cgadd *OfcCT_ColorMru )ValidateWithPath (path string )error {if _fgcb :=_cgadd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fgcb !=nil {return _fgcb ;};return nil ;};func (_fffdb *CT_TextPath )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_afed :=range start .Attr {if _afed .Name .Local =="\u006f\u006e"{_fffdb .OnAttr .UnmarshalXMLAttr (_afed );continue ;};if _afed .Name .Local =="\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"{_fffdb .FitshapeAttr .UnmarshalXMLAttr (_afed );continue ;};if _afed .Name .Local =="\u0066i\u0074\u0070\u0061\u0074\u0068"{_fffdb .FitpathAttr .UnmarshalXMLAttr (_afed );continue ;};if _afed .Name .Local =="\u0074\u0072\u0069\u006d"{_fffdb .TrimAttr .UnmarshalXMLAttr (_afed );continue ;};if _afed .Name .Local =="\u0078\u0073\u0063\u0061\u006c\u0065"{_fffdb .XscaleAttr .UnmarshalXMLAttr (_afed );continue ;};if _afed .Name .Local =="\u0073\u0074\u0072\u0069\u006e\u0067"{_cfaceg ,_cgccc :=_afed .Value ,error (nil );if _cgccc !=nil {return _cgccc ;};_fffdb .StringAttr =&_cfaceg ;continue ;};if _afed .Name .Local =="\u0069\u0064"{_bgae ,_beaad :=_afed .Value ,error (nil );if _beaad !=nil {return _beaad ;};_fffdb .IdAttr =&_bgae ;continue ;};if _afed .Name .Local =="\u0073\u0074\u0079l\u0065"{_gdde ,_aeggf :=_afed .Value ,error (nil );if _aeggf !=nil {return _aeggf ;};_fffdb .StyleAttr =&_gdde ;continue ;};};for {_addaa ,_acec :=d .Token ();if _acec !=nil {return _a .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_acec );};if _cfaca ,_aadfe :=_addaa .(_e .EndElement );_aadfe &&_cfaca .Name ==start .Name {break ;};};return nil ;};func (_eedadf OfcST_OLEDrawAspect )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_eedadf .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Fill and its children
|
|
|
|
func (_feaa *CT_Fill )Validate ()error {return _feaa .ValidateWithPath ("\u0043T\u005f\u0046\u0069\u006c\u006c");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Path and its children
|
|
|
|
func (_ccgfa *CT_Path )Validate ()error {return _ccgfa .ValidateWithPath ("\u0043T\u005f\u0050\u0061\u0074\u0068");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcInk and its children, prefixing error messages with path
|
|
|
|
func (_ccaec *OfcInk )ValidateWithPath (path string )error {if _afadf :=_ccaec .OfcCT_Ink .ValidateWithPath (path );_afadf !=nil {return _afadf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Background and its children
|
|
|
|
func (_ecdf *Background )Validate ()error {return _ecdf .ValidateWithPath ("\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};func NewCT_ImageData ()*CT_ImageData {_dabcd :=&CT_ImageData {};return _dabcd };func (_fbf *AG_Chromakey )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_feg :=range start .Attr {if _feg .Name .Local =="\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"{_gga ,_ggac :=_feg .Value ,error (nil );if _ggac !=nil {return _ggac ;};_fbf .ChromakeyAttr =&_gga ;continue ;};};for {_fgbe ,_bbb :=d .Token ();if _bbb !=nil {return _a .Errorf ("\u0070a\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005f\u0043\u0068r\u006f\u006d\u0061\u006b\u0065\u0079\u003a\u0020\u0025\u0073",_bbb );};if _bedb ,_fec :=_fgbe .(_e .EndElement );_fec &&_bedb .Name ==start .Name {break ;};};return nil ;};func NewOfcShapedefaults ()*OfcShapedefaults {_efcde :=&OfcShapedefaults {};_efcde .OfcCT_ShapeDefaults =*NewOfcCT_ShapeDefaults ();return _efcde ;};func NewLine ()*Line {_faaf :=&Line {};_faaf .CT_Line =*NewCT_Line ();return _faaf };type OfcExtrusion struct{OfcCT_Extrusion };func (_gefea *Curve )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_gefea .CT_Curve =*NewCT_Curve ();for _ ,_eeceb :=range start .Attr {if _eeceb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eeceb .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_gefea .AllowoverlapAttr .UnmarshalXMLAttr (_eeceb );continue ;};if _eeceb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eeceb .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_edabe ,_ceefe :=_bc .ParseInt (_eeceb .Value ,10,64);if _ceefe !=nil {return _ceefe ;};_gefea .RegroupidAttr =&_edabe ;continue ;};if _eeceb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eeceb .Name .Local =="\u0064g\u006d\u006c\u0061\u0079\u006f\u0075t"{_gefea .DgmlayoutAttr .UnmarshalXMLAttr (_eeceb );continue ;};if _eeceb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eeceb .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_gefea .DoubleclicknotifyAttr .UnmarshalXMLAttr (_eeceb );continue ;};if _eeceb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eeceb .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_gefea .PreferrelativeAttr .UnmarshalXMLAttr (_eeceb );continue ;};if _eeceb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eeceb .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_gefea .ButtonAttr .UnmarshalXMLAttr (_eeceb );continue ;};if _eeceb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eeceb .Name .Local =="\u006f\u006c\u0065"{_gefea .OleAttr .UnmarshalXMLAttr (_eeceb );continue ;};if _eeceb .Name .Space
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeDefaults and its children, prefixing error messages with path
|
|
|
|
func (_adfeb *OfcCT_ShapeDefaults )ValidateWithPath (path string )error {if _dfgbe :=_adfeb .FillAttr .ValidateWithPath (path +"\u002fF\u0069\u006c\u006c\u0041\u0074\u0074r");_dfgbe !=nil {return _dfgbe ;};if _cafca :=_adfeb .StrokeAttr .ValidateWithPath (path +"/\u0053\u0074\u0072\u006f\u006b\u0065\u0041\u0074\u0074\u0072");_cafca !=nil {return _cafca ;};if _fafcgg :=_adfeb .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_fafcgg !=nil {return _fafcgg ;};if _adfeb .Fill !=nil {if _cfdcd :=_adfeb .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_cfdcd !=nil {return _cfdcd ;};};if _adfeb .Stroke !=nil {if _aedeff :=_adfeb .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_aedeff !=nil {return _aedeff ;};};if _adfeb .Textbox !=nil {if _cgfff :=_adfeb .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_cgfff !=nil {return _cgfff ;};};if _adfeb .Shadow !=nil {if _adaef :=_adfeb .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_adaef !=nil {return _adaef ;};};if _adfeb .Skew !=nil {if _febba :=_adfeb .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_febba !=nil {return _febba ;};};if _adfeb .Extrusion !=nil {if _ecacg :=_adfeb .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_ecacg !=nil {return _ecacg ;};};if _adfeb .Callout !=nil {if _feefga :=_adfeb .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_feefga !=nil {return _feefga ;};};if _adfeb .Lock !=nil {if _ggeff :=_adfeb .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_ggeff !=nil {return _ggeff ;};};if _adfeb .Colormru !=nil {if _debga :=_adfeb .Colormru .ValidateWithPath (path +"\u002fC\u006f\u006c\u006f\u0072\u006d\u0072u");_debga !=nil {return _debga ;};};if _adfeb .Colormenu !=nil {if _eaebd :=_adfeb .Colormenu .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075");_eaebd !=nil {return _eaebd ;};};if _aebea :=_adfeb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_aebea !=nil {return _aebea ;};return nil ;};func NewAG_ShapeAttributes ()*AG_ShapeAttributes {_afbg :=&AG_ShapeAttributes {};return _afbg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Handles and its children, prefixing error messages with path
|
|
|
|
func (_fgba *CT_Handles )ValidateWithPath (path string )error {for _dfgc ,_gega :=range _fgba .H {if _fgefa :=_gega .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002f\u0048\u005b\u0025\u0064\u005d",path ,_dfgc ));_fgefa !=nil {return _fgefa ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Complex and its children, prefixing error messages with path
|
|
|
|
func (_afdgc *OfcCT_Complex )ValidateWithPath (path string )error {if _dfbbe :=_afdgc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_dfbbe !=nil {return _dfbbe ;};return nil ;};func (_bbggb *OfcST_DiagramLayout )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_afggg ,_cbfd :=d .Token ();if _cbfd !=nil {return _cbfd ;};if _bdcga ,_geefc :=_afggg .(_e .EndElement );_geefc &&_bdcga .Name ==start .Name {*_bbggb =1;return nil ;};if _feecf ,_dcebf :=_afggg .(_e .CharData );!_dcebf {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_afggg );}else {switch string (_feecf ){case "":*_bbggb =0;case "\u0030":*_bbggb =1;case "\u0031":*_bbggb =2;case "\u0032":*_bbggb =3;case "\u0033":*_bbggb =4;};};_afggg ,_cbfd =d .Token ();if _cbfd !=nil {return _cbfd ;};if _fcgga ,_eegg :=_afggg .(_e .EndElement );_eegg &&_fcgga .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_afggg );};const (OfcST_OLETypeUnset OfcST_OLEType =0;OfcST_OLETypeEmbed OfcST_OLEType =1;OfcST_OLETypeLink OfcST_OLEType =2;);func NewOfcCT_Extrusion ()*OfcCT_Extrusion {_cedg :=&OfcCT_Extrusion {};return _cedg };func (_bbbee *ST_StrokeArrowWidth )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_bbbee =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_bbbee =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_bbbee =2;case "\u0077\u0069\u0064\u0065":*_bbbee =3;};return nil ;};type OfcRight struct{OfcCT_StrokeChild };type OfcCT_Diagram struct{DgmstyleAttr *int64 ;AutoformatAttr _bg .ST_TrueFalse ;ReverseAttr _bg .ST_TrueFalse ;AutolayoutAttr _bg .ST_TrueFalse ;DgmscalexAttr *int64 ;DgmscaleyAttr *int64 ;DgmfontsizeAttr *int64 ;ConstrainboundsAttr *string ;DgmbasetextscaleAttr *int64 ;Relationtable *OfcCT_RelationTable ;ExtAttr ST_Ext ;};func (_dfdcc *OfcST_OLEType )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_dfdcc =0;case "\u0045\u006d\u0062e\u0064":*_dfdcc =1;case "\u004c\u0069\u006e\u006b":*_dfdcc =2;};return nil ;};func (_bdd *CT_Group )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_bacc :=range start .Attr {if _bacc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacc .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_bdd .AllowincellAttr .UnmarshalXMLAttr (_bacc );continue ;};if _bacc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacc .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_bdd .BulletAttr .UnmarshalXMLAttr (_bacc );continue ;};if _bacc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacc .Name .Local =="\u0068\u0072"{_bdd .HrAttr .UnmarshalXMLAttr (_bacc );continue ;};if _bacc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacc .Name .Local =="\u006f\u006e\u0065\u0064"{_bdd .OnedAttr .UnmarshalXMLAttr (_bacc );continue ;};if _bacc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacc .Name .Local =="\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_SignatureLine and its children, prefixing error messages with path
|
|
|
|
func (_faga *OfcCT_SignatureLine )ValidateWithPath (path string )error {if _egcf :=_faga .IssignaturelineAttr .ValidateWithPath (path +"/\u0049s\u0073\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065At\u0074\u0072");_egcf !=nil {return _egcf ;};if _faga .IdAttr !=nil {if !_bg .ST_GuidPatternRe .MatchString (*_faga .IdAttr ){return _a .Errorf ("\u0025\u0073/\u006d\u002e\u0049\u0064A\u0074\u0074r\u0020\u006d\u0075\u0073\u0074\u0020\u006d\u0061t\u0063\u0068\u0020\u0027\u0025\u0073\u0027\u0020\u0028\u0068\u0061\u0076e\u0020\u0025\u0076\u0029",path ,_bg .ST_GuidPatternRe ,*_faga .IdAttr );};};if _faga .ProvidAttr !=nil {if !_bg .ST_GuidPatternRe .MatchString (*_faga .ProvidAttr ){return _a .Errorf ("\u0025\u0073\u002f\u006d\u002eP\u0072\u006f\u0076\u0069\u0064\u0041\u0074\u0074\u0072\u0020\u006d\u0075\u0073t\u0020\u006d\u0061\u0074\u0063\u0068\u0020\u0027\u0025\u0073\u0027\u0020\u0028\u0068\u0061\u0076\u0065\u0020\u0025\u0076\u0029",path ,_bg .ST_GuidPatternRe ,*_faga .ProvidAttr );};};if _abdfgc :=_faga .SigninginstructionssetAttr .ValidateWithPath (path +"/\u0053\u0069\u0067\u006e\u0069\u006eg\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069o\u006e\u0073\u0073e\u0074A\u0074\u0074\u0072");_abdfgc !=nil {return _abdfgc ;};if _eebfb :=_faga .AllowcommentsAttr .ValidateWithPath (path +"\u002fA\u006cl\u006f\u0077\u0063\u006f\u006dm\u0065\u006et\u0073\u0041\u0074\u0074\u0072");_eebfb !=nil {return _eebfb ;};if _dgef :=_faga .ShowsigndateAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u006f\u0077\u0073\u0069\u0067\u006e\u0064\u0061\u0074e\u0041\u0074\u0074\u0072");_dgef !=nil {return _dgef ;};if _eaaaa :=_faga .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_eaaaa !=nil {return _eaaaa ;};return nil ;};func (_abaab OfcST_ExtrusionRender )Validate ()error {return _abaab .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Background and its children
|
|
|
|
func (_cegd *CT_Background )Validate ()error {return _cegd .ValidateWithPath ("\u0043\u0054\u005f\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};func (_agaaf *OfcST_ConnectorType )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_fffce ,_cgda :=d .Token ();if _cgda !=nil {return _cgda ;};if _dgfgca ,_adccf :=_fffce .(_e .EndElement );_adccf &&_dgfgca .Name ==start .Name {*_agaaf =1;return nil ;};if _dcgfe ,_cbdef :=_fffce .(_e .CharData );!_cbdef {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_fffce );}else {switch string (_dcgfe ){case "":*_agaaf =0;case "\u006e\u006f\u006e\u0065":*_agaaf =1;case "\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074":*_agaaf =2;case "\u0065\u006c\u0062o\u0077":*_agaaf =3;case "\u0063\u0075\u0072\u0076\u0065\u0064":*_agaaf =4;};};_fffce ,_cgda =d .Token ();if _cgda !=nil {return _cgda ;};if _ecbbdd ,_gffge :=_fffce .(_e .EndElement );_gffge &&_ecbbdd .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_fffce );};type ST_StrokeEndCap byte ;func (_dagbd ST_StrokeLineStyle )ValidateWithPath (path string )error {switch _dagbd {case 0,1,2,3,4,5:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dagbd ));};return nil ;};type OfcCT_EquationXml struct{ContentTypeAttr *string ;Any _g .Any ;};func (_aagbe *ST_EditAs )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_gdbdb ,_bfdgc :=d .Token ();if _bfdgc !=nil {return _bfdgc ;};if _cbedae ,_fgacda :=_gdbdb .(_e .EndElement );_fgacda &&_cbedae .Name ==start .Name {*_aagbe =1;return nil ;};if _fagfb ,_gebd :=_gdbdb .(_e .CharData );!_gebd {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_gdbdb );}else {switch string (_fagfb ){case "":*_aagbe =0;case "\u0063\u0061\u006e\u0076\u0061\u0073":*_aagbe =1;case "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074":*_aagbe =2;case "\u0072\u0061\u0064\u0069\u0061\u006c":*_aagbe =3;case "\u0063\u0079\u0063l\u0065":*_aagbe =4;case "\u0073t\u0061\u0063\u006b\u0065\u0064":*_aagbe =5;case "\u0076\u0065\u006e\u006e":*_aagbe =6;case "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065":*_aagbe =7;};};_gdbdb ,_bfdgc =d .Token ();if _bfdgc !=nil {return _bfdgc ;};if _daffg ,_gcbfcb :=_gdbdb .(_e .EndElement );_gcbfcb &&_daffg .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_gdbdb );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_StrokeChild and its children
|
|
|
|
func (_eeabd *OfcCT_StrokeChild )Validate ()error {return _eeabd .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0074\u0072\u006f\u006b\u0065C\u0068\u0069\u006c\u0064");};func NewAG_ImageAttributes ()*AG_ImageAttributes {_fcfa :=&AG_ImageAttributes {};return _fcfa };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_Adj and its children, prefixing error messages with path
|
|
|
|
func (_ce *AG_Adj )ValidateWithPath (path string )error {return nil };type OfcTop struct{OfcCT_StrokeChild };func (_fdcffc OfcST_ExtrusionRender )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_fdcffc .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_StrokeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_cdgg *AG_StrokeAttributes )ValidateWithPath (path string )error {if _eafb :=_cdgg .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_eafb !=nil {return _eafb ;};if _aggg :=_cdgg .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_aggg !=nil {return _aggg ;};if _acfd :=_cdgg .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_acfd !=nil {return _acfd ;};if _baeg :=_cdgg .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_baeg !=nil {return _baeg ;};if _fbgd :=_cdgg .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_fbgd !=nil {return _fbgd ;};if _eeea :=_cdgg .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_eeea !=nil {return _eeea ;};if _dgde :=_cdgg .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_dgde !=nil {return _dgde ;};if _gbf :=_cdgg .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_gbf !=nil {return _gbf ;};if _acfe :=_cdgg .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_acfe !=nil {return _acfe ;};if _gcee :=_cdgg .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_gcee !=nil {return _gcee ;};if _baf :=_cdgg .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_baf !=nil {return _baf ;};if _dgbf :=_cdgg .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_dgbf !=nil {return _dgbf ;};if _cgcg :=_cdgg .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_cgcg !=nil {return _cgcg ;};if _fegf :=_cdgg .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_fegf !=nil {return _fegf ;};if _dbff :=_cdgg .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_dbff !=nil {return _dbff ;};return nil ;};func (_ffdad *Formulas )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_ffdad .CT_Formulas =*NewCT_Formulas ();_cfdc :for {_ebgc ,_gffdc :=d .Token ();if _gffdc !=nil {return _gffdc ;};switch _dadcd :=_ebgc .(type ){case _e .StartElement :switch _dadcd .Name {case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066"}:_edecbg :=NewCT_F ();if _deeag :=d .DecodeElement (_edecbg ,&_dadcd );_deeag !=nil {return _deeag ;};_ffdad .F =append (_ffdad .F ,_edecbg );default:_g .Log ("\u0073\u006b\u0069\u0070\u0070\u0069\u006eg\u0020\u0075\u006es\u0075\u0070\u0070\u006fr\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073\u0020\u0025\u0076",_dadcd .Name );if _bfcg :=d .Skip ();_bfcg !=nil {return _bfcg ;};};case _e .EndElement :break _cfdc ;case _e .CharData :};};return nil ;};type AG_Id struct{IdAttr *string ;};type CT_Handles struct{H []*CT_H ;};func (_dgba *OfcLock )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _dgba .OfcCT_Lock .MarshalXML (e ,start );};type Shapetype struct{CT_Shapetype };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Path and its children, prefixing error messages with path
|
|
|
|
func (_bgcb *CT_Path )ValidateWithPath (path string )error {if _gfdbf :=_bgcb .FillokAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u006f\u006b\u0041\u0074\u0074\u0072");_gfdbf !=nil {return _gfdbf ;};if _gafeeg :=_bgcb .StrokeokAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0072\u006f\u006b\u0065\u006f\u006b\u0041\u0074\u0074\u0072");_gafeeg !=nil {return _gafeeg ;};if _egegf :=_bgcb .ShadowokAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0064\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_egegf !=nil {return _egegf ;};if _gbab :=_bgcb .ArrowokAttr .ValidateWithPath (path +"\u002f\u0041\u0072r\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_gbab !=nil {return _gbab ;};if _babc :=_bgcb .GradientshapeokAttr .ValidateWithPath (path +"/\u0047r\u0061\u0064\u0069\u0065\u006e\u0074\u0073\u0068a\u0070\u0065\u006f\u006bAt\u0074\u0072");_babc !=nil {return _babc ;};if _dedb :=_bgcb .TextpathokAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0070\u0061\u0074\u0068\u006f\u006b\u0041\u0074\u0074\u0072");_dedb !=nil {return _dedb ;};if _cegf :=_bgcb .InsetpenokAttr .ValidateWithPath (path +"\u002fI\u006es\u0065\u0074\u0070\u0065\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_cegf !=nil {return _cegf ;};if _gegea :=_bgcb .ConnecttypeAttr .ValidateWithPath (path +"\u002f\u0043o\u006e\u006e\u0065c\u0074\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_gegea !=nil {return _gegea ;};if _ecbe :=_bgcb .ExtrusionokAttr .ValidateWithPath (path +"\u002f\u0045x\u0074\u0072\u0075s\u0069\u006f\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_ecbe !=nil {return _ecbe ;};return nil ;};func (_cfeb *AG_Style )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_cda :=range start .Attr {if _cda .Name .Local =="\u0073\u0074\u0079l\u0065"{_bbae ,_ffdc :=_cda .Value ,error (nil );if _ffdc !=nil {return _ffdc ;};_cfeb .StyleAttr =&_bbae ;continue ;};};for {_aggc ,_addag :=d .Token ();if _addag !=nil {return _a .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005fS\u0074\u0079\u006c\u0065: \u0025\u0073",_addag );};if _dgdb ,_cgca :=_aggc .(_e .EndElement );_cgca &&_dgdb .Name ==start .Name {break ;};};return nil ;};type AG_Style struct{StyleAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Image and its children
|
|
|
|
func (_bbadg *CT_Image )Validate ()error {return _bbadg .ValidateWithPath ("\u0043\u0054\u005f\u0049\u006d\u0061\u0067\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Shape and its children
|
|
|
|
func (_cfdf *CT_Shape )Validate ()error {return _cfdf .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065");};func NewAG_Style ()*AG_Style {_cgac :=&AG_Style {};return _cgac };func (_cf *AG_Adj )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _cf .AdjAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u0064\u006a"},Value :_a .Sprintf ("\u0025\u0076",*_cf .AdjAttr )});};return nil ;};func NewOfcCT_Callout ()*OfcCT_Callout {_bebfba :=&OfcCT_Callout {};return _bebfba };func (_geab *AG_StrokeAttributes )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_bef :=range start .Attr {if _bef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bef .Name .Local =="\u0072\u0065\u006ci\u0064"{_adaa ,_aac :=_bef .Value ,error (nil );if _aac !=nil {return _aac ;};_geab .RelidAttr =&_adaa ;continue ;};if _bef .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_bef .Name .Local =="\u0069\u0064"{_dggc ,_bbca :=_bef .Value ,error (nil );if _bbca !=nil {return _bbca ;};_geab .IdAttr =&_dggc ;continue ;};if _bef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bef .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_geab .ForcedashAttr .UnmarshalXMLAttr (_bef );continue ;};if _bef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bef .Name .Local =="\u0074\u0069\u0074l\u0065"{_eabf ,_cegcf :=_bef .Value ,error (nil );if _cegcf !=nil {return _cegcf ;};_geab .TitleAttr =&_eabf ;continue ;};if _bef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bef .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_gbaae ,_egdc :=_bef .Value ,error (nil );if _egdc !=nil {return _egdc ;};_geab .AlthrefAttr =&_gbaae ;continue ;};if _bef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bef .Name .Local =="\u0068\u0072\u0065\u0066"{_cdbb ,_dce :=_bef .Value ,error (nil );if _dce !=nil {return _dce ;};_geab .HrefAttr =&_cdbb ;continue ;};if _bef .Name .Local =="\u006f\u006e"{_geab .OnAttr .UnmarshalXMLAttr (_bef );continue ;};if _bef .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_geab .StartarrowlengthAttr .UnmarshalXMLAttr (_bef );continue ;};if _bef .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_geab .EndarrowAttr .UnmarshalXMLAttr (_bef );continue ;};if _bef .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_fdb ,_dcbg :=_bef .Value ,error (nil );if _dcbg !=nil {return _dcbg ;};_geab .DashstyleAttr =&_fdb ;continue ;};if _bef .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_geab .EndarrowwidthAttr .UnmarshalXMLAttr (_bef );continue ;};if _bef .Name .Local =="\u0073\u0072\u0063"{_cgfd ,_cab :=_bef .Value ,error (nil );if _cab !=nil {return _cab ;};_geab .SrcAttr =&_cgfd ;co
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_Fill and its children
|
|
|
|
func (_egb *AG_Fill )Validate ()error {return _egb .ValidateWithPath ("\u0041G\u005f\u0046\u0069\u006c\u006c");};func (_dcda *AG_Path )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _dcda .PathAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0070\u0061\u0074\u0068"},Value :_a .Sprintf ("\u0025\u0076",*_dcda .PathAttr )});};return nil ;};func (_dbgae ST_StrokeArrowType )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_dbgae .String (),start );};func (_cdead ST_StrokeArrowType )String ()string {switch _cdead {case 0:return "";case 1:return "\u006e\u006f\u006e\u0065";case 2:return "\u0062\u006c\u006fc\u006b";case 3:return "\u0063l\u0061\u0073\u0073\u0069\u0063";case 4:return "\u006f\u0076\u0061\u006c";case 5:return "\u0064i\u0061\u006d\u006f\u006e\u0064";case 6:return "\u006f\u0070\u0065\u006e";};return "";};func (_gcbd *CT_Textbox )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _gcbd .InsetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u006e\u0073e\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_gcbd .InsetAttr )});};if _gcbd .SingleclickAttr !=_bg .ST_TrueFalseUnset {_fbgga ,_gggac :=_gcbd .SingleclickAttr .MarshalXMLAttr (_e .Name {Local :"s\u0069\u006e\u0067\u006c\u0065\u0063\u006c\u0069\u0063\u006b"});if _gggac !=nil {return _gggac ;};start .Attr =append (start .Attr ,_fbgga );};if _gcbd .InsetmodeAttr !=OfcST_InsetModeUnset {_gdgag ,_bcgg :=_gcbd .InsetmodeAttr .MarshalXMLAttr (_e .Name {Local :"\u0069n\u0073\u0065\u0074\u006d\u006f\u0064e"});if _bcgg !=nil {return _bcgg ;};start .Attr =append (start .Attr ,_gdgag );};if _gcbd .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_gcbd .IdAttr )});};if _gcbd .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gcbd .StyleAttr )});};e .EncodeToken (start );if _gcbd .TxbxContent !=nil {_cgdfc :=_e .StartElement {Name :_e .Name {Local :"\u0077\u003a\u0074\u0078\u0062\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074"}};e .EncodeElement (_gcbd .TxbxContent ,_cgdfc );};if _gcbd .Any !=nil {_gcbd .Any .MarshalXML (e ,_e .StartElement {});};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_cageb OfcST_ExtrusionRender )ValidateWithPath (path string )error {switch _cageb {case 0,1,2,3:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_cageb ));};return nil ;};type CT_Stroke struct{Left *OfcLeft ;Top *OfcTop ;Right *OfcRight ;Bottom *OfcBottom ;Column *OfcColumn ;IdAttr *string ;OnAttr _bg .ST_TrueFalse ;WeightAttr *string ;ColorAttr *string ;OpacityAttr *string ;LinestyleAttr ST_StrokeLineStyle ;MiterlimitAttr *float64 ;JoinstyleAttr ST_StrokeJoinStyle ;EndcapAttr ST_StrokeEndCap ;DashstyleAttr *string ;FilltypeAttr ST_FillType ;SrcAttr *string ;ImageaspectAttr ST_ImageAspect ;ImagesizeAttr *string ;ImagealignshapeAttr _bg .ST_TrueFalse ;Color2Attr *string ;StartarrowAttr ST_StrokeArrowType ;StartarrowwidthAttr ST_StrokeArrowWidth ;StartarrowlengthAttr ST_StrokeArrowLength ;EndarrowAttr ST_StrokeArrowType ;EndarrowwidthAttr ST_StrokeArrowWidth ;EndarrowlengthAttr ST_StrokeArrowLength ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;ForcedashAttr _bg .ST_TrueFalse ;RIdAttr *string ;InsetpenAttr _bg .ST_TrueFalse ;RelidAttr *string ;};func (_ffggf *Image )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _ffggf .CT_Image .MarshalXML (e ,start );};type OfcCT_IdMap struct{DataAttr *string ;ExtAttr ST_Ext ;};func (_ceagd *Polyline )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _ceagd .CT_PolyLine .MarshalXML (e ,start );};func NewAG_CoreAttributes ()*AG_CoreAttributes {_aebdf :=&AG_CoreAttributes {};return _aebdf };func (_eag *CT_H )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_EquationXml and its children
|
|
|
|
func (_bfeg *OfcCT_EquationXml )Validate ()error {return _bfeg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0058\u006d\u006c");};func (_dggbg ST_StrokeEndCap )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_acdfb :=_e .Attr {};_acdfb .Name =name ;switch _dggbg {case ST_StrokeEndCapUnset :_acdfb .Value ="";case ST_StrokeEndCapFlat :_acdfb .Value ="\u0066\u006c\u0061\u0074";case ST_StrokeEndCapSquare :_acdfb .Value ="\u0073\u0071\u0075\u0061\u0072\u0065";case ST_StrokeEndCapRound :_acdfb .Value ="\u0072\u006f\u0075n\u0064";};return _acdfb ,nil ;};func NewAG_Path ()*AG_Path {_gcga :=&AG_Path {};return _gcga };func (_baafd OfcST_ColorMode )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_baafd .String (),start );};func NewCT_Group ()*CT_Group {_fcaa :=&CT_Group {};return _fcaa };func (_bggaf *OfcSkew )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _bggaf .OfcCT_Skew .MarshalXML (e ,start );};func (_dgebea OfcST_ExtrusionRender )String ()string {switch _dgebea {case 0:return "";case 1:return "\u0073\u006f\u006ci\u0064";case 2:return "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de";case 3:return "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065";};return "";};type CT_Background struct{BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;TargetscreensizeAttr OfcST_ScreenSize ;Fill *Fill ;IdAttr *string ;FilledAttr _bg .ST_TrueFalse ;FillcolorAttr *string ;};func (_fefce ST_StrokeArrowWidth )ValidateWithPath (path string )error {switch _fefce {case 0,1,2,3:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fefce ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcFill and its children, prefixing error messages with path
|
|
|
|
func (_gfadag *OfcFill )ValidateWithPath (path string )error {if _acdgg :=_gfadag .OfcCT_Fill .ValidateWithPath (path );_acdgg !=nil {return _acdgg ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcEquationxml and its children
|
|
|
|
func (_bgbdeg *OfcEquationxml )Validate ()error {return _bgbdeg .ValidateWithPath ("\u004f\u0066\u0063\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0078\u006d\u006c");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_OfficeShapeAttributes and its children
|
|
|
|
func (_ebbc *AG_OfficeShapeAttributes )Validate ()error {return _ebbc .ValidateWithPath ("\u0041G\u005f\u004f\u0066\u0066\u0069\u0063\u0065\u0053\u0068\u0061\u0070e\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};type CT_TextPath struct{OnAttr _bg .ST_TrueFalse ;FitshapeAttr _bg .ST_TrueFalse ;FitpathAttr _bg .ST_TrueFalse ;TrimAttr _bg .ST_TrueFalse ;XscaleAttr _bg .ST_TrueFalse ;StringAttr *string ;IdAttr *string ;StyleAttr *string ;};func NewOfcCallout ()*OfcCallout {_dcbfd :=&OfcCallout {};_dcbfd .OfcCT_Callout =*NewOfcCT_Callout ();return _dcbfd ;};func (_ecdbf ST_ShadowType )ValidateWithPath (path string )error {switch _ecdbf {case 0,1,2,3,4:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ecdbf ));};return nil ;};type AG_Ext struct{ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Line and its children
|
|
|
|
func (_ecfccd *Line )Validate ()error {return _ecfccd .ValidateWithPath ("\u004c\u0069\u006e\u0065")};func (_gcb *AG_CoreAttributes )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _gcb .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .HrefAttr )});};if _gcb .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .TargetAttr )});};if _gcb .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .ClassAttr )});};if _gcb .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .TitleAttr )});};if _gcb .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .AltAttr )});};if _gcb .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .CoordsizeAttr )});};if _gcb .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .CoordoriginAttr )});};if _gcb .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .WrapcoordsAttr )});};if _gcb .PrintAttr !=_bg .ST_TrueFalseUnset {_ecaf ,_aae :=_gcb .PrintAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0069n\u0074"});if _aae !=nil {return _aae ;};start .Attr =append (start .Attr ,_ecaf );};if _gcb .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .IdAttr )});};if _gcb .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gcb .StyleAttr )});};return nil ;};func (_dabab OfcST_DiagramLayout )Validate ()error {return _dabab .ValidateWithPath ("")};func NewCT_Path ()*CT_Path {_fcbc :=&CT_Path {};return _fcbc };func (_cgdca *OfcShapedefaults )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Rect and its children
|
|
|
|
func (_fecff *Rect )Validate ()error {return _fecff .ValidateWithPath ("\u0052\u0065\u0063\u0074")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcShapedefaults and its children
|
|
|
|
func (_ggacd *OfcShapedefaults )Validate ()error {return _ggacd .ValidateWithPath ("\u004f\u0066c\u0053\u0068\u0061p\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_ImageAttributes and its children
|
|
|
|
func (_fbb *AG_ImageAttributes )Validate ()error {return _fbb .ValidateWithPath ("\u0041G\u005fI\u006d\u0061\u0067\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Group and its children, prefixing error messages with path
|
|
|
|
func (_bcdbc *Group )ValidateWithPath (path string )error {if _gcbad :=_bcdbc .CT_Group .ValidateWithPath (path );_gcbad !=nil {return _gcbad ;};return nil ;};func NewCT_Shape ()*CT_Shape {_aaff :=&CT_Shape {};return _aaff };const (OfcST_ScreenSizeUnset OfcST_ScreenSize =0;OfcST_ScreenSize544x376 OfcST_ScreenSize =1;OfcST_ScreenSize640x480 OfcST_ScreenSize =2;OfcST_ScreenSize720x512 OfcST_ScreenSize =3;OfcST_ScreenSize800x600 OfcST_ScreenSize =4;OfcST_ScreenSize1024x768 OfcST_ScreenSize =5;OfcST_ScreenSize1152x862 OfcST_ScreenSize =6;);func (_cfafb OfcST_How )String ()string {switch _cfafb {case 0:return "";case 1:return "\u0074\u006f\u0070";case 2:return "\u006d\u0069\u0064\u0064\u006c\u0065";case 3:return "\u0062\u006f\u0074\u0074\u006f\u006d";case 4:return "\u006c\u0065\u0066\u0074";case 5:return "\u0063\u0065\u006e\u0074\u0065\u0072";case 6:return "\u0072\u0069\u0067h\u0074";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_AllShapeAttributes and its children
|
|
|
|
func (_cbc *AG_AllShapeAttributes )Validate ()error {return _cbc .ValidateWithPath ("A\u0047\u005f\u0041\u006clS\u0068a\u0070\u0065\u0041\u0074\u0074r\u0069\u0062\u0075\u0074\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_PolyLine and its children
|
|
|
|
func (_cbcde *CT_PolyLine )Validate ()error {return _cbcde .ValidateWithPath ("C\u0054\u005f\u0050\u006f\u006c\u0079\u004c\u0069\u006e\u0065");};func (_eccbb *CT_H )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _eccbb .PositionAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_eccbb .PositionAttr )});};if _eccbb .PolarAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0070\u006f\u006ca\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_eccbb .PolarAttr )});};if _eccbb .MapAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006d\u0061\u0070"},Value :_a .Sprintf ("\u0025\u0076",*_eccbb .MapAttr )});};if _eccbb .InvxAttr !=_bg .ST_TrueFalseUnset {_ffga ,_bbgf :=_eccbb .InvxAttr .MarshalXMLAttr (_e .Name {Local :"\u0069\u006e\u0076\u0078"});if _bbgf !=nil {return _bbgf ;};start .Attr =append (start .Attr ,_ffga );};if _eccbb .InvyAttr !=_bg .ST_TrueFalseUnset {_dfedf ,_ceaeb :=_eccbb .InvyAttr .MarshalXMLAttr (_e .Name {Local :"\u0069\u006e\u0076\u0079"});if _ceaeb !=nil {return _ceaeb ;};start .Attr =append (start .Attr ,_dfedf );};if _eccbb .SwitchAttr !=_bg .ST_TrueFalseBlankUnset {_gfce ,_bfgf :=_eccbb .SwitchAttr .MarshalXMLAttr (_e .Name {Local :"\u0073\u0077\u0069\u0074\u0063\u0068"});if _bfgf !=nil {return _bfgf ;};start .Attr =append (start .Attr ,_gfce );};if _eccbb .XrangeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u0072\u0061\u006e\u0067\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_eccbb .XrangeAttr )});};if _eccbb .YrangeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0079\u0072\u0061\u006e\u0067\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_eccbb .YrangeAttr )});};if _eccbb .RadiusrangeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"r\u0061\u0064\u0069\u0075\u0073\u0072\u0061\u006e\u0067\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_eccbb .RadiusrangeAttr )});};e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};type CT_Line struct{FromAttr *string ;ToAttr *string ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _bg .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _bg .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _bg .ST_TrueFalse ;ButtonAttr _bg .ST_TrueFalse ;UserhiddenAttr _bg .ST_TrueFalse ;BulletAttr _bg .ST_TrueFalse ;HrAttr _bg .ST_TrueFalse ;HrstdAttr _bg .ST_TrueFalse ;HrnoshadeAttr _bg .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _bg .ST_TrueFalse ;AllowoverlapAttr _bg .ST_TrueFalse ;UserdrawnAttr _bg .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _bg .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _bg .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _bg .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _bg .ST_TrueFalse ;OleiconAttr _bg .ST_TrueFalse ;OleAttr _bg .ST_TrueFalseBlank ;PreferrelativeAttr _bg .ST_TrueFalse ;CliptowrapAttr _bg .ST_TrueFalse ;ClipAttr _bg .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Textbox and its children
|
|
|
|
func (_eadaa *Textbox )Validate ()error {return _eadaa .ValidateWithPath ("\u0054e\u0078\u0074\u0062\u006f\u0078");};func (_eeagf *OfcComplex )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f:\u0063\u006f\u006d\u0070\u006c\u0065x";return _eeagf .OfcCT_Complex .MarshalXML (e ,start );};func (_cfaeb *OfcST_ConnectType )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_aadfbd ,_ebdfd :=d .Token ();if _ebdfd !=nil {return _ebdfd ;};if _dbeda ,_bfecbc :=_aadfbd .(_e .EndElement );_bfecbc &&_dbeda .Name ==start .Name {*_cfaeb =1;return nil ;};if _bfbcag ,_baaaae :=_aadfbd .(_e .CharData );!_baaaae {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_aadfbd );}else {switch string (_bfbcag ){case "":*_cfaeb =0;case "\u006e\u006f\u006e\u0065":*_cfaeb =1;case "\u0072\u0065\u0063\u0074":*_cfaeb =2;case "\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073":*_cfaeb =3;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_cfaeb =4;};};_aadfbd ,_ebdfd =d .Token ();if _ebdfd !=nil {return _ebdfd ;};if _fbcefe ,_afcac :=_aadfbd .(_e .EndElement );_afcac &&_fbcefe .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_aadfbd );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Path and its children
|
|
|
|
func (_gabfa *Path )Validate ()error {return _gabfa .ValidateWithPath ("\u0050\u0061\u0074\u0068")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_IdMap and its children
|
|
|
|
func (_cfce *OfcCT_IdMap )Validate ()error {return _cfce .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0049\u0064\u004d\u0061\u0070");};func NewRoundrect ()*Roundrect {_ffbbf :=&Roundrect {};_ffbbf .CT_RoundRect =*NewCT_RoundRect ();return _ffbbf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcFill and its children
|
|
|
|
func (_gggbb *OfcFill )Validate ()error {return _gggbb .ValidateWithPath ("\u004ff\u0063\u0046\u0069\u006c\u006c");};func (_fccfe *ST_StrokeEndCap )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_gfegg ,_dcgce :=d .Token ();if _dcgce !=nil {return _dcgce ;};if _fabdd ,_ffefc :=_gfegg .(_e .EndElement );_ffefc &&_fabdd .Name ==start .Name {*_fccfe =1;return nil ;};if _fecbe ,_bdfag :=_gfegg .(_e .CharData );!_bdfag {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_gfegg );}else {switch string (_fecbe ){case "":*_fccfe =0;case "\u0066\u006c\u0061\u0074":*_fccfe =1;case "\u0073\u0071\u0075\u0061\u0072\u0065":*_fccfe =2;case "\u0072\u006f\u0075n\u0064":*_fccfe =3;};};_gfegg ,_dcgce =d .Token ();if _dcgce !=nil {return _dcgce ;};if _fega ,_ccbadc :=_gfegg .(_e .EndElement );_ccbadc &&_fega .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_gfegg );};func (_gcgab *Fill )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_gcgab .CT_Fill =*NewCT_Fill ();for _ ,_fcfdd :=range start .Attr {if _fcfdd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcfdd .Name .Local =="\u0064\u0065t\u0065\u0063\u0074m\u006f\u0075\u0073\u0065\u0063\u006c\u0069\u0063\u006b"{_gcgab .DetectmouseclickAttr .UnmarshalXMLAttr (_fcfdd );continue ;};if _fcfdd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcfdd .Name .Local =="\u0072\u0065\u006ci\u0064"{_cgbaf ,_fbgge :=_fcfdd .Value ,error (nil );if _fbgge !=nil {return _fbgge ;};_gcgab .RelidAttr =&_cgbaf ;continue ;};if _fcfdd .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_fcfdd .Name .Local =="\u0069\u0064"||_fcfdd .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_fcfdd .Name .Local =="\u0069\u0064"{_efbad ,_fafbg :=_fcfdd .Value ,error (nil );if _fafbg !=nil {return _fafbg ;};_gcgab .IdAttr =&_efbad ;continue ;};if _fcfdd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcfdd .Name .Local =="\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u0032"{_fbeab ,_eefbe :=_fcfdd .Value ,error (nil );if _eefbe !=nil {return _eefbe ;};_gcgab .Opacity2Attr =&_fbeab ;continue ;};if _fcfdd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcfdd .Name .Local =="\u0074\u0069\u0074l\u0065"{_eebdc ,_ceaba :=_fcfdd .Value ,error (nil );if _ceaba !=nil {return _ceaba ;};_gcgab .TitleAttr =&_eebdc ;continue ;};if _fcfdd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Roundrect and its children
|
|
|
|
func (_gbefgb *Roundrect )Validate ()error {return _gbefgb .ValidateWithPath ("\u0052o\u0075\u006e\u0064\u0072\u0065\u0063t");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_Path and its children, prefixing error messages with path
|
|
|
|
func (_deeg *AG_Path )ValidateWithPath (path string )error {return nil };func (_befee *Textbox )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _befee .CT_Textbox .MarshalXML (e ,start );};func (_gfdeg *OfcST_ColorMode )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cbfea ,_febad :=d .Token ();if _febad !=nil {return _febad ;};if _gdbdg ,_dedfg :=_cbfea .(_e .EndElement );_dedfg &&_gdbdg .Name ==start .Name {*_gfdeg =1;return nil ;};if _cfdeb ,_bacaecf :=_cbfea .(_e .CharData );!_bacaecf {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_cbfea );}else {switch string (_cfdeb ){case "":*_gfdeg =0;case "\u0061\u0075\u0074\u006f":*_gfdeg =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_gfdeg =2;};};_cbfea ,_febad =d .Token ();if _febad !=nil {return _febad ;};if _eddda ,_gabefc :=_cbfea .(_e .EndElement );_gabefc &&_eddda .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_cbfea );};type OfcST_CalloutPlacement byte ;func NewOfcCT_Lock ()*OfcCT_Lock {_afecg :=&OfcCT_Lock {};return _afecg };const (ST_StrokeArrowLengthUnset ST_StrokeArrowLength =0;ST_StrokeArrowLengthShort ST_StrokeArrowLength =1;ST_StrokeArrowLengthMedium ST_StrokeArrowLength =2;ST_StrokeArrowLengthLong ST_StrokeArrowLength =3;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-01-04 16:11:39 +00:00
|
|
|
// Validate validates the OfcComplex and its children
|
2021-03-16 20:51:18 +00:00
|
|
|
func (_fgfebg *OfcComplex )Validate ()error {return _fgfebg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};func NewEG_ShapeElements ()*EG_ShapeElements {_dbeb :=&EG_ShapeElements {};return _dbeb };func (_badf *CT_Line )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _badf .FromAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_a .Sprintf ("\u0025\u0076",*_badf .FromAttr )});};if _badf .ToAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u006f"},Value :_a .Sprintf ("\u0025\u0076",*_badf .ToAttr )});};if _badf .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_badf .HrefAttr )});};if _badf .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_badf .TargetAttr )});};if _badf .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_badf .ClassAttr )});};if _badf .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_badf .TitleAttr )});};if _badf .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_badf .AltAttr )});};if _badf .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_badf .CoordsizeAttr )});};if _badf .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_badf .CoordoriginAttr )});};if _badf .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_badf .WrapcoordsAttr )});};if _badf .PrintAttr !=_bg .ST_TrueFalseUnset {_deabf ,_edge :=_badf .PrintAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0069n\u0074"});if _edge !=nil {return _edge ;};start .Attr =append (start .Attr ,_deabf );};if _badf .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_badf .IdAttr )});};if _badf .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_badf .StyleAttr )});};if _badf .SpidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_badf .SpidAttr )});};if _badf .OnedAttr !=_bg .ST_TrueFalseUnset {_gcdb ,_gcea :=_badf .OnedAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e\u0065\u0064"});if _gcea !=nil {return _gcea ;};start .Attr =append (start .Attr ,_gcdb );};if _badf .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_badf .RegroupidAttr )});};if _badf .DoubleclicknotifyAttr !=_bg .ST_TrueFalseUnset {_geeg ,_geaee :=_badf .DoubleclicknotifyAttr .MarshalXMLAttr (_e .Name {Local :"\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"});if _geaee !=nil {return _geaee ;};start .Attr =append (start .Attr ,_geeg );};if _badf .ButtonAttr !=_bg .ST_TrueFalseUnset {_cbgeb ,_daag :=_badf .ButtonAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u0074\u0074\u006f\u006e"});if _daag !=nil {return _daag ;};start .Attr =append (start .Attr ,_cbgeb );};if _badf .UserhiddenAttr !=_bg .ST_TrueFalseUnset {_ddgd ,_eagb :=_badf .UserhiddenAttr .MarshalXMLAttr (_e .Name {
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Lock and its children, prefixing error messages with path
|
|
|
|
func (_faefa *OfcCT_Lock )ValidateWithPath (path string )error {if _gfaaf :=_faefa .PositionAttr .ValidateWithPath (path +"\u002f\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_gfaaf !=nil {return _gfaaf ;};if _adbfe :=_faefa .SelectionAttr .ValidateWithPath (path +"\u002f\u0053\u0065\u006c\u0065\u0063\u0074\u0069\u006fn\u0041\u0074\u0074\u0072");_adbfe !=nil {return _adbfe ;};if _fedcda :=_faefa .GroupingAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_fedcda !=nil {return _fedcda ;};if _fgca :=_faefa .UngroupingAttr .ValidateWithPath (path +"\u002fU\u006eg\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_fgca !=nil {return _fgca ;};if _bbge :=_faefa .RotationAttr .ValidateWithPath (path +"\u002f\u0052\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_bbge !=nil {return _bbge ;};if _gcfca :=_faefa .CroppingAttr .ValidateWithPath (path +"\u002f\u0043\u0072\u006f\u0070\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_gcfca !=nil {return _gcfca ;};if _dedee :=_faefa .VerticiesAttr .ValidateWithPath (path +"\u002f\u0056\u0065\u0072\u0074\u0069\u0063\u0069\u0065s\u0041\u0074\u0074\u0072");_dedee !=nil {return _dedee ;};if _dbfbb :=_faefa .AdjusthandlesAttr .ValidateWithPath (path +"\u002fA\u0064j\u0075\u0073\u0074\u0068\u0061n\u0064\u006ce\u0073\u0041\u0074\u0074\u0072");_dbfbb !=nil {return _dbfbb ;};if _fdaga :=_faefa .TextAttr .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0041\u0074\u0074r");_fdaga !=nil {return _fdaga ;};if _gefcc :=_faefa .AspectratioAttr .ValidateWithPath (path +"\u002f\u0041s\u0070\u0065\u0063t\u0072\u0061\u0074\u0069\u006f\u0041\u0074\u0074\u0072");_gefcc !=nil {return _gefcc ;};if _accb :=_faefa .ShapetypeAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0070\u0065\u0074\u0079\u0070e\u0041\u0074\u0074\u0072");_accb !=nil {return _accb ;};if _ceafe :=_faefa .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ceafe !=nil {return _ceafe ;};return nil ;};func (_baac OfcST_BWMode )Validate ()error {return _baac .ValidateWithPath ("")};type CT_RoundRect struct{ArcsizeAttr *string ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _bg .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _bg .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _bg .ST_TrueFalse ;ButtonAttr _bg .ST_TrueFalse ;UserhiddenAttr _bg .ST_TrueFalse ;BulletAttr _bg .ST_TrueFalse ;HrAttr _bg .ST_TrueFalse ;HrstdAttr _bg .ST_TrueFalse ;HrnoshadeAttr _bg .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _bg .ST_TrueFalse ;AllowoverlapAttr _bg .ST_TrueFalse ;UserdrawnAttr _bg .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _bg .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _bg .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _bg .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _bg .ST_TrueFalse ;OleiconAttr _bg .ST_TrueFalse ;OleAttr _bg .ST_TrueFalseBlank ;PreferrelativeAttr _bg .ST_TrueFalse ;CliptowrapAttr _bg .ST_TrueFalse ;ClipAttr _bg .ST_TrueFalse ;};func (_febc *OfcCT_Ink )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _febc .IAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069"},Value :_a .Sprintf ("\u0025\u0076",*_febc .IAttr )});};if _febc .AnnotationAttr !=_bg .ST_TrueFalseUnset {_adec ,_ggdfd :=_febc .AnnotationAttr .MarshalXMLAttr (_e .Name {Local :"\u0061\u006e\u006e\u0
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Relation and its children, prefixing error messages with path
|
|
|
|
func (_ecdfca *OfcCT_Relation )ValidateWithPath (path string )error {if _fbec :=_ecdfca .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fbec !=nil {return _fbec ;};return nil ;};func (_bafgd ST_ImageAspect )String ()string {switch _bafgd {case 0:return "";case 1:return "\u0069\u0067\u006e\u006f\u0072\u0065";case 2:return "\u0061\u0074\u004d\u006f\u0073\u0074";case 3:return "\u0061t\u004c\u0065\u0061\u0073\u0074";};return "";};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Polyline and its children
|
|
|
|
func (_gcdgb *Polyline )Validate ()error {return _gcdgb .ValidateWithPath ("\u0050\u006f\u006c\u0079\u006c\u0069\u006e\u0065");};func (_afab *CT_Curve )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_efbf :=range start .Attr {if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_afab .AllowoverlapAttr .UnmarshalXMLAttr (_efbf );continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_dggad ,_dada :=_bc .ParseInt (_efbf .Value ,10,64);if _dada !=nil {return _dada ;};_afab .RegroupidAttr =&_dggad ;continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0064g\u006d\u006c\u0061\u0079\u006f\u0075t"{_afab .DgmlayoutAttr .UnmarshalXMLAttr (_efbf );continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_afab .DoubleclicknotifyAttr .UnmarshalXMLAttr (_efbf );continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_afab .PreferrelativeAttr .UnmarshalXMLAttr (_efbf );continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_afab .ButtonAttr .UnmarshalXMLAttr (_efbf );continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u006f\u006c\u0065"{_afab .OleAttr .UnmarshalXMLAttr (_efbf );continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_afab .UserhiddenAttr .UnmarshalXMLAttr (_efbf );continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_afab .ForcedashAttr .UnmarshalXMLAttr (_efbf );continue ;};if _efbf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_efbf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_Type and its children
|
|
|
|
func (_bde *AG_Type )Validate ()error {return _bde .ValidateWithPath ("\u0041G\u005f\u0054\u0079\u0070\u0065");};func (_bbggc *OfcST_OLEUpdateMode )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_bbggc =0;case "\u0041\u006c\u0077\u0061\u0079\u0073":*_bbggc =1;case "\u004f\u006e\u0043\u0061\u006c\u006c":*_bbggc =2;};return nil ;};type OfcSkew struct{OfcCT_Skew };func NewCT_Shadow ()*CT_Shadow {_bbbda :=&CT_Shadow {};return _bbbda };func (_dfbeg *Line )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_dfbeg .CT_Line =*NewCT_Line ();for _ ,_cbaad :=range start .Attr {if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_dfbeg .UserdrawnAttr .UnmarshalXMLAttr (_cbaad );continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_dfbeg .ButtonAttr .UnmarshalXMLAttr (_cbaad );continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_dfbeg .DgmlayoutmruAttr .UnmarshalXMLAttr (_cbaad );continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_dfbeg .UserhiddenAttr .UnmarshalXMLAttr (_cbaad );continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_dfbeg .CliptowrapAttr .UnmarshalXMLAttr (_cbaad );continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_dfbeg .BulletAttr .UnmarshalXMLAttr (_cbaad );continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u006f\u006c\u0065"{_dfbeg .OleAttr .UnmarshalXMLAttr (_cbaad );continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u0068\u0072"{_dfbeg .HrAttr .UnmarshalXMLAttr (_cbaad );continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbaad .Name .Local =="\u0073\u0070\u0069\u0064"{_gbbad ,_ecfcb :=_cbaad .Value ,error (nil );if _ecfcb !=nil {return _ecfcb ;};_dfbeg .SpidAttr =&_gbbad ;continue ;};if _cbaad .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Shadow and its children
|
|
|
|
func (_fcbcga *Shadow )Validate ()error {return _fcbcga .ValidateWithPath ("\u0053\u0068\u0061\u0064\u006f\u0077");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Line and its children, prefixing error messages with path
|
|
|
|
func (_gggfe *Line )ValidateWithPath (path string )error {if _bggeb :=_gggfe .CT_Line .ValidateWithPath (path );_bggeb !=nil {return _bggeb ;};return nil ;};func (_fggbb *OfcDiagram )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f:\u0064\u0069\u0061\u0067\u0072\u0061m";return _fggbb .OfcCT_Diagram .MarshalXML (e ,start );};func (_bddccf *ST_StrokeLineStyle )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_bddccf =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_bddccf =1;case "\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e":*_bddccf =2;case "\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k":*_bddccf =3;case "\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n":*_bddccf =4;case "\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e":*_bddccf =5;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_ShapeAttributes and its children
|
|
|
|
func (_bcg *AG_ShapeAttributes )Validate ()error {return _bcg .ValidateWithPath ("\u0041G\u005fS\u0068\u0061\u0070\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};type OfcCT_RegroupTable struct{Entry []*OfcCT_Entry ;ExtAttr ST_Ext ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Formulas and its children, prefixing error messages with path
|
|
|
|
func (_eccab *Formulas )ValidateWithPath (path string )error {if _aefaf :=_eccab .CT_Formulas .ValidateWithPath (path );_aefaf !=nil {return _aefaf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Fill and its children
|
|
|
|
func (_bgfcg *Fill )Validate ()error {return _bgfcg .ValidateWithPath ("\u0046\u0069\u006c\u006c")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_cbae *CT_Fill )ValidateWithPath (path string )error {if _dec :=_cbae .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_dec !=nil {return _dec ;};if _fagf :=_cbae .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_fagf !=nil {return _fagf ;};if _ffed :=_cbae .AspectAttr .ValidateWithPath (path +"/\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_ffed !=nil {return _ffed ;};if _cdcd :=_cbae .AlignshapeAttr .ValidateWithPath (path +"\u002fA\u006ci\u0067\u006e\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_cdcd !=nil {return _cdcd ;};if _cdgd :=_cbae .MethodAttr .ValidateWithPath (path +"/\u004d\u0065\u0074\u0068\u006f\u0064\u0041\u0074\u0074\u0072");_cdgd !=nil {return _cdgd ;};if _cdad :=_cbae .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_cdad !=nil {return _cdad ;};if _ebaf :=_cbae .RecolorAttr .ValidateWithPath (path +"\u002f\u0052\u0065c\u006f\u006c\u006f\u0072\u0041\u0074\u0074\u0072");_ebaf !=nil {return _ebaf ;};if _gfd :=_cbae .RotateAttr .ValidateWithPath (path +"/\u0052\u006f\u0074\u0061\u0074\u0065\u0041\u0074\u0074\u0072");_gfd !=nil {return _gfd ;};if _cbae .Fill !=nil {if _abgfc :=_cbae .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_abgfc !=nil {return _abgfc ;};};return nil ;};func (_acedg *OfcEquationxml )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_acedg .OfcCT_EquationXml =*NewOfcCT_EquationXml ();for _ ,_aafeg :=range start .Attr {if _aafeg .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_fgefe ,_fgcbc :=_aafeg .Value ,error (nil );if _fgcbc !=nil {return _fgcbc ;};_acedg .ContentTypeAttr =&_fgefe ;continue ;};};_edbcc :for {_cecg ,_dcccgf :=d .Token ();if _dcccgf !=nil {return _dcccgf ;};switch _gfcba :=_cecg .(type ){case _e .StartElement :switch _gfcba .Name {default:if _bffce ,_bddff :=_g .CreateElement (_gfcba );_bddff !=nil {return _bddff ;}else {if _accfg :=d .DecodeElement (_bffce ,&_gfcba );_accfg !=nil {return _accfg ;};_acedg .Any =_bffce ;};};case _e .EndElement :break _edbcc ;case _e .CharData :};};return nil ;};type OfcCT_Fill struct{TypeAttr OfcST_FillType ;ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_ClipPath and its children
|
|
|
|
func (_gagc *OfcCT_ClipPath )Validate ()error {return _gagc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006c\u0069p\u0050\u0061\u0074\u0068");};type OfcCT_ColorMru struct{ColorsAttr *string ;ExtAttr ST_Ext ;};type Fill struct{CT_Fill };func (_efde ST_StrokeArrowLength )Validate ()error {return _efde .ValidateWithPath ("")};type OfcCT_OLEObject struct{TypeAttr OfcST_OLEType ;ProgIDAttr *string ;ShapeIDAttr *string ;DrawAspectAttr OfcST_OLEDrawAspect ;ObjectIDAttr *string ;IdAttr *string ;UpdateModeAttr OfcST_OLEUpdateMode ;LinkType *string ;LockedField _bg .ST_TrueFalseBlank ;FieldCodes *string ;};func NewAG_OfficeShapeAttributes ()*AG_OfficeShapeAttributes {_abag :=&AG_OfficeShapeAttributes {};return _abag ;};func (_baafa *ST_StrokeLineStyle )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_fcggb ,_dggda :=d .Token ();if _dggda !=nil {return _dggda ;};if _fffag ,_cdccb :=_fcggb .(_e .EndElement );_cdccb &&_fffag .Name ==start .Name {*_baafa =1;return nil ;};if _ebfdd ,_afag :=_fcggb .(_e .CharData );!_afag {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_fcggb );}else {switch string (_ebfdd ){case "":*_baafa =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_baafa =1;case "\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e":*_baafa =2;case "\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k":*_baafa =3;case "\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n":*_baafa =4;case "\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e":*_baafa =5;};};_fcggb ,_dggda =d .Token ();if _dggda !=nil {return _dggda ;};if _gefce ,_gdacbg :=_fcggb .(_e .EndElement );_gdacbg &&_gefce .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_fcggb );};func (_ccff *Handles )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_ccff .CT_Handles =*NewCT_Handles ();_baaed :for {_dcccg ,_adbe :=d .Token ();if _adbe !=nil {return _adbe ;};switch _gefeb :=_dcccg .(type ){case _e .StartElement :switch _gefeb .Name {case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0068"}:_acagf :=NewCT_H ();if _bfge :=d .DecodeElement (_acagf ,&_gefeb );_bfge !=nil {return _bfge ;};_ccff .H =append (_ccff .H ,_acagf );default:_g .Log ("\u0073\u006b\u0069p\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0048a\u006e\u0064\u006c\u0065\u0073\u0020\u0025\u0076",_gefeb .Name );if _geecae :=d .Skip ();_geecae !=nil {return _geecae ;};};case _e .EndElement :break _baaed ;case _e .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Rules and its children
|
|
|
|
func (_fagbe *OfcCT_Rules )Validate ()error {return _fagbe .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0052\u0075\u006c\u0065\u0073");};type OfcST_ScreenSize byte ;func (_gdcgd ST_Ext )Validate ()error {return _gdcgd .ValidateWithPath ("")};func NewCT_Stroke ()*CT_Stroke {_dggdd :=&CT_Stroke {};return _dggdd };func (_aeab *AG_OfficeCoreAttributes )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_cgfe :=range start .Attr {if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_aeab .HralignAttr .UnmarshalXMLAttr (_cgfe );continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_aeab .AllowincellAttr .UnmarshalXMLAttr (_cgfe );continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="\u006f\u006e\u0065\u0064"{_aeab .OnedAttr .UnmarshalXMLAttr (_cgfe );continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_aeab .AllowoverlapAttr .UnmarshalXMLAttr (_cgfe );continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_aeab .DoubleclicknotifyAttr .UnmarshalXMLAttr (_cgfe );continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_aeab .UserdrawnAttr .UnmarshalXMLAttr (_cgfe );continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_aeab .UserhiddenAttr .UnmarshalXMLAttr (_cgfe );continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_gaag ,_fgdf :=_cgfe .Value ,error (nil );if _fgdf !=nil {return _fgdf ;};_aeab .BordertopcolorAttr =&_gaag ;continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgfe .Name .Local =="\u0068\u0072"{_aeab .HrAttr .UnmarshalXMLAttr (_cgfe );continue ;};if _cgfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_EquationXml and its children, prefixing error messages with path
|
|
|
|
func (_dbegac *OfcCT_EquationXml )ValidateWithPath (path string )error {return nil };func (_dfgab *OfcEquationxml )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0065\u0071\u0075\u0061\u0074\u0069\u006f\u006e\u0078\u006d\u006c";return _dfgab .OfcCT_EquationXml .MarshalXML (e ,start );};func (_cbcbc *OfcCT_R )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",_cbcbc .IdAttr )});if _cbcbc .TypeAttr !=OfcST_RTypeUnset {_daaf ,_fdedd :=_cbcbc .TypeAttr .MarshalXMLAttr (_e .Name {Local :"\u0074\u0079\u0070\u0065"});if _fdedd !=nil {return _fdedd ;};start .Attr =append (start .Attr ,_daaf );};if _cbcbc .HowAttr !=OfcST_HowUnset {_efaad ,_efegb :=_cbcbc .HowAttr .MarshalXMLAttr (_e .Name {Local :"\u0068\u006f\u0077"});if _efegb !=nil {return _efegb ;};start .Attr =append (start .Attr ,_efaad );};if _cbcbc .IdrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064\u0072e\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_cbcbc .IdrefAttr )});};e .EncodeToken (start );if _cbcbc .Proxy !=nil {_gffg :=_e .StartElement {Name :_e .Name {Local :"\u006f:\u0070\u0072\u006f\u0078\u0079"}};for _ ,_dadf :=range _cbcbc .Proxy {e .EncodeElement (_dadf ,_gffg );};};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_fegbb *Stroke )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_fegbb .CT_Stroke =*NewCT_Stroke ();for _ ,_cbggbb :=range start .Attr {if _cbggbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbggbb .Name .Local =="\u0072\u0065\u006ci\u0064"
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Formulas and its children
|
|
|
|
func (_afde *CT_Formulas )Validate ()error {return _afde .ValidateWithPath ("C\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};func (_acbfb *OfcExtrusion )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _acbfb .OfcCT_Extrusion .MarshalXML (e ,start );};func (_cdfdd *OfcCT_RegroupTable )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _cdfdd .ExtAttr !=ST_ExtUnset {_addfc ,_gbfe :=_cdfdd .ExtAttr .MarshalXMLAttr (_e .Name {Local :"\u0065\u0078\u0074"});if _gbfe !=nil {return _gbfe ;};start .Attr =append (start .Attr ,_addfc );};e .EncodeToken (start );if _cdfdd .Entry !=nil {_eeedc :=_e .StartElement {Name :_e .Name {Local :"\u006f:\u0065\u006e\u0074\u0072\u0079"}};for _ ,_accgd :=range _cdfdd .Entry {e .EncodeElement (_accgd ,_eeedc );};};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_fgac *AG_OfficeShapeAttributes )ValidateWithPath (path string )error {if _ggef :=_fgac .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_ggef !=nil {return _ggef ;};if _fceca :=_fgac .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fceca !=nil {return _fceca ;};if _adee :=_fgac .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_adee !=nil {return _adee ;};if _dcfg :=_fgac .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_dcfg !=nil {return _dcfg ;};if _gedc :=_fgac .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_gedc !=nil {return _gedc ;};if _cacc :=_fgac .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_cacc !=nil {return _cacc ;};if _gea :=_fgac .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_gea !=nil {return _gea ;};if _eee :=_fgac .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_eee !=nil {return _eee ;};if _ebgb :=_fgac .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_ebgb !=nil {return _ebgb ;};if _cada :=_fgac .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_cada !=nil {return _cada ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcColumn and its children
|
|
|
|
func (_cgcfe *OfcColumn )Validate ()error {return _cgcfe .ValidateWithPath ("\u004ff\u0063\u0043\u006f\u006c\u0075\u006dn");};type Polyline struct{CT_PolyLine };func (_ggeeg OfcST_Angle )String ()string {switch _ggeeg {case 0:return "";case 1:return "\u0061\u006e\u0079";case 2:return "\u0033\u0030";case 3:return "\u0034\u0035";case 4:return "\u0036\u0030";case 5:return "\u0039\u0030";case 6:return "\u0061\u0075\u0074\u006f";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_bcad *CT_Shapetype )ValidateWithPath (path string )error {for _egdbf ,_gaafa :=range _bcad .EG_ShapeElements {if _gadfd :=_gaafa .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_egdbf ));_gadfd !=nil {return _gadfd ;};};if _bcad .Complex !=nil {if _edfa :=_bcad .Complex .ValidateWithPath (path +"\u002f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");_edfa !=nil {return _edfa ;};};if _dgdfg :=_bcad .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_dgdfg !=nil {return _dgdfg ;};if _gbadd :=_bcad .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gbadd !=nil {return _gbadd ;};if _fcdeb :=_bcad .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_fcdeb !=nil {return _fcdeb ;};if _ggfdf :=_bcad .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ggfdf !=nil {return _ggfdf ;};if _cbedb :=_bcad .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_cbedb !=nil {return _cbedb ;};if _egbe :=_bcad .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_egbe !=nil {return _egbe ;};if _dbgdc :=_bcad .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_dbgdc !=nil {return _dbgdc ;};if _fdecd :=_bcad .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_fdecd !=nil {return _fdecd ;};if _fffb :=_bcad .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fffb !=nil {return _fffb ;};if _ggcfd :=_bcad .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ggcfd !=nil {return _ggcfd ;};if _gffee :=_bcad .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gffee !=nil {return _gffee ;};if _fcbd :=_bcad .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_fcbd !=nil {return _fcbd ;};if _bggbf :=_bcad .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_bggbf !=nil {return _bggbf ;};if _afeef :=_bcad .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_afeef !=nil {return _afeef ;};if _bdbcg :=_bcad .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bdbcg !=nil {return _bdbcg ;};if _egfae :=_bcad .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_egfae !=nil {return _egfae ;};if _ggfgf :=_bcad .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ggfgf !=nil {return _ggfgf ;};if _egfbf :=_bcad .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_egfbf !=nil {return _egfbf ;};if _dgebe :=_bcad .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_dgebe !=nil {return _dgebe ;};if _dbgac :=_bcad .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_dbgac !=nil {return _dbgac ;};if _cgggd :=_bcad .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_cgggd !=nil {return _cgggd ;};if _fdbed :=_bcad .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_f
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_ShapeLayout and its children
|
|
|
|
func (_bcgbg *OfcCT_ShapeLayout )Validate ()error {return _bcgbg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004ca\u0079\u006f\u0075\u0074");};func (_bgceaa *ST_StrokeJoinStyle )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_faabe ,_fbdff :=d .Token ();if _fbdff !=nil {return _fbdff ;};if _gcfff ,_gdagc :=_faabe .(_e .EndElement );_gdagc &&_gcfff .Name ==start .Name {*_bgceaa =1;return nil ;};if _eggec ,_fabcf :=_faabe .(_e .CharData );!_fabcf {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_faabe );}else {switch string (_eggec ){case "":*_bgceaa =0;case "\u0072\u006f\u0075n\u0064":*_bgceaa =1;case "\u0062\u0065\u0076e\u006c":*_bgceaa =2;case "\u006d\u0069\u0074e\u0072":*_bgceaa =3;};};_faabe ,_fbdff =d .Token ();if _fbdff !=nil {return _fbdff ;};if _gcfee ,_bcbgeb :=_faabe .(_e .EndElement );_bcbgeb &&_gcfee .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_faabe );};func (_cbaeb *OfcCT_Complex )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_fceff :=range start .Attr {if _fceff .Name .Local =="\u0065\u0078\u0074"{_cbaeb .ExtAttr .UnmarshalXMLAttr (_fceff );continue ;};};for {_gagca ,_dggeg :=d .Token ();if _dggeg !=nil {return _a .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u006fm\u0070\u006c\u0065\u0078\u003a\u0020\u0025s",_dggeg );};if _dbbe ,_cadfbc :=_gagca .(_e .EndElement );_cadfbc &&_dbbe .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_Ext and its children, prefixing error messages with path
|
|
|
|
func (_fac *AG_Ext )ValidateWithPath (path string )error {if _fac .ExtAttr ==ST_ExtUnset {return _a .Errorf ("\u0025\u0073\u002fE\u0078\u0074\u0041\u0074t\u0072\u0020\u0069\u0073\u0020\u0061\u0020m\u0061\u006e\u0064\u0061\u0074\u006f\u0072\u0079\u0020\u0066\u0069\u0065\u006c\u0064",path );};if _ddd :=_fac .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ddd !=nil {return _ddd ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Shape and its children
|
|
|
|
func (_dcgeg *Shape )Validate ()error {return _dcgeg .ValidateWithPath ("\u0053\u0068\u0061p\u0065")};type ST_StrokeLineStyle byte ;func (_bdfac OfcST_ExtrusionPlane )String ()string {switch _bdfac {case 0:return "";case 1:return "\u0058\u0059";case 2:return "\u005a\u0058";case 3:return "\u0059\u005a";};return "";};func (_eadgg *CT_RoundRect )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _eadgg .ArcsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061r\u0063\u0073\u0069\u007a\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .ArcsizeAttr )});};if _eadgg .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .HrefAttr )});};if _eadgg .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .TargetAttr )});};if _eadgg .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .ClassAttr )});};if _eadgg .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .TitleAttr )});};if _eadgg .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .AltAttr )});};if _eadgg .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .CoordsizeAttr )});};if _eadgg .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .CoordoriginAttr )});};if _eadgg .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .WrapcoordsAttr )});};if _eadgg .PrintAttr !=_bg .ST_TrueFalseUnset {_ccedf ,_bbcgc :=_eadgg .PrintAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0069n\u0074"});if _bbcgc !=nil {return _bbcgc ;};start .Attr =append (start .Attr ,_ccedf );};if _eadgg .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .IdAttr )});};if _eadgg .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .StyleAttr )});};if _eadgg .SpidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .SpidAttr )});};if _eadgg .OnedAttr !=_bg .ST_TrueFalseUnset {_daba ,_deafc :=_eadgg .OnedAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e\u0065\u0064"});if _deafc !=nil {return _deafc ;};start .Attr =append (start .Attr ,_daba );};if _eadgg .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_eadgg .RegroupidAttr )});};if _eadgg .DoubleclicknotifyAttr !=_bg .ST_TrueFalseUnset {_badea ,_fdce :=_eadgg .DoubleclicknotifyAttr .MarshalXMLAttr (_e .Name {Local :"\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"});if _fdce !=nil {return _fdce ;};start .Attr =append (start .Attr ,_badea );};if _eadgg .ButtonAttr !=_bg .ST_TrueFalseUnset {_cbfcc ,_aabaa :=_eadgg .ButtonAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u0074\u0074\u006f\u006e"});if _aabaa !=nil {return _aabaa ;};start .Attr =append (start .Attr ,_cbfcc );};if _eadgg .UserhiddenAttr !=_bg .ST_TrueFalseUnset {_ccddf ,_ffdeg :=_eadgg .UserhiddenAttr .MarshalXMLAttr (_e .Name {Local :"\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Relation and its children
|
|
|
|
func (_afaef *OfcCT_Relation )Validate ()error {return _afaef .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u006ca\u0074\u0069\u006f\u006e");};func (_fadcd *OfcCT_Rules )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _fadcd .ExtAttr !=ST_ExtUnset {_dggfd ,_eggg :=_fadcd .ExtAttr .MarshalXMLAttr (_e .Name {Local :"\u0065\u0078\u0074"});if _eggg !=nil {return _eggg ;};start .Attr =append (start .Attr ,_dggfd );};e .EncodeToken (start );if _fadcd .R !=nil {_ecbaa :=_e .StartElement {Name :_e .Name {Local :"\u006f\u003a\u0072"}};for _ ,_bdbge :=range _fadcd .R {e .EncodeElement (_bdbge ,_ecbaa );};};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_ImageData and its children
|
|
|
|
func (_bga *CT_ImageData )Validate ()error {return _bga .ValidateWithPath ("\u0043\u0054\u005fI\u006d\u0061\u0067\u0065\u0044\u0061\u0074\u0061");};type CT_Image struct{EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _bg .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _bg .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _bg .ST_TrueFalse ;ButtonAttr _bg .ST_TrueFalse ;UserhiddenAttr _bg .ST_TrueFalse ;BulletAttr _bg .ST_TrueFalse ;HrAttr _bg .ST_TrueFalse ;HrstdAttr _bg .ST_TrueFalse ;HrnoshadeAttr _bg .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _bg .ST_TrueFalse ;AllowoverlapAttr _bg .ST_TrueFalse ;UserdrawnAttr _bg .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _bg .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _bg .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _bg .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _bg .ST_TrueFalse ;OleiconAttr _bg .ST_TrueFalse ;OleAttr _bg .ST_TrueFalseBlank ;PreferrelativeAttr _bg .ST_TrueFalse ;CliptowrapAttr _bg .ST_TrueFalse ;ClipAttr _bg .ST_TrueFalse ;SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _bg .ST_TrueFalse ;BilevelAttr _bg .ST_TrueFalse ;};func (_cdbeda *OfcDiagram )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cdbeda .OfcCT_Diagram =*NewOfcCT_Diagram ();for _ ,_bbeea :=range start .Attr {if _bbeea .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_acecg ,_acgde :=_bc .ParseInt (_bbeea .Value ,10,64);if _acgde !=nil {return _acgde ;};_cdbeda .DgmstyleAttr =&_acecg ;continue ;};if _bbeea .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_cdbeda .AutoformatAttr .UnmarshalXMLAttr (_bbeea );continue ;};if _bbeea .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_cdbeda .ReverseAttr .UnmarshalXMLAttr (_bbeea );continue ;};if _bbeea .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_cdbeda .AutolayoutAttr .UnmarshalXMLAttr (_bbeea );continue ;};if _bbeea .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_eagdb ,_egda :=_bc .ParseInt (_bbeea .Value ,10,64);if _egda !=nil {return _egda ;};_cdbeda .DgmscalexAttr =&_eagdb ;continue ;};if _bbeea .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_fbbgd ,_fagec :=_bc .ParseInt (_bbeea .Value ,10,64);if _fagec !=nil {return _fagec ;};_cdbeda .DgmscaleyAttr =&_fbbgd ;continue ;};if _bbeea .Name .Local =="d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"{_bafa ,_efafc :=_bc .ParseInt (_bbeea .Value ,10,64);if _efafc !=nil {return _efafc ;};_cdbeda .DgmfontsizeAttr =&_bafa ;continue ;};if _bbeea .Name .Local =="\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"{_bagedg ,_ecea :=_bbeea .Value ,error (nil );if _ecea !=nil {return _ecea ;};_cdbeda .ConstrainboundsAttr =&_bagedg ;continue ;};if _bbeea .Name .Local =="\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"{_agcef ,_gccdg :=_bc .ParseInt (_bbeea .Value ,10,64);if _gccdg !=nil {return _gccdg ;};_cdbeda .DgmbasetextscaleAttr =&_agcef ;continue ;};if _bbeea .Name .Local =="\u0065\u0078\u0074"{_cdbeda .ExtAttr .UnmarshalXMLAttr (_bbeea );continue ;};};_fgbcf :for {_eegf ,_agaeba :=d .Token ();if _agaeba !=nil {return _agaeba ;};switch _dced :=_eegf .(type ){case _e .StartElement :switch _dced .Name {case _e .Name
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_TextPath and its children, prefixing error messages with path
|
|
|
|
func (_ecabcd *CT_TextPath )ValidateWithPath (path string )error {if _bgbeb :=_ecabcd .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_bgbeb !=nil {return _bgbeb ;};if _fefdg :=_ecabcd .FitshapeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u0074\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_fefdg !=nil {return _fefdg ;};if _accg :=_ecabcd .FitpathAttr .ValidateWithPath (path +"\u002f\u0046\u0069t\u0070\u0061\u0074\u0068\u0041\u0074\u0074\u0072");_accg !=nil {return _accg ;};if _cccgc :=_ecabcd .TrimAttr .ValidateWithPath (path +"\u002fT\u0072\u0069\u006d\u0041\u0074\u0074r");_cccgc !=nil {return _cccgc ;};if _deag :=_ecabcd .XscaleAttr .ValidateWithPath (path +"/\u0058\u0073\u0063\u0061\u006c\u0065\u0041\u0074\u0074\u0072");_deag !=nil {return _deag ;};return nil ;};func (_gaeaa *ST_StrokeArrowType )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cbeed ,_adeg :=d .Token ();if _adeg !=nil {return _adeg ;};if _dgbdd ,_bggcb :=_cbeed .(_e .EndElement );_bggcb &&_dgbdd .Name ==start .Name {*_gaeaa =1;return nil ;};if _baddc ,_cdacc :=_cbeed .(_e .CharData );!_cdacc {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_cbeed );}else {switch string (_baddc ){case "":*_gaeaa =0;case "\u006e\u006f\u006e\u0065":*_gaeaa =1;case "\u0062\u006c\u006fc\u006b":*_gaeaa =2;case "\u0063l\u0061\u0073\u0073\u0069\u0063":*_gaeaa =3;case "\u006f\u0076\u0061\u006c":*_gaeaa =4;case "\u0064i\u0061\u006d\u006f\u006e\u0064":*_gaeaa =5;case "\u006f\u0070\u0065\u006e":*_gaeaa =6;};};_cbeed ,_adeg =d .Token ();if _adeg !=nil {return _adeg ;};if _bbfee ,_efdaa :=_cbeed .(_e .EndElement );_efdaa &&_bbfee .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_cbeed );};func (_ebgfe *OfcCT_ClipPath )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_cedaae :=range start .Attr {if _cedaae .Name .Local =="\u0076"{_adgf ,_caba :=_cedaae .Value ,error (nil );if _caba !=nil {return _caba ;};_ebgfe .VAttr =_adgf ;continue ;};};for {_aagb ,_cabf :=d .Token ();if _cabf !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u004f\u0066\u0063C\u0054\u005f\u0043\u006c\u0069\u0070\u0050\u0061\u0074\u0068:\u0020\u0025\u0073",_cabf );};if _egeaf ,_dggfg :=_aagb .(_e .EndElement );_dggfg &&_egeaf .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Background and its children, prefixing error messages with path
|
|
|
|
func (_ffee *CT_Background )ValidateWithPath (path string )error {if _cgec :=_ffee .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_cgec !=nil {return _cgec ;};if _gdfed :=_ffee .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_gdfed !=nil {return _gdfed ;};if _eafc :=_ffee .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_eafc !=nil {return _eafc ;};if _cag :=_ffee .TargetscreensizeAttr .ValidateWithPath (path +"/\u0054\u0061\u0072\u0067et\u0073c\u0072\u0065\u0065\u006e\u0073i\u007a\u0065\u0041\u0074\u0074\u0072");_cag !=nil {return _cag ;};if _ffee .Fill !=nil {if _gdfede :=_ffee .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_gdfede !=nil {return _gdfede ;};};if _ccaf :=_ffee .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_ccaf !=nil {return _ccaf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_F and its children
|
|
|
|
func (_ceae *CT_F )Validate ()error {return _ceae .ValidateWithPath ("\u0043\u0054\u005f\u0046")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_RegroupTable and its children
|
|
|
|
func (_ddgfa *OfcCT_RegroupTable )Validate ()error {return _ddgfa .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0052\u0065\u0067r\u006f\u0075p\u0054\u0061\u0062\u006c\u0065");};func (_fcadgd OfcST_InsetMode )String ()string {switch _fcadgd {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};func (_dgeceb *OfcBottom )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0062\u006f\u0074\u0074\u006f\u006d";return _dgeceb .OfcCT_StrokeChild .MarshalXML (e ,start );};func (_ffbee *CT_Stroke )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _ffbee .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_ffbee .IdAttr )});};if _ffbee .OnAttr !=_bg .ST_TrueFalseUnset {_aabdd ,_cface :=_ffbee .OnAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e"});if _cface !=nil {return _cface ;};start .Attr =append (start .Attr ,_aabdd );};if _ffbee .WeightAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_ffbee .WeightAttr )});};if _ffbee .ColorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_ffbee .ColorAttr )});};if _ffbee .OpacityAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_a .Sprintf ("\u0025\u0076",*_ffbee .OpacityAttr )});};if _ffbee .LinestyleAttr !=ST_StrokeLineStyleUnset {_ffbg ,_afecf :=_ffbee .LinestyleAttr .MarshalXMLAttr (_e .Name {Local :"\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"});if _afecf !=nil {return _afecf ;};start .Attr =append (start .Attr ,_ffbg );};if _ffbee .Miterlim
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_R and its children
|
|
|
|
func (_egaeg *OfcCT_R )Validate ()error {return _egaeg .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0052");};const (OfcST_InsetModeUnset OfcST_InsetMode =0;OfcST_InsetModeAuto OfcST_InsetMode =1;OfcST_InsetModeCustom OfcST_InsetMode =2;);func NewOfcCT_ShapeDefaults ()*OfcCT_ShapeDefaults {_gfffb :=&OfcCT_ShapeDefaults {};return _gfffb };func (_fbeba *ST_StrokeJoinStyle )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_fbeba =0;case "\u0072\u006f\u0075n\u0064":*_fbeba =1;case "\u0062\u0065\u0076e\u006c":*_fbeba =2;case "\u006d\u0069\u0074e\u0072":*_fbeba =3;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Handles and its children
|
|
|
|
func (_cbbfb *CT_Handles )Validate ()error {return _cbbfb .ValidateWithPath ("\u0043\u0054\u005f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");};func (_fcaeb *ST_EditAs )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_fcaeb =0;case "\u0063\u0061\u006e\u0076\u0061\u0073":*_fcaeb =1;case "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074":*_fcaeb =2;case "\u0072\u0061\u0064\u0069\u0061\u006c":*_fcaeb =3;case "\u0063\u0079\u0063l\u0065":*_fcaeb =4;case "\u0073t\u0061\u0063\u006b\u0065\u0064":*_fcaeb =5;case "\u0076\u0065\u006e\u006e":*_fcaeb =6;case "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065":*_fcaeb =7;};return nil ;};func (_fdaac *Handles )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _fdaac .CT_Handles .MarshalXML (e ,start );};func (_afabb OfcST_ExtrusionType )ValidateWithPath (path string )error {switch _afabb {case 0,1,2:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_afabb ));};return nil ;};func (_fdbc OfcST_ConnectType )Validate ()error {return _fdbc .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Curve and its children, prefixing error messages with path
|
|
|
|
func (_cfcab *Curve )ValidateWithPath (path string )error {if _acge :=_cfcab .CT_Curve .ValidateWithPath (path );_acge !=nil {return _acge ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Extrusion and its children
|
|
|
|
func (_dbfca *OfcCT_Extrusion )Validate ()error {return _dbfca .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};func (_fbfdb ST_StrokeArrowType )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_gbcbc :=_e .Attr {};_gbcbc .Name =name ;switch _fbfdb {case ST_StrokeArrowTypeUnset :_gbcbc .Value ="";case ST_StrokeArrowTypeNone :_gbcbc .Value ="\u006e\u006f\u006e\u0065";case ST_StrokeArrowTypeBlock :_gbcbc .Value ="\u0062\u006c\u006fc\u006b";case ST_StrokeArrowTypeClassic :_gbcbc .Value ="\u0063l\u0061\u0073\u0073\u0069\u0063";case ST_StrokeArrowTypeOval :_gbcbc .Value ="\u006f\u0076\u0061\u006c";case ST_StrokeArrowTypeDiamond :_gbcbc .Value ="\u0064i\u0061\u006d\u006f\u006e\u0064";case ST_StrokeArrowTypeOpen :_gbcbc .Value ="\u006f\u0070\u0065\u006e";};return _gbcbc ,nil ;};func (_fgecf ST_FillType )Validate ()error {return _fgecf .ValidateWithPath ("")};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Formulas and its children
|
|
|
|
func (_gaec *Formulas )Validate ()error {return _gaec .ValidateWithPath ("\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};func (_aaead *OfcST_OLEDrawAspect )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_aaead =0;case "\u0043o\u006e\u0074\u0065\u006e\u0074":*_aaead =1;case "\u0049\u0063\u006f\u006e":*_aaead =2;};return nil ;};func NewCT_RoundRect ()*CT_RoundRect {_dfcbg :=&CT_RoundRect {};return _dfcbg };const (ST_StrokeArrowTypeUnset ST_StrokeArrowType =0;ST_StrokeArrowTypeNone ST_StrokeArrowType =1;ST_StrokeArrowTypeBlock ST_StrokeArrowType =2;ST_StrokeArrowTypeClassic ST_StrokeArrowType =3;ST_StrokeArrowTypeOval ST_StrokeArrowType =4;ST_StrokeArrowTypeDiamond ST_StrokeArrowType =5;ST_StrokeArrowTypeOpen ST_StrokeArrowType =6;);
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_ColorMru and its children
|
|
|
|
func (_cacab *OfcCT_ColorMru )Validate ()error {return _cacab .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006co\u0072\u004d\u0072\u0075");};func (_dfgb *CT_Rect )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _dfgb .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .HrefAttr )});};if _dfgb .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .TargetAttr )});};if _dfgb .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .ClassAttr )});};if _dfgb .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .TitleAttr )});};if _dfgb .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .AltAttr )});};if _dfgb .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .CoordsizeAttr )});};if _dfgb .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .CoordoriginAttr )});};if _dfgb .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .WrapcoordsAttr )});};if _dfgb .PrintAttr !=_bg .ST_TrueFalseUnset {_fbga ,_gdgeg :=_dfgb .PrintAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0069n\u0074"});if _gdgeg !=nil {return _gdgeg ;};start .Attr =append (start .Attr ,_fbga );};if _dfgb .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .IdAttr )});};if _dfgb .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .StyleAttr )});};if _dfgb .SpidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .SpidAttr )});};if _dfgb .OnedAttr !=_bg .ST_TrueFalseUnset {_abgaa ,_daded :=_dfgb .OnedAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e\u0065\u0064"});if _daded !=nil {return _daded ;};start .Attr =append (start .Attr ,_abgaa );};if _dfgb .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_dfgb .RegroupidAttr )});};if _dfgb .DoubleclicknotifyAttr !=_bg .ST_TrueFalseUnset {_fgabd ,_gdebcf :=_dfgb .DoubleclicknotifyAttr .MarshalXMLAttr (_e .Name {Local :"\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"});if _gdebcf !=nil {return _gdebcf ;};start .Attr =append (start .Attr ,_fgabd );};if _dfgb .ButtonAttr !=_bg .ST_TrueFalseUnset {_bgfc ,_efbee :=_dfgb .ButtonAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u0074\u0074\u006f\u006e"});if _efbee !=nil {return _efbee ;};start .Attr =append (start .Attr ,_bgfc );};if _dfgb .UserhiddenAttr !=_bg .ST_TrueFalseUnset {_dgcgf ,_dabfd :=_dfgb .UserhiddenAttr .MarshalXMLAttr (_e .Name {Local :"\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _dabfd !=nil {return _dabfd ;};start .Attr =append (start .Attr ,_dgcgf );};if _dfgb .BulletAttr !=_bg .ST_TrueFalseUnset {_cfge ,_dbgg :=_dfgb .BulletAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u006c\u006c\u0065\u0074"});if _dbgg !=nil {return _dbgg ;};start .Attr =append (start .Attr ,_cfge );};if _dfgb .HrAtt
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcRight and its children, prefixing error messages with path
|
|
|
|
func (_bdcca *OfcRight )ValidateWithPath (path string )error {if _eaadb :=_bdcca .OfcCT_StrokeChild .ValidateWithPath (path );_eaadb !=nil {return _eaadb ;};return nil ;};func NewAG_Adj ()*AG_Adj {_ea :=&AG_Adj {};return _ea };func NewCT_F ()*CT_F {_ceafg :=&CT_F {};return _ceafg };func (_eabce *CT_ImageData )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_fdebb :=range start .Attr {if _fdebb .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_fdebb .Name .Local =="\u0070\u0069\u0063\u0074"||_fdebb .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_fdebb .Name .Local =="\u0070\u0069\u0063\u0074"{_abee ,_eafbc :=_fdebb .Value ,error (nil );if _eafbc !=nil {return _eafbc ;};_eabce .PictAttr =&_abee ;continue ;};if _fdebb .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_fdebb .Name .Local =="\u0068\u0072\u0065\u0066"||_fdebb .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_fdebb .Name .Local =="\u0068\u0072\u0065\u0066"{_ddba ,_cafc :=_fdebb .Value ,error (nil );if _cafc !=nil {return _cafc ;};_eabce .RHrefAttr =&_ddba ;continue ;};if _fdebb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdebb .Name .Local =="\u0068\u0072\u0065\u0066"{_eddaf ,_ddef :=_fdebb .Value ,error (nil );if _ddef !=nil {return _ddef ;};_eabce .HrefAttr =&_eddaf ;continue ;};if _fdebb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdebb .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_fffcb ,_cggg :=_fdebb .Value ,error (nil );if _cggg !=nil {return _cggg ;};_eabce .AlthrefAttr =&_fffcb ;continue ;};if _fdebb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdebb .Name .Local =="\u0074\u0069\u0074l\u0065"{_fdaf ,_fddbd :=_fdebb .Value ,error (nil );if _fddbd !=nil {return _fddbd ;};_eabce .TitleAttr =&_fdaf ;continue ;};if _fdebb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdebb .Name .Local =="\u006f\u006c\u0065i\u0064"{_abef ,_cafdg :=_bc .ParseFloat (_fdebb .Value ,64);if _cafdg !=nil {return _cafdg ;};_ddaa :=float32 (_abef );_eabce .OleidAttr =&_ddaa ;continue ;};if _fdebb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_ageee *Shapetype )ValidateWithPath (path string )error {if _afaab :=_ageee .CT_Shapetype .ValidateWithPath (path );_afaab !=nil {return _afaab ;};return nil ;};func (_gefab OfcST_OLEUpdateMode )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_gefab .String (),start );};func (_cacda OfcST_HrAlign )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_aaageg :=_e .Attr {};_aaageg .Name =name ;switch _cacda {case OfcST_HrAlignUnset :_aaageg .Value ="";case OfcST_HrAlignLeft :_aaageg .Value ="\u006c\u0065\u0066\u0074";case OfcST_HrAlignRight :_aaageg .Value ="\u0072\u0069\u0067h\u0074";case OfcST_HrAlignCenter :_aaageg .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";};return _aaageg ,nil ;};func (_eeecfg ST_ImageAspect )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_cbbed :=_e .Attr {};_cbbed .Name =name ;switch _eeecfg {case ST_ImageAspectUnset :_cbbed .Value ="";case ST_ImageAspectIgnore :_cbbed .Value ="\u0069\u0067\u006e\u006f\u0072\u0065";case ST_ImageAspectAtMost :_cbbed .Value ="\u0061\u0074\u004d\u006f\u0073\u0074";case ST_ImageAspectAtLeast :_cbbed .Value ="\u0061t\u004c\u0065\u0061\u0073\u0074";};return _cbbed ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RelationTable and its children, prefixing error messages with path
|
|
|
|
func (_abedb *OfcCT_RelationTable )ValidateWithPath (path string )error {for _bfegf ,_gcaee :=range _abedb .Rel {if _gadb :=_gcaee .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002f\u0052\u0065\u006c\u005b\u0025\u0064\u005d",path ,_bfegf ));_gadb !=nil {return _gadb ;};};if _agddg :=_abedb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_agddg !=nil {return _agddg ;};return nil ;};func (_cdaba OfcST_HrAlign )Validate ()error {return _cdaba .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Rect and its children, prefixing error messages with path
|
|
|
|
func (_egcgd *Rect )ValidateWithPath (path string )error {if _egddg :=_egcgd .CT_Rect .ValidateWithPath (path );_egddg !=nil {return _egddg ;};return nil ;};func NewShape ()*Shape {_ffaeb :=&Shape {};_ffaeb .CT_Shape =*NewCT_Shape ();return _ffaeb };type ST_ShadowType byte ;const (OfcST_CalloutPlacementUnset OfcST_CalloutPlacement =0;OfcST_CalloutPlacementTop OfcST_CalloutPlacement =1;OfcST_CalloutPlacementCenter OfcST_CalloutPlacement =2;OfcST_CalloutPlacementBottom OfcST_CalloutPlacement =3;OfcST_CalloutPlacementUser OfcST_CalloutPlacement =4;);func NewCT_Oval ()*CT_Oval {_eedcd :=&CT_Oval {};return _eedcd };type Group struct{CT_Group };func (_bgfadc *ST_StrokeArrowWidth )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_aaccd ,_efcfa :=d .Token ();if _efcfa !=nil {return _efcfa ;};if _cacag ,_bddfg :=_aaccd .(_e .EndElement );_bddfg &&_cacag .Name ==start .Name {*_bgfadc =1;return nil ;};if _ebbdg ,_facfc :=_aaccd .(_e .CharData );!_facfc {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_aaccd );}else {switch string (_ebbdg ){case "":*_bgfadc =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_bgfadc =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_bgfadc =2;case "\u0077\u0069\u0064\u0065":*_bgfadc =3;};};_aaccd ,_efcfa =d .Token ();if _efcfa !=nil {return _efcfa ;};if _egcge ,_agcbc :=_aaccd .(_e .EndElement );_agcbc &&_egcge .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_aaccd );};func (_cggc *OfcST_CalloutPlacement )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cgfbe ,_bdfef :=d .Token ();if _bdfef !=nil {return _bdfef ;};if _cbgbc ,_gecff :=_cgfbe .(_e .EndElement );_gecff &&_cbgbc .Name ==start .Name {*_cggc =1;return nil ;};if _dcfaf ,_cgbd :=_cgfbe .(_e .CharData );!_cgbd {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_cgfbe );}else {switch string (_dcfaf ){case "":*_cggc =0;case "\u0074\u006f\u0070":*_cggc =1;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_cggc =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_cggc =3;case "\u0075\u0073\u0065\u0072":*_cggc =4;};};_cgfbe ,_bdfef =d .Token ();if _bdfef !=nil {return _bdfef ;};if _decc ,_gcffe :=_cgfbe .(_e .EndElement );_gcffe &&_decc .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_cgfbe );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_ImageAttributes and its children, prefixing error messages with path
|
|
|
|
func (_fbd *AG_ImageAttributes )ValidateWithPath (path string )error {if _facd :=_fbd .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_facd !=nil {return _facd ;};if _dea :=_fbd .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_dea !=nil {return _dea ;};return nil ;};func (_dgbda ST_StrokeArrowLength )ValidateWithPath (path string )error {switch _dgbda {case 0,1,2,3:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dgbda ));};return nil ;};func (_ecgf *AG_CoreAttributes )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_gag :=range start .Attr {if _gag .Name .Local =="\u0068\u0072\u0065\u0066"{_cgeg ,_dba :=_gag .Value ,error (nil );if _dba !=nil {return _dba ;};_ecgf .HrefAttr =&_cgeg ;continue ;};if _gag .Name .Local =="\u0074\u0061\u0072\u0067\u0065\u0074"{_efe ,_ddc :=_gag .Value ,error (nil );if _ddc !=nil {return _ddc ;};_ecgf .TargetAttr =&_efe ;continue ;};if _gag .Name .Local =="\u0063\u006c\u0061s\u0073"{_afbf ,_ecgd :=_gag .Value ,error (nil );if _ecgd !=nil {return _ecgd ;};_ecgf .ClassAttr =&_afbf ;continue ;};if _gag .Name .Local =="\u0074\u0069\u0074l\u0065"{_aff ,_gef :=_gag .Value ,error (nil );if _gef !=nil {return _gef ;};_ecgf .TitleAttr =&_aff ;continue ;};if _gag .Name .Local =="\u0061\u006c\u0074"{_bbg ,_cgf :=_gag .Value ,error (nil );if _cgf !=nil {return _cgf ;};_ecgf .AltAttr =&_bbg ;continue ;};if _gag .Name .Local =="\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"{_ecf ,_cad :=_gag .Value ,error (nil );if _cad !=nil {return _cad ;};_ecgf .CoordsizeAttr =&_ecf ;continue ;};if _gag .Name .Local =="c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"{_ege ,_ggc :=_gag .Value ,error (nil );if _ggc !=nil {return _ggc ;};_ecgf .CoordoriginAttr =&_ege ;continue ;};if _gag .Name .Local =="\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"{_acd ,_dab :=_gag .Value ,error (nil );if _dab !=nil {return _dab ;};_ecgf .WrapcoordsAttr =&_acd ;continue ;};if _gag .Name .Local =="\u0070\u0072\u0069n\u0074"{_ecgf .PrintAttr .UnmarshalXMLAttr (_gag );continue ;};if _gag .Name .Local =="\u0069\u0064"{_cegc ,_gbgg :=_gag .Value ,error (nil );if _gbgg !=nil {return _gbgg ;};_ecgf .IdAttr =&_cegc ;continue ;};if _gag .Name .Local =="\u0073\u0074\u0079l\u0065"{_geg ,_fegd :=_gag .Value ,error (nil );if _fegd !=nil {return _fegd ;};_ecgf .StyleAttr =&_geg ;continue ;};};for {_bfdg ,_acdd :=d .Token ();if _acdd !=nil {return _a .Errorf ("\u0070\u0061r\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005f\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073: \u0025\u0073",_acdd );};if _ecb ,_fbg :=_bfdg .(_e .EndElement );_fbg &&_ecb .Name ==start .Name {break ;};};return nil ;};func (_gcdc *CT_Image )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_dgagf :=range start .Attr {if _dgagf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dgagf .Name .Local =="d\u0067\u006d\u006e\u006f\u0064\u0065\u006b\u0069\u006e\u0064"{_gbbg ,_ccaged :=_bc .ParseInt (_dgagf .Value ,10,64);if _ccaged !=nil {return _ccaged ;};_gcdc .DgmnodekindAttr =&_gbbg ;continue ;};if _dgagf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dgagf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gcdc .BulletAttr .UnmarshalXMLAttr (_dgagf );continue ;};if _dgagf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_OLEObject and its children, prefixing error messages with path
|
|
|
|
func (_fgadg *OfcCT_OLEObject )ValidateWithPath (path string )error {if _ggdefa :=_fgadg .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_ggdefa !=nil {return _ggdefa ;};if _aeffe :=_fgadg .DrawAspectAttr .ValidateWithPath (path +"\u002fD\u0072a\u0077\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_aeffe !=nil {return _aeffe ;};if _gabagd :=_fgadg .UpdateModeAttr .ValidateWithPath (path +"\u002fU\u0070d\u0061\u0074\u0065\u004d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_gabagd !=nil {return _gabagd ;};if _cfcec :=_fgadg .LockedField .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064");_cfcec !=nil {return _cfcec ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Fill and its children, prefixing error messages with path
|
|
|
|
func (_dfdfb *Fill )ValidateWithPath (path string )error {if _gdcd :=_dfdfb .CT_Fill .ValidateWithPath (path );_gdcd !=nil {return _gdcd ;};return nil ;};func (_cebab ST_EditAs )Validate ()error {return _cebab .ValidateWithPath ("")};func NewOfcRight ()*OfcRight {_eaffa :=&OfcRight {};_eaffa .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _eaffa ;};func (_adba *OfcST_ExtrusionRender )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_adba =0;case "\u0073\u006f\u006ci\u0064":*_adba =1;case "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de":*_adba =2;case "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065":*_adba =3;};return nil ;};func (_efadbb *OfcST_InsetMode )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_afgad ,_gfbc :=d .Token ();if _gfbc !=nil {return _gfbc ;};if _fdcgc ,_fcefcb :=_afgad .(_e .EndElement );_fcefcb &&_fdcgc .Name ==start .Name {*_efadbb =1;return nil ;};if _aacaf ,_gddcf :=_afgad .(_e .CharData );!_gddcf {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_afgad );}else {switch string (_aacaf ){case "":*_efadbb =0;case "\u0061\u0075\u0074\u006f":*_efadbb =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_efadbb =2;};};_afgad ,_gfbc =d .Token ();if _gfbc !=nil {return _gfbc ;};if _ddgdbb ,_fcecec :=_afgad .(_e .EndElement );_fcecec &&_ddgdbb .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_afgad );};func (_cdcb *CT_Curve )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _cdcb .FromAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .FromAttr )});};if _cdcb .Control1Attr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006f\u006e\u0074\u0072\u006f\u006c\u0031"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .Control1Attr )});};if _cdcb .Control2Attr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006f\u006e\u0074\u0072\u006f\u006c\u0032"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .Control2Attr )});};if _cdcb .ToAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u006f"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .ToAttr )});};if _cdcb .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .HrefAttr )});};if _cdcb .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .TargetAttr )});};if _cdcb .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .ClassAttr )});};if _cdcb .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .TitleAttr )});};if _cdcb .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .AltAttr )});};if _cdcb .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .CoordsizeAttr )});};if _cdcb .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .CoordoriginAttr )});};if _cdcb .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_cdcb .WrapcoordsAttr )});};if _cdcb
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_Style and its children
|
|
|
|
func (_ecga *AG_Style )Validate ()error {return _ecga .ValidateWithPath ("\u0041\u0047\u005f\u0053\u0074\u0079\u006c\u0065");};func (_gfcfaa OfcST_BWMode )String ()string {switch _gfcfaa {case 0:return "";case 1:return "\u0063\u006f\u006co\u0072";case 2:return "\u0061\u0075\u0074\u006f";case 3:return "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce";case 4:return "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065";case 5:return "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079";case 6:return "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065";case 7:return "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074";case 8:return "\u0062\u006c\u0061c\u006b";case 9:return "\u0077\u0068\u0069t\u0065";case 10:return "\u0068\u0069\u0064\u0065";case 11:return "\u0075n\u0064\u0072\u0061\u0077\u006e";case 12:return "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcComplex and its children, prefixing error messages with path
|
|
|
|
func (_dbddbb *OfcComplex )ValidateWithPath (path string )error {if _afbbf :=_dbddbb .OfcCT_Complex .ValidateWithPath (path );_afbbf !=nil {return _afbbf ;};return nil ;};type OfcInk struct{OfcCT_Ink };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Oval and its children, prefixing error messages with path
|
|
|
|
func (_feafg *CT_Oval )ValidateWithPath (path string )error {for _dfbb ,_fcefg :=range _feafg .EG_ShapeElements {if _agbaa :=_fcefg .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_dfbb ));_agbaa !=nil {return _agbaa ;};};if _bgdeg :=_feafg .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_bgdeg !=nil {return _bgdeg ;};if _aeadd :=_feafg .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_aeadd !=nil {return _aeadd ;};if _gage :=_feafg .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_gage !=nil {return _gage ;};if _cgfde :=_feafg .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cgfde !=nil {return _cgfde ;};if _dcea :=_feafg .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_dcea !=nil {return _dcea ;};if _aegf :=_feafg .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_aegf !=nil {return _aegf ;};if _fbee :=_feafg .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_fbee !=nil {return _fbee ;};if _aebcc :=_feafg .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_aebcc !=nil {return _aebcc ;};if _cgff :=_feafg .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cgff !=nil {return _cgff ;};if _cedba :=_feafg .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_cedba !=nil {return _cedba ;};if _fffcc :=_feafg .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_fffcc !=nil {return _fffcc ;};if _dfcda :=_feafg .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_dfcda !=nil {return _dfcda ;};if _fbcce :=_feafg .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fbcce !=nil {return _fbcce ;};if _acfeb :=_feafg .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_acfeb !=nil {return _acfeb ;};if _gaab :=_feafg .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_gaab !=nil {return _gaab ;};if _ggcad :=_feafg .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_ggcad !=nil {return _ggcad ;};if _dfeff :=_feafg .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_dfeff !=nil {return _dfeff ;};if _feab :=_feafg .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_feab !=nil {return _feab ;};if _bada :=_feafg .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bada !=nil {return _bada ;};if _dgaeb :=_feafg .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_dgaeb !=nil {return _dgaeb ;};if _fbfcf :=_feafg .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fbfcf !=nil {return _fbfcf ;};if _dggf :=_feafg .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_dggf !=nil {return _dggf ;};if _agdd :=_feafg .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcEquationxml and its children, prefixing error messages with path
|
|
|
|
func (_fdedc *OfcEquationxml )ValidateWithPath (path string )error {if _abggb :=_fdedc .OfcCT_EquationXml .ValidateWithPath (path );_abggb !=nil {return _abggb ;};return nil ;};func (_fcaac OfcST_ConnectorType )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_fcaac .String (),start );};func (_ebded *OfcFill )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0066\u0069\u006c\u006c";return _ebded .OfcCT_Fill .MarshalXML (e ,start );};type AG_AllCoreAttributes struct{HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _bg .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _bg .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _bg .ST_TrueFalse ;ButtonAttr _bg .ST_TrueFalse ;UserhiddenAttr _bg .ST_TrueFalse ;BulletAttr _bg .ST_TrueFalse ;HrAttr _bg .ST_TrueFalse ;HrstdAttr _bg .ST_TrueFalse ;HrnoshadeAttr _bg .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _bg .ST_TrueFalse ;AllowoverlapAttr _bg .ST_TrueFalse ;UserdrawnAttr _bg .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;};func NewOfcCT_ColorMru ()*OfcCT_ColorMru {_deadd :=&OfcCT_ColorMru {};return _deadd };func NewCT_Formulas ()*CT_Formulas {_cbged :=&CT_Formulas {};return _cbged };func (_edcef OfcST_ConnectorType )Validate ()error {return _edcef .ValidateWithPath ("")};func (_gcfffe OfcST_ExtrusionType )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_gcfffe .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_Fill and its children, prefixing error messages with path
|
|
|
|
func (_ebb *AG_Fill )ValidateWithPath (path string )error {if _ccee :=_ebb .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_ccee !=nil {return _ccee ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcLeft and its children, prefixing error messages with path
|
|
|
|
func (_edege *OfcLeft )ValidateWithPath (path string )error {if _ddeba :=_edege .OfcCT_StrokeChild .ValidateWithPath (path );_ddeba !=nil {return _ddeba ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-01-04 16:11:39 +00:00
|
|
|
// Validate validates the OfcShapelayout and its children
|
2021-03-16 20:51:18 +00:00
|
|
|
func (_febed *OfcShapelayout )Validate ()error {return _febed .ValidateWithPath ("\u004f\u0066\u0063\u0053\u0068\u0061\u0070\u0065\u006ca\u0079\u006f\u0075\u0074");};func (_fedgb OfcST_FillType )Validate ()error {return _fedgb .ValidateWithPath ("")};func (_fcbed *OfcCT_Fill )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_gafeg :=range start .Attr {if _gafeg .Name .Local =="\u0074\u0079\u0070\u0065"{_fcbed .TypeAttr .UnmarshalXMLAttr (_gafeg );continue ;};if _gafeg .Name .Local =="\u0065\u0078\u0074"{_fcbed .ExtAttr .UnmarshalXMLAttr (_gafeg );continue ;};};for {_cfgdb ,_gbacc :=d .Token ();if _gbacc !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0046\u0069\u006c\u006c\u003a\u0020%\u0073",_gbacc );};if _gdbec ,_ggbgf :=_cfgdb .(_e .EndElement );_ggbgf &&_gdbec .Name ==start .Name {break ;};};return nil ;};func (_affde OfcST_CalloutPlacement )String ()string {switch _affde {case 0:return "";case 1:return "\u0074\u006f\u0070";case 2:return "\u0063\u0065\u006e\u0074\u0065\u0072";case 3:return "\u0062\u006f\u0074\u0074\u006f\u006d";case 4:return "\u0075\u0073\u0065\u0072";};return "";};func (_adbee ST_FillType )ValidateWithPath (path string )error {switch _adbee {case 0,1,2,3,4,5,6:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_adbee ));};return nil ;};func (_egceb OfcST_HrAlign )ValidateWithPath (path string )error {switch _egceb {case 0,1,2,3:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_egceb ));};return nil ;};func (_baegfa *OfcColumn )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0063\u006f\u006c\u0075\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcDiagram and its children, prefixing error messages with path
|
|
|
|
func (_gbfbf *OfcDiagram )ValidateWithPath (path string )error {if _ddcgfe :=_gbfbf .OfcCT_Diagram .ValidateWithPath (path );_ddcgfe !=nil {return _ddcgfe ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcOLEObject and its children, prefixing error messages with path
|
|
|
|
func (_acdag *OfcOLEObject )ValidateWithPath (path string )error {if _eacbgb :=_acdag .OfcCT_OLEObject .ValidateWithPath (path );_eacbgb !=nil {return _eacbgb ;};return nil ;};func (_bcgb *CT_Handles )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {e .EncodeToken (start );if _bcgb .H !=nil {_ggaac :=_e .StartElement {Name :_e .Name {Local :"\u0076\u003a\u0068"}};for _ ,_dbfcf :=range _bcgb .H {e .EncodeElement (_dbfcf ,_ggaac );};};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_bcba *CT_Background )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _bcba .BwmodeAttr !=OfcST_BWModeUnset {_efab ,_ebbbc :=_bcba .BwmodeAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u006d\u006f\u0064\u0065"});if _ebbbc !=nil {return _ebbbc ;};start .Attr =append (start .Attr ,_efab );};if _bcba .BwpureAttr !=OfcST_BWModeUnset {_dbfe ,_eddf :=_bcba .BwpureAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u0070\u0075\u0072\u0065"});if _eddf !=nil {return _eddf ;};start .Attr =append (start .Attr ,_dbfe );};if _bcba .BwnormalAttr !=OfcST_BWModeUnset {_fcae ,_ggbg :=_bcba .BwnormalAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _ggbg !=nil {return _ggbg ;};start .Attr =append (start .Attr ,_fcae );};if _bcba .TargetscreensizeAttr !=OfcST_ScreenSizeUnset {_gbe ,_bbcaf :=_bcba .TargetscreensizeAttr .MarshalXMLAttr (_e .Name {Local :"\u0074\u0061r\u0067\u0065\u0074s\u0063\u0072\u0065\u0065\u006e\u0073\u0069\u007a\u0065"});if _bbcaf !=nil {return _bbcaf ;};start .Attr =append (start .Attr ,_gbe );};if _bcba .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_bcba .IdAttr )});};if _bcba .FilledAttr !=_bg .ST_TrueFalseUnset {_fgc ,_cdbd :=_bcba .FilledAttr .MarshalXMLAttr (_e .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _cdbd !=nil {return _cdbd ;};start .Attr =append (start .Attr ,_fgc );};if _bcba .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_a .Sprintf ("\u0025\u0076",*_bcba .FillcolorAttr )});};e .EncodeToken (start );if _bcba .Fill !=nil {_aafe :=_e .StartElement {Name :_e .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_bcba .Fill ,_aafe );};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Extrusion and its children, prefixing error messages with path
|
|
|
|
func (_aeeae *OfcCT_Extrusion )ValidateWithPath (path string )error {if _dgcgdg :=_aeeae .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_dgcgdg !=nil {return _dgcgdg ;};if _bdcef :=_aeeae .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_bdcef !=nil {return _bdcef ;};if _cggbeb :=_aeeae .RenderAttr .ValidateWithPath (path +"/\u0052\u0065\u006e\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_cggbeb !=nil {return _cggbeb ;};if _bfdfe :=_aeeae .PlaneAttr .ValidateWithPath (path +"\u002f\u0050\u006c\u0061\u006e\u0065\u0041\u0074\u0074\u0072");_bfdfe !=nil {return _bfdfe ;};if _dfdbd :=_aeeae .LockrotationcenterAttr .ValidateWithPath (path +"\u002f\u004c\u006fck\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_dfdbd !=nil {return _dfdbd ;};if _acgc :=_aeeae .AutorotationcenterAttr .ValidateWithPath (path +"\u002f\u0041\u0075to\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_acgc !=nil {return _acgc ;};if _gagdcf :=_aeeae .ColormodeAttr .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gagdcf !=nil {return _gagdcf ;};if _dcbbe :=_aeeae .MetalAttr .ValidateWithPath (path +"\u002f\u004d\u0065\u0074\u0061\u006c\u0041\u0074\u0074\u0072");_dcbbe !=nil {return _dcbbe ;};if _bddgb :=_aeeae .LightfaceAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u0067\u0068\u0074\u0066\u0061\u0063e\u0041\u0074\u0074\u0072");_bddgb !=nil {return _bddgb ;};if _eagef :=_aeeae .LightharshAttr .ValidateWithPath (path +"\u002fL\u0069g\u0068\u0074\u0068\u0061\u0072\u0073\u0068\u0041\u0074\u0074\u0072");_eagef !=nil {return _eagef ;};if _edccde :=_aeeae .Lightharsh2Attr .ValidateWithPath (path +"\u002f\u004ci\u0067\u0068\u0074h\u0061\u0072\u0073\u0068\u0032\u0041\u0074\u0074\u0072");_edccde !=nil {return _edccde ;};if _bbcfg :=_aeeae .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bbcfg !=nil {return _bbcfg ;};return nil ;};func (_fcdea *OfcCT_Entry )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _fcdea .NewAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006e\u0065\u0077"},Value :_a .Sprintf ("\u0025\u0076",*_fcdea .NewAttr )});};if _fcdea .OldAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u006c\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_fcdea .OldAttr )});};e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func NewOfcCT_Ink ()*OfcCT_Ink {_ddcfc :=&OfcCT_Ink {};return _ddcfc };type CT_Shapetype struct{MasterAttr *string ;EG_ShapeElements []*EG_ShapeElements ;Complex *OfcComplex ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _bg .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _bg .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _bg .ST_TrueFalse ;ButtonAttr _bg .ST_TrueFalse ;UserhiddenAttr _bg .ST_TrueFalse ;BulletAttr _bg .ST_TrueFalse ;HrAttr _bg .ST_TrueFalse ;HrstdAttr _bg .ST_TrueFalse ;HrnoshadeAttr _bg .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _bg .ST_TrueFalse ;AllowoverlapAttr _bg .ST_TrueFalse ;UserdrawnAttr _bg .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _bg .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _bg .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _bg .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _bg .ST_TrueFalse ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Rect and its children, prefixing error messages with path
|
|
|
|
func (_dcfd *CT_Rect )ValidateWithPath (path string )error {for _gdfbc ,_bcdeg :=range _dcfd .EG_ShapeElements {if _dcgc :=_bcdeg .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_gdfbc ));_dcgc !=nil {return _dcgc ;};};if _fgagf :=_dcfd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fgagf !=nil {return _fgagf ;};if _cegfe :=_dcfd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_cegfe !=nil {return _cegfe ;};if _ffdb :=_dcfd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_ffdb !=nil {return _ffdb ;};if _eaceec :=_dcfd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_eaceec !=nil {return _eaceec ;};if _bcaa :=_dcfd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bcaa !=nil {return _bcaa ;};if _fafae :=_dcfd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_fafae !=nil {return _fafae ;};if _dcfdd :=_dcfd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_dcfdd !=nil {return _dcfdd ;};if _dfage :=_dcfd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_dfage !=nil {return _dfage ;};if _cggd :=_dcfd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cggd !=nil {return _cggd ;};if _fbgda :=_dcfd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fbgda !=nil {return _fbgda ;};if _ccaee :=_dcfd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_ccaee !=nil {return _ccaee ;};if _bacce :=_dcfd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bacce !=nil {return _bacce ;};if _eaed :=_dcfd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_eaed !=nil {return _eaed ;};if _fbfde :=_dcfd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_fbfde !=nil {return _fbfde ;};if _eabd :=_dcfd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_eabd !=nil {return _eabd ;};if _cdeg :=_dcfd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cdeg !=nil {return _cdeg ;};if _bged :=_dcfd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bged !=nil {return _bged ;};if _cgdbd :=_dcfd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_cgdbd !=nil {return _cgdbd ;};if _dgee :=_dcfd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_dgee !=nil {return _dgee ;};if _bgag :=_dcfd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_bgag !=nil {return _bgag ;};if _ecgef :=_dcfd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ecgef !=nil {return _ecgef ;};if _ceged :=_dcfd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ceged !=nil {return _ceged ;};if _eeece :=_dcfd .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_eeece !=nil {
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Formulas and its children, prefixing error messages with path
|
|
|
|
func (_dbag *CT_Formulas )ValidateWithPath (path string )error {for _agcb ,_fbbg :=range _dbag .F {if _ggfdc :=_fbbg .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002f\u0046\u005b\u0025\u0064\u005d",path ,_agcb ));_ggfdc !=nil {return _ggfdc ;};};return nil ;};func (_aefgbc *OfcST_Angle )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_aefgbc =0;case "\u0061\u006e\u0079":*_aefgbc =1;case "\u0033\u0030":*_aefgbc =2;case "\u0034\u0035":*_aefgbc =3;case "\u0036\u0030":*_aefgbc =4;case "\u0039\u0030":*_aefgbc =5;case "\u0061\u0075\u0074\u006f":*_aefgbc =6;};return nil ;};func (_cffbc *OfcShapedefaults )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cffbc .OfcCT_ShapeDefaults =*NewOfcCT_ShapeDefaults ();for _ ,_bebeb :=range start .Attr {if _bebeb .Name .Local =="\u0073p\u0069\u0064\u006d\u0061\u0078"{_edbag ,_gaegea :=_bc .ParseInt (_bebeb .Value ,10,64);if _gaegea !=nil {return _gaegea ;};_cffbc .SpidmaxAttr =&_edbag ;continue ;};if _bebeb .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_cffbc .AllowincellAttr .UnmarshalXMLAttr (_bebeb );continue ;};if _bebeb .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_bceaea ,_gdcbf :=_bebeb .Value ,error (nil );if _gdcbf !=nil {return _gdcbf ;};_cffbc .StrokecolorAttr =&_bceaea ;continue ;};if _bebeb .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065"{_cffbc .StrokeAttr .UnmarshalXMLAttr (_bebeb );continue ;};if _bebeb .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_fcbfed ,_gacaea :=_bebeb .Value ,error (nil );if _gacaea !=nil {return _gacaea ;};_cffbc .FillcolorAttr =&_fcbfed ;continue ;};if _bebeb .Name .Local =="\u0066\u0069\u006c\u006c"{_cffbc .FillAttr .UnmarshalXMLAttr (_bebeb );continue ;};if _bebeb .Name .Local =="\u0073\u0074\u0079l\u0065"{_befe ,_cebag :=_bebeb .Value ,error (nil );if _cebag !=nil {return _cebag ;};_cffbc .StyleAttr =&_befe ;continue ;};if _bebeb .Name .Local =="\u0065\u0078\u0074"{_cffbc .ExtAttr .UnmarshalXMLAttr (_bebeb );continue ;};};_aedagc :for {_ffdae ,_gaebf :=d .Token ();if _gaebf !=nil {return _gaebf ;};switch _ggbdgag :=_ffdae .(type ){case _e .StartElement :switch _ggbdgag .Name {case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_cffbc .Fill =NewFill ();if _ggag :=d .DecodeElement (_cffbc .Fill ,&_ggbdgag );_ggag !=nil {return _ggag ;};case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0074\u0072\u006f\u006b\u0065"}:_cffbc .Stroke =NewStroke ();if _cfecbd :=d .DecodeElement (_cffbc .Stroke ,&_ggbdgag );_cfecbd !=nil {return _cfecbd ;};case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0074e\u0078\u0074\u0062\u006f\u0078"}:_cffbc .Textbox =NewTextbox ();if _gabcd :=d .DecodeElement (_cffbc .Textbox ,&_ggbdgag );_gabcd !=nil {return _gabcd ;};case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0068\u0061\u0064\u006f\u0077"}:_cffbc .Shadow =NewShadow ();if _fdaef :=d .DecodeElement (_cffbc .Shadow ,&_ggbdgag );_fdaef !=nil {return _fdaef ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0073\u006b\u0065\u0077"}:_cffbc .Skew =NewOfcSkew ();if _cdeff :=d .DecodeElement (_cffbc .Skew ,&_ggbdgag );_cdeff !=nil {return _cdeff ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Ink and its children
|
|
|
|
func (_adbca *OfcCT_Ink )Validate ()error {return _adbca .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0049\u006ek");};func (_efgga *Roundrect )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_efgga .CT_RoundRect =*NewCT_RoundRect ();for _ ,_aabbcb :=range start .Attr {if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_efgga .UserdrawnAttr .UnmarshalXMLAttr (_aabbcb );continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_dafbb ,_gdffe :=_aabbcb .Value ,error (nil );if _gdffe !=nil {return _gdffe ;};_efgga .BordertopcolorAttr =&_dafbb ;continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_efgga .UserhiddenAttr .UnmarshalXMLAttr (_aabbcb );continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_efgga .BulletAttr .UnmarshalXMLAttr (_aabbcb );continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_efgga .CliptowrapAttr .UnmarshalXMLAttr (_aabbcb );continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0068\u0072"{_efgga .HrAttr .UnmarshalXMLAttr (_aabbcb );continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u006f\u006c\u0065"{_efgga .OleAttr .UnmarshalXMLAttr (_aabbcb );continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0068\u0072\u0073t\u0064"{_efgga .HrstdAttr .UnmarshalXMLAttr (_aabbcb );continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0073\u0070\u0069\u0064"{_gdacbb ,_ebccg :=_aabbcb .Value ,error (nil );if _ebccg !=nil {return _ebccg ;};_efgga .SpidAttr =&_gdacbb ;continue ;};if _aabbcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabbcb .Name .Local =="\u0068r\u006e\u006f\u0073\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Shape and its children, prefixing error messages with path
|
|
|
|
func (_gggddf *Shape )ValidateWithPath (path string )error {if _fgffc :=_gggddf .CT_Shape .ValidateWithPath (path );_fgffc !=nil {return _fgffc ;};return nil ;};func (_dbcbe OfcST_OLEUpdateMode )Validate ()error {return _dbcbe .ValidateWithPath ("")};func (_babgd *OfcCT_Lock )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _babgd .PositionAttr !=_bg .ST_TrueFalseUnset {_cggffc ,_cfddb :=_babgd .PositionAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"});if _cfddb !=nil {return _cfddb ;};start .Attr =append (start .Attr ,_cggffc );};if _babgd .SelectionAttr !=_bg .ST_TrueFalseUnset {_gceaf ,_aceeg :=_babgd .SelectionAttr .MarshalXMLAttr (_e .Name {Local :"\u0073e\u006c\u0065\u0063\u0074\u0069\u006fn"});if _aceeg !=nil {return _aceeg ;};start .Attr =append (start .Attr ,_gceaf );};if _babgd .GroupingAttr !=_bg .ST_TrueFalseUnset {_gafff ,_bfbacg :=_babgd .GroupingAttr .MarshalXMLAttr (_e .Name {Local :"\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"});if _bfbacg !=nil {return _bfbacg ;};start .Attr =append (start .Attr ,_gafff );};if _babgd .UngroupingAttr !=_bg .ST_TrueFalseUnset {_dbacec ,_cadg :=_babgd .UngroupingAttr .MarshalXMLAttr (_e .Name {Local :"\u0075\u006e\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"});if _cadg !=nil {return _cadg ;};start .Attr =append (start .Attr ,_dbacec );};if _babgd .RotationAttr !=_bg .ST_TrueFalseUnset {_edecg ,_aceebb :=_babgd .RotationAttr .MarshalXMLAttr (_e .Name {Local :"\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e"});if _aceebb !=nil {return _aceebb ;};start .Attr =append (start .Attr ,_edecg );};if _babgd .CroppingAttr !=_bg .ST_TrueFalseUnset {_bfagb ,_gecbf :=_babgd .CroppingAttr .MarshalXMLAttr (_e .Name {Local :"\u0063\u0072\u006f\u0070\u0070\u0069\u006e\u0067"});if _gecbf !=nil {return _gecbf ;};start .Attr =append (start .Attr ,_bfagb );};if _babgd .VerticiesAttr !=_bg .ST_TrueFalseUnset {_gdefe ,_ffgbbe :=_babgd .VerticiesAttr .MarshalXMLAttr (_e .Name {Local :"\u0076e\u0072\u0074\u0069\u0063\u0069\u0065s"});if _ffgbbe !=nil {return _ffgbbe ;};start .Attr =append (start .Attr ,_gdefe );};if _babgd .AdjusthandlesAttr !=_bg .ST_TrueFalseUnset {_ccebf ,_acebd :=_babgd .AdjusthandlesAttr .MarshalXMLAttr (_e .Name {Local :"\u0061\u0064\u006a\u0075\u0073\u0074\u0068\u0061\u006e\u0064\u006c\u0065\u0073"});if _acebd !=nil {return _acebd ;};start .Attr =append (start .Attr ,_ccebf );};if _babgd .TextAttr !=_bg .ST_TrueFalseUnset {_fecc ,_bbccg :=_babgd .TextAttr .MarshalXMLAttr (_e .Name {Local :"\u0074\u0065\u0078\u0074"});if _bbccg !=nil {return _bbccg ;};start .Attr =append (start .Attr ,_fecc );};if _babgd .AspectratioAttr !=_bg .ST_TrueFalseUnset {_gbdgd ,_cfag :=_babgd .AspectratioAttr .MarshalXMLAttr (_e .Name {Local :"a\u0073\u0070\u0065\u0063\u0074\u0072\u0061\u0074\u0069\u006f"});if _cfag !=nil {return _cfag ;};start .Attr =append (start .Attr ,_gbdgd );};if _babgd .ShapetypeAttr !=_bg .ST_TrueFalseUnset {_fdee ,_cgbfgf :=_babgd .ShapetypeAttr .MarshalXMLAttr (_e .Name {Local :"\u0073h\u0061\u0070\u0065\u0074\u0079\u0070e"});if _cgbfgf !=nil {return _cgbfgf ;};start .Attr =append (start .Attr ,_fdee );};if _babgd .ExtAttr !=ST_ExtUnset {_gacba ,_cbbg :=_babgd .ExtAttr .MarshalXMLAttr (_e .Name {Local :"\u0065\u0078\u0074"});if _cbbg !=nil {return _cbbg ;};start .Attr =append (start .Attr ,_gacba );};e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_bggbg *CT_RoundRect )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_fccde :=range start .Attr {if _fccde .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fccde .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_bggbg .UserdrawnAttr .UnmarshalXMLAttr (_fccde );continue ;};if _fccde .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Skew and its children, prefixing error messages with path
|
|
|
|
func (_bfbaf *OfcCT_Skew )ValidateWithPath (path string )error {if _fecge :=_bfbaf .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_fecge !=nil {return _fecge ;};if _gdacb :=_bfbaf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gdacb !=nil {return _gdacb ;};return nil ;};func (_caace ST_ShadowType )Validate ()error {return _caace .ValidateWithPath ("")};func (_gaedeg OfcST_OLEType )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_fcbfb :=_e .Attr {};_fcbfb .Name =name ;switch _gaedeg {case OfcST_OLETypeUnset :_fcbfb .Value ="";case OfcST_OLETypeEmbed :_fcbfb .Value ="\u0045\u006d\u0062e\u0064";case OfcST_OLETypeLink :_fcbfb .Value ="\u004c\u0069\u006e\u006b";};return _fcbfb ,nil ;};const (OfcST_ConnectorTypeUnset OfcST_ConnectorType =0;OfcST_ConnectorTypeNone OfcST_ConnectorType =1;OfcST_ConnectorTypeStraight OfcST_ConnectorType =2;OfcST_ConnectorTypeElbow OfcST_ConnectorType =3;OfcST_ConnectorTypeCurved OfcST_ConnectorType =4;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Shadow and its children, prefixing error messages with path
|
|
|
|
func (_cefagb *Shadow )ValidateWithPath (path string )error {if _dfgac :=_cefagb .CT_Shadow .ValidateWithPath (path );_dfgac !=nil {return _dfgac ;};return nil ;};type OfcCT_SignatureLine struct{IssignaturelineAttr _bg .ST_TrueFalse ;IdAttr *string ;ProvidAttr *string ;SigninginstructionssetAttr _bg .ST_TrueFalse ;AllowcommentsAttr _bg .ST_TrueFalse ;ShowsigndateAttr _bg .ST_TrueFalse ;SuggestedsignerAttr *string ;Suggestedsigner2Attr *string ;SuggestedsigneremailAttr *string ;SigninginstructionsAttr *string ;AddlxmlAttr *string ;SigprovurlAttr *string ;ExtAttr ST_Ext ;};func (_acgg *CT_Oval )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _acgg .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .HrefAttr )});};if _acgg .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .TargetAttr )});};if _acgg .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .ClassAttr )});};if _acgg .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .TitleAttr )});};if _acgg .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .AltAttr )});};if _acgg .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .CoordsizeAttr )});};if _acgg .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .CoordoriginAttr )});};if _acgg .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .WrapcoordsAttr )});};if _acgg .PrintAttr !=_bg .ST_TrueFalseUnset {_gcae ,_bfda :=_acgg .PrintAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0069n\u0074"});if _bfda !=nil {return _bfda ;};start .Attr =append (start .Attr ,_gcae );};if _acgg .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .IdAttr )});};if _acgg .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .StyleAttr )});};if _acgg .SpidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .SpidAttr )});};if _acgg .OnedAttr !=_bg .ST_TrueFalseUnset {_abbaa ,_ebcaa :=_acgg .OnedAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e\u0065\u0064"});if _ebcaa !=nil {return _ebcaa ;};start .Attr =append (start .Attr ,_abbaa );};if _acgg .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_acgg .RegroupidAttr )});};if _acgg .DoubleclicknotifyAttr !=_bg .ST_TrueFalseUnset {_cgga ,_fgfg :=_acgg .DoubleclicknotifyAttr .MarshalXMLAttr (_e .Name {Local :"\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"});if _fgfg !=nil {return _fgfg ;};start .Attr =append (start .Attr ,_cgga );};if _acgg .ButtonAttr !=_bg .ST_TrueFalseUnset {_bfbabc ,_eecc :=_acgg .ButtonAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u0074\u0074\u006f\u006e"});if _eecc !=nil {return _eecc ;};start .Attr =append (start .Attr ,_bfbabc );};if _acgg .UserhiddenAttr !=_bg .ST_TrueFalseUnset {_dcge ,_dbdee :=_acgg .UserhiddenAttr .MarshalXMLAttr (_e .Na
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_Id and its children, prefixing error messages with path
|
|
|
|
func (_bbf *AG_Id )ValidateWithPath (path string )error {return nil };func (_dbgf *OfcShapelayout )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_dbgf .OfcCT_ShapeLayout =*NewOfcCT_ShapeLayout ();for _ ,_afead :=range start .Attr {if _afead .Name .Local =="\u0065\u0078\u0074"{_dbgf .ExtAttr .UnmarshalXMLAttr (_afead );continue ;};};_egdde :for {_eeeeg ,_agceg :=d .Token ();if _agceg !=nil {return _agceg ;};switch _gaagf :=_eeeeg .(type ){case _e .StartElement :switch _gaagf .Name {case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0069\u0064\u006da\u0070"}:_dbgf .Idmap =NewOfcCT_IdMap ();if _ffcac :=d .DecodeElement (_dbgf .Idmap ,&_gaagf );_ffcac !=nil {return _ffcac ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u0067r\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065"}:_dbgf .Regrouptable =NewOfcCT_RegroupTable ();if _ddgde :=d .DecodeElement (_dbgf .Regrouptable ,&_gaagf );_ddgde !=nil {return _ddgde ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0075\u006ce\u0073"}:_dbgf .Rules =NewOfcCT_Rules ();if _gecdf :=d .DecodeElement (_dbgf .Rules ,&_gaagf );_gecdf !=nil {return _gecdf ;};default:_g .Log ("\u0073\u006b\u0069\u0070\u0070\u0069n\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006et\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0053\u0068\u0061\u0070\u0065\u006c\u0061y\u006fu\u0074\u0020\u0025\u0076",_gaagf .Name );if _gdgd :=d .Skip ();_gdgd !=nil {return _gdgd ;};};case _e .EndElement :break _egdde ;case _e .CharData :};};return nil ;};func (_cdg *AG_ImageAttributes )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _cdg .SrcAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0072\u0063"},Value :_a .Sprintf ("\u0025\u0076",*_cdg .SrcAttr )});};if _cdg .CropleftAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u0072\u006f\u0070\u006c\u0065\u0066\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_cdg .CropleftAttr )});};if _cdg .CroptopAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063r\u006f\u0070\u0074\u006f\u0070"},Value :_a .Sprintf ("\u0025\u0076",*_cdg .CroptopAttr )});};if _cdg .CroprightAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063r\u006f\u0070\u0072\u0069\u0067\u0068t"},Value :_a .Sprintf ("\u0025\u0076",*_cdg .CroprightAttr )});};if _cdg .CropbottomAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u0072\u006f\u0070\u0062\u006f\u0074\u0074\u006f\u006d"},Value :_a .Sprintf ("\u0025\u0076",*_cdg .CropbottomAttr )});};if _cdg .GainAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0067\u0061\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_cdg .GainAttr )});};if _cdg .BlacklevelAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0062\u006c\u0061\u0063\u006b\u006c\u0065\u0076\u0065\u006c"},Value :_a .Sprintf ("\u0025\u0076",*_cdg .BlacklevelAttr )});};if _cdg .GammaAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0067\u0061\u006dm\u0061"},Value :_a .Sprintf ("\u0025\u0076",*_cdg .GammaAttr )});};if _cdg .GrayscaleAttr !=_bg .ST_TrueFalseUnset {_ecc ,_eebc :=_cdg .GrayscaleAttr .MarshalXMLAttr (_e .Name {Local :"\u0067r\u0061\u0079\u0073\u0063\u0061\u006ce"});if _eebc !=nil {return _eebc ;};start .Attr =append (start .A
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcSkew and its children, prefixing error messages with path
|
|
|
|
func (_ebggd *OfcSkew )ValidateWithPath (path string )error {if _fdba :=_ebggd .OfcCT_Skew .ValidateWithPath (path );_fdba !=nil {return _fdba ;};return nil ;};func (_ababf *OfcRight )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f:\u0072\u0069\u0067\u0068\u0074";return _ababf .OfcCT_StrokeChild .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Image and its children, prefixing error messages with path
|
|
|
|
func (_aecca *Image )ValidateWithPath (path string )error {if _bfddb :=_aecca .CT_Image .ValidateWithPath (path );_bfddb !=nil {return _bfddb ;};return nil ;};func (_caec *CT_Path )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_bfdf :=range start .Attr {if _bfdf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bfdf .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"{_caec .ConnecttypeAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bfdf .Name .Local =="e\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"{_caec .ExtrusionokAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bfdf .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"{_dgaad ,_dddadg :=_bfdf .Value ,error (nil );if _dddadg !=nil {return _dddadg ;};_caec .ConnectanglesAttr =&_dgaad ;continue ;};if _bfdf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bfdf .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"{_dceg ,_bagd :=_bfdf .Value ,error (nil );if _bagd !=nil {return _bagd ;};_caec .ConnectlocsAttr =&_dceg ;continue ;};if _bfdf .Name .Local =="\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"{_caec .GradientshapeokAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Local =="\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"{_caec .ShadowokAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Local =="\u0061r\u0072\u006f\u0077\u006f\u006b"{_caec .ArrowokAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Local =="\u0076"{_aagcd ,_fadb :=_bfdf .Value ,error (nil );if _fadb !=nil {return _fadb ;};_caec .VAttr =&_aagcd ;continue ;};if _bfdf .Name .Local =="\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"{_caec .TextpathokAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"{_caec .InsetpenokAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"{_caec .StrokeokAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Local =="\u0066\u0069\u006c\u006c\u006f\u006b"{_caec .FillokAttr .UnmarshalXMLAttr (_bfdf );continue ;};if _bfdf .Name .Local =="t\u0065\u0078\u0074\u0062\u006f\u0078\u0072\u0065\u0063\u0074"{_fccb ,_gefa :=_bfdf .Value ,error (nil );if _gefa !=nil {return _gefa ;};_caec .TextboxrectAttr =&_fccb ;continue ;};if _bfdf .Name .Local =="\u006c\u0069\u006d\u006f"{_cbgb ,_fgda :=_bfdf .Value ,error (nil );if _fgda !=nil {return _fgda ;};_caec .LimoAttr =&_cbgb ;continue ;};if _bfdf .Name .Local =="\u0069\u0064"{_ggdgd ,_cecac :=_bfdf .Value ,error (nil );if _cecac !=nil {return _cecac ;};_caec .IdAttr =&_ggdgd ;continue ;};};for {_agacd ,_aggb :=d .Token ();if _aggb !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0043\u0054\u005f\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_aggb );};if _bcgee ,_cgbff :=_agacd .(_e .EndElement );_cgbff &&_bcgee .Name ==start .Name {break ;};};return nil ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_ShapeDefaults and its children
|
|
|
|
func (_aggaf *OfcCT_ShapeDefaults )Validate ()error {return _aggaf .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0068\u0061\u0070\u0065\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};func (_degdc OfcST_Angle )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_egeb :=_e .Attr {};_egeb .Name =name ;switch _degdc {case OfcST_AngleUnset :_egeb .Value ="";case OfcST_AngleAny :_egeb .Value ="\u0061\u006e\u0079";case OfcST_Angle30 :_egeb .Value ="\u0033\u0030";case OfcST_Angle45 :_egeb .Value ="\u0034\u0035";case OfcST_Angle60 :_egeb .Value ="\u0036\u0030";case OfcST_Angle90 :_egeb .Value ="\u0039\u0030";case OfcST_AngleAuto :_egeb .Value ="\u0061\u0075\u0074\u006f";};return _egeb ,nil ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Image and its children
|
|
|
|
func (_ebcfb *Image )Validate ()error {return _ebcfb .ValidateWithPath ("\u0049\u006d\u0061g\u0065")};type OfcST_HrAlign byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Entry and its children, prefixing error messages with path
|
|
|
|
func (_fbdfc *OfcCT_Entry )ValidateWithPath (path string )error {return nil };func NewCT_Textbox ()*CT_Textbox {_cfdd :=&CT_Textbox {};return _cfdd };func (_bcfg *AG_Ext )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_bcfg .ExtAttr =ST_Ext (1);for _ ,_adgcd :=range start .Attr {if _adgcd .Name .Local =="\u0065\u0078\u0074"{_bcfg .ExtAttr .UnmarshalXMLAttr (_adgcd );continue ;};};for {_dfg ,_ccd :=d .Token ();if _ccd !=nil {return _a .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0041G\u005f\u0045x\u0074\u003a\u0020\u0025\u0073",_ccd );};if _eecb ,_acf :=_dfg .(_e .EndElement );_acf &&_eecb .Name ==start .Name {break ;};};return nil ;};func (_bbdc *AG_OfficeShapeAttributes )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _bbdc .SptAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073p\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_bbdc .SptAttr )});};if _bbdc .ConnectortypeAttr !=OfcST_ConnectorTypeUnset {_bag ,_deb :=_bbdc .ConnectortypeAttr .MarshalXMLAttr (_e .Name {Local :"\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"});if _deb !=nil {return _deb ;};start .Attr =append (start .Attr ,_bag );};if _bbdc .BwmodeAttr !=OfcST_BWModeUnset {_bbcc ,_gddg :=_bbdc .BwmodeAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u006d\u006f\u0064\u0065"});if _gddg !=nil {return _gddg ;};start .Attr =append (start .Attr ,_bbcc );};if _bbdc .BwpureAttr !=OfcST_BWModeUnset {_faf ,_cgcb :=_bbdc .BwpureAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u0070\u0075\u0072\u0065"});if _cgcb !=nil {return _cgcb ;};start .Attr =append (start .Attr ,_faf );};if _bbdc .BwnormalAttr !=OfcST_BWModeUnset {_cfff ,_dcd :=_bbdc .BwnormalAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _dcd !=nil {return _dcd ;};start .Attr =append (start .Attr ,_cfff );};if _bbdc .ForcedashAttr !=_bg .ST_TrueFalseUnset {_baea ,_abgb :=_bbdc .ForcedashAttr .MarshalXMLAttr (_e .Name {Local :"\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"});if _abgb !=nil {return _abgb ;};start .Attr =append (start .Attr ,_baea );};if _bbdc .OleiconAttr !=_bg .ST_TrueFalseUnset {_deg ,_dda :=_bbdc .OleiconAttr .MarshalXMLAttr (_e .Name {Local :"\u006fl\u0065\u0069\u0063\u006f\u006e"});if _dda !=nil {return _dda ;};start .Attr =append (start .Attr ,_deg );};if _bbdc .OleAttr !=_bg .ST_TrueFalseBlankUnset {_eaa ,_abda :=_bbdc .OleAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006c\u0065"});if _abda !=nil {return _abda ;};start .Attr =append (start .Attr ,_eaa );};if _bbdc .PreferrelativeAttr !=_bg .ST_TrueFalseUnset {_fbda ,_gcc :=_bbdc .PreferrelativeAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"});if _gcc !=nil {return _gcc ;};start .Attr =append (start .Attr ,_fbda );};if _bbdc .CliptowrapAttr !=_bg .ST_TrueFalseUnset {_geb ,_fga :=_bbdc .CliptowrapAttr .MarshalXMLAttr (_e .Name {Local :"\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"});if _fga !=nil {return _fga ;};start .Attr =append (start .Attr ,_geb );};if _bbdc .ClipAttr !=_bg .ST_TrueFalseUnset {_cea ,_acg :=_bbdc .ClipAttr .MarshalXMLAttr (_e .Name {Local :"\u0063\u006c\u0069\u0070"});if _acg !=nil {return _acg ;};start .Attr =append (start .Attr ,_cea );};return nil ;};func (_fgfeb *OfcCT_Callout )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _fgfeb .OnAttr !=_bg .ST_TrueFalseUnset {_cdddf ,_bceae :=_fgfeb .OnAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e"});if _bceae !=nil {return _bceae ;};start .Attr =append (start .Attr ,_cdddf );};if _fgfeb .TypeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_fgfeb .TypeAttr )});};if _fgfeb .GapAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0067\u0061\u0070"},Value :_a .Sprintf ("\u0025\u0076",*_fgfeb .GapAttr )});};if _fgfeb .AngleAttr !=OfcST_AngleUnset {_gfbba ,_dgcc :=_fgfeb .AngleAttr .MarshalX
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMenu and its children, prefixing error messages with path
|
|
|
|
func (_eaddg *OfcCT_ColorMenu )ValidateWithPath (path string )error {if _ecdaef :=_eaddg .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ecdaef !=nil {return _ecdaef ;};return nil ;};type AG_ShapeAttributes struct{OpacityAttr *string ;StrokedAttr _bg .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _bg .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _bg .ST_TrueFalse ;FillcolorAttr *string ;};func (_agbge ST_FillMethod )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_agbge .String (),start );};func (_fgdec OfcST_HrAlign )String ()string {switch _fgdec {case 0:return "";case 1:return "\u006c\u0065\u0066\u0074";case 2:return "\u0072\u0069\u0067h\u0074";case 3:return "\u0063\u0065\u006e\u0074\u0065\u0072";};return "";};func NewOfcCT_Complex ()*OfcCT_Complex {_gcgca :=&OfcCT_Complex {};return _gcgca };func (_fcage *Group )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _fcage .CT_Group .MarshalXML (e ,start );};func (_fcedc *Oval )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_fcedc .CT_Oval =*NewCT_Oval ();for _ ,_bgdgf :=range start .Attr {if _bgdgf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bgdgf .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_cfgec ,_abcdb :=_bgdgf .Value ,error (nil );if _abcdb !=nil {return _abcdb ;};_fcedc .BordertopcolorAttr =&_cfgec ;continue ;};if _bgdgf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bgdgf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_fcedc .BulletAttr .UnmarshalXMLAttr (_bgdgf );continue ;};if _bgdgf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bgdgf .Name .Local =="\u0068\u0072"{_fcedc .HrAttr .UnmarshalXMLAttr (_bgdgf );continue ;};if _bgdgf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bgdgf .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_fcedc .CliptowrapAttr .UnmarshalXMLAttr (_bgdgf );continue ;};if _bgdgf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bgdgf .Name .Local =="\u0068\u0072\u0073t\u0064"{_fcedc .HrstdAttr .UnmarshalXMLAttr (_bgdgf );continue ;};if _bgdgf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bgdgf .Name .Local =="\u006f\u006c\u0065"{_fcedc .OleAttr .UnmarshalXMLAttr (_bgdgf );continue ;};if _bgdgf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bgdgf .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_fcedc .HrnoshadeAttr .UnmarshalXMLAttr (_bgdgf );continue ;};if _bgdgf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-01-04 16:11:39 +00:00
|
|
|
// ValidateWithPath validates the CT_Group and its children, prefixing error messages with path
|
2021-03-16 20:51:18 +00:00
|
|
|
func (_fcba *CT_Group )ValidateWithPath (path string )error {if _fccf :=_fcba .EditasAttr .ValidateWithPath (path +"/\u0045\u0064\u0069\u0074\u0061\u0073\u0041\u0074\u0074\u0072");_fccf !=nil {return _fccf ;};for _gfad ,_acda :=range _fcba .Group {if _cafg :=_acda .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fG\u0072\u006f\u0075\u0070\u005b\u0025\u0064\u005d",path ,_gfad ));_cafg !=nil {return _cafg ;};};for _afcf ,_fecg :=range _fcba .Shape {if _bcea :=_fecg .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fS\u0068\u0061\u0070\u0065\u005b\u0025\u0064\u005d",path ,_afcf ));_bcea !=nil {return _bcea ;};};for _aedf ,_efgc :=range _fcba .Shapetype {if _bfcf :=_efgc .ValidateWithPath (_a .Sprintf ("\u0025\u0073/\u0053\u0068\u0061p\u0065\u0074\u0079\u0070\u0065\u005b\u0025\u0064\u005d",path ,_aedf ));_bfcf !=nil {return _bfcf ;};};for _fbeg ,_cfcg :=range _fcba .Arc {if _eefef :=_cfcg .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002f\u0041\u0072\u0063\u005b\u0025\u0064\u005d",path ,_fbeg ));_eefef !=nil {return _eefef ;};};for _degc ,_aaegc :=range _fcba .Curve {if _bdfd :=_aaegc .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fC\u0075\u0072\u0076\u0065\u005b\u0025\u0064\u005d",path ,_degc ));_bdfd !=nil {return _bdfd ;};};for _afbac ,_ceba :=range _fcba .Image {if _cbdd :=_ceba .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fI\u006d\u0061\u0067\u0065\u005b\u0025\u0064\u005d",path ,_afbac ));_cbdd !=nil {return _cbdd ;};};for _cfccc ,_fedg :=range _fcba .Line {if _cfbcd :=_fedg .ValidateWithPath (_a .Sprintf ("%\u0073\u002f\u004c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_cfccc ));_cfbcd !=nil {return _cfbcd ;};};for _bbgbb ,_gfde :=range _fcba .Oval {if _caea :=_gfde .ValidateWithPath (_a .Sprintf ("%\u0073\u002f\u004f\u0076\u0061\u006c\u005b\u0025\u0064\u005d",path ,_bbgbb ));_caea !=nil {return _caea ;};};for _fdcbg ,_gfaa :=range _fcba .Polyline {if _afaa :=_gfaa .ValidateWithPath (_a .Sprintf ("\u0025s\u002fP\u006f\u006c\u0079\u006c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_fdcbg ));_afaa !=nil {return _afaa ;};};for _cbff ,_bgbg :=range _fcba .Rect {if _fddce :=_bgbg .ValidateWithPath (_a .Sprintf ("%\u0073\u002f\u0052\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_cbff ));_fddce !=nil {return _fddce ;};};for _gbeg ,_gdfag :=range _fcba .Roundrect {if _gdac :=_gdfag .ValidateWithPath (_a .Sprintf ("\u0025\u0073/\u0052\u006f\u0075n\u0064\u0072\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_gbeg ));_gdac !=nil {return _gdac ;};};for _cfegf ,_deac :=range _fcba .Diagram {if _fgab :=_deac .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002f\u0044\u0069\u0061\u0067\u0072\u0061m\u005b\u0025\u0064\u005d",path ,_cfegf ));_fgab !=nil {return _fgab ;};};for _cfed ,_gdg :=range _fcba .EG_ShapeElements {if _ddga :=_gdg .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_cfed ));_ddga !=nil {return _ddga ;};};if _aeff :=_fcba .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_aeff !=nil {return _aeff ;};if _cebc :=_fcba .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_cebc !=nil {return _cebc ;};if _bebg :=_fcba .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bebg !=nil {return _bebg ;};if _egdb :=_fcba .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_egdb !=nil {return _egdb ;};if _bebef :=_fcba .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bebef !=nil {return _bebef ;};if _fgfa :=_fcba .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_fgfa !=nil {return _fgfa ;};if _cbag :=_fcba .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cbag !=nil {return _cbag ;};if _gcge :=_fcb
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Diagram and its children
|
|
|
|
func (_ebdde *OfcCT_Diagram )Validate ()error {return _ebdde .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};type CT_Shadow struct{OnAttr _bg .ST_TrueFalse ;TypeAttr ST_ShadowType ;ObscuredAttr _bg .ST_TrueFalse ;ColorAttr *string ;OpacityAttr *string ;OffsetAttr *string ;Color2Attr *string ;Offset2Attr *string ;OriginAttr *string ;MatrixAttr *string ;IdAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcLock and its children
|
|
|
|
func (_ffade *OfcLock )Validate ()error {return _ffade .ValidateWithPath ("\u004ff\u0063\u004c\u006f\u0063\u006b");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_IdMap and its children, prefixing error messages with path
|
|
|
|
func (_eega *OfcCT_IdMap )ValidateWithPath (path string )error {if _dfece :=_eega .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_dfece !=nil {return _dfece ;};return nil ;};func (_abecd ST_EditAs )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_cbeba :=_e .Attr {};_cbeba .Name =name ;switch _abecd {case ST_EditAsUnset :_cbeba .Value ="";case ST_EditAsCanvas :_cbeba .Value ="\u0063\u0061\u006e\u0076\u0061\u0073";case ST_EditAsOrgchart :_cbeba .Value ="\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074";case ST_EditAsRadial :_cbeba .Value ="\u0072\u0061\u0064\u0069\u0061\u006c";case ST_EditAsCycle :_cbeba .Value ="\u0063\u0079\u0063l\u0065";case ST_EditAsStacked :_cbeba .Value ="\u0073t\u0061\u0063\u006b\u0065\u0064";case ST_EditAsVenn :_cbeba .Value ="\u0076\u0065\u006e\u006e";case ST_EditAsBullseye :_cbeba .Value ="\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065";};return _cbeba ,nil ;};type CT_Path struct{VAttr *string ;LimoAttr *string ;TextboxrectAttr *string ;FillokAttr _bg .ST_TrueFalse ;StrokeokAttr _bg .ST_TrueFalse ;ShadowokAttr _bg .ST_TrueFalse ;ArrowokAttr _bg .ST_TrueFalse ;GradientshapeokAttr _bg .ST_TrueFalse ;TextpathokAttr _bg .ST_TrueFalse ;InsetpenokAttr _bg .ST_TrueFalse ;ConnecttypeAttr OfcST_ConnectType ;ConnectlocsAttr *string ;ConnectanglesAttr *string ;ExtrusionokAttr _bg .ST_TrueFalse ;IdAttr *string ;};func NewAG_Chromakey ()*AG_Chromakey {_aeg :=&AG_Chromakey {};return _aeg };
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Callout and its children, prefixing error messages with path
|
|
|
|
func (_gfcfa *OfcCT_Callout )ValidateWithPath (path string )error {if _ccbfe :=_gfcfa .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_ccbfe !=nil {return _ccbfe ;};if _cdeb :=_gfcfa .AngleAttr .ValidateWithPath (path +"\u002f\u0041\u006e\u0067\u006c\u0065\u0041\u0074\u0074\u0072");_cdeb !=nil {return _cdeb ;};if _eadae :=_gfcfa .DropautoAttr .ValidateWithPath (path +"\u002f\u0044\u0072\u006f\u0070\u0061\u0075\u0074\u006f\u0041\u0074\u0074\u0072");_eadae !=nil {return _eadae ;};if _ebcfd :=_gfcfa .LengthspecifiedAttr .ValidateWithPath (path +"/\u004ce\u006e\u0067\u0074\u0068\u0073\u0070\u0065\u0063i\u0066\u0069\u0065\u0064At\u0074\u0072");_ebcfd !=nil {return _ebcfd ;};if _bcgcd :=_gfcfa .AccentbarAttr .ValidateWithPath (path +"\u002f\u0041\u0063\u0063\u0065\u006e\u0074\u0062\u0061r\u0041\u0074\u0074\u0072");_bcgcd !=nil {return _bcgcd ;};if _dgfc :=_gfcfa .TextborderAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0062\u006f\u0072\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_dgfc !=nil {return _dgfc ;};if _dcccf :=_gfcfa .MinusxAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0078\u0041\u0074\u0074\u0072");_dcccf !=nil {return _dcccf ;};if _ebcdc :=_gfcfa .MinusyAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0079\u0041\u0074\u0074\u0072");_ebcdc !=nil {return _ebcdc ;};if _deacb :=_gfcfa .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_deacb !=nil {return _deacb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the EG_ShapeElements and its children
|
|
|
|
func (_eadc *EG_ShapeElements )Validate ()error {return _eadc .ValidateWithPath ("\u0045\u0047_\u0053\u0068\u0061p\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073");};func (_bbgafb ST_StrokeEndCap )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_bbgafb .String (),start );};func (_agaca OfcST_OLEType )String ()string {switch _agaca {case 0:return "";case 1:return "\u0045\u006d\u0062e\u0064";case 2:return "\u004c\u0069\u006e\u006b";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Oval and its children
|
|
|
|
func (_ecaeb *Oval )Validate ()error {return _ecaeb .ValidateWithPath ("\u004f\u0076\u0061\u006c")};func (_geecf *OfcCT_Entry )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_gffaea :=range start .Attr {if _gffaea .Name .Local =="\u006e\u0065\u0077"{_cdbdd ,_cfaec :=_bc .ParseInt (_gffaea .Value ,10,32);if _cfaec !=nil {return _cfaec ;};_abdda :=int32 (_cdbdd );_geecf .NewAttr =&_abdda ;continue ;};if _gffaea .Name .Local =="\u006f\u006c\u0064"{_gfbaf ,_adfdg :=_bc .ParseInt (_gffaea .Value ,10,32);if _adfdg !=nil {return _adfdg ;};_fbgb :=int32 (_gfbaf );_geecf .OldAttr =&_fbgb ;continue ;};};for {_eeed ,_bbcdfe :=d .Token ();if _bbcdfe !=nil {return _a .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0045\u006e\u0074\u0072\u0079\u003a\u0020\u0025\u0073",_bbcdfe );};if _egdec ,_fgfde :=_eeed .(_e .EndElement );_fgfde &&_egdec .Name ==start .Name {break ;};};return nil ;};func (_gceeb *OfcST_OLEUpdateMode )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_caege ,_ecfab :=d .Token ();if _ecfab !=nil {return _ecfab ;};if _bdegc ,_edfgb :=_caege .(_e .EndElement );_edfgb &&_bdegc .Name ==start .Name {*_gceeb =1;return nil ;};if _dfbfc ,_fdbfc :=_caege .(_e .CharData );!_fdbfc {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_caege );}else {switch string (_dfbfc ){case "":*_gceeb =0;case "\u0041\u006c\u0077\u0061\u0079\u0073":*_gceeb =1;case "\u004f\u006e\u0043\u0061\u006c\u006c":*_gceeb =2;};};_caege ,_ecfab =d .Token ();if _ecfab !=nil {return _ecfab ;};if _ddcec ,_acebg :=_caege .(_e .EndElement );_acebg &&_ddcec .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_caege );};func (_bddgd *OfcOLEObject )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_H and its children, prefixing error messages with path
|
|
|
|
func (_defc *CT_H )ValidateWithPath (path string )error {if _badb :=_defc .InvxAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0078\u0041\u0074\u0074r");_badb !=nil {return _badb ;};if _aeaa :=_defc .InvyAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0079\u0041\u0074\u0074r");_aeaa !=nil {return _aeaa ;};if _fbgfe :=_defc .SwitchAttr .ValidateWithPath (path +"/\u0053\u0077\u0069\u0074\u0063\u0068\u0041\u0074\u0074\u0072");_fbgfe !=nil {return _fbgfe ;};return nil ;};func (_beece *OfcCT_ClipPath )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0076"},Value :_a .Sprintf ("\u0025\u0076",_beece .VAttr )});e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_StrokeAttributes and its children
|
|
|
|
func (_dffd *AG_StrokeAttributes )Validate ()error {return _dffd .ValidateWithPath ("\u0041\u0047\u005f\u0053tr\u006f\u006b\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};func (_gbd *AG_Fill )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_eeb :=range start .Attr {if _eeb .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_gbd .FilledAttr .UnmarshalXMLAttr (_eeb );continue ;};if _eeb .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_ebdb ,_ebf :=_eeb .Value ,error (nil );if _ebf !=nil {return _ebf ;};_gbd .FillcolorAttr =&_ebdb ;continue ;};};for {_cfbc ,_bbcg :=d .Token ();if _bbcg !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0046\u0069\u006c\u006c\u003a\u0020\u0025\u0073",_bbcg );};if _ab ,_ada :=_cfbc .(_e .EndElement );_ada &&_ab .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcOLEObject and its children
|
|
|
|
func (_gfecf *OfcOLEObject )Validate ()error {return _gfecf .ValidateWithPath ("\u004f\u0066\u0063O\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcDiagram and its children
|
|
|
|
func (_gaede *OfcDiagram )Validate ()error {return _gaede .ValidateWithPath ("\u004f\u0066\u0063\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};func NewOfcLock ()*OfcLock {_fcaga :=&OfcLock {};_fcaga .OfcCT_Lock =*NewOfcCT_Lock ();return _fcaga };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Polyline and its children, prefixing error messages with path
|
|
|
|
func (_beeed *Polyline )ValidateWithPath (path string )error {if _gceee :=_beeed .CT_PolyLine .ValidateWithPath (path );_gceee !=nil {return _gceee ;};return nil ;};func NewOfcCT_RelationTable ()*OfcCT_RelationTable {_ebfda :=&OfcCT_RelationTable {};return _ebfda };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_RoundRect and its children
|
|
|
|
func (_ecfcc *CT_RoundRect )Validate ()error {return _ecfcc .ValidateWithPath ("\u0043\u0054\u005fR\u006f\u0075\u006e\u0064\u0052\u0065\u0063\u0074");};const (ST_FillTypeUnset ST_FillType =0;ST_FillTypeSolid ST_FillType =1;ST_FillTypeGradient ST_FillType =2;ST_FillTypeGradientRadial ST_FillType =3;ST_FillTypeTile ST_FillType =4;ST_FillTypePattern ST_FillType =5;ST_FillTypeFrame ST_FillType =6;);func (_beef *AG_AllShapeAttributes )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _beef .OpacityAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_a .Sprintf ("\u0025\u0076",*_beef .OpacityAttr )});};if _beef .StrokedAttr !=_bg .ST_TrueFalseUnset {_dff ,_cfda :=_beef .StrokedAttr .MarshalXMLAttr (_e .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _cfda !=nil {return _cfda ;};start .Attr =append (start .Attr ,_dff );};if _beef .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_beef .StrokecolorAttr )});};if _beef .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_beef .StrokeweightAttr )});};if _beef .InsetpenAttr !=_bg .ST_TrueFalseUnset {_cee ,_fd :=_beef .InsetpenAttr .MarshalXMLAttr (_e .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _fd !=nil {return _fd ;};start .Attr =append (start .Attr ,_cee );};if _beef .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_a .Sprintf ("\u0025\u0076",*_beef .ChromakeyAttr )});};if _beef .FilledAttr !=_bg .ST_TrueFalseUnset {_cgc ,_bbce :=_beef .FilledAttr .MarshalXMLAttr (_e .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _bbce !=nil {return _bbce ;};start .Attr =append (start .Attr ,_cgc );};if _beef .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_a .Sprintf ("\u0025\u0076",*_beef .FillcolorAttr )});};if _beef .SptAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073p\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_beef .SptAttr )});};if _beef .ConnectortypeAttr !=OfcST_ConnectorTypeUnset {_cge ,_ccfc :=_beef .ConnectortypeAttr .MarshalXMLAttr (_e .Name {Local :"\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"});if _ccfc !=nil {return _ccfc ;};start .Attr =append (start .Attr ,_cge );};if _beef .BwmodeAttr !=OfcST_BWModeUnset {_db ,_efb :=_beef .BwmodeAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u006d\u006f\u0064\u0065"});if _efb !=nil {return _efb ;};start .Attr =append (start .Attr ,_db );};if _beef .BwpureAttr !=OfcST_BWModeUnset {_cce ,_gge :=_beef .BwpureAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u0070\u0075\u0072\u0065"});if _gge !=nil {return _gge ;};start .Attr =append (start .Attr ,_cce );};if _beef .BwnormalAttr !=OfcST_BWModeUnset {_afb ,_da :=_beef .BwnormalAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _da !=nil {return _da ;};start .Attr =append (start .Attr ,_afb );};if _beef .ForcedashAttr !=_bg .ST_TrueFalseUnset {_gce ,_efdb :=_beef .ForcedashAttr .MarshalXMLAttr (_e .Name {Local :"\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"});if _efdb !=nil {return _efdb ;};start .Attr =append (start .Attr ,_gce );};if _beef .OleiconAttr !=_bg .ST_TrueFalseUnset {_fge ,_aee :=_beef .OleiconAttr .MarshalXMLAttr (_e .Name {Local :"\u006fl\u0065\u0069\u0063\u006f\u006e"});if _aee !=nil {return _aee ;};start .Attr =append (start .Attr ,_fge );};if _beef .OleAttr !=_bg .ST_TrueFalseBlankUnset {_gdd ,_eafe :=_beef .OleAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006c\u0065"});if _eafe !=nil {return _eafe ;};start .Attr =append (start .Attr ,_gdd )
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_StrokeChild and its children, prefixing error messages with path
|
|
|
|
func (_dffbb *OfcCT_StrokeChild )ValidateWithPath (path string )error {if _bfadg :=_dffbb .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_bfadg !=nil {return _bfadg ;};if _ebadd :=_dffbb .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_ebadd !=nil {return _ebadd ;};if _egace :=_dffbb .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_egace !=nil {return _egace ;};if _gfdgd :=_dffbb .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_gfdgd !=nil {return _gfdgd ;};if _ddgdb :=_dffbb .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ddgdb !=nil {return _ddgdb ;};if _dbdbg :=_dffbb .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_dbdbg !=nil {return _dbdbg ;};if _gabcc :=_dffbb .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_gabcc !=nil {return _gabcc ;};if _dfbba :=_dffbb .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_dfbba !=nil {return _dfbba ;};if _cbdgg :=_dffbb .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_cbdgg !=nil {return _cbdgg ;};if _fdde :=_dffbb .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_fdde !=nil {return _fdde ;};if _gdefb :=_dffbb .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_gdefb !=nil {return _gdefb ;};if _deddbb :=_dffbb .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_deddbb !=nil {return _deddbb ;};if _fdcaa :=_dffbb .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_fdcaa !=nil {return _fdcaa ;};if _bfea :=_dffbb .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_bfea !=nil {return _bfea ;};if _bdcfb :=_dffbb .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_bdcfb !=nil {return _bdcfb ;};if _cbegd :=_dffbb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_cbegd !=nil {return _cbegd ;};return nil ;};func (_aaddd *OfcSignatureline )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_aaddd .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();for _ ,_gagcc :=range start .Attr {if _gagcc .Name .Local =="\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"{_adddf ,_ecfgb :=_gagcc .Value ,error (nil );if _ecfgb !=nil {return _ecfgb ;};_aaddd .SuggestedsignerAttr =&_adddf ;continue ;};if _gagcc .Name .Local =="\u0069\u0064"{_bdgcc ,_dffa :=_gagcc .Value ,error (nil );if _dffa !=nil {return _dffa ;};_aaddd .IdAttr =&_bdgcc ;continue ;};if _gagcc .Name .Local =="\u0070\u0072\u006f\u0076\u0069\u0064"{_afcca ,_fefdgd :=_gagcc .Value ,error (nil );if _fefdgd !=nil {return _fefdgd ;};_aaddd .ProvidAttr =&_afcca ;continue ;};if _gagcc .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"{_aaddd .SigninginstructionssetAttr .UnmarshalXMLAttr (_gagcc );continue ;};if _gagcc .Name .Local =="\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"{_aaddd .AllowcommentsAttr .UnmarshalXMLAttr (_gagcc );continue ;};if _gagcc .Name .Local =="\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Stroke and its children
|
|
|
|
func (_bgbae *CT_Stroke )Validate ()error {return _bgbae .ValidateWithPath ("\u0043T\u005f\u0053\u0074\u0072\u006f\u006be");};func (_ddbdd *OfcCT_ShapeLayout )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _ddbdd .ExtAttr !=ST_ExtUnset {_aecfb ,_dfgeaa :=_ddbdd .ExtAttr .MarshalXMLAttr (_e .Name {Local :"\u0065\u0078\u0074"});if _dfgeaa !=nil {return _dfgeaa ;};start .Attr =append (start .Attr ,_aecfb );};e .EncodeToken (start );if _ddbdd .Idmap !=nil {_eacce :=_e .StartElement {Name :_e .Name {Local :"\u006f:\u0069\u0064\u006d\u0061\u0070"}};e .EncodeElement (_ddbdd .Idmap ,_eacce );};if _ddbdd .Regrouptable !=nil {_cbbbbb :=_e .StartElement {Name :_e .Name {Local :"\u006f\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070t\u0061\u0062\u006c\u0065"}};e .EncodeElement (_ddbdd .Regrouptable ,_cbbbbb );};if _ddbdd .Rules !=nil {_aeefc :=_e .StartElement {Name :_e .Name {Local :"\u006f:\u0072\u0075\u006c\u0065\u0073"}};e .EncodeElement (_ddbdd .Rules ,_aeefc );};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_affda OfcST_ExtrusionType )Validate ()error {return _affda .ValidateWithPath ("")};func (_abcag OfcST_RType )ValidateWithPath (path string )error {switch _abcag {case 0,1,2,3,4:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_abcag ));};return nil ;};func (_adbccd OfcST_InsetMode )ValidateWithPath (path string )error {switch _adbccd {case 0,1,2:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_adbccd ));};return nil ;};func (_dfge *AG_Fill )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _dfge .FilledAttr !=_bg .ST_TrueFalseUnset {_ffb ,_gda :=_dfge .FilledAttr .MarshalXMLAttr (_e .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _gda !=nil {return _gda ;};start .Attr =append (start .Attr ,_ffb );};if _dfge .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_a .Sprintf ("\u0025\u0076",*_dfge .FillcolorAttr )});};return nil ;};func (_abcadd ST_Ext )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_abcadd .String (),start );};type OfcCT_Lock struct{PositionAttr _bg .ST_TrueFalse ;SelectionAttr _bg .ST_TrueFalse ;GroupingAttr _bg .ST_TrueFalse ;UngroupingAttr _bg .ST_TrueFalse ;RotationAttr _bg .ST_TrueFalse ;CroppingAttr _bg .ST_TrueFalse ;VerticiesAttr _bg .ST_TrueFalse ;AdjusthandlesAttr _bg .ST_TrueFalse ;TextAttr _bg .ST_TrueFalse ;AspectratioAttr _bg .ST_TrueFalse ;ShapetypeAttr _bg .ST_TrueFalse ;ExtAttr ST_Ext ;};func (_cbeg *OfcCT_Ink )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_gdcad :=range start .Attr {if _gdcad .Name .Local =="\u0069"{_gfee ,_eagae :=_gdcad .Value ,error (nil );if _eagae !=nil {return _eagae ;};_cbeg .IAttr =&_gfee ;continue ;};if _gdcad .Name .Local =="\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_cbeg .AnnotationAttr .UnmarshalXMLAttr (_gdcad );continue ;};if _gdcad .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_gafeeb ,_bgefba :=_gdcad .Value ,error (nil );if _bgefba !=nil {return _bgefba ;};_cbeg .ContentTypeAttr =&_gafeeb ;continue ;};};for {_cgbafd ,_efbc :=d .Token ();if _efbc !=nil {return _a .Errorf ("p\u0061\u0072\u0073\u0069ng\u0020O\u0066\u0063\u0043\u0054\u005fI\u006e\u006b\u003a\u0020\u0025\u0073",_efbc );};if _dcccc ,_feefg :=_cgbafd .(_e .EndElement );_feefg &&_dcccc .Name ==start .Name {break ;};};return nil ;};func (_aegbb ST_EditAs )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_aegbb .String (),start );};func (_bbeafg *OfcTop )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u00
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ClipPath and its children, prefixing error messages with path
|
|
|
|
func (_beabcc *OfcCT_ClipPath )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Handles and its children, prefixing error messages with path
|
|
|
|
func (_fefada *Handles )ValidateWithPath (path string )error {if _fecfa :=_fefada .CT_Handles .ValidateWithPath (path );_fecfa !=nil {return _fecfa ;};return nil ;};func (_fda *CT_Arc )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_beeb :=range start .Attr {if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_fda .UserdrawnAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_fda .ButtonAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_fda .DgmlayoutmruAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_fda .UserhiddenAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_fda .CliptowrapAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_fda .BulletAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u006f\u006c\u0065"{_fda .OleAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0068\u0072"{_fda .HrAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0073\u0070\u0069\u0064"{_dfeg ,_bccc :=_beeb .Value ,error (nil );if _bccc !=nil {return _bccc ;};_fda .SpidAttr =&_dfeg ;continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beeb .Name .Local =="\u0068\u0072\u0073t\u0064"{_fda .HrstdAttr .UnmarshalXMLAttr (_beeb );continue ;};if _beeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_Path and its children
|
|
|
|
func (_gece *AG_Path )Validate ()error {return _gece .ValidateWithPath ("\u0041G\u005f\u0050\u0061\u0074\u0068");};func NewCT_Image ()*CT_Image {_abbgg :=&CT_Image {};return _abbgg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Textbox and its children, prefixing error messages with path
|
|
|
|
func (_gbcea *Textbox )ValidateWithPath (path string )error {if _ebag :=_gbcea .CT_Textbox .ValidateWithPath (path );_ebag !=nil {return _ebag ;};return nil ;};func (_efeab ST_StrokeJoinStyle )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_eggf :=_e .Attr {};_eggf .Name =name ;switch _efeab {case ST_StrokeJoinStyleUnset :_eggf .Value ="";case ST_StrokeJoinStyleRound :_eggf .Value ="\u0072\u006f\u0075n\u0064";case ST_StrokeJoinStyleBevel :_eggf .Value ="\u0062\u0065\u0076e\u006c";case ST_StrokeJoinStyleMiter :_eggf .Value ="\u006d\u0069\u0074e\u0072";};return _eggf ,nil ;};const (OfcST_RTypeUnset OfcST_RType =0;OfcST_RTypeArc OfcST_RType =1;OfcST_RTypeCallout OfcST_RType =2;OfcST_RTypeConnector OfcST_RType =3;OfcST_RTypeAlign OfcST_RType =4;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_TextPath and its children
|
|
|
|
func (_gfab *CT_TextPath )Validate ()error {return _gfab .ValidateWithPath ("C\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068");};const (OfcST_BWModeUnset OfcST_BWMode =0;OfcST_BWModeColor OfcST_BWMode =1;OfcST_BWModeAuto OfcST_BWMode =2;OfcST_BWModeGrayScale OfcST_BWMode =3;OfcST_BWModeLightGrayscale OfcST_BWMode =4;OfcST_BWModeInverseGray OfcST_BWMode =5;OfcST_BWModeGrayOutline OfcST_BWMode =6;OfcST_BWModeHighContrast OfcST_BWMode =7;OfcST_BWModeBlack OfcST_BWMode =8;OfcST_BWModeWhite OfcST_BWMode =9;OfcST_BWModeHide OfcST_BWMode =10;OfcST_BWModeUndrawn OfcST_BWMode =11;OfcST_BWModeBlackTextAndLines OfcST_BWMode =12;);func (_agec *CT_Background )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_ggaca :=range start .Attr {if _ggaca .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ggaca .Name .Local =="\u0062\u0077\u006d\u006f\u0064\u0065"{_agec .BwmodeAttr .UnmarshalXMLAttr (_ggaca );continue ;};if _ggaca .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ggaca .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_agec .BwpureAttr .UnmarshalXMLAttr (_ggaca );continue ;};if _ggaca .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ggaca .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_agec .BwnormalAttr .UnmarshalXMLAttr (_ggaca );continue ;};if _ggaca .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ggaca .Name .Local =="\u0074\u0061r\u0067\u0065\u0074s\u0063\u0072\u0065\u0065\u006e\u0073\u0069\u007a\u0065"{_agec .TargetscreensizeAttr .UnmarshalXMLAttr (_ggaca );continue ;};if _ggaca .Name .Local =="\u0069\u0064"{_bcgda ,_ffcd :=_ggaca .Value ,error (nil );if _ffcd !=nil {return _ffcd ;};_agec .IdAttr =&_bcgda ;continue ;};if _ggaca .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_agec .FilledAttr .UnmarshalXMLAttr (_ggaca );continue ;};if _ggaca .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_eeabe ,_gafe :=_ggaca .Value ,error (nil );if _gafe !=nil {return _gafe ;};_agec .FillcolorAttr =&_eeabe ;continue ;};};_bacg :for {_fgag ,_bge :=d .Token ();if _bge !=nil {return _bge ;};switch _cfbde :=_fgag .(type ){case _e .StartElement :switch _cfbde .Name {case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_agec .Fill =NewFill ();if _egdf :=d .DecodeElement (_agec .Fill ,&_cfbde );_egdf !=nil {return _egdf ;};default:_g .Log ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073up\u0070\u006f\u0072\u0074\u0065\u0064 \u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u0042a\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064 \u0025\u0076",_cfbde .Name );if _ffec :=d .Skip ();_ffec !=nil {return _ffec ;};};case _e .EndElement :break _bacg ;case _e .CharData :};};return nil ;};func (_bdfga ST_StrokeJoinStyle )ValidateWithPath (path string )error {switch _bdfga {case 0,1,2,3:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_bdfga ));};return nil ;};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcSkew and its children
|
|
|
|
func (_eeccb *OfcSkew )Validate ()error {return _eeccb .ValidateWithPath ("\u004ff\u0063\u0053\u006b\u0065\u0077");};type OfcCT_Skew struct{IdAttr *string ;OnAttr _bg .ST_TrueFalse ;OffsetAttr *string ;OriginAttr *string ;MatrixAttr *string ;ExtAttr ST_Ext ;};func (_fffge OfcST_CalloutPlacement )ValidateWithPath (path string )error {switch _fffge {case 0,1,2,3,4:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fffge ));};return nil ;};func (_dcfcc *CT_Handles )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_bebfb :for {_aeeag ,_ddcea :=d .Token ();if _ddcea !=nil {return _ddcea ;};switch _bcffa :=_aeeag .(type ){case _e .StartElement :switch _bcffa .Name {case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0068"}:_eecg :=NewCT_H ();if _acff :=d .DecodeElement (_eecg ,&_bcffa );_acff !=nil {return _acff ;};_dcfcc .H =append (_dcfcc .H ,_eecg );default:_g .Log ("\u0073k\u0069\u0070p\u0069\u006e\u0067 \u0075\u006e\u0073\u0075\u0070\u0070\u006fr\u0074\u0065\u0064\u0020\u0065\u006ce\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005fH\u0061\u006e\u0064\u006c\u0065\u0073\u0020\u0025\u0076",_bcffa .Name );if _gbegc :=d .Skip ();_gbegc !=nil {return _gbegc ;};};case _e .EndElement :break _bebfb ;case _e .CharData :};};return nil ;};func (_gfae *Arc )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_gfae .CT_Arc =*NewCT_Arc ();for _ ,_feef :=range start .Attr {if _feef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_feef .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_gfae .UserdrawnAttr .UnmarshalXMLAttr (_feef );continue ;};if _feef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_feef .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_gfae .ButtonAttr .UnmarshalXMLAttr (_feef );continue ;};if _feef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_feef .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_gfae .DgmlayoutmruAttr .UnmarshalXMLAttr (_feef );continue ;};if _feef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_feef .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_gfae .UserhiddenAttr .UnmarshalXMLAttr (_feef );continue ;};if _feef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_feef .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_gfae .CliptowrapAttr .UnmarshalXMLAttr (_feef );continue ;};if _feef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_feef .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gfae .BulletAttr .UnmarshalXMLAttr (_feef );continue ;};if _feef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Line and its children
|
|
|
|
func (_geaf *CT_Line )Validate ()error {return _geaf .ValidateWithPath ("\u0043T\u005f\u004c\u0069\u006e\u0065");};func (_gde *AG_Ext )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {_dde ,_adge :=_gde .ExtAttr .MarshalXMLAttr (_e .Name {Local :"\u0065\u0078\u0074"});if _adge !=nil {return _adge ;};start .Attr =append (start .Attr ,_dde );start .Name .Local ="\u0076\u003a\u0041\u0047\u005f\u0045\u0078\u0074";return nil ;};type OfcCT_Extrusion struct{OnAttr _bg .ST_TrueFalse ;TypeAttr OfcST_ExtrusionType ;RenderAttr OfcST_ExtrusionRender ;ViewpointoriginAttr *string ;ViewpointAttr *string ;PlaneAttr OfcST_ExtrusionPlane ;SkewangleAttr *float32 ;SkewamtAttr *string ;ForedepthAttr *string ;BackdepthAttr *string ;OrientationAttr *string ;OrientationangleAttr *float32 ;LockrotationcenterAttr _bg .ST_TrueFalse ;AutorotationcenterAttr _bg .ST_TrueFalse ;RotationcenterAttr *string ;RotationangleAttr *string ;ColormodeAttr OfcST_ColorMode ;ColorAttr *string ;ShininessAttr *float32 ;SpecularityAttr *string ;DiffusityAttr *string ;MetalAttr _bg .ST_TrueFalse ;EdgeAttr *string ;FacetAttr *string ;LightfaceAttr _bg .ST_TrueFalse ;BrightnessAttr *string ;LightpositionAttr *string ;LightlevelAttr *string ;LightharshAttr _bg .ST_TrueFalse ;Lightposition2Attr *string ;Lightlevel2Attr *string ;Lightharsh2Attr _bg .ST_TrueFalse ;ExtAttr ST_Ext ;};func (_ccdfgg *OfcTop )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_ccdfgg .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_dcgeb :=range start .Attr {if _dcgeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcgeb .Name .Local =="\u0068\u0072\u0065\u0066"{_adbeb ,_gfbdg :=_dcgeb .Value ,error (nil );if _gfbdg !=nil {return _gfbdg ;};_ccdfgg .HrefAttr =&_adbeb ;continue ;};if _dcgeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcgeb .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_ccdfgg .ForcedashAttr .UnmarshalXMLAttr (_dcgeb );continue ;};if _dcgeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcgeb .Name .Local =="\u0074\u0069\u0074l\u0065"{_bgfad ,_ecdgc :=_dcgeb .Value ,error (nil );if _ecdgc !=nil {return _ecdgc ;};_ccdfgg .TitleAttr =&_bgfad ;continue ;};if _dcgeb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcgeb .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_bcfae ,_aecee :=_dcgeb .Value ,error (nil );if _aecee !=nil {return _aecee ;};_ccdfgg .AlthrefAttr =&_bcfae ;continue ;};if _dcgeb .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_ccdfgg .ImageaspectAttr .UnmarshalXMLAttr (_dcgeb );continue ;};if _dcgeb .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_ccdfgg .StartarrowAttr .UnmarshalXMLAttr (_dcgeb );continue ;};if _dcgeb .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_ccdfgg .LinestyleAttr .UnmarshalXMLAttr (_dcgeb );continue ;};if _dcgeb .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_ccdfgg .StartarrowwidthAttr .UnmarshalXMLAttr (_dcgeb );continue ;};if _dcgeb .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_ccdfgg .JoinstyleAttr .UnmarshalXMLAttr (_dcgeb );continue ;};if _dcgeb .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_ccdfgg .StartarrowlengthAttr .UnmarshalXMLAttr (
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcClippath and its children, prefixing error messages with path
|
|
|
|
func (_edddd *OfcClippath )ValidateWithPath (path string )error {if _addacb :=_edddd .OfcCT_ClipPath .ValidateWithPath (path );_addacb !=nil {return _addacb ;};return nil ;};func (_egabd OfcST_CalloutPlacement )Validate ()error {return _egabd .ValidateWithPath ("")};type Formulas struct{CT_Formulas };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_Type and its children, prefixing error messages with path
|
|
|
|
func (_feb *AG_Type )ValidateWithPath (path string )error {return nil };type ST_StrokeJoinStyle byte ;func (_dbgec *OfcST_ExtrusionPlane )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_dbgec =0;case "\u0058\u0059":*_dbgec =1;case "\u005a\u0058":*_dbgec =2;case "\u0059\u005a":*_dbgec =3;};return nil ;};type ST_StrokeArrowLength byte ;func (_eccb *CT_F )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _eccb .EqnAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0065\u0071\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_eccb .EqnAttr )});};e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Shadow and its children, prefixing error messages with path
|
|
|
|
func (_ebad *CT_Shadow )ValidateWithPath (path string )error {if _cbeeg :=_ebad .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_cbeeg !=nil {return _cbeeg ;};if _gafae :=_ebad .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_gafae !=nil {return _gafae ;};if _ggdc :=_ebad .ObscuredAttr .ValidateWithPath (path +"\u002f\u004f\u0062\u0073\u0063\u0075\u0072\u0065\u0064\u0041\u0074\u0074\u0072");_ggdc !=nil {return _ggdc ;};return nil ;};func (_efgbg ST_StrokeLineStyle )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_bdccac :=_e .Attr {};_bdccac .Name =name ;switch _efgbg {case ST_StrokeLineStyleUnset :_bdccac .Value ="";case ST_StrokeLineStyleSingle :_bdccac .Value ="\u0073\u0069\u006e\u0067\u006c\u0065";case ST_StrokeLineStyleThinThin :_bdccac .Value ="\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e";case ST_StrokeLineStyleThinThick :_bdccac .Value ="\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k";case ST_StrokeLineStyleThickThin :_bdccac .Value ="\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n";case ST_StrokeLineStyleThickBetweenThin :_bdccac .Value ="\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e";};return _bdccac ,nil ;};func (_effgdf ST_Ext )ValidateWithPath (path string )error {switch _effgdf {case 0,1,2,3:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_effgdf ));};return nil ;};func (_cgfac *OfcCT_Skew )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_gfegf :=range start .Attr {if _gfegf .Name .Local =="\u0069\u0064"{_bcfad ,_gcfdg :=_gfegf .Value ,error (nil );if _gcfdg !=nil {return _gcfdg ;};_cgfac .IdAttr =&_bcfad ;continue ;};if _gfegf .Name .Local =="\u006f\u006e"{_cgfac .OnAttr .UnmarshalXMLAttr (_gfegf );continue ;};if _gfegf .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_gaafc ,_gdcba :=_gfegf .Value ,error (nil );if _gdcba !=nil {return _gdcba ;};_cgfac .OffsetAttr =&_gaafc ;continue ;};if _gfegf .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_dedcg ,_eebded :=_gfegf .Value ,error (nil );if _eebded !=nil {return _eebded ;};_cgfac .OriginAttr =&_dedcg ;continue ;};if _gfegf .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_dfagef ,_dggdb :=_gfegf .Value ,error (nil );if _dggdb !=nil {return _dggdb ;};_cgfac .MatrixAttr =&_dfagef ;continue ;};if _gfegf .Name .Local =="\u0065\u0078\u0074"{_cgfac .ExtAttr .UnmarshalXMLAttr (_gfegf );continue ;};};for {_fdece ,_cgdcf :=d .Token ();if _cgdcf !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u006b\u0065\u0077\u003a\u0020%\u0073",_cgdcf );};if _ffgce ,_cafef :=_fdece .(_e .EndElement );_cafef &&_ffgce .Name ==start .Name {break ;};};return nil ;};func NewOval ()*Oval {_egdba :=&Oval {};_egdba .CT_Oval =*NewCT_Oval ();return _egdba };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Diagram and its children, prefixing error messages with path
|
|
|
|
func (_bacae *OfcCT_Diagram )ValidateWithPath (path string )error {if _cebad :=_bacae .AutoformatAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u0066\u006f\u0072\u006d\u0061\u0074\u0041\u0074\u0074\u0072");_cebad !=nil {return _cebad ;};if _baeca :=_bacae .ReverseAttr .ValidateWithPath (path +"\u002f\u0052\u0065v\u0065\u0072\u0073\u0065\u0041\u0074\u0074\u0072");_baeca !=nil {return _baeca ;};if _baeab :=_bacae .AutolayoutAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u006c\u0061\u0079\u006f\u0075\u0074\u0041\u0074\u0074\u0072");_baeab !=nil {return _baeab ;};if _bacae .Relationtable !=nil {if _gdddc :=_bacae .Relationtable .ValidateWithPath (path +"\u002f\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006et\u0061\u0062\u006c\u0065");_gdddc !=nil {return _gdddc ;};};if _ebge :=_bacae .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ebge !=nil {return _ebge ;};return nil ;};func NewOfcCT_SignatureLine ()*OfcCT_SignatureLine {_cggef :=&OfcCT_SignatureLine {};return _cggef };func (_fbcabc *OfcCT_ShapeLayout )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_gaege :=range start .Attr {if _gaege .Name .Local =="\u0065\u0078\u0074"{_fbcabc .ExtAttr .UnmarshalXMLAttr (_gaege );continue ;};};_bbdfa :for {_gfdad ,_agdda :=d .Token ();if _agdda !=nil {return _agdda ;};switch _fgbad :=_gfdad .(type ){case _e .StartElement :switch _fgbad .Name {case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0069\u0064\u006da\u0070"}:_fbcabc .Idmap =NewOfcCT_IdMap ();if _ccedc :=d .DecodeElement (_fbcabc .Idmap ,&_fgbad );_ccedc !=nil {return _ccedc ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u0067r\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065"}:_fbcabc .Regrouptable =NewOfcCT_RegroupTable ();if _ebbcab :=d .DecodeElement (_fbcabc .Regrouptable ,&_fgbad );_ebbcab !=nil {return _ebbcab ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0075\u006ce\u0073"}:_fbcabc .Rules =NewOfcCT_Rules ();if _gdfff :=d .DecodeElement (_fbcabc .Rules ,&_fgbad );_gdfff !=nil {return _gdfff ;};default:_g .Log ("\u0073\u006bi\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073\u0075\u0070p\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004c\u0061\u0079\u006f\u0075\u0074\u0020\u0025\u0076",_fgbad .Name );if _cbddf :=d .Skip ();_cbddf !=nil {return _cbddf ;};};case _e .EndElement :break _bbdfa ;case _e .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Callout and its children
|
|
|
|
func (_abfgg *OfcCT_Callout )Validate ()error {return _abfgg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};func (_gecefa *OfcCT_SignatureLine )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_fgebb :=range start .Attr {if _fgebb .Name .Local =="\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"{_fgbda ,_cbdga :=_fgebb .Value ,error (nil );if _cbdga !=nil {return _cbdga ;};_gecefa .SuggestedsignerAttr =&_fgbda ;continue ;};if _fgebb .Name .Local =="\u0069\u0064"{_cedec ,_ggdcg :=_fgebb .Value ,error (nil );if _ggdcg !=nil {return _ggdcg ;};_gecefa .IdAttr =&_cedec ;continue ;};if _fgebb .Name .Local =="\u0070\u0072\u006f\u0076\u0069\u0064"{_accba ,_afabg :=_fgebb .Value ,error (nil );if _afabg !=nil {return _afabg ;};_gecefa .ProvidAttr =&_accba ;continue ;};if _fgebb .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"{_gecefa .SigninginstructionssetAttr .UnmarshalXMLAttr (_fgebb );continue ;};if _fgebb .Name .Local =="\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"{_gecefa .AllowcommentsAttr .UnmarshalXMLAttr (_fgebb );continue ;};if _fgebb .Name .Local =="\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"{_gecefa .ShowsigndateAttr .UnmarshalXMLAttr (_fgebb );continue ;};if _fgebb .Name .Local =="\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"{_gecefa .IssignaturelineAttr .UnmarshalXMLAttr (_fgebb );continue ;};if _fgebb .Name .Local =="\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"{_fgaab ,_beeae :=_fgebb .Value ,error (nil );if _beeae !=nil {return _beeae ;};_gecefa .Suggestedsigner2Attr =&_fgaab ;continue ;};if _fgebb .Name .Local =="s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"{_ggfda ,_egagc :=_fgebb .Value ,error (nil );if _egagc !=nil {return _egagc ;};_gecefa .SuggestedsigneremailAttr =&_ggfda ;continue ;};if _fgebb .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"{_fdfgf ,_fbbda :=_fgebb .Value ,error (nil );if _fbbda !=nil {return _fbbda ;};_gecefa .SigninginstructionsAttr =&_fdfgf ;continue ;};if _fgebb .Name .Local =="\u0061d\u0064\u006c\u0078\u006d\u006c"{_daecc ,_bgbde :=_fgebb .Value ,error (nil );if _bgbde !=nil {return _bgbde ;};_gecefa .AddlxmlAttr =&_daecc ;continue ;};if _fgebb .Name .Local =="\u0073\u0069\u0067\u0070\u0072\u006f\u0076\u0075\u0072\u006c"{_ecbbd ,_bgeea :=_fgebb .Value ,error (nil );if _bgeea !=nil {return _bgeea ;};_gecefa .SigprovurlAttr =&_ecbbd ;continue ;};if _fgebb .Name .Local =="\u0065\u0078\u0074"{_gecefa .ExtAttr .UnmarshalXMLAttr (_fgebb );continue ;};};for {_bcabf ,_aaagf :=d .Token ();if _aaagf !=nil {return _a .Errorf ("\u0070\u0061\u0072s\u0069\u006e\u0067\u0020O\u0066\u0063\u0043\u0054\u005f\u0053\u0069g\u006e\u0061\u0074\u0075\u0072\u0065\u004c\u0069\u006e\u0065\u003a\u0020\u0025\u0073",_aaagf );};if _cgfeeg ,_cgeca :=_bcabf .(_e .EndElement );_cgeca &&_cgfeeg .Name ==start .Name {break ;};};return nil ;};type AG_OfficeShapeAttributes struct{SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _bg .ST_TrueFalse ;OleiconAttr _bg .ST_TrueFalse ;OleAttr _bg .ST_TrueFalseBlank ;PreferrelativeAttr _bg .ST_TrueFalse ;CliptowrapAttr _bg .ST_TrueFalse ;ClipAttr _bg .ST_TrueFalse ;};func (_ebgggd *Textpath )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_ebgggd .CT_TextPath =*NewCT_TextPath ();for _ ,_bdadg :=range start .Attr {if _bdadg .Name .Local =="\u006f\u006e"{_ebgggd .OnAttr .UnmarshalXMLAttr (_bdadg );continue ;};if _bdadg .Name .Local =="\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"{_ebgggd .FitshapeAttr .UnmarshalXMLAttr (_bdadg );continue ;};if _bdadg .Name .Local =="\u0066i\u0074\u0070\u0061\u0074\u0068"{_ebgggd .FitpathAt
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Imagedata and its children, prefixing error messages with path
|
|
|
|
func (_geaca *Imagedata )ValidateWithPath (path string )error {if _gcffb :=_geaca .CT_ImageData .ValidateWithPath (path );_gcffb !=nil {return _gcffb ;};return nil ;};type OfcEquationxml struct{OfcCT_EquationXml };func (_aeca *CT_Formulas )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {e .EncodeToken (start );if _aeca .F !=nil {_fgcf :=_e .StartElement {Name :_e .Name {Local :"\u0076\u003a\u0066"}};for _ ,_aecb :=range _aeca .F {e .EncodeElement (_aecb ,_fgcf );};};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_efbg *CT_Fill )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_becf :=range start .Attr {if _becf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_becf .Name .Local =="\u0064\u0065t\u0065\u0063\u0074m\u006f\u0075\u0073\u0065\u0063\u006c\u0069\u0063\u006b"{_efbg .DetectmouseclickAttr .UnmarshalXMLAttr (_becf );continue ;};if _becf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_becf .Name .Local =="\u0072\u0065\u006ci\u0064"{_bcfb ,_dacf :=_becf .Value ,error (nil );if _dacf !=nil {return _dacf ;};_efbg .RelidAttr =&_bcfb ;continue ;};if _becf .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_becf .Name .Local =="\u0069\u0064"||_becf .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_becf .Name .Local =="\u0069\u0064"{_eaba ,_gcdg :=_becf .Value ,error (nil );if _gcdg !=nil {return _gcdg ;};_efbg .IdAttr =&_eaba ;continue ;};if _becf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_becf .Name .Local =="\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u0032"{_fbbe ,_gabe :=_becf .Value ,error (nil );if _gabe !=nil {return _gabe ;};_efbg .Opacity2Attr =&_fbbe ;continue ;};if _becf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_becf .Name .Local =="\u0074\u0069\u0074l\u0065"{_cedb ,_gafd :=_becf .Value ,error (nil );if _gafd !=nil {return _gafd ;};_efbg .TitleAttr =&_cedb ;continue ;};if _becf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_becf .Name .Local =="\u0068\u0072\u0065\u0066"{_dcdaf ,_ffaea :=_becf .Value ,error (nil );if _ffaea !=nil {return _ffaea ;};_efbg .HrefAttr =&_dcdaf ;continue ;};if _becf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_becf .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_gaace ,_cgcad :=_becf .Value ,error (nil );if _cgcad !=nil {return _cgcad ;};_efbg .AlthrefAttr =&_gaace ;continue ;};if _becf .Name .Loca
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Curve and its children
|
|
|
|
func (_efca *CT_Curve )Validate ()error {return _efca .ValidateWithPath ("\u0043\u0054\u005f\u0043\u0075\u0072\u0076\u0065");};type CT_Curve struct{FromAttr *string ;Control1Attr *string ;Control2Attr *string ;ToAttr *string ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _bg .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _bg .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _bg .ST_TrueFalse ;ButtonAttr _bg .ST_TrueFalse ;UserhiddenAttr _bg .ST_TrueFalse ;BulletAttr _bg .ST_TrueFalse ;HrAttr _bg .ST_TrueFalse ;HrstdAttr _bg .ST_TrueFalse ;HrnoshadeAttr _bg .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _bg .ST_TrueFalse ;AllowoverlapAttr _bg .ST_TrueFalse ;UserdrawnAttr _bg .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _bg .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _bg .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _bg .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _bg .ST_TrueFalse ;OleiconAttr _bg .ST_TrueFalse ;OleAttr _bg .ST_TrueFalseBlank ;PreferrelativeAttr _bg .ST_TrueFalse ;CliptowrapAttr _bg .ST_TrueFalse ;ClipAttr _bg .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeLayout and its children, prefixing error messages with path
|
|
|
|
func (_cgdd *OfcCT_ShapeLayout )ValidateWithPath (path string )error {if _cgdd .Idmap !=nil {if _cccbed :=_cgdd .Idmap .ValidateWithPath (path +"\u002f\u0049\u0064\u006d\u0061\u0070");_cccbed !=nil {return _cccbed ;};};if _cgdd .Regrouptable !=nil {if _gcead :=_cgdd .Regrouptable .ValidateWithPath (path +"\u002f\u0052\u0065\u0067\u0072\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065");_gcead !=nil {return _gcead ;};};if _cgdd .Rules !=nil {if _eebec :=_cgdd .Rules .ValidateWithPath (path +"\u002f\u0052\u0075\u006c\u0065\u0073");_eebec !=nil {return _eebec ;};};if _efbbg :=_cgdd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_efbbg !=nil {return _efbbg ;};return nil ;};func (_dca *AG_Id )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_bdcd :=range start .Attr {if _bdcd .Name .Local =="\u0069\u0064"{_gcgd ,_bce :=_bdcd .Value ,error (nil );if _bce !=nil {return _bce ;};_dca .IdAttr =&_gcgd ;continue ;};};for {_fde ,_ddda :=d .Token ();if _ddda !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005f\u0049d\u003a\u0020\u0025\u0073",_ddda );};if _eecf ,_aca :=_fde .(_e .EndElement );_aca &&_eecf .Name ==start .Name {break ;};};return nil ;};func (_ccbdf *OfcCT_Diagram )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_fcee :=range start .Attr {if _fcee .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_fcafe ,_cegfeg :=_bc .ParseInt (_fcee .Value ,10,64);if _cegfeg !=nil {return _cegfeg ;};_ccbdf .DgmstyleAttr =&_fcafe ;continue ;};if _fcee .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_ccbdf .AutoformatAttr .UnmarshalXMLAttr (_fcee );continue ;};if _fcee .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_ccbdf .ReverseAttr .UnmarshalXMLAttr (_fcee );continue ;};if _fcee .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_ccbdf .AutolayoutAttr .UnmarshalXMLAttr (_fcee );continue ;};if _fcee .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_acagb ,_bdgg :=_bc .ParseInt (_fcee .Value ,10,64);if _bdgg !=nil {return _bdgg ;};_ccbdf .DgmscalexAttr =&_acagb ;continue ;};if _fcee .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_bbedd ,_ddebc :=_bc .ParseInt (_fcee .Value ,10,64);if _ddebc !=nil {return _ddebc ;};_ccbdf .DgmscaleyAttr =&_bbedd ;continue ;};if _fcee .Name .Local =="d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"{_bgce ,_egbab :=_bc .ParseInt (_fcee .Value ,10,64);if _egbab !=nil {return _egbab ;};_ccbdf .DgmfontsizeAttr =&_bgce ;continue ;};if _fcee .Name .Local =="\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"{_gfeda ,_gfdg :=_fcee .Value ,error (nil );if _gfdg !=nil {return _gfdg ;};_ccbdf .ConstrainboundsAttr =&_gfeda ;continue ;};if _fcee .Name .Local =="\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"{_aadd ,_egaa :=_bc .ParseInt (_fcee .Value ,10,64);if _egaa !=nil {return _egaa ;};_ccbdf .DgmbasetextscaleAttr =&_aadd ;continue ;};if _fcee .Name .Local =="\u0065\u0078\u0074"{_ccbdf .ExtAttr .UnmarshalXMLAttr (_fcee );continue ;};};_edabg :for {_fdgbe ,_dbgca :=d .Token ();if _dbgca !=nil {return _dbgca ;};switch _ggaec :=_fdgbe .(type ){case _e .StartElement :switch _ggaec .Name {case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065"}:_ccbdf .Relationtable =NewOfcCT_RelationTable ();if _caffc :=d .DecodeElement (_ccbdf .Relationtable ,&_ggaec );_caffc !=nil {return _caffc ;};default:_g .Log ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073up\u0070\u006f\u0072\u0074\u0065\u0064 \u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043T\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Group and its children
|
|
|
|
func (_acaeb *CT_Group )Validate ()error {return _acaeb .ValidateWithPath ("\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070");};func (_cdcfd *OfcCT_Relation )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _cdcfd .IdsrcAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064\u0073r\u0063"},Value :_a .Sprintf ("\u0025\u0076",*_cdcfd .IdsrcAttr )});};if _cdcfd .IddestAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064\u0064\u0065\u0073\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_cdcfd .IddestAttr )});};if _cdcfd .IdcntrAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064\u0063\u006e\u0074\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_cdcfd .IdcntrAttr )});};if _cdcfd .ExtAttr !=ST_ExtUnset {_ccccd ,_cbfccb :=_cdcfd .ExtAttr .MarshalXMLAttr (_e .Name {Local :"\u0065\u0078\u0074"});if _cbfccb !=nil {return _cbfccb ;};start .Attr =append (start .Attr ,_ccccd );};e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};type OfcCT_RelationTable struct{Rel []*OfcCT_Relation ;ExtAttr ST_Ext ;};func NewAG_AllCoreAttributes ()*AG_AllCoreAttributes {_ad :=&AG_AllCoreAttributes {};return _ad };func (_eagfb OfcST_FillType )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_eagfb .String (),start );};func (_acaff *CT_Shape )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_gbeab :=range start .Attr {if _gbeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeab .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_dabee ,_dedg :=_bc .ParseInt (_gbeab .Value ,10,64);if _dedg !=nil {return _dedg ;};_acaff .RegroupidAttr =&_dabee ;continue ;};if _gbeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeab .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_acaff .DoubleclicknotifyAttr .UnmarshalXMLAttr (_gbeab );continue ;};if _gbeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeab .Name .Local =="\u0063\u006c\u0069\u0070"{_acaff .ClipAttr .UnmarshalXMLAttr (_gbeab );continue ;};if _gbeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeab .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_acaff .ButtonAttr .UnmarshalXMLAttr (_gbeab );continue ;};if _gbeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeab .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_acaff .UserhiddenAttr .UnmarshalXMLAttr (_gbeab );continue ;};if _gbeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeab .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_acaff .BulletAttr .UnmarshalXMLAttr (_gbeab );continue ;};if _gbeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_F and its children, prefixing error messages with path
|
|
|
|
func (_ccbb *CT_F )ValidateWithPath (path string )error {return nil };func (_gddfc ST_StrokeArrowWidth )Validate ()error {return _gddfc .ValidateWithPath ("")};func (_ccfdcc OfcST_OLEType )Validate ()error {return _ccfdcc .ValidateWithPath ("")};func NewCT_Line ()*CT_Line {_cbda :=&CT_Line {};return _cbda };func (_aegaac ST_StrokeArrowWidth )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_adgfa :=_e .Attr {};_adgfa .Name =name ;switch _aegaac {case ST_StrokeArrowWidthUnset :_adgfa .Value ="";case ST_StrokeArrowWidthNarrow :_adgfa .Value ="\u006e\u0061\u0072\u0072\u006f\u0077";case ST_StrokeArrowWidthMedium :_adgfa .Value ="\u006d\u0065\u0064\u0069\u0075\u006d";case ST_StrokeArrowWidthWide :_adgfa .Value ="\u0077\u0069\u0064\u0065";};return _adgfa ,nil ;};func (_cdfga OfcST_ScreenSize )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_cdfga .String (),start );};func (_affe OfcST_FillType )ValidateWithPath (path string )error {switch _affe {case 0,1,2,3,4,5,6,7,8,9:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_affe ));};return nil ;};type AG_Chromakey struct{ChromakeyAttr *string ;};func (_faffa OfcST_ConnectType )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_efgdg :=_e .Attr {};_efgdg .Name =name ;switch _faffa {case OfcST_ConnectTypeUnset :_efgdg .Value ="";case OfcST_ConnectTypeNone :_efgdg .Value ="\u006e\u006f\u006e\u0065";case OfcST_ConnectTypeRect :_efgdg .Value ="\u0072\u0065\u0063\u0074";case OfcST_ConnectTypeSegments :_efgdg .Value ="\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073";case OfcST_ConnectTypeCustom :_efgdg .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _efgdg ,nil ;};func NewOfcInk ()*OfcInk {_bfcca :=&OfcInk {};_bfcca .OfcCT_Ink =*NewOfcCT_Ink ();return _bfcca };func (_dcdae *ST_ShadowType )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cgeee ,_gcbdg :=d .Token ();if _gcbdg !=nil {return _gcbdg ;};if _ffebfa ,_decfba :=_cgeee .(_e .EndElement );_decfba &&_ffebfa .Name ==start .Name {*_dcdae =1;return nil ;};if _faaff ,_baagc :=_cgeee .(_e .CharData );!_baagc {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_cgeee );}else {switch string (_faaff ){case "":*_dcdae =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_dcdae =1;case "\u0064\u006f\u0075\u0062\u006c\u0065":*_dcdae =2;case "\u0065\u006d\u0062\u006f\u0073\u0073":*_dcdae =3;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_dcdae =4;};};_cgeee ,_gcbdg =d .Token ();if _gcbdg !=nil {return _gcbdg ;};if _beegb ,_caage :=_cgeee .(_e .EndElement );_caage &&_beegb .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_cgeee );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_CoreAttributes and its children
|
|
|
|
func (_fcf *AG_CoreAttributes )Validate ()error {return _fcf .ValidateWithPath ("\u0041\u0047\u005f\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069b\u0075\u0074\u0065\u0073");};func (_aebb *AG_ShapeAttributes )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _aebb .OpacityAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_a .Sprintf ("\u0025\u0076",*_aebb .OpacityAttr )});};if _aebb .StrokedAttr !=_bg .ST_TrueFalseUnset {_cfaa ,_acc :=_aebb .StrokedAttr .MarshalXMLAttr (_e .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _acc !=nil {return _acc ;};start .Attr =append (start .Attr ,_cfaa );};if _aebb .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_aebb .StrokecolorAttr )});};if _aebb .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_aebb .StrokeweightAttr )});};if _aebb .InsetpenAttr !=_bg .ST_TrueFalseUnset {_fbdb ,_dfd :=_aebb .InsetpenAttr .MarshalXMLAttr (_e .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _dfd !=nil {return _dfd ;};start .Attr =append (start .Attr ,_fbdb );};if _aebb .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_a .Sprintf ("\u0025\u0076",*_aebb .ChromakeyAttr )});};if _aebb .FilledAttr !=_bg .ST_TrueFalseUnset {_fdf ,_accd :=_aebb .FilledAttr .MarshalXMLAttr (_e .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _accd !=nil {return _accd ;};start .Attr =append (start .Attr ,_fdf );};if _aebb .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_a .Sprintf ("\u0025\u0076",*_aebb .FillcolorAttr )});};return nil ;};func (_ccfbge ST_ImageAspect )Validate ()error {return _ccfbge .ValidateWithPath ("")};func (_cbdbg *OfcST_CalloutPlacement )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_cbdbg =0;case "\u0074\u006f\u0070":*_cbdbg =1;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_cbdbg =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_cbdbg =3;case "\u0075\u0073\u0065\u0072":*_cbdbg =4;};return nil ;};func (_bdgeb ST_FillType )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_faabfa :=_e .Attr {};_faabfa .Name =name ;switch _bdgeb {case ST_FillTypeUnset :_faabfa .Value ="";case ST_FillTypeSolid :_faabfa .Value ="\u0073\u006f\u006ci\u0064";case ST_FillTypeGradient :_faabfa .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case ST_FillTypeGradientRadial :_faabfa .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case ST_FillTypeTile :_faabfa .Value ="\u0074\u0069\u006c\u0065";case ST_FillTypePattern :_faabfa .Value ="\u0070a\u0074\u0074\u0065\u0072\u006e";case ST_FillTypeFrame :_faabfa .Value ="\u0066\u0072\u0061m\u0065";};return _faabfa ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Stroke and its children, prefixing error messages with path
|
|
|
|
func (_fefc *CT_Stroke )ValidateWithPath (path string )error {if _fefc .Left !=nil {if _geeca :=_fefc .Left .ValidateWithPath (path +"\u002f\u004c\u0065f\u0074");_geeca !=nil {return _geeca ;};};if _fefc .Top !=nil {if _aegbag :=_fefc .Top .ValidateWithPath (path +"\u002f\u0054\u006f\u0070");_aegbag !=nil {return _aegbag ;};};if _fefc .Right !=nil {if _cegca :=_fefc .Right .ValidateWithPath (path +"\u002f\u0052\u0069\u0067\u0068\u0074");_cegca !=nil {return _cegca ;};};if _fefc .Bottom !=nil {if _aaefb :=_fefc .Bottom .ValidateWithPath (path +"\u002fB\u006f\u0074\u0074\u006f\u006d");_aaefb !=nil {return _aaefb ;};};if _fefc .Column !=nil {if _fecgd :=_fefc .Column .ValidateWithPath (path +"\u002fC\u006f\u006c\u0075\u006d\u006e");_fecgd !=nil {return _fecgd ;};};if _aaacfa :=_fefc .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_aaacfa !=nil {return _aaacfa ;};if _ecfge :=_fefc .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_ecfge !=nil {return _ecfge ;};if _efbbc :=_fefc .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_efbbc !=nil {return _efbbc ;};if _eddfc :=_fefc .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_eddfc !=nil {return _eddfc ;};if _ccgeb :=_fefc .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_ccgeb !=nil {return _ccgeb ;};if _cabd :=_fefc .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_cabd !=nil {return _cabd ;};if _eaaf :=_fefc .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_eaaf !=nil {return _eaaf ;};if _fddbb :=_fefc .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_fddbb !=nil {return _fddbb ;};if _ecafg :=_fefc .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_ecafg !=nil {return _ecafg ;};if _dfeeg :=_fefc .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_dfeeg !=nil {return _dfeeg ;};if _egafa :=_fefc .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_egafa !=nil {return _egafa ;};if _ccaaf :=_fefc .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_ccaaf !=nil {return _ccaaf ;};if _dfeb :=_fefc .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_dfeb !=nil {return _dfeb ;};if _bdacfg :=_fefc .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_bdacfg !=nil {return _bdacfg ;};if _deffg :=_fefc .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_deffg !=nil {return _deffg ;};return nil ;};func (_gefba *OfcCT_Extrusion )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_faaaa :=range start .Attr {if _faaaa .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_gefba .ColormodeAttr .UnmarshalXMLAttr (_faaaa );continue ;};if _faaaa .Name .Local =="\u0063\u006f\u006co\u0072"{_eebbg ,_gdbge :=_faaaa .Value ,error (nil );if _gdbge !=nil {return _gdbge ;};_gefba .ColorAttr =&_eebbg ;continue ;};if _faaaa .Name .Local =="\u0074\u0079\u0070\u0065"{_gefba .TypeAttr .UnmarshalXMLAttr (_faaaa );continue ;};if _faaaa .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_bdcdd ,_eccace :=_bc .ParseFloat (_faaaa .Value ,64);if _eccace !=
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Textpath and its children
|
|
|
|
func (_cfabec *Textpath )Validate ()error {return _cfabec .ValidateWithPath ("\u0054\u0065\u0078\u0074\u0070\u0061\u0074\u0068");};type OfcST_OLEUpdateMode byte ;func (_cfcabd OfcST_ScreenSize )String ()string {switch _cfcabd {case 0:return "";case 1:return "\u00354\u0034\u002c\u0033\u0037\u0036";case 2:return "\u00364\u0030\u002c\u0034\u0038\u0030";case 3:return "\u00372\u0030\u002c\u0035\u0031\u0032";case 4:return "\u00380\u0030\u002c\u0036\u0030\u0030";case 5:return "\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038";case 6:return "\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032";};return "";};func NewCurve ()*Curve {_accec :=&Curve {};_accec .CT_Curve =*NewCT_Curve ();return _accec };func (_dadbe OfcST_HrAlign )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_dadbe .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Textbox and its children
|
|
|
|
func (_gfbdc *CT_Textbox )Validate ()error {return _gfbdc .ValidateWithPath ("\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");};type Roundrect struct{CT_RoundRect };func (_eagbe OfcST_DiagramLayout )ValidateWithPath (path string )error {switch _eagbe {case 0,1,2,3,4:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_eagbe ));};return nil ;};func (_bgcea ST_FillType )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_bgcea .String (),start );};func NewPath ()*Path {_bdbcd :=&Path {};_bdbcd .CT_Path =*NewCT_Path ();return _bdbcd };func (_agegd OfcST_OLEUpdateMode )ValidateWithPath (path string )error {switch _agegd {case 0,1,2:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_agegd ));};return nil ;};func (_ecbcf OfcST_OLEType )ValidateWithPath (path string )error {switch _ecbcf {case 0,1,2:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ecbcf ));};return nil ;};func (_fbbbd *CT_Shape )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _fbbbd .GfxdataAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f:\u0067\u0066\u0078\u0064\u0061\u0074a"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .GfxdataAttr )});};if _fbbbd .EquationxmlAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"e\u0071\u0075\u0061\u0074\u0069\u006f\u006e\u0078\u006d\u006c"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .EquationxmlAttr )});};if _fbbbd .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .HrefAttr )});};if _fbbbd .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .TargetAttr )});};if _fbbbd .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .ClassAttr )});};if _fbbbd .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .TitleAttr )});};if _fbbbd .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .AltAttr )});};if _fbbbd .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .CoordsizeAttr )});};if _fbbbd .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .CoordoriginAttr )});};if _fbbbd .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .WrapcoordsAttr )});};if _fbbbd .PrintAttr !=_bg .ST_TrueFalseUnset {_fdacd ,_gceedc :=_fbbbd .PrintAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0069n\u0074"});if _gceedc !=nil {return _gceedc ;};start .Attr =append (start .Attr ,_fdacd );};if _fbbbd .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .IdAttr )});};if _fbbbd .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_fbbbd .StyleAttr )});};if _fbbbd .SpidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_a .S
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcInk and its children
|
|
|
|
func (_cfeeb *OfcInk )Validate ()error {return _cfeeb .ValidateWithPath ("\u004f\u0066\u0063\u0049\u006e\u006b");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcLeft and its children
|
|
|
|
func (_defg *OfcLeft )Validate ()error {return _defg .ValidateWithPath ("\u004ff\u0063\u004c\u0065\u0066\u0074");};func (_bgebg *OfcST_ExtrusionType )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_aaaeb ,_eafda :=d .Token ();if _eafda !=nil {return _eafda ;};if _bdeg ,_ccgff :=_aaaeb .(_e .EndElement );_ccgff &&_bdeg .Name ==start .Name {*_bgebg =1;return nil ;};if _bebgg ,_gcgfg :=_aaaeb .(_e .CharData );!_gcgfg {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_aaaeb );}else {switch string (_bebgg ){case "":*_bgebg =0;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_bgebg =1;case "\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c":*_bgebg =2;};};_aaaeb ,_eafda =d .Token ();if _eafda !=nil {return _eafda ;};if _dgacd ,_cfbab :=_aaaeb .(_e .EndElement );_cfbab &&_dgacd .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_aaaeb );};type OfcCT_ClipPath struct{VAttr string ;};func (_eabadf *OfcST_BWMode )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cfad ,_dgbedf :=d .Token ();if _dgbedf !=nil {return _dgbedf ;};if _geegf ,_cccgf :=_cfad .(_e .EndElement );_cccgf &&_geegf .Name ==start .Name {*_eabadf =1;return nil ;};if _ggcda ,_bbfbf :=_cfad .(_e .CharData );!_bbfbf {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_cfad );}else {switch string (_ggcda ){case "":*_eabadf =0;case "\u0063\u006f\u006co\u0072":*_eabadf =1;case "\u0061\u0075\u0074\u006f":*_eabadf =2;case "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce":*_eabadf =3;case "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065":*_eabadf =4;case "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079":*_eabadf =5;case "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065":*_eabadf =6;case "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074":*_eabadf =7;case "\u0062\u006c\u0061c\u006b":*_eabadf =8;case "\u0077\u0068\u0069t\u0065":*_eabadf =9;case "\u0068\u0069\u0064\u0065":*_eabadf =10;case "\u0075n\u0064\u0072\u0061\u0077\u006e":*_eabadf =11;case "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073":*_eabadf =12;};};_cfad ,_dgbedf =d .Token ();if _dgbedf !=nil {return _dgbedf ;};if _gfbbg ,_egbdag :=_cfad .(_e .EndElement );_egbdag &&_gfbbg .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_cfad );};func (_gagab OfcST_FillType )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_bgbf :=_e .Attr {};_bgbf .Name =name ;switch _gagab {case OfcST_FillTypeUnset :_bgbf .Value ="";case OfcST_FillTypeGradientCenter :_bgbf .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072";case OfcST_FillTypeSolid :_bgbf .Value ="\u0073\u006f\u006ci\u0064";case OfcST_FillTypePattern :_bgbf .Value ="\u0070a\u0074\u0074\u0065\u0072\u006e";case OfcST_FillTypeTile :_bgbf .Value ="\u0074\u0069\u006c\u0065";case OfcST_FillTypeFrame :_bgbf .Value ="\u0066\u0072\u0061m\u0065";case OfcST_FillTypeGradientUnscaled :_bgbf .Value ="\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064";case OfcST_FillTypeGradientRadial :_bgbf .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case OfcST_FillTypeGradient :_bgbf .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case OfcST_FillTypeBackground :_bgbf .Value ="\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";};return _bgbf ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcSignatureline and its children, prefixing error messages with path
|
|
|
|
func (_abcgf *OfcSignatureline )ValidateWithPath (path string )error {if _fcfdf :=_abcgf .OfcCT_SignatureLine .ValidateWithPath (path );_fcfdf !=nil {return _fcfdf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Shapetype and its children
|
|
|
|
func (_aebdb *Shapetype )Validate ()error {return _aebdb .ValidateWithPath ("\u0053h\u0061\u0070\u0065\u0074\u0079\u0070e");};func (_fbgbe ST_ImageAspect )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_fbgbe .String (),start );};func (_dddg *CT_Formulas )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_dabfg :for {_cceg ,_gbdbg :=d .Token ();if _gbdbg !=nil {return _gbdbg ;};switch _eacbc :=_cceg .(type ){case _e .StartElement :switch _eacbc .Name {case _e .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066"}:_eedc :=NewCT_F ();if _cbga :=d .DecodeElement (_eedc ,&_eacbc );_cbga !=nil {return _cbga ;};_dddg .F =append (_dddg .F ,_eedc );default:_g .Log ("\u0073\u006bi\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073\u0020\u0025\u0076",_eacbc .Name );if _ddcbc :=d .Skip ();_ddcbc !=nil {return _ddcbc ;};};case _e .EndElement :break _dabfg ;case _e .CharData :};};return nil ;};func NewRect ()*Rect {_ebbed :=&Rect {};_ebbed .CT_Rect =*NewCT_Rect ();return _ebbed };const (ST_StrokeArrowWidthUnset ST_StrokeArrowWidth =0;ST_StrokeArrowWidthNarrow ST_StrokeArrowWidth =1;ST_StrokeArrowWidthMedium ST_StrokeArrowWidth =2;ST_StrokeArrowWidthWide ST_StrokeArrowWidth =3;);func NewOfcCT_ClipPath ()*OfcCT_ClipPath {_adddc :=&OfcCT_ClipPath {};return _adddc };type OfcCT_R struct{IdAttr string ;TypeAttr OfcST_RType ;HowAttr OfcST_How ;IdrefAttr *string ;Proxy []*OfcCT_Proxy ;};type CT_F struct{EqnAttr *string ;};func NewShadow ()*Shadow {_dafgg :=&Shadow {};_dafgg .CT_Shadow =*NewCT_Shadow ();return _dafgg };type OfcCT_StrokeChild struct{OnAttr _bg .ST_TrueFalse ;WeightAttr *string ;ColorAttr *string ;Color2Attr *string ;OpacityAttr *string ;LinestyleAttr ST_StrokeLineStyle ;MiterlimitAttr *float64 ;JoinstyleAttr ST_StrokeJoinStyle ;EndcapAttr ST_StrokeEndCap ;DashstyleAttr *string ;InsetpenAttr _bg .ST_TrueFalse ;FilltypeAttr ST_FillType ;SrcAttr *string ;ImageaspectAttr ST_ImageAspect ;ImagesizeAttr *string ;ImagealignshapeAttr _bg .ST_TrueFalse ;StartarrowAttr ST_StrokeArrowType ;StartarrowwidthAttr ST_StrokeArrowWidth ;StartarrowlengthAttr ST_StrokeArrowLength ;EndarrowAttr ST_StrokeArrowType ;EndarrowwidthAttr ST_StrokeArrowWidth ;EndarrowlengthAttr ST_StrokeArrowLength ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;ForcedashAttr _bg .ST_TrueFalse ;ExtAttr ST_Ext ;};type OfcST_ExtrusionType byte ;func NewOfcCT_OLEObject ()*OfcCT_OLEObject {_dagag :=&OfcCT_OLEObject {};return _dagag };func NewTextpath ()*Textpath {_gbcbg :=&Textpath {};_gbcbg .CT_TextPath =*NewCT_TextPath ();return _gbcbg ;};func NewAG_Ext ()*AG_Ext {_fbge :=&AG_Ext {};_fbge .ExtAttr =ST_Ext (1);return _fbge };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcTop and its children
|
|
|
|
func (_afcffc *OfcTop )Validate ()error {return _afcffc .ValidateWithPath ("\u004f\u0066\u0063\u0054\u006f\u0070");};func (_ccagd ST_StrokeEndCap )String ()string {switch _ccagd {case 0:return "";case 1:return "\u0066\u006c\u0061\u0074";case 2:return "\u0073\u0071\u0075\u0061\u0072\u0065";case 3:return "\u0072\u006f\u0075n\u0064";};return "";};func (_ecffb OfcST_ExtrusionPlane )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_ddaf :=_e .Attr {};_ddaf .Name =name ;switch _ecffb {case OfcST_ExtrusionPlaneUnset :_ddaf .Value ="";case OfcST_ExtrusionPlaneXY :_ddaf .Value ="\u0058\u0059";case OfcST_ExtrusionPlaneZX :_ddaf .Value ="\u005a\u0058";case OfcST_ExtrusionPlaneYZ :_ddaf .Value ="\u0059\u005a";};return _ddaf ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Roundrect and its children, prefixing error messages with path
|
|
|
|
func (_gccfb *Roundrect )ValidateWithPath (path string )error {if _efcgf :=_gccfb .CT_RoundRect .ValidateWithPath (path );_efcgf !=nil {return _efcgf ;};return nil ;};func (_gdade *ST_StrokeArrowLength )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_ffeg ,_gdffb :=d .Token ();if _gdffb !=nil {return _gdffb ;};if _bcaaa ,_ebadg :=_ffeg .(_e .EndElement );_ebadg &&_bcaaa .Name ==start .Name {*_gdade =1;return nil ;};if _faggf ,_dcfdc :=_ffeg .(_e .CharData );!_dcfdc {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_ffeg );}else {switch string (_faggf ){case "":*_gdade =0;case "\u0073\u0068\u006fr\u0074":*_gdade =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_gdade =2;case "\u006c\u006f\u006e\u0067":*_gdade =3;};};_ffeg ,_gdffb =d .Token ();if _gdffb !=nil {return _gdffb ;};if _ffgge ,_ddbfg :=_ffeg .(_e .EndElement );_ddbfg &&_ffgge .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_ffeg );};func (_gfgca *Roundrect )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _gfgca .CT_RoundRect .MarshalXML (e ,start );};func (_gcbfe *OfcExtrusion )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_gcbfe .OfcCT_Extrusion =*NewOfcCT_Extrusion ();for _ ,_dcafde :=range start .Attr {if _dcafde .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_gcbfe .ColormodeAttr .UnmarshalXMLAttr (_dcafde );continue ;};if _dcafde .Name .Local =="\u0063\u006f\u006co\u0072"{_bgcfc ,_bdged :=_dcafde .Value ,error (nil );if _bdged !=nil {return _bdged ;};_gcbfe .ColorAttr =&_bgcfc ;continue ;};if _dcafde .Name .Local =="\u0074\u0079\u0070\u0065"{_gcbfe .TypeAttr .UnmarshalXMLAttr (_dcafde );continue ;};if _dcafde .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_bdbgef ,_fbcaa :=_bc .ParseFloat (_dcafde .Value ,64);if _fbcaa !=nil {return _fbcaa ;};_adadd :=float32 (_bdbgef );_gcbfe .ShininessAttr =&_adadd ;continue ;};if _dcafde .Name .Local =="\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"{_gbgfagf ,_cbgcg :=_dcafde .Value ,error (nil );if _cbgcg !=nil {return _cbgcg ;};_gcbfe .ViewpointoriginAttr =&_gbgfagf ;continue ;};if _dcafde .Name .Local =="s\u0070\u0065\u0063\u0075\u006c\u0061\u0072\u0069\u0074\u0079"{_cbcga ,_ccecfc :=_dcafde .Value ,error (nil );if _ccecfc !=nil {return _ccecfc ;};_gcbfe .SpecularityAttr =&_cbcga ;continue ;};if _dcafde .Name .Local =="\u0070\u006c\u0061n\u0065"{_gcbfe .PlaneAttr .UnmarshalXMLAttr (_dcafde );continue ;};if _dcafde .Name .Local =="\u0064i\u0066\u0066\u0075\u0073\u0069\u0074y"{_fgdgbg ,_aggafg :=_dcafde .Value ,error (nil );if _aggafg !=nil {return _aggafg ;};_gcbfe .DiffusityAttr =&_fgdgbg ;continue ;};if _dcafde .Name .Local =="\u0073k\u0065\u0077\u0061\u006d\u0074"{_bffaf ,_efbff :=_dcafde .Value ,error (nil );if _efbff !=nil {return _efbff ;};_gcbfe .SkewamtAttr =&_bffaf ;continue ;};if _dcafde .Name .Local =="\u006d\u0065\u0074a\u006c"{_gcbfe .MetalAttr .UnmarshalXMLAttr (_dcafde );continue ;};if _dcafde .Name .Local =="\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"{_fddgf ,_adgcb :=_dcafde .Value ,error (nil );if _adgcb !=nil {return _adgcb ;};_gcbfe .BackdepthAttr =&_fddgf ;continue ;};if _dcafde .Name .Local =="\u0065\u0064\u0067\u0065"{_gegba ,_agbag :=_dcafde .Value ,error (nil );if _agbag !=nil {return _agbag ;};_gcbfe .EdgeAttr =&_gegba ;continue ;};if _dcafde .Name .Local =="l\u0069\u0067\u0068\u0074\u006c\u0065\u0076\u0065\u006c\u0032"{_bdcgd ,_acbfa :=_dcafde .Value ,error (nil );if _acbfa !=nil {return _acbfa ;};_gcbfe .Lightlevel2Attr =&_bdcgd ;continue ;};if _dcafde .Name .Local =="\u006f\u0072i\u0065\u006e\u0074a\u0074\u0069\u006f\u006e\u0061\u006e\u0067\u006c\u0065"{_ggdaf ,_gfaad :=_bc .ParseFloat (_dcafde .Value ,64);if _gfaad !=nil {return _gfaad ;};_eaafc :=float32 (_ggdaf );_gcbfe .OrientationangleAttr =&_eaafc ;con
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcExtrusion and its children
|
|
|
|
func (_bgdge *OfcExtrusion )Validate ()error {return _bgdge .ValidateWithPath ("\u004f\u0066\u0063E\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Stroke and its children
|
|
|
|
func (_fagg *Stroke )Validate ()error {return _fagg .ValidateWithPath ("\u0053\u0074\u0072\u006f\u006b\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Oval and its children
|
|
|
|
func (_abfg *CT_Oval )Validate ()error {return _abfg .ValidateWithPath ("\u0043T\u005f\u004f\u0076\u0061\u006c");};func NewOfcCT_StrokeChild ()*OfcCT_StrokeChild {_eadb :=&OfcCT_StrokeChild {};return _eadb };func (_dbdbde *OfcST_BWMode )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_dbdbde =0;case "\u0063\u006f\u006co\u0072":*_dbdbde =1;case "\u0061\u0075\u0074\u006f":*_dbdbde =2;case "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce":*_dbdbde =3;case "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065":*_dbdbde =4;case "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079":*_dbdbde =5;case "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065":*_dbdbde =6;case "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074":*_dbdbde =7;case "\u0062\u006c\u0061c\u006b":*_dbdbde =8;case "\u0077\u0068\u0069t\u0065":*_dbdbde =9;case "\u0068\u0069\u0064\u0065":*_dbdbde =10;case "\u0075n\u0064\u0072\u0061\u0077\u006e":*_dbdbde =11;case "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073":*_dbdbde =12;};return nil ;};func (_ggcdd ST_Ext )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_fccbe :=_e .Attr {};_fccbe .Name =name ;switch _ggcdd {case ST_ExtUnset :_fccbe .Value ="";case ST_ExtView :_fccbe .Value ="\u0076\u0069\u0065\u0077";case ST_ExtEdit :_fccbe .Value ="\u0065\u0064\u0069\u0074";case ST_ExtBackwardCompatible :_fccbe .Value ="\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065";};return _fccbe ,nil ;};func (_caebd OfcST_OLEUpdateMode )String ()string {switch _caebd {case 0:return "";case 1:return "\u0041\u006c\u0077\u0061\u0079\u0073";case 2:return "\u004f\u006e\u0043\u0061\u006c\u006c";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Lock and its children
|
|
|
|
func (_ddfbd *OfcCT_Lock )Validate ()error {return _ddfbd .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u004c\u006f\u0063\u006b");};func (_dfebf *OfcCT_Callout )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_cbggf :=range start .Attr {if _cbggf .Name .Local =="\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"{_dfebf .LengthspecifiedAttr .UnmarshalXMLAttr (_cbggf );continue ;};if _cbggf .Name .Local =="\u006f\u006e"{_dfebf .OnAttr .UnmarshalXMLAttr (_cbggf );continue ;};if _cbggf .Name .Local =="\u0067\u0061\u0070"{_bddaf ,_ffbded :=_cbggf .Value ,error (nil );if _ffbded !=nil {return _ffbded ;};_dfebf .GapAttr =&_bddaf ;continue ;};if _cbggf .Name .Local =="\u0061\u006e\u0067l\u0065"{_dfebf .AngleAttr .UnmarshalXMLAttr (_cbggf );continue ;};if _cbggf .Name .Local =="\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"{_dfebf .DropautoAttr .UnmarshalXMLAttr (_cbggf );continue ;};if _cbggf .Name .Local =="\u0064\u0072\u006f\u0070"{_ceaee ,_cacea :=_cbggf .Value ,error (nil );if _cacea !=nil {return _cacea ;};_dfebf .DropAttr =&_ceaee ;continue ;};if _cbggf .Name .Local =="\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"{_afafc ,_cccbe :=_cbggf .Value ,error (nil );if _cccbe !=nil {return _cccbe ;};_dfebf .DistanceAttr =&_afafc ;continue ;};if _cbggf .Name .Local =="\u0074\u0079\u0070\u0065"{_cfecb ,_bfcc :=_cbggf .Value ,error (nil );if _bfcc !=nil {return _bfcc ;};_dfebf .TypeAttr =&_cfecb ;continue ;};if _cbggf .Name .Local =="\u006c\u0065\u006e\u0067\u0074\u0068"{_aefdf ,_ddece :=_cbggf .Value ,error (nil );if _ddece !=nil {return _ddece ;};_dfebf .LengthAttr =&_aefdf ;continue ;};if _cbggf .Name .Local =="\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"{_dfebf .AccentbarAttr .UnmarshalXMLAttr (_cbggf );continue ;};if _cbggf .Name .Local =="\u0074\u0065\u0078\u0074\u0062\u006f\u0072\u0064\u0065\u0072"{_dfebf .TextborderAttr .UnmarshalXMLAttr (_cbggf );continue ;};if _cbggf .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0078"{_dfebf .MinusxAttr .UnmarshalXMLAttr (_cbggf );continue ;};if _cbggf .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0079"{_dfebf .MinusyAttr .UnmarshalXMLAttr (_cbggf );continue ;};if _cbggf .Name .Local =="\u0065\u0078\u0074"{_dfebf .ExtAttr .UnmarshalXMLAttr (_cbggf );continue ;};};for {_cbaeed ,_ccfbg :=d .Token ();if _ccfbg !=nil {return _a .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u0061l\u006c\u006f\u0075\u0074\u003a\u0020\u0025s",_ccfbg );};if _agcdee ,_egbd :=_cbaeed .(_e .EndElement );_egbd &&_agcdee .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_SignatureLine and its children
|
|
|
|
func (_eecde *OfcCT_SignatureLine )Validate ()error {return _eecde .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u004c\u0069\u006e\u0065");};func (_aacea *OfcCT_OLEObject )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_cbdfc :=range start .Attr {if _cbdfc .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_cbdfc .Name .Local =="\u0069\u0064"||_cbdfc .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_cbdfc .Name .Local =="\u0069\u0064"{_cagf ,_accgf :=_cbdfc .Value ,error (nil );if _accgf !=nil {return _accgf ;};_aacea .IdAttr =&_cagf ;continue ;};if _cbdfc .Name .Local =="\u0054\u0079\u0070\u0065"{_aacea .TypeAttr .UnmarshalXMLAttr (_cbdfc );continue ;};if _cbdfc .Name .Local =="\u0050\u0072\u006f\u0067\u0049\u0044"{_cfdaa ,_edadc :=_cbdfc .Value ,error (nil );if _edadc !=nil {return _edadc ;};_aacea .ProgIDAttr =&_cfdaa ;continue ;};if _cbdfc .Name .Local =="\u0053h\u0061\u0070\u0065\u0049\u0044"{_aedfc ,_adecf :=_cbdfc .Value ,error (nil );if _adecf !=nil {return _adecf ;};_aacea .ShapeIDAttr =&_aedfc ;continue ;};if _cbdfc .Name .Local =="\u0044\u0072\u0061\u0077\u0041\u0073\u0070\u0065\u0063\u0074"{_aacea .DrawAspectAttr .UnmarshalXMLAttr (_cbdfc );continue ;};if _cbdfc .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0049\u0044"{_efgde ,_cegfg :=_cbdfc .Value ,error (nil );if _cegfg !=nil {return _cegfg ;};_aacea .ObjectIDAttr =&_efgde ;continue ;};if _cbdfc .Name .Local =="\u0055\u0070\u0064\u0061\u0074\u0065\u004d\u006f\u0064\u0065"{_aacea .UpdateModeAttr .UnmarshalXMLAttr (_cbdfc );continue ;};};_beebde :for {_gabff ,_cgaeb :=d .Token ();if _cgaeb !=nil {return _cgaeb ;};switch _bddd :=_gabff .(type ){case _e .StartElement :switch _bddd .Name {case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u004c\u0069\u006e\u006b\u0054\u0079\u0070\u0065"}:_aacea .LinkType =new (string );if _ccgce :=d .DecodeElement (_aacea .LinkType ,&_bddd );_ccgce !=nil {return _ccgce ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"L\u006f\u0063\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064"}:_aacea .LockedField =_bg .ST_TrueFalseBlankUnset ;if _abacg :=d .DecodeElement (&_aacea .LockedField ,&_bddd );_abacg !=nil {return _abacg ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0046\u0069\u0065\u006c\u0064\u0043\u006f\u0064\u0065\u0073"}:_aacea .FieldCodes =new (string );if _ffceb :=d .DecodeElement (_aacea .FieldCodes ,&_bddd );_ffceb !=nil {return _ffceb ;};default:_g .Log ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074e\u0064\u0020\u0065\u006c\u0065\u006d\u0065n\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005fO\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074\u0020\u0025\u0076",_bddd .Name );if _gbbeg :=d .Skip ();_gbbeg !=nil {return _gbbeg ;};};case _e .EndElement :break _beebde ;cas
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Shape and its children, prefixing error messages with path
|
|
|
|
func (_dcgfb *CT_Shape )ValidateWithPath (path string )error {for _bedbg ,_beaba :=range _dcgfb .Ink {if _eebdd :=_beaba .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_bedbg ));_eebdd !=nil {return _eebdd ;};};for _cfcb ,_fdbdc :=range _dcgfb .Iscomment {if _dbffg :=_fdbdc .ValidateWithPath (_a .Sprintf ("\u0025\u0073/\u0049\u0073\u0063o\u006d\u006d\u0065\u006e\u0074\u005b\u0025\u0064\u005d",path ,_cfcb ));_dbffg !=nil {return _dbffg ;};};for _cegg ,_fgaca :=range _dcgfb .Equationxml {if _acbg :=_fgaca .ValidateWithPath (_a .Sprintf ("\u0025s\u002fE\u0071\u0075\u0061\u0074\u0069o\u006e\u0078m\u006c\u005b\u0025\u0064\u005d",path ,_cegg ));_acbg !=nil {return _acbg ;};};for _ecdc ,_efebb :=range _dcgfb .EG_ShapeElements {if _abcdc :=_efebb .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_ecdc ));_abcdc !=nil {return _abcdc ;};};if _adfd :=_dcgfb .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_adfd !=nil {return _adfd ;};if _afee :=_dcgfb .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_afee !=nil {return _afee ;};if _dgfdc :=_dcgfb .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_dgfdc !=nil {return _dgfdc ;};if _bfgcb :=_dcgfb .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_bfgcb !=nil {return _bfgcb ;};if _debbe :=_dcgfb .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_debbe !=nil {return _debbe ;};if _fedbe :=_dcgfb .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_fedbe !=nil {return _fedbe ;};if _efcdad :=_dcgfb .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_efcdad !=nil {return _efcdad ;};if _bfgab :=_dcgfb .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_bfgab !=nil {return _bfgab ;};if _cafgc :=_dcgfb .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cafgc !=nil {return _cafgc ;};if _eegbc :=_dcgfb .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_eegbc !=nil {return _eegbc ;};if _degb :=_dcgfb .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_degb !=nil {return _degb ;};if _edgbf :=_dcgfb .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_edgbf !=nil {return _edgbf ;};if _cbea :=_dcgfb .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_cbea !=nil {return _cbea ;};if _dfcecg :=_dcgfb .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_dfcecg !=nil {return _dfcecg ;};if _fbac :=_dcgfb .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_fbac !=nil {return _fbac ;};if _fefad :=_dcgfb .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fefad !=nil {return _fefad ;};if _geefb :=_dcgfb .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_geefb !=nil {return _geefb ;};if _ceab :=_dcgfb .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ceab !=nil {return _ceab ;};if _bddea :=_dcgfb .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcExtrusion and its children, prefixing error messages with path
|
|
|
|
func (_bdage *OfcExtrusion )ValidateWithPath (path string )error {if _bafaf :=_bdage .OfcCT_Extrusion .ValidateWithPath (path );_bafaf !=nil {return _bafaf ;};return nil ;};const (OfcST_HrAlignUnset OfcST_HrAlign =0;OfcST_HrAlignLeft OfcST_HrAlign =1;OfcST_HrAlignRight OfcST_HrAlign =2;OfcST_HrAlignCenter OfcST_HrAlign =3;);type OfcCT_Rules struct{R []*OfcCT_R ;ExtAttr ST_Ext ;};func (_dcfdcc OfcST_InsetMode )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_afdc :=_e .Attr {};_afdc .Name =name ;switch _dcfdcc {case OfcST_InsetModeUnset :_afdc .Value ="";case OfcST_InsetModeAuto :_afdc .Value ="\u0061\u0075\u0074\u006f";case OfcST_InsetModeCustom :_afdc .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _afdc ,nil ;};func (_adff *OfcLeft )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u006c\u0065\u0066\u0074";return _adff .OfcCT_StrokeChild .MarshalXML (e ,start );};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Handles and its children
|
|
|
|
func (_eecac *Handles )Validate ()error {return _eecac .ValidateWithPath ("\u0048a\u006e\u0064\u006c\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcBottom and its children, prefixing error messages with path
|
|
|
|
func (_dbacc *OfcBottom )ValidateWithPath (path string )error {if _gfddd :=_dbacc .OfcCT_StrokeChild .ValidateWithPath (path );_gfddd !=nil {return _gfddd ;};return nil ;};func NewCT_Handles ()*CT_Handles {_cbac :=&CT_Handles {};return _cbac };func NewCT_PolyLine ()*CT_PolyLine {_bbafd :=&CT_PolyLine {};return _bbafd };func (_daeccd *OfcST_FillType )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_fdga ,_fcagbd :=d .Token ();if _fcagbd !=nil {return _fcagbd ;};if _ecddg ,_ffede :=_fdga .(_e .EndElement );_ffede &&_ecddg .Name ==start .Name {*_daeccd =1;return nil ;};if _fdaeb ,_fegg :=_fdga .(_e .CharData );!_fegg {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_fdga );}else {switch string (_fdaeb ){case "":*_daeccd =0;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072":*_daeccd =1;case "\u0073\u006f\u006ci\u0064":*_daeccd =2;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_daeccd =3;case "\u0074\u0069\u006c\u0065":*_daeccd =4;case "\u0066\u0072\u0061m\u0065":*_daeccd =5;case "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064":*_daeccd =6;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_daeccd =7;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_daeccd =8;case "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064":*_daeccd =9;};};_fdga ,_fcagbd =d .Token ();if _fcagbd !=nil {return _fcagbd ;};if _afceg ,_baaab :=_fdga .(_e .EndElement );_baaab &&_afceg .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_fdga );};const (ST_ImageAspectUnset ST_ImageAspect =0;ST_ImageAspectIgnore ST_ImageAspect =1;ST_ImageAspectAtMost ST_ImageAspect =2;ST_ImageAspectAtLeast ST_ImageAspect =3;);func (_adfgc *OfcST_OLEDrawAspect )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_dgcbge ,_gceec :=d .Token ();if _gceec !=nil {return _gceec ;};if _cfagdd ,_cbeff :=_dgcbge .(_e .EndElement );_cbeff &&_cfagdd .Name ==start .Name {*_adfgc =1;return nil ;};if _ffgbc ,_eebbb :=_dgcbge .(_e .CharData );!_eebbb {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_dgcbge );}else {switch string (_ffgbc ){case "":*_adfgc =0;case "\u0043o\u006e\u0074\u0065\u006e\u0074":*_adfgc =1;case "\u0049\u0063\u006f\u006e":*_adfgc =2;};};_dgcbge ,_gceec =d .Token ();if _gceec !=nil {return _gceec ;};if _gcbgbad ,_decae :=_dgcbge .(_e .EndElement );_decae &&_gcbgbad .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_dgcbge );};func NewGroup ()*Group {_fbead :=&Group {};_fbead .CT_Group =*NewCT_Group ();return _fbead };type OfcBottom struct{OfcCT_StrokeChild };func NewFill ()*Fill {_eggaa :=&Fill {};_eggaa .CT_Fill =*NewCT_Fill ();return _eggaa };func (_cccge ST_EditAs )String ()string {switch _cccge {case 0:return "";case 1:return "\u0063\u0061\u006e\u0076\u0061\u0073";case 2:return "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074";case 3:return "\u0072\u0061\u0064\u0069\u0061\u006c";case 4:return "\u0063\u0079\u0063l\u0065";case 5:return "\u0073t\u0061\u0063\u006b\u0065\u0064";case 6:return "\u0076\u0065\u006e\u006e";case 7:return "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Group and its children
|
|
|
|
func (_fcdd *Group )Validate ()error {return _fcdd .ValidateWithPath ("\u0047\u0072\u006fu\u0070")};func NewAG_OfficeCoreAttributes ()*AG_OfficeCoreAttributes {_bac :=&AG_OfficeCoreAttributes {};return _bac ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Arc and its children
|
|
|
|
func (_adbd *CT_Arc )Validate ()error {return _adbd .ValidateWithPath ("\u0043\u0054\u005f\u0041\u0072\u0063");};type CT_Fill struct{TypeAttr ST_FillType ;OnAttr _bg .ST_TrueFalse ;ColorAttr *string ;OpacityAttr *string ;Color2Attr *string ;SrcAttr *string ;HrefAttr *string ;AlthrefAttr *string ;SizeAttr *string ;OriginAttr *string ;PositionAttr *string ;AspectAttr ST_ImageAspect ;ColorsAttr *string ;AngleAttr *float64 ;AlignshapeAttr _bg .ST_TrueFalse ;FocusAttr *string ;FocussizeAttr *string ;FocuspositionAttr *string ;MethodAttr ST_FillMethod ;DetectmouseclickAttr _bg .ST_TrueFalse ;TitleAttr *string ;Opacity2Attr *string ;RecolorAttr _bg .ST_TrueFalse ;RotateAttr _bg .ST_TrueFalse ;IdAttr *string ;RelidAttr *string ;Fill *OfcFill ;SIdAttr *string ;};func (_eabbc *OfcInk )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0069n\u006b";return _eabbc .OfcCT_Ink .MarshalXML (e ,start );};func (_ggdafd ST_FillMethod )ValidateWithPath (path string )error {switch _ggdafd {case 0,1,2,3,4,5:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ggdafd ));};return nil ;};func (_cgae *CT_Group )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _cgae .EditasAttr !=ST_EditAsUnset {_fgga ,_eeaf :=_cgae .EditasAttr .MarshalXMLAttr (_e .Name {Local :"\u0065\u0064\u0069\u0074\u0061\u0073"});if _eeaf !=nil {return _eeaf ;};start .Attr =append (start .Attr ,_fgga );};if _cgae .TablepropertiesAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0074\u0061\u0062\u006c\u0065\u0070\u0072\u006f\u0070\u0065r\u0074\u0069\u0065\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_cgae .TablepropertiesAttr )});};if _cgae .TablelimitsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Na
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Imagedata and its children
|
|
|
|
func (_bcfef *Imagedata )Validate ()error {return _bcfef .ValidateWithPath ("\u0049m\u0061\u0067\u0065\u0064\u0061\u0074a");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Arc and its children
|
|
|
|
func (_bcag *Arc )Validate ()error {return _bcag .ValidateWithPath ("\u0041\u0072\u0063")};func (_eeccaf OfcST_ExtrusionType )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_adeefg :=_e .Attr {};_adeefg .Name =name ;switch _eeccaf {case OfcST_ExtrusionTypeUnset :_adeefg .Value ="";case OfcST_ExtrusionTypePerspective :_adeefg .Value ="p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065";case OfcST_ExtrusionTypeParallel :_adeefg .Value ="\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c";};return _adeefg ,nil ;};func (_gdecge *OfcCT_Extrusion )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _gdecge .OnAttr !=_bg .ST_TrueFalseUnset {_gcgg ,_bgede :=_gdecge .OnAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e"});if _bgede !=nil {return _bgede ;};start .Attr =append (start .Attr ,_gcgg );};if _gdecge .TypeAttr !=OfcST_ExtrusionTypeUnset {_fgcfb ,_baecf :=_gdecge .TypeAttr .MarshalXMLAttr (_e .Name {Local :"\u0074\u0079\u0070\u0065"});if _baecf !=nil {return _baecf ;};start .Attr =append (start .Attr ,_fgcfb );};if _gdecge .RenderAttr !=OfcST_ExtrusionRenderUnset {_ggbab ,_ggdbe :=_gdecge .RenderAttr .MarshalXMLAttr (_e .Name {Local :"\u0072\u0065\u006e\u0064\u0065\u0072"});if _ggdbe !=nil {return _ggdbe ;};start .Attr =append (start .Attr ,_ggbab );};if _gdecge .ViewpointoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_gdecge .ViewpointoriginAttr )});};if _gdecge .ViewpointAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0076i\u0065\u0077\u0070\u006f\u0069\u006et"},Value :_a .Sprintf ("\u0025\u0076",*_gdecge .ViewpointAttr )});};if _gdecge .PlaneAttr !=OfcST_ExtrusionPlaneUnset {_dgdee ,_dcgba :=_gdecge .PlaneAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u006c\u0061n\u0065"});if _dcgba !=nil {return _dcgba ;};start .Attr =append (start .Attr ,_dgdee );};if _gdecge .SkewangleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073k\u0065\u0077\u0061\u006e\u0067\u006ce"},Value :_a .Sprintf ("\u0025\u0076",*_gdecge .SkewangleAttr )});};if _gdecge .SkewamtAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073k\u0065\u0077\u0061\u006d\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_gdecge .SkewamtAttr )});};if _gdecge .ForedepthAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0066o\u0072\u0065\u0064\u0065\u0070\u0074h"},Value :_a .Sprintf ("\u0025\u0076",*_gdecge .ForedepthAttr )});};if _gdecge .BackdepthAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"},Value :_a .Sprintf ("\u0025\u0076",*_gdecge .BackdepthAttr )});};if _gdecge .OrientationAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"o\u0072\u0069\u0065\u006e\u0074\u0061\u0074\u0069\u006f\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_gdecge .OrientationAttr )});};if _gdecge .OrientationangleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u0072i\u0065\u006e\u0074a\u0074\u0069\u006f\u006e\u0061\u006e\u0067\u006c\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gdecge .OrientationangleAttr )});};if _gdecge .LockrotationcenterAttr !=_bg .ST_TrueFalseUnset {_adgfb ,_dbgcb :=_gdecge .LockrotationcenterAttr .MarshalXMLAttr (_e .Name {Local :"\u006co\u0063k\u0072\u006f\u0074\u0061\u0074i\u006f\u006ec\u0065\u006e\u0074\u0065\u0072"});if _dbgcb !=nil {return _dbgcb ;};start .Attr =append (start .Attr ,_adgfb );};if _gdecge .AutorotationcenterAttr !=_bg .ST_TrueFalseUnset {_dadccaf ,_afcbg :=_gdecge .AutorotationcenterAttr .MarshalXMLAttr (_e .Name {Local :"\u0061u\u0074o\u0072\u006f\u0074\u0061\u0074i\u006f\u006ec\u0065\u006e\u0074\u0065\u0072"});if _afcbg !=nil {return _afcbg ;};start .Attr =append (start .Attr ,_dadccaf );};if _gdecge .RotationcenterAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0072\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Entry and its children
|
|
|
|
func (_gdcdc *OfcCT_Entry )Validate ()error {return _gdcdc .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0045\u006e\u0074\u0072\u0079");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_R and its children, prefixing error messages with path
|
|
|
|
func (_ceefec *OfcCT_R )ValidateWithPath (path string )error {if _fege :=_ceefec .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_fege !=nil {return _fege ;};if _eebcd :=_ceefec .HowAttr .ValidateWithPath (path +"\u002f\u0048\u006f\u0077\u0041\u0074\u0074\u0072");_eebcd !=nil {return _eebcd ;};for _cbbcg ,_fbae :=range _ceefec .Proxy {if _eeagg :=_fbae .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fP\u0072\u006f\u0078\u0079\u005b\u0025\u0064\u005d",path ,_cbbcg ));_eeagg !=nil {return _eeagg ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RegroupTable and its children, prefixing error messages with path
|
|
|
|
func (_eaadf *OfcCT_RegroupTable )ValidateWithPath (path string )error {for _debe ,_egfeae :=range _eaadf .Entry {if _abgcb :=_egfeae .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fE\u006e\u0074\u0072\u0079\u005b\u0025\u0064\u005d",path ,_debe ));_abgcb !=nil {return _abgcb ;};};if _cefag :=_eaadf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_cefag !=nil {return _cefag ;};return nil ;};func (_egfeaf ST_StrokeLineStyle )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_egfeaf .String (),start );};const (OfcST_ExtrusionTypeUnset OfcST_ExtrusionType =0;OfcST_ExtrusionTypePerspective OfcST_ExtrusionType =1;OfcST_ExtrusionTypeParallel OfcST_ExtrusionType =2;);func (_dbabe OfcST_Angle )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_dbabe .String (),start );};func NewOfcTop ()*OfcTop {_gfffa :=&OfcTop {};_gfffa .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _gfffa ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Fill and its children
|
|
|
|
func (_eaddgc *OfcCT_Fill )Validate ()error {return _eaddgc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0046\u0069\u006c\u006c");};func NewOfcCT_Entry ()*OfcCT_Entry {_bgagd :=&OfcCT_Entry {};return _bgagd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcShapelayout and its children, prefixing error messages with path
|
|
|
|
func (_dgfda *OfcShapelayout )ValidateWithPath (path string )error {if _fcea :=_dgfda .OfcCT_ShapeLayout .ValidateWithPath (path );_fcea !=nil {return _fcea ;};return nil ;};func (_dacaa *ST_ImageAspect )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_faecf ,_efac :=d .Token ();if _efac !=nil {return _efac ;};if _cggad ,_cdgdd :=_faecf .(_e .EndElement );_cdgdd &&_cggad .Name ==start .Name {*_dacaa =1;return nil ;};if _edcb ,_abfgc :=_faecf .(_e .CharData );!_abfgc {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_faecf );}else {switch string (_edcb ){case "":*_dacaa =0;case "\u0069\u0067\u006e\u006f\u0072\u0065":*_dacaa =1;case "\u0061\u0074\u004d\u006f\u0073\u0074":*_dacaa =2;case "\u0061t\u004c\u0065\u0061\u0073\u0074":*_dacaa =3;};};_faecf ,_efac =d .Token ();if _efac !=nil {return _efac ;};if _deefa ,_acdgd :=_faecf .(_e .EndElement );_acdgd &&_deefa .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_faecf );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_ImageData and its children, prefixing error messages with path
|
|
|
|
func (_gfdb *CT_ImageData )ValidateWithPath (path string )error {if _dcfa :=_gfdb .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_dcfa !=nil {return _dcfa ;};if _gcgc :=_gfdb .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_gcgc !=nil {return _gcgc ;};if _gfcea :=_gfdb .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_gfcea !=nil {return _gfcea ;};return nil ;};type OfcCT_ShapeDefaults struct{SpidmaxAttr *int64 ;StyleAttr *string ;FillAttr _bg .ST_TrueFalse ;FillcolorAttr *string ;StrokeAttr _bg .ST_TrueFalse ;StrokecolorAttr *string ;AllowincellAttr _bg .ST_TrueFalse ;Fill *Fill ;Stroke *Stroke ;Textbox *Textbox ;Shadow *Shadow ;Skew *OfcSkew ;Extrusion *OfcExtrusion ;Callout *OfcCallout ;Lock *OfcLock ;Colormru *OfcCT_ColorMru ;Colormenu *OfcCT_ColorMenu ;ExtAttr ST_Ext ;};func (_bbdee *Shadow )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _bbdee .CT_Shadow .MarshalXML (e ,start );};func (_eaeg *OfcST_ExtrusionRender )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_bagc ,_gddab :=d .Token ();if _gddab !=nil {return _gddab ;};if _bfgcf ,_fcbde :=_bagc .(_e .EndElement );_fcbde &&_bfgcf .Name ==start .Name {*_eaeg =1;return nil ;};if _gfdaf ,_efcbf :=_bagc .(_e .CharData );!_efcbf {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_bagc );}else {switch string (_gfdaf ){case "":*_eaeg =0;case "\u0073\u006f\u006ci\u0064":*_eaeg =1;case "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de":*_eaeg =2;case "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065":*_eaeg =3;};};_bagc ,_gddab =d .Token ();if _gddab !=nil {return _gddab ;};if _aggdf ,_acgdg :=_bagc .(_e .EndElement );_acgdg &&_aggdf .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_bagc );};func (_be *AG_AllCoreAttributes )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_df :=range start .Attr {if _df .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_df .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_be .BulletAttr .UnmarshalXMLAttr (_df );continue ;};if _df .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_df .Name .Local =="\u006f\u006e\u0065\u0064"{_be .OnedAttr .UnmarshalXMLAttr (_df );continue ;};if _df .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_df .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_be .AllowincellAttr .UnmarshalXMLAttr (_df );continue ;};if _df .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_df .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_eca ,_ggb :=_bc .ParseInt (_df .Value ,10,64);if _ggb !=nil {return _ggb ;};_be .RegroupidAttr =&_eca ;continue ;};if _df .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Shadow and its children
|
|
|
|
func (_febdd *CT_Shadow )Validate ()error {return _febdd .ValidateWithPath ("\u0043T\u005f\u0053\u0068\u0061\u0064\u006fw");};type OfcST_BWMode byte ;func (_gfadc *OfcCT_Diagram )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _gfadc .DgmstyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gfadc .DgmstyleAttr )});};if _gfadc .AutoformatAttr !=_bg .ST_TrueFalseUnset {_dcaac ,_ddcgf :=_gfadc .AutoformatAttr .MarshalXMLAttr (_e .Name {Local :"\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"});if _ddcgf !=nil {return _ddcgf ;};start .Attr =append (start .Attr ,_dcaac );};if _gfadc .ReverseAttr !=_bg .ST_TrueFalseUnset {_beedfg ,_afebe :=_gfadc .ReverseAttr .MarshalXMLAttr (_e .Name {Local :"\u0072e\u0076\u0065\u0072\u0073\u0065"});if _afebe !=nil {return _afebe ;};start .Attr =append (start .Attr ,_beedfg );};if _gfadc .AutolayoutAttr !=_bg .ST_TrueFalseUnset {_fgdgb ,_edbfd :=_gfadc .AutolayoutAttr .MarshalXMLAttr (_e .Name {Local :"\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"});if _edbfd !=nil {return _edbfd ;};start .Attr =append (start .Attr ,_fgdgb );};if _gfadc .DgmscalexAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"},Value :_a .Sprintf ("\u0025\u0076",*_gfadc .DgmscalexAttr )});};if _gfadc .DgmscaleyAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"},Value :_a .Sprintf ("\u0025\u0076",*_gfadc .DgmscaleyAttr )});};if _gfadc .DgmfontsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gfadc .DgmfontsizeAttr )});};if _gfadc .ConstrainboundsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_gfadc .ConstrainboundsAttr )});};if _gfadc .DgmbasetextscaleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gfadc .DgmbasetextscaleAttr )});};if _gfadc .ExtAttr !=ST_ExtUnset {_gffad ,_bedcd :=_gfadc .ExtAttr .MarshalXMLAttr (_e .Name {Local :"\u0065\u0078\u0074"});if _bedcd !=nil {return _bedcd ;};start .Attr =append (start .Attr ,_gffad );};e .EncodeToken (start );if _gfadc .Relationtable !=nil {_faefg :=_e .StartElement {Name :_e .Name {Local :"\u006f:\u0072e\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065"}};e .EncodeElement (_gfadc .Relationtable ,_faefg );};e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_edgce ST_StrokeLineStyle )Validate ()error {return _edgce .ValidateWithPath ("")};type ST_EditAs byte ;type Handles struct{CT_Handles };func (_dcgbe *Polyline )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_dcgbe .CT_PolyLine =*NewCT_PolyLine ();for _ ,_aeaf :=range start .Attr {if _aeaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aeaf .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_dcgbe .UserdrawnAttr .UnmarshalXMLAttr (_aeaf );continue ;};if _aeaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aeaf .Name .Local =="\u0063\u006c\u0069\u0070"{_dcgbe .ClipAttr .UnmarshalXMLAttr (_aeaf );continue ;};if _aeaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_H and its children
|
|
|
|
func (_egfa *CT_H )Validate ()error {return _egfa .ValidateWithPath ("\u0043\u0054\u005f\u0048")};func NewFormulas ()*Formulas {_ggfcb :=&Formulas {};_ggfcb .CT_Formulas =*NewCT_Formulas ();return _ggfcb ;};func (_cbecb OfcST_FillType )String ()string {switch _cbecb {case 0:return "";case 1:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072";case 2:return "\u0073\u006f\u006ci\u0064";case 3:return "\u0070a\u0074\u0074\u0065\u0072\u006e";case 4:return "\u0074\u0069\u006c\u0065";case 5:return "\u0066\u0072\u0061m\u0065";case 6:return "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064";case 7:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case 8:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case 9:return "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";};return "";};type OfcST_ConnectType byte ;func (_aebf *Imagedata )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_aebf .CT_ImageData =*NewCT_ImageData ();for _ ,_cdbed :=range start .Attr {if _cdbed .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_cdbed .Name .Local =="\u0070\u0069\u0063\u0074"||_cdbed .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_cdbed .Name .Local =="\u0070\u0069\u0063\u0074"{_fbfad ,_dfcfa :=_cdbed .Value ,error (nil );if _dfcfa !=nil {return _dfcfa ;};_aebf .PictAttr =&_fbfad ;continue ;};if _cdbed .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_cdbed .Name .Local =="\u0068\u0072\u0065\u0066"||_cdbed .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_cdbed .Name .Local =="\u0068\u0072\u0065\u0066"{_abgab ,_ebcc :=_cdbed .Value ,error (nil );if _ebcc !=nil {return _ebcc ;};_aebf .RHrefAttr =&_abgab ;continue ;};if _cdbed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cdbed .Name .Local =="\u0068\u0072\u0065\u0066"{_gabf ,_gcec :=_cdbed .Value ,error (nil );if _gcec !=nil {return _gcec ;};_aebf .HrefAttr =&_gabf ;continue ;};if _cdbed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cdbed .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_acefa ,_bdgcd :=_cdbed .Value ,error (nil );if _bdgcd !=nil {return _bdgcd ;};_aebf .AlthrefAttr =&_acefa ;continue ;};if _cdbed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cdbed .Name .Local =="\u0074\u0069\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Rect and its children
|
|
|
|
func (_cece *CT_Rect )Validate ()error {return _cece .ValidateWithPath ("\u0043T\u005f\u0052\u0065\u0063\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the CT_Shapetype and its children
|
|
|
|
func (_fcfe *CT_Shapetype )Validate ()error {return _fcfe .ValidateWithPath ("\u0043\u0054\u005fS\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065");};type OfcComplex struct{OfcCT_Complex };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_Proxy and its children
|
|
|
|
func (_gbbfg *OfcCT_Proxy )Validate ()error {return _gbbfg .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0050\u0072\u006f\u0078\u0079");};func (_fegbf *Formulas )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _fegbf .CT_Formulas .MarshalXML (e ,start );};func (_gbbcb OfcST_DiagramLayout )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_gbbcb .String (),start );};const (OfcST_DiagramLayoutUnset OfcST_DiagramLayout =0;OfcST_DiagramLayout0 OfcST_DiagramLayout =1;OfcST_DiagramLayout1 OfcST_DiagramLayout =2;OfcST_DiagramLayout2 OfcST_DiagramLayout =3;OfcST_DiagramLayout3 OfcST_DiagramLayout =4;);const (ST_FillMethodUnset ST_FillMethod =0;ST_FillMethodNone ST_FillMethod =1;ST_FillMethodLinear ST_FillMethod =2;ST_FillMethodSigma ST_FillMethod =3;ST_FillMethodAny ST_FillMethod =4;ST_FillMethodLinearSigma ST_FillMethod =5;);func NewOfcCT_Diagram ()*OfcCT_Diagram {_bggcg :=&OfcCT_Diagram {};return _bggcg };func (_abfccf OfcST_ColorMode )String ()string {switch _abfccf {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};type OfcST_OLEType byte ;func NewArc ()*Arc {_fbff :=&Arc {};_fbff .CT_Arc =*NewCT_Arc ();return _fbff };func NewCT_Rect ()*CT_Rect {_bbebf :=&CT_Rect {};return _bbebf };func (_aebcba OfcST_How )Validate ()error {return _aebcba .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Image and its children, prefixing error messages with path
|
|
|
|
func (_aced *CT_Image )ValidateWithPath (path string )error {for _bddc ,_efcb :=range _aced .EG_ShapeElements {if _aggge :=_efcb .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bddc ));_aggge !=nil {return _aggge ;};};if _gacae :=_aced .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_gacae !=nil {return _gacae ;};if _bfcff :=_aced .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_bfcff !=nil {return _bfcff ;};if _fccd :=_aced .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_fccd !=nil {return _fccd ;};if _aggd :=_aced .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_aggd !=nil {return _aggd ;};if _fbdc :=_aced .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_fbdc !=nil {return _fbdc ;};if _eegc :=_aced .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_eegc !=nil {return _eegc ;};if _bbdcf :=_aced .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_bbdcf !=nil {return _bbdcf ;};if _bdef :=_aced .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_bdef !=nil {return _bdef ;};if _ggaf :=_aced .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_ggaf !=nil {return _ggaf ;};if _bcdb :=_aced .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_bcdb !=nil {return _bcdb ;};if _ddabf :=_aced .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_ddabf !=nil {return _ddabf ;};if _cbgea :=_aced .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_cbgea !=nil {return _cbgea ;};if _gdcbb :=_aced .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_gdcbb !=nil {return _gdcbb ;};if _afdaa :=_aced .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_afdaa !=nil {return _afdaa ;};if _bfdbg :=_aced .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bfdbg !=nil {return _bfdbg ;};if _ggae :=_aced .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_ggae !=nil {return _ggae ;};if _caab :=_aced .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_caab !=nil {return _caab ;};if _bdbg :=_aced .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_bdbg !=nil {return _bdbg ;};if _aafa :=_aced .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_aafa !=nil {return _aafa ;};if _dcffe :=_aced .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_dcffe !=nil {return _dcffe ;};if _fbbbe :=_aced .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fbbbe !=nil {return _fbbbe ;};if _ecac :=_aced .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ecac !=nil {return _ecac ;};if _bbece :=_aced .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_bbece !=nil {return _bbec
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_RelationTable and its children
|
|
|
|
func (_fdab *OfcCT_RelationTable )Validate ()error {return _fdab .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0054\u0061\u0062\u006c\u0065");};func (_bgecbc *OfcST_ExtrusionType )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_bgecbc =0;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_bgecbc =1;case "\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c":*_bgecbc =2;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Rules and its children, prefixing error messages with path
|
|
|
|
func (_bedad *OfcCT_Rules )ValidateWithPath (path string )error {for _gdeea ,_faabf :=range _bedad .R {if _efce :=_faabf .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002f\u0052\u005b\u0025\u0064\u005d",path ,_gdeea ));_efce !=nil {return _efce ;};};if _fbaea :=_bedad .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fbaea !=nil {return _fbaea ;};return nil ;};func (_eeedb *Textpath )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _eeedb .CT_TextPath .MarshalXML (e ,start );};func (_gdccc *OfcSignatureline )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065";return _gdccc .OfcCT_SignatureLine .MarshalXML (e ,start );};type OfcOLEObject struct{OfcCT_OLEObject };type OfcST_InsetMode byte ;func NewCT_Shapetype ()*CT_Shapetype {_agddf :=&CT_Shapetype {};return _agddf };func (_dbbbeb *OfcST_HrAlign )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_badgc ,_gccda :=d .Token ();if _gccda !=nil {return _gccda ;};if _fcab ,_gebeda :=_badgc .(_e .EndElement );_gebeda &&_fcab .Name ==start .Name {*_dbbbeb =1;return nil ;};if _fbdcc ,_ccfcc :=_badgc .(_e .CharData );!_ccfcc {return _a .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_badgc );}else {switch string (_fbdcc ){case "":*_dbbbeb =0;case "\u006c\u0065\u0066\u0074":*_dbbbeb =1;case "\u0072\u0069\u0067h\u0074":*_dbbbeb =2;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_dbbbeb =3;};};_badgc ,_gccda =d .Token ();if _gccda !=nil {return _gccda ;};if _agdca ,_acaba :=_badgc .(_e .EndElement );_acaba &&_agdca .Name ==start .Name {return nil ;};return _a .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Textbox and its children, prefixing error messages with path
|
|
|
|
func (_aafcb *CT_Textbox )ValidateWithPath (path string )error {if _becfg :=_aafcb .SingleclickAttr .ValidateWithPath (path +"\u002f\u0053i\u006e\u0067\u006ce\u0063\u006c\u0069\u0063\u006b\u0041\u0074\u0074\u0072");_becfg !=nil {return _becfg ;};if _dacgd :=_aafcb .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_dacgd !=nil {return _dacgd ;};if _aafcb .TxbxContent !=nil {if _fcbb :=_aafcb .TxbxContent .ValidateWithPath (path +"\u002f\u0054\u0078b\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074");_fcbb !=nil {return _fcbb ;};};return nil ;};func (_gdff *AG_Type )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _gdff .TypeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gdff .TypeAttr )});};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_Style and its children, prefixing error messages with path
|
|
|
|
func (_gbcg *AG_Style )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_RoundRect and its children, prefixing error messages with path
|
|
|
|
func (_gedbea *CT_RoundRect )ValidateWithPath (path string )error {for _bdecd ,_ebebc :=range _gedbea .EG_ShapeElements {if _eedda :=_ebebc .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bdecd ));_eedda !=nil {return _eedda ;};};if _abgaaa :=_gedbea .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_abgaaa !=nil {return _abgaaa ;};if _gbbfc :=_gedbea .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gbbfc !=nil {return _gbbfc ;};if _ebgbdg :=_gedbea .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_ebgbdg !=nil {return _ebgbdg ;};if _cdef :=_gedbea .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cdef !=nil {return _cdef ;};if _eadac :=_gedbea .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_eadac !=nil {return _eadac ;};if _bfdfa :=_gedbea .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_bfdfa !=nil {return _bfdfa ;};if _ebaab :=_gedbea .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_ebaab !=nil {return _ebaab ;};if _fgaff :=_gedbea .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_fgaff !=nil {return _fgaff ;};if _abff :=_gedbea .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_abff !=nil {return _abff ;};if _ggdf :=_gedbea .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ggdf !=nil {return _ggdf ;};if _affa :=_gedbea .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_affa !=nil {return _affa ;};if _degd :=_gedbea .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_degd !=nil {return _degd ;};if _bgge :=_gedbea .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_bgge !=nil {return _bgge ;};if _gbccae :=_gedbea .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_gbccae !=nil {return _gbccae ;};if _ccfaf :=_gedbea .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_ccfaf !=nil {return _ccfaf ;};if _geddc :=_gedbea .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_geddc !=nil {return _geddc ;};if _beeaa :=_gedbea .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_beeaa !=nil {return _beeaa ;};if _fgbd :=_gedbea .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fgbd !=nil {return _fgbd ;};if _bddf :=_gedbea .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bddf !=nil {return _bddf ;};if _gdca :=_gedbea .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_gdca !=nil {return _gdca ;};if _dddaa :=_gedbea .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_dddaa !=nil {return _dddaa ;};if _aaca :=_gedbea .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_aaca !=nil {return _aaca ;};if _aadc :=_gedbea .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_AllCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_bbcf *AG_AllCoreAttributes )ValidateWithPath (path string )error {if _cfd :=_bbcf .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_cfd !=nil {return _cfd ;};if _fa :=_bbcf .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_fa !=nil {return _fa ;};if _de :=_bbcf .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_de !=nil {return _de ;};if _aebc :=_bbcf .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_aebc !=nil {return _aebc ;};if _fce :=_bbcf .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_fce !=nil {return _fce ;};if _effb :=_bbcf .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_effb !=nil {return _effb ;};if _bfd :=_bbcf .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_bfd !=nil {return _bfd ;};if _cff :=_bbcf .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_cff !=nil {return _cff ;};if _aaf :=_bbcf .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_aaf !=nil {return _aaf ;};if _ece :=_bbcf .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ece !=nil {return _ece ;};if _gc :=_bbcf .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gc !=nil {return _gc ;};if _bed :=_bbcf .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bed !=nil {return _bed ;};if _gff :=_bbcf .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_gff !=nil {return _gff ;};if _gfb :=_bbcf .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_gfb !=nil {return _gfb ;};if _bede :=_bbcf .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bede !=nil {return _bede ;};if _eec :=_bbcf .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_eec !=nil {return _eec ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_Adj and its children
|
|
|
|
func (_ca *AG_Adj )Validate ()error {return _ca .ValidateWithPath ("\u0041\u0047\u005f\u0041\u0064\u006a");};func (_ggff *CT_Oval )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_afaf :=range start .Attr {if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_agce ,_dfgcf :=_afaf .Value ,error (nil );if _dfgcf !=nil {return _dfgcf ;};_ggff .BordertopcolorAttr =&_agce ;continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ggff .BulletAttr .UnmarshalXMLAttr (_afaf );continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u0068\u0072"{_ggff .HrAttr .UnmarshalXMLAttr (_afaf );continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_ggff .CliptowrapAttr .UnmarshalXMLAttr (_afaf );continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u0068\u0072\u0073t\u0064"{_ggff .HrstdAttr .UnmarshalXMLAttr (_afaf );continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u006f\u006c\u0065"{_ggff .OleAttr .UnmarshalXMLAttr (_afaf );continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_ggff .HrnoshadeAttr .UnmarshalXMLAttr (_afaf );continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u006f\u006e\u0065\u0064"{_ggff .OnedAttr .UnmarshalXMLAttr (_afaf );continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u0068\u0072\u0070c\u0074"{_acde ,_eegca :=_bc .ParseFloat (_afaf .Value ,64);if _eegca !=nil {return _eegca ;};_aadf :=float32 (_acde );_ggff .HrpctAttr =&_aadf ;continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afaf .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_ggff .OleiconAttr .UnmarshalXMLAttr (_afaf );continue ;};if _afaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcClippath and its children
|
|
|
|
func (_fgbbdf *OfcClippath )Validate ()error {return _fgbbdf .ValidateWithPath ("O\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068");};func (_ae *AG_AllCoreAttributes )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _ae .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_ae .HrefAttr )});};if _ae .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_ae .TargetAttr )});};if _ae .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_ae .ClassAttr )});};if _ae .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_ae .TitleAttr )});};if _ae .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_ae .AltAttr )});};if _ae .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_ae .CoordsizeAttr )});};if _ae .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_ae .CoordoriginAttr )});};if _ae .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_ae .WrapcoordsAttr )});};if _ae .PrintAttr !=_bg .ST_TrueFalseUnset {_adc ,_fc :=_ae .PrintAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0069n\u0074"});if _fc !=nil {return _fc ;};start .Attr =append (start .Attr ,_adc );};if _ae .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_ae .IdAttr )});};if _ae .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_ae .StyleAttr )});};if _ae .SpidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_ae .SpidAttr )});};if _ae .OnedAttr !=_bg .ST_TrueFalseUnset {_fg ,_adf :=_ae .OnedAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e\u0065\u0064"});if _adf !=nil {return _adf ;};start .Attr =append (start .Attr ,_fg );};if _ae .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_ae .RegroupidAttr )});};if _ae .DoubleclicknotifyAttr !=_bg .ST_TrueFalseUnset {_cb ,_gb :=_ae .DoubleclicknotifyAttr .MarshalXMLAttr (_e .Name {Local :"\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"});if _gb !=nil {return _gb ;};start .Attr =append (start .Attr ,_cb );};if _ae .ButtonAttr !=_bg .ST_TrueFalseUnset {_eaf ,_eff :=_ae .ButtonAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u0074\u0074\u006f\u006e"});if _eff !=nil {return _eff ;};start .Attr =append (start .Attr ,_eaf );};if _ae .UserhiddenAttr !=_bg .ST_TrueFalseUnset {_gf ,_dg :=_ae .UserhiddenAttr .MarshalXMLAttr (_e .Name {Local :"\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _dg !=nil {return _dg ;};start .Attr =append (start .Attr ,_gf );};if _ae .BulletAttr !=_bg .ST_TrueFalseUnset {_cc ,_ff :=_ae .BulletAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u006c\u006c\u0065\u0074"});if _ff !=nil {return _ff ;};start .Attr =append (start .Attr ,_cc );};if _ae .HrAttr !=_bg .ST_TrueFalseUnset {_fe ,_cdd :=_ae .HrAttr .MarshalXMLAttr (_e .Name {Local :"\u0068\u0072"});if _cdd !=nil {return _cdd ;};start .Attr =append (st
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_ColorMenu and its children
|
|
|
|
func (_bgcce *OfcCT_ColorMenu )Validate ()error {return _bgcce .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0043\u006f\u006c\u006f\u0072\u004d\u0065\u006e\u0075");};func NewStroke ()*Stroke {_fbdd :=&Stroke {};_fbdd .CT_Stroke =*NewCT_Stroke ();return _fbdd };func (_fcbe *OfcCT_EquationXml )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_cbfefc :=range start .Attr {if _cbfefc .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_dacef ,_fcfbd :=_cbfefc .Value ,error (nil );if _fcfbd !=nil {return _fcfbd ;};_fcbe .ContentTypeAttr =&_dacef ;continue ;};};_gfddf :for {_ffdag ,_acga :=d .Token ();if _acga !=nil {return _acga ;};switch _cgged :=_ffdag .(type ){case _e .StartElement :switch _cgged .Name {default:if _ffdba ,_dbega :=_g .CreateElement (_cgged );_dbega !=nil {return _dbega ;}else {if _cccad :=d .DecodeElement (_ffdba ,&_cgged );_cccad !=nil {return _cccad ;};_fcbe .Any =_ffdba ;};};case _e .EndElement :break _gfddf ;case _e .CharData :};};return nil ;};func NewTextbox ()*Textbox {_dfgg :=&Textbox {};_dfgg .CT_Textbox =*NewCT_Textbox ();return _dfgg };func (_ecgdd *ST_FillType )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_ecgdd =0;case "\u0073\u006f\u006ci\u0064":*_ecgdd =1;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_ecgdd =2;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_ecgdd =3;case "\u0074\u0069\u006c\u0065":*_ecgdd =4;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_ecgdd =5;case "\u0066\u0072\u0061m\u0065":*_ecgdd =6;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_ShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_gad *AG_ShapeAttributes )ValidateWithPath (path string )error {if _ggg :=_gad .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ggg !=nil {return _ggg ;};if _eeec :=_gad .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_eeec !=nil {return _eeec ;};if _eef :=_gad .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_eef !=nil {return _eef ;};return nil ;};func NewPolyline ()*Polyline {_cfaga :=&Polyline {};_cfaga .CT_PolyLine =*NewCT_PolyLine ();return _cfaga ;};func NewOfcOLEObject ()*OfcOLEObject {_ggfdd :=&OfcOLEObject {};_ggfdd .OfcCT_OLEObject =*NewOfcCT_OLEObject ();return _ggfdd ;};func (_egbda ST_StrokeLineStyle )String ()string {switch _egbda {case 0:return "";case 1:return "\u0073\u0069\u006e\u0067\u006c\u0065";case 2:return "\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e";case 3:return "\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k";case 4:return "\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n";case 5:return "\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcRight and its children
|
|
|
|
func (_agbad *OfcRight )Validate ()error {return _agbad .ValidateWithPath ("\u004f\u0066\u0063\u0052\u0069\u0067\u0068\u0074");};type OfcST_FillType byte ;func (_efacf OfcST_ConnectType )String ()string {switch _efacf {case 0:return "";case 1:return "\u006e\u006f\u006e\u0065";case 2:return "\u0072\u0065\u0063\u0074";case 3:return "\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073";case 4:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};func (_dcdafg *ST_StrokeArrowType )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_dcdafg =0;case "\u006e\u006f\u006e\u0065":*_dcdafg =1;case "\u0062\u006c\u006fc\u006b":*_dcdafg =2;case "\u0063l\u0061\u0073\u0073\u0069\u0063":*_dcdafg =3;case "\u006f\u0076\u0061\u006c":*_dcdafg =4;case "\u0064i\u0061\u006d\u006f\u006e\u0064":*_dcdafg =5;case "\u006f\u0070\u0065\u006e":*_dcdafg =6;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Line and its children, prefixing error messages with path
|
|
|
|
func (_dcbgb *CT_Line )ValidateWithPath (path string )error {for _egde ,_cfcge :=range _dcbgb .EG_ShapeElements {if _gfgb :=_cfcge .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_egde ));_gfgb !=nil {return _gfgb ;};};if _eccaad :=_dcbgb .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_eccaad !=nil {return _eccaad ;};if _fbfd :=_dcbgb .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_fbfd !=nil {return _fbfd ;};if _aeee :=_dcbgb .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_aeee !=nil {return _aeee ;};if _badee :=_dcbgb .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_badee !=nil {return _badee ;};if _beefd :=_dcbgb .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_beefd !=nil {return _beefd ;};if _gccb :=_dcbgb .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_gccb !=nil {return _gccb ;};if _edeg :=_dcbgb .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_edeg !=nil {return _edeg ;};if _fgeb :=_dcbgb .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_fgeb !=nil {return _fgeb ;};if _bbbg :=_dcbgb .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_bbbg !=nil {return _bbbg ;};if _geag :=_dcbgb .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_geag !=nil {return _geag ;};if _dbfcg :=_dcbgb .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_dbfcg !=nil {return _dbfcg ;};if _egfc :=_dcbgb .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_egfc !=nil {return _egfc ;};if _dged :=_dcbgb .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_dged !=nil {return _dged ;};if _gdaca :=_dcbgb .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_gdaca !=nil {return _gdaca ;};if _egfbg :=_dcbgb .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_egfbg !=nil {return _egfbg ;};if _cdbg :=_dcbgb .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cdbg !=nil {return _cdbg ;};if _bbeee :=_dcbgb .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bbeee !=nil {return _bbeee ;};if _gddde :=_dcbgb .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_gddde !=nil {return _gddde ;};if _effa :=_dcbgb .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_effa !=nil {return _effa ;};if _abeea :=_dcbgb .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_abeea !=nil {return _abeea ;};if _eadee :=_dcbgb .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_eadee !=nil {return _eadee ;};if _bdced :=_dcbgb .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_bdced !=nil {return _bdced ;};if _dcded :=_dcbgb .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Background and its children, prefixing error messages with path
|
|
|
|
func (_fdgg *Background )ValidateWithPath (path string )error {if _dfde :=_fdgg .CT_Background .ValidateWithPath (path );_dfde !=nil {return _dfde ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCT_OLEObject and its children
|
|
|
|
func (_bbcb *OfcCT_OLEObject )Validate ()error {return _bbcb .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u004f\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func (_gdccf *CT_PolyLine )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _gdccf .PointsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0070\u006f\u0069\u006e\u0074\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .PointsAttr )});};if _gdccf .HrefAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .HrefAttr )});};if _gdccf .TargetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .TargetAttr )});};if _gdccf .ClassAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .ClassAttr )});};if _gdccf .TitleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .TitleAttr )});};if _gdccf .AltAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0061\u006c\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .AltAttr )});};if _gdccf .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .CoordsizeAttr )});};if _gdccf .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .CoordoriginAttr )});};if _gdccf .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .WrapcoordsAttr )});};if _gdccf .PrintAttr !=_bg .ST_TrueFalseUnset {_dedec ,_dfafd :=_gdccf .PrintAttr .MarshalXMLAttr (_e .Name {Local :"\u0070\u0072\u0069n\u0074"});if _dfafd !=nil {return _dfafd ;};start .Attr =append (start .Attr ,_dedec );};if _gdccf .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .IdAttr )});};if _gdccf .StyleAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .StyleAttr )});};if _gdccf .SpidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .SpidAttr )});};if _gdccf .OnedAttr !=_bg .ST_TrueFalseUnset {_ccfac ,_effg :=_gdccf .OnedAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e\u0065\u0064"});if _effg !=nil {return _effg ;};start .Attr =append (start .Attr ,_ccfac );};if _gdccf .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_gdccf .RegroupidAttr )});};if _gdccf .DoubleclicknotifyAttr !=_bg .ST_TrueFalseUnset {_gaff ,_dbeg :=_gdccf .DoubleclicknotifyAttr .MarshalXMLAttr (_e .Name {Local :"\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"});if _dbeg !=nil {return _dbeg ;};start .Attr =append (start .Attr ,_gaff );};if _gdccf .ButtonAttr !=_bg .ST_TrueFalseUnset {_ddfd ,_dcbab :=_gdccf .ButtonAttr .MarshalXMLAttr (_e .Name {Local :"\u0062\u0075\u0074\u0074\u006f\u006e"});if _dcbab !=nil {return _dcbab ;};start .Attr =append (start .Attr ,_ddfd );};if _gdccf .UserhiddenAttr !=_bg .ST_TrueFalseUnset {_dfea ,_gbaag :=_gdccf .UserhiddenAttr .MarshalXMLAttr (_e .Name {Local :"\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _gbaag !=nil {return _gbaag ;};start .Attr =append (start .Attr ,_dfea );};if _gdccf .BulletAttr
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcShapedefaults and its children, prefixing error messages with path
|
|
|
|
func (_ffedc *OfcShapedefaults )ValidateWithPath (path string )error {if _edfgc :=_ffedc .OfcCT_ShapeDefaults .ValidateWithPath (path );_edfgc !=nil {return _edfgc ;};return nil ;};func NewOfcCT_Relation ()*OfcCT_Relation {_caceg :=&OfcCT_Relation {};return _caceg };func (_bfgae ST_StrokeArrowWidth )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return e .EncodeElement (_bfgae .String (),start );};func NewOfcClippath ()*OfcClippath {_bebdgb :=&OfcClippath {};_bebdgb .OfcCT_ClipPath =*NewOfcCT_ClipPath ();return _bebdgb ;};func NewAG_Id ()*AG_Id {_dgf :=&AG_Id {};return _dgf };func (_bbbfg *ST_FillMethod )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_bbbfg =0;case "\u006e\u006f\u006e\u0065":*_bbbfg =1;case "\u006c\u0069\u006e\u0065\u0061\u0072":*_bbbfg =2;case "\u0073\u0069\u0067m\u0061":*_bbbfg =3;case "\u0061\u006e\u0079":*_bbbfg =4;case "\u006c\u0069\u006ee\u0061\u0072\u0020\u0073\u0069\u0067\u006d\u0061":*_bbbfg =5;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the Curve and its children
|
|
|
|
func (_cbffc *Curve )Validate ()error {return _cbffc .ValidateWithPath ("\u0043\u0075\u0072v\u0065")};type Image struct{CT_Image };func (_fcedg ST_StrokeArrowWidth )String ()string {switch _fcedg {case 0:return "";case 1:return "\u006e\u0061\u0072\u0072\u006f\u0077";case 2:return "\u006d\u0065\u0064\u0069\u0075\u006d";case 3:return "\u0077\u0069\u0064\u0065";};return "";};type OfcClippath struct{OfcCT_ClipPath };const (OfcST_AngleUnset OfcST_Angle =0;OfcST_AngleAny OfcST_Angle =1;OfcST_Angle30 OfcST_Angle =2;OfcST_Angle45 OfcST_Angle =3;OfcST_Angle60 OfcST_Angle =4;OfcST_Angle90 OfcST_Angle =5;OfcST_AngleAuto OfcST_Angle =6;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Arc and its children, prefixing error messages with path
|
|
|
|
func (_eadd *CT_Arc )ValidateWithPath (path string )error {for _eded ,_deae :=range _eadd .EG_ShapeElements {if _ebbg :=_deae .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_eded ));_ebbg !=nil {return _ebbg ;};};if _abdfg :=_eadd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_abdfg !=nil {return _abdfg ;};if _eacb :=_eadd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_eacb !=nil {return _eacb ;};if _bebf :=_eadd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bebf !=nil {return _bebf ;};if _abbg :=_eadd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_abbg !=nil {return _abbg ;};if _cgag :=_eadd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_cgag !=nil {return _cgag ;};if _cddbc :=_eadd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_cddbc !=nil {return _cddbc ;};if _ddcb :=_eadd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_ddcb !=nil {return _ddcb ;};if _ebgbd :=_eadd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_ebgbd !=nil {return _ebgbd ;};if _edag :=_eadd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_edag !=nil {return _edag ;};if _ggeg :=_eadd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ggeg !=nil {return _ggeg ;};if _bff :=_eadd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_bff !=nil {return _bff ;};if _cdfce :=_eadd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_cdfce !=nil {return _cdfce ;};if _efad :=_eadd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_efad !=nil {return _efad ;};if _ddbe :=_eadd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_ddbe !=nil {return _ddbe ;};if _bbbf :=_eadd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bbbf !=nil {return _bbbf ;};if _ccecf :=_eadd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_ccecf !=nil {return _ccecf ;};if _abba :=_eadd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_abba !=nil {return _abba ;};if _fad :=_eadd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fad !=nil {return _fad ;};if _fecdg :=_eadd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_fecdg !=nil {return _fecdg ;};if _agag :=_eadd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_agag !=nil {return _agag ;};if _fdec :=_eadd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fdec !=nil {return _fdec ;};if _ebda :=_eadd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ebda !=nil {return _ebda ;};if _gaaf :=_eadd .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_gaaf !=nil {return _gaaf ;};if _dedc :=_eadd .For
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_cdcad *OfcCT_Fill )ValidateWithPath (path string )error {if _afcef :=_cdcad .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_afcef !=nil {return _afcef ;};if _beaagb :=_cdcad .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_beaagb !=nil {return _beaagb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_AllShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_cde *AG_AllShapeAttributes )ValidateWithPath (path string )error {if _afdb :=_cde .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_afdb !=nil {return _afdb ;};if _ac :=_cde .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ac !=nil {return _ac ;};if _gdf :=_cde .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gdf !=nil {return _gdf ;};if _eda :=_cde .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_eda !=nil {return _eda ;};if _cae :=_cde .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_cae !=nil {return _cae ;};if _gca :=_cde .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_gca !=nil {return _gca ;};if _cbce :=_cde .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_cbce !=nil {return _cbce ;};if _fef :=_cde .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_fef !=nil {return _fef ;};if _dgbe :=_cde .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_dgbe !=nil {return _dgbe ;};if _ccaa :=_cde .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_ccaa !=nil {return _ccaa ;};if _gbg :=_cde .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_gbg !=nil {return _gbg ;};if _gaf :=_cde .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_gaf !=nil {return _gaf ;};if _fcd :=_cde .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_fcd !=nil {return _fcd ;};return nil ;};type Line struct{CT_Line };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_CoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_aaef *AG_CoreAttributes )ValidateWithPath (path string )error {if _fefd :=_aaef .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fefd !=nil {return _fefd ;};return nil ;};func (_ddefe *Rect )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_ddefe .CT_Rect =*NewCT_Rect ();for _ ,_afeefe :=range start .Attr {if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_eabecb ,_dfeggd :=_afeefe .Value ,error (nil );if _dfeggd !=nil {return _dfeggd ;};_ddefe .BordertopcolorAttr =&_eabecb ;continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ddefe .BulletAttr .UnmarshalXMLAttr (_afeefe );continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u0068\u0072"{_ddefe .HrAttr .UnmarshalXMLAttr (_afeefe );continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_ddefe .CliptowrapAttr .UnmarshalXMLAttr (_afeefe );continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u0068\u0072\u0073t\u0064"{_ddefe .HrstdAttr .UnmarshalXMLAttr (_afeefe );continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u006f\u006c\u0065"{_ddefe .OleAttr .UnmarshalXMLAttr (_afeefe );continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_ddefe .HrnoshadeAttr .UnmarshalXMLAttr (_afeefe );continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u006f\u006e\u0065\u0064"{_ddefe .OnedAttr .UnmarshalXMLAttr (_afeefe );continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_afeefe .Name .Local =="\u0068\u0072\u0070c\u0074"{_bbdag ,_bggcf :=_bc .ParseFloat (_afeefe .Value ,64);if _bggcf !=nil {return _bggcf ;};_dgefa :=float32 (_bbdag );_ddefe .HrpctAttr =&_dgefa ;continue ;};if _afeefe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_AllCoreAttributes and its children
|
|
|
|
func (_bdc *AG_AllCoreAttributes )Validate ()error {return _bdc .ValidateWithPath ("A\u0047_\u0041\u006c\u006c\u0043\u006f\u0072\u0065\u0041t\u0074\u0072\u0069\u0062ut\u0065\u0073");};func (_bea *AG_Path )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {for _ ,_eea :=range start .Attr {if _eea .Name .Local =="\u0070\u0061\u0074\u0068"{_fcecf ,_cfc :=_eea .Value ,error (nil );if _cfc !=nil {return _cfc ;};_bea .PathAttr =&_fcecf ;continue ;};};for {_abc ,_bgg :=d .Token ();if _bgg !=nil {return _a .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_bgg );};if _gcf ,_gefbe :=_abc .(_e .EndElement );_gefbe &&_gcf .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_Curve and its children, prefixing error messages with path
|
|
|
|
func (_agda *CT_Curve )ValidateWithPath (path string )error {for _fdbd ,_edad :=range _agda .EG_ShapeElements {if _gggf :=_edad .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fdbd ));_gggf !=nil {return _gggf ;};};if _ffad :=_agda .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ffad !=nil {return _ffad ;};if _gaaa :=_agda .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gaaa !=nil {return _gaaa ;};if _cafed :=_agda .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cafed !=nil {return _cafed ;};if _fddbg :=_agda .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_fddbg !=nil {return _fddbg ;};if _dabeg :=_agda .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_dabeg !=nil {return _dabeg ;};if _deecb :=_agda .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_deecb !=nil {return _deecb ;};if _eabb :=_agda .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_eabb !=nil {return _eabb ;};if _daeb :=_agda .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_daeb !=nil {return _daeb ;};if _edef :=_agda .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_edef !=nil {return _edef ;};if _dfdc :=_agda .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dfdc !=nil {return _dfdc ;};if _gdee :=_agda .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gdee !=nil {return _gdee ;};if _gcafb :=_agda .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_gcafb !=nil {return _gcafb ;};if _cafd :=_agda .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_cafd !=nil {return _cafd ;};if _gfaed :=_agda .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_gfaed !=nil {return _gfaed ;};if _cbdc :=_agda .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_cbdc !=nil {return _cbdc ;};if _gadf :=_agda .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gadf !=nil {return _gadf ;};if _aecc :=_agda .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_aecc !=nil {return _aecc ;};if _faac :=_agda .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_faac !=nil {return _faac ;};if _eefc :=_agda .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_eefc !=nil {return _eefc ;};if _ccdd :=_agda .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_ccdd !=nil {return _ccdd ;};if _bcdf :=_agda .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bcdf !=nil {return _bcdf ;};if _deda :=_agda .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_deda !=nil {return _deda ;};if _gbbe :=_agda .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_gbbe !=nil {return _gbbe ;};if _agbbg :=_
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Path and its children, prefixing error messages with path
|
|
|
|
func (_cfdafg *Path )ValidateWithPath (path string )error {if _gabea :=_cfdafg .CT_Path .ValidateWithPath (path );_gabea !=nil {return _gabea ;};return nil ;};func NewOfcCT_ShapeLayout ()*OfcCT_ShapeLayout {_ddfdb :=&OfcCT_ShapeLayout {};return _ddfdb };func (_cddgg OfcST_RType )MarshalXMLAttr (name _e .Name )(_e .Attr ,error ){_aagcga :=_e .Attr {};_aagcga .Name =name ;switch _cddgg {case OfcST_RTypeUnset :_aagcga .Value ="";case OfcST_RTypeArc :_aagcga .Value ="\u0061\u0072\u0063";case OfcST_RTypeCallout :_aagcga .Value ="\u0063a\u006c\u006c\u006f\u0075\u0074";case OfcST_RTypeConnector :_aagcga .Value ="\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr";case OfcST_RTypeAlign :_aagcga .Value ="\u0061\u006c\u0069g\u006e";};return _aagcga ,nil ;};func (_eeaa *CT_Shadow )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _eeaa .OnAttr !=_bg .ST_TrueFalseUnset {_cgagb ,_faebc :=_eeaa .OnAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u006e"});if _faebc !=nil {return _faebc ;};start .Attr =append (start .Attr ,_cgagb );};if _eeaa .TypeAttr !=ST_ShadowTypeUnset {_aaadg ,_fdcdd :=_eeaa .TypeAttr .MarshalXMLAttr (_e .Name {Local :"\u0074\u0079\u0070\u0065"});if _fdcdd !=nil {return _fdcdd ;};start .Attr =append (start .Attr ,_aaadg );};if _eeaa .ObscuredAttr !=_bg .ST_TrueFalseUnset {_abgg ,_dabedb :=_eeaa .ObscuredAttr .MarshalXMLAttr (_e .Name {Local :"\u006f\u0062\u0073\u0063\u0075\u0072\u0065\u0064"});if _dabedb !=nil {return _dabedb ;};start .Attr =append (start .Attr ,_abgg );};if _eeaa .ColorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_eeaa .ColorAttr )});};if _eeaa .OpacityAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_a .Sprintf ("\u0025\u0076",*_eeaa .OpacityAttr )});};if _eeaa .OffsetAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u0066\u0066\u0073\u0065\u0074"},Value :_a .Sprintf ("\u0025\u0076",*_eeaa .OffsetAttr )});};if _eeaa .Color2Attr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0032"},Value :_a .Sprintf ("\u0025\u0076",*_eeaa .Color2Attr )});};if _eeaa .Offset2Attr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006ff\u0066\u0073\u0065\u0074\u0032"},Value :_a .Sprintf ("\u0025\u0076",*_eeaa .Offset2Attr )});};if _eeaa .OriginAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_a .Sprintf ("\u0025\u0076",*_eeaa .OriginAttr )});};if _eeaa .MatrixAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u006d\u0061\u0074\u0072\u0069\u0078"},Value :_a .Sprintf ("\u0025\u0076",*_eeaa .MatrixAttr )});};if _eeaa .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_eeaa .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_e .EndElement {Name :start .Name });return nil ;};func (_gcce *OfcCT_ColorMenu )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _gcce .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_gcce .StrokecolorAttr )});};if _gcce .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_a .Sprintf ("\u0025\u0076",*_gcce .FillcolorAttr )});};if _gcce .ShadowcolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"s\u0068\u0061\u0064\u006f\u0077\u0063\u006f\u006c\u006f\u0072"},Value :_a .Sprintf ("\u0025\u0076",*_gcce .ShadowcolorAttr )});};if _gcce .ExtrusioncolorAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006ec\u006f\u006c\u006f\u0072"},Value :_a .Sprintf ("\u0025\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcLock and its children, prefixing error messages with path
|
|
|
|
func (_daccb *OfcLock )ValidateWithPath (path string )error {if _cccce :=_daccb .OfcCT_Lock .ValidateWithPath (path );_cccce !=nil {return _cccce ;};return nil ;};func (_cdege *Imagedata )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {return _cdege .CT_ImageData .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Textpath and its children, prefixing error messages with path
|
|
|
|
func (_gfedaf *Textpath )ValidateWithPath (path string )error {if _badae :=_gfedaf .CT_TextPath .ValidateWithPath (path );_badae !=nil {return _badae ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_def *AG_OfficeCoreAttributes )ValidateWithPath (path string )error {if _bbcd :=_def .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_bbcd !=nil {return _bbcd ;};if _cfegc :=_def .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cfegc !=nil {return _cfegc ;};if _fggg :=_def .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_fggg !=nil {return _fggg ;};if _fcg :=_def .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_fcg !=nil {return _fcg ;};if _ebg :=_def .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ebg !=nil {return _ebg ;};if _eebe :=_def .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_eebe !=nil {return _eebe ;};if _gdea :=_def .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gdea !=nil {return _gdea ;};if _ccec :=_def .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_ccec !=nil {return _ccec ;};if _gaage :=_def .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_gaage !=nil {return _gaage ;};if _edc :=_def .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_edc !=nil {return _edc ;};if _ddec :=_def .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_ddec !=nil {return _ddec ;};if _cdf :=_def .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_cdf !=nil {return _cdf ;};if _eace :=_def .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_eace !=nil {return _eace ;};if _ged :=_def .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_ged !=nil {return _ged ;};if _gcbg :=_def .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gcbg !=nil {return _gcbg ;};return nil ;};func (_begcbg OfcST_RType )Validate ()error {return _begcbg .ValidateWithPath ("")};
|
|
|
|
|
|
|
|
// Validate validates the OfcCT_Complex and its children
|
|
|
|
func (_efdga *OfcCT_Complex )Validate ()error {return _efdga .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};type OfcST_DiagramLayout byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-01-04 16:11:39 +00:00
|
|
|
// Validate validates the AG_Chromakey and its children
|
2021-03-16 20:51:18 +00:00
|
|
|
func (_beb *AG_Chromakey )Validate ()error {return _beb .ValidateWithPath ("\u0041\u0047\u005fC\u0068\u0072\u006f\u006d\u0061\u006b\u0065\u0079");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the AG_Ext and its children
|
|
|
|
func (_gfbg *AG_Ext )Validate ()error {return _gfbg .ValidateWithPath ("\u0041\u0047\u005f\u0045\u0078\u0074");};func (_agbd *OfcST_ScreenSize )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_agbd =0;case "\u00354\u0034\u002c\u0033\u0037\u0036":*_agbd =1;case "\u00364\u0030\u002c\u0034\u0038\u0030":*_agbd =2;case "\u00372\u0030\u002c\u0035\u0031\u0032":*_agbd =3;case "\u00380\u0030\u002c\u0036\u0030\u0030":*_agbd =4;case "\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038":*_agbd =5;case "\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032":*_agbd =6;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Stroke and its children, prefixing error messages with path
|
|
|
|
func (_bdga *Stroke )ValidateWithPath (path string )error {if _fcgdac :=_bdga .CT_Stroke .ValidateWithPath (path );_fcgdac !=nil {return _fcgdac ;};return nil ;};func (_fdfbc *OfcST_ColorMode )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_fdfbc =0;case "\u0061\u0075\u0074\u006f":*_fdfbc =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_fdfbc =2;};return nil ;};func NewCT_Background ()*CT_Background {_ebbb :=&CT_Background {};return _ebbb };type Textbox struct{CT_Textbox };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Ink and its children, prefixing error messages with path
|
|
|
|
func (_dacfe *OfcCT_Ink )ValidateWithPath (path string )error {if _dbbbe :=_dacfe .AnnotationAttr .ValidateWithPath (path +"\u002fA\u006en\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_dbbbe !=nil {return _dbbbe ;};return nil ;};func (_cdc *AG_Id )MarshalXML (e *_e .Encoder ,start _e .StartElement )error {if _cdc .IdAttr !=nil {start .Attr =append (start .Attr ,_e .Attr {Name :_e .Name {Local :"\u0069\u0064"},Value :_a .Sprintf ("\u0025\u0076",*_cdc .IdAttr )});};return nil ;};func NewCT_TextPath ()*CT_TextPath {_gfdee :=&CT_TextPath {};return _gfdee };func (_abcf OfcST_Angle )Validate ()error {return _abcf .ValidateWithPath ("")};type AG_ImageAttributes struct{SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _bg .ST_TrueFalse ;BilevelAttr _bg .ST_TrueFalse ;};func (_agdeg *OfcST_DiagramLayout )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_agdeg =0;case "\u0030":*_agdeg =1;case "\u0031":*_agdeg =2;case "\u0032":*_agdeg =3;case "\u0033":*_agdeg =4;};return nil ;};func (_egfga OfcST_OLEDrawAspect )ValidateWithPath (path string )error {switch _egfga {case 0,1,2:default:return _a .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_egfga ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcSignatureline and its children
|
|
|
|
func (_dcffa *OfcSignatureline )Validate ()error {return _dcffa .ValidateWithPath ("\u004f\u0066c\u0053\u0069\u0067n\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065");};func (_cafeff *ST_StrokeArrowLength )UnmarshalXMLAttr (attr _e .Attr )error {switch attr .Value {case "":*_cafeff =0;case "\u0073\u0068\u006fr\u0074":*_cafeff =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_cafeff =2;case "\u006c\u006f\u006e\u0067":*_cafeff =3;};return nil ;};const (OfcST_FillTypeUnset OfcST_FillType =0;OfcST_FillTypeGradientCenter OfcST_FillType =1;OfcST_FillTypeSolid OfcST_FillType =2;OfcST_FillTypePattern OfcST_FillType =3;OfcST_FillTypeTile OfcST_FillType =4;OfcST_FillTypeFrame OfcST_FillType =5;OfcST_FillTypeGradientUnscaled OfcST_FillType =6;OfcST_FillTypeGradientRadial OfcST_FillType =7;OfcST_FillTypeGradient OfcST_FillType =8;OfcST_FillTypeBackground OfcST_FillType =9;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the Oval and its children, prefixing error messages with path
|
|
|
|
func (_ggfbd *Oval )ValidateWithPath (path string )error {if _edfb :=_ggfbd .CT_Oval .ValidateWithPath (path );_edfb !=nil {return _edfb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the OfcColumn and its children, prefixing error messages with path
|
|
|
|
func (_aabcf *OfcColumn )ValidateWithPath (path string )error {if _ecfed :=_aabcf .OfcCT_StrokeChild .ValidateWithPath (path );_ecfed !=nil {return _ecfed ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// ValidateWithPath validates the CT_PolyLine and its children, prefixing error messages with path
|
|
|
|
func (_ccaeg *CT_PolyLine )ValidateWithPath (path string )error {for _adebc ,_cbgf :=range _ccaeg .Ink {if _deebc :=_cbgf .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_adebc ));_deebc !=nil {return _deebc ;};};for _gdgab ,_edefd :=range _ccaeg .EG_ShapeElements {if _ddea :=_edefd .ValidateWithPath (_a .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_gdgab ));_ddea !=nil {return _ddea ;};};if _bgbc :=_ccaeg .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_bgbc !=nil {return _bgbc ;};if _ecbf :=_ccaeg .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ecbf !=nil {return _ecbf ;};if _cgdfa :=_ccaeg .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cgdfa !=nil {return _cgdfa ;};if _cebga :=_ccaeg .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cebga !=nil {return _cebga ;};if _ggbef :=_ccaeg .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_ggbef !=nil {return _ggbef ;};if _dabce :=_ccaeg .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dabce !=nil {return _dabce ;};if _caed :=_ccaeg .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_caed !=nil {return _caed ;};if _gggd :=_ccaeg .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gggd !=nil {return _gggd ;};if _fabfc :=_ccaeg .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fabfc !=nil {return _fabfc ;};if _ebaa :=_ccaeg .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ebaa !=nil {return _ebaa ;};if _fgfe :=_ccaeg .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_fgfe !=nil {return _fgfe ;};if _cddg :=_ccaeg .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_cddg !=nil {return _cddg ;};if _fade :=_ccaeg .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fade !=nil {return _fade ;};if _dgcd :=_ccaeg .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_dgcd !=nil {return _dgcd ;};if _adeff :=_ccaeg .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_adeff !=nil {return _adeff ;};if _bbeec :=_ccaeg .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_bbeec !=nil {return _bbeec ;};if _cgagg :=_ccaeg .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cgagg !=nil {return _cgagg ;};if _ddbg :=_ccaeg .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ddbg !=nil {return _ddbg ;};if _fcfae :=_ccaeg .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_fcfae !=nil {return _fcfae ;};if _eeff :=_ccaeg .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_eeff !=nil {return _eeff ;};if _ecgaa :=_ccaeg .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ecgaa !=nil {return _ecgaa ;};if _bagg :=_ccaeg .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-03-16 20:51:18 +00:00
|
|
|
// Validate validates the OfcCallout and its children
|
|
|
|
func (_dagaf *OfcCallout )Validate ()error {return _dagaf .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};func (_dbefa ST_Ext )String ()string {switch _dbefa {case 0:return "";case 1:return "\u0076\u0069\u0065\u0077";case 2:return "\u0065\u0064\u0069\u0074";case 3:return "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065";};return "";};type CT_Formulas struct{F []*CT_F ;};func init (){_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054_\u0053\u0068\u0061p\u0065\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0073",NewOfcCT_ShapeDefaults );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054\u005f\u0049\u006e\u006b",NewOfcCT_Ink );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054_\u0053\u0069\u0067n\u0061\u0074\u0075\u0072\u0065\u004c\u0069\u006e\u0065",NewOfcCT_SignatureLine );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004ca\u0079\u006f\u0075\u0074",NewOfcCT_ShapeLayout );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054\u005f\u0049\u0064\u004d\u0061\u0070",NewOfcCT_IdMap );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043T\u005fR\u0065\u0067\u0072\u006f\u0075\u0070\u0054\u0061\u0062\u006c\u0065",NewOfcCT_RegroupTable );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054\u005f\u0045\u006e\u0074\u0072\u0079",NewOfcCT_Entry );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054\u005f\u0052\u0075\u006c\u0065\u0073",NewOfcCT_Rules );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054\u005f\u0052",NewOfcCT_R );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054\u005f\u0050\u0072\u006f\u0078\u0079",NewOfcCT_Proxy );_g .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065","\u0043\u0054\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006d",NewOfcCT_Diagram );_g .RegisterConstructor ("
|