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/
|
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
package vml ;import (_c "encoding/xml";_e "fmt";_f "github.com/unidoc/unioffice";_ce "github.com/unidoc/unioffice/common/logger";_g "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";_ef "github.com/unidoc/unioffice/schema/soo/wml";_b "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/excel";_cc "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/powerpoint";_eg "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/word";_cb "strconv";);func (_bdf *AG_Fill )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cbae :=range start .Attr {if _cbae .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_bdf .FilledAttr .UnmarshalXMLAttr (_cbae );continue ;};if _cbae .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_cadb ,_adf :=_cbae .Value ,error (nil );if _adf !=nil {return _adf ;};_bdf .FillcolorAttr =&_cadb ;continue ;};};for {_adfd ,_cge :=d .Token ();if _cge !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0046\u0069\u006c\u006c\u003a\u0020\u0025\u0073",_cge );};if _egg ,_dad :=_adfd .(_c .EndElement );_dad &&_egg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Formulas and its children, prefixing error messages with path
|
|
|
|
func (_gdbeb *CT_Formulas )ValidateWithPath (path string )error {for _aeeb ,_ddabe :=range _gdbeb .F {if _afbdg :=_ddabe .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0046\u005b\u0025\u0064\u005d",path ,_aeeb ));_afbdg !=nil {return _afbdg ;};};return nil ;};func (_gdgcc OfcST_ConnectType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gbdef :=_c .Attr {};_gbdef .Name =name ;switch _gdgcc {case OfcST_ConnectTypeUnset :_gbdef .Value ="";case OfcST_ConnectTypeNone :_gbdef .Value ="\u006e\u006f\u006e\u0065";case OfcST_ConnectTypeRect :_gbdef .Value ="\u0072\u0065\u0063\u0074";case OfcST_ConnectTypeSegments :_gbdef .Value ="\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073";case OfcST_ConnectTypeCustom :_gbdef .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _gbdef ,nil ;};func NewOfcInk ()*OfcInk {_eadbg :=&OfcInk {};_eadbg .OfcCT_Ink =*NewOfcCT_Ink ();return _eadbg };func NewAG_ShapeAttributes ()*AG_ShapeAttributes {_adaa :=&AG_ShapeAttributes {};return _adaa };func (_badac *CT_TextPath )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068";};if _badac .OnAttr !=_g .ST_TrueFalseUnset {_ccca ,_abfde :=_badac .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _abfde !=nil {return _abfde ;};start .Attr =append (start .Attr ,_ccca );};if _badac .FitshapeAttr !=_g .ST_TrueFalseUnset {_fcafa ,_dfegg :=_badac .FitshapeAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"});if _dfegg !=nil {return _dfegg ;};start .Attr =append (start .Attr ,_fcafa );};if _badac .FitpathAttr !=_g .ST_TrueFalseUnset {_gfbbd ,_cadge :=_badac .FitpathAttr .MarshalXMLAttr (_c .Name {Local :"\u0066i\u0074\u0070\u0061\u0074\u0068"});if _cadge !=nil {return _cadge ;};start .Attr =append (start .Attr ,_gfbbd );};if _badac .TrimAttr !=_g .ST_TrueFalseUnset {_fgcg ,_ebbcb :=_badac .TrimAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0072\u0069\u006d"});if _ebbcb !=nil {return _ebbcb ;};start .Attr =append (start .Attr ,_fgcg );};if _badac .XscaleAttr !=_g .ST_TrueFalseUnset {_babda ,_dgfgf :=_badac .XscaleAttr .MarshalXMLAttr (_c .Name {Local :"\u0078\u0073\u0063\u0061\u006c\u0065"});if _dgfgf !=nil {return _dgfgf ;};start .Attr =append (start .Attr ,_babda );};if _badac .StringAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0072\u0069\u006e\u0067"},Value :_e .Sprintf ("\u0025\u0076",*_badac .StringAttr )});};if _badac .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_badac .IdAttr )});};if _badac .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_badac .StyleAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};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 _g .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _g .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _g .ST_TrueFalse ;ButtonAttr _g .ST_TrueFalse ;UserhiddenAttr _g .ST_TrueFalse ;BulletAttr _g .ST_TrueFalse ;HrAttr _g .ST_TrueFalse ;HrstdAttr _g .ST_TrueFalse ;HrnoshadeAttr _g .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _g .ST_TrueFalse ;AllowoverlapAttr _g .ST_TrueFalse ;UserdrawnAttr _g .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _g .ST_TrueFalse ;StrokecolorAttr *str
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_ImageAttributes and its children
|
|
|
|
func (_ebd *AG_ImageAttributes )Validate ()error {return _ebd .ValidateWithPath ("\u0041G\u005fI\u006d\u0061\u0067\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};func (_ebffe ST_StrokeEndCap )String ()string {switch _ebffe {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 (_ffgef OfcST_RType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_ffgef .String (),start );};func (_bed *AG_Ext )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bed .ExtAttr =ST_Ext (1);for _ ,_aca :=range start .Attr {if _aca .Name .Local =="\u0065\u0078\u0074"{_bed .ExtAttr .UnmarshalXMLAttr (_aca );continue ;};};for {_dbagd ,_adg :=d .Token ();if _adg !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0041G\u005f\u0045x\u0074\u003a\u0020\u0025\u0073",_adg );};if _feb ,_gcbe :=_dbagd .(_c .EndElement );_gcbe &&_feb .Name ==start .Name {break ;};};return nil ;};type AG_Style struct{StyleAttr *string ;};func (_eaeb *CT_Oval )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_feee :=range start .Attr {if _feee .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"&&_feee .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_begb ,_accb :=_feee .Value ,error (nil );if _accb !=nil {return _accb ;};_eaeb .BordertopcolorAttr =&_begb ;continue ;};if _feee .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"&&_feee .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_eaeb .BulletAttr .UnmarshalXMLAttr (_feee );continue ;};if _feee .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"&&_feee .Name .Local =="\u0068\u0072"{_eaeb .HrAttr .UnmarshalXMLAttr (_feee );continue ;};if _feee .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"&&_feee .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_eaeb .CliptowrapAttr .UnmarshalXMLAttr (_feee );continue ;};if _feee .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"&&_feee .Name .Local =="\u0068\u0072\u0073t\u0064"{_eaeb .HrstdAttr .UnmarshalXMLAttr (_feee );continue ;};if _feee .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"&&_feee .Name .Local =="\u006f\u006c\u0065"{_eaeb .OleAttr .UnmarshalXMLAttr (_feee );continue ;};if _feee .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"&&_feee .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_eaeb .HrnoshadeAttr .UnmarshalXMLAttr (_feee );continue ;};if _feee .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"&&_feee .N
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_StrokeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_gbge *AG_StrokeAttributes )ValidateWithPath (path string )error {if _efeg :=_gbge .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_efeg !=nil {return _efeg ;};if _aecg :=_gbge .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_aecg !=nil {return _aecg ;};if _dacf :=_gbge .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_dacf !=nil {return _dacf ;};if _dced :=_gbge .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_dced !=nil {return _dced ;};if _bfa :=_gbge .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_bfa !=nil {return _bfa ;};if _cab :=_gbge .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_cab !=nil {return _cab ;};if _cfd :=_gbge .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_cfd !=nil {return _cfd ;};if _efda :=_gbge .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_efda !=nil {return _efda ;};if _dfd :=_gbge .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_dfd !=nil {return _dfd ;};if _gaba :=_gbge .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_gaba !=nil {return _gaba ;};if _gfge :=_gbge .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_gfge !=nil {return _gfge ;};if _gaf :=_gbge .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_gaf !=nil {return _gaf ;};if _fdge :=_gbge .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_fdge !=nil {return _fdge ;};if _dbfa :=_gbge .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_dbfa !=nil {return _dbfa ;};if _eabe :=_gbge .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_eabe !=nil {return _eabe ;};return nil ;};func NewCT_Shapetype ()*CT_Shapetype {_bbege :=&CT_Shapetype {};return _bbege };type AG_CoreAttributes struct{HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _g .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;};type OfcST_InsetMode byte ;func (_fab *AG_Style )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _fab .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_fab .StyleAttr )});};return nil ;};func NewOfcCT_RegroupTable ()*OfcCT_RegroupTable {_gaccbb :=&OfcCT_RegroupTable {};return _gaccbb };func (_cefdad ST_StrokeArrowLength )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_cefdad .String (),start );};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the AG_ShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_aecb *AG_ShapeAttributes )ValidateWithPath (path string )error {if _effe :=_aecb .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_effe !=nil {return _effe ;};if _fea :=_aecb .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fea !=nil {return _fea ;};if _bge :=_aecb .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bge !=nil {return _bge ;};return nil ;};type CT_Handles struct{H []*CT_H ;};func (_dedbg *OfcST_InsetMode )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_geadb ,_gffff :=d .Token ();if _gffff !=nil {return _gffff ;};if _daafee ,_abdbe :=_geadb .(_c .EndElement );_abdbe &&_daafee .Name ==start .Name {*_dedbg =1;return nil ;};if _cecfb ,_cbag :=_geadb .(_c .CharData );!_cbag {return _e .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",_geadb );}else {switch string (_cecfb ){case "":*_dedbg =0;case "\u0061\u0075\u0074\u006f":*_dedbg =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_dedbg =2;};};_geadb ,_gffff =d .Token ();if _gffff !=nil {return _gffff ;};if _eaead ,_cbafd :=_geadb .(_c .EndElement );_cbafd &&_eaead .Name ==start .Name {return nil ;};return _e .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",_geadb );};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_Shadow and its children, prefixing error messages with path
|
|
|
|
func (_aeggg *CT_Shadow )ValidateWithPath (path string )error {if _gefd :=_aeggg .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_gefd !=nil {return _gefd ;};if _acgag :=_aeggg .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_acgag !=nil {return _acgag ;};if _fgfg :=_aeggg .ObscuredAttr .ValidateWithPath (path +"\u002f\u004f\u0062\u0073\u0063\u0075\u0072\u0065\u0064\u0041\u0074\u0074\u0072");_fgfg !=nil {return _fgfg ;};return nil ;};func NewCT_Shape ()*CT_Shape {_ffdac :=&CT_Shape {};return _ffdac };func (_gafge *Shapetype )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gafge .CT_Shapetype =*NewCT_Shapetype ();for _ ,_deeaf :=range start .Attr {if _deeaf .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"&&_deeaf .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_acefc ,_feceg :=_deeaf .Value ,error (nil );if _feceg !=nil {return _feceg ;};_gafge .BordertopcolorAttr =&_acefc ;continue ;};if _deeaf .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"&&_deeaf .Name .Local =="\u006d\u0061\u0073\u0074\u0065\u0072"{_cafbd ,_daadf :=_deeaf .Value ,error (nil );if _daadf !=nil {return _daadf ;};_gafge .MasterAttr =&_cafbd ;continue ;};if _deeaf .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"&&_deeaf .Name .Local =="\u0062o\u0072d\u0065\u0072\u006c\u0065\u0066\u0074\u0063\u006f\u006c\u006f\u0072"{_edaea ,_ggbag :=_deeaf .Value ,error (nil );if _ggbag !=nil {return _ggbag ;};_gafge .BorderleftcolorAttr =&_edaea ;continue ;};if _deeaf .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"&&_deeaf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gafge .BulletAttr .UnmarshalXMLAttr (_deeaf );continue ;};if _deeaf .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"&&_deeaf .Name .Local =="\u0068\u0072"{_gafge .HrAttr .UnmarshalXMLAttr (_deeaf );continue ;};if _deeaf .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"&&_deeaf .Name .Local =="\u0063\u006c\u0069\u0070"{_gafge .ClipAttr .UnmarshalXMLAttr (_deeaf );continue ;};if _deeaf .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"&&_deeaf .Name .Local =="\u0068\u0072\u0073t\u0064"{_gafge .HrstdAttr .UnmarshalXMLAttr (_deeaf );continue ;};if _deeaf .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"&&_deeaf .Name .Local =="\u0073\u0070\u0069\u0064"{_cdceg ,_cgaeg :=_deeaf .Value ,error (nil );if _cgaeg !=nil {return _cgaeg ;};_gafge .SpidAttr =&_cdceg ;continue ;};if _deeaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-11-10 11:45:21 +00:00
|
|
|
// Validate validates the CT_Fill and its children
|
2022-01-15 21:17:38 +00:00
|
|
|
func (_cfgge *CT_Fill )Validate ()error {return _cfgge .ValidateWithPath ("\u0043T\u005f\u0046\u0069\u006c\u006c");};func (_ddbag OfcST_InsetMode )ValidateWithPath (path string )error {switch _ddbag {case 0,1,2:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ddbag ));};return nil ;};func (_ddae *OfcBottom )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 _ddae .OfcCT_StrokeChild .MarshalXML (e ,start );};func NewCT_Rect ()*CT_Rect {_gbab :=&CT_Rect {};return _gbab };func (_agcee *Oval )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _agcee .CT_Oval .MarshalXML (e ,start );};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;);func (_dfddg *Shape )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _dfddg .CT_Shape .MarshalXML (e ,start );};func (_begdab OfcST_CalloutPlacement )Validate ()error {return _begdab .ValidateWithPath ("")};func (_cddbf OfcST_OLEDrawAspect )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_ccfec :=_c .Attr {};_ccfec .Name =name ;switch _cddbf {case OfcST_OLEDrawAspectUnset :_ccfec .Value ="";case OfcST_OLEDrawAspectContent :_ccfec .Value ="\u0043o\u006e\u0074\u0065\u006e\u0074";case OfcST_OLEDrawAspectIcon :_ccfec .Value ="\u0049\u0063\u006f\u006e";};return _ccfec ,nil ;};func NewPath ()*Path {_gceaf :=&Path {};_gceaf .CT_Path =*NewCT_Path ();return _gceaf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Lock and its children, prefixing error messages with path
|
|
|
|
func (_deccc *OfcCT_Lock )ValidateWithPath (path string )error {if _acbbg :=_deccc .PositionAttr .ValidateWithPath (path +"\u002f\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_acbbg !=nil {return _acbbg ;};if _fedba :=_deccc .SelectionAttr .ValidateWithPath (path +"\u002f\u0053\u0065\u006c\u0065\u0063\u0074\u0069\u006fn\u0041\u0074\u0074\u0072");_fedba !=nil {return _fedba ;};if _cdag :=_deccc .GroupingAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_cdag !=nil {return _cdag ;};if _fcfdb :=_deccc .UngroupingAttr .ValidateWithPath (path +"\u002fU\u006eg\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_fcfdb !=nil {return _fcfdb ;};if _ggfcd :=_deccc .RotationAttr .ValidateWithPath (path +"\u002f\u0052\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_ggfcd !=nil {return _ggfcd ;};if _cbcef :=_deccc .CroppingAttr .ValidateWithPath (path +"\u002f\u0043\u0072\u006f\u0070\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_cbcef !=nil {return _cbcef ;};if _dgbbff :=_deccc .VerticiesAttr .ValidateWithPath (path +"\u002f\u0056\u0065\u0072\u0074\u0069\u0063\u0069\u0065s\u0041\u0074\u0074\u0072");_dgbbff !=nil {return _dgbbff ;};if _fbfec :=_deccc .AdjusthandlesAttr .ValidateWithPath (path +"\u002fA\u0064j\u0075\u0073\u0074\u0068\u0061n\u0064\u006ce\u0073\u0041\u0074\u0074\u0072");_fbfec !=nil {return _fbfec ;};if _afbeb :=_deccc .TextAttr .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0041\u0074\u0074r");_afbeb !=nil {return _afbeb ;};if _efbfd :=_deccc .AspectratioAttr .ValidateWithPath (path +"\u002f\u0041s\u0070\u0065\u0063t\u0072\u0061\u0074\u0069\u006f\u0041\u0074\u0074\u0072");_efbfd !=nil {return _efbfd ;};if _ccbaf :=_deccc .ShapetypeAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0070\u0065\u0074\u0079\u0070e\u0041\u0074\u0074\u0072");_ccbaf !=nil {return _ccbaf ;};if _agcdfg :=_deccc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_agcdfg !=nil {return _agcdfg ;};return nil ;};func (_deegb OfcST_ExtrusionType )Validate ()error {return _deegb .ValidateWithPath ("")};type AG_ImageAttributes struct{SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _g .ST_TrueFalse ;BilevelAttr _g .ST_TrueFalse ;};func (_bccgc *Stroke )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _bccgc .CT_Stroke .MarshalXML (e ,start );};func NewOfcCT_Lock ()*OfcCT_Lock {_efdea :=&OfcCT_Lock {};return _efdea };type OfcCT_R struct{IdAttr string ;TypeAttr OfcST_RType ;HowAttr OfcST_How ;IdrefAttr *string ;Proxy []*OfcCT_Proxy ;};func (_ddbd OfcST_HrAlign )ValidateWithPath (path string )error {switch _ddbd {case 0,1,2,3:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ddbd ));};return nil ;};func (_ebdafb OfcST_InsetMode )Validate ()error {return _ebdafb .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Path and its children, prefixing error messages with path
|
|
|
|
func (_eagab *CT_Path )ValidateWithPath (path string )error {if _ebea :=_eagab .FillokAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u006f\u006b\u0041\u0074\u0074\u0072");_ebea !=nil {return _ebea ;};if _gfeaf :=_eagab .StrokeokAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0072\u006f\u006b\u0065\u006f\u006b\u0041\u0074\u0074\u0072");_gfeaf !=nil {return _gfeaf ;};if _adad :=_eagab .ShadowokAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0064\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_adad !=nil {return _adad ;};if _gcdc :=_eagab .ArrowokAttr .ValidateWithPath (path +"\u002f\u0041\u0072r\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_gcdc !=nil {return _gcdc ;};if _afbac :=_eagab .GradientshapeokAttr .ValidateWithPath (path +"/\u0047r\u0061\u0064\u0069\u0065\u006e\u0074\u0073\u0068a\u0070\u0065\u006f\u006bAt\u0074\u0072");_afbac !=nil {return _afbac ;};if _cafga :=_eagab .TextpathokAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0070\u0061\u0074\u0068\u006f\u006b\u0041\u0074\u0074\u0072");_cafga !=nil {return _cafga ;};if _agcd :=_eagab .InsetpenokAttr .ValidateWithPath (path +"\u002fI\u006es\u0065\u0074\u0070\u0065\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_agcd !=nil {return _agcd ;};if _bggde :=_eagab .ConnecttypeAttr .ValidateWithPath (path +"\u002f\u0043o\u006e\u006e\u0065c\u0074\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_bggde !=nil {return _bggde ;};if _egcbe :=_eagab .ExtrusionokAttr .ValidateWithPath (path +"\u002f\u0045x\u0074\u0072\u0075s\u0069\u006f\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_egcbe !=nil {return _egcbe ;};return nil ;};func NewCT_Stroke ()*CT_Stroke {_gbefa :=&CT_Stroke {};return _gbefa };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_AllShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_gbb *AG_AllShapeAttributes )ValidateWithPath (path string )error {if _gcg :=_gbb .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_gcg !=nil {return _gcg ;};if _afbb :=_gbb .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_afbb !=nil {return _afbb ;};if _dcb :=_gbb .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_dcb !=nil {return _dcb ;};if _bee :=_gbb .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_bee !=nil {return _bee ;};if _ffe :=_gbb .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ffe !=nil {return _ffe ;};if _ggd :=_gbb .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ggd !=nil {return _ggd ;};if _dbag :=_gbb .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_dbag !=nil {return _dbag ;};if _bbed :=_gbb .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_bbed !=nil {return _bbed ;};if _cag :=_gbb .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_cag !=nil {return _cag ;};if _cg :=_gbb .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_cg !=nil {return _cg ;};if _beef :=_gbb .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_beef !=nil {return _beef ;};if _ega :=_gbb .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_ega !=nil {return _ega ;};if _dee :=_gbb .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_dee !=nil {return _dee ;};return nil ;};func (_gcec *OfcTop )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gcec .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_cfceb :=range start .Attr {if _cfceb .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"&&_cfceb .Name .Local =="\u0068\u0072\u0065\u0066"{_deegd ,_abde :=_cfceb .Value ,error (nil );if _abde !=nil {return _abde ;};_gcec .HrefAttr =&_deegd ;continue ;};if _cfceb .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"&&_cfceb .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_gcec .ForcedashAttr .UnmarshalXMLAttr (_cfceb );continue ;};if _cfceb .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"&&_cfceb .Name .Local =="\u0074\u0069\u0074l\u0065"{_gfbdb ,_eaafg :=_cfceb .Value ,error (nil );if _eaafg !=nil {return _eaafg ;};_gcec .TitleAttr =&_gfbdb ;continue ;};if _cfceb .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"&&_cfceb .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_fbead ,_ccdac :=_cfceb .Value ,error (nil );if _ccdac !=nil {return _ccdac ;};_gcec .AlthrefAttr =&_fbead ;continue ;};if _cfceb .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_gcec .ImageaspectAttr .UnmarshalXMLAttr (_cfceb );continue ;};if _cfceb .Name .Local =="
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Curve and its children
|
|
|
|
func (_gegdcf *Curve )Validate ()error {return _gegdcf .ValidateWithPath ("\u0043\u0075\u0072v\u0065")};func (_cbdbe OfcST_BWMode )ValidateWithPath (path string )error {switch _cbdbe {case 0,1,2,3,4,5,6,7,8,9,10,11,12:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_cbdbe ));};return nil ;};func (_babdc OfcST_ExtrusionRender )Validate ()error {return _babdc .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcColumn and its children
|
|
|
|
func (_ffddd *OfcColumn )Validate ()error {return _ffddd .ValidateWithPath ("\u004ff\u0063\u0043\u006f\u006c\u0075\u006dn");};type OfcColumn struct{OfcCT_StrokeChild };func (_gaeea *OfcCT_ShapeLayout )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0073\u0068\u0061\u0070\u0065\u006c\u0061\u0079\u006f\u0075\u0074";};if _gaeea .ExtAttr !=ST_ExtUnset {_gbced ,_dbca :=_gaeea .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dbca !=nil {return _dbca ;};start .Attr =append (start .Attr ,_gbced );};e .EncodeToken (start );if _gaeea .Idmap !=nil {_bafdf :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0069\u0064\u006d\u0061\u0070"}};e .EncodeElement (_gaeea .Idmap ,_bafdf );};if _gaeea .Regrouptable !=nil {_gadee :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070t\u0061\u0062\u006c\u0065"}};e .EncodeElement (_gaeea .Regrouptable ,_gadee );};if _gaeea .Rules !=nil {_ebgda :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0072\u0075\u006c\u0065\u0073"}};e .EncodeElement (_gaeea .Rules ,_ebgda );};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};type ST_StrokeArrowType byte ;func (_dbgd *AG_OfficeCoreAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _dbgd .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dbgd .SpidAttr )});};if _dbgd .OnedAttr !=_g .ST_TrueFalseUnset {_dbfcc ,_bfce :=_dbgd .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _bfce !=nil {return _bfce ;};start .Attr =append (start .Attr ,_dbfcc );};if _dbgd .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dbgd .RegroupidAttr )});};if _dbgd .DoubleclicknotifyAttr !=_g .ST_TrueFalseUnset {_cagb ,_egf :=_dbgd .DoubleclicknotifyAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _egf !=nil {return _egf ;};start .Attr =append (start .Attr ,_cagb );};if _dbgd .ButtonAttr !=_g .ST_TrueFalseUnset {_ddab ,_bbf :=_dbgd .ButtonAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _bbf !=nil {return _bbf ;};start .Attr =append (start .Attr ,_ddab );};if _dbgd .UserhiddenAttr !=_g .ST_TrueFalseUnset {_acd ,_deae :=_dbgd .UserhiddenAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _deae !=nil {return _deae ;};start .Attr =append (start .Attr ,_acd );};if _dbgd .BulletAttr !=_g .ST_TrueFalseUnset {_ggad ,_eed :=_dbgd .BulletAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u006c\u006c\u0065\u0074"});if _eed !=nil {return _eed ;};start .Attr =append (start .Attr ,_ggad );};if _dbgd .HrAttr !=_g .ST_TrueFalseUnset {_adaf ,_bfd :=_dbgd .HrAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0068\u0072"});if _bfd !=nil {return _bfd ;};start .Attr =append (start .Attr ,_adaf );};if _dbgd .HrstdAttr !=_g .ST_TrueFalseUnset {_cbbg ,_dbdg :=_dbgd .HrstdAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0068\u0072\u0073\u0074\u0064"});if _dbdg !=nil {return _dbdg ;};start .Attr =append (start .Attr ,_cbbg );};if _dbgd .HrnoshadeAttr !=_g .ST_TrueFalseUnset {_dge ,_ceeg :=_dbgd .HrnoshadeAttr .MarshalXMLAttr (_c .Name {Local :"o\u003a\u0068\u0072\u006e\u006f\u0073\u0068\u0061\u0064\u0065"});if _ceeg !=nil {return _ceeg ;};start .Attr =append (start .Attr ,_dge );};if _dbgd .HrpctAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u0068\u0072\u0070\u0063\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dbgd .HrpctAttr )});};if _dbgd .HralignAttr !=OfcST_HrAlignUnset {_gcgf ,_gddb :=_dbgd .HralignAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0068\u0072\u0061\u006c
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Relation and its children, prefixing error messages with path
|
|
|
|
func (_feacb *OfcCT_Relation )ValidateWithPath (path string )error {if _bgcfb :=_feacb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bgcfb !=nil {return _bgcfb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcExtrusion and its children, prefixing error messages with path
|
|
|
|
func (_ccdfb *OfcExtrusion )ValidateWithPath (path string )error {if _bbgec :=_ccdfb .OfcCT_Extrusion .ValidateWithPath (path );_bbgec !=nil {return _bbgec ;};return nil ;};func (_dggea *OfcCT_ShapeLayout )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_eaabb :=range start .Attr {if _eaabb .Name .Local =="\u0065\u0078\u0074"{_dggea .ExtAttr .UnmarshalXMLAttr (_eaabb );continue ;};};_baafgg :for {_feda ,_bbcbg :=d .Token ();if _bbcbg !=nil {return _bbcbg ;};switch _fabf :=_feda .(type ){case _c .StartElement :switch _fabf .Name {case _c .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"}:_dggea .Idmap =NewOfcCT_IdMap ();if _dbfcb :=d .DecodeElement (_dggea .Idmap ,&_fabf );_dbfcb !=nil {return _dbfcb ;};case _c .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"}:_dggea .Regrouptable =NewOfcCT_RegroupTable ();if _degcd :=d .DecodeElement (_dggea .Regrouptable ,&_fabf );_degcd !=nil {return _degcd ;};case _c .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"}:_dggea .Rules =NewOfcCT_Rules ();if _gdgcaf :=d .DecodeElement (_dggea .Rules ,&_fabf );_gdgcaf !=nil {return _gdgcaf ;};default:_ce .Log .Debug ("\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",_fabf .Name );if _fbbbe :=d .Skip ();_fbbbe !=nil {return _fbbbe ;};};case _c .EndElement :break _baafgg ;case _c .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_H and its children, prefixing error messages with path
|
|
|
|
func (_bbecb *CT_H )ValidateWithPath (path string )error {if _dbfb :=_bbecb .InvxAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0078\u0041\u0074\u0074r");_dbfb !=nil {return _dbfb ;};if _ecfg :=_bbecb .InvyAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0079\u0041\u0074\u0074r");_ecfg !=nil {return _ecfg ;};if _gecgd :=_bbecb .SwitchAttr .ValidateWithPath (path +"/\u0053\u0077\u0069\u0074\u0063\u0068\u0041\u0074\u0074\u0072");_gecgd !=nil {return _gecgd ;};return nil ;};type CT_H struct{PositionAttr *string ;PolarAttr *string ;MapAttr *string ;InvxAttr _g .ST_TrueFalse ;InvyAttr _g .ST_TrueFalse ;SwitchAttr _g .ST_TrueFalseBlank ;XrangeAttr *string ;YrangeAttr *string ;RadiusrangeAttr *string ;};func (_fabg *CT_RoundRect )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_edebf :=range start .Attr {if _edebf .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"&&_edebf .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_fabg .UserdrawnAttr .UnmarshalXMLAttr (_edebf );continue ;};if _edebf .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"&&_edebf .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_bfdbg ,_begfb :=_edebf .Value ,error (nil );if _begfb !=nil {return _begfb ;};_fabg .BordertopcolorAttr =&_bfdbg ;continue ;};if _edebf .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"&&_edebf .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_fabg .UserhiddenAttr .UnmarshalXMLAttr (_edebf );continue ;};if _edebf .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"&&_edebf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_fabg .BulletAttr .UnmarshalXMLAttr (_edebf );continue ;};if _edebf .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"&&_edebf .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_fabg .CliptowrapAttr .UnmarshalXMLAttr (_edebf );continue ;};if _edebf .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"&&_edebf .Name .Local =="\u0068\u0072"{_fabg .HrAttr .UnmarshalXMLAttr (_edebf );continue ;};if _edebf .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"&&_edebf .Name .Local =="\u006f\u006c\u0065"{_fabg .OleAttr .UnmarshalXMLAttr (_edebf );continue ;};if _edebf .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"&&_edebf .Name .Local =="\u0068\u0072\u0073t\u0064"{_fabg .HrstdAttr .UnmarshalXMLAttr (_edebf );continue ;};if _edebf .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\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Imagedata and its children, prefixing error messages with path
|
|
|
|
func (_gfggc *Imagedata )ValidateWithPath (path string )error {if _cfbgfb :=_gfggc .CT_ImageData .ValidateWithPath (path );_cfbgfb !=nil {return _cfbgfb ;};return nil ;};func (_abag *CT_Group )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cebf :=range start .Attr {if _cebf .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"&&_cebf .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_abag .AllowincellAttr .UnmarshalXMLAttr (_cebf );continue ;};if _cebf .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"&&_cebf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_abag .BulletAttr .UnmarshalXMLAttr (_cebf );continue ;};if _cebf .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"&&_cebf .Name .Local =="\u0068\u0072"{_abag .HrAttr .UnmarshalXMLAttr (_cebf );continue ;};if _cebf .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"&&_cebf .Name .Local =="\u006f\u006e\u0065\u0064"{_abag .OnedAttr .UnmarshalXMLAttr (_cebf );continue ;};if _cebf .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"&&_cebf .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_abag .HralignAttr .UnmarshalXMLAttr (_cebf );continue ;};if _cebf .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"&&_cebf .Name .Local =="t\u0061\u0062\u006c\u0065\u006c\u0069\u006d\u0069\u0074\u0073"{_gccdd ,_bbfef :=_cebf .Value ,error (nil );if _bbfef !=nil {return _bbfef ;};_abag .TablelimitsAttr =&_gccdd ;continue ;};if _cebf .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"&&_cebf .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_ddga ,_dcde :=_cb .ParseInt (_cebf .Value ,10,64);if _dcde !=nil {return _dcde ;};_abag .RegroupidAttr =&_ddga ;continue ;};if _cebf .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"&&_cebf .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_dbdff ,_geab :=_cebf .Value ,error (nil );if _geab !=nil {return _geab ;};_abag .BordertopcolorAttr =&_dbdff ;continue ;};if _cebf .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"&&_cebf .Name .Local =="\u0073\u0070\u0069\u0064"{_aabff ,_cagf :=_cebf .Value ,error (nil );if _cagf !=nil {return _cagf ;};_abag .SpidAttr =&_aabff ;continue ;};if _cebf .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\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Callout and its children
|
|
|
|
func (_aegdc *OfcCT_Callout )Validate ()error {return _aegdc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};func NewOfcCT_ColorMru ()*OfcCT_ColorMru {_eeedg :=&OfcCT_ColorMru {};return _eeedg };func (_cdgeb *OfcInk )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cdgeb .OfcCT_Ink =*NewOfcCT_Ink ();for _ ,_aecaa :=range start .Attr {if _aecaa .Name .Local =="\u0069"{_bgead ,_fbge :=_aecaa .Value ,error (nil );if _fbge !=nil {return _fbge ;};_cdgeb .IAttr =&_bgead ;continue ;};if _aecaa .Name .Local =="\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_cdgeb .AnnotationAttr .UnmarshalXMLAttr (_aecaa );continue ;};if _aecaa .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_fcceb ,_daeead :=_aecaa .Value ,error (nil );if _daeead !=nil {return _daeead ;};_cdgeb .ContentTypeAttr =&_fcceb ;continue ;};};for {_gcgcf ,_bced :=d .Token ();if _bced !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u004ff\u0063\u0049n\u006b\u003a\u0020\u0025\u0073",_bced );};if _ggagc ,_feeddc :=_gcgcf .(_c .EndElement );_feeddc &&_ggagc .Name ==start .Name {break ;};};return nil ;};func NewOfcLeft ()*OfcLeft {_acgecb :=&OfcLeft {};_acgecb .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _acgecb ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Arc and its children, prefixing error messages with path
|
|
|
|
func (_ggag *Arc )ValidateWithPath (path string )error {if _fefg :=_ggag .CT_Arc .ValidateWithPath (path );_fefg !=nil {return _fefg ;};return nil ;};func (_gcccf OfcST_BWMode )String ()string {switch _gcccf {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 "";};func NewOfcCT_EquationXml ()*OfcCT_EquationXml {_cccg :=&OfcCT_EquationXml {};return _cccg };func (_gcde ST_ImageAspect )Validate ()error {return _gcde .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Stroke and its children, prefixing error messages with path
|
|
|
|
func (_eeca *CT_Stroke )ValidateWithPath (path string )error {if _eeca .Left !=nil {if _adaba :=_eeca .Left .ValidateWithPath (path +"\u002f\u004c\u0065f\u0074");_adaba !=nil {return _adaba ;};};if _eeca .Top !=nil {if _agda :=_eeca .Top .ValidateWithPath (path +"\u002f\u0054\u006f\u0070");_agda !=nil {return _agda ;};};if _eeca .Right !=nil {if _afage :=_eeca .Right .ValidateWithPath (path +"\u002f\u0052\u0069\u0067\u0068\u0074");_afage !=nil {return _afage ;};};if _eeca .Bottom !=nil {if _bcada :=_eeca .Bottom .ValidateWithPath (path +"\u002fB\u006f\u0074\u0074\u006f\u006d");_bcada !=nil {return _bcada ;};};if _eeca .Column !=nil {if _dbdad :=_eeca .Column .ValidateWithPath (path +"\u002fC\u006f\u006c\u0075\u006d\u006e");_dbdad !=nil {return _dbdad ;};};if _aeca :=_eeca .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_aeca !=nil {return _aeca ;};if _ffbcg :=_eeca .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_ffbcg !=nil {return _ffbcg ;};if _gcdbc :=_eeca .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_gcdbc !=nil {return _gcdbc ;};if _gebg :=_eeca .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_gebg !=nil {return _gebg ;};if _decdf :=_eeca .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_decdf !=nil {return _decdf ;};if _gdafg :=_eeca .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_gdafg !=nil {return _gdafg ;};if _egdd :=_eeca .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_egdd !=nil {return _egdd ;};if _dbggce :=_eeca .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_dbggce !=nil {return _dbggce ;};if _baffc :=_eeca .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_baffc !=nil {return _baffc ;};if _cegfa :=_eeca .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_cegfa !=nil {return _cegfa ;};if _decga :=_eeca .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_decga !=nil {return _decga ;};if _bgddc :=_eeca .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_bgddc !=nil {return _bgddc ;};if _cdged :=_eeca .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_cdged !=nil {return _cdged ;};if _fbeee :=_eeca .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_fbeee !=nil {return _fbeee ;};if _eegga :=_eeca .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_eegga !=nil {return _eegga ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcShapelayout and its children
|
|
|
|
func (_fgacc *OfcShapelayout )Validate ()error {return _fgacc .ValidateWithPath ("\u004f\u0066\u0063\u0053\u0068\u0061\u0070\u0065\u006ca\u0079\u006f\u0075\u0074");};func (_afdgd OfcST_ColorMode )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_afdgd .String (),start );};type OfcCT_ColorMru struct{ColorsAttr *string ;ExtAttr ST_Ext ;};func (_dggbe *OfcExtrusion )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dggbe .OfcCT_Extrusion =*NewOfcCT_Extrusion ();for _ ,_ecfgb :=range start .Attr {if _ecfgb .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_dggbe .ColormodeAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u0063\u006f\u006co\u0072"{_dedae ,_cceaf :=_ecfgb .Value ,error (nil );if _cceaf !=nil {return _cceaf ;};_dggbe .ColorAttr =&_dedae ;continue ;};if _ecfgb .Name .Local =="\u0074\u0079\u0070\u0065"{_dggbe .TypeAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_dadda ,_bgeca :=_cb .ParseFloat (_ecfgb .Value ,64);if _bgeca !=nil {return _bgeca ;};_cbbaeg :=float32 (_dadda );_dggbe .ShininessAttr =&_cbbaeg ;continue ;};if _ecfgb .Name .Local =="\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"{_bggdb ,_bdbfg :=_ecfgb .Value ,error (nil );if _bdbfg !=nil {return _bdbfg ;};_dggbe .ViewpointoriginAttr =&_bggdb ;continue ;};if _ecfgb .Name .Local =="s\u0070\u0065\u0063\u0075\u006c\u0061\u0072\u0069\u0074\u0079"{_fcfafd ,_fagbe :=_ecfgb .Value ,error (nil );if _fagbe !=nil {return _fagbe ;};_dggbe .SpecularityAttr =&_fcfafd ;continue ;};if _ecfgb .Name .Local =="\u0070\u006c\u0061n\u0065"{_dggbe .PlaneAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u0064i\u0066\u0066\u0075\u0073\u0069\u0074y"{_dgdff ,_gecaf :=_ecfgb .Value ,error (nil );if _gecaf !=nil {return _gecaf ;};_dggbe .DiffusityAttr =&_dgdff ;continue ;};if _ecfgb .Name .Local =="\u0073k\u0065\u0077\u0061\u006d\u0074"{_bafcd ,_addge :=_ecfgb .Value ,error (nil );if _addge !=nil {return _addge ;};_dggbe .SkewamtAttr =&_bafcd ;continue ;};if _ecfgb .Name .Local =="\u006d\u0065\u0074a\u006c"{_dggbe .MetalAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"{_ebcba ,_eadgce :=_ecfgb .Value ,error (nil );if _eadgce !=nil {return _eadgce ;};_dggbe .BackdepthAttr =&_ebcba ;continue ;};if _ecfgb .Name .Local =="\u0065\u0064\u0067\u0065"{_bccge ,_dgaab :=_ecfgb .Value ,error (nil );if _dgaab !=nil {return _dgaab ;};_dggbe .EdgeAttr =&_bccge ;continue ;};if _ecfgb .Name .Local =="l\u0069\u0067\u0068\u0074\u006c\u0065\u0076\u0065\u006c\u0032"{_eega ,_debgef :=_ecfgb .Value ,error (nil );if _debgef !=nil {return _debgef ;};_dggbe .Lightlevel2Attr =&_eega ;continue ;};if _ecfgb .Name .Local =="\u006f\u0072i\u0065\u006e\u0074a\u0074\u0069\u006f\u006e\u0061\u006e\u0067\u006c\u0065"{_fdgea ,_dadfe :=_cb .ParseFloat (_ecfgb .Value ,64);if _dadfe !=nil {return _dadfe ;};_dcbaa :=float32 (_fdgea );_dggbe .OrientationangleAttr =&_dcbaa ;continue ;};if _ecfgb .Name .Local =="\u006f\u006e"{_dggbe .OnAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u006c\u0069\u0067\u0068\u0074\u0068\u0061\u0072\u0073\u0068"{_dggbe .LightharshAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u006ci\u0067\u0068\u0074\u0066\u0061\u0063e"{_dggbe .LightfaceAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u0066o\u0072\u0065\u0064\u0065\u0070\u0074h"{_ecbbg ,_gcafdd :=_ecfgb .Value ,error (nil );if _gcafdd !=nil {return _gcafdd ;};_dggbe .ForedepthAttr =&_ecbbg ;continue ;};if _ecfgb .Name .Local =="\u0065\u0078\u0074"{_dggbe .ExtAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u0061u\u0074o\u0072\u006f\u0074\u0061\u0074i\u006f\u006ec\u0065\u006e\u0074\u0065\u0072"{_dggbe .AutorotationcenterAttr .UnmarshalXMLAttr (_ecfgb );continue ;};if _ecfgb .Name .Local =="\u0066\u0061\u0063e\u0074"{_cccdea ,_ggcba :=_ecfgb .Value ,error (nil );if _ggcba !=nil {re
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Formulas and its children
|
|
|
|
func (_ccdg *CT_Formulas )Validate ()error {return _ccdg .ValidateWithPath ("C\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};func (_ebdca ST_FillMethod )Validate ()error {return _ebdca .ValidateWithPath ("")};func (_ee *AG_Chromakey )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_aea :=range start .Attr {if _aea .Name .Local =="\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"{_fgeb ,_bgb :=_aea .Value ,error (nil );if _bgb !=nil {return _bgb ;};_ee .ChromakeyAttr =&_fgeb ;continue ;};};for {_adcd ,_cec :=d .Token ();if _cec !=nil {return _e .Errorf ("\u0070a\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005f\u0043\u0068r\u006f\u006d\u0061\u006b\u0065\u0079\u003a\u0020\u0025\u0073",_cec );};if _ddef ,_afab :=_adcd .(_c .EndElement );_afab &&_ddef .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcShapelayout and its children, prefixing error messages with path
|
|
|
|
func (_bccda *OfcShapelayout )ValidateWithPath (path string )error {if _gbfdfe :=_bccda .OfcCT_ShapeLayout .ValidateWithPath (path );_gbfdfe !=nil {return _gbfdfe ;};return nil ;};func (_dbgfe *Image )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _dbgfe .CT_Image .MarshalXML (e ,start );};func (_cdgf *Handles )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cdgf .CT_Handles =*NewCT_Handles ();_ecdef :for {_fbad ,_efaae :=d .Token ();if _efaae !=nil {return _efaae ;};switch _gbdbc :=_fbad .(type ){case _c .StartElement :switch _gbdbc .Name {case _c .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"}:_cgdac :=NewCT_H ();if _fefbf :=d .DecodeElement (_cgdac ,&_gbdbc );_fefbf !=nil {return _fefbf ;};_cdgf .H =append (_cdgf .H ,_cgdac );default:_ce .Log .Debug ("\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",_gbdbc .Name );if _dcad :=d .Skip ();_dcad !=nil {return _dcad ;};};case _c .EndElement :break _ecdef ;case _c .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Textpath and its children
|
|
|
|
func (_befec *Textpath )Validate ()error {return _befec .ValidateWithPath ("\u0054\u0065\u0078\u0074\u0070\u0061\u0074\u0068");};func (_ffcbg *ST_ShadowType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bcgca ,_dfggbg :=d .Token ();if _dfggbg !=nil {return _dfggbg ;};if _gbaefc ,_eced :=_bcgca .(_c .EndElement );_eced &&_gbaefc .Name ==start .Name {*_ffcbg =1;return nil ;};if _dgbddf ,_gafeag :=_bcgca .(_c .CharData );!_gafeag {return _e .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",_bcgca );}else {switch string (_dgbddf ){case "":*_ffcbg =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_ffcbg =1;case "\u0064\u006f\u0075\u0062\u006c\u0065":*_ffcbg =2;case "\u0065\u006d\u0062\u006f\u0073\u0073":*_ffcbg =3;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_ffcbg =4;};};_bcgca ,_dfggbg =d .Token ();if _dfggbg !=nil {return _dfggbg ;};if _ccaed ,_ebaaf :=_bcgca .(_c .EndElement );_ebaaf &&_ccaed .Name ==start .Name {return nil ;};return _e .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",_bcgca );};func (_ggeff *OfcST_RType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_ggeff =0;case "\u0061\u0072\u0063":*_ggeff =1;case "\u0063a\u006c\u006c\u006f\u0075\u0074":*_ggeff =2;case "\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr":*_ggeff =3;case "\u0061\u006c\u0069g\u006e":*_ggeff =4;};return nil ;};func (_dfcbc OfcST_RType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_ggfbdc :=_c .Attr {};_ggfbdc .Name =name ;switch _dfcbc {case OfcST_RTypeUnset :_ggfbdc .Value ="";case OfcST_RTypeArc :_ggfbdc .Value ="\u0061\u0072\u0063";case OfcST_RTypeCallout :_ggfbdc .Value ="\u0063a\u006c\u006c\u006f\u0075\u0074";case OfcST_RTypeConnector :_ggfbdc .Value ="\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr";case OfcST_RTypeAlign :_ggfbdc .Value ="\u0061\u006c\u0069g\u006e";};return _ggfbdc ,nil ;};type CT_Formulas struct{F []*CT_F ;};func (_bfbdd *OfcCT_Complex )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_beccd :=range start .Attr {if _beccd .Name .Local =="\u0065\u0078\u0074"{_bfbdd .ExtAttr .UnmarshalXMLAttr (_beccd );continue ;};};for {_cdbed ,_cecaf :=d .Token ();if _cecaf !=nil {return _e .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u006fm\u0070\u006c\u0065\u0078\u003a\u0020\u0025s",_cecaf );};if _aaecb ,_befab :=_cdbed .(_c .EndElement );_befab &&_aaecb .Name ==start .Name {break ;};};return nil ;};func (_egbeb *OfcCT_EquationXml )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0065\u0071\u0075\u0061\u0074\u0069\u006f\u006e\u0078\u006d\u006c";};if _egbeb .ContentTypeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_egbeb .ContentTypeAttr )});};e .EncodeToken (start );if _egbeb .Any !=nil {_egbeb .Any .MarshalXML (e ,_c .StartElement {});};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_gcaef ST_FillType )Validate ()error {return _gcaef .ValidateWithPath ("")};func (_fbec *CT_Image )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ggfg :=range start .Attr {if _ggfg .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"&&_ggfg .Name .Local =="d\u0067\u006d\u006e\u006f\u0064\u0065\u006b\u0069\u006e\u0064"{_bcbce ,_adde :=_cb .ParseInt (_ggfg .Value ,10,64);if _adde !=nil {return _adde ;};_fbec .DgmnodekindAttr =&_bcbce ;continue ;};if _ggfg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Complex and its children
|
|
|
|
func (_fafge *OfcCT_Complex )Validate ()error {return _fafge .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Shape and its children
|
|
|
|
func (_bagdgg *Shape )Validate ()error {return _bagdgg .ValidateWithPath ("\u0053\u0068\u0061p\u0065")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Entry and its children
|
|
|
|
func (_bgaef *OfcCT_Entry )Validate ()error {return _bgaef .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0045\u006e\u0074\u0072\u0079");};func (_ccee *CT_F )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0066";};if _ccee .EqnAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0065\u0071\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_ccee .EqnAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};type Textbox struct{CT_Textbox };func (_efdaef *OfcCT_ClipPath )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_geccb :=range start .Attr {if _geccb .Name .Local =="\u0076"{_aafec ,_cfdgc :=_geccb .Value ,error (nil );if _cfdgc !=nil {return _cfdgc ;};_efdaef .VAttr =_aafec ;continue ;};};for {_fbcg ,_faacf :=d .Token ();if _faacf !=nil {return _e .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",_faacf );};if _efaee ,_bbbca :=_fbcg .(_c .EndElement );_bbbca &&_efaee .Name ==start .Name {break ;};};return nil ;};func (_bdfg ST_StrokeArrowLength )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_bdaef :=_c .Attr {};_bdaef .Name =name ;switch _bdfg {case ST_StrokeArrowLengthUnset :_bdaef .Value ="";case ST_StrokeArrowLengthShort :_bdaef .Value ="\u0073\u0068\u006fr\u0074";case ST_StrokeArrowLengthMedium :_bdaef .Value ="\u006d\u0065\u0064\u0069\u0075\u006d";case ST_StrokeArrowLengthLong :_bdaef .Value ="\u006c\u006f\u006e\u0067";};return _bdaef ,nil ;};func (_debag ST_StrokeJoinStyle )ValidateWithPath (path string )error {switch _debag {case 0,1,2,3:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_debag ));};return nil ;};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 _g .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _g .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _g .ST_TrueFalse ;ButtonAttr _g .ST_TrueFalse ;UserhiddenAttr _g .ST_TrueFalse ;BulletAttr _g .ST_TrueFalse ;HrAttr _g .ST_TrueFalse ;HrstdAttr _g .ST_TrueFalse ;HrnoshadeAttr _g .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _g .ST_TrueFalse ;AllowoverlapAttr _g .ST_TrueFalse ;UserdrawnAttr _g .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _g .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _g .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _g .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _g .ST_TrueFalse ;OleiconAttr _g .ST_TrueFalse ;OleAttr _g .ST_TrueFalseBlank ;PreferrelativeAttr _g .ST_TrueFalse ;CliptowrapAttr _g .ST_TrueFalse ;ClipAttr _g .ST_TrueFalse ;};func (_acdec ST_StrokeJoinStyle )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_edgagf :=_c .Attr {};_edgagf .Name =name ;switch _acdec {case ST_StrokeJoinStyleUnset :_edgagf .Value ="";case ST_StrokeJoinStyleRound :_edgagf .Value ="\u0072\u006f\u0075n\u0064";case ST_StrokeJoinStyleBevel :_edgagf .Value ="\u0062\u0065\u0076e\u006c";case ST_StrokeJoinStyleMiter :_edgagf .Value ="\u006d\u0069\u0074e\u0072";};return _edgagf ,nil ;};type OfcCallout struct{OfcCT_Callout };type Shapetype struct{CT_Shapetype };type OfcST_RType byte ;func (_bcgff OfcST_ExtrusionPlane )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {re
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Image and its children
|
|
|
|
func (_bbede *CT_Image )Validate ()error {return _bbede .ValidateWithPath ("\u0043\u0054\u005f\u0049\u006d\u0061\u0067\u0065");};func (_gdbdc *OfcColumn )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gdbdc .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_aedcgg :=range start .Attr {if _aedcgg .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"&&_aedcgg .Name .Local =="\u0068\u0072\u0065\u0066"{_gcfba ,_bcefd :=_aedcgg .Value ,error (nil );if _bcefd !=nil {return _bcefd ;};_gdbdc .HrefAttr =&_gcfba ;continue ;};if _aedcgg .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"&&_aedcgg .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_gdbdc .ForcedashAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .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"&&_aedcgg .Name .Local =="\u0074\u0069\u0074l\u0065"{_eeedc ,_bbfgb :=_aedcgg .Value ,error (nil );if _bbfgb !=nil {return _bbfgb ;};_gdbdc .TitleAttr =&_eeedc ;continue ;};if _aedcgg .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"&&_aedcgg .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_gdaee ,_cbegf :=_aedcgg .Value ,error (nil );if _cbegf !=nil {return _cbegf ;};_gdbdc .AlthrefAttr =&_gdaee ;continue ;};if _aedcgg .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_gdbdc .ImageaspectAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_gdbdc .StartarrowAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_gdbdc .LinestyleAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_gdbdc .StartarrowwidthAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_gdbdc .JoinstyleAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_gdbdc .StartarrowlengthAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_bfdfg ,_faebf :=_aedcgg .Value ,error (nil );if _faebf !=nil {return _faebf ;};_gdbdc .DashstyleAttr =&_bfdfg ;continue ;};if _aedcgg .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_gdbdc .EndarrowAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_gdbdc .FilltypeAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_gdbdc .EndarrowwidthAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_gfbfdga ,_dbcae :=_aedcgg .Value ,error (nil );if _dbcae !=nil {return _dbcae ;};_gdbdc .OpacityAttr =&_gfbfdga ;continue ;};if _aedcgg .Name .Local =="\u0063\u006f\u006co\u0072"{_agdag ,_fbbab :=_aedcgg .Value ,error (nil );if _fbbab !=nil {return _fbbab ;};_gdbdc .ColorAttr =&_agdag ;continue ;};if _aedcgg .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_gdbdc .InsetpenAttr .UnmarshalXMLAttr (_aedcgg );continue ;};if _aedcgg .Name .Local =="\u0065\u006e\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Line and its children, prefixing error messages with path
|
|
|
|
func (_fdgdd *Line )ValidateWithPath (path string )error {if _beada :=_fdgdd .CT_Line .ValidateWithPath (path );_beada !=nil {return _beada ;};return nil ;};func (_eggfg ST_StrokeArrowType )String ()string {switch _eggfg {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 "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Stroke and its children
|
|
|
|
func (_dgafa *Stroke )Validate ()error {return _dgafa .ValidateWithPath ("\u0053\u0074\u0072\u006f\u006b\u0065");};func NewOfcCallout ()*OfcCallout {_eeec :=&OfcCallout {};_eeec .OfcCT_Callout =*NewOfcCT_Callout ();return _eeec ;};func (_cgdcb *Polyline )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cgdcb .CT_PolyLine =*NewCT_PolyLine ();for _ ,_cffgd :=range start .Attr {if _cffgd .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"&&_cffgd .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_cgdcb .UserdrawnAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u0063\u006c\u0069\u0070"{_cgdcb .ClipAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_cgdcb .UserhiddenAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u0069n\u0073\u0065\u0074\u006d\u006f\u0064e"{_cgdcb .InsetmodeAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_cgdcb .BulletAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_cgdcb .PreferrelativeAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u0068\u0072"{_cgdcb .HrAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_cgdcb .OleiconAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u0068\u0072\u0073t\u0064"{_cgdcb .HrstdAttr .UnmarshalXMLAttr (_cffgd );continue ;};if _cffgd .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"&&_cffgd .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_cgdcb .HrnoshadeAttr .Unm
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_Id and its children
|
|
|
|
func (_effg *AG_Id )Validate ()error {return _effg .ValidateWithPath ("\u0041\u0047\u005fI\u0064")};func NewOfcRight ()*OfcRight {_eaee :=&OfcRight {};_eaee .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _eaee ;};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;);func NewCT_Handles ()*CT_Handles {_afgg :=&CT_Handles {};return _afgg };func (_gdce *Imagedata )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _gdce .CT_ImageData .MarshalXML (e ,start );};func NewOfcCT_ColorMenu ()*OfcCT_ColorMenu {_fbca :=&OfcCT_ColorMenu {};return _fbca };func (_cbdeg *OfcCT_Relation )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_aefgd :=range start .Attr {if _aefgd .Name .Local =="\u0069\u0064\u0073r\u0063"{_ffggg ,_dbafd :=_aefgd .Value ,error (nil );if _dbafd !=nil {return _dbafd ;};_cbdeg .IdsrcAttr =&_ffggg ;continue ;};if _aefgd .Name .Local =="\u0069\u0064\u0064\u0065\u0073\u0074"{_bgbcg ,_efced :=_aefgd .Value ,error (nil );if _efced !=nil {return _efced ;};_cbdeg .IddestAttr =&_bgbcg ;continue ;};if _aefgd .Name .Local =="\u0069\u0064\u0063\u006e\u0074\u0072"{_gecb ,_bbaad :=_aefgd .Value ,error (nil );if _bbaad !=nil {return _bbaad ;};_cbdeg .IdcntrAttr =&_gecb ;continue ;};if _aefgd .Name .Local =="\u0065\u0078\u0074"{_cbdeg .ExtAttr .UnmarshalXMLAttr (_aefgd );continue ;};};for {_gcafd ,_gdee :=d .Token ();if _gdee !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u004f\u0066\u0063C\u0054\u005f\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006e:\u0020\u0025\u0073",_gdee );};if _cbcaa ,_bbbcef :=_gcafd .(_c .EndElement );_bbbcef &&_cbcaa .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_Chromakey and its children, prefixing error messages with path
|
|
|
|
func (_bcf *AG_Chromakey )ValidateWithPath (path string )error {return nil };type OfcCT_Proxy struct{StartAttr _g .ST_TrueFalseBlank ;EndAttr _g .ST_TrueFalseBlank ;IdrefAttr *string ;ConnectlocAttr *int32 ;};func (_ebdfe *OfcLock )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ebdfe .OfcCT_Lock =*NewOfcCT_Lock ();for _ ,_aeefcc :=range start .Attr {if _aeefcc .Name .Local =="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"{_ebdfe .PositionAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0073e\u006c\u0065\u0063\u0074\u0069\u006fn"{_ebdfe .SelectionAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"{_ebdfe .GroupingAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0075\u006e\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"{_ebdfe .UngroupingAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_ebdfe .RotationAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0063\u0072\u006f\u0070\u0070\u0069\u006e\u0067"{_ebdfe .CroppingAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0076e\u0072\u0074\u0069\u0063\u0069\u0065s"{_ebdfe .VerticiesAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0061\u0064\u006a\u0075\u0073\u0074\u0068\u0061\u006e\u0064\u006c\u0065\u0073"{_ebdfe .AdjusthandlesAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0074\u0065\u0078\u0074"{_ebdfe .TextAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="a\u0073\u0070\u0065\u0063\u0074\u0072\u0061\u0074\u0069\u006f"{_ebdfe .AspectratioAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0073h\u0061\u0070\u0065\u0074\u0079\u0070e"{_ebdfe .ShapetypeAttr .UnmarshalXMLAttr (_aeefcc );continue ;};if _aeefcc .Name .Local =="\u0065\u0078\u0074"{_ebdfe .ExtAttr .UnmarshalXMLAttr (_aeefcc );continue ;};};for {_ceafb ,_bfaa :=d .Token ();if _bfaa !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u004c\u006f\u0063\u006b\u003a\u0020\u0025\u0073",_bfaa );};if _fedg ,_ecdc :=_ceafb .(_c .EndElement );_ecdc &&_fedg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_RegroupTable and its children
|
|
|
|
func (_fafgc *OfcCT_RegroupTable )Validate ()error {return _fafgc .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0052\u0065\u0067r\u006f\u0075p\u0054\u0061\u0062\u006c\u0065");};func (_eddcd *OfcCT_Callout )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_gggfd :=range start .Attr {if _gggfd .Name .Local =="\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"{_eddcd .LengthspecifiedAttr .UnmarshalXMLAttr (_gggfd );continue ;};if _gggfd .Name .Local =="\u006f\u006e"{_eddcd .OnAttr .UnmarshalXMLAttr (_gggfd );continue ;};if _gggfd .Name .Local =="\u0067\u0061\u0070"{_edfg ,_bfffb :=_gggfd .Value ,error (nil );if _bfffb !=nil {return _bfffb ;};_eddcd .GapAttr =&_edfg ;continue ;};if _gggfd .Name .Local =="\u0061\u006e\u0067l\u0065"{_eddcd .AngleAttr .UnmarshalXMLAttr (_gggfd );continue ;};if _gggfd .Name .Local =="\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"{_eddcd .DropautoAttr .UnmarshalXMLAttr (_gggfd );continue ;};if _gggfd .Name .Local =="\u0064\u0072\u006f\u0070"{_bbfdg ,_agdg :=_gggfd .Value ,error (nil );if _agdg !=nil {return _agdg ;};_eddcd .DropAttr =&_bbfdg ;continue ;};if _gggfd .Name .Local =="\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"{_cbadb ,_dgaae :=_gggfd .Value ,error (nil );if _dgaae !=nil {return _dgaae ;};_eddcd .DistanceAttr =&_cbadb ;continue ;};if _gggfd .Name .Local =="\u0074\u0079\u0070\u0065"{_dfbcd ,_efdgc :=_gggfd .Value ,error (nil );if _efdgc !=nil {return _efdgc ;};_eddcd .TypeAttr =&_dfbcd ;continue ;};if _gggfd .Name .Local =="\u006c\u0065\u006e\u0067\u0074\u0068"{_dfac ,_abgc :=_gggfd .Value ,error (nil );if _abgc !=nil {return _abgc ;};_eddcd .LengthAttr =&_dfac ;continue ;};if _gggfd .Name .Local =="\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"{_eddcd .AccentbarAttr .UnmarshalXMLAttr (_gggfd );continue ;};if _gggfd .Name .Local =="\u0074\u0065\u0078\u0074\u0062\u006f\u0072\u0064\u0065\u0072"{_eddcd .TextborderAttr .UnmarshalXMLAttr (_gggfd );continue ;};if _gggfd .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0078"{_eddcd .MinusxAttr .UnmarshalXMLAttr (_gggfd );continue ;};if _gggfd .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0079"{_eddcd .MinusyAttr .UnmarshalXMLAttr (_gggfd );continue ;};if _gggfd .Name .Local =="\u0065\u0078\u0074"{_eddcd .ExtAttr .UnmarshalXMLAttr (_gggfd );continue ;};};for {_fdga ,_cfdd :=d .Token ();if _cfdd !=nil {return _e .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u0061l\u006c\u006f\u0075\u0074\u003a\u0020\u0025s",_cfdd );};if _dafcg ,_geagf :=_fdga .(_c .EndElement );_geagf &&_dafcg .Name ==start .Name {break ;};};return nil ;};func (_gfgegg *OfcCT_Diagram )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dcabd :=range start .Attr {if _dcabd .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_ebgd ,_gbbdg :=_cb .ParseInt (_dcabd .Value ,10,64);if _gbbdg !=nil {return _gbbdg ;};_gfgegg .DgmstyleAttr =&_ebgd ;continue ;};if _dcabd .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_gfgegg .AutoformatAttr .UnmarshalXMLAttr (_dcabd );continue ;};if _dcabd .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_gfgegg .ReverseAttr .UnmarshalXMLAttr (_dcabd );continue ;};if _dcabd .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_gfgegg .AutolayoutAttr .UnmarshalXMLAttr (_dcabd );continue ;};if _dcabd .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_egecd ,_gdfd :=_cb .ParseInt (_dcabd .Value ,10,64);if _gdfd !=nil {return _gdfd ;};_gfgegg .DgmscalexAttr =&_egecd ;continue ;};if _dcabd .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_dbecf ,_fgcab :=_cb .ParseInt (_dcabd .Value ,10,64);if _fgcab !=nil {return _fgcab ;};_gfgegg .DgmscaleyAttr =&_dbecf ;continue ;};if _dcabd .Name .Local =="d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"{_ageff ,_bgee :=_cb .ParseInt (_dcabd .Value ,10,64);if _bgee !=nil {return _bgee ;};_gfgegg .DgmfontsizeAttr =&_ageff ;continue ;};if _dcabd .Name .Local =="\u0063o\u006es\u0074\u0072\u0061\u0069\
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_aff *AG_OfficeCoreAttributes )ValidateWithPath (path string )error {if _cfa :=_aff .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_cfa !=nil {return _cfa ;};if _cfg :=_aff .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cfg !=nil {return _cfg ;};if _ced :=_aff .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ced !=nil {return _ced ;};if _cbf :=_aff .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_cbf !=nil {return _cbf ;};if _bcaf :=_aff .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_bcaf !=nil {return _bcaf ;};if _edgd :=_aff .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_edgd !=nil {return _edgd ;};if _cgeg :=_aff .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_cgeg !=nil {return _cgeg ;};if _dfeg :=_aff .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_dfeg !=nil {return _dfeg ;};if _fbdf :=_aff .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fbdf !=nil {return _fbdf ;};if _bfdb :=_aff .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_bfdb !=nil {return _bfdb ;};if _cbfe :=_aff .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_cbfe !=nil {return _cbfe ;};if _gge :=_aff .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_gge !=nil {return _gge ;};if _daa :=_aff .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_daa !=nil {return _daa ;};if _cfaf :=_aff .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_cfaf !=nil {return _cfaf ;};if _fcf :=_aff .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fcf !=nil {return _fcf ;};return nil ;};type OfcCT_Diagram struct{DgmstyleAttr *int64 ;AutoformatAttr _g .ST_TrueFalse ;ReverseAttr _g .ST_TrueFalse ;AutolayoutAttr _g .ST_TrueFalse ;DgmscalexAttr *int64 ;DgmscaleyAttr *int64 ;DgmfontsizeAttr *int64 ;ConstrainboundsAttr *string ;DgmbasetextscaleAttr *int64 ;Relationtable *OfcCT_RelationTable ;ExtAttr ST_Ext ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Path and its children
|
|
|
|
func (_ddfaf *Path )Validate ()error {return _ddfaf .ValidateWithPath ("\u0050\u0061\u0074\u0068")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Polyline and its children, prefixing error messages with path
|
|
|
|
func (_cgacf *Polyline )ValidateWithPath (path string )error {if _dfbgf :=_cgacf .CT_PolyLine .ValidateWithPath (path );_dfbgf !=nil {return _dfbgf ;};return nil ;};func NewCT_ImageData ()*CT_ImageData {_fgbfa :=&CT_ImageData {};return _fgbfa };func (_abfed *OfcST_CalloutPlacement )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gcccd ,_baege :=d .Token ();if _baege !=nil {return _baege ;};if _ddbca ,_fcfcf :=_gcccd .(_c .EndElement );_fcfcf &&_ddbca .Name ==start .Name {*_abfed =1;return nil ;};if _bdfda ,_fddgd :=_gcccd .(_c .CharData );!_fddgd {return _e .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",_gcccd );}else {switch string (_bdfda ){case "":*_abfed =0;case "\u0074\u006f\u0070":*_abfed =1;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_abfed =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_abfed =3;case "\u0075\u0073\u0065\u0072":*_abfed =4;};};_gcccd ,_baege =d .Token ();if _baege !=nil {return _baege ;};if _aecfac ,_fbaad :=_gcccd .(_c .EndElement );_fbaad &&_aecfac .Name ==start .Name {return nil ;};return _e .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",_gcccd );};const (ST_StrokeArrowWidthUnset ST_StrokeArrowWidth =0;ST_StrokeArrowWidthNarrow ST_StrokeArrowWidth =1;ST_StrokeArrowWidthMedium ST_StrokeArrowWidth =2;ST_StrokeArrowWidthWide ST_StrokeArrowWidth =3;);func (_gggff *Group )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _gggff .CT_Group .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_Ext and its children
|
|
|
|
func (_faa *AG_Ext )Validate ()error {return _faa .ValidateWithPath ("\u0041\u0047\u005f\u0045\u0078\u0074");};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;);type Polyline struct{CT_PolyLine };func (_cddfg *OfcCT_Proxy )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ebbab :=range start .Attr {if _ebbab .Name .Local =="\u0073\u0074\u0061r\u0074"{_cddfg .StartAttr .UnmarshalXMLAttr (_ebbab );continue ;};if _ebbab .Name .Local =="\u0065\u006e\u0064"{_cddfg .EndAttr .UnmarshalXMLAttr (_ebbab );continue ;};if _ebbab .Name .Local =="\u0069\u0064\u0072e\u0066"{_ecgb ,_ffaee :=_ebbab .Value ,error (nil );if _ffaee !=nil {return _ffaee ;};_cddfg .IdrefAttr =&_ecgb ;continue ;};if _ebbab .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063"{_bbgc ,_ebfgf :=_cb .ParseInt (_ebbab .Value ,10,32);if _ebfgf !=nil {return _ebfgf ;};_gcead :=int32 (_bbgc );_cddfg .ConnectlocAttr =&_gcead ;continue ;};};for {_dfaed ,_gcbae :=d .Token ();if _gcbae !=nil {return _e .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0050\u0072\u006f\u0078\u0079\u003a\u0020\u0025\u0073",_gcbae );};if _degfe ,_aeegg :=_dfaed .(_c .EndElement );_aeegg &&_degfe .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Diagram and its children, prefixing error messages with path
|
|
|
|
func (_fggef *OfcCT_Diagram )ValidateWithPath (path string )error {if _ggced :=_fggef .AutoformatAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u0066\u006f\u0072\u006d\u0061\u0074\u0041\u0074\u0074\u0072");_ggced !=nil {return _ggced ;};if _ecbed :=_fggef .ReverseAttr .ValidateWithPath (path +"\u002f\u0052\u0065v\u0065\u0072\u0073\u0065\u0041\u0074\u0074\u0072");_ecbed !=nil {return _ecbed ;};if _egdg :=_fggef .AutolayoutAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u006c\u0061\u0079\u006f\u0075\u0074\u0041\u0074\u0074\u0072");_egdg !=nil {return _egdg ;};if _fggef .Relationtable !=nil {if _edgab :=_fggef .Relationtable .ValidateWithPath (path +"\u002f\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006et\u0061\u0062\u006c\u0065");_edgab !=nil {return _edgab ;};};if _fceg :=_fggef .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fceg !=nil {return _fceg ;};return nil ;};type ST_ImageAspect byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Formulas and its children, prefixing error messages with path
|
|
|
|
func (_fgfa *Formulas )ValidateWithPath (path string )error {if _ffbcf :=_fgfa .CT_Formulas .ValidateWithPath (path );_ffbcf !=nil {return _ffbcf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Line and its children
|
|
|
|
func (_dacfb *CT_Line )Validate ()error {return _dacfb .ValidateWithPath ("\u0043T\u005f\u004c\u0069\u006e\u0065");};func NewAG_ImageAttributes ()*AG_ImageAttributes {_dagf :=&AG_ImageAttributes {};return _dagf };func (_baaeg OfcST_Angle )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_bdfe :=_c .Attr {};_bdfe .Name =name ;switch _baaeg {case OfcST_AngleUnset :_bdfe .Value ="";case OfcST_AngleAny :_bdfe .Value ="\u0061\u006e\u0079";case OfcST_Angle30 :_bdfe .Value ="\u0033\u0030";case OfcST_Angle45 :_bdfe .Value ="\u0034\u0035";case OfcST_Angle60 :_bdfe .Value ="\u0036\u0030";case OfcST_Angle90 :_bdfe .Value ="\u0039\u0030";case OfcST_AngleAuto :_bdfe .Value ="\u0061\u0075\u0074\u006f";};return _bdfe ,nil ;};func (_bgbfg ST_StrokeArrowType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gfeag :=_c .Attr {};_gfeag .Name =name ;switch _bgbfg {case ST_StrokeArrowTypeUnset :_gfeag .Value ="";case ST_StrokeArrowTypeNone :_gfeag .Value ="\u006e\u006f\u006e\u0065";case ST_StrokeArrowTypeBlock :_gfeag .Value ="\u0062\u006c\u006fc\u006b";case ST_StrokeArrowTypeClassic :_gfeag .Value ="\u0063l\u0061\u0073\u0073\u0069\u0063";case ST_StrokeArrowTypeOval :_gfeag .Value ="\u006f\u0076\u0061\u006c";case ST_StrokeArrowTypeDiamond :_gfeag .Value ="\u0064i\u0061\u006d\u006f\u006e\u0064";case ST_StrokeArrowTypeOpen :_gfeag .Value ="\u006f\u0070\u0065\u006e";};return _gfeag ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Rect and its children
|
|
|
|
func (_dgdg *CT_Rect )Validate ()error {return _dgdg .ValidateWithPath ("\u0043T\u005f\u0052\u0065\u0063\u0074");};func (_geef *Textpath )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_geef .CT_TextPath =*NewCT_TextPath ();for _ ,_bgcca :=range start .Attr {if _bgcca .Name .Local =="\u006f\u006e"{_geef .OnAttr .UnmarshalXMLAttr (_bgcca );continue ;};if _bgcca .Name .Local =="\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"{_geef .FitshapeAttr .UnmarshalXMLAttr (_bgcca );continue ;};if _bgcca .Name .Local =="\u0066i\u0074\u0070\u0061\u0074\u0068"{_geef .FitpathAttr .UnmarshalXMLAttr (_bgcca );continue ;};if _bgcca .Name .Local =="\u0074\u0072\u0069\u006d"{_geef .TrimAttr .UnmarshalXMLAttr (_bgcca );continue ;};if _bgcca .Name .Local =="\u0078\u0073\u0063\u0061\u006c\u0065"{_geef .XscaleAttr .UnmarshalXMLAttr (_bgcca );continue ;};if _bgcca .Name .Local =="\u0073\u0074\u0072\u0069\u006e\u0067"{_gbdbd ,_cdbc :=_bgcca .Value ,error (nil );if _cdbc !=nil {return _cdbc ;};_geef .StringAttr =&_gbdbd ;continue ;};if _bgcca .Name .Local =="\u0069\u0064"{_fddgc ,_gbdcc :=_bgcca .Value ,error (nil );if _gbdcc !=nil {return _gbdcc ;};_geef .IdAttr =&_fddgc ;continue ;};if _bgcca .Name .Local =="\u0073\u0074\u0079l\u0065"{_bdcbc ,_ebdace :=_bgcca .Value ,error (nil );if _ebdace !=nil {return _ebdace ;};_geef .StyleAttr =&_bdcbc ;continue ;};};for {_fcbbe ,_fffgb :=d .Token ();if _fffgb !=nil {return _e .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0054\u0065\u0078t\u0070\u0061\u0074\u0068: \u0025\u0073",_fffgb );};if _fefbag ,_eebe :=_fcbbe .(_c .EndElement );_eebe &&_fefbag .Name ==start .Name {break ;};};return nil ;};func (_eaabbdg *ST_StrokeJoinStyle )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_eaabbdg =0;case "\u0072\u006f\u0075n\u0064":*_eaabbdg =1;case "\u0062\u0065\u0076e\u006c":*_eaabbdg =2;case "\u006d\u0069\u0074e\u0072":*_eaabbdg =3;};return nil ;};func (_dacfcb *OfcST_ConnectorType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cgff ,_fbdcd :=d .Token ();if _fbdcd !=nil {return _fbdcd ;};if _cadee ,_dfcfg :=_cgff .(_c .EndElement );_dfcfg &&_cadee .Name ==start .Name {*_dacfcb =1;return nil ;};if _cbdcd ,_fbcdg :=_cgff .(_c .CharData );!_fbcdg {return _e .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",_cgff );}else {switch string (_cbdcd ){case "":*_dacfcb =0;case "\u006e\u006f\u006e\u0065":*_dacfcb =1;case "\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074":*_dacfcb =2;case "\u0065\u006c\u0062o\u0077":*_dacfcb =3;case "\u0063\u0075\u0072\u0076\u0065\u0064":*_dacfcb =4;};};_cgff ,_fbdcd =d .Token ();if _fbdcd !=nil {return _fbdcd ;};if _eefcd ,_gacdg :=_cgff .(_c .EndElement );_gacdg &&_eefcd .Name ==start .Name {return nil ;};return _e .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",_cgff );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Roundrect and its children
|
|
|
|
func (_gccfa *Roundrect )Validate ()error {return _gccfa .ValidateWithPath ("\u0052o\u0075\u006e\u0064\u0072\u0065\u0063t");};func NewArc ()*Arc {_ddc :=&Arc {};_ddc .CT_Arc =*NewCT_Arc ();return _ddc };
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_ShapeAttributes and its children
|
|
|
|
func (_cgde *AG_ShapeAttributes )Validate ()error {return _cgde .ValidateWithPath ("\u0041G\u005fS\u0068\u0061\u0070\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Fill and its children
|
|
|
|
func (_eebg *Fill )Validate ()error {return _eebg .ValidateWithPath ("\u0046\u0069\u006c\u006c")};func (_gadaf *EG_ShapeElements )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_egge :for {_aedcg ,_gfaab :=d .Token ();if _gfaab !=nil {return _gfaab ;};switch _bfccf :=_aedcg .(type ){case _c .StartElement :switch _bfccf .Name {case _c .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 :"\u0070\u0061\u0074\u0068"}:_gadaf .Path =NewPath ();if _daec :=d .DecodeElement (_gadaf .Path ,&_bfccf );_daec !=nil {return _daec ;};case _c .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\u006f\u0072\u006d\u0075\u006c\u0061\u0073"}:_gadaf .Formulas =NewFormulas ();if _gfffb :=d .DecodeElement (_gadaf .Formulas ,&_bfccf );_gfffb !=nil {return _gfffb ;};case _c .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 :"\u0068a\u006e\u0064\u006c\u0065\u0073"}:_gadaf .Handles =NewHandles ();if _bdgf :=d .DecodeElement (_gadaf .Handles ,&_bfccf );_bdgf !=nil {return _bdgf ;};case _c .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"}:_gadaf .Fill =NewFill ();if _beaa :=d .DecodeElement (_gadaf .Fill ,&_bfccf );_beaa !=nil {return _beaa ;};case _c .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"}:_gadaf .Stroke =NewStroke ();if _fcbdb :=d .DecodeElement (_gadaf .Stroke ,&_bfccf );_fcbdb !=nil {return _fcbdb ;};case _c .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"}:_gadaf .Shadow =NewShadow ();if _acfbf :=d .DecodeElement (_gadaf .Shadow ,&_bfccf );_acfbf !=nil {return _acfbf ;};case _c .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"}:_gadaf .Textbox =NewTextbox ();if _bacf :=d .DecodeElement (_gadaf .Textbox ,&_bfccf );_bacf !=nil {return _bacf ;};case _c .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 :"\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068"}:_gadaf .Textpath =NewTextpath ();if _gdaeb :=d .DecodeElement (_gadaf .Textpath ,&_bfccf );_gdaeb !=nil {return _gdaeb ;};case _c .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 :"\u0069m\u0061\u0067\u0065\u0064\u0061\u0074a"}:_gadaf .Imagedata =NewImagedata ();if _dcagb :=d .DecodeElement (_gadaf .Imagedata ,&_bfccf );_dcagb !=nil {return _dcagb ;};case _c .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"}:_gadaf .Skew =NewOfcSkew ();if _gbbbf :=d .DecodeElement (_gadaf .Skew ,&_bfccf );_gbbbf !=nil {return _gbbbf ;};case _c .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\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Shape and its children, prefixing error messages with path
|
|
|
|
func (_bdadg *Shape )ValidateWithPath (path string )error {if _bdaad :=_bdadg .CT_Shape .ValidateWithPath (path );_bdaad !=nil {return _bdaad ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Handles and its children, prefixing error messages with path
|
|
|
|
func (_cafgb *Handles )ValidateWithPath (path string )error {if _aadea :=_cafgb .CT_Handles .ValidateWithPath (path );_aadea !=nil {return _aadea ;};return nil ;};func NewCurve ()*Curve {_fcdfe :=&Curve {};_fcdfe .CT_Curve =*NewCT_Curve ();return _fcdfe };type OfcST_ExtrusionType byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Rect and its children, prefixing error messages with path
|
|
|
|
func (_edgbd *CT_Rect )ValidateWithPath (path string )error {for _egef ,_dagfd :=range _edgbd .EG_ShapeElements {if _eabga :=_dagfd .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_egef ));_eabga !=nil {return _eabga ;};};if _egadd :=_edgbd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_egadd !=nil {return _egadd ;};if _edcg :=_edgbd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_edcg !=nil {return _edcg ;};if _gaecb :=_edgbd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_gaecb !=nil {return _gaecb ;};if _eaad :=_edgbd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_eaad !=nil {return _eaad ;};if _aceb :=_edgbd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_aceb !=nil {return _aceb ;};if _egbf :=_edgbd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_egbf !=nil {return _egbf ;};if _dgdad :=_edgbd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_dgdad !=nil {return _dgdad ;};if _aecbf :=_edgbd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_aecbf !=nil {return _aecbf ;};if _eacg :=_edgbd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_eacg !=nil {return _eacg ;};if _febc :=_edgbd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_febc !=nil {return _febc ;};if _gafcc :=_edgbd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gafcc !=nil {return _gafcc ;};if _acdgd :=_edgbd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_acdgd !=nil {return _acdgd ;};if _edggd :=_edgbd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_edggd !=nil {return _edggd ;};if _cggdc :=_edgbd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_cggdc !=nil {return _cggdc ;};if _dffd :=_edgbd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_dffd !=nil {return _dffd ;};if _eefge :=_edgbd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_eefge !=nil {return _eefge ;};if _fgbb :=_edgbd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_fgbb !=nil {return _fgbb ;};if _cdbe :=_edgbd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_cdbe !=nil {return _cdbe ;};if _baga :=_edgbd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_baga !=nil {return _baga ;};if _dgfge :=_edgbd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_dgfge !=nil {return _dgfge ;};if _daefcf :=_edgbd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_daefcf !=nil {return _daefcf ;};if _acbd :=_edgbd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_acbd !=nil {return _acbd ;};if _ceaed :=_edgbd .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Polyline and its children
|
|
|
|
func (_baedc *Polyline )Validate ()error {return _baedc .ValidateWithPath ("\u0050\u006f\u006c\u0079\u006c\u0069\u006e\u0065");};type OfcCT_ColorMenu struct{StrokecolorAttr *string ;FillcolorAttr *string ;ShadowcolorAttr *string ;ExtrusioncolorAttr *string ;ExtAttr ST_Ext ;};type OfcCT_RegroupTable struct{Entry []*OfcCT_Entry ;ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcComplex and its children
|
|
|
|
func (_bfafe *OfcComplex )Validate ()error {return _bfafe .ValidateWithPath ("\u004f\u0066\u0063\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};type ST_EditAs byte ;type Image struct{CT_Image };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Stroke and its children
|
|
|
|
func (_cbgaf *CT_Stroke )Validate ()error {return _cbgaf .ValidateWithPath ("\u0043T\u005f\u0053\u0074\u0072\u006f\u006be");};func (_dcedc *CT_Image )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076:\u0069\u006d\u0061\u0067\u0065";};if _dcedc .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .HrefAttr )});};if _dcedc .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .TargetAttr )});};if _dcedc .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .ClassAttr )});};if _dcedc .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .TitleAttr )});};if _dcedc .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .AltAttr )});};if _dcedc .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .CoordsizeAttr )});};if _dcedc .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .CoordoriginAttr )});};if _dcedc .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .WrapcoordsAttr )});};if _dcedc .PrintAttr !=_g .ST_TrueFalseUnset {_cegd ,_cagde :=_dcedc .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _cagde !=nil {return _cagde ;};start .Attr =append (start .Attr ,_cegd );};if _dcedc .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .IdAttr )});};if _dcedc .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .StyleAttr )});};if _dcedc .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .SpidAttr )});};if _dcedc .OnedAttr !=_g .ST_TrueFalseUnset {_begd ,_cadg :=_dcedc .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _cadg !=nil {return _cadg ;};start .Attr =append (start .Attr ,_begd );};if _dcedc .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dcedc .RegroupidAttr )});};if _dcedc .DoubleclicknotifyAttr !=_g .ST_TrueFalseUnset {_afadb ,_afcef :=_dcedc .DoubleclicknotifyAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _afcef !=nil {return _afcef ;};start .Attr =append (start .Attr ,_afadb );};if _dcedc .ButtonAttr !=_g .ST_TrueFalseUnset {_bebd ,_cdcf :=_dcedc .ButtonAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _cdcf !=nil {return _cdcf ;};start .Attr =append (start .Attr ,_bebd );};if _dcedc .UserhiddenAttr !=_g .ST_TrueFalseUnset {_gbga ,_fccg :=_dcedc .UserhiddenAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _fccg !=nil {return _fccg ;};start .Attr =append (start .Attr ,_gbga );};if _dcedc .BulletAttr !=_g .ST_TrueFalseUnset {_bcdd ,_agcfb :=_dcedc .BulletAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Background and its children, prefixing error messages with path
|
|
|
|
func (_cgdc *Background )ValidateWithPath (path string )error {if _gdacc :=_cgdc .CT_Background .ValidateWithPath (path );_gdacc !=nil {return _gdacc ;};return nil ;};func (_eeegf *OfcST_DiagramLayout )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bbada ,_ecgee :=d .Token ();if _ecgee !=nil {return _ecgee ;};if _bdaaf ,_gaadc :=_bbada .(_c .EndElement );_gaadc &&_bdaaf .Name ==start .Name {*_eeegf =1;return nil ;};if _cbgcb ,_gbcegg :=_bbada .(_c .CharData );!_gbcegg {return _e .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",_bbada );}else {switch string (_cbgcb ){case "":*_eeegf =0;case "\u0030":*_eeegf =1;case "\u0031":*_eeegf =2;case "\u0032":*_eeegf =3;case "\u0033":*_eeegf =4;};};_bbada ,_ecgee =d .Token ();if _ecgee !=nil {return _ecgee ;};if _fdbee ,_caeae :=_bbada .(_c .EndElement );_caeae &&_fdbee .Name ==start .Name {return nil ;};return _e .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",_bbada );};func (_eefcgb OfcST_HrAlign )Validate ()error {return _eefcgb .ValidateWithPath ("")};func (_fede *OfcDiagram )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fede .OfcCT_Diagram =*NewOfcCT_Diagram ();for _ ,_faabc :=range start .Attr {if _faabc .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_bcded ,_cggde :=_cb .ParseInt (_faabc .Value ,10,64);if _cggde !=nil {return _cggde ;};_fede .DgmstyleAttr =&_bcded ;continue ;};if _faabc .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_fede .AutoformatAttr .UnmarshalXMLAttr (_faabc );continue ;};if _faabc .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_fede .ReverseAttr .UnmarshalXMLAttr (_faabc );continue ;};if _faabc .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_fede .AutolayoutAttr .UnmarshalXMLAttr (_faabc );continue ;};if _faabc .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_ffadb ,_becbg :=_cb .ParseInt (_faabc .Value ,10,64);if _becbg !=nil {return _becbg ;};_fede .DgmscalexAttr =&_ffadb ;continue ;};if _faabc .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_gebba ,_edfed :=_cb .ParseInt (_faabc .Value ,10,64);if _edfed !=nil {return _edfed ;};_fede .DgmscaleyAttr =&_gebba ;continue ;};if _faabc .Name .Local =="d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"{_aegbf ,_ebffg :=_cb .ParseInt (_faabc .Value ,10,64);if _ebffg !=nil {return _ebffg ;};_fede .DgmfontsizeAttr =&_aegbf ;continue ;};if _faabc .Name .Local =="\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"{_egabee ,_gfgae :=_faabc .Value ,error (nil );if _gfgae !=nil {return _gfgae ;};_fede .ConstrainboundsAttr =&_egabee ;continue ;};if _faabc .Name .Local =="\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"{_ggdda ,_eaabbd :=_cb .ParseInt (_faabc .Value ,10,64);if _eaabbd !=nil {return _eaabbd ;};_fede .DgmbasetextscaleAttr =&_ggdda ;continue ;};if _faabc .Name .Local =="\u0065\u0078\u0074"{_fede .ExtAttr .UnmarshalXMLAttr (_faabc );continue ;};};_babdd :for {_ggaff ,_ccad :=d .Token ();if _ccad !=nil {return _ccad ;};switch _bfebe :=_ggaff .(type ){case _c .StartElement :switch _bfebe .Name {case _c .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"}:_fede .Relationtable =NewOfcCT_RelationTable ();if _geebe :=d .DecodeElement (_fede .Relationtable ,&_bfebe );_geebe !=nil {return _geebe ;};default:_ce .Log .Debug ("\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\u004f\u0066\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_AllCoreAttributes and its children
|
|
|
|
func (_eb *AG_AllCoreAttributes )Validate ()error {return _eb .ValidateWithPath ("A\u0047_\u0041\u006c\u006c\u0043\u006f\u0072\u0065\u0041t\u0074\u0072\u0069\u0062ut\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the EG_ShapeElements and its children
|
|
|
|
func (_afbacb *EG_ShapeElements )Validate ()error {return _afbacb .ValidateWithPath ("\u0045\u0047_\u0053\u0068\u0061p\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073");};type CT_Shape struct{GfxdataAttr *string ;EquationxmlAttr *string ;Ink []*OfcInk ;Iscomment []*_cc .Iscomment ;Equationxml []*OfcEquationxml ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _g .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _g .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _g .ST_TrueFalse ;ButtonAttr _g .ST_TrueFalse ;UserhiddenAttr _g .ST_TrueFalse ;BulletAttr _g .ST_TrueFalse ;HrAttr _g .ST_TrueFalse ;HrstdAttr _g .ST_TrueFalse ;HrnoshadeAttr _g .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _g .ST_TrueFalse ;AllowoverlapAttr _g .ST_TrueFalse ;UserdrawnAttr _g .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _g .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _g .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _g .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _g .ST_TrueFalse ;OleiconAttr _g .ST_TrueFalse ;OleAttr _g .ST_TrueFalseBlank ;PreferrelativeAttr _g .ST_TrueFalse ;CliptowrapAttr _g .ST_TrueFalse ;ClipAttr _g .ST_TrueFalse ;TypeAttr *string ;AdjAttr *string ;PathAttr *string ;};func (_dabbb *AG_ImageAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dca :=range start .Attr {if _dca .Name .Local =="\u0073\u0072\u0063"{_fegg ,_cefce :=_dca .Value ,error (nil );if _cefce !=nil {return _cefce ;};_dabbb .SrcAttr =&_fegg ;continue ;};if _dca .Name .Local =="\u0063\u0072\u006f\u0070\u006c\u0065\u0066\u0074"{_bdgc ,_fdc :=_dca .Value ,error (nil );if _fdc !=nil {return _fdc ;};_dabbb .CropleftAttr =&_bdgc ;continue ;};if _dca .Name .Local =="\u0063r\u006f\u0070\u0074\u006f\u0070"{_gcc ,_ceb :=_dca .Value ,error (nil );if _ceb !=nil {return _ceb ;};_dabbb .CroptopAttr =&_gcc ;continue ;};if _dca .Name .Local =="\u0063r\u006f\u0070\u0072\u0069\u0067\u0068t"{_eca ,_gag :=_dca .Value ,error (nil );if _gag !=nil {return _gag ;};_dabbb .CroprightAttr =&_eca ;continue ;};if _dca .Name .Local =="\u0063\u0072\u006f\u0070\u0062\u006f\u0074\u0074\u006f\u006d"{_bgc ,_bcg :=_dca .Value ,error (nil );if _bcg !=nil {return _bcg ;};_dabbb .CropbottomAttr =&_bgc ;continue ;};if _dca .Name .Local =="\u0067\u0061\u0069\u006e"{_dbfd ,_bcbb :=_dca .Value ,error (nil );if _bcbb !=nil {return _bcbb ;};_dabbb .GainAttr =&_dbfd ;continue ;};if _dca .Name .Local =="\u0062\u006c\u0061\u0063\u006b\u006c\u0065\u0076\u0065\u006c"{_gdac ,_ded :=_dca .Value ,error (nil );if _ded !=nil {return _ded ;};_dabbb .BlacklevelAttr =&_gdac ;continue ;};if _dca .Name .Local =="\u0067\u0061\u006dm\u0061"{_bgbf ,_fee :=_dca .Value ,error (nil );if _fee !=nil {return _fee ;};_dabbb .GammaAttr =&_bgbf ;continue ;};if _dca .Name .Local =="\u0067r\u0061\u0079\u0073\u0063\u0061\u006ce"{_dabbb .GrayscaleAttr .UnmarshalXMLAttr (_dca );continue ;};if _dca .Name .Local =="\u0062i\u006c\u0065\u0076\u0065\u006c"{_dabbb .BilevelAttr .UnmarshalXMLAttr (_dca );continue ;};};for {_gdd ,_afbbe :=d .Token ();if _afbbe !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047_\u0049\u006d\u0061\u0067\u0065\u0041\u0074t\u0072\u0069\u0062\u0075\u0074\u0065\u0073\u003a\u0020\u0025\u0073",_afbbe );};if _afac ,_cage :=_gdd .(_c .EndElement );_cage &&_afac .Name ==start .Name {break ;};};return nil ;};func (_abaf *CT_Formulas )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_PolyLine and its children
|
|
|
|
func (_cddcd *CT_PolyLine )Validate ()error {return _cddcd .ValidateWithPath ("C\u0054\u005f\u0050\u006f\u006c\u0079\u004c\u0069\u006e\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_StrokeAttributes and its children
|
|
|
|
func (_ccfa *AG_StrokeAttributes )Validate ()error {return _ccfa .ValidateWithPath ("\u0041\u0047\u005f\u0053tr\u006f\u006b\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};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;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcSignatureline and its children
|
|
|
|
func (_efcga *OfcSignatureline )Validate ()error {return _efcga .ValidateWithPath ("\u004f\u0066c\u0053\u0069\u0067n\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065");};func (_bbbea *OfcCT_RegroupTable )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070t\u0061\u0062\u006c\u0065";};if _bbbea .ExtAttr !=ST_ExtUnset {_bcdecg ,_dbefe :=_bbbea .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dbefe !=nil {return _dbefe ;};start .Attr =append (start .Attr ,_bcdecg );};e .EncodeToken (start );if _bbbea .Entry !=nil {_ggfeg :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0065\u006e\u0074\u0072\u0079"}};for _ ,_edbfb :=range _bbbea .Entry {e .EncodeElement (_edbfb ,_ggfeg );};};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Group and its children, prefixing error messages with path
|
|
|
|
func (_gdfg *CT_Group )ValidateWithPath (path string )error {if _gdecf :=_gdfg .EditasAttr .ValidateWithPath (path +"/\u0045\u0064\u0069\u0074\u0061\u0073\u0041\u0074\u0074\u0072");_gdecf !=nil {return _gdecf ;};for _cecd ,_cebad :=range _gdfg .Group {if _dedb :=_cebad .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fG\u0072\u006f\u0075\u0070\u005b\u0025\u0064\u005d",path ,_cecd ));_dedb !=nil {return _dedb ;};};for _cegb ,_deea :=range _gdfg .Shape {if _bggca :=_deea .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fS\u0068\u0061\u0070\u0065\u005b\u0025\u0064\u005d",path ,_cegb ));_bggca !=nil {return _bggca ;};};for _baee ,_gafbg :=range _gdfg .Shapetype {if _cfbc :=_gafbg .ValidateWithPath (_e .Sprintf ("\u0025\u0073/\u0053\u0068\u0061p\u0065\u0074\u0079\u0070\u0065\u005b\u0025\u0064\u005d",path ,_baee ));_cfbc !=nil {return _cfbc ;};};for _beed ,_efbeg :=range _gdfg .Arc {if _acba :=_efbeg .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0041\u0072\u0063\u005b\u0025\u0064\u005d",path ,_beed ));_acba !=nil {return _acba ;};};for _cffa ,_cege :=range _gdfg .Curve {if _face :=_cege .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fC\u0075\u0072\u0076\u0065\u005b\u0025\u0064\u005d",path ,_cffa ));_face !=nil {return _face ;};};for _afedf ,_gfbec :=range _gdfg .Image {if _ccdb :=_gfbec .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fI\u006d\u0061\u0067\u0065\u005b\u0025\u0064\u005d",path ,_afedf ));_ccdb !=nil {return _ccdb ;};};for _gbcf ,_fdff :=range _gdfg .Line {if _gfgcc :=_fdff .ValidateWithPath (_e .Sprintf ("%\u0073\u002f\u004c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_gbcf ));_gfgcc !=nil {return _gfgcc ;};};for _eedf ,_gcaf :=range _gdfg .Oval {if _daeg :=_gcaf .ValidateWithPath (_e .Sprintf ("%\u0073\u002f\u004f\u0076\u0061\u006c\u005b\u0025\u0064\u005d",path ,_eedf ));_daeg !=nil {return _daeg ;};};for _bbdbg ,_bgaf :=range _gdfg .Polyline {if _gaeb :=_bgaf .ValidateWithPath (_e .Sprintf ("\u0025s\u002fP\u006f\u006c\u0079\u006c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_bbdbg ));_gaeb !=nil {return _gaeb ;};};for _eageg ,_bfea :=range _gdfg .Rect {if _dfbf :=_bfea .ValidateWithPath (_e .Sprintf ("%\u0073\u002f\u0052\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_eageg ));_dfbf !=nil {return _dfbf ;};};for _ebggc ,_dfdc :=range _gdfg .Roundrect {if _acga :=_dfdc .ValidateWithPath (_e .Sprintf ("\u0025\u0073/\u0052\u006f\u0075n\u0064\u0072\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_ebggc ));_acga !=nil {return _acga ;};};for _cfggd ,_eedb :=range _gdfg .Diagram {if _daefc :=_eedb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0044\u0069\u0061\u0067\u0072\u0061m\u005b\u0025\u0064\u005d",path ,_cfggd ));_daefc !=nil {return _daefc ;};};for _efea ,_agad :=range _gdfg .EG_ShapeElements {if _ccfgd :=_agad .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_efea ));_ccfgd !=nil {return _ccfgd ;};};if _ceef :=_gdfg .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ceef !=nil {return _ceef ;};if _eaafe :=_gdfg .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_eaafe !=nil {return _eaafe ;};if _geeg :=_gdfg .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_geeg !=nil {return _geeg ;};if _dbfgd :=_gdfg .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_dbfgd !=nil {return _dbfgd ;};if _gfbb :=_gdfg .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_gfbb !=nil {return _gfbb ;};if _dgcf :=_gdfg .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dgcf !=nil {return _dgcf ;};if _dgded :=_gdfg .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_dgded !=nil {return _dgded
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_TextPath and its children
|
|
|
|
func (_feeb *CT_TextPath )Validate ()error {return _feeb .ValidateWithPath ("C\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068");};type OfcSignatureline struct{OfcCT_SignatureLine };func (_fffee *CT_Rect )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ffedg :=range start .Attr {if _ffedg .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"&&_ffedg .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_fafb ,_dfggg :=_ffedg .Value ,error (nil );if _dfggg !=nil {return _dfggg ;};_fffee .BordertopcolorAttr =&_fafb ;continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_fffee .BulletAttr .UnmarshalXMLAttr (_ffedg );continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u0068\u0072"{_fffee .HrAttr .UnmarshalXMLAttr (_ffedg );continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_fffee .CliptowrapAttr .UnmarshalXMLAttr (_ffedg );continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u0068\u0072\u0073t\u0064"{_fffee .HrstdAttr .UnmarshalXMLAttr (_ffedg );continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u006f\u006c\u0065"{_fffee .OleAttr .UnmarshalXMLAttr (_ffedg );continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_fffee .HrnoshadeAttr .UnmarshalXMLAttr (_ffedg );continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u006f\u006e\u0065\u0064"{_fffee .OnedAttr .UnmarshalXMLAttr (_ffedg );continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u0068\u0072\u0070c\u0074"{_adce ,_ebdac :=_cb .ParseFloat (_ffedg .Value ,64);if _ebdac !=nil {return _ebdac ;};_fggb :=float32 (_adce );_fffee .HrpctAttr =&_fggb ;continue ;};if _ffedg .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"&&_ffedg .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_fffee
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_dcggcf *Shapetype )ValidateWithPath (path string )error {if _bdgfb :=_dcggcf .CT_Shapetype .ValidateWithPath (path );_bdgfb !=nil {return _bdgfb ;};return nil ;};type Rect struct{CT_Rect };func NewAG_AllShapeAttributes ()*AG_AllShapeAttributes {_aac :=&AG_AllShapeAttributes {};return _aac };func NewOfcFill ()*OfcFill {_gdeg :=&OfcFill {};_gdeg .OfcCT_Fill =*NewOfcCT_Fill ();return _gdeg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Extrusion and its children, prefixing error messages with path
|
|
|
|
func (_aegcf *OfcCT_Extrusion )ValidateWithPath (path string )error {if _dfdgd :=_aegcf .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_dfdgd !=nil {return _dfdgd ;};if _bbegdg :=_aegcf .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_bbegdg !=nil {return _bbegdg ;};if _gaace :=_aegcf .RenderAttr .ValidateWithPath (path +"/\u0052\u0065\u006e\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_gaace !=nil {return _gaace ;};if _dcdfag :=_aegcf .PlaneAttr .ValidateWithPath (path +"\u002f\u0050\u006c\u0061\u006e\u0065\u0041\u0074\u0074\u0072");_dcdfag !=nil {return _dcdfag ;};if _gddbb :=_aegcf .LockrotationcenterAttr .ValidateWithPath (path +"\u002f\u004c\u006fck\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_gddbb !=nil {return _gddbb ;};if _bcbec :=_aegcf .AutorotationcenterAttr .ValidateWithPath (path +"\u002f\u0041\u0075to\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_bcbec !=nil {return _bcbec ;};if _cdbee :=_aegcf .ColormodeAttr .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cdbee !=nil {return _cdbee ;};if _afcec :=_aegcf .MetalAttr .ValidateWithPath (path +"\u002f\u004d\u0065\u0074\u0061\u006c\u0041\u0074\u0074\u0072");_afcec !=nil {return _afcec ;};if _agddd :=_aegcf .LightfaceAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u0067\u0068\u0074\u0066\u0061\u0063e\u0041\u0074\u0074\u0072");_agddd !=nil {return _agddd ;};if _bdfd :=_aegcf .LightharshAttr .ValidateWithPath (path +"\u002fL\u0069g\u0068\u0074\u0068\u0061\u0072\u0073\u0068\u0041\u0074\u0074\u0072");_bdfd !=nil {return _bdfd ;};if _cdfe :=_aegcf .Lightharsh2Attr .ValidateWithPath (path +"\u002f\u004ci\u0067\u0068\u0074h\u0061\u0072\u0073\u0068\u0032\u0041\u0074\u0074\u0072");_cdfe !=nil {return _cdfe ;};if _aedgc :=_aegcf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_aedgc !=nil {return _aedgc ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_IdMap and its children, prefixing error messages with path
|
|
|
|
func (_edbff *OfcCT_IdMap )ValidateWithPath (path string )error {if _cgabg :=_edbff .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_cgabg !=nil {return _cgabg ;};return nil ;};type OfcCT_Complex struct{ExtAttr ST_Ext ;};func (_dgbbc *OfcST_How )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_dgbbc =0;case "\u0074\u006f\u0070":*_dgbbc =1;case "\u006d\u0069\u0064\u0064\u006c\u0065":*_dgbbc =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_dgbbc =3;case "\u006c\u0065\u0066\u0074":*_dgbbc =4;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_dgbbc =5;case "\u0072\u0069\u0067h\u0074":*_dgbbc =6;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_SignatureLine and its children, prefixing error messages with path
|
|
|
|
func (_efaca *OfcCT_SignatureLine )ValidateWithPath (path string )error {if _faeda :=_efaca .IssignaturelineAttr .ValidateWithPath (path +"/\u0049s\u0073\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065At\u0074\u0072");_faeda !=nil {return _faeda ;};if _efaca .IdAttr !=nil {if !_g .ST_GuidPatternRe .MatchString (*_efaca .IdAttr ){return _e .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 ,_g .ST_GuidPatternRe ,*_efaca .IdAttr );};};if _efaca .ProvidAttr !=nil {if !_g .ST_GuidPatternRe .MatchString (*_efaca .ProvidAttr ){return _e .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 ,_g .ST_GuidPatternRe ,*_efaca .ProvidAttr );};};if _cedg :=_efaca .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");_cedg !=nil {return _cedg ;};if _eacbe :=_efaca .AllowcommentsAttr .ValidateWithPath (path +"\u002fA\u006cl\u006f\u0077\u0063\u006f\u006dm\u0065\u006et\u0073\u0041\u0074\u0074\u0072");_eacbe !=nil {return _eacbe ;};if _fbbfb :=_efaca .ShowsigndateAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u006f\u0077\u0073\u0069\u0067\u006e\u0064\u0061\u0074e\u0041\u0074\u0074\u0072");_fbbfb !=nil {return _fbbfb ;};if _ebgeac :=_efaca .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ebgeac !=nil {return _ebgeac ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Textbox and its children, prefixing error messages with path
|
|
|
|
func (_aabcf *CT_Textbox )ValidateWithPath (path string )error {if _eggae :=_aabcf .SingleclickAttr .ValidateWithPath (path +"\u002f\u0053i\u006e\u0067\u006ce\u0063\u006c\u0069\u0063\u006b\u0041\u0074\u0074\u0072");_eggae !=nil {return _eggae ;};if _gacac :=_aabcf .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gacac !=nil {return _gacac ;};if _aabcf .TxbxContent !=nil {if _cdaff :=_aabcf .TxbxContent .ValidateWithPath (path +"\u002f\u0054\u0078b\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074");_cdaff !=nil {return _cdaff ;};};return nil ;};func (_dbbfc *OfcST_BWMode )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_dbbfc =0;case "\u0063\u006f\u006co\u0072":*_dbbfc =1;case "\u0061\u0075\u0074\u006f":*_dbbfc =2;case "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce":*_dbbfc =3;case "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065":*_dbbfc =4;case "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079":*_dbbfc =5;case "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065":*_dbbfc =6;case "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074":*_dbbfc =7;case "\u0062\u006c\u0061c\u006b":*_dbbfc =8;case "\u0077\u0068\u0069t\u0065":*_dbbfc =9;case "\u0068\u0069\u0064\u0065":*_dbbfc =10;case "\u0075n\u0064\u0072\u0061\u0077\u006e":*_dbbfc =11;case "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073":*_dbbfc =12;};return nil ;};func (_cbdgf *ST_Ext )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_afagec ,_fdcac :=d .Token ();if _fdcac !=nil {return _fdcac ;};if _eccc ,_gaedc :=_afagec .(_c .EndElement );_gaedc &&_eccc .Name ==start .Name {*_cbdgf =1;return nil ;};if _fadea ,_gdeade :=_afagec .(_c .CharData );!_gdeade {return _e .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",_afagec );}else {switch string (_fadea ){case "":*_cbdgf =0;case "\u0076\u0069\u0065\u0077":*_cbdgf =1;case "\u0065\u0064\u0069\u0074":*_cbdgf =2;case "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065":*_cbdgf =3;};};_afagec ,_fdcac =d .Token ();if _fdcac !=nil {return _fdcac ;};if _efecb ,_dafgc :=_afagec .(_c .EndElement );_dafgc &&_efecb .Name ==start .Name {return nil ;};return _e .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",_afagec );};func (_geaaf OfcST_HrAlign )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_cfbdg :=_c .Attr {};_cfbdg .Name =name ;switch _geaaf {case OfcST_HrAlignUnset :_cfbdg .Value ="";case OfcST_HrAlignLeft :_cfbdg .Value ="\u006c\u0065\u0066\u0074";case OfcST_HrAlignRight :_cfbdg .Value ="\u0072\u0069\u0067h\u0074";case OfcST_HrAlignCenter :_cfbdg .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";};return _cfbdg ,nil ;};const (OfcST_ExtrusionRenderUnset OfcST_ExtrusionRender =0;OfcST_ExtrusionRenderSolid OfcST_ExtrusionRender =1;OfcST_ExtrusionRenderWireFrame OfcST_ExtrusionRender =2;OfcST_ExtrusionRenderBoundingCube OfcST_ExtrusionRender =3;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Lock and its children
|
|
|
|
func (_dbgfea *OfcCT_Lock )Validate ()error {return _dbgfea .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u004c\u006f\u0063\u006b");};func (_gfdfc *CT_Background )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_eadd :=range start .Attr {if _eadd .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"&&_eadd .Name .Local =="\u0062\u0077\u006d\u006f\u0064\u0065"{_gfdfc .BwmodeAttr .UnmarshalXMLAttr (_eadd );continue ;};if _eadd .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"&&_eadd .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_gfdfc .BwpureAttr .UnmarshalXMLAttr (_eadd );continue ;};if _eadd .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"&&_eadd .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_gfdfc .BwnormalAttr .UnmarshalXMLAttr (_eadd );continue ;};if _eadd .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"&&_eadd .Name .Local =="\u0074\u0061r\u0067\u0065\u0074s\u0063\u0072\u0065\u0065\u006e\u0073\u0069\u007a\u0065"{_gfdfc .TargetscreensizeAttr .UnmarshalXMLAttr (_eadd );continue ;};if _eadd .Name .Local =="\u0069\u0064"{_gbfcc ,_cbbf :=_eadd .Value ,error (nil );if _cbbf !=nil {return _cbbf ;};_gfdfc .IdAttr =&_gbfcc ;continue ;};if _eadd .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_gfdfc .FilledAttr .UnmarshalXMLAttr (_eadd );continue ;};if _eadd .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_fccbf ,_ddeb :=_eadd .Value ,error (nil );if _ddeb !=nil {return _ddeb ;};_gfdfc .FillcolorAttr =&_fccbf ;continue ;};};_eafad :for {_cdba ,_gbce :=d .Token ();if _gbce !=nil {return _gbce ;};switch _dded :=_cdba .(type ){case _c .StartElement :switch _dded .Name {case _c .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"}:_gfdfc .Fill =NewFill ();if _fbba :=d .DecodeElement (_gfdfc .Fill ,&_dded );_fbba !=nil {return _fbba ;};default:_ce .Log .Debug ("\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",_dded .Name );if _gdgg :=d .Skip ();_gdgg !=nil {return _gdgg ;};};case _c .EndElement :break _eafad ;case _c .CharData :};};return nil ;};func NewOfcOLEObject ()*OfcOLEObject {_febgg :=&OfcOLEObject {};_febgg .OfcCT_OLEObject =*NewOfcCT_OLEObject ();return _febgg ;};func (_gbfdf *OfcCT_ColorMenu )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bgbd :=range start .Attr {if _bgbd .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_cfgdd ,_ecgdf :=_bgbd .Value ,error (nil );if _ecgdf !=nil {return _ecgdf ;};_gbfdf .StrokecolorAttr =&_cfgdd ;continue ;};if _bgbd .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_fcage ,_fgafg :=_bgbd .Value ,error (nil );if _fgafg !=nil {return _fgafg ;};_gbfdf .FillcolorAttr =&_fcage ;continue ;};if _bgbd .Name .Local =="s\u0068\u0061\u0064\u006f\u0077\u0063\u006f\u006c\u006f\u0072"{_ffgec ,_fdcfc :=_bgbd .Value ,error (nil );if _fdcfc !=nil {return _fdcfc ;};_gbfdf .ShadowcolorAttr =&_ffgec ;continue ;};if _bgbd .Name .Local =="\u0065\u0078\u0074\u0072\u0075\u0073
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcClippath and its children
|
|
|
|
func (_cagebc *OfcClippath )Validate ()error {return _cagebc .ValidateWithPath ("O\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068");};const (OfcST_ColorModeUnset OfcST_ColorMode =0;OfcST_ColorModeAuto OfcST_ColorMode =1;OfcST_ColorModeCustom OfcST_ColorMode =2;);func (_ceed *OfcColumn )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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\u006d\u006e";return _ceed .OfcCT_StrokeChild .MarshalXML (e ,start );};func NewOfcCT_Diagram ()*OfcCT_Diagram {_fbffd :=&OfcCT_Diagram {};return _fbffd };type ST_FillType byte ;func NewOfcLock ()*OfcLock {_affdb :=&OfcLock {};_affdb .OfcCT_Lock =*NewOfcCT_Lock ();return _affdb };func (_fgdeac OfcST_FillType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_fgdeac .String (),start );};func (_acdgdd *OfcLock )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _acdgdd .OfcCT_Lock .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Textbox and its children
|
|
|
|
func (_fcbg *CT_Textbox )Validate ()error {return _fcbg .ValidateWithPath ("\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Group and its children
|
|
|
|
func (_bbbc *CT_Group )Validate ()error {return _bbbc .ValidateWithPath ("\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_StrokeChild and its children, prefixing error messages with path
|
|
|
|
func (_afgabc *OfcCT_StrokeChild )ValidateWithPath (path string )error {if _aeacb :=_afgabc .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_aeacb !=nil {return _aeacb ;};if _gbcaf :=_afgabc .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_gbcaf !=nil {return _gbcaf ;};if _begca :=_afgabc .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_begca !=nil {return _begca ;};if _bdeec :=_afgabc .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_bdeec !=nil {return _bdeec ;};if _egdac :=_afgabc .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_egdac !=nil {return _egdac ;};if _ggaad :=_afgabc .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_ggaad !=nil {return _ggaad ;};if _cgacc :=_afgabc .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_cgacc !=nil {return _cgacc ;};if _bcfdb :=_afgabc .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_bcfdb !=nil {return _bcfdb ;};if _fbceg :=_afgabc .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_fbceg !=nil {return _fbceg ;};if _cafdd :=_afgabc .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_cafdd !=nil {return _cafdd ;};if _daaaec :=_afgabc .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_daaaec !=nil {return _daaaec ;};if _fcabb :=_afgabc .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_fcabb !=nil {return _fcabb ;};if _cfece :=_afgabc .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_cfece !=nil {return _cfece ;};if _egafef :=_afgabc .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_egafef !=nil {return _egafef ;};if _ecefb :=_afgabc .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_ecefb !=nil {return _ecefb ;};if _dcgba :=_afgabc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_dcgba !=nil {return _dcgba ;};return nil ;};type Arc struct{CT_Arc };func (_gabaf *CT_H )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0068";};if _gabaf .PositionAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_gabaf .PositionAttr )});};if _gabaf .PolarAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u006f\u006ca\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_gabaf .PolarAttr )});};if _gabaf .MapAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006d\u0061\u0070"},Value :_e .Sprintf ("\u0025\u0076",*_gabaf .MapAttr )});};if _gabaf .InvxAttr !=_g .ST_TrueFalseUnset {_aaea ,_aabg :=_gabaf .InvxAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0076\u0078"});if _aabg !=nil {return _aabg ;};start .Attr =append (start .Attr ,_aaea );};if _gabaf .InvyAttr !=_g .ST_TrueFalseUnset {_eebc ,_aefg :=_gabaf .InvyAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0076\u0079"});if _aefg !=nil {return _aefg ;};start .Attr =append (start .Attr ,_eebc );};if _gabaf .SwitchAttr !=_
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_StrokeChild and its children
|
|
|
|
func (_beedb *OfcCT_StrokeChild )Validate ()error {return _beedb .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0074\u0072\u006f\u006b\u0065C\u0068\u0069\u006c\u0064");};func (_bgcaa ST_Ext )ValidateWithPath (path string )error {switch _bgcaa {case 0,1,2,3:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_bgcaa ));};return nil ;};const (ST_ShadowTypeUnset ST_ShadowType =0;ST_ShadowTypeSingle ST_ShadowType =1;ST_ShadowTypeDouble ST_ShadowType =2;ST_ShadowTypeEmboss ST_ShadowType =3;ST_ShadowTypePerspective ST_ShadowType =4;);type Line struct{CT_Line };func (_acgbd *OfcST_Angle )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bfefg ,_cddeb :=d .Token ();if _cddeb !=nil {return _cddeb ;};if _cfeda ,_bgeea :=_bfefg .(_c .EndElement );_bgeea &&_cfeda .Name ==start .Name {*_acgbd =1;return nil ;};if _beba ,_dgfeae :=_bfefg .(_c .CharData );!_dgfeae {return _e .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",_bfefg );}else {switch string (_beba ){case "":*_acgbd =0;case "\u0061\u006e\u0079":*_acgbd =1;case "\u0033\u0030":*_acgbd =2;case "\u0034\u0035":*_acgbd =3;case "\u0036\u0030":*_acgbd =4;case "\u0039\u0030":*_acgbd =5;case "\u0061\u0075\u0074\u006f":*_acgbd =6;};};_bfefg ,_cddeb =d .Token ();if _cddeb !=nil {return _cddeb ;};if _aabab ,_feaaaa :=_bfefg .(_c .EndElement );_feaaaa &&_aabab .Name ==start .Name {return nil ;};return _e .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",_bfefg );};func (_bggcfa ST_StrokeArrowWidth )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_bggcfa .String (),start );};func (_ccag *OfcSignatureline )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_RoundRect and its children
|
|
|
|
func (_cbdfb *CT_RoundRect )Validate ()error {return _cbdfb .ValidateWithPath ("\u0043\u0054\u005fR\u006f\u0075\u006e\u0064\u0052\u0065\u0063\u0074");};type OfcST_HrAlign byte ;func (_fgcbc OfcST_ConnectorType )ValidateWithPath (path string )error {switch _fgcbc {case 0,1,2,3,4:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fgcbc ));};return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Arc and its children
|
|
|
|
func (_cgfa *CT_Arc )Validate ()error {return _cgfa .ValidateWithPath ("\u0043\u0054\u005f\u0041\u0072\u0063");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeDefaults and its children, prefixing error messages with path
|
|
|
|
func (_edfe *OfcCT_ShapeDefaults )ValidateWithPath (path string )error {if _dfeaa :=_edfe .FillAttr .ValidateWithPath (path +"\u002fF\u0069\u006c\u006c\u0041\u0074\u0074r");_dfeaa !=nil {return _dfeaa ;};if _ggbcg :=_edfe .StrokeAttr .ValidateWithPath (path +"/\u0053\u0074\u0072\u006f\u006b\u0065\u0041\u0074\u0074\u0072");_ggbcg !=nil {return _ggbcg ;};if _gdfce :=_edfe .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gdfce !=nil {return _gdfce ;};if _edfe .Fill !=nil {if _fgaga :=_edfe .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_fgaga !=nil {return _fgaga ;};};if _edfe .Stroke !=nil {if _edcaa :=_edfe .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_edcaa !=nil {return _edcaa ;};};if _edfe .Textbox !=nil {if _cbeg :=_edfe .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_cbeg !=nil {return _cbeg ;};};if _edfe .Shadow !=nil {if _bacc :=_edfe .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_bacc !=nil {return _bacc ;};};if _edfe .Skew !=nil {if _gggdc :=_edfe .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_gggdc !=nil {return _gggdc ;};};if _edfe .Extrusion !=nil {if _cggcb :=_edfe .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_cggcb !=nil {return _cggcb ;};};if _edfe .Callout !=nil {if _dedd :=_edfe .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_dedd !=nil {return _dedd ;};};if _edfe .Lock !=nil {if _dcgga :=_edfe .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_dcgga !=nil {return _dcgga ;};};if _edfe .Colormru !=nil {if _fdffg :=_edfe .Colormru .ValidateWithPath (path +"\u002fC\u006f\u006c\u006f\u0072\u006d\u0072u");_fdffg !=nil {return _fdffg ;};};if _edfe .Colormenu !=nil {if _ffdcd :=_edfe .Colormenu .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075");_ffdcd !=nil {return _ffdcd ;};};if _cebcf :=_edfe .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_cebcf !=nil {return _cebcf ;};return nil ;};type AG_AllShapeAttributes struct{OpacityAttr *string ;StrokedAttr _g .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _g .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _g .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _g .ST_TrueFalse ;OleiconAttr _g .ST_TrueFalse ;OleAttr _g .ST_TrueFalseBlank ;PreferrelativeAttr _g .ST_TrueFalse ;CliptowrapAttr _g .ST_TrueFalse ;ClipAttr _g .ST_TrueFalse ;};type OfcST_OLEUpdateMode byte ;func NewFormulas ()*Formulas {_dbfae :=&Formulas {};_dbfae .CT_Formulas =*NewCT_Formulas ();return _dbfae ;};func (_fdabf OfcST_OLEUpdateMode )String ()string {switch _fdabf {case 0:return "";case 1:return "\u0041\u006c\u0077\u0061\u0079\u0073";case 2:return "\u004f\u006e\u0043\u0061\u006c\u006c";};return "";};func (_fbgec OfcST_ConnectorType )Validate ()error {return _fbgec .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_ColorMenu and its children
|
|
|
|
func (_cgdgb *OfcCT_ColorMenu )Validate ()error {return _cgdgb .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0043\u006f\u006c\u006f\u0072\u004d\u0065\u006e\u0075");};func NewAG_Path ()*AG_Path {_fdca :=&AG_Path {};return _fdca };func (_babgd *CT_Shape )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_afggb :=range start .Attr {if _afggb .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"&&_afggb .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_ddece ,_ebggf :=_cb .ParseInt (_afggb .Value ,10,64);if _ebggf !=nil {return _ebggf ;};_babgd .RegroupidAttr =&_ddece ;continue ;};if _afggb .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"&&_afggb .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_babgd .DoubleclicknotifyAttr .UnmarshalXMLAttr (_afggb );continue ;};if _afggb .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"&&_afggb .Name .Local =="\u0063\u006c\u0069\u0070"{_babgd .ClipAttr .UnmarshalXMLAttr (_afggb );continue ;};if _afggb .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"&&_afggb .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_babgd .ButtonAttr .UnmarshalXMLAttr (_afggb );continue ;};if _afggb .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"&&_afggb .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_babgd .UserhiddenAttr .UnmarshalXMLAttr (_afggb );continue ;};if _afggb .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"&&_afggb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_babgd .BulletAttr .UnmarshalXMLAttr (_afggb );continue ;};if _afggb .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"&&_afggb .Name .Local =="\u0067f\u0078\u0064\u0061\u0074\u0061"{_fbgg ,_dbggd :=_afggb .Value ,error (nil );if _dbggd !=nil {return _dbggd ;};_babgd .GfxdataAttr =&_fbgg ;continue ;};if _afggb .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"&&_afggb .Name .Local =="\u0068\u0072"{_babgd .HrAttr .UnmarshalXMLAttr (_afggb );continue ;};if _afggb .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"&&_afggb .Name .Local =="\u006f\u006c\u0065"{_babgd .OleAttr .UnmarshalXMLAttr (_afggb );continue ;};if _afggb .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"&&_afgg
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCallout and its children
|
|
|
|
func (_ccfbc *OfcCallout )Validate ()error {return _ccfbc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Diagram and its children
|
|
|
|
func (_cgaec *OfcCT_Diagram )Validate ()error {return _cgaec .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};func (_eefcg *OfcCT_StrokeChild )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fegad :=range start .Attr {if _fegad .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"&&_fegad .Name .Local =="\u0068\u0072\u0065\u0066"{_dgbg ,_dgggf :=_fegad .Value ,error (nil );if _dgggf !=nil {return _dgggf ;};_eefcg .HrefAttr =&_dgbg ;continue ;};if _fegad .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"&&_fegad .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_eefcg .ForcedashAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .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"&&_fegad .Name .Local =="\u0074\u0069\u0074l\u0065"{_aeee ,_cdea :=_fegad .Value ,error (nil );if _cdea !=nil {return _cdea ;};_eefcg .TitleAttr =&_aeee ;continue ;};if _fegad .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"&&_fegad .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_cffe ,_bdebe :=_fegad .Value ,error (nil );if _bdebe !=nil {return _bdebe ;};_eefcg .AlthrefAttr =&_cffe ;continue ;};if _fegad .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_eefcg .ImageaspectAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_eefcg .StartarrowAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_eefcg .LinestyleAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_eefcg .StartarrowwidthAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_eefcg .JoinstyleAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_eefcg .StartarrowlengthAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_bdafe ,_gegagg :=_fegad .Value ,error (nil );if _gegagg !=nil {return _gegagg ;};_eefcg .DashstyleAttr =&_bdafe ;continue ;};if _fegad .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_eefcg .EndarrowAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_eefcg .FilltypeAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_eefcg .EndarrowwidthAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_ebeb ,_beabb :=_fegad .Value ,error (nil );if _beabb !=nil {return _beabb ;};_eefcg .OpacityAttr =&_ebeb ;continue ;};if _fegad .Name .Local =="\u0063\u006f\u006co\u0072"{_bcfgc ,_ccgad :=_fegad .Value ,error (nil );if _ccgad !=nil {return _ccgad ;};_eefcg .ColorAttr =&_bcfgc ;continue ;};if _fegad .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_eefcg .InsetpenAttr .UnmarshalXMLAttr (_fegad );continue ;};if _fegad .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u006ce\u006e\u0067\u0074\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcShapedefaults and its children, prefixing error messages with path
|
|
|
|
func (_ebedf *OfcShapedefaults )ValidateWithPath (path string )error {if _eagbbb :=_ebedf .OfcCT_ShapeDefaults .ValidateWithPath (path );_eagbbb !=nil {return _eagbbb ;};return nil ;};func (_dagbf *ST_StrokeLineStyle )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ecdfg ,_bcbea :=d .Token ();if _bcbea !=nil {return _bcbea ;};if _agfegd ,_feddb :=_ecdfg .(_c .EndElement );_feddb &&_agfegd .Name ==start .Name {*_dagbf =1;return nil ;};if _gefge ,_fcaad :=_ecdfg .(_c .CharData );!_fcaad {return _e .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",_ecdfg );}else {switch string (_gefge ){case "":*_dagbf =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_dagbf =1;case "\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e":*_dagbf =2;case "\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k":*_dagbf =3;case "\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n":*_dagbf =4;case "\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e":*_dagbf =5;};};_ecdfg ,_bcbea =d .Token ();if _bcbea !=nil {return _bcbea ;};if _affcd ,_dcgaa :=_ecdfg .(_c .EndElement );_dcgaa &&_affcd .Name ==start .Name {return nil ;};return _e .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",_ecdfg );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_H and its children
|
|
|
|
func (_cccdc *CT_H )Validate ()error {return _cccdc .ValidateWithPath ("\u0043\u0054\u005f\u0048")};type OfcCT_Skew struct{IdAttr *string ;OnAttr _g .ST_TrueFalse ;OffsetAttr *string ;OriginAttr *string ;MatrixAttr *string ;ExtAttr ST_Ext ;};func NewOfcComplex ()*OfcComplex {_cbcfb :=&OfcComplex {};_cbcfb .OfcCT_Complex =*NewOfcCT_Complex ();return _cbcfb ;};func (_gdcagc OfcST_InsetMode )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_gdcagc .String (),start );};func NewRect ()*Rect {_efbde :=&Rect {};_efbde .CT_Rect =*NewCT_Rect ();return _efbde };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 _g .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _g .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _g .ST_TrueFalse ;ButtonAttr _g .ST_TrueFalse ;UserhiddenAttr _g .ST_TrueFalse ;BulletAttr _g .ST_TrueFalse ;HrAttr _g .ST_TrueFalse ;HrstdAttr _g .ST_TrueFalse ;HrnoshadeAttr _g .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _g .ST_TrueFalse ;AllowoverlapAttr _g .ST_TrueFalse ;UserdrawnAttr _g .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _g .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _g .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _g .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _g .ST_TrueFalse ;OleiconAttr _g .ST_TrueFalse ;OleAttr _g .ST_TrueFalseBlank ;PreferrelativeAttr _g .ST_TrueFalse ;CliptowrapAttr _g .ST_TrueFalse ;ClipAttr _g .ST_TrueFalse ;SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _g .ST_TrueFalse ;BilevelAttr _g .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Textbox and its children, prefixing error messages with path
|
|
|
|
func (_cggf *Textbox )ValidateWithPath (path string )error {if _dbbgg :=_cggf .CT_Textbox .ValidateWithPath (path );_dbbgg !=nil {return _dbbgg ;};return nil ;};func NewCT_Formulas ()*CT_Formulas {_cgdb :=&CT_Formulas {};return _cgdb };const (ST_EditAsUnset ST_EditAs =0;ST_EditAsCanvas ST_EditAs =1;ST_EditAsOrgchart ST_EditAs =2;ST_EditAsRadial ST_EditAs =3;ST_EditAsCycle ST_EditAs =4;ST_EditAsStacked ST_EditAs =5;ST_EditAsVenn ST_EditAs =6;ST_EditAsBullseye ST_EditAs =7;);type OfcCT_ShapeDefaults struct{SpidmaxAttr *int64 ;StyleAttr *string ;FillAttr _g .ST_TrueFalse ;FillcolorAttr *string ;StrokeAttr _g .ST_TrueFalse ;StrokecolorAttr *string ;AllowincellAttr _g .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 ;};type Shadow struct{CT_Shadow };func (_bdcfg ST_EditAs )ValidateWithPath (path string )error {switch _bdcfg {case 0,1,2,3,4,5,6,7:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_bdcfg ));};return nil ;};func (_fbdac *OfcRight )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fbdac .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_bbbed :=range start .Attr {if _bbbed .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"&&_bbbed .Name .Local =="\u0068\u0072\u0065\u0066"{_dcec ,_aggee :=_bbbed .Value ,error (nil );if _aggee !=nil {return _aggee ;};_fbdac .HrefAttr =&_dcec ;continue ;};if _bbbed .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"&&_bbbed .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_fbdac .ForcedashAttr .UnmarshalXMLAttr (_bbbed );continue ;};if _bbbed .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"&&_bbbed .Name .Local =="\u0074\u0069\u0074l\u0065"{_afega ,_gfbdf :=_bbbed .Value ,error (nil );if _gfbdf !=nil {return _gfbdf ;};_fbdac .TitleAttr =&_afega ;continue ;};if _bbbed .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"&&_bbbed .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_eeecg ,_gcgg :=_bbbed .Value ,error (nil );if _gcgg !=nil {return _gcgg ;};_fbdac .AlthrefAttr =&_eeecg ;continue ;};if _bbbed .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_fbdac .ImageaspectAttr .UnmarshalXMLAttr (_bbbed );continue ;};if _bbbed .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_fbdac .StartarrowAttr .UnmarshalXMLAttr (_bbbed );continue ;};if _bbbed .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_fbdac .LinestyleAttr .UnmarshalXMLAttr (_bbbed );continue ;};if _bbbed .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_fbdac .StartarrowwidthAttr .UnmarshalXMLAttr (_bbbed );continue ;};if _bbbed .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_fbdac .JoinstyleAttr .UnmarshalXMLAttr (_bbbed );continue ;};if _bbbed .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_fbdac .StartarrowlengthAttr .UnmarshalXMLAttr (_bbbed );continue ;};if _bbbed .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_gcabb ,_cfbdb :=_bbbed .Value ,error (nil );if _cfbdb !=nil {return _
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcRight and its children
|
|
|
|
func (_gafbf *OfcRight )Validate ()error {return _gafbf .ValidateWithPath ("\u004f\u0066\u0063\u0052\u0069\u0067\u0068\u0074");};func (_aedgd *Textpath )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _aedgd .CT_TextPath .MarshalXML (e ,start );};type OfcFill struct{OfcCT_Fill };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Proxy and its children, prefixing error messages with path
|
|
|
|
func (_gfdba *OfcCT_Proxy )ValidateWithPath (path string )error {if _fcbc :=_gfdba .StartAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0061\u0072\u0074\u0041\u0074\u0074\u0072");_fcbc !=nil {return _fcbc ;};if _bgcce :=_gfdba .EndAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0041\u0074\u0074\u0072");_bgcce !=nil {return _bgcce ;};return nil ;};type OfcST_Angle byte ;type CT_Background struct{BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;TargetscreensizeAttr OfcST_ScreenSize ;Fill *Fill ;IdAttr *string ;FilledAttr _g .ST_TrueFalse ;FillcolorAttr *string ;};func (_bca *AG_Chromakey )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _bca .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_e .Sprintf ("\u0025\u0076",*_bca .ChromakeyAttr )});};return nil ;};type OfcCT_StrokeChild struct{OnAttr _g .ST_TrueFalse ;WeightAttr *string ;ColorAttr *string ;Color2Attr *string ;OpacityAttr *string ;LinestyleAttr ST_StrokeLineStyle ;MiterlimitAttr *float64 ;JoinstyleAttr ST_StrokeJoinStyle ;EndcapAttr ST_StrokeEndCap ;DashstyleAttr *string ;InsetpenAttr _g .ST_TrueFalse ;FilltypeAttr ST_FillType ;SrcAttr *string ;ImageaspectAttr ST_ImageAspect ;ImagesizeAttr *string ;ImagealignshapeAttr _g .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 _g .ST_TrueFalse ;ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Oval and its children, prefixing error messages with path
|
|
|
|
func (_abce *CT_Oval )ValidateWithPath (path string )error {for _fbcc ,_ccffc :=range _abce .EG_ShapeElements {if _ffecg :=_ccffc .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fbcc ));_ffecg !=nil {return _ffecg ;};};if _eedee :=_abce .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_eedee !=nil {return _eedee ;};if _cadf :=_abce .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_cadf !=nil {return _cadf ;};if _dfbc :=_abce .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_dfbc !=nil {return _dfbc ;};if _gfdec :=_abce .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_gfdec !=nil {return _gfdec ;};if _eabg :=_abce .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_eabg !=nil {return _eabg ;};if _aaadg :=_abce .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_aaadg !=nil {return _aaadg ;};if _aeed :=_abce .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_aeed !=nil {return _aeed ;};if _ggfeb :=_abce .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_ggfeb !=nil {return _ggfeb ;};if _fdcaa :=_abce .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fdcaa !=nil {return _fdcaa ;};if _bdae :=_abce .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_bdae !=nil {return _bdae ;};if _bdee :=_abce .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_bdee !=nil {return _bdee ;};if _bcgd :=_abce .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bcgd !=nil {return _bcgd ;};if _fadf :=_abce .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fadf !=nil {return _fadf ;};if _bdcf :=_abce .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_bdcf !=nil {return _bdcf ;};if _aefd :=_abce .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_aefd !=nil {return _aefd ;};if _aaab :=_abce .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_aaab !=nil {return _aaab ;};if _afdd :=_abce .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_afdd !=nil {return _afdd ;};if _bbgeac :=_abce .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_bbgeac !=nil {return _bbgeac ;};if _bbae :=_abce .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bbae !=nil {return _bbae ;};if _fgeag :=_abce .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_fgeag !=nil {return _fgeag ;};if _bdbdb :=_abce .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bdbdb !=nil {return _bdbdb ;};if _dfgdf :=_abce .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_dfgdf !=nil {return _dfgdf ;};if _bbca :=_abce .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_bbca !=nil {return _bbca
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcEquationxml and its children, prefixing error messages with path
|
|
|
|
func (_cfcgf *OfcEquationxml )ValidateWithPath (path string )error {if _fbbaee :=_cfcgf .OfcCT_EquationXml .ValidateWithPath (path );_fbbaee !=nil {return _fbbaee ;};return nil ;};func (_da *AG_Adj )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bg :=range start .Attr {if _bg .Name .Local =="\u0061\u0064\u006a"{_aad ,_db :=_bg .Value ,error (nil );if _db !=nil {return _db ;};_da .AdjAttr =&_aad ;continue ;};};for {_fe ,_cd :=d .Token ();if _cd !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0041G\u005f\u0041d\u006a\u003a\u0020\u0025\u0073",_cd );};if _fc ,_ge :=_fe .(_c .EndElement );_ge &&_fc .Name ==start .Name {break ;};};return nil ;};func (_dce *AG_OfficeShapeAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_gad :=range start .Attr {if _gad .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"&&_gad .Name .Local =="\u0073\u0070\u0074"{_cbc ,_egab :=_cb .ParseFloat (_gad .Value ,64);if _egab !=nil {return _egab ;};_fccb :=float32 (_cbc );_dce .SptAttr =&_fccb ;continue ;};if _gad .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"&&_gad .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"{_dce .ConnectortypeAttr .UnmarshalXMLAttr (_gad );continue ;};if _gad .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"&&_gad .Name .Local =="\u0062\u0077\u006d\u006f\u0064\u0065"{_dce .BwmodeAttr .UnmarshalXMLAttr (_gad );continue ;};if _gad .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"&&_gad .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_dce .BwpureAttr .UnmarshalXMLAttr (_gad );continue ;};if _gad .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"&&_gad .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_dce .BwnormalAttr .UnmarshalXMLAttr (_gad );continue ;};if _gad .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"&&_gad .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_dce .ForcedashAttr .UnmarshalXMLAttr (_gad );continue ;};if _gad .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"&&_gad .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_dce .OleiconAttr .UnmarshalXMLAttr (_gad );continue ;};if _gad .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"&&_gad .Name .Local =="\u006f\u006c\u0065"{_dce .OleAttr .UnmarshalXMLAttr (_gad );continue ;};if _gad .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"&&_gad .Name .Local =="\u0070\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Formulas and its children
|
|
|
|
func (_fffgd *Formulas )Validate ()error {return _fffgd .ValidateWithPath ("\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};const (ST_ExtUnset ST_Ext =0;ST_ExtView ST_Ext =1;ST_ExtEdit ST_Ext =2;ST_ExtBackwardCompatible ST_Ext =3;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcLeft and its children
|
|
|
|
func (_dedfc *OfcLeft )Validate ()error {return _dedfc .ValidateWithPath ("\u004ff\u0063\u004c\u0065\u0066\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcDiagram and its children, prefixing error messages with path
|
|
|
|
func (_fgcfd *OfcDiagram )ValidateWithPath (path string )error {if _bbcff :=_fgcfd .OfcCT_Diagram .ValidateWithPath (path );_bbcff !=nil {return _bbcff ;};return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Curve and its children, prefixing error messages with path
|
|
|
|
func (_gadfg *Curve )ValidateWithPath (path string )error {if _bcabe :=_gadfg .CT_Curve .ValidateWithPath (path );_bcabe !=nil {return _bcabe ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Textpath and its children, prefixing error messages with path
|
|
|
|
func (_aafecc *Textpath )ValidateWithPath (path string )error {if _aeadee :=_aafecc .CT_TextPath .ValidateWithPath (path );_aeadee !=nil {return _aeadee ;};return nil ;};const (OfcST_ExtrusionPlaneUnset OfcST_ExtrusionPlane =0;OfcST_ExtrusionPlaneXY OfcST_ExtrusionPlane =1;OfcST_ExtrusionPlaneZX OfcST_ExtrusionPlane =2;OfcST_ExtrusionPlaneYZ OfcST_ExtrusionPlane =3;);func (_gcaag *EG_ShapeElements )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _gcaag .Path !=nil {_faedd :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0070\u0061\u0074\u0068"}};e .EncodeElement (_gcaag .Path ,_faedd );};if _gcaag .Formulas !=nil {_ebfce :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0073"}};e .EncodeElement (_gcaag .Formulas ,_ebfce );};if _gcaag .Handles !=nil {_cgbb :=_c .StartElement {Name :_c .Name {Local :"\u0076:\u0068\u0061\u006e\u0064\u006c\u0065s"}};e .EncodeElement (_gcaag .Handles ,_cgbb );};if _gcaag .Fill !=nil {_gceg :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_gcaag .Fill ,_gceg );};if _gcaag .Stroke !=nil {_ebddd :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0073\u0074\u0072\u006f\u006b\u0065"}};e .EncodeElement (_gcaag .Stroke ,_ebddd );};if _gcaag .Shadow !=nil {_deege :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0073\u0068\u0061\u0064\u006f\u0077"}};e .EncodeElement (_gcaag .Shadow ,_deege );};if _gcaag .Textbox !=nil {_efdb :=_c .StartElement {Name :_c .Name {Local :"\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx"}};e .EncodeElement (_gcaag .Textbox ,_efdb );};if _gcaag .Textpath !=nil {_bcbde :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068"}};e .EncodeElement (_gcaag .Textpath ,_bcbde );};if _gcaag .Imagedata !=nil {_bagfb :=_c .StartElement {Name :_c .Name {Local :"v\u003a\u0069\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061"}};e .EncodeElement (_gcaag .Imagedata ,_bagfb );};if _gcaag .Skew !=nil {_ebagc :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0073\u006b\u0065\u0077"}};e .EncodeElement (_gcaag .Skew ,_ebagc );};if _gcaag .Extrusion !=nil {_gddga :=_c .StartElement {Name :_c .Name {Local :"o\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e"}};e .EncodeElement (_gcaag .Extrusion ,_gddga );};if _gcaag .Callout !=nil {_ddage :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0063\u0061\u006c\u006c\u006f\u0075t"}};e .EncodeElement (_gcaag .Callout ,_ddage );};if _gcaag .Lock !=nil {_dadeb :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u006c\u006f\u0063\u006b"}};e .EncodeElement (_gcaag .Lock ,_dadeb );};if _gcaag .Clippath !=nil {_dbgfa :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0063\u006c\u0069\u0070\u0070\u0061\u0074\u0068"}};e .EncodeElement (_gcaag .Clippath ,_dbgfa );};if _gcaag .Signatureline !=nil {_fdfcd :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"}};e .EncodeElement (_gcaag .Signatureline ,_fdfcd );};if _gcaag .Wrap !=nil {_dcfee :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072\u006e\u003a\u0077\u0072\u0061\u0070"}};e .EncodeElement (_gcaag .Wrap ,_dcfee );};if _gcaag .Anchorlock !=nil {_cgebg :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072\u006e\u003a\u0061\u006e\u0063\u0068\u006fr\u006c\u006f\u0063\u006b"}};e .EncodeElement (_gcaag .Anchorlock ,_cgebg );};if _gcaag .Bordertop !=nil {_gdcbf :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072\u006e\u003a\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070"}};e .EncodeElement (_gcaag .Bordertop ,_gdcbf );};if _gcaag .Borderbottom !=nil {_fcccg :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072n\u003a\u0062\u006fr\u0064\u0065\u0072\u0062\u006f\u0074\u0074\u006f\u006d"}};e .EncodeElement (_gcaag .Borderbottom ,_fcccg );};if _gcaag .Borderleft !=nil {_gcbfa :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072\u006e\u003a\u0062\u006f\u0072\u0064\u0065r\u006c\u0065\u0066\u0074"}};e .Enco
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcShapedefaults and its children
|
|
|
|
func (_cfeaf *OfcShapedefaults )Validate ()error {return _cfeaf .ValidateWithPath ("\u004f\u0066c\u0053\u0068\u0061p\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};type OfcST_How byte ;func (_dddcf ST_FillType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gbfcgd :=_c .Attr {};_gbfcgd .Name =name ;switch _dddcf {case ST_FillTypeUnset :_gbfcgd .Value ="";case ST_FillTypeSolid :_gbfcgd .Value ="\u0073\u006f\u006ci\u0064";case ST_FillTypeGradient :_gbfcgd .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case ST_FillTypeGradientRadial :_gbfcgd .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case ST_FillTypeTile :_gbfcgd .Value ="\u0074\u0069\u006c\u0065";case ST_FillTypePattern :_gbfcgd .Value ="\u0070a\u0074\u0074\u0065\u0072\u006e";case ST_FillTypeFrame :_gbfcgd .Value ="\u0066\u0072\u0061m\u0065";};return _gbfcgd ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_ShapeLayout and its children
|
|
|
|
func (_bbfcb *OfcCT_ShapeLayout )Validate ()error {return _bbfcb .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004ca\u0079\u006f\u0075\u0074");};func (_abcef ST_StrokeLineStyle )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_abcef .String (),start );};func NewOfcCT_Proxy ()*OfcCT_Proxy {_bbgbb :=&OfcCT_Proxy {};return _bbgbb };type CT_F struct{EqnAttr *string ;};func NewAG_Adj ()*AG_Adj {_aa :=&AG_Adj {};return _aa };func (_ebead OfcST_FillType )ValidateWithPath (path string )error {switch _ebead {case 0,1,2,3,4,5,6,7,8,9:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ebead ));};return nil ;};func (_bddbc *OfcST_ExtrusionType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_abgce ,_fbecb :=d .Token ();if _fbecb !=nil {return _fbecb ;};if _gacaa ,_acdgdf :=_abgce .(_c .EndElement );_acdgdf &&_gacaa .Name ==start .Name {*_bddbc =1;return nil ;};if _cbdec ,_dgdffc :=_abgce .(_c .CharData );!_dgdffc {return _e .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",_abgce );}else {switch string (_cbdec ){case "":*_bddbc =0;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_bddbc =1;case "\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c":*_bddbc =2;};};_abgce ,_fbecb =d .Token ();if _fbecb !=nil {return _fbecb ;};if _gfcg ,_cefdf :=_abgce .(_c .EndElement );_cefdf &&_gfcg .Name ==start .Name {return nil ;};return _e .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",_abgce );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_EquationXml and its children
|
|
|
|
func (_eaegf *OfcCT_EquationXml )Validate ()error {return _eaegf .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0058\u006d\u006c");};func (_ceebc OfcST_OLEDrawAspect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_ceebc .String (),start );};type Roundrect struct{CT_RoundRect };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Relation and its children
|
|
|
|
func (_cageba *OfcCT_Relation )Validate ()error {return _cageba .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u006ca\u0074\u0069\u006f\u006e");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Handles and its children, prefixing error messages with path
|
|
|
|
func (_afgga *CT_Handles )ValidateWithPath (path string )error {for _ffedc ,_fggg :=range _afgga .H {if _afbf :=_fggg .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0048\u005b\u0025\u0064\u005d",path ,_ffedc ));_afbf !=nil {return _afbf ;};};return nil ;};func NewCT_Path ()*CT_Path {_ecbb :=&CT_Path {};return _ecbb };func (_gccgf *OfcEquationxml )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 _gccgf .OfcCT_EquationXml .MarshalXML (e ,start );};type AG_Ext struct{ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcFill and its children, prefixing error messages with path
|
|
|
|
func (_aaebda *OfcFill )ValidateWithPath (path string )error {if _caage :=_aaebda .OfcCT_Fill .ValidateWithPath (path );_caage !=nil {return _caage ;};return nil ;};type CT_Fill struct{TypeAttr ST_FillType ;OnAttr _g .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 _g .ST_TrueFalse ;FocusAttr *string ;FocussizeAttr *string ;FocuspositionAttr *string ;MethodAttr ST_FillMethod ;DetectmouseclickAttr _g .ST_TrueFalse ;TitleAttr *string ;Opacity2Attr *string ;RecolorAttr _g .ST_TrueFalse ;RotateAttr _g .ST_TrueFalse ;IdAttr *string ;RelidAttr *string ;Fill *OfcFill ;SIdAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Path and its children
|
|
|
|
func (_dcdfb *CT_Path )Validate ()error {return _dcdfb .ValidateWithPath ("\u0043T\u005f\u0050\u0061\u0074\u0068");};func (_cbegef *OfcST_DiagramLayout )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_cbegef =0;case "\u0030":*_cbegef =1;case "\u0031":*_cbegef =2;case "\u0032":*_cbegef =3;case "\u0033":*_cbegef =4;};return nil ;};func (_gaaa *OfcCT_Lock )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cbff :=range start .Attr {if _cbff .Name .Local =="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"{_gaaa .PositionAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0073e\u006c\u0065\u0063\u0074\u0069\u006fn"{_gaaa .SelectionAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"{_gaaa .GroupingAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0075\u006e\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"{_gaaa .UngroupingAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_gaaa .RotationAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0063\u0072\u006f\u0070\u0070\u0069\u006e\u0067"{_gaaa .CroppingAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0076e\u0072\u0074\u0069\u0063\u0069\u0065s"{_gaaa .VerticiesAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0061\u0064\u006a\u0075\u0073\u0074\u0068\u0061\u006e\u0064\u006c\u0065\u0073"{_gaaa .AdjusthandlesAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0074\u0065\u0078\u0074"{_gaaa .TextAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="a\u0073\u0070\u0065\u0063\u0074\u0072\u0061\u0074\u0069\u006f"{_gaaa .AspectratioAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0073h\u0061\u0070\u0065\u0074\u0079\u0070e"{_gaaa .ShapetypeAttr .UnmarshalXMLAttr (_cbff );continue ;};if _cbff .Name .Local =="\u0065\u0078\u0074"{_gaaa .ExtAttr .UnmarshalXMLAttr (_cbff );continue ;};};for {_cgbbg ,_gdga :=d .Token ();if _gdga !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u004c\u006f\u0063\u006b\u003a\u0020%\u0073",_gdga );};if _eaedg ,_baeg :=_cgbbg .(_c .EndElement );_baeg &&_eaedg .Name ==start .Name {break ;};};return nil ;};func (_bfagb OfcST_How )Validate ()error {return _bfagb .ValidateWithPath ("")};func (_egbeg OfcST_OLEDrawAspect )ValidateWithPath (path string )error {switch _egbeg {case 0,1,2:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_egbeg ));};return nil ;};func (_ggfabd *OfcCT_SignatureLine )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065";};if _ggfabd .IssignaturelineAttr !=_g .ST_TrueFalseUnset {_cgfega ,_bacfe :=_ggfabd .IssignaturelineAttr .MarshalXMLAttr (_c .Name {Local :"\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"});if _bacfe !=nil {return _bacfe ;};start .Attr =append (start .Attr ,_cgfega );};if _ggfabd .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ggfabd .IdAttr )});};if _ggfabd .ProvidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u0072\u006f\u0076\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ggfabd .ProvidAttr )});};if _ggfabd .SigninginstructionssetAttr !=_g .ST_TrueFalseUnset {_fdccb ,_faced :=_ggfabd .SigninginstructionssetAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"});if _faced !=nil {return _faced ;};start .Attr =append (start .Attr ,_fdccb );};if _ggfabd .AllowcommentsAttr !=_g .ST_TrueFalseUnset {_gdcgc ,_gbffa :=_ggfabd .AllowcommentsAttr
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_ddfa *AG_OfficeShapeAttributes )ValidateWithPath (path string )error {if _gae :=_ddfa .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_gae !=nil {return _gae ;};if _bdd :=_ddfa .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bdd !=nil {return _bdd ;};if _ggec :=_ddfa .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ggec !=nil {return _ggec ;};if _bbdb :=_ddfa .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_bbdb !=nil {return _bbdb ;};if _agfg :=_ddfa .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_agfg !=nil {return _agfg ;};if _fcg :=_ddfa .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_fcg !=nil {return _fcg ;};if _efgf :=_ddfa .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_efgf !=nil {return _efgf ;};if _afcd :=_ddfa .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_afcd !=nil {return _afcd ;};if _becc :=_ddfa .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_becc !=nil {return _becc ;};if _cfgg :=_ddfa .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_cfgg !=nil {return _cfgg ;};return nil ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Shape and its children, prefixing error messages with path
|
|
|
|
func (_bedbd *CT_Shape )ValidateWithPath (path string )error {for _adgea ,_dfag :=range _bedbd .Ink {if _dfcd :=_dfag .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_adgea ));_dfcd !=nil {return _dfcd ;};};for _gbdcd ,_bcgad :=range _bedbd .Iscomment {if _bcbaa :=_bcgad .ValidateWithPath (_e .Sprintf ("\u0025\u0073/\u0049\u0073\u0063o\u006d\u006d\u0065\u006e\u0074\u005b\u0025\u0064\u005d",path ,_gbdcd ));_bcbaa !=nil {return _bcbaa ;};};for _deaed ,_fbaa :=range _bedbd .Equationxml {if _afbace :=_fbaa .ValidateWithPath (_e .Sprintf ("\u0025s\u002fE\u0071\u0075\u0061\u0074\u0069o\u006e\u0078m\u006c\u005b\u0025\u0064\u005d",path ,_deaed ));_afbace !=nil {return _afbace ;};};for _cgga ,_fbgbba :=range _bedbd .EG_ShapeElements {if _bcefb :=_fbgbba .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_cgga ));_bcefb !=nil {return _bcefb ;};};if _ggedc :=_bedbd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ggedc !=nil {return _ggedc ;};if _cfbgg :=_bedbd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_cfbgg !=nil {return _cfbgg ;};if _bedbf :=_bedbd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bedbf !=nil {return _bedbf ;};if _ffabf :=_bedbd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ffabf !=nil {return _ffabf ;};if _fcdg :=_bedbd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_fcdg !=nil {return _fcdg ;};if _abbag :=_bedbd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_abbag !=nil {return _abbag ;};if _cdcg :=_bedbd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cdcg !=nil {return _cdcg ;};if _daddd :=_bedbd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_daddd !=nil {return _daddd ;};if _gegagb :=_bedbd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_gegagb !=nil {return _gegagb ;};if _eddd :=_bedbd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_eddd !=nil {return _eddd ;};if _gfgf :=_bedbd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gfgf !=nil {return _gfgf ;};if _dgagd :=_bedbd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_dgagd !=nil {return _dgagd ;};if _cafdb :=_bedbd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_cafdb !=nil {return _cafdb ;};if _bdgb :=_bedbd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_bdgb !=nil {return _bdgb ;};if _abfgd :=_bedbd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_abfgd !=nil {return _abfgd ;};if _fgagbc :=_bedbd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fgagbc !=nil {return _fgagbc ;};if _ggeb :=_bedbd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ggeb !=nil {return _ggeb ;};if _dfga :=_bedbd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_dfga !=nil {return _dfga ;};if _aabba :=_bedbd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_F and its children
|
|
|
|
func (_bdag *CT_F )Validate ()error {return _bdag .ValidateWithPath ("\u0043\u0054\u005f\u0046")};func (_bfafd *ST_StrokeArrowWidth )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_bfafd =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_bfafd =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_bfafd =2;case "\u0077\u0069\u0064\u0065":*_bfafd =3;};return nil ;};type OfcExtrusion struct{OfcCT_Extrusion };func NewLine ()*Line {_defee :=&Line {};_defee .CT_Line =*NewCT_Line ();return _defee };func (_cdff *OfcST_ExtrusionPlane )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_cdff =0;case "\u0058\u0059":*_cdff =1;case "\u005a\u0058":*_cdff =2;case "\u0059\u005a":*_cdff =3;};return nil ;};func (_faabe *ST_FillMethod )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gecee ,_eegaae :=d .Token ();if _eegaae !=nil {return _eegaae ;};if _dgdbg ,_facge :=_gecee .(_c .EndElement );_facge &&_dgdbg .Name ==start .Name {*_faabe =1;return nil ;};if _ecaecc ,_gddgf :=_gecee .(_c .CharData );!_gddgf {return _e .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",_gecee );}else {switch string (_ecaecc ){case "":*_faabe =0;case "\u006e\u006f\u006e\u0065":*_faabe =1;case "\u006c\u0069\u006e\u0065\u0061\u0072":*_faabe =2;case "\u0073\u0069\u0067m\u0061":*_faabe =3;case "\u0061\u006e\u0079":*_faabe =4;case "\u006c\u0069\u006ee\u0061\u0072\u0020\u0073\u0069\u0067\u006d\u0061":*_faabe =5;};};_gecee ,_eegaae =d .Token ();if _eegaae !=nil {return _eegaae ;};if _abdaa ,_acgf :=_gecee .(_c .EndElement );_acgf &&_abdaa .Name ==start .Name {return nil ;};return _e .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",_gecee );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcBottom and its children, prefixing error messages with path
|
|
|
|
func (_ggecfb *OfcBottom )ValidateWithPath (path string )error {if _aggbe :=_ggecfb .OfcCT_StrokeChild .ValidateWithPath (path );_aggbe !=nil {return _aggbe ;};return nil ;};func (_dccdfd *OfcCT_ColorMru )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dagfc :=range start .Attr {if _dagfc .Name .Local =="\u0063\u006f\u006c\u006f\u0072\u0073"{_cbbdb ,_gfbcf :=_dagfc .Value ,error (nil );if _gfbcf !=nil {return _gfbcf ;};_dccdfd .ColorsAttr =&_cbbdb ;continue ;};if _dagfc .Name .Local =="\u0065\u0078\u0074"{_dccdfd .ExtAttr .UnmarshalXMLAttr (_dagfc );continue ;};};for {_daecf ,_badacd :=d .Token ();if _badacd !=nil {return _e .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",_badacd );};if _cgadf ,_gccf :=_daecf .(_c .EndElement );_gccf &&_cgadf .Name ==start .Name {break ;};};return nil ;};func (_cfaca *Group )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cfaca .CT_Group =*NewCT_Group ();for _ ,_fdag :=range start .Attr {if _fdag .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"&&_fdag .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_cfaca .AllowincellAttr .UnmarshalXMLAttr (_fdag );continue ;};if _fdag .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"&&_fdag .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_cfaca .BulletAttr .UnmarshalXMLAttr (_fdag );continue ;};if _fdag .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"&&_fdag .Name .Local =="\u0068\u0072"{_cfaca .HrAttr .UnmarshalXMLAttr (_fdag );continue ;};if _fdag .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"&&_fdag .Name .Local =="\u006f\u006e\u0065\u0064"{_cfaca .OnedAttr .UnmarshalXMLAttr (_fdag );continue ;};if _fdag .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"&&_fdag .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_cfaca .HralignAttr .UnmarshalXMLAttr (_fdag );continue ;};if _fdag .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"&&_fdag .Name .Local =="t\u0061\u0062\u006c\u0065\u006c\u0069\u006d\u0069\u0074\u0073"{_afbfe ,_bcgaac :=_fdag .Value ,error (nil );if _bcgaac !=nil {return _bcgaac ;};_cfaca .TablelimitsAttr =&_afbfe ;continue ;};if _fdag .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"&&_fdag .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_cegaa ,_geace :=_cb .ParseInt (_fdag .Value ,10,64);if _geace !=nil {return _geace ;};_cfaca .RegroupidAttr =&_cegaa ;continue ;};if _fdag .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"&&_fdag .Name .Local =="\u0062\u006f\u0072\u0064\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Stroke and its children, prefixing error messages with path
|
|
|
|
func (_caffe *Stroke )ValidateWithPath (path string )error {if _ebdab :=_caffe .CT_Stroke .ValidateWithPath (path );_ebdab !=nil {return _ebdab ;};return nil ;};type OfcLock struct{OfcCT_Lock };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcLock and its children
|
|
|
|
func (_efdc *OfcLock )Validate ()error {return _efdc .ValidateWithPath ("\u004ff\u0063\u004c\u006f\u0063\u006b");};func (_gadge ST_StrokeArrowType )ValidateWithPath (path string )error {switch _gadge {case 0,1,2,3,4,5,6:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_gadge ));};return nil ;};func NewOfcCT_OLEObject ()*OfcCT_OLEObject {_fbag :=&OfcCT_OLEObject {};return _fbag };func (_aefbe *Roundrect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _aefbe .CT_RoundRect .MarshalXML (e ,start );};func (_gabagf ST_StrokeEndCap )ValidateWithPath (path string )error {switch _gabagf {case 0,1,2,3:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_gabagf ));};return nil ;};func (_dfefbc OfcST_BWMode )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_agfad :=_c .Attr {};_agfad .Name =name ;switch _dfefbc {case OfcST_BWModeUnset :_agfad .Value ="";case OfcST_BWModeColor :_agfad .Value ="\u0063\u006f\u006co\u0072";case OfcST_BWModeAuto :_agfad .Value ="\u0061\u0075\u0074\u006f";case OfcST_BWModeGrayScale :_agfad .Value ="\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce";case OfcST_BWModeLightGrayscale :_agfad .Value ="\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065";case OfcST_BWModeInverseGray :_agfad .Value ="i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079";case OfcST_BWModeGrayOutline :_agfad .Value ="g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065";case OfcST_BWModeHighContrast :_agfad .Value ="\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074";case OfcST_BWModeBlack :_agfad .Value ="\u0062\u006c\u0061c\u006b";case OfcST_BWModeWhite :_agfad .Value ="\u0077\u0068\u0069t\u0065";case OfcST_BWModeHide :_agfad .Value ="\u0068\u0069\u0064\u0065";case OfcST_BWModeUndrawn :_agfad .Value ="\u0075n\u0064\u0072\u0061\u0077\u006e";case OfcST_BWModeBlackTextAndLines :_agfad .Value ="\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073";};return _agfad ,nil ;};func (_bffb *Imagedata )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bffb .CT_ImageData =*NewCT_ImageData ();for _ ,_dbbab :=range start .Attr {if _dbbab .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"&&_dbbab .Name .Local =="\u0070\u0069\u0063\u0074"||_dbbab .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"&&_dbbab .Name .Local =="\u0070\u0069\u0063\u0074"{_fdcf ,_aegag :=_dbbab .Value ,error (nil );if _aegag !=nil {return _aegag ;};_bffb .PictAttr =&_fdcf ;continue ;};if _dbbab .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"&&_dbbab .Name .Local =="\u0068\u0072\u0065\u0066"||_dbbab .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"&&
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_cegac *CT_Shapetype )ValidateWithPath (path string )error {for _bbfea ,_bcbf :=range _cegac .EG_ShapeElements {if _dcaae :=_bcbf .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bbfea ));_dcaae !=nil {return _dcaae ;};};if _cegac .Complex !=nil {if _cbdba :=_cegac .Complex .ValidateWithPath (path +"\u002f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");_cbdba !=nil {return _cbdba ;};};if _fgdgb :=_cegac .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fgdgb !=nil {return _fgdgb ;};if _bdacf :=_cegac .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_bdacf !=nil {return _bdacf ;};if _eedggc :=_cegac .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_eedggc !=nil {return _eedggc ;};if _feagb :=_cegac .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_feagb !=nil {return _feagb ;};if _aeagc :=_cegac .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_aeagc !=nil {return _aeagc ;};if _dddae :=_cegac .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dddae !=nil {return _dddae ;};if _bgda :=_cegac .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_bgda !=nil {return _bgda ;};if _ddbe :=_cegac .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_ddbe !=nil {return _ddbe ;};if _fdabb :=_cegac .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fdabb !=nil {return _fdabb ;};if _dggcg :=_cegac .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dggcg !=nil {return _dggcg ;};if _adae :=_cegac .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_adae !=nil {return _adae ;};if _bfbf :=_cegac .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bfbf !=nil {return _bfbf ;};if _debd :=_cegac .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_debd !=nil {return _debd ;};if _agcdf :=_cegac .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_agcdf !=nil {return _agcdf ;};if _edcgf :=_cegac .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_edcgf !=nil {return _edcgf ;};if _fcff :=_cegac .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fcff !=nil {return _fcff ;};if _gadac :=_cegac .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_gadac !=nil {return _gadac ;};if _bfcbe :=_cegac .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_bfcbe !=nil {return _bfcbe ;};if _ddbbc :=_cegac .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_ddbbc !=nil {return _ddbbc ;};if _dccf :=_cegac .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_dccf !=nil {return _dccf ;};if _abcfe :=_cegac .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_abcfe !=nil {return _abcfe ;};if _gcgad :=_cegac .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeLayout and its children, prefixing error messages with path
|
|
|
|
func (_debcfa *OfcCT_ShapeLayout )ValidateWithPath (path string )error {if _debcfa .Idmap !=nil {if _cadbf :=_debcfa .Idmap .ValidateWithPath (path +"\u002f\u0049\u0064\u006d\u0061\u0070");_cadbf !=nil {return _cadbf ;};};if _debcfa .Regrouptable !=nil {if _ebggb :=_debcfa .Regrouptable .ValidateWithPath (path +"\u002f\u0052\u0065\u0067\u0072\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065");_ebggb !=nil {return _ebggb ;};};if _debcfa .Rules !=nil {if _eefgec :=_debcfa .Rules .ValidateWithPath (path +"\u002f\u0052\u0075\u006c\u0065\u0073");_eefgec !=nil {return _eefgec ;};};if _ebbcbf :=_debcfa .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ebbcbf !=nil {return _ebbcbf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcClippath and its children, prefixing error messages with path
|
|
|
|
func (_feega *OfcClippath )ValidateWithPath (path string )error {if _bdbfb :=_feega .OfcCT_ClipPath .ValidateWithPath (path );_bdbfb !=nil {return _bdbfb ;};return nil ;};func (_abfeg *OfcLeft )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 _abfeg .OfcCT_StrokeChild .MarshalXML (e ,start );};func (_gdbcb *CT_PolyLine )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_aabb :=range start .Attr {if _aabb .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"&&_aabb .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_gdbcb .UserdrawnAttr .UnmarshalXMLAttr (_aabb );continue ;};if _aabb .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"&&_aabb .Name .Local =="\u0063\u006c\u0069\u0070"{_gdbcb .ClipAttr .UnmarshalXMLAttr (_aabb );continue ;};if _aabb .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"&&_aabb .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_gdbcb .UserhiddenAttr .UnmarshalXMLAttr (_aabb );continue ;};if _aabb .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"&&_aabb .Name .Local =="\u0069n\
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Extrusion and its children
|
|
|
|
func (_dgdade *OfcCT_Extrusion )Validate ()error {return _dgdade .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcDiagram and its children
|
|
|
|
func (_cccbcc *OfcDiagram )Validate ()error {return _cccbcc .ValidateWithPath ("\u004f\u0066\u0063\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};func (_fdcae *CT_Curve )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076:\u0063\u0075\u0072\u0076\u0065";};if _fdcae .FromAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .FromAttr )});};if _fdcae .Control1Attr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006e\u0074\u0072\u006f\u006c\u0031"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .Control1Attr )});};if _fdcae .Control2Attr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006e\u0074\u0072\u006f\u006c\u0032"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .Control2Attr )});};if _fdcae .ToAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u006f"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .ToAttr )});};if _fdcae .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .HrefAttr )});};if _fdcae .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .TargetAttr )});};if _fdcae .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .ClassAttr )});};if _fdcae .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .TitleAttr )});};if _fdcae .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .AltAttr )});};if _fdcae .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .CoordsizeAttr )});};if _fdcae .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .CoordoriginAttr )});};if _fdcae .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .WrapcoordsAttr )});};if _fdcae .PrintAttr !=_g .ST_TrueFalseUnset {_faac ,_eeag :=_fdcae .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _eeag !=nil {return _eeag ;};start .Attr =append (start .Attr ,_faac );};if _fdcae .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .IdAttr )});};if _fdcae .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .StyleAttr )});};if _fdcae .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .SpidAttr )});};if _fdcae .OnedAttr !=_g .ST_TrueFalseUnset {_ffdc ,_gaaeb :=_fdcae .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _gaaeb !=nil {return _gaaeb ;};start .Attr =append (start .Attr ,_ffdc );};if _fdcae .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_fdcae .RegroupidAttr )});};if _fdcae .DoubleclicknotifyAttr !=_g .ST_TrueFalseUnset {_dacfc ,_cdde :=_fdcae .DoubleclicknotifyAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_Type and its children
|
|
|
|
func (_ead *AG_Type )Validate ()error {return _ead .ValidateWithPath ("\u0041G\u005f\u0054\u0079\u0070\u0065");};func (_gfegg *OfcShapelayout )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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\u0073\u0068\u0061\u0070\u0065\u006c\u0061\u0079\u006f\u0075\u0074";return _gfegg .OfcCT_ShapeLayout .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_Chromakey and its children
|
|
|
|
func (_dfe *AG_Chromakey )Validate ()error {return _dfe .ValidateWithPath ("\u0041\u0047\u005fC\u0068\u0072\u006f\u006d\u0061\u006b\u0065\u0079");};func (_gabdab OfcST_FillType )Validate ()error {return _gabdab .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Rect and its children
|
|
|
|
func (_cafce *Rect )Validate ()error {return _cafce .ValidateWithPath ("\u0052\u0065\u0063\u0074")};func NewAG_StrokeAttributes ()*AG_StrokeAttributes {_gbd :=&AG_StrokeAttributes {};return _gbd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcExtrusion and its children
|
|
|
|
func (_cbcfe *OfcExtrusion )Validate ()error {return _cbcfe .ValidateWithPath ("\u004f\u0066\u0063E\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};func (_ccefg OfcST_RType )Validate ()error {return _ccefg .ValidateWithPath ("")};func (_eeege *OfcST_OLEType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_eeege =0;case "\u0045\u006d\u0062e\u0064":*_eeege =1;case "\u004c\u0069\u006e\u006b":*_eeege =2;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_ImageData and its children, prefixing error messages with path
|
|
|
|
func (_dgcdd *CT_ImageData )ValidateWithPath (path string )error {if _cdaf :=_dgcdd .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_cdaf !=nil {return _cdaf ;};if _baeb :=_dgcdd .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_baeb !=nil {return _baeb ;};if _aaggc :=_dgcdd .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_aaggc !=nil {return _aaggc ;};return nil ;};type OfcST_OLEType byte ;func (_feefd OfcST_OLEUpdateMode )Validate ()error {return _feefd .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_Path and its children
|
|
|
|
func (_edfc *AG_Path )Validate ()error {return _edfc .ValidateWithPath ("\u0041G\u005f\u0050\u0061\u0074\u0068");};func (_gefeb OfcST_RType )ValidateWithPath (path string )error {switch _gefeb {case 0,1,2,3,4:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_gefeb ));};return nil ;};func (_eadefd *ST_EditAs )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_eadefd =0;case "\u0063\u0061\u006e\u0076\u0061\u0073":*_eadefd =1;case "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074":*_eadefd =2;case "\u0072\u0061\u0064\u0069\u0061\u006c":*_eadefd =3;case "\u0063\u0079\u0063l\u0065":*_eadefd =4;case "\u0073t\u0061\u0063\u006b\u0065\u0064":*_eadefd =5;case "\u0076\u0065\u006e\u006e":*_eadefd =6;case "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065":*_eadefd =7;};return nil ;};type Path struct{CT_Path };func (_egggg *OfcCT_Fill )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0066\u0069\u006c\u006c";};if _egggg .TypeAttr !=OfcST_FillTypeUnset {_dgdc ,_gadfe :=_egggg .TypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0079\u0070\u0065"});if _gadfe !=nil {return _gadfe ;};start .Attr =append (start .Attr ,_dgdc );};if _egggg .ExtAttr !=ST_ExtUnset {_fdgbf ,_effce :=_egggg .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _effce !=nil {return _effce ;};start .Attr =append (start .Attr ,_fdgbf );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_R and its children
|
|
|
|
func (_gfbfdg *OfcCT_R )Validate ()error {return _gfbfdg .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0052");};func (_ecfcd OfcST_OLEUpdateMode )ValidateWithPath (path string )error {switch _ecfcd {case 0,1,2:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ecfcd ));};return nil ;};type OfcLeft struct{OfcCT_StrokeChild };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-11-10 11:45:21 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMru and its children, prefixing error messages with path
|
2022-01-15 21:17:38 +00:00
|
|
|
func (_acfc *OfcCT_ColorMru )ValidateWithPath (path string )error {if _ddfcg :=_acfc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ddfcg !=nil {return _ddfcg ;};return nil ;};func (_eagcg OfcST_ColorMode )Validate ()error {return _eagcg .ValidateWithPath ("")};func (_caadc *Textbox )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _caadc .CT_Textbox .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_ClipPath and its children
|
|
|
|
func (_aeaf *OfcCT_ClipPath )Validate ()error {return _aeaf .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006c\u0069p\u0050\u0061\u0074\u0068");};func (_gfbeab OfcST_ExtrusionRender )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_debcff :=_c .Attr {};_debcff .Name =name ;switch _gfbeab {case OfcST_ExtrusionRenderUnset :_debcff .Value ="";case OfcST_ExtrusionRenderSolid :_debcff .Value ="\u0073\u006f\u006ci\u0064";case OfcST_ExtrusionRenderWireFrame :_debcff .Value ="\u0077i\u0072\u0065\u0046\u0072\u0061\u006de";case OfcST_ExtrusionRenderBoundingCube :_debcff .Value ="\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065";};return _debcff ,nil ;};func (_fcgac *OfcST_ColorMode )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_fcgac =0;case "\u0061\u0075\u0074\u006f":*_fcgac =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_fcgac =2;};return nil ;};func (_cggaf *OfcCT_Extrusion )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cgcda :=range start .Attr {if _cgcda .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_cggaf .ColormodeAttr .UnmarshalXMLAttr (_cgcda );continue ;};if _cgcda .Name .Local =="\u0063\u006f\u006co\u0072"{_fcea ,_ffad :=_cgcda .Value ,error (nil );if _ffad !=nil {return _ffad ;};_cggaf .ColorAttr =&_fcea ;continue ;};if _cgcda .Name .Local =="\u0074\u0079\u0070\u0065"{_cggaf .TypeAttr .UnmarshalXMLAttr (_cgcda );continue ;};if _cgcda .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_addba ,_cbfca :=_cb .ParseFloat (_cgcda .Value ,64);if _cbfca !=nil {return _cbfca ;};_egda :=float32 (_addba );_cggaf .ShininessAttr =&_egda ;continue ;};if _cgcda .Name .Local =="\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"{_bebdg ,_defgf :=_cgcda .Value ,error (nil );if _defgf !=nil {return _defgf ;};_cggaf .ViewpointoriginAttr =&_bebdg ;continue ;};if _cgcda .Name .Local =="s\u0070\u0065\u0063\u0075\u006c\u0061\u0072\u0069\u0074\u0079"{_edega ,_dgdag :=_cgcda .Value ,error (nil );if _dgdag !=nil {return _dgdag ;};_cggaf .SpecularityAttr =&_edega ;continue ;};if _cgcda .Name .Local =="\u0070\u006c\u0061n\u0065"{_cggaf .PlaneAttr .UnmarshalXMLAttr (_cgcda );continue ;};if _cgcda .Name .Local =="\u0064i\u0066\u0066\u0075\u0073\u0069\u0074y"{_dabcc ,_aecda :=_cgcda .Value ,error (nil );if _aecda !=nil {return _aecda ;};_cggaf .DiffusityAttr =&_dabcc ;continue ;};if _cgcda .Name .Local =="\u0073k\u0065\u0077\u0061\u006d\u0074"{_egdbg ,_abadd :=_cgcda .Value ,error (nil );if _abadd !=nil {return _abadd ;};_cggaf .SkewamtAttr =&_egdbg ;continue ;};if _cgcda .Name .Local =="\u006d\u0065\u0074a\u006c"{_cggaf .MetalAttr .UnmarshalXMLAttr (_cgcda );continue ;};if _cgcda .Name .Local =="\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"{_deadc ,_gdcag :=_cgcda .Value ,error (nil );if _gdcag !=nil {return _gdcag ;};_cggaf .BackdepthAttr =&_deadc ;continue ;};if _cgcda .Name .Local =="\u0065\u0064\u0067\u0065"{_bfbdc ,_acfeb :=_cgcda .Value ,error (nil );if _acfeb !=nil {return _acfeb ;};_cggaf .EdgeAttr =&_bfbdc ;continue ;};if _cgcda .Name .Local =="l\u0069\u0067\u0068\u0074\u006c\u0065\u0076\u0065\u006c\u0032"{_beacbe ,_ccbdg :=_cgcda .Value ,error (nil );if _ccbdg !=nil {return _ccbdg ;};_cggaf .Lightlevel2Attr =&_beacbe ;continue ;};if _cgcda .Name .Local =="\u006f\u0072i\u0065\u006e\u0074a\u0074\u0069\u006f\u006e\u0061\u006e\u0067\u006c\u0065"{_cfddc ,_ffdag :=_cb .ParseFloat (_cgcda .Value ,64);if _ffdag !=nil {return _ffdag ;};_gefbc :=float32 (_cfddc );_cggaf .OrientationangleAttr =&_gefbc ;continue ;};if _cgcda .Name .Local =="\u006f\u006e"{_cggaf .OnAttr .UnmarshalXMLAttr (_cgcda );continue ;};if _cgcda .Name .Local =="\u006c\u0069\u0067\u0068\u0074\u0068\u0061\u0072\u0073\u0068"{_cggaf .LightharshAttr .UnmarshalXMLAttr (_cgcda );continue ;};if _cgcda .Name .Local =="\u006ci\u0067\u0068\u0074\u0066\u0061\u0063e"{_cggaf .LightfaceAttr .UnmarshalXMLAttr (_cgcda );continue ;};if _cgcda .Name .Local =="\u0066o\u0072\u0065\u0064\u0065\u0070\u0074h"{_afge ,_deee :=_cgcda .Value ,error (nil );if _dee
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Ink and its children
|
|
|
|
func (_gcgdc *OfcCT_Ink )Validate ()error {return _gcgdc .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0049\u006ek");};type CT_Path struct{VAttr *string ;LimoAttr *string ;TextboxrectAttr *string ;FillokAttr _g .ST_TrueFalse ;StrokeokAttr _g .ST_TrueFalse ;ShadowokAttr _g .ST_TrueFalse ;ArrowokAttr _g .ST_TrueFalse ;GradientshapeokAttr _g .ST_TrueFalse ;TextpathokAttr _g .ST_TrueFalse ;InsetpenokAttr _g .ST_TrueFalse ;ConnecttypeAttr OfcST_ConnectType ;ConnectlocsAttr *string ;ConnectanglesAttr *string ;ExtrusionokAttr _g .ST_TrueFalse ;IdAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_ImageAttributes and its children, prefixing error messages with path
|
|
|
|
func (_daef *AG_ImageAttributes )ValidateWithPath (path string )error {if _bffg :=_daef .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_bffg !=nil {return _bffg ;};if _ecd :=_daef .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_ecd !=nil {return _ecd ;};return nil ;};type OfcCT_IdMap struct{DataAttr *string ;ExtAttr ST_Ext ;};func (_gagff *OfcCT_ClipPath )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0063\u006c\u0069\u0070\u0070\u0061\u0074\u0068";};start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0076"},Value :_e .Sprintf ("\u0025\u0076",_gagff .VAttr )});e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_ImageData and its children
|
|
|
|
func (_fgcd *CT_ImageData )Validate ()error {return _fgcd .ValidateWithPath ("\u0043\u0054\u005fI\u006d\u0061\u0067\u0065\u0044\u0061\u0074\u0061");};func (_dece *AG_AllShapeAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _dece .OpacityAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_e .Sprintf ("\u0025\u0076",*_dece .OpacityAttr )});};if _dece .StrokedAttr !=_g .ST_TrueFalseUnset {_adc ,_dbd :=_dece .StrokedAttr .MarshalXMLAttr (_c .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _dbd !=nil {return _dbd ;};start .Attr =append (start .Attr ,_adc );};if _dece .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_dece .StrokecolorAttr )});};if _dece .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dece .StrokeweightAttr )});};if _dece .InsetpenAttr !=_g .ST_TrueFalseUnset {_fed ,_agg :=_dece .InsetpenAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _agg !=nil {return _agg ;};start .Attr =append (start .Attr ,_fed );};if _dece .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_e .Sprintf ("\u0025\u0076",*_dece .ChromakeyAttr )});};if _dece .FilledAttr !=_g .ST_TrueFalseUnset {_bcbd ,_gffb :=_dece .FilledAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _gffb !=nil {return _gffb ;};start .Attr =append (start .Attr ,_bcbd );};if _dece .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_dece .FillcolorAttr )});};if _dece .SptAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073p\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dece .SptAttr )});};if _dece .ConnectortypeAttr !=OfcST_ConnectorTypeUnset {_acc ,_gd :=_dece .ConnectortypeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"});if _gd !=nil {return _gd ;};start .Attr =append (start .Attr ,_acc );};if _dece .BwmodeAttr !=OfcST_BWModeUnset {_afa ,_dfgg :=_dece .BwmodeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _dfgg !=nil {return _dfgg ;};start .Attr =append (start .Attr ,_afa );};if _dece .BwpureAttr !=OfcST_BWModeUnset {_bba ,_ff :=_dece .BwpureAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u0070\u0075\u0072\u0065"});if _ff !=nil {return _ff ;};start .Attr =append (start .Attr ,_bba );};if _dece .BwnormalAttr !=OfcST_BWModeUnset {_dfb ,_dde :=_dece .BwnormalAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _dde !=nil {return _dde ;};start .Attr =append (start .Attr ,_dfb );};if _dece .ForcedashAttr !=_g .ST_TrueFalseUnset {_be ,_ggb :=_dece .ForcedashAttr .MarshalXMLAttr (_c .Name {Local :"o\u003a\u0066\u006f\u0072\u0063\u0065\u0064\u0061\u0073\u0068"});if _ggb !=nil {return _ggb ;};start .Attr =append (start .Attr ,_be );};if _dece .OleiconAttr !=_g .ST_TrueFalseUnset {_beg ,_gga :=_dece .OleiconAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u006f\u006c\u0065\u0069\u0063\u006fn"});if _gga !=nil {return _gga ;};start .Attr =append (start .Attr ,_beg );};if _dece .OleAttr !=_g .ST_TrueFalseBlankUnset {_ageg ,_feg :=_dece .OleAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006fl\u0065"});if _feg !=nil {return _feg ;};start .Attr =append (start .Attr ,_ageg );};if _dece .PreferrelativeAttr !=_g .ST_TrueFalseUnset {_gggf ,_agfc :=_dece .PreferrelativeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003ap\u0072\u0065\u0066e\u0072\u0072\u0065\u006c\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Image and its children, prefixing error messages with path
|
|
|
|
func (_cgbfd *Image )ValidateWithPath (path string )error {if _edegb :=_cgbfd .CT_Image .ValidateWithPath (path );_edegb !=nil {return _edegb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcTop and its children
|
|
|
|
func (_abdcf *OfcTop )Validate ()error {return _abdcf .ValidateWithPath ("\u004f\u0066\u0063\u0054\u006f\u0070");};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Textbox and its children
|
|
|
|
func (_bbbegf *Textbox )Validate ()error {return _bbbegf .ValidateWithPath ("\u0054e\u0078\u0074\u0062\u006f\u0078");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcLeft and its children, prefixing error messages with path
|
|
|
|
func (_feead *OfcLeft )ValidateWithPath (path string )error {if _gdbbf :=_feead .OfcCT_StrokeChild .ValidateWithPath (path );_gdbbf !=nil {return _gdbbf ;};return nil ;};func (_ggbfg *Rect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _ggbfg .CT_Rect .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Oval and its children, prefixing error messages with path
|
|
|
|
func (_aebbc *Oval )ValidateWithPath (path string )error {if _aeggfb :=_aebbc .CT_Oval .ValidateWithPath (path );_aeggfb !=nil {return _aeggfb ;};return nil ;};type AG_Id struct{IdAttr *string ;};type OfcCT_RelationTable struct{Rel []*OfcCT_Relation ;ExtAttr ST_Ext ;};type ST_Ext byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Oval and its children
|
|
|
|
func (_bcdag *Oval )Validate ()error {return _bcdag .ValidateWithPath ("\u004f\u0076\u0061\u006c")};func (_edddf *CT_Textbox )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx";};if _edddf .InsetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u006e\u0073e\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_edddf .InsetAttr )});};if _edddf .SingleclickAttr !=_g .ST_TrueFalseUnset {_afcf ,_ebec :=_edddf .SingleclickAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0073\u0069\u006e\u0067\u006c\u0065\u0063\u006c\u0069\u0063\u006b"});if _ebec !=nil {return _ebec ;};start .Attr =append (start .Attr ,_afcf );};if _edddf .InsetmodeAttr !=OfcST_InsetModeUnset {_bgeab ,_dfbbb :=_edddf .InsetmodeAttr .MarshalXMLAttr (_c .Name {Local :"o\u003a\u0069\u006e\u0073\u0065\u0074\u006d\u006f\u0064\u0065"});if _dfbbb !=nil {return _dfbbb ;};start .Attr =append (start .Attr ,_bgeab );};if _edddf .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_edddf .IdAttr )});};if _edddf .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_edddf .StyleAttr )});};e .EncodeToken (start );if _edddf .TxbxContent !=nil {_abbe :=_c .StartElement {Name :_c .Name {Local :"\u0077\u003a\u0074\u0078\u0062\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074"}};e .EncodeElement (_edddf .TxbxContent ,_abbe );};if _edddf .Any !=nil {_edddf .Any .MarshalXML (e ,_c .StartElement {});};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_gacgd *OfcST_ExtrusionRender )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_gacgd =0;case "\u0073\u006f\u006ci\u0064":*_gacgd =1;case "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de":*_gacgd =2;case "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065":*_gacgd =3;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_TextPath and its children, prefixing error messages with path
|
|
|
|
func (_eeadc *CT_TextPath )ValidateWithPath (path string )error {if _dafb :=_eeadc .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_dafb !=nil {return _dafb ;};if _ffcfb :=_eeadc .FitshapeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u0074\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_ffcfb !=nil {return _ffcfb ;};if _fgdaee :=_eeadc .FitpathAttr .ValidateWithPath (path +"\u002f\u0046\u0069t\u0070\u0061\u0074\u0068\u0041\u0074\u0074\u0072");_fgdaee !=nil {return _fgdaee ;};if _bbbce :=_eeadc .TrimAttr .ValidateWithPath (path +"\u002fT\u0072\u0069\u006d\u0041\u0074\u0074r");_bbbce !=nil {return _bbbce ;};if _bagdg :=_eeadc .XscaleAttr .ValidateWithPath (path +"/\u0058\u0073\u0063\u0061\u006c\u0065\u0041\u0074\u0074\u0072");_bagdg !=nil {return _bagdg ;};return nil ;};func NewOfcCT_Entry ()*OfcCT_Entry {_daabc :=&OfcCT_Entry {};return _daabc };func (_add *AG_Id )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_edfd :=range start .Attr {if _edfd .Name .Local =="\u0069\u0064"{_gegg ,_dbbf :=_edfd .Value ,error (nil );if _dbbf !=nil {return _dbbf ;};_add .IdAttr =&_gegg ;continue ;};};for {_eae ,_cbb :=d .Token ();if _cbb !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005f\u0049d\u003a\u0020\u0025\u0073",_cbb );};if _fag ,_fece :=_eae .(_c .EndElement );_fece &&_fag .Name ==start .Name {break ;};};return nil ;};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 (_cadcga *OfcST_Angle )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_cadcga =0;case "\u0061\u006e\u0079":*_cadcga =1;case "\u0033\u0030":*_cadcga =2;case "\u0034\u0035":*_cadcga =3;case "\u0036\u0030":*_cadcga =4;case "\u0039\u0030":*_cadcga =5;case "\u0061\u0075\u0074\u006f":*_cadcga =6;};return nil ;};func (_cefac *CT_PolyLine )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0070\u006f\u006c\u0079\u006c\u0069\u006e\u0065";};if _cefac .PointsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u006f\u0069\u006e\u0074\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cefac .PointsAttr )});};if _cefac .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_cefac .HrefAttr )});};if _cefac .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cefac .TargetAttr )});};if _cefac .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cefac .ClassAttr )});};if _cefac .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cefac .TitleAttr )});};if _cefac .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cefac .AltAttr )});};if _cefac .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_cefac .CoordsizeAttr )});};if _cefac .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_cefac .CoordoriginAttr )});};if _cefac .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_CoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_fcc *AG_CoreAttributes )ValidateWithPath (path string )error {if _fedb :=_fcc .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fedb !=nil {return _fedb ;};return nil ;};func (_bdbbf *ST_StrokeArrowType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_bdbbf =0;case "\u006e\u006f\u006e\u0065":*_bdbbf =1;case "\u0062\u006c\u006fc\u006b":*_bdbbf =2;case "\u0063l\u0061\u0073\u0073\u0069\u0063":*_bdbbf =3;case "\u006f\u0076\u0061\u006c":*_bdbbf =4;case "\u0064i\u0061\u006d\u006f\u006e\u0064":*_bdbbf =5;case "\u006f\u0070\u0065\u006e":*_bdbbf =6;};return nil ;};func (_cadgd *Curve )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cadgd .CT_Curve =*NewCT_Curve ();for _ ,_cefff :=range start .Attr {if _cefff .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"&&_cefff .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_cadgd .AllowoverlapAttr .UnmarshalXMLAttr (_cefff );continue ;};if _cefff .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"&&_cefff .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_baed ,_debbe :=_cb .ParseInt (_cefff .Value ,10,64);if _debbe !=nil {return _debbe ;};_cadgd .RegroupidAttr =&_baed ;continue ;};if _cefff .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"&&_cefff .Name .Local =="\u0064g\u006d\u006c\u0061\u0079\u006f\u0075t"{_cadgd .DgmlayoutAttr .UnmarshalXMLAttr (_cefff );continue ;};if _cefff .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"&&_cefff .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_cadgd .DoubleclicknotifyAttr .UnmarshalXMLAttr (_cefff );continue ;};if _cefff .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"&&_cefff .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_cadgd .PreferrelativeAttr .UnmarshalXMLAttr (_cefff );continue ;};if _cefff .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"&&_cefff .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_cadgd .ButtonAttr .UnmarshalXMLAttr (_cefff );continue ;};if _cefff .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"&&_cefff .Name .Local =="\u006f\u006c\u0065"{_cadgd .OleAttr .UnmarshalXMLAttr (_cefff );continue ;};if _cefff .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"&&_cefff .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_cadgd .UserhiddenAttr .UnmarshalXMLAttr (_cefff );continue ;};if _cefff .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the EG_ShapeElements and its children, prefixing error messages with path
|
|
|
|
func (_bcgcf *EG_ShapeElements )ValidateWithPath (path string )error {if _bcgcf .Path !=nil {if _gbaaa :=_bcgcf .Path .ValidateWithPath (path +"\u002f\u0050\u0061t\u0068");_gbaaa !=nil {return _gbaaa ;};};if _bcgcf .Formulas !=nil {if _cddfc :=_bcgcf .Formulas .ValidateWithPath (path +"\u002fF\u006f\u0072\u006d\u0075\u006c\u0061s");_cddfc !=nil {return _cddfc ;};};if _bcgcf .Handles !=nil {if _bgebb :=_bcgcf .Handles .ValidateWithPath (path +"\u002f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");_bgebb !=nil {return _bgebb ;};};if _bcgcf .Fill !=nil {if _deabg :=_bcgcf .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_deabg !=nil {return _deabg ;};};if _bcgcf .Stroke !=nil {if _aedbd :=_bcgcf .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_aedbd !=nil {return _aedbd ;};};if _bcgcf .Shadow !=nil {if _aaebd :=_bcgcf .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_aaebd !=nil {return _aaebd ;};};if _bcgcf .Textbox !=nil {if _ccgge :=_bcgcf .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_ccgge !=nil {return _ccgge ;};};if _bcgcf .Textpath !=nil {if _gfbff :=_bcgcf .Textpath .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0070\u0061\u0074h");_gfbff !=nil {return _gfbff ;};};if _bcgcf .Imagedata !=nil {if _abedc :=_bcgcf .Imagedata .ValidateWithPath (path +"\u002f\u0049\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061");_abedc !=nil {return _abedc ;};};if _bcgcf .Skew !=nil {if _bfcf :=_bcgcf .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_bfcf !=nil {return _bfcf ;};};if _bcgcf .Extrusion !=nil {if _cfacd :=_bcgcf .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_cfacd !=nil {return _cfacd ;};};if _bcgcf .Callout !=nil {if _cbgb :=_bcgcf .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_cbgb !=nil {return _cbgb ;};};if _bcgcf .Lock !=nil {if _addegb :=_bcgcf .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_addegb !=nil {return _addegb ;};};if _bcgcf .Clippath !=nil {if _fccgc :=_bcgcf .Clippath .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0070\u0061\u0074h");_fccgc !=nil {return _fccgc ;};};if _bcgcf .Signatureline !=nil {if _bbcdf :=_bcgcf .Signatureline .ValidateWithPath (path +"\u002f\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065");_bbcdf !=nil {return _bbcdf ;};};if _bcgcf .Wrap !=nil {if _bgeac :=_bcgcf .Wrap .ValidateWithPath (path +"\u002f\u0057\u0072a\u0070");_bgeac !=nil {return _bgeac ;};};if _bcgcf .Anchorlock !=nil {if _gfbbg :=_bcgcf .Anchorlock .ValidateWithPath (path +"/\u0041\u006e\u0063\u0068\u006f\u0072\u006c\u006f\u0063\u006b");_gfbbg !=nil {return _gfbbg ;};};if _bcgcf .Bordertop !=nil {if _faade :=_bcgcf .Bordertop .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070");_faade !=nil {return _faade ;};};if _bcgcf .Borderbottom !=nil {if _dcagd :=_bcgcf .Borderbottom .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0062\u006f\u0074\u0074\u006f\u006d");_dcagd !=nil {return _dcagd ;};};if _bcgcf .Borderleft !=nil {if _caebd :=_bcgcf .Borderleft .ValidateWithPath (path +"/\u0042\u006f\u0072\u0064\u0065\u0072\u006c\u0065\u0066\u0074");_caebd !=nil {return _caebd ;};};if _bcgcf .Borderright !=nil {if _eaea :=_bcgcf .Borderright .ValidateWithPath (path +"\u002f\u0042\u006fr\u0064\u0065\u0072\u0072\u0069\u0067\u0068\u0074");_eaea !=nil {return _eaea ;};};if _bcgcf .ClientData !=nil {if _facgc :=_bcgcf .ClientData .ValidateWithPath (path +"/\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");_facgc !=nil {return _facgc ;};};if _bcgcf .Textdata !=nil {if _dgfba :=_bcgcf .Textdata .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0064\u0061\u0074a");_dgfba !=nil {return _dgfba ;};};return nil ;};func NewAG_CoreAttributes ()*AG_CoreAttributes {_bab :=&AG_CoreAttributes {};return _bab };func (_bcgb *OfcCT_Complex )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Fill and its children, prefixing error messages with path
|
|
|
|
func (_dfeb *Fill )ValidateWithPath (path string )error {if _caced :=_dfeb .CT_Fill .ValidateWithPath (path );_caced !=nil {return _caced ;};return nil ;};func (_dbfdeb *ST_StrokeArrowLength )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_dbfdeb =0;case "\u0073\u0068\u006fr\u0074":*_dbfdeb =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_dbfdeb =2;case "\u006c\u006f\u006e\u0067":*_dbfdeb =3;};return nil ;};func NewOfcCT_ClipPath ()*OfcCT_ClipPath {_ggfgb :=&OfcCT_ClipPath {};return _ggfgb };const (ST_StrokeLineStyleUnset ST_StrokeLineStyle =0;ST_StrokeLineStyleSingle ST_StrokeLineStyle =1;ST_StrokeLineStyleThinThin ST_StrokeLineStyle =2;ST_StrokeLineStyleThinThick ST_StrokeLineStyle =3;ST_StrokeLineStyleThickThin ST_StrokeLineStyle =4;ST_StrokeLineStyleThickBetweenThin ST_StrokeLineStyle =5;);type OfcST_ExtrusionRender byte ;func (_ffcb *CT_RoundRect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="v\u003a\u0072\u006f\u0075\u006e\u0064\u0072\u0065\u0063\u0074";};if _ffcb .ArcsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061r\u0063\u0073\u0069\u007a\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .ArcsizeAttr )});};if _ffcb .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .HrefAttr )});};if _ffcb .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .TargetAttr )});};if _ffcb .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .ClassAttr )});};if _ffcb .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .TitleAttr )});};if _ffcb .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .AltAttr )});};if _ffcb .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .CoordsizeAttr )});};if _ffcb .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .CoordoriginAttr )});};if _ffcb .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .WrapcoordsAttr )});};if _ffcb .PrintAttr !=_g .ST_TrueFalseUnset {_aadca ,_dbdcd :=_ffcb .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _dbdcd !=nil {return _dbdcd ;};start .Attr =append (start .Attr ,_aadca );};if _ffcb .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .IdAttr )});};if _ffcb .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .StyleAttr )});};if _ffcb .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .SpidAttr )});};if _ffcb .OnedAttr !=_g .ST_TrueFalseUnset {_ebdaa ,_afbba :=_ffcb .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _afbba !=nil {return _afbba ;};start .Attr =append (start .Attr ,_ebdaa );};if _ffcb .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ffcb .RegroupidAttr )});};if _ffcb .DoubleclicknotifyAttr !=_g .ST_Tru
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_IdMap and its children
|
|
|
|
func (_ggggg *OfcCT_IdMap )Validate ()error {return _ggggg .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0049\u0064\u004d\u0061\u0070");};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;);func (_gcgbaf *Roundrect )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gcgbaf .CT_RoundRect =*NewCT_RoundRect ();for _ ,_cedbac :=range start .Attr {if _cedbac .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"&&_cedbac .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_gcgbaf .UserdrawnAttr .UnmarshalXMLAttr (_cedbac );continue ;};if _cedbac .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"&&_cedbac .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_edbad ,_acgaad :=_cedbac .Value ,error (nil );if _acgaad !=nil {return _acgaad ;};_gcgbaf .BordertopcolorAttr =&_edbad ;continue ;};if _cedbac .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"&&_cedbac .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_gcgbaf .UserhiddenAttr .UnmarshalXMLAttr (_cedbac );continue ;};if _cedbac .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"&&_cedbac .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gcgbaf .BulletAttr .UnmarshalXMLAttr (_cedbac );continue ;};if _cedbac .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"&&_cedbac .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_gcgbaf .CliptowrapAttr .UnmarshalXMLAttr (_cedbac );continue ;};if _cedbac .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"&&_cedbac .Name .Local =="\u0068\u0072"{_gcgbaf .HrAttr .UnmarshalXMLAttr (_cedbac );continue ;};if _cedbac .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"&&_cedbac .Name .Local =="\u006f\u006c\u0065"{_gcgbaf .OleAttr .UnmarshalXMLAttr (_cedbac );continue ;};if _cedbac .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"&&_cedbac .Name .Local =="\u0068\u0072\u0073t\u0064"{_gcgbaf .HrstdAttr .UnmarshalXMLAttr (_cedbac );continue ;};if _cedbac .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"&&_cedbac .Name .Local =="\u0073\u0070\u0069\u0064"{_ebece ,_cgeebb :=_cedbac .Value ,error (nil );if _cgeebb !=nil {return _cgeebb ;};_gcgbaf .SpidAttr =&_ebece ;continue ;};if _cedbac .Name .Space =="\u007
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_PolyLine and its children, prefixing error messages with path
|
|
|
|
func (_eddba *CT_PolyLine )ValidateWithPath (path string )error {for _ebeg ,_gaee :=range _eddba .Ink {if _cgafd :=_gaee .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_ebeg ));_cgafd !=nil {return _cgafd ;};};for _eaaae ,_bcfcb :=range _eddba .EG_ShapeElements {if _bcdc :=_bcfcb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_eaaae ));_bcdc !=nil {return _bcdc ;};};if _cabd :=_eddba .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_cabd !=nil {return _cabd ;};if _gabe :=_eddba .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gabe !=nil {return _gabe ;};if _fdfc :=_eddba .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_fdfc !=nil {return _fdfc ;};if _gedd :=_eddba .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_gedd !=nil {return _gedd ;};if _eacd :=_eddba .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_eacd !=nil {return _eacd ;};if _ffdf :=_eddba .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ffdf !=nil {return _ffdf ;};if _ffcgf :=_eddba .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_ffcgf !=nil {return _ffcgf ;};if _fbbaf :=_eddba .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_fbbaf !=nil {return _fbbaf ;};if _cfaef :=_eddba .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cfaef !=nil {return _cfaef ;};if _efae :=_eddba .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_efae !=nil {return _efae ;};if _fcaea :=_eddba .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_fcaea !=nil {return _fcaea ;};if _geaag :=_eddba .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_geaag !=nil {return _geaag ;};if _abbdb :=_eddba .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_abbdb !=nil {return _abbdb ;};if _fcdbb :=_eddba .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_fcdbb !=nil {return _fcdbb ;};if _ggaec :=_eddba .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_ggaec !=nil {return _ggaec ;};if _cebcc :=_eddba .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cebcc !=nil {return _cebcc ;};if _gcbba :=_eddba .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_gcbba !=nil {return _gcbba ;};if _accbc :=_eddba .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_accbc !=nil {return _accbc ;};if _fffe :=_eddba .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_fffe !=nil {return _fffe ;};if _acbaa :=_eddba .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_acbaa !=nil {return _acbaa ;};if _bbgeb :=_eddba .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bbgeb !=nil {return _bbgeb ;};if _bafe :=_eddba .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_Adj and its children
|
|
|
|
func (_bb *AG_Adj )Validate ()error {return _bb .ValidateWithPath ("\u0041\u0047\u005f\u0041\u0064\u006a");};func (_dgccc OfcST_ColorMode )ValidateWithPath (path string )error {switch _dgccc {case 0,1,2:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dgccc ));};return nil ;};type OfcCT_EquationXml struct{ContentTypeAttr *string ;Any _f .Any ;};func (_agcfdf *OfcCT_Entry )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0065\u006e\u0074\u0072\u0079";};if _agcfdf .NewAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006e\u0065\u0077"},Value :_e .Sprintf ("\u0025\u0076",*_agcfdf .NewAttr )});};if _agcfdf .OldAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u006c\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_agcfdf .OldAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_aeega *OfcCT_ColorMru )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0063\u006f\u006c\u006f\u0072\u006d\u0072\u0075";};if _aeega .ColorsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_aeega .ColorsAttr )});};if _aeega .ExtAttr !=ST_ExtUnset {_ccefd ,_ccaeg :=_aeega .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _ccaeg !=nil {return _ccaeg ;};start .Attr =append (start .Attr ,_ccefd );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_agcab *Shapetype )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _agcab .CT_Shapetype .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Ink and its children, prefixing error messages with path
|
|
|
|
func (_efaba *OfcCT_Ink )ValidateWithPath (path string )error {if _decge :=_efaba .AnnotationAttr .ValidateWithPath (path +"\u002fA\u006en\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_decge !=nil {return _decge ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Group and its children
|
|
|
|
func (_cfbaf *Group )Validate ()error {return _cfbaf .ValidateWithPath ("\u0047\u0072\u006fu\u0070")};func (_ebebd ST_FillMethod )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_ebebd .String (),start );};func (_fdbfde ST_Ext )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_fdbfde .String (),start );};func (_eacfab ST_ShadowType )ValidateWithPath (path string )error {switch _eacfab {case 0,1,2,3,4:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_eacfab ));};return nil ;};func (_ffdca ST_EditAs )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_ffdca .String (),start );};func (_ccg *AG_Fill )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _ccg .FilledAttr !=_g .ST_TrueFalseUnset {_efbg ,_gda :=_ccg .FilledAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _gda !=nil {return _gda ;};start .Attr =append (start .Attr ,_efbg );};if _ccg .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_ccg .FillcolorAttr )});};return nil ;};func (_aegab *Handles )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _aegab .CT_Handles .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_OLEObject and its children
|
|
|
|
func (_bafac *OfcCT_OLEObject )Validate ()error {return _bafac .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u004f\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func (_cedcf *OfcEquationxml )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cedcf .OfcCT_EquationXml =*NewOfcCT_EquationXml ();for _ ,_eaabbf :=range start .Attr {if _eaabbf .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_abbeg ,_cggdf :=_eaabbf .Value ,error (nil );if _cggdf !=nil {return _cggdf ;};_cedcf .ContentTypeAttr =&_abbeg ;continue ;};};_dfffff :for {_adagb ,_gbcfg :=d .Token ();if _gbcfg !=nil {return _gbcfg ;};switch _debca :=_adagb .(type ){case _c .StartElement :switch _debca .Name {default:if _fegag ,_bfgad :=_f .CreateElement (_debca );_bfgad !=nil {return _bfgad ;}else {if _gafgd :=d .DecodeElement (_fegag ,&_debca );_gafgd !=nil {return _gafgd ;};_cedcf .Any =_fegag ;};};case _c .EndElement :break _dfffff ;case _c .CharData :};};return nil ;};type OfcST_FillType byte ;func NewOfcColumn ()*OfcColumn {_ebfbc :=&OfcColumn {};_ebfbc .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _ebfbc ;};type Textpath struct{CT_TextPath };func (_aadf *OfcCT_Relation )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e";};if _aadf .IdsrcAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064\u0073r\u0063"},Value :_e .Sprintf ("\u0025\u0076",*_aadf .IdsrcAttr )});};if _aadf .IddestAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064\u0064\u0065\u0073\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_aadf .IddestAttr )});};if _aadf .IdcntrAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064\u0063\u006e\u0074\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_aadf .IdcntrAttr )});};if _aadf .ExtAttr !=ST_ExtUnset {_fadcg ,_abcab :=_aadf .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _abcab !=nil {return _abcab ;};start .Attr =append (start .Attr ,_fadcg );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_cgdgbb OfcST_ConnectType )Validate ()error {return _cgdgbb .ValidateWithPath ("")};type OfcST_OLEDrawAspect byte ;func (_ddedbb ST_EditAs )String ()string {switch _ddedbb {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 "";};const (OfcST_OLETypeUnset OfcST_OLEType =0;OfcST_OLETypeEmbed OfcST_OLEType =1;OfcST_OLETypeLink OfcST_OLEType =2;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_gfbfd *OfcCT_Fill )ValidateWithPath (path string )error {if _gagg :=_gfbfd .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_gagg !=nil {return _gagg ;};if _beeae :=_gfbfd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_beeae !=nil {return _beeae ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcFill and its children
|
|
|
|
func (_ebfgc *OfcFill )Validate ()error {return _ebfgc .ValidateWithPath ("\u004ff\u0063\u0046\u0069\u006c\u006c");};func NewEG_ShapeElements ()*EG_ShapeElements {_bebbg :=&EG_ShapeElements {};return _bebbg };func NewOfcCT_ShapeDefaults ()*OfcCT_ShapeDefaults {_fcbge :=&OfcCT_ShapeDefaults {};return _fcbge };func (_adcff *ST_EditAs )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_abgbf ,_gbgdb :=d .Token ();if _gbgdb !=nil {return _gbgdb ;};if _bcbfb ,_gbadea :=_abgbf .(_c .EndElement );_gbadea &&_bcbfb .Name ==start .Name {*_adcff =1;return nil ;};if _fcdfd ,_gfeab :=_abgbf .(_c .CharData );!_gfeab {return _e .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",_abgbf );}else {switch string (_fcdfd ){case "":*_adcff =0;case "\u0063\u0061\u006e\u0076\u0061\u0073":*_adcff =1;case "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074":*_adcff =2;case "\u0072\u0061\u0064\u0069\u0061\u006c":*_adcff =3;case "\u0063\u0079\u0063l\u0065":*_adcff =4;case "\u0073t\u0061\u0063\u006b\u0065\u0064":*_adcff =5;case "\u0076\u0065\u006e\u006e":*_adcff =6;case "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065":*_adcff =7;};};_abgbf ,_gbgdb =d .Token ();if _gbgdb !=nil {return _gbgdb ;};if _gcdeg ,_fbeag :=_abgbf .(_c .EndElement );_fbeag &&_gcdeg .Name ==start .Name {return nil ;};return _e .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",_abgbf );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Proxy and its children
|
|
|
|
func (_accec *OfcCT_Proxy )Validate ()error {return _accec .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0050\u0072\u006f\u0078\u0079");};type OfcTop struct{OfcCT_StrokeChild };func (_ebgge *OfcST_OLEType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dedge ,_cabed :=d .Token ();if _cabed !=nil {return _cabed ;};if _fgffg ,_dgcdac :=_dedge .(_c .EndElement );_dgcdac &&_fgffg .Name ==start .Name {*_ebgge =1;return nil ;};if _cdacb ,_bffgb :=_dedge .(_c .CharData );!_bffgb {return _e .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",_dedge );}else {switch string (_cdacb ){case "":*_ebgge =0;case "\u0045\u006d\u0062e\u0064":*_ebgge =1;case "\u004c\u0069\u006e\u006b":*_ebgge =2;};};_dedge ,_cabed =d .Token ();if _cabed !=nil {return _cabed ;};if _ecac ,_gabdea :=_dedge .(_c .EndElement );_gabdea &&_ecac .Name ==start .Name {return nil ;};return _e .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",_dedge );};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 (_aegdf *Textbox )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_aegdf .CT_Textbox =*NewCT_Textbox ();for _ ,_ggaccg :=range start .Attr {if _ggaccg .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"&&_ggaccg .Name .Local =="s\u0069\u006e\u0067\u006c\u0065\u0063\u006c\u0069\u0063\u006b"{_aegdf .SingleclickAttr .UnmarshalXMLAttr (_ggaccg );continue ;};if _ggaccg .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"&&_ggaccg .Name .Local =="\u0069n\u0073\u0065\u0074\u006d\u006f\u0064e"{_aegdf .InsetmodeAttr .UnmarshalXMLAttr (_ggaccg );continue ;};if _ggaccg .Name .Local =="\u0069\u006e\u0073e\u0074"{_bfcfec ,_edeaa :=_ggaccg .Value ,error (nil );if _edeaa !=nil {return _edeaa ;};_aegdf .InsetAttr =&_bfcfec ;continue ;};if _ggaccg .Name .Local =="\u0069\u0064"{_gdgbe ,_gbcfa :=_ggaccg .Value ,error (nil );if _gbcfa !=nil {return _gbcfa ;};_aegdf .IdAttr =&_gdgbe ;continue ;};if _ggaccg .Name .Local =="\u0073\u0074\u0079l\u0065"{_cagbe ,_aeacg :=_ggaccg .Value ,error (nil );if _aeacg !=nil {return _aeacg ;};_aegdf .StyleAttr =&_cagbe ;continue ;};};_eaaga :for {_dfdeef ,_egebb :=d .Token ();if _egebb !=nil {return _egebb ;};switch _fbage :=_dfdeef .(type ){case _c .StartElement :switch _fbage .Name {case _c .Name {Space :"ht\u0074\u0070:\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u0077\u006f\u0072\u0064\u0070\u0072\u006f\u0063\u0065s\u0073i\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u00306\u002fm\u0061\u0069n",Local :"t\u0078\u0062\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074"},_c .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0070u\u0072\u006c\u002eoc\u006c\u0063\u002e\u006f\u0072\u0067/\u006f\u006f\u0078\u006d\u006c\u002f\u0077\u006f\u0072\u0064\u0070\u0072\u006f\u0063\u0065s\u0073\u0069\u006e\u0067\u006d\u006c\u002f\u006da\u0069\u006e",Local :"t\u0078\u0062\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074"}:_aegdf .TxbxContent =_ef .NewTxbxContent ();if _gagebb :=d .DecodeElement (_aegdf .TxbxContent ,&_fbage );_gagebb !=nil {return _gagebb ;};default:if _fege ,_gbceeg :=_f .CreateElement (_fbage );_gbceeg !=nil {return _gbceeg ;}else {if _adddc :=d .DecodeElement (_fege ,&_fbage );_adddc !=nil
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_Adj and its children, prefixing error messages with path
|
|
|
|
func (_dg *AG_Adj )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_Style and its children, prefixing error messages with path
|
|
|
|
func (_bcgc *AG_Style )ValidateWithPath (path string )error {return nil };func (_ebabb ST_StrokeArrowLength )ValidateWithPath (path string )error {switch _ebabb {case 0,1,2,3:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ebabb ));};return nil ;};func (_eaaea OfcST_OLEUpdateMode )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_eaaea .String (),start );};func NewAG_Fill ()*AG_Fill {_dabb :=&AG_Fill {};return _dabb };func (_fcgbf ST_Ext )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_afebab :=_c .Attr {};_afebab .Name =name ;switch _fcgbf {case ST_ExtUnset :_afebab .Value ="";case ST_ExtView :_afebab .Value ="\u0076\u0069\u0065\u0077";case ST_ExtEdit :_afebab .Value ="\u0065\u0064\u0069\u0074";case ST_ExtBackwardCompatible :_afebab .Value ="\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065";};return _afebab ,nil ;};func (_gcca *AG_Path )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_adbec :=range start .Attr {if _adbec .Name .Local =="\u0070\u0061\u0074\u0068"{_gbg ,_efgd :=_adbec .Value ,error (nil );if _efgd !=nil {return _efgd ;};_gcca .PathAttr =&_gbg ;continue ;};};for {_edb ,_caaf :=d .Token ();if _caaf !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_caaf );};if _bgcfc ,_dccd :=_edb .(_c .EndElement );_dccd &&_bgcfc .Name ==start .Name {break ;};};return nil ;};func NewCT_Arc ()*CT_Arc {_dbef :=&CT_Arc {};return _dbef };func (_feeca OfcST_ConnectType )ValidateWithPath (path string )error {switch _feeca {case 0,1,2,3,4:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_feeca ));};return nil ;};func NewCT_H ()*CT_H {_dffb :=&CT_H {};return _dffb };func (_gfec *CT_Rect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0072\u0065\u0063\u0074";};if _gfec .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_gfec .HrefAttr )});};if _gfec .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_gfec .TargetAttr )});};if _gfec .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_gfec .ClassAttr )});};if _gfec .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_gfec .TitleAttr )});};if _gfec .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_gfec .AltAttr )});};if _gfec .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_gfec .CoordsizeAttr )});};if _gfec .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_gfec .CoordoriginAttr )});};if _gfec .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_gfec .WrapcoordsAttr )});};if _gfec .PrintAttr !=_g .ST_TrueFalseUnset {_bccec ,_aebc :=_gfec .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _aebc !=nil {return _aebc ;};start .Attr =append (start .Attr ,_bccec );};if _gfec .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcSkew and its children
|
|
|
|
func (_cefcc *OfcSkew )Validate ()error {return _cefcc .ValidateWithPath ("\u004ff\u0063\u0053\u006b\u0065\u0077");};func (_gfaabe OfcST_ExtrusionPlane )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_dada :=_c .Attr {};_dada .Name =name ;switch _gfaabe {case OfcST_ExtrusionPlaneUnset :_dada .Value ="";case OfcST_ExtrusionPlaneXY :_dada .Value ="\u0058\u0059";case OfcST_ExtrusionPlaneZX :_dada .Value ="\u005a\u0058";case OfcST_ExtrusionPlaneYZ :_dada .Value ="\u0059\u005a";};return _dada ,nil ;};func NewOval ()*Oval {_bcgccb :=&Oval {};_bcgccb .CT_Oval =*NewCT_Oval ();return _bcgccb };func NewOfcEquationxml ()*OfcEquationxml {_dgfcg :=&OfcEquationxml {};_dgfcg .OfcCT_EquationXml =*NewOfcCT_EquationXml ();return _dgfcg ;};func NewShapetype ()*Shapetype {_dadfg :=&Shapetype {};_dadfg .CT_Shapetype =*NewCT_Shapetype ();return _dadfg ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcOLEObject and its children
|
|
|
|
func (_bfgcd *OfcOLEObject )Validate ()error {return _bfgcd .ValidateWithPath ("\u004f\u0066\u0063O\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func (_cafedd *ST_StrokeArrowWidth )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_egfgg ,_egaaa :=d .Token ();if _egaaa !=nil {return _egaaa ;};if _daadaf ,_fdeaa :=_egfgg .(_c .EndElement );_fdeaa &&_daadaf .Name ==start .Name {*_cafedd =1;return nil ;};if _egdcd ,_dgfab :=_egfgg .(_c .CharData );!_dgfab {return _e .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",_egfgg );}else {switch string (_egdcd ){case "":*_cafedd =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_cafedd =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_cafedd =2;case "\u0077\u0069\u0064\u0065":*_cafedd =3;};};_egfgg ,_egaaa =d .Token ();if _egaaa !=nil {return _egaaa ;};if _agfbe ,_cgbfe :=_egfgg .(_c .EndElement );_cgbfe &&_agfbe .Name ==start .Name {return nil ;};return _e .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",_egfgg );};func (_ageee *AG_OfficeCoreAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bgcf :=range start .Attr {if _bgcf .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"&&_bgcf .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_ageee .HralignAttr .UnmarshalXMLAttr (_bgcf );continue ;};if _bgcf .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"&&_bgcf .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_ageee .AllowincellAttr .UnmarshalXMLAttr (_bgcf );continue ;};if _bgcf .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"&&_bgcf .Name .Local =="\u006f\u006e\u0065\u0064"{_ageee .OnedAttr .UnmarshalXMLAttr (_bgcf );continue ;};if _bgcf .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"&&_bgcf .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_ageee .AllowoverlapAttr .UnmarshalXMLAttr (_bgcf );continue ;};if _bgcf .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"&&_bgcf .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_ageee .DoubleclicknotifyAttr .UnmarshalXMLAttr (_bgcf );continue ;};if _bgcf .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"&&_bgcf .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_ageee .UserdrawnAttr .UnmarshalXMLAttr (_bgcf );continue ;};if _bgcf .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"&&_bgcf .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_ageee .UserhiddenAttr .UnmarshalXMLAttr (_bgcf );continue ;};if _bgcf .Name .Space =="\u0075\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Rect and its children, prefixing error messages with path
|
|
|
|
func (_ffdeb *Rect )ValidateWithPath (path string )error {if _cffgea :=_ffdeb .CT_Rect .ValidateWithPath (path );_cffgea !=nil {return _cffgea ;};return nil ;};type ST_StrokeEndCap byte ;func (_fegbb OfcST_ConnectorType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_fegbb .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcSkew and its children, prefixing error messages with path
|
|
|
|
func (_gdggec *OfcSkew )ValidateWithPath (path string )error {if _acfac :=_gdggec .OfcCT_Skew .ValidateWithPath (path );_acfac !=nil {return _acfac ;};return nil ;};func (_abcg *Arc )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _abcg .CT_Arc .MarshalXML (e ,start );};func (_geged ST_StrokeArrowLength )String ()string {switch _geged {case 0:return "";case 1:return "\u0073\u0068\u006fr\u0074";case 2:return "\u006d\u0065\u0064\u0069\u0075\u006d";case 3:return "\u006c\u006f\u006e\u0067";};return "";};func (_bagaf OfcST_ConnectType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_bagaf .String (),start );};func (_fagd ST_ImageAspect )String ()string {switch _fagd {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-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcTop and its children, prefixing error messages with path
|
|
|
|
func (_bgfdb *OfcTop )ValidateWithPath (path string )error {if _acedg :=_bgfdb .OfcCT_StrokeChild .ValidateWithPath (path );_acedg !=nil {return _acedg ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_CoreAttributes and its children
|
|
|
|
func (_fdf *AG_CoreAttributes )Validate ()error {return _fdf .ValidateWithPath ("\u0041\u0047\u005f\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069b\u0075\u0074\u0065\u0073");};func (_bgcded *OfcST_ConnectType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fgece ,_gfbcg :=d .Token ();if _gfbcg !=nil {return _gfbcg ;};if _efbbf ,_cbgef :=_fgece .(_c .EndElement );_cbgef &&_efbbf .Name ==start .Name {*_bgcded =1;return nil ;};if _efgdfd ,_faffd :=_fgece .(_c .CharData );!_faffd {return _e .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",_fgece );}else {switch string (_efgdfd ){case "":*_bgcded =0;case "\u006e\u006f\u006e\u0065":*_bgcded =1;case "\u0072\u0065\u0063\u0074":*_bgcded =2;case "\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073":*_bgcded =3;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_bgcded =4;};};_fgece ,_gfbcg =d .Token ();if _gfbcg !=nil {return _gfbcg ;};if _eeefb ,_beeg :=_fgece .(_c .EndElement );_beeg &&_eeefb .Name ==start .Name {return nil ;};return _e .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",_fgece );};func (_bgcceg *OfcSignatureline )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bgcceg .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();for _ ,_gdcee :=range start .Attr {if _gdcee .Name .Local =="\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"{_fdcfcg ,_cfddg :=_gdcee .Value ,error (nil );if _cfddg !=nil {return _cfddg ;};_bgcceg .SuggestedsignerAttr =&_fdcfcg ;continue ;};if _gdcee .Name .Local =="\u0069\u0064"{_dbaagg ,_efef :=_gdcee .Value ,error (nil );if _efef !=nil {return _efef ;};_bgcceg .IdAttr =&_dbaagg ;continue ;};if _gdcee .Name .Local =="\u0070\u0072\u006f\u0076\u0069\u0064"{_cbgbb ,_cfaggf :=_gdcee .Value ,error (nil );if _cfaggf !=nil {return _cfaggf ;};_bgcceg .ProvidAttr =&_cbgbb ;continue ;};if _gdcee .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"{_bgcceg .SigninginstructionssetAttr .UnmarshalXMLAttr (_gdcee );continue ;};if _gdcee .Name .Local =="\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"{_bgcceg .AllowcommentsAttr .UnmarshalXMLAttr (_gdcee );continue ;};if _gdcee .Name .Local =="\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"{_bgcceg .ShowsigndateAttr .UnmarshalXMLAttr (_gdcee );continue ;};if _gdcee .Name .Local =="\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"{_bgcceg .IssignaturelineAttr .UnmarshalXMLAttr (_gdcee );continue ;};if _gdcee .Name .Local =="\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"{_debeg ,_dcbd :=_gdcee .Value ,error (nil );if _dcbd !=nil {return _dcbd ;};_bgcceg .Suggestedsigner2Attr =&_debeg ;continue ;};if _gdcee .Name .Local =="s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"{_fedee ,_fbdec :=_gdcee .Value ,error (nil );if _fbdec !=nil {return _fbdec ;};_bgcceg .SuggestedsigneremailAttr =&_fedee ;continue ;};if _gdcee .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"{_dfced ,_aegfa :=_gdcee .Value ,error (nil );if _aegfa !=nil {return _aegfa ;};_bgcceg .SigninginstructionsAttr =&_dfced ;continue ;};if _gdcee .Name .Local =="\u0061d\u0064\u006c\u0078\u006d\u006c"{_bfbbb ,_dbcab :=_gdcee .Value ,error (nil );if _dbcab !=nil {return _dbcab ;};_bgcceg .AddlxmlAttr =&_bfbbb ;continue ;};if _gdcee .Name .Local =="\u0073\u0069\u0067\u0070\u0072\u006f\u0076\u0075\u0072\u006c"{_dgadf ,_dfbcde :=_gdcee .Value ,error (nil );if _dfbcde !=nil {return _dfbcde ;};_bgcceg .SigprovurlAttr =&_dgadf ;continue ;};if _gdcee .Name .Local =="\u0065\u0078\u0074"{_bgcceg .ExtAttr .UnmarshalXMLAttr (_gdcee );continue ;};};for {_fgdca ,_gdcf :=d .Token ()
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Complex and its children, prefixing error messages with path
|
|
|
|
func (_gbffg *OfcCT_Complex )ValidateWithPath (path string )error {if _acecbd :=_gbffg .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_acecbd !=nil {return _acecbd ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Imagedata and its children
|
|
|
|
func (_cbfbc *Imagedata )Validate ()error {return _cbfbc .ValidateWithPath ("\u0049m\u0061\u0067\u0065\u0064\u0061\u0074a");};func NewOfcCT_SignatureLine ()*OfcCT_SignatureLine {_ebfec :=&OfcCT_SignatureLine {};return _ebfec };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_RoundRect and its children, prefixing error messages with path
|
|
|
|
func (_cgfaf *CT_RoundRect )ValidateWithPath (path string )error {for _dgcfd ,_cgbf :=range _cgfaf .EG_ShapeElements {if _cccbc :=_cgbf .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_dgcfd ));_cccbc !=nil {return _cccbc ;};};if _febde :=_cgfaf .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_febde !=nil {return _febde ;};if _gdae :=_cgfaf .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gdae !=nil {return _gdae ;};if _cgbg :=_cgfaf .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cgbg !=nil {return _cgbg ;};if _cdac :=_cgfaf .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cdac !=nil {return _cdac ;};if _adec :=_cgfaf .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_adec !=nil {return _adec ;};if _dedc :=_cgfaf .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dedc !=nil {return _dedc ;};if _cefcg :=_cgfaf .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cefcg !=nil {return _cefcg ;};if _bfeae :=_cgfaf .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_bfeae !=nil {return _bfeae ;};if _dcbc :=_cgfaf .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_dcbc !=nil {return _dcbc ;};if _dgcda :=_cgfaf .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dgcda !=nil {return _dgcda ;};if _adfe :=_cgfaf .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_adfe !=nil {return _adfe ;};if _adafc :=_cgfaf .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_adafc !=nil {return _adafc ;};if _eafg :=_cgfaf .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_eafg !=nil {return _eafg ;};if _beacb :=_cgfaf .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_beacb !=nil {return _beacb ;};if _bbgf :=_cgfaf .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bbgf !=nil {return _bbgf ;};if _gbgga :=_cgfaf .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gbgga !=nil {return _gbgga ;};if _ggcaa :=_cgfaf .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ggcaa !=nil {return _ggcaa ;};if _gbebd :=_cgfaf .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_gbebd !=nil {return _gbebd ;};if _dgeec :=_cgfaf .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_dgeec !=nil {return _dgeec ;};if _eedd :=_cgfaf .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_eedd !=nil {return _eedd ;};if _ggccd :=_cgfaf .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ggccd !=nil {return _ggccd ;};if _ccaff :=_cgfaf .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ccaff !=nil {return _ccaff ;};if _gcgfc :=_cgfaf .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcLock and its children, prefixing error messages with path
|
|
|
|
func (_feadd *OfcLock )ValidateWithPath (path string )error {if _dggec :=_feadd .OfcCT_Lock .ValidateWithPath (path );_dggec !=nil {return _dggec ;};return nil ;};func (_eeddd *Fill )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _eeddd .CT_Fill .MarshalXML (e ,start );};func (_fdgaf *OfcCT_ColorMenu )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="o\u003a\u0063\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075";};if _fdgaf .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_fdgaf .StrokecolorAttr )});};if _fdgaf .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_fdgaf .FillcolorAttr )});};if _fdgaf .ShadowcolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"s\u0068\u0061\u0064\u006f\u0077\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_fdgaf .ShadowcolorAttr )});};if _fdgaf .ExtrusioncolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006ec\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_fdgaf .ExtrusioncolorAttr )});};if _fdgaf .ExtAttr !=ST_ExtUnset {_gfcbd ,_gadefb :=_fdgaf .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _gadefb !=nil {return _gadefb ;};start .Attr =append (start .Attr ,_gfcbd );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_gegad *OfcCT_OLEObject )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_adgdb :=range start .Attr {if _adgdb .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"&&_adgdb .Name .Local =="\u0069\u0064"||_adgdb .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"&&_adgdb .Name .Local =="\u0069\u0064"{_bbedga ,_befg :=_adgdb .Value ,error (nil );if _befg !=nil {return _befg ;};_gegad .IdAttr =&_bbedga ;continue ;};if _adgdb .Name .Local =="\u0054\u0079\u0070\u0065"{_gegad .TypeAttr .UnmarshalXMLAttr (_adgdb );continue ;};if _adgdb .Name .Local =="\u0050\u0072\u006f\u0067\u0049\u0044"{_edbga ,_dagga :=_adgdb .Value ,error (nil );if _dagga !=nil {return _dagga ;};_gegad .ProgIDAttr =&_edbga ;continue ;};if _adgdb .Name .Local =="\u0053h\u0061\u0070\u0065\u0049\u0044"{_ffbagd ,_cbeee :=_adgdb .Value ,error (nil );if _cbeee !=nil {return _cbeee ;};_gegad .ShapeIDAttr =&_ffbagd ;continue ;};if _adgdb .Name .Local =="\u0044\u0072\u0061\u0077\u0041\u0073\u0070\u0065\u0063\u0074"{_gegad .DrawAspectAttr .UnmarshalXMLAttr (_adgdb );continue ;};if _adgdb .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0049\u0044"{_cgaga ,_ccaege :=_adgdb .Value ,error (nil );if _ccaege !=nil {return _ccaege ;};_gegad .ObjectIDAttr =&_cgaga ;continue ;};if _adgdb .Name .Local =="\u0055\u0070\u0064\u0061\u0074\u0065\u004d\u006f\u0064\u0065"{_gegad .UpdateModeAttr .UnmarshalXMLAttr (_adgdb );continue ;};};_aedfa :for {_edddfd ,_bdgba :=d .Token ();if _bdgba !=nil {return _bdgba ;};switch _bgffg :=_edddfd .(type ){case _c .StartElement :switch _bgffg .Name {case _c .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\
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RelationTable and its children, prefixing error messages with path
|
|
|
|
func (_befag *OfcCT_RelationTable )ValidateWithPath (path string )error {for _fbcgc ,_cfggb :=range _befag .Rel {if _ebfdd :=_cfggb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0052\u0065\u006c\u005b\u0025\u0064\u005d",path ,_fbcgc ));_ebfdd !=nil {return _ebfdd ;};};if _gacfb :=_befag .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gacfb !=nil {return _gacfb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_F and its children, prefixing error messages with path
|
|
|
|
func (_gee *CT_F )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_SignatureLine and its children
|
|
|
|
func (_cafcdb *OfcCT_SignatureLine )Validate ()error {return _cafcdb .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u004c\u0069\u006e\u0065");};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcOLEObject and its children, prefixing error messages with path
|
|
|
|
func (_gdfca *OfcOLEObject )ValidateWithPath (path string )error {if _dega :=_gdfca .OfcCT_OLEObject .ValidateWithPath (path );_dega !=nil {return _dega ;};return nil ;};func (_edgce *OfcInk )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 _edgce .OfcCT_Ink .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcRight and its children, prefixing error messages with path
|
|
|
|
func (_ecfeb *OfcRight )ValidateWithPath (path string )error {if _bgbde :=_ecfeb .OfcCT_StrokeChild .ValidateWithPath (path );_bgbde !=nil {return _bgbde ;};return nil ;};func (_fddgg *OfcCT_Skew )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0073\u006b\u0065\u0077";};if _fddgg .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_fddgg .IdAttr )});};if _fddgg .OnAttr !=_g .ST_TrueFalseUnset {_dfggf ,_aabdf :=_fddgg .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _aabdf !=nil {return _aabdf ;};start .Attr =append (start .Attr ,_dfggf );};if _fddgg .OffsetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u0066\u0066\u0073\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_fddgg .OffsetAttr )});};if _fddgg .OriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_fddgg .OriginAttr )});};if _fddgg .MatrixAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006d\u0061\u0074\u0072\u0069\u0078"},Value :_e .Sprintf ("\u0025\u0076",*_fddgg .MatrixAttr )});};if _fddgg .ExtAttr !=ST_ExtUnset {_agaec ,_dgfd :=_fddgg .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dgfd !=nil {return _dgfd ;};start .Attr =append (start .Attr ,_agaec );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_afc *AG_AllCoreAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _afc .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_afc .HrefAttr )});};if _afc .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_afc .TargetAttr )});};if _afc .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_afc .ClassAttr )});};if _afc .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_afc .TitleAttr )});};if _afc .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_afc .AltAttr )});};if _afc .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_afc .CoordsizeAttr )});};if _afc .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_afc .CoordoriginAttr )});};if _afc .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_afc .WrapcoordsAttr )});};if _afc .PrintAttr !=_g .ST_TrueFalseUnset {_ad ,_cea :=_afc .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _cea !=nil {return _cea ;};start .Attr =append (start .Attr ,_ad );};if _afc .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_afc .IdAttr )});};if _afc .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_afc .StyleAttr )});};if _afc .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_afc .SpidAttr )});};if _afc .OnedAttr !=_g .ST_TrueFalseUnset {_dag ,_ab :=_afc .OnedAttr .MarshalXMLAttr (_c .Name {L
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Arc and its children
|
|
|
|
func (_febd *Arc )Validate ()error {return _febd .ValidateWithPath ("\u0041\u0072\u0063")};func (_ebbdc OfcST_OLEUpdateMode )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_bbdcbd :=_c .Attr {};_bbdcbd .Name =name ;switch _ebbdc {case OfcST_OLEUpdateModeUnset :_bbdcbd .Value ="";case OfcST_OLEUpdateModeAlways :_bbdcbd .Value ="\u0041\u006c\u0077\u0061\u0079\u0073";case OfcST_OLEUpdateModeOnCall :_bbdcbd .Value ="\u004f\u006e\u0043\u0061\u006c\u006c";};return _bbdcbd ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Curve and its children, prefixing error messages with path
|
|
|
|
func (_bfae *CT_Curve )ValidateWithPath (path string )error {for _dffa ,_cfcd :=range _bfae .EG_ShapeElements {if _gcfde :=_cfcd .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_dffa ));_gcfde !=nil {return _gcfde ;};};if _ccfg :=_bfae .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ccfg !=nil {return _ccfg ;};if _gdca :=_bfae .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gdca !=nil {return _gdca ;};if _faea :=_bfae .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_faea !=nil {return _faea ;};if _ffcc :=_bfae .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ffcc !=nil {return _ffcc ;};if _gfddg :=_bfae .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_gfddg !=nil {return _gfddg ;};if _gbad :=_bfae .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_gbad !=nil {return _gbad ;};if _acgef :=_bfae .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_acgef !=nil {return _acgef ;};if _cgee :=_bfae .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_cgee !=nil {return _cgee ;};if _ggfe :=_bfae .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_ggfe !=nil {return _ggfe ;};if _ddad :=_bfae .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ddad !=nil {return _ddad ;};if _dbggc :=_bfae .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_dbggc !=nil {return _dbggc ;};if _dgba :=_bfae .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_dgba !=nil {return _dgba ;};if _cggd :=_bfae .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_cggd !=nil {return _cggd ;};if _febg :=_bfae .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_febg !=nil {return _febg ;};if _gbbbd :=_bfae .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_gbbbd !=nil {return _gbbbd ;};if _ccba :=_bfae .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_ccba !=nil {return _ccba ;};if _bgeag :=_bfae .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bgeag !=nil {return _bgeag ;};if _dbge :=_bfae .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_dbge !=nil {return _dbge ;};if _bcgag :=_bfae .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bcgag !=nil {return _bcgag ;};if _aaae :=_bfae .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_aaae !=nil {return _aaae ;};if _gage :=_bfae .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_gage !=nil {return _gage ;};if _gafdc :=_bfae .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_gafdc !=nil {return _gafdc ;};if _ccfaf :=_bfae .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_ccfaf !=nil {return _ccfaf ;};if _
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Arc and its children, prefixing error messages with path
|
|
|
|
func (_fgaag *CT_Arc )ValidateWithPath (path string )error {for _bdea ,_bcba :=range _fgaag .EG_ShapeElements {if _eceb :=_bcba .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bdea ));_eceb !=nil {return _eceb ;};};if _ccgc :=_fgaag .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ccgc !=nil {return _ccgc ;};if _egb :=_fgaag .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_egb !=nil {return _egb ;};if _dadg :=_fgaag .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_dadg !=nil {return _dadg ;};if _aeg :=_fgaag .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_aeg !=nil {return _aeg ;};if _agaeg :=_fgaag .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_agaeg !=nil {return _agaeg ;};if _dccdf :=_fgaag .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dccdf !=nil {return _dccdf ;};if _abdc :=_fgaag .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_abdc !=nil {return _abdc ;};if _gcfdb :=_fgaag .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gcfdb !=nil {return _gcfdb ;};if _fceb :=_fgaag .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fceb !=nil {return _fceb ;};if _gdge :=_fgaag .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_gdge !=nil {return _gdge ;};if _adge :=_fgaag .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_adge !=nil {return _adge ;};if _afeb :=_fgaag .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_afeb !=nil {return _afeb ;};if _ggga :=_fgaag .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_ggga !=nil {return _ggga ;};if _aagg :=_fgaag .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_aagg !=nil {return _aagg ;};if _cgg :=_fgaag .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_cgg !=nil {return _cgg ;};if _gbbc :=_fgaag .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gbbc !=nil {return _gbbc ;};if _ecf :=_fgaag .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ecf !=nil {return _ecf ;};if _bdcg :=_fgaag .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_bdcg !=nil {return _bdcg ;};if _bgfge :=_fgaag .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bgfge !=nil {return _bgfge ;};if _afbbb :=_fgaag .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_afbbb !=nil {return _afbbb ;};if _ddeef :=_fgaag .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ddeef !=nil {return _ddeef ;};if _aeeg :=_fgaag .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_aeeg !=nil {return _aeeg ;};if _eafe :=_fgaag .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_eafe !=nil {return _eafe ;};if
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_Fill and its children, prefixing error messages with path
|
|
|
|
func (_acaf *AG_Fill )ValidateWithPath (path string )error {if _gdf :=_acaf .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gdf !=nil {return _gdf ;};return nil ;};func (_fedc *CT_Stroke )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ebcec :=range start .Attr {if _ebcec .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"&&_ebcec .Name .Local =="\u0072\u0065\u006ci\u0064"{_dcage ,_dcdfc :=_ebcec .Value ,error (nil );if _dcdfc !=nil {return _dcdfc ;};_fedc .RelidAttr =&_dcage ;continue ;};if _ebcec .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"&&_ebcec .Name .Local =="\u0069\u0064"{_aeggf ,_gcgef :=_ebcec .Value ,error (nil );if _gcgef !=nil {return _gcgef ;};_fedc .RIdAttr =&_aeggf ;continue ;};if _ebcec .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"&&_ebcec .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_fedc .ForcedashAttr .UnmarshalXMLAttr (_ebcec );continue ;};if _ebcec .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"&&_ebcec .Name .Local =="\u0074\u0069\u0074l\u0065"{_dfefb ,_deaa :=_ebcec .Value ,error (nil );if _deaa !=nil {return _deaa ;};_fedc .TitleAttr =&_dfefb ;continue ;};if _ebcec .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"&&_ebcec .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_decbc ,_dege :=_ebcec .Value ,error (nil );if _dege !=nil {return _dege ;};_fedc .AlthrefAttr =&_decbc ;continue ;};if _ebcec .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"&&_ebcec .Name .Local =="\u0068\u0072\u0065\u0066"{_edeg ,_ccgbd :=_ebcec .Value ,error (nil );if _ccgbd !=nil {return _ccgbd ;};_fedc .HrefAttr =&_edeg ;continue ;};if _ebcec .Name .Local =="\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"{_fefde ,_gbceb :=_ebcec .Value ,error (nil );if _gbceb !=nil {return _gbceb ;};_fedc .ImagesizeAttr =&_fefde ;continue ;};if _ebcec .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_fedc .StartarrowlengthAttr .UnmarshalXMLAttr (_ebcec );continue ;};if _ebcec .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_fedc .JoinstyleAttr .UnmarshalXMLAttr (_ebcec );continue ;};if _ebcec .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_fedc .EndarrowAttr .UnmarshalXMLAttr (_ebcec );continue ;};if _ebcec .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_eeaad ,_afbgfb :=_ebcec .Value ,error (nil );if _afbgfb !=nil {return _afbgfb ;};_fedc .DashstyleAttr =&_eeaad ;continue ;};if _ebcec .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_fedc .EndarrowwidthAttr .UnmarshalXMLAttr (_ebcec );continue ;};if _ebcec .Name .Local =="\u0073\u0072\u0063"{_adca ,_ffegc :=_ebcec .Value ,error (nil );if _ffegc !=nil {return _ffegc ;};_fedc .SrcAttr =&_adca ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcComplex and its children, prefixing error messages with path
|
|
|
|
func (_edag *OfcComplex )ValidateWithPath (path string )error {if _cbcag :=_edag .OfcCT_Complex .ValidateWithPath (path );_cbcag !=nil {return _cbcag ;};return nil ;};func (_bdb *AG_CoreAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_abd :=range start .Attr {if _abd .Name .Local =="\u0068\u0072\u0065\u0066"{_bbad ,_dea :=_abd .Value ,error (nil );if _dea !=nil {return _dea ;};_bdb .HrefAttr =&_bbad ;continue ;};if _abd .Name .Local =="\u0074\u0061\u0072\u0067\u0065\u0074"{_aadab ,_cba :=_abd .Value ,error (nil );if _cba !=nil {return _cba ;};_bdb .TargetAttr =&_aadab ;continue ;};if _abd .Name .Local =="\u0063\u006c\u0061s\u0073"{_baba ,_cbe :=_abd .Value ,error (nil );if _cbe !=nil {return _cbe ;};_bdb .ClassAttr =&_baba ;continue ;};if _abd .Name .Local =="\u0074\u0069\u0074l\u0065"{_ace ,_dae :=_abd .Value ,error (nil );if _dae !=nil {return _dae ;};_bdb .TitleAttr =&_ace ;continue ;};if _abd .Name .Local =="\u0061\u006c\u0074"{_cdb ,_dcc :=_abd .Value ,error (nil );if _dcc !=nil {return _dcc ;};_bdb .AltAttr =&_cdb ;continue ;};if _abd .Name .Local =="\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"{_bfcg ,_bggg :=_abd .Value ,error (nil );if _bggg !=nil {return _bggg ;};_bdb .CoordsizeAttr =&_bfcg ;continue ;};if _abd .Name .Local =="c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"{_dga ,_efe :=_abd .Value ,error (nil );if _efe !=nil {return _efe ;};_bdb .CoordoriginAttr =&_dga ;continue ;};if _abd .Name .Local =="\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"{_fga ,_ggae :=_abd .Value ,error (nil );if _ggae !=nil {return _ggae ;};_bdb .WrapcoordsAttr =&_fga ;continue ;};if _abd .Name .Local =="\u0070\u0072\u0069n\u0074"{_bdb .PrintAttr .UnmarshalXMLAttr (_abd );continue ;};if _abd .Name .Local =="\u0069\u0064"{_agee ,_ddd :=_abd .Value ,error (nil );if _ddd !=nil {return _ddd ;};_bdb .IdAttr =&_agee ;continue ;};if _abd .Name .Local =="\u0073\u0074\u0079l\u0065"{_fef ,_bff :=_abd .Value ,error (nil );if _bff !=nil {return _bff ;};_bdb .StyleAttr =&_fef ;continue ;};};for {_gca ,_caa :=d .Token ();if _caa !=nil {return _e .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",_caa );};if _gffba ,_dbfc :=_gca .(_c .EndElement );_dbfc &&_gffba .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Handles and its children
|
|
|
|
func (_gbggg *Handles )Validate ()error {return _gbggg .ValidateWithPath ("\u0048a\u006e\u0064\u006c\u0065\u0073");};func (_aedea *OfcTop )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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\u0074o\u0070";return _aedea .OfcCT_StrokeChild .MarshalXML (e ,start );};func NewOfcSkew ()*OfcSkew {_dgcba :=&OfcSkew {};_dgcba .OfcCT_Skew =*NewOfcCT_Skew ();return _dgcba };func NewCT_Shadow ()*CT_Shadow {_fdbf :=&CT_Shadow {};return _fdbf };func (_gbbeg *OfcST_CalloutPlacement )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_gbbeg =0;case "\u0074\u006f\u0070":*_gbbeg =1;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_gbbeg =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_gbbeg =3;case "\u0075\u0073\u0065\u0072":*_gbbeg =4;};return nil ;};type OfcCT_Entry struct{NewAttr *int32 ;OldAttr *int32 ;};func (_ceeffa *OfcST_BWMode )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_egce ,_feccd :=d .Token ();if _feccd !=nil {return _feccd ;};if _gecfea ,_abgg :=_egce .(_c .EndElement );_abgg &&_gecfea .Name ==start .Name {*_ceeffa =1;return nil ;};if _fdee ,_dcdaa :=_egce .(_c .CharData );!_dcdaa {return _e .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",_egce );}else {switch string (_fdee ){case "":*_ceeffa =0;case "\u0063\u006f\u006co\u0072":*_ceeffa =1;case "\u0061\u0075\u0074\u006f":*_ceeffa =2;case "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce":*_ceeffa =3;case "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065":*_ceeffa =4;case "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079":*_ceeffa =5;case "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065":*_ceeffa =6;case "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074":*_ceef
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_Ext and its children, prefixing error messages with path
|
|
|
|
func (_dbda *AG_Ext )ValidateWithPath (path string )error {if _dbda .ExtAttr ==ST_ExtUnset {return _e .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 _gaa :=_dbda .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gaa !=nil {return _gaa ;};return nil ;};const (OfcST_OLEUpdateModeUnset OfcST_OLEUpdateMode =0;OfcST_OLEUpdateModeAlways OfcST_OLEUpdateMode =1;OfcST_OLEUpdateModeOnCall OfcST_OLEUpdateMode =2;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_RelationTable and its children
|
|
|
|
func (_efcc *OfcCT_RelationTable )Validate ()error {return _efcc .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0054\u0061\u0062\u006c\u0065");};func (_bcfcac *ST_StrokeEndCap )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bddef ,_gdbcc :=d .Token ();if _gdbcc !=nil {return _gdbcc ;};if _ggace ,_fdeff :=_bddef .(_c .EndElement );_fdeff &&_ggace .Name ==start .Name {*_bcfcac =1;return nil ;};if _abddf ,_cgfad :=_bddef .(_c .CharData );!_cgfad {return _e .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",_bddef );}else {switch string (_abddf ){case "":*_bcfcac =0;case "\u0066\u006c\u0061\u0074":*_bcfcac =1;case "\u0073\u0071\u0075\u0061\u0072\u0065":*_bcfcac =2;case "\u0072\u006f\u0075n\u0064":*_bcfcac =3;};};_bddef ,_gdbcc =d .Token ();if _gdbcc !=nil {return _gdbcc ;};if _bbbad ,_decdg :=_bddef .(_c .EndElement );_decdg &&_bbbad .Name ==start .Name {return nil ;};return _e .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",_bddef );};func (_cdgea *OfcShapedefaults )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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:\u0073h\u0061\u0070\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073";return _cdgea .OfcCT_ShapeDefaults .MarshalXML (e ,start );};const (OfcST_HowUnset OfcST_How =0;OfcST_HowTop OfcST_How =1;OfcST_HowMiddle OfcST_How =2;OfcST_HowBottom OfcST_How =3;OfcST_HowLeft OfcST_How =4;OfcST_HowCenter OfcST_How =5;OfcST_HowRight OfcST_How =6;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Roundrect and its children, prefixing error messages with path
|
|
|
|
func (_cfcdgf *Roundrect )ValidateWithPath (path string )error {if _fcebcc :=_cfcdgf .CT_RoundRect .ValidateWithPath (path );_fcebcc !=nil {return _fcebcc ;};return nil ;};func (_abcbc *Oval )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_abcbc .CT_Oval =*NewCT_Oval ();for _ ,_efebc :=range start .Attr {if _efebc .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"&&_efebc .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_dfgae ,_eaffc :=_efebc .Value ,error (nil );if _eaffc !=nil {return _eaffc ;};_abcbc .BordertopcolorAttr =&_dfgae ;continue ;};if _efebc .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"&&_efebc .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_abcbc .BulletAttr .UnmarshalXMLAttr (_efebc );continue ;};if _efebc .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"&&_efebc .Name .Local =="\u0068\u0072"{_abcbc .HrAttr .UnmarshalXMLAttr (_efebc );continue ;};if _efebc .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"&&_efebc .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_abcbc .CliptowrapAttr .UnmarshalXMLAttr (_efebc );continue ;};if _efebc .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"&&_efebc .Name .Local =="\u0068\u0072\u0073t\u0064"{_abcbc .HrstdAttr .UnmarshalXMLAttr (_efebc );continue ;};if _efebc .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"&&_efebc .Name .Local =="\u006f\u006c\u0065"{_abcbc .OleAttr .UnmarshalXMLAttr (_efebc );continue ;};if _efebc .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"&&_efebc .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_abcbc .HrnoshadeAttr .UnmarshalXMLAttr (_efebc );continue ;};if _efebc .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"&&_efebc .Name .Local =="\u006f\u006e\u0065\u0064"{_abcbc .OnedAttr .UnmarshalXMLAttr (_efebc );continue ;};if _efebc .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"&&_efebc .Name .Local =="\u0068\u0072\u0070c\u0074"{_ecafd ,_ccdga :=_cb .ParseFloat (_efebc .Value ,64);if _ccdga !=nil {return _ccdga ;};_gebfe :=float32 (_ecafd );_abcbc .HrpctAttr =&_gebfe ;continue ;};if _efebc .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"&&_efebc .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_OfficeCoreAttributes and its children
|
|
|
|
func (_fgefd *AG_OfficeCoreAttributes )Validate ()error {return _fgefd .ValidateWithPath ("\u0041\u0047\u005fOf\u0066\u0069\u0063\u0065\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};func (_adfea ST_ImageAspect )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_dgcfff :=_c .Attr {};_dgcfff .Name =name ;switch _adfea {case ST_ImageAspectUnset :_dgcfff .Value ="";case ST_ImageAspectIgnore :_dgcfff .Value ="\u0069\u0067\u006e\u006f\u0072\u0065";case ST_ImageAspectAtMost :_dgcfff .Value ="\u0061\u0074\u004d\u006f\u0073\u0074";case ST_ImageAspectAtLeast :_dgcfff .Value ="\u0061t\u004c\u0065\u0061\u0073\u0074";};return _dgcfff ,nil ;};func (_aabbc OfcST_ExtrusionPlane )ValidateWithPath (path string )error {switch _aabbc {case 0,1,2,3:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_aabbc ));};return nil ;};type AG_OfficeCoreAttributes struct{SpidAttr *string ;OnedAttr _g .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _g .ST_TrueFalse ;ButtonAttr _g .ST_TrueFalse ;UserhiddenAttr _g .ST_TrueFalse ;BulletAttr _g .ST_TrueFalse ;HrAttr _g .ST_TrueFalse ;HrstdAttr _g .ST_TrueFalse ;HrnoshadeAttr _g .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _g .ST_TrueFalse ;AllowoverlapAttr _g .ST_TrueFalse ;UserdrawnAttr _g .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;};func (_eegb *OfcST_InsetMode )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_eegb =0;case "\u0061\u0075\u0074\u006f":*_eegb =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_eegb =2;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_Path and its children, prefixing error messages with path
|
|
|
|
func (_gdcb *AG_Path )ValidateWithPath (path string )error {return nil };func (_bgbgf *OfcST_How )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cdegd ,_ccbe :=d .Token ();if _ccbe !=nil {return _ccbe ;};if _ceeff ,_dbgeg :=_cdegd .(_c .EndElement );_dbgeg &&_ceeff .Name ==start .Name {*_bgbgf =1;return nil ;};if _gcbce ,_dgbdf :=_cdegd .(_c .CharData );!_dgbdf {return _e .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",_cdegd );}else {switch string (_gcbce ){case "":*_bgbgf =0;case "\u0074\u006f\u0070":*_bgbgf =1;case "\u006d\u0069\u0064\u0064\u006c\u0065":*_bgbgf =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_bgbgf =3;case "\u006c\u0065\u0066\u0074":*_bgbgf =4;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_bgbgf =5;case "\u0072\u0069\u0067h\u0074":*_bgbgf =6;};};_cdegd ,_ccbe =d .Token ();if _ccbe !=nil {return _ccbe ;};if _fbgfbg ,_fbbaa :=_cdegd .(_c .EndElement );_fbbaa &&_fbgfbg .Name ==start .Name {return nil ;};return _e .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",_cdegd );};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcEquationxml and its children
|
|
|
|
func (_gagbf *OfcEquationxml )Validate ()error {return _gagbf .ValidateWithPath ("\u004f\u0066\u0063\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0078\u006d\u006c");};func (_abbga ST_StrokeArrowType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_abbga .String (),start );};func NewOfcDiagram ()*OfcDiagram {_cfffg :=&OfcDiagram {};_cfffg .OfcCT_Diagram =*NewOfcCT_Diagram ();return _cfffg ;};type OfcInk struct{OfcCT_Ink };type Curve struct{CT_Curve };func NewCT_Group ()*CT_Group {_deaee :=&CT_Group {};return _deaee };func (_dcgcd ST_ShadowType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gfcbb :=_c .Attr {};_gfcbb .Name =name ;switch _dcgcd {case ST_ShadowTypeUnset :_gfcbb .Value ="";case ST_ShadowTypeSingle :_gfcbb .Value ="\u0073\u0069\u006e\u0067\u006c\u0065";case ST_ShadowTypeDouble :_gfcbb .Value ="\u0064\u006f\u0075\u0062\u006c\u0065";case ST_ShadowTypeEmboss :_gfcbb .Value ="\u0065\u006d\u0062\u006f\u0073\u0073";case ST_ShadowTypePerspective :_gfcbb .Value ="p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065";};return _gfcbb ,nil ;};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_EquationXml and its children, prefixing error messages with path
|
|
|
|
func (_deacb *OfcCT_EquationXml )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Shapetype and its children
|
|
|
|
func (_cccae *Shapetype )Validate ()error {return _cccae .ValidateWithPath ("\u0053h\u0061\u0070\u0065\u0074\u0079\u0070e");};func (_fgeeec OfcST_ScreenSize )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_fgeeec .String (),start );};func (_cbgdg *CT_Line )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u006c\u0069\u006e\u0065";};if _cbgdg .FromAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .FromAttr )});};if _cbgdg .ToAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u006f"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .ToAttr )});};if _cbgdg .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .HrefAttr )});};if _cbgdg .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .TargetAttr )});};if _cbgdg .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .ClassAttr )});};if _cbgdg .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .TitleAttr )});};if _cbgdg .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .AltAttr )});};if _cbgdg .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .CoordsizeAttr )});};if _cbgdg .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .CoordoriginAttr )});};if _cbgdg .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .WrapcoordsAttr )});};if _cbgdg .PrintAttr !=_g .ST_TrueFalseUnset {_bgef ,_gada :=_cbgdg .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _gada !=nil {return _gada ;};start .Attr =append (start .Attr ,_bgef );};if _cbgdg .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .IdAttr )});};if _cbgdg .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .StyleAttr )});};if _cbgdg .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .SpidAttr )});};if _cbgdg .OnedAttr !=_g .ST_TrueFalseUnset {_ggeda ,_cafgd :=_cbgdg .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _cafgd !=nil {return _cafgd ;};start .Attr =append (start .Attr ,_ggeda );};if _cbgdg .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_cbgdg .RegroupidAttr )});};if _cbgdg .DoubleclicknotifyAttr !=_g .ST_TrueFalseUnset {_acea ,_bgcb :=_cbgdg .DoubleclicknotifyAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _bgcb !=nil {return _bgcb ;};start .Attr =append (start .Attr ,_acea );};if _cbgdg .ButtonAttr !=_g .ST_TrueFalseUnset {_bfbb ,_cgaca :=_cbgdg .ButtonAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_OfficeShapeAttributes and its children
|
|
|
|
func (_fce *AG_OfficeShapeAttributes )Validate ()error {return _fce .ValidateWithPath ("\u0041G\u005f\u004f\u0066\u0066\u0069\u0063\u0065\u0053\u0068\u0061\u0070e\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};func (_ddcbf OfcST_ExtrusionPlane )String ()string {switch _ddcbf {case 0:return "";case 1:return "\u0058\u0059";case 2:return "\u005a\u0058";case 3:return "\u0059\u005a";};return "";};type OfcCT_Fill struct{TypeAttr OfcST_FillType ;ExtAttr ST_Ext ;};func (_gddacd *OfcComplex )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gddacd .OfcCT_Complex =*NewOfcCT_Complex ();for _ ,_cgceg :=range start .Attr {if _cgceg .Name .Local =="\u0065\u0078\u0074"{_gddacd .ExtAttr .UnmarshalXMLAttr (_cgceg );continue ;};};for {_faffc ,_ebdaf :=d .Token ();if _ebdaf !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u006f\u006d\u0070\u006c\u0065\u0078\u003a\u0020%\u0073",_ebdaf );};if _ccbgf ,_fbgfe :=_faffc .(_c .EndElement );_fbgfe &&_ccbgf .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcBottom and its children
|
|
|
|
func (_cbgag *OfcBottom )Validate ()error {return _cbgag .ValidateWithPath ("\u004ff\u0063\u0042\u006f\u0074\u0074\u006fm");};func (_eagc OfcST_How )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_eagc .String (),start );};func (_ecdeff *OfcLeft )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ecdeff .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_gfgdcf :=range start .Attr {if _gfgdcf .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"&&_gfgdcf .Name .Local =="\u0068\u0072\u0065\u0066"{_cfaa ,_dbgac :=_gfgdcf .Value ,error (nil );if _dbgac !=nil {return _dbgac ;};_ecdeff .HrefAttr =&_cfaa ;continue ;};if _gfgdcf .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"&&_gfgdcf .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_ecdeff .ForcedashAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .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"&&_gfgdcf .Name .Local =="\u0074\u0069\u0074l\u0065"{_edad ,_cgegc :=_gfgdcf .Value ,error (nil );if _cgegc !=nil {return _cgegc ;};_ecdeff .TitleAttr =&_edad ;continue ;};if _gfgdcf .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"&&_gfgdcf .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_dagec ,_abacd :=_gfgdcf .Value ,error (nil );if _abacd !=nil {return _abacd ;};_ecdeff .AlthrefAttr =&_dagec ;continue ;};if _gfgdcf .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_ecdeff .ImageaspectAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_ecdeff .StartarrowAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_ecdeff .LinestyleAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_ecdeff .StartarrowwidthAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_ecdeff .JoinstyleAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_ecdeff .StartarrowlengthAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_gcbcf ,_bfggf :=_gfgdcf .Value ,error (nil );if _bfggf !=nil {return _bfggf ;};_ecdeff .DashstyleAttr =&_gcbcf ;continue ;};if _gfgdcf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_ecdeff .EndarrowAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_ecdeff .FilltypeAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_ecdeff .EndarrowwidthAttr .UnmarshalXMLAttr (_gfgdcf );continue ;};if _gfgdcf .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_deadf ,_ceedc :=_gfgdcf .Value ,error (nil );if _ceedc !=nil {return _ceedc ;};_ecdeff .OpacityAttr =&_deadf ;continue ;};if _gfgdcf .Name .Local =="\u0063\u006f\u006co\u0072"{_cbbce ,_aegge :=_gfgdcf .Value ,error (nil );if _aegge !=nil {return _aegge ;};_ecdeff .ColorAttr =&_cbbce ;continue ;};if _gfgdcf .Name .Local =="\u0069\u006e\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcInk and its children, prefixing error messages with path
|
|
|
|
func (_bgcae *OfcInk )ValidateWithPath (path string )error {if _bcbca :=_bgcae .OfcCT_Ink .ValidateWithPath (path );_bcbca !=nil {return _bcbca ;};return nil ;};type OfcDiagram struct{OfcCT_Diagram };func (_bcgccbc OfcST_Angle )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_bcgccbc .String (),start );};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Handles and its children
|
|
|
|
func (_ecgca *CT_Handles )Validate ()error {return _ecgca .ValidateWithPath ("\u0043\u0054\u005f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_Style and its children
|
|
|
|
func (_dbae *AG_Style )Validate ()error {return _dbae .ValidateWithPath ("\u0041\u0047\u005f\u0053\u0074\u0079\u006c\u0065");};type OfcComplex struct{OfcCT_Complex };func init (){_f .RegisterConstructor ("\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","\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065",NewCT_Shape );_f .RegisterConstructor ("\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","\u0043\u0054\u005fS\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065",NewCT_Shapetype );_f .RegisterConstructor ("\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","\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070",NewCT_Group );_f .RegisterConstructor ("\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","\u0043\u0054\u005f\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064",NewCT_Background );_f .RegisterConstructor ("\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","\u0043T\u005f\u0046\u0069\u006c\u006c",NewCT_Fill );_f .RegisterConstructor ("\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","C\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073",NewCT_Formulas );_f .RegisterConstructor ("\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","\u0043\u0054\u005f\u0046",NewCT_F );_f .RegisterConstructor ("\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","\u0043\u0054\u005f\u0048\u0061\u006e\u0064\u006c\u0065\u0073",NewCT_Handles );_f .RegisterConstructor ("\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","\u0043\u0054\u005f\u0048",NewCT_H );_f .RegisterConstructor ("\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","\u0043\u0054\u005fI\u006d\u0061\u0067\u0065\u0044\u0061\u0074\u0061",NewCT_ImageData );_f .RegisterConstructor ("\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","\u0043T\u005f\u0050\u0061\u0074\u0068",NewCT_Path );_f .RegisterConstructor ("\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","\u0043T\u005f\u0053\u0068\u0061\u0064\u006fw",NewCT_Shadow );_f .RegisterConstructor ("\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","\u0043T\u005f\u0053\u0074\u0072\u006f\u006be",NewCT_Stroke );_f .RegisterConstructor ("\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","\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0062\u006f\u0078",NewCT_Textbox );_f .RegisterConstructor ("\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","C\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068",NewCT_TextPath );_f .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_AllCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_df *AG_AllCoreAttributes )ValidateWithPath (path string )error {if _bdc :=_df .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_bdc !=nil {return _bdc ;};if _fad :=_df .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_fad !=nil {return _fad ;};if _edg :=_df .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_edg !=nil {return _edg ;};if _ga :=_df .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ga !=nil {return _ga ;};if _fade :=_df .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_fade !=nil {return _fade ;};if _baf :=_df .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_baf !=nil {return _baf ;};if _dfg :=_df .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_dfg !=nil {return _dfg ;};if _aab :=_df .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_aab !=nil {return _aab ;};if _dage :=_df .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_dage !=nil {return _dage ;};if _dbe :=_df .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dbe !=nil {return _dbe ;};if _bgfg :=_df .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_bgfg !=nil {return _bgfg ;};if _bggc :=_df .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bggc !=nil {return _bggc ;};if _geb :=_df .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_geb !=nil {return _geb ;};if _age :=_df .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_age !=nil {return _age ;};if _dec :=_df .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_dec !=nil {return _dec ;};if _ccff :=_df .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_ccff !=nil {return _ccff ;};return nil ;};func (_fbeda *Shadow )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fbeda .CT_Shadow =*NewCT_Shadow ();for _ ,_gcgga :=range start .Attr {if _gcgga .Name .Local =="\u006f\u006e"{_fbeda .OnAttr .UnmarshalXMLAttr (_gcgga );continue ;};if _gcgga .Name .Local =="\u0074\u0079\u0070\u0065"{_fbeda .TypeAttr .UnmarshalXMLAttr (_gcgga );continue ;};if _gcgga .Name .Local =="\u006f\u0062\u0073\u0063\u0075\u0072\u0065\u0064"{_fbeda .ObscuredAttr .UnmarshalXMLAttr (_gcgga );continue ;};if _gcgga .Name .Local =="\u0063\u006f\u006co\u0072"{_gfacf ,_cagdd :=_gcgga .Value ,error (nil );if _cagdd !=nil {return _cagdd ;};_fbeda .ColorAttr =&_gfacf ;continue ;};if _gcgga .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_cdegc ,_fadca :=_gcgga .Value ,error (nil );if _fadca !=nil {return _fadca ;};_fbeda .OpacityAttr =&_cdegc ;continue ;};if _gcgga .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_bdebd ,_ffcga :=_gcgga .Value ,error (nil );if _ffcga !=nil {return _ffcga ;};_fbeda .OffsetAttr =&_bdebd ;continue ;};if _gcgga .Name .Local =="\u0063\u006f\u006c\u006f\u0072\u0032"{_faeg ,_cfddcc :=_gcgga .Value ,error (nil );if _cfddcc !=nil {return _cfddcc ;};_fbeda .Color2Attr =&_faeg ;continue ;};if _gcgga .Name .Local =="\u006ff\u0066\u0073\u0065\u0074\u0032"{_bffgf ,_cbaegd :=_gcgga .Value ,error (nil );if _cbaegd !=nil {return _cbaegd ;};_fbeda .Offset2Attr =&_bffgf ;continue ;};if _gcgga .Name .Local =="\u006f\u0072\u0069\u0067\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_Type and its children, prefixing error messages with path
|
|
|
|
func (_cagc *AG_Type )ValidateWithPath (path string )error {return nil };func (_bdgce *OfcST_OLEDrawAspect )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fbgdd ,_adegd :=d .Token ();if _adegd !=nil {return _adegd ;};if _dbcaed ,_dffdb :=_fbgdd .(_c .EndElement );_dffdb &&_dbcaed .Name ==start .Name {*_bdgce =1;return nil ;};if _eagad ,_fegef :=_fbgdd .(_c .CharData );!_fegef {return _e .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",_fbgdd );}else {switch string (_eagad ){case "":*_bdgce =0;case "\u0043o\u006e\u0074\u0065\u006e\u0074":*_bdgce =1;case "\u0049\u0063\u006f\u006e":*_bdgce =2;};};_fbgdd ,_adegd =d .Token ();if _adegd !=nil {return _adegd ;};if _dfada ,_efagg :=_fbgdd .(_c .EndElement );_efagg &&_dfada .Name ==start .Name {return nil ;};return _e .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",_fbgdd );};func NewOfcSignatureline ()*OfcSignatureline {_gefea :=&OfcSignatureline {};_gefea .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();return _gefea ;};func (_cbgdb ST_StrokeArrowWidth )Validate ()error {return _cbgdb .ValidateWithPath ("")};func (_efffd OfcST_CalloutPlacement )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_bcgeb :=_c .Attr {};_bcgeb .Name =name ;switch _efffd {case OfcST_CalloutPlacementUnset :_bcgeb .Value ="";case OfcST_CalloutPlacementTop :_bcgeb .Value ="\u0074\u006f\u0070";case OfcST_CalloutPlacementCenter :_bcgeb .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";case OfcST_CalloutPlacementBottom :_bcgeb .Value ="\u0062\u006f\u0074\u0074\u006f\u006d";case OfcST_CalloutPlacementUser :_bcgeb .Value ="\u0075\u0073\u0065\u0072";};return _bcgeb ,nil ;};func (_eaafgf OfcST_CalloutPlacement )ValidateWithPath (path string )error {switch _eaafgf {case 0,1,2,3,4:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_eaafgf ));};return nil ;};func (_cdfcfd OfcST_BWMode )Validate ()error {return _cdfcfd .ValidateWithPath ("")};func (_cgefd ST_FillMethod )String ()string {switch _cgefd {case 0:return "";case 1:return "\u006e\u006f\u006e\u0065";case 2:return "\u006c\u0069\u006e\u0065\u0061\u0072";case 3:return "\u0073\u0069\u0067m\u0061";case 4:return "\u0061\u006e\u0079";case 5:return "\u006c\u0069\u006ee\u0061\u0072\u0020\u0073\u0069\u0067\u006d\u0061";};return "";};func (_ceebeg *OfcCT_EquationXml )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dedgb :=range start .Attr {if _dedgb .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_afbde ,_deefa :=_dedgb .Value ,error (nil );if _deefa !=nil {return _deefa ;};_ceebeg .ContentTypeAttr =&_afbde ;continue ;};};_agccg :for {_deaae ,_edbaf :=d .Token ();if _edbaf !=nil {return _edbaf ;};switch _ceccg :=_deaae .(type ){case _c .StartElement :switch _ceccg .Name {default:if _cebde ,_dcdfe :=_f .CreateElement (_ceccg );_dcdfe !=nil {return _dcdfe ;}else {if _dcbfb :=d .DecodeElement (_cebde ,&_ceccg );_dcbfb !=nil {return _dcbfb ;};_ceebeg .Any =_cebde ;};};case _c .EndElement :break _agccg ;case _c .CharData :};};return nil ;};type OfcSkew struct{OfcCT_Skew };func (_eedfb OfcST_DiagramLayout )String ()string {switch _eedfb {case 0:return "";case 1:return "\u0030";case 2:return "\u0031";case 3:return "\u0032";case 4:return "\u0033";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcInk and its children
|
|
|
|
func (_facff *OfcInk )Validate ()error {return _facff .ValidateWithPath ("\u004f\u0066\u0063\u0049\u006e\u006b");};func (_fedgb ST_StrokeArrowWidth )ValidateWithPath (path string )error {switch _fedgb {case 0,1,2,3:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fedgb ));};return nil ;};func (_gbaff *OfcST_RType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_egcad ,_gfffc :=d .Token ();if _gfffc !=nil {return _gfffc ;};if _dceaa ,_cgafcb :=_egcad .(_c .EndElement );_cgafcb &&_dceaa .Name ==start .Name {*_gbaff =1;return nil ;};if _ccafb ,_ebafa :=_egcad .(_c .CharData );!_ebafa {return _e .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",_egcad );}else {switch string (_ccafb ){case "":*_gbaff =0;case "\u0061\u0072\u0063":*_gbaff =1;case "\u0063a\u006c\u006c\u006f\u0075\u0074":*_gbaff =2;case "\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr":*_gbaff =3;case "\u0061\u006c\u0069g\u006e":*_gbaff =4;};};_egcad ,_gfffc =d .Token ();if _gfffc !=nil {return _gfffc ;};if _aeaea ,_gedef :=_egcad .(_c .EndElement );_gedef &&_aeaea .Name ==start .Name {return nil ;};return _e .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",_egcad );};type Group struct{CT_Group };func (_abbec OfcST_HrAlign )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_abbec .String (),start );};func (_eedfc *OfcCT_Ink )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_aegb :=range start .Attr {if _aegb .Name .Local =="\u0069"{_fcgda ,_gcfec :=_aegb .Value ,error (nil );if _gcfec !=nil {return _gcfec ;};_eedfc .IAttr =&_fcgda ;continue ;};if _aegb .Name .Local =="\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_eedfc .AnnotationAttr .UnmarshalXMLAttr (_aegb );continue ;};if _aegb .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_bfaea ,_cbdad :=_aegb .Value ,error (nil );if _cbdad !=nil {return _cbdad ;};_eedfc .ContentTypeAttr =&_bfaea ;continue ;};};for {_fdgab ,_ebbgc :=d .Token ();if _ebbgc !=nil {return _e .Errorf ("p\u0061\u0072\u0073\u0069ng\u0020O\u0066\u0063\u0043\u0054\u005fI\u006e\u006b\u003a\u0020\u0025\u0073",_ebbgc );};if _eeadf ,_ddfb :=_fdgab .(_c .EndElement );_ddfb &&_eeadf .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Entry and its children, prefixing error messages with path
|
|
|
|
func (_cdad *OfcCT_Entry )ValidateWithPath (path string )error {return nil };func (_eecbgc OfcST_ColorMode )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_aabfc :=_c .Attr {};_aabfc .Name =name ;switch _eecbgc {case OfcST_ColorModeUnset :_aabfc .Value ="";case OfcST_ColorModeAuto :_aabfc .Value ="\u0061\u0075\u0074\u006f";case OfcST_ColorModeCustom :_aabfc .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _aabfc ,nil ;};const (OfcST_ExtrusionTypeUnset OfcST_ExtrusionType =0;OfcST_ExtrusionTypePerspective OfcST_ExtrusionType =1;OfcST_ExtrusionTypeParallel OfcST_ExtrusionType =2;);type CT_Rect struct{EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _g .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _g .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _g .ST_TrueFalse ;ButtonAttr _g .ST_TrueFalse ;UserhiddenAttr _g .ST_TrueFalse ;BulletAttr _g .ST_TrueFalse ;HrAttr _g .ST_TrueFalse ;HrstdAttr _g .ST_TrueFalse ;HrnoshadeAttr _g .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _g .ST_TrueFalse ;AllowoverlapAttr _g .ST_TrueFalse ;UserdrawnAttr _g .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _g .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _g .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _g .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _g .ST_TrueFalse ;OleiconAttr _g .ST_TrueFalse ;OleAttr _g .ST_TrueFalseBlank ;PreferrelativeAttr _g .ST_TrueFalse ;CliptowrapAttr _g .ST_TrueFalse ;ClipAttr _g .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RegroupTable and its children, prefixing error messages with path
|
|
|
|
func (_agdgg *OfcCT_RegroupTable )ValidateWithPath (path string )error {for _cfecb ,_ebddc :=range _agdgg .Entry {if _gcaed :=_ebddc .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fE\u006e\u0074\u0072\u0079\u005b\u0025\u0064\u005d",path ,_cfecb ));_gcaed !=nil {return _gcaed ;};};if _gfbeb :=_agdgg .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gfbeb !=nil {return _gfbeb ;};return nil ;};func (_agfab OfcST_CalloutPlacement )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_agfab .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Fill and its children
|
|
|
|
func (_cbceb *OfcCT_Fill )Validate ()error {return _cbceb .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0046\u0069\u006c\u006c");};type OfcCT_Callout struct{OnAttr _g .ST_TrueFalse ;TypeAttr *string ;GapAttr *string ;AngleAttr OfcST_Angle ;DropautoAttr _g .ST_TrueFalse ;DropAttr *string ;DistanceAttr *string ;LengthspecifiedAttr _g .ST_TrueFalse ;LengthAttr *string ;AccentbarAttr _g .ST_TrueFalse ;TextborderAttr _g .ST_TrueFalse ;MinusxAttr _g .ST_TrueFalse ;MinusyAttr _g .ST_TrueFalse ;ExtAttr ST_Ext ;};func NewShape ()*Shape {_fdaf :=&Shape {};_fdaf .CT_Shape =*NewCT_Shape ();return _fdaf };func (_fgebb *AG_Type )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fbbf :=range start .Attr {if _fbbf .Name .Local =="\u0074\u0079\u0070\u0065"{_dfa ,_gadb :=_fbbf .Value ,error (nil );if _gadb !=nil {return _gadb ;};_fgebb .TypeAttr =&_dfa ;continue ;};};for {_gebd ,_ggac :=d .Token ();if _ggac !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0054\u0079\u0070\u0065\u003a\u0020\u0025\u0073",_ggac );};if _efbf ,_bdfa :=_gebd .(_c .EndElement );_bdfa &&_efbf .Name ==start .Name {break ;};};return nil ;};func NewAG_Id ()*AG_Id {_fedbf :=&AG_Id {};return _fedbf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-09-22 16:41:01 +00:00
|
|
|
// ValidateWithPath validates the CT_Background and its children, prefixing error messages with path
|
2022-01-15 21:17:38 +00:00
|
|
|
func (_ddeeg *CT_Background )ValidateWithPath (path string )error {if _fcbf :=_ddeeg .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fcbf !=nil {return _fcbf ;};if _cdda :=_ddeeg .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_cdda !=nil {return _cdda ;};if _fbac :=_ddeeg .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_fbac !=nil {return _fbac ;};if _aege :=_ddeeg .TargetscreensizeAttr .ValidateWithPath (path +"/\u0054\u0061\u0072\u0067et\u0073c\u0072\u0065\u0065\u006e\u0073i\u007a\u0065\u0041\u0074\u0074\u0072");_aege !=nil {return _aege ;};if _ddeeg .Fill !=nil {if _abe :=_ddeeg .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_abe !=nil {return _abe ;};};if _ggadd :=_ddeeg .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_ggadd !=nil {return _ggadd ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcColumn and its children, prefixing error messages with path
|
|
|
|
func (_gabce *OfcColumn )ValidateWithPath (path string )error {if _dbdbb :=_gabce .OfcCT_StrokeChild .ValidateWithPath (path );_dbdbb !=nil {return _dbdbb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Shapetype and its children
|
|
|
|
func (_bggdd *CT_Shapetype )Validate ()error {return _bggdd .ValidateWithPath ("\u0043\u0054\u005fS\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Background and its children
|
|
|
|
func (_gdbe *Background )Validate ()error {return _gdbe .ValidateWithPath ("\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};func (_ggbcc OfcST_DiagramLayout )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_ggbcc .String (),start );};type EG_ShapeElements struct{Path *Path ;Formulas *Formulas ;Handles *Handles ;Fill *Fill ;Stroke *Stroke ;Shadow *Shadow ;Textbox *Textbox ;Textpath *Textpath ;Imagedata *Imagedata ;Skew *OfcSkew ;Extrusion *OfcExtrusion ;Callout *OfcCallout ;Lock *OfcLock ;Clippath *OfcClippath ;Signatureline *OfcSignatureline ;Wrap *_eg .Wrap ;Anchorlock *_eg .Anchorlock ;Bordertop *_eg .Bordertop ;Borderbottom *_eg .Borderbottom ;Borderleft *_eg .Borderleft ;Borderright *_eg .Borderright ;ClientData *_b .ClientData ;Textdata *_cc .Textdata ;};func NewCT_PolyLine ()*CT_PolyLine {_fgegb :=&CT_PolyLine {};return _fgegb };func (_cfccd *ST_ImageAspect )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_cfccd =0;case "\u0069\u0067\u006e\u006f\u0072\u0065":*_cfccd =1;case "\u0061\u0074\u004d\u006f\u0073\u0074":*_cfccd =2;case "\u0061t\u004c\u0065\u0061\u0073\u0074":*_cfccd =3;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Shadow and its children
|
|
|
|
func (_fgegg *Shadow )Validate ()error {return _fgegg .ValidateWithPath ("\u0053\u0068\u0061\u0064\u006f\u0077");};func (_fedga ST_EditAs )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_ceege :=_c .Attr {};_ceege .Name =name ;switch _fedga {case ST_EditAsUnset :_ceege .Value ="";case ST_EditAsCanvas :_ceege .Value ="\u0063\u0061\u006e\u0076\u0061\u0073";case ST_EditAsOrgchart :_ceege .Value ="\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074";case ST_EditAsRadial :_ceege .Value ="\u0072\u0061\u0064\u0069\u0061\u006c";case ST_EditAsCycle :_ceege .Value ="\u0063\u0079\u0063l\u0065";case ST_EditAsStacked :_ceege .Value ="\u0073t\u0061\u0063\u006b\u0065\u0064";case ST_EditAsVenn :_ceege .Value ="\u0076\u0065\u006e\u006e";case ST_EditAsBullseye :_ceege .Value ="\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065";};return _ceege ,nil ;};func (_agaegf *Path )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _agaegf .CT_Path .MarshalXML (e ,start );};func (_abdab *OfcCT_R )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dafcf :=range start .Attr {if _dafcf .Name .Local =="\u0069\u0064"{_agaga ,_geffag :=_dafcf .Value ,error (nil );if _geffag !=nil {return _geffag ;};_abdab .IdAttr =_agaga ;continue ;};if _dafcf .Name .Local =="\u0074\u0079\u0070\u0065"{_abdab .TypeAttr .UnmarshalXMLAttr (_dafcf );continue ;};if _dafcf .Name .Local =="\u0068\u006f\u0077"{_abdab .HowAttr .UnmarshalXMLAttr (_dafcf );continue ;};if _dafcf .Name .Local =="\u0069\u0064\u0072e\u0066"{_gedgec ,_fceaa :=_dafcf .Value ,error (nil );if _fceaa !=nil {return _fceaa ;};_abdab .IdrefAttr =&_gedgec ;continue ;};};_ebfaa :for {_edae ,_bacff :=d .Token ();if _bacff !=nil {return _bacff ;};switch _gecae :=_edae .(type ){case _c .StartElement :switch _gecae .Name {case _c .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 :"\u0070\u0072\u006fx\u0079"}:_fgfec :=NewOfcCT_Proxy ();if _eegc :=d .DecodeElement (_fgfec ,&_gecae );_eegc !=nil {return _eegc ;};_abdab .Proxy =append (_abdab .Proxy ,_fgfec );default:_ce .Log .Debug ("\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\u004ff\u0063\u0043\u0054\u005f\u0052\u0020\u0025\u0076",_gecae .Name );if _adgdd :=d .Skip ();_adgdd !=nil {return _adgdd ;};};case _c .EndElement :break _ebfaa ;case _c .CharData :};};return nil ;};func (_cfcg *CT_Curve )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_gac :=range start .Attr {if _gac .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"&&_gac .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_cfcg .AllowoverlapAttr .UnmarshalXMLAttr (_gac );continue ;};if _gac .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"&&_gac .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_afea ,_ggc :=_cb .ParseInt (_gac .Value ,10,64);if _ggc !=nil {return _ggc ;};_cfcg .RegroupidAttr =&_afea ;continue ;};if _gac .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"&&_gac .Name .Local =="\u0064g\u006d\u006c\u0061\u0079\u006f\u0075t"{_cfcg .DgmlayoutAttr .UnmarshalXMLAttr (_gac );continue ;};if _gac .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ClipPath and its children, prefixing error messages with path
|
|
|
|
func (_dceab *OfcCT_ClipPath )ValidateWithPath (path string )error {return nil };
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Oval and its children
|
|
|
|
func (_faga *CT_Oval )Validate ()error {return _faga .ValidateWithPath ("\u0043T\u005f\u004f\u0076\u0061\u006c");};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_Fill and its children
|
|
|
|
func (_gfbg *AG_Fill )Validate ()error {return _gfbg .ValidateWithPath ("\u0041G\u005f\u0046\u0069\u006c\u006c");};type AG_Type struct{TypeAttr *string ;};func (_aegfgb *ST_FillMethod )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_aegfgb =0;case "\u006e\u006f\u006e\u0065":*_aegfgb =1;case "\u006c\u0069\u006e\u0065\u0061\u0072":*_aegfgb =2;case "\u0073\u0069\u0067m\u0061":*_aegfgb =3;case "\u0061\u006e\u0079":*_aegfgb =4;case "\u006c\u0069\u006ee\u0061\u0072\u0020\u0073\u0069\u0067\u006d\u0061":*_aegfgb =5;};return nil ;};type CT_Group struct{EditasAttr ST_EditAs ;TablepropertiesAttr *string ;TablelimitsAttr *string ;Group []*Group ;Shape []*Shape ;Shapetype []*Shapetype ;Arc []*Arc ;Curve []*Curve ;Image []*Image ;Line []*Line ;Oval []*Oval ;Polyline []*Polyline ;Rect []*Rect ;Roundrect []*Roundrect ;Diagram []*OfcDiagram ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _g .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _g .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _g .ST_TrueFalse ;ButtonAttr _g .ST_TrueFalse ;UserhiddenAttr _g .ST_TrueFalse ;BulletAttr _g .ST_TrueFalse ;HrAttr _g .ST_TrueFalse ;HrstdAttr _g .ST_TrueFalse ;HrnoshadeAttr _g .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _g .ST_TrueFalse ;AllowoverlapAttr _g .ST_TrueFalse ;UserdrawnAttr _g .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;FilledAttr _g .ST_TrueFalse ;FillcolorAttr *string ;};func (_cfbda *OfcST_OLEDrawAspect )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_cfbda =0;case "\u0043o\u006e\u0074\u0065\u006e\u0074":*_cfbda =1;case "\u0049\u0063\u006f\u006e":*_cfbda =2;};return nil ;};func (_faefa *OfcCT_Skew )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ebab :=range start .Attr {if _ebab .Name .Local =="\u0069\u0064"{_cbegb ,_dcadg :=_ebab .Value ,error (nil );if _dcadg !=nil {return _dcadg ;};_faefa .IdAttr =&_cbegb ;continue ;};if _ebab .Name .Local =="\u006f\u006e"{_faefa .OnAttr .UnmarshalXMLAttr (_ebab );continue ;};if _ebab .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_ffdfcb ,_cbcbb :=_ebab .Value ,error (nil );if _cbcbb !=nil {return _cbcbb ;};_faefa .OffsetAttr =&_ffdfcb ;continue ;};if _ebab .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_abfce ,_abdad :=_ebab .Value ,error (nil );if _abdad !=nil {return _abdad ;};_faefa .OriginAttr =&_abfce ;continue ;};if _ebab .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_ddedbe ,_baecf :=_ebab .Value ,error (nil );if _baecf !=nil {return _baecf ;};_faefa .MatrixAttr =&_ddedbe ;continue ;};if _ebab .Name .Local =="\u0065\u0078\u0074"{_faefa .ExtAttr .UnmarshalXMLAttr (_ebab );continue ;};};for {_adef ,_eecf :=d .Token ();if _eecf !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u006b\u0065\u0077\u003a\u0020%\u0073",_eecf );};if _fgbgf ,_ddcaf :=_adef .(_c .EndElement );_ddcaf &&_fgbgf .Name ==start .Name {break ;};};return nil ;};func (_dbfcg *OfcCT_Ink )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0069n\u006b";};if _dbfcg .IAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069"},Value :_e .Sprintf ("\u0025\u0076",*_dbfcg .IAttr )});};if _dbfcg .AnnotationAttr !=_g .ST_TrueFalseUnset {_edaf ,_cgeeb :=_dbfcg .AnnotationAttr .MarshalXMLAttr (_c .Name {Local :"\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"});if _cgeeb !=nil {return _cgeeb ;};start .Attr =append (start .Attr ,_edaf );};if _dbfcg .ContentTypeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Loc
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Curve and its children
|
|
|
|
func (_cefa *CT_Curve )Validate ()error {return _cefa .ValidateWithPath ("\u0043\u0054\u005f\u0043\u0075\u0072\u0076\u0065");};type OfcCT_Ink struct{IAttr *string ;AnnotationAttr _g .ST_TrueFalse ;ContentTypeAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Shadow and its children
|
|
|
|
func (_aedda *CT_Shadow )Validate ()error {return _aedda .ValidateWithPath ("\u0043T\u005f\u0053\u0068\u0061\u0064\u006fw");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Background and its children
|
|
|
|
func (_egc *CT_Background )Validate ()error {return _egc .ValidateWithPath ("\u0043\u0054\u005f\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};func (_gffab ST_StrokeArrowType )Validate ()error {return _gffab .ValidateWithPath ("")};func (_abeg *CT_Path )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0070\u0061\u0074\u0068";};if _abeg .VAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0076"},Value :_e .Sprintf ("\u0025\u0076",*_abeg .VAttr )});};if _abeg .LimoAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006c\u0069\u006d\u006f"},Value :_e .Sprintf ("\u0025\u0076",*_abeg .LimoAttr )});};if _abeg .TextboxrectAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"t\u0065\u0078\u0074\u0062\u006f\u0078\u0072\u0065\u0063\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_abeg .TextboxrectAttr )});};if _abeg .FillokAttr !=_g .ST_TrueFalseUnset {_gbeg ,_gcgd :=_abeg .FillokAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c\u006f\u006b"});if _gcgd !=nil {return _gcgd ;};start .Attr =append (start .Attr ,_gbeg );};if _abeg .StrokeokAttr !=_g .ST_TrueFalseUnset {_adgf ,_cacb :=_abeg .StrokeokAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"});if _cacb !=nil {return _cacb ;};start .Attr =append (start .Attr ,_adgf );};if _abeg .ShadowokAttr !=_g .ST_TrueFalseUnset {_ffege ,_gbdfa :=_abeg .ShadowokAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"});if _gbdfa !=nil {return _gbdfa ;};start .Attr =append (start .Attr ,_ffege );};if _abeg .ArrowokAttr !=_g .ST_TrueFalseUnset {_gdggg ,_gadbg :=_abeg .ArrowokAttr .MarshalXMLAttr (_c .Name {Local :"\u0061r\u0072\u006f\u0077\u006f\u006b"});if _gadbg !=nil {return _gadbg ;};start .Attr =append (start .Attr ,_gdggg );};if _abeg .GradientshapeokAttr !=_g .ST_TrueFalseUnset {_fega ,_edbde :=_abeg .GradientshapeokAttr .MarshalXMLAttr (_c .Name {Local :"\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"});if _edbde !=nil {return _edbde ;};start .Attr =append (start .Attr ,_fega );};if _abeg .TextpathokAttr !=_g .ST_TrueFalseUnset {_cgdge ,_aegff :=_abeg .TextpathokAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"});if _aegff !=nil {return _aegff ;};start .Attr =append (start .Attr ,_cgdge );};if _abeg .InsetpenokAttr !=_g .ST_TrueFalseUnset {_ecca ,_bbefd :=_abeg .InsetpenokAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"});if _bbefd !=nil {return _bbefd ;};start .Attr =append (start .Attr ,_ecca );};if _abeg .ConnecttypeAttr !=OfcST_ConnectTypeUnset {_gddg ,_fefc :=_abeg .ConnecttypeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"});if _fefc !=nil {return _fefc ;};start .Attr =append (start .Attr ,_gddg );};if _abeg .ConnectlocsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_abeg .ConnectlocsAttr )});};if _abeg .ConnectanglesAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_abeg .ConnectanglesAttr )});};if _abeg .ExtrusionokAttr !=_g .ST_TrueFalseUnset {_dagea ,_bgcdf :=_abeg .ExtrusionokAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"});if _bgcdf !=nil {return _bgcdf ;};start .Attr =append (start .Attr ,_dagea );};if _abeg .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_abeg .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Line and its children, prefixing error messages with path
|
|
|
|
func (_bcag *CT_Line )ValidateWithPath (path string )error {for _cacc ,_cddda :=range _bcag .EG_ShapeElements {if _efff :=_cddda .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_cacc ));_efff !=nil {return _efff ;};};if _adfda :=_bcag .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_adfda !=nil {return _adfda ;};if _acbf :=_bcag .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_acbf !=nil {return _acbf ;};if _ddfe :=_bcag .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_ddfe !=nil {return _ddfe ;};if _afagc :=_bcag .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_afagc !=nil {return _afagc ;};if _ebdgc :=_bcag .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_ebdgc !=nil {return _ebdgc ;};if _ddfef :=_bcag .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ddfef !=nil {return _ddfef ;};if _eggc :=_bcag .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_eggc !=nil {return _eggc ;};if _dadd :=_bcag .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_dadd !=nil {return _dadd ;};if _agccf :=_bcag .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_agccf !=nil {return _agccf ;};if _bffcec :=_bcag .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_bffcec !=nil {return _bffcec ;};if _agdcc :=_bcag .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_agdcc !=nil {return _agdcc ;};if _bcea :=_bcag .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bcea !=nil {return _bcea ;};if _gfag :=_bcag .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_gfag !=nil {return _gfag ;};if _gecgc :=_bcag .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_gecgc !=nil {return _gecgc ;};if _bead :=_bcag .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bead !=nil {return _bead ;};if _gabde :=_bcag .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gabde !=nil {return _gabde ;};if _ggce :=_bcag .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ggce !=nil {return _ggce ;};if _bfgb :=_bcag .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_bfgb !=nil {return _bfgb ;};if _gabdg :=_bcag .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gabdg !=nil {return _gabdg ;};if _eegec :=_bcag .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_eegec !=nil {return _eegec ;};if _edbdg :=_bcag .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_edbdg !=nil {return _edbdg ;};if _ffddb :=_bcag .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ffddb !=nil {return _ffddb ;};if _fgeab :=_bcag .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_fgeab !=nil {re
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_cda *CT_Fill )ValidateWithPath (path string )error {if _fced :=_cda .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_fced !=nil {return _fced ;};if _bfbc :=_cda .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_bfbc !=nil {return _bfbc ;};if _ebf :=_cda .AspectAttr .ValidateWithPath (path +"/\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_ebf !=nil {return _ebf ;};if _cddf :=_cda .AlignshapeAttr .ValidateWithPath (path +"\u002fA\u006ci\u0067\u006e\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_cddf !=nil {return _cddf ;};if _gbdc :=_cda .MethodAttr .ValidateWithPath (path +"/\u004d\u0065\u0074\u0068\u006f\u0064\u0041\u0074\u0074\u0072");_gbdc !=nil {return _gbdc ;};if _gedgd :=_cda .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_gedgd !=nil {return _gedgd ;};if _ecg :=_cda .RecolorAttr .ValidateWithPath (path +"\u002f\u0052\u0065c\u006f\u006c\u006f\u0072\u0041\u0074\u0074\u0072");_ecg !=nil {return _ecg ;};if _befee :=_cda .RotateAttr .ValidateWithPath (path +"/\u0052\u006f\u0074\u0061\u0074\u0065\u0041\u0074\u0074\u0072");_befee !=nil {return _befee ;};if _cda .Fill !=nil {if _decb :=_cda .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_decb !=nil {return _decb ;};};return nil ;};func (_bdeg *Background )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .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 ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006c\u006e\u0073\u003a\u0075\u0072"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068e\u006d\u0061\u0073-\u006d\u0069\u0063\u0072o\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u0070\u006f\u0077\u0065\u0072\u0070\u006f\u0069\u006e\u0074"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0075\u0072n"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068e\u006d\u0061s\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006ff\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065:\u0077\u006f\u0072\u0064"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .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 ,_c .Attr {Na
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the CT_Shape and its children
|
|
|
|
func (_cdcfd *CT_Shape )Validate ()error {return _cdcfd .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065");};func (_ebdfc *OfcCT_RelationTable )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_eccbb :=range start .Attr {if _eccbb .Name .Local =="\u0065\u0078\u0074"{_ebdfc .ExtAttr .UnmarshalXMLAttr (_eccbb );continue ;};};_ccdgg :for {_bgdcb ,_begde :=d .Token ();if _begde !=nil {return _begde ;};switch _ecffd :=_bgdcb .(type ){case _c .StartElement :switch _ecffd .Name {case _c .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"}:_ceec :=NewOfcCT_Relation ();if _bdfbd :=d .DecodeElement (_ceec ,&_ecffd );_bdfbd !=nil {return _bdfbd ;};_ebdfc .Rel =append (_ebdfc .Rel ,_ceec );default:_ce .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070o\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020o\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u006c\u0061ti\u006f\u006e\u0054\u0061\u0062\u006c\u0065\u0020\u0025\u0076",_ecffd .Name );if _fffef :=d .Skip ();_fffef !=nil {return _fffef ;};};case _c .EndElement :break _ccdgg ;case _c .CharData :};};return nil ;};func NewOfcShapedefaults ()*OfcShapedefaults {_cbedg :=&OfcShapedefaults {};_cbedg .OfcCT_ShapeDefaults =*NewOfcCT_ShapeDefaults ();return _cbedg ;};type CT_Textbox struct{InsetAttr *string ;SingleclickAttr _g .ST_TrueFalse ;InsetmodeAttr OfcST_InsetMode ;TxbxContent *_ef .TxbxContent ;Any _f .Any ;IdAttr *string ;StyleAttr *string ;};func (_dfcab OfcST_HrAlign )String ()string {switch _dfcab {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 (_cedaa *OfcCT_Extrusion )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="o\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e";};if _cedaa .OnAttr !=_g .ST_TrueFalseUnset {_bggfc ,_edbdf :=_cedaa .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _edbdf !=nil {return _edbdf ;};start .Attr =append (start .Attr ,_bggfc );};if _cedaa .TypeAttr !=OfcST_ExtrusionTypeUnset {_gfebc ,_dbbefe :=_cedaa .TypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0079\u0070\u0065"});if _dbbefe !=nil {return _dbbefe ;};start .Attr =append (start .Attr ,_gfebc );};if _cedaa .RenderAttr !=OfcST_ExtrusionRenderUnset {_ffaf ,_gdggf :=_cedaa .RenderAttr .MarshalXMLAttr (_c .Name {Local :"\u0072\u0065\u006e\u0064\u0065\u0072"});if _gdggf !=nil {return _gdggf ;};start .Attr =append (start .Attr ,_ffaf );};if _cedaa .ViewpointoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_cedaa .ViewpointoriginAttr )});};if _cedaa .ViewpointAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0076i\u0065\u0077\u0070\u006f\u0069\u006et"},Value :_e .Sprintf ("\u0025\u0076",*_cedaa .ViewpointAttr )});};if _cedaa .PlaneAttr !=OfcST_ExtrusionPlaneUnset {_feafg ,_fdde :=_cedaa .PlaneAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u006c\u0061n\u0065"});if _fdde !=nil {return _fdde ;};start .Attr =append (start .Attr ,_feafg );};if _cedaa .SkewangleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073k\u0065\u0077\u0061\u006e\u0067\u006ce"},Value :_e .Sprintf ("\u0025\u0076",*_cedaa .SkewangleAttr )});};if _cedaa .SkewamtAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073k\u0065\u0077\u0061\u006d\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cedaa .SkewamtAttr )});};if _cedaa .ForedepthAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066o\u0072\u0065\u0064\u0065\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Line and its children
|
|
|
|
func (_fdcga *Line )Validate ()error {return _fdcga .ValidateWithPath ("\u004c\u0069\u006e\u0065")};func (_fgdb *OfcBottom )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fgdb .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_gcfbf :=range start .Attr {if _gcfbf .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"&&_gcfbf .Name .Local =="\u0068\u0072\u0065\u0066"{_eggcb ,_babee :=_gcfbf .Value ,error (nil );if _babee !=nil {return _babee ;};_fgdb .HrefAttr =&_eggcb ;continue ;};if _gcfbf .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"&&_gcfbf .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_fgdb .ForcedashAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .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"&&_gcfbf .Name .Local =="\u0074\u0069\u0074l\u0065"{_bggae ,_fdcdc :=_gcfbf .Value ,error (nil );if _fdcdc !=nil {return _fdcdc ;};_fgdb .TitleAttr =&_bggae ;continue ;};if _gcfbf .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"&&_gcfbf .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_eafcb ,_deceg :=_gcfbf .Value ,error (nil );if _deceg !=nil {return _deceg ;};_fgdb .AlthrefAttr =&_eafcb ;continue ;};if _gcfbf .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_fgdb .ImageaspectAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_fgdb .StartarrowAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_fgdb .LinestyleAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_fgdb .StartarrowwidthAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_fgdb .JoinstyleAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_fgdb .StartarrowlengthAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_afacgd ,_eafgb :=_gcfbf .Value ,error (nil );if _eafgb !=nil {return _eafgb ;};_fgdb .DashstyleAttr =&_afacgd ;continue ;};if _gcfbf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_fgdb .EndarrowAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_fgdb .FilltypeAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_fgdb .EndarrowwidthAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_bgcgd ,_bbefa :=_gcfbf .Value ,error (nil );if _bbefa !=nil {return _bbefa ;};_fgdb .OpacityAttr =&_bgcgd ;continue ;};if _gcfbf .Name .Local =="\u0063\u006f\u006co\u0072"{_gfgdg ,_eccbc :=_gcfbf .Value ,error (nil );if _eccbc !=nil {return _eccbc ;};_fgdb .ColorAttr =&_gfgdg ;continue ;};if _gcfbf .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_fgdb .InsetpenAttr .UnmarshalXMLAttr (_gcfbf );continue ;};if _gcfbf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u006ce\u006e\u0067\u0074\u0068"{_fgdb .EndarrowlengthAt
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the AG_Id and its children, prefixing error messages with path
|
|
|
|
func (_bbd *AG_Id )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the AG_AllShapeAttributes and its children
|
|
|
|
func (_edf *AG_AllShapeAttributes )Validate ()error {return _edf .ValidateWithPath ("A\u0047\u005f\u0041\u006clS\u0068a\u0070\u0065\u0041\u0074\u0074r\u0069\u0062\u0075\u0074\u0065\u0073");};func (_geeba OfcST_InsetMode )String ()string {switch _geeba {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_ShapeDefaults and its children
|
|
|
|
func (_ebfad *OfcCT_ShapeDefaults )Validate ()error {return _ebfad .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0068\u0061\u0070\u0065\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};func (_bddffc *OfcST_ScreenSize )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_bddffc =0;case "\u00354\u0034\u002c\u0033\u0037\u0036":*_bddffc =1;case "\u00364\u0030\u002c\u0034\u0038\u0030":*_bddffc =2;case "\u00372\u0030\u002c\u0035\u0031\u0032":*_bddffc =3;case "\u00380\u0030\u002c\u0036\u0030\u0030":*_bddffc =4;case "\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038":*_bddffc =5;case "\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032":*_bddffc =6;};return nil ;};func NewImagedata ()*Imagedata {_bgbaea :=&Imagedata {};_bgbaea .CT_ImageData =*NewCT_ImageData ();return _bgbaea ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_ColorMru and its children
|
|
|
|
func (_abfcd *OfcCT_ColorMru )Validate ()error {return _abfcd .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006co\u0072\u004d\u0072\u0075");};func (_cebgc *OfcST_OLEUpdateMode )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cbecca ,_cfagc :=d .Token ();if _cfagc !=nil {return _cfagc ;};if _eecec ,_gcdde :=_cbecca .(_c .EndElement );_gcdde &&_eecec .Name ==start .Name {*_cebgc =1;return nil ;};if _agbgf ,_ecabf :=_cbecca .(_c .CharData );!_ecabf {return _e .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",_cbecca );}else {switch string (_agbgf ){case "":*_cebgc =0;case "\u0041\u006c\u0077\u0061\u0079\u0073":*_cebgc =1;case "\u004f\u006e\u0043\u0061\u006c\u006c":*_cebgc =2;};};_cbecca ,_cfagc =d .Token ();if _cfagc !=nil {return _cfagc ;};if _fagba ,_fdffd :=_cbecca .(_c .EndElement );_fdffd &&_fagba .Name ==start .Name {return nil ;};return _e .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",_cbecca );};func (_cbbga *AG_Style )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ebe :=range start .Attr {if _ebe .Name .Local =="\u0073\u0074\u0079l\u0065"{_adag ,_gdb :=_ebe .Value ,error (nil );if _gdb !=nil {return _gdb ;};_cbbga .StyleAttr =&_adag ;continue ;};};for {_dabg ,_cfb :=d .Token ();if _cfb !=nil {return _e .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005fS\u0074\u0079\u006c\u0065: \u0025\u0073",_cfb );};if _gfgc ,_bffgg :=_dabg .(_c .EndElement );_bffgg &&_gfgc .Name ==start .Name {break ;};};return nil ;};func NewGroup ()*Group {_dbbee :=&Group {};_dbbee .CT_Group =*NewCT_Group ();return _dbbee };func NewFill ()*Fill {_gfdfa :=&Fill {};_gfdfa .CT_Fill =*NewCT_Fill ();return _gfdfa };func (_daae *CT_H )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bcab :=range start .Attr {if _bcab .Name .Local =="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"{_gbcg ,_bbde :=_bcab .Value ,error (nil );if _bbde !=nil {return _bbde ;};_daae .PositionAttr =&_gbcg ;continue ;};if _bcab .Name .Local =="\u0070\u006f\u006ca\u0072"{_addd ,_bfff :=_bcab .Value ,error (nil );if _bfff !=nil {return _bfff ;};_daae .PolarAttr =&_addd ;continue ;};if _bcab .Name .Local =="\u006d\u0061\u0070"{_bged ,_efaf :=_bcab .Value ,error (nil );if _efaf !=nil {return _efaf ;};_daae .MapAttr =&_bged ;continue ;};if _bcab .Name .Local =="\u0069\u006e\u0076\u0078"{_daae .InvxAttr .UnmarshalXMLAttr (_bcab );continue ;};if _bcab .Name .Local =="\u0069\u006e\u0076\u0079"{_daae .InvyAttr .UnmarshalXMLAttr (_bcab );continue ;};if _bcab .Name .Local =="\u0073\u0077\u0069\u0074\u0063\u0068"{_daae .SwitchAttr .UnmarshalXMLAttr (_bcab );continue ;};if _bcab .Name .Local =="\u0078\u0072\u0061\u006e\u0067\u0065"{_ffca ,_cfdg :=_bcab .Value ,error (nil );if _cfdg !=nil {return _cfdg ;};_daae .XrangeAttr =&_ffca ;continue ;};if _bcab .Name .Local =="\u0079\u0072\u0061\u006e\u0067\u0065"{_cced ,_eegg :=_bcab .Value ,error (nil );if _eegg !=nil {return _eegg ;};_daae .YrangeAttr =&_cced ;continue ;};if _bcab .Name .Local =="r\u0061\u0064\u0069\u0075\u0073\u0072\u0061\u006e\u0067\u0065"{_bddff ,_bcfd :=_bcab .Value ,error (nil );if _bcfd !=nil {return _bcfd ;};_daae .RadiusrangeAttr =&_bddff ;continue ;};};for {_eaaa ,_ccede :=d .Token ();if _ccede !=nil {return _e .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u0043\u0054\u005f\u0048\u003a\u0020\u0025\u0073",_ccede );};if _beacc ,_facg :=_eaaa .(_c .EndElement );_facg &&_beacc .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMenu and its children, prefixing error messages with path
|
|
|
|
func (_aeffe *OfcCT_ColorMenu )ValidateWithPath (path string )error {if _eaded :=_aeffe .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_eaded !=nil {return _eaded ;};return nil ;};func (_agadd ST_StrokeJoinStyle )Validate ()error {return _agadd .ValidateWithPath ("")};func (_fgdg *AG_Type )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _fgdg .TypeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_fgdg .TypeAttr )});};return nil ;};func NewOfcClippath ()*OfcClippath {_afgae :=&OfcClippath {};_afgae .OfcCT_ClipPath =*NewOfcCT_ClipPath ();return _afgae ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Group and its children, prefixing error messages with path
|
|
|
|
func (_eeeb *Group )ValidateWithPath (path string )error {if _ddbee :=_eeeb .CT_Group .ValidateWithPath (path );_ddbee !=nil {return _ddbee ;};return nil ;};func (_bdbda *OfcCallout )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _bdbda .OfcCT_Callout .MarshalXML (e ,start );};type AG_Adj struct{AdjAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcSignatureline and its children, prefixing error messages with path
|
|
|
|
func (_bfdce *OfcSignatureline )ValidateWithPath (path string )error {if _dgced :=_bfdce .OfcCT_SignatureLine .ValidateWithPath (path );_dgced !=nil {return _dgced ;};return nil ;};func (_bebff ST_ShadowType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_bebff .String (),start );};func NewOfcCT_Ink ()*OfcCT_Ink {_cbecd :=&OfcCT_Ink {};return _cbecd };func NewCT_F ()*CT_F {_aeac :=&CT_F {};return _aeac };func (_cgaecb *OfcCT_StrokeChild )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0073\u0074\u0072\u006f\u006b\u0065\u0063\u0068\u0069\u006c\u0064";};if _cgaecb .OnAttr !=_g .ST_TrueFalseUnset {_fbga ,_fdagd :=_cgaecb .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _fdagd !=nil {return _fdagd ;};start .Attr =append (start .Attr ,_fbga );};if _cgaecb .WeightAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cgaecb .WeightAttr )});};if _cgaecb .ColorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_cgaecb .ColorAttr )});};if _cgaecb .Color2Attr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0032"},Value :_e .Sprintf ("\u0025\u0076",*_cgaecb .Color2Attr )});};if _cgaecb .OpacityAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_e .Sprintf ("\u0025\u0076",*_cgaecb .OpacityAttr )});};if _cgaecb .LinestyleAttr !=ST_StrokeLineStyleUnset {_gdaad ,_bceec :=_cgaecb .LinestyleAttr .MarshalXMLAttr (_c .Name {Local :"v\u003a\u006c\u0069\u006e\u0065\u0073\u0074\u0079\u006c\u0065"});if _bceec !=nil {return _bceec ;};start .Attr =append (start .Attr ,_gdaad );};if _cgaecb .MiterlimitAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006d\u0069\u0074\u0065\u0072\u006c\u0069\u006d\u0069\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cgaecb .MiterlimitAttr )});};if _cgaecb .JoinstyleAttr !=ST_StrokeJoinStyleUnset {_bbfag ,_gccc :=_cgaecb .JoinstyleAttr .MarshalXMLAttr (_c .Name {Local :"v\u003a\u006a\u006f\u0069\u006e\u0073\u0074\u0079\u006c\u0065"});if _gccc !=nil {return _gccc ;};start .Attr =append (start .Attr ,_bbfag );};if _cgaecb .EndcapAttr !=ST_StrokeEndCapUnset {_agacd ,_bbgee :=_cgaecb .EndcapAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065\u006e\u0064\u0063\u0061\u0070"});if _bbgee !=nil {return _bbgee ;};start .Attr =append (start .Attr ,_agacd );};if _cgaecb .DashstyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"},Value :_e .Sprintf ("\u0025\u0076",*_cgaecb .DashstyleAttr )});};if _cgaecb .InsetpenAttr !=_g .ST_TrueFalseUnset {_aefgf ,_acaac :=_cgaecb .InsetpenAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _acaac !=nil {return _acaac ;};start .Attr =append (start .Attr ,_aefgf );};if _cgaecb .FilltypeAttr !=ST_FillTypeUnset {_cafgbb ,_gadbeb :=_cgaecb .FilltypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"});if _gadbeb !=nil {return _gadbeb ;};start .Attr =append (start .Attr ,_cafgbb );};if _cgaecb .SrcAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0072\u0063"},Value :_e .Sprintf ("\u0025\u0076",*_cgaecb .SrcAttr )});};if _cgaecb .ImageaspectAttr !=ST_ImageAspectUnset {_fdddb ,_fcacf :=_cgaecb .ImageaspectAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0069\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"});if _fcacf !=nil {return _fcacf ;};start .Attr =append (start .Attr ,_fdddb );};if _cgaecb .ImagesizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_cgaecb .ImagesizeAttr )})
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the Image and its children
|
|
|
|
func (_fdddd *Image )Validate ()error {return _fdddd .ValidateWithPath ("\u0049\u006d\u0061g\u0065")};type Imagedata struct{CT_ImageData };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Skew and its children
|
|
|
|
func (_cbege *OfcCT_Skew )Validate ()error {return _cbege .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u006b\u0065\u0077");};func (_fgef *AG_AllShapeAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_afb :=range start .Attr {if _afb .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"&&_afb .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"{_fgef .ConnectortypeAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .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"&&_afb .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_fgef .BwpureAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .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"&&_afb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_fgef .CliptowrapAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .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"&&_afb .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_fgef .PreferrelativeAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .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"&&_afb .Name .Local =="\u006f\u006c\u0065"{_fgef .OleAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .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"&&_afb .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_fgef .OleiconAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .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"&&_afb .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_fgef .ForcedashAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .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"&&_afb .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_fgef .BwnormalAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .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"&&_afb .Name .Local =="\u0073\u0070\u0074"{_eff ,_def :=_cb .ParseFloat (_afb .Value ,64);if _def !=nil {return _def ;};_fca :=float32 (_eff );_fgef .SptAttr =&_fca ;continue ;};if _afb .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"&&_afb .Name .Local =="\u0063\u006c\u0069\u0070"{_fgef .ClipAttr .UnmarshalXMLAttr (_afb );continue ;};if _afb .Name .Space =="\u0075\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Callout and its children, prefixing error messages with path
|
|
|
|
func (_degdd *OfcCT_Callout )ValidateWithPath (path string )error {if _bbdee :=_degdd .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_bbdee !=nil {return _bbdee ;};if _aedf :=_degdd .AngleAttr .ValidateWithPath (path +"\u002f\u0041\u006e\u0067\u006c\u0065\u0041\u0074\u0074\u0072");_aedf !=nil {return _aedf ;};if _defg :=_degdd .DropautoAttr .ValidateWithPath (path +"\u002f\u0044\u0072\u006f\u0070\u0061\u0075\u0074\u006f\u0041\u0074\u0074\u0072");_defg !=nil {return _defg ;};if _cgcf :=_degdd .LengthspecifiedAttr .ValidateWithPath (path +"/\u004ce\u006e\u0067\u0074\u0068\u0073\u0070\u0065\u0063i\u0066\u0069\u0065\u0064At\u0074\u0072");_cgcf !=nil {return _cgcf ;};if _cbfeg :=_degdd .AccentbarAttr .ValidateWithPath (path +"\u002f\u0041\u0063\u0063\u0065\u006e\u0074\u0062\u0061r\u0041\u0074\u0074\u0072");_cbfeg !=nil {return _cbfeg ;};if _adfacf :=_degdd .TextborderAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0062\u006f\u0072\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_adfacf !=nil {return _adfacf ;};if _gbbd :=_degdd .MinusxAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0078\u0041\u0074\u0074\u0072");_gbbd !=nil {return _gbbd ;};if _dagdd :=_degdd .MinusyAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0079\u0041\u0074\u0074\u0072");_dagdd !=nil {return _dagdd ;};if _ddca :=_degdd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ddca !=nil {return _ddca ;};return nil ;};func (_cabf *CT_Arc )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0061r\u0063";};if _cabf .StartAngleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0061\u0072\u0074\u0041\u006e\u0067\u006c\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .StartAngleAttr )});};if _cabf .EndAngleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0065\u006e\u0064\u0041\u006e\u0067\u006c\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .EndAngleAttr )});};if _cabf .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .HrefAttr )});};if _cabf .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .TargetAttr )});};if _cabf .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .ClassAttr )});};if _cabf .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .TitleAttr )});};if _cabf .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .AltAttr )});};if _cabf .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .CoordsizeAttr )});};if _cabf .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .CoordoriginAttr )});};if _cabf .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .WrapcoordsAttr )});};if _cabf .PrintAttr !=_g .ST_TrueFalseUnset {_ccea ,_cdgb :=_cabf .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _cdgb !=nil {return _cdgb ;};start .Attr =append (start .Attr ,_ccea );};if _cabf .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_cabf .IdAttr )});};if _cabf .StyleAttr !=nil {start .Attr =appe
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_OLEObject and its children, prefixing error messages with path
|
|
|
|
func (_fbdcgb *OfcCT_OLEObject )ValidateWithPath (path string )error {if _addfe :=_fbdcgb .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_addfe !=nil {return _addfe ;};if _adfgd :=_fbdcgb .DrawAspectAttr .ValidateWithPath (path +"\u002fD\u0072a\u0077\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_adfgd !=nil {return _adfgd ;};if _fggbf :=_fbdcgb .UpdateModeAttr .ValidateWithPath (path +"\u002fU\u0070d\u0061\u0074\u0065\u004d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fggbf !=nil {return _fggbf ;};if _ffcged :=_fbdcgb .LockedField .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064");_ffcged !=nil {return _ffcged ;};return nil ;};func (_d *AG_Adj )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _d .AdjAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u0064\u006a"},Value :_e .Sprintf ("\u0025\u0076",*_d .AdjAttr )});};return nil ;};type Stroke struct{CT_Stroke };func (_dddde ST_FillType )ValidateWithPath (path string )error {switch _dddde {case 0,1,2,3,4,5,6:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dddde ));};return nil ;};func (_bggd *AG_ShapeAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fbb :=range start .Attr {if _fbb .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_eaff ,_fcb :=_fbb .Value ,error (nil );if _fcb !=nil {return _fcb ;};_bggd .OpacityAttr =&_eaff ;continue ;};if _fbb .Name .Local =="\u0073t\u0072\u006f\u006b\u0065\u0064"{_bggd .StrokedAttr .UnmarshalXMLAttr (_fbb );continue ;};if _fbb .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_bddd ,_cedc :=_fbb .Value ,error (nil );if _cedc !=nil {return _cedc ;};_bggd .StrokecolorAttr =&_bddd ;continue ;};if _fbb .Name .Local =="\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"{_egd ,_cgf :=_fbb .Value ,error (nil );if _cgf !=nil {return _cgf ;};_bggd .StrokeweightAttr =&_egd ;continue ;};if _fbb .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_bggd .InsetpenAttr .UnmarshalXMLAttr (_fbb );continue ;};if _fbb .Name .Local =="\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"{_cgd ,_afba :=_fbb .Value ,error (nil );if _afba !=nil {return _afba ;};_bggd .ChromakeyAttr =&_cgd ;continue ;};if _fbb .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_bggd .FilledAttr .UnmarshalXMLAttr (_fbb );continue ;};if _fbb .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_fbfd ,_fcef :=_fbb .Value ,error (nil );if _fcef !=nil {return _fcef ;};_bggd .FillcolorAttr =&_fbfd ;continue ;};};for {_bcc ,_fdb :=d .Token ();if _fdb !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047_\u0053\u0068\u0061\u0070\u0065\u0041\u0074t\u0072\u0069\u0062\u0075\u0074\u0065\u0073\u003a\u0020\u0025\u0073",_fdb );};if _cgc ,_bcd :=_bcc .(_c .EndElement );_bcd &&_cgc .Name ==start .Name {break ;};};return nil ;};type ST_ShadowType byte ;func (_eaadg ST_StrokeArrowWidth )String ()string {switch _eaadg {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 "";};const (OfcST_OLEDrawAspectUnset OfcST_OLEDrawAspect =0;OfcST_OLEDrawAspectContent OfcST_OLEDrawAspect =1;OfcST_OLEDrawAspectIcon OfcST_OLEDrawAspect =2;);func (_abeec OfcST_OLEType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_abeec .String (),start );};type OfcCT_Extrusion struct{OnAttr _g .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 _g .ST_TrueFalse ;AutorotationcenterAttr _g .ST_TrueFalse ;Rot
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the CT_Image and its children, prefixing error messages with path
|
|
|
|
func (_bcfdf *CT_Image )ValidateWithPath (path string )error {for _aabc ,_fdeg :=range _bcfdf .EG_ShapeElements {if _adagg :=_fdeg .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_aabc ));_adagg !=nil {return _adagg ;};};if _fbab :=_bcfdf .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fbab !=nil {return _fbab ;};if _abfd :=_bcfdf .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_abfd !=nil {return _abfd ;};if _dadgc :=_bcfdf .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_dadgc !=nil {return _dadgc ;};if _baafa :=_bcfdf .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_baafa !=nil {return _baafa ;};if _bedd :=_bcfdf .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bedd !=nil {return _bedd ;};if _adac :=_bcfdf .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_adac !=nil {return _adac ;};if _ccgbb :=_bcfdf .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_ccgbb !=nil {return _ccgbb ;};if _gcae :=_bcfdf .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gcae !=nil {return _gcae ;};if _defae :=_bcfdf .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_defae !=nil {return _defae ;};if _fcba :=_bcfdf .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fcba !=nil {return _fcba ;};if _ceda :=_bcfdf .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_ceda !=nil {return _ceda ;};if _acee :=_bcfdf .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_acee !=nil {return _acee ;};if _eafef :=_bcfdf .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_eafef !=nil {return _eafef ;};if _dgag :=_bcfdf .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_dgag !=nil {return _dgag ;};if _efcb :=_bcfdf .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_efcb !=nil {return _efcb ;};if _fccbd :=_bcfdf .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fccbd !=nil {return _fccbd ;};if _fbfbg :=_bcfdf .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_fbfbg !=nil {return _fbfbg ;};if _eaaab :=_bcfdf .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_eaaab !=nil {return _eaaab ;};if _gafcgb :=_bcfdf .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gafcgb !=nil {return _gafcgb ;};if _fcab :=_bcfdf .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_fcab !=nil {return _fcab ;};if _aaaa :=_bcfdf .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_aaaa !=nil {return _aaaa ;};if _gggg :=_bcfdf .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_gggg !=nil {return _gggg ;};if _ffgfd :=_bcfdf .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// Validate validates the OfcCT_Rules and its children
|
|
|
|
func (_cebge *OfcCT_Rules )Validate ()error {return _cebge .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0052\u0075\u006c\u0065\u0073");};func (_fcge *CT_Formulas )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fdea :for {_fgba ,_bega :=d .Token ();if _bega !=nil {return _bega ;};switch _eaddf :=_fgba .(type ){case _c .StartElement :switch _eaddf .Name {case _c .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"}:_babd :=NewCT_F ();if _caba :=d .DecodeElement (_babd ,&_eaddf );_caba !=nil {return _caba ;};_fcge .F =append (_fcge .F ,_babd );default:_ce .Log .Debug ("\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",_eaddf .Name );if _cdbb :=d .Skip ();_cdbb !=nil {return _cdbb ;};};case _c .EndElement :break _fdea ;case _c .CharData :};};return nil ;};func (_dgagg *Formulas )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dgagg .CT_Formulas =*NewCT_Formulas ();_ecbe :for {_edcfb ,_gcffb :=d .Token ();if _gcffb !=nil {return _gcffb ;};switch _gdbafb :=_edcfb .(type ){case _c .StartElement :switch _gdbafb .Name {case _c .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"}:_ccbdd :=NewCT_F ();if _dfbge :=d .DecodeElement (_ccbdd ,&_gdbafb );_dfbge !=nil {return _dfbge ;};_dgagg .F =append (_dgagg .F ,_ccbdd );default:_ce .Log .Debug ("\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",_gdbafb .Name );if _agebf :=d .Skip ();_agebf !=nil {return _agebf ;};};case _c .EndElement :break _ecbe ;case _c .CharData :};};return nil ;};func (_cbfgd *OfcCT_ShapeDefaults )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0073h\u0061\u0070\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073";};if _cbfgd .SpidmaxAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073p\u0069\u0064\u006d\u0061\u0078"},Value :_e .Sprintf ("\u0025\u0076",*_cbfgd .SpidmaxAttr )});};if _cbfgd .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cbfgd .StyleAttr )});};if _cbfgd .FillAttr !=_g .ST_TrueFalseUnset {_daca ,_aafgf :=_cbfgd .FillAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c"});if _aafgf !=nil {return _aafgf ;};start .Attr =append (start .Attr ,_daca );};if _cbfgd .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_cbfgd .FillcolorAttr )});};if _cbfgd .StrokeAttr !=_g .ST_TrueFalseUnset {_bggdgf ,_edcad :=_cbfgd .StrokeAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0074\u0072\u006f\u006b\u0065"});if _edcad !=nil {return _edcad ;};start .Attr =append (start .Attr ,_bggdgf );};if _cbfgd .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_cbfgd .StrokecolorAttr )});};if _cbfgd .AllowincellAttr !=_g .ST_TrueFalseUnset {_gebffa ,_cbbea :=_cbfgd .AllowincellAttr .MarshalXMLAttr (_c .Name {Local :"a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"});if _cbbea !=nil {return _cbbea ;};start .Attr =append (start .Attr ,_gebffa );};if _cbfgd .ExtAttr !=ST_ExtUnset {_bgecf ,_bdbce :=_cbfgd .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Skew and its children, prefixing error messages with path
|
|
|
|
func (_fcdce *OfcCT_Skew )ValidateWithPath (path string )error {if _ccfea :=_fcdce .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_ccfea !=nil {return _ccfea ;};if _eabeg :=_fcdce .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_eabeg !=nil {return _eabeg ;};return nil ;};func NewOfcCT_ShapeLayout ()*OfcCT_ShapeLayout {_fagg :=&OfcCT_ShapeLayout {};return _fagg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_R and its children, prefixing error messages with path
|
|
|
|
func (_fgebae *OfcCT_R )ValidateWithPath (path string )error {if _dceac :=_fgebae .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_dceac !=nil {return _dceac ;};if _gefag :=_fgebae .HowAttr .ValidateWithPath (path +"\u002f\u0048\u006f\u0077\u0041\u0074\u0074\u0072");_gefag !=nil {return _gefag ;};for _acgb ,_abbcf :=range _fgebae .Proxy {if _cdfdb :=_abbcf .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fP\u0072\u006f\u0078\u0079\u005b\u0025\u0064\u005d",path ,_acgb ));_cdfdb !=nil {return _cdfdb ;};};return nil ;};func (_fbcga OfcST_OLEType )ValidateWithPath (path string )error {switch _fbcga {case 0,1,2:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fbcga ));};return nil ;};func (_gbbed *Curve )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _gbbed .CT_Curve .MarshalXML (e ,start );};type OfcST_ConnectType byte ;func (_bebec ST_StrokeArrowWidth )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_ccdacf :=_c .Attr {};_ccdacf .Name =name ;switch _bebec {case ST_StrokeArrowWidthUnset :_ccdacf .Value ="";case ST_StrokeArrowWidthNarrow :_ccdacf .Value ="\u006e\u0061\u0072\u0072\u006f\u0077";case ST_StrokeArrowWidthMedium :_ccdacf .Value ="\u006d\u0065\u0064\u0069\u0075\u006d";case ST_StrokeArrowWidthWide :_ccdacf .Value ="\u0077\u0069\u0064\u0065";};return _ccdacf ,nil ;};func NewOfcCT_Complex ()*OfcCT_Complex {_edeee :=&OfcCT_Complex {};return _edeee };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Path and its children, prefixing error messages with path
|
|
|
|
func (_acabe *Path )ValidateWithPath (path string )error {if _bedf :=_acabe .CT_Path .ValidateWithPath (path );_bedf !=nil {return _bedf ;};return nil ;};func (_fedcf ST_StrokeLineStyle )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gbfbb :=_c .Attr {};_gbfbb .Name =name ;switch _fedcf {case ST_StrokeLineStyleUnset :_gbfbb .Value ="";case ST_StrokeLineStyleSingle :_gbfbb .Value ="\u0073\u0069\u006e\u0067\u006c\u0065";case ST_StrokeLineStyleThinThin :_gbfbb .Value ="\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e";case ST_StrokeLineStyleThinThick :_gbfbb .Value ="\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k";case ST_StrokeLineStyleThickThin :_gbfbb .Value ="\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n";case ST_StrokeLineStyleThickBetweenThin :_gbfbb .Value ="\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e";};return _gbfbb ,nil ;};type OfcST_ConnectorType byte ;func (_begffb OfcST_How )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_fffca :=_c .Attr {};_fffca .Name =name ;switch _begffb {case OfcST_HowUnset :_fffca .Value ="";case OfcST_HowTop :_fffca .Value ="\u0074\u006f\u0070";case OfcST_HowMiddle :_fffca .Value ="\u006d\u0069\u0064\u0064\u006c\u0065";case OfcST_HowBottom :_fffca .Value ="\u0062\u006f\u0074\u0074\u006f\u006d";case OfcST_HowLeft :_fffca .Value ="\u006c\u0065\u0066\u0074";case OfcST_HowCenter :_fffca .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";case OfcST_HowRight :_fffca .Value ="\u0072\u0069\u0067h\u0074";};return _fffca ,nil ;};func (_bddf *AG_Path )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _bddf .PathAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u0061\u0074\u0068"},Value :_e .Sprintf ("\u0025\u0076",*_bddf .PathAttr )});};return nil ;};type AG_OfficeShapeAttributes struct{SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _g .ST_TrueFalse ;OleiconAttr _g .ST_TrueFalse ;OleAttr _g .ST_TrueFalseBlank ;PreferrelativeAttr _g .ST_TrueFalse ;CliptowrapAttr _g .ST_TrueFalse ;ClipAttr _g .ST_TrueFalse ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the Shadow and its children, prefixing error messages with path
|
|
|
|
func (_abega *Shadow )ValidateWithPath (path string )error {if _bcbcc :=_abega .CT_Shadow .ValidateWithPath (path );_bcbcc !=nil {return _bcbcc ;};return nil ;};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Rules and its children, prefixing error messages with path
|
|
|
|
func (_dddcb *OfcCT_Rules )ValidateWithPath (path string )error {for _afebf ,_geccd :=range _dddcb .R {if _dfbef :=_geccd .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0052\u005b\u0025\u0064\u005d",path ,_afebf ));_dfbef !=nil {return _dfbef ;};};if _fegac :=_dddcb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fegac !=nil {return _fegac ;};return nil ;};func (_ebbbc ST_StrokeEndCap )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gffed :=_c .Attr {};_gffed .Name =name ;switch _ebbbc {case ST_StrokeEndCapUnset :_gffed .Value ="";case ST_StrokeEndCapFlat :_gffed .Value ="\u0066\u006c\u0061\u0074";case ST_StrokeEndCapSquare :_gffed .Value ="\u0073\u0071\u0075\u0061\u0072\u0065";case ST_StrokeEndCapRound :_gffed .Value ="\u0072\u006f\u0075n\u0064";};return _gffed ,nil ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
// ValidateWithPath validates the OfcCallout and its children, prefixing error messages with path
|
|
|
|
func (_fgacg *OfcCallout )ValidateWithPath (path string )error {if _dgcgf :=_fgacg .OfcCT_Callout .ValidateWithPath (path );_dgcgf !=nil {return _dgcgf ;};return nil ;};const (ST_StrokeJoinStyleUnset ST_StrokeJoinStyle =0;ST_StrokeJoinStyleRound ST_StrokeJoinStyle =1;ST_StrokeJoinStyleBevel ST_StrokeJoinStyle =2;ST_StrokeJoinStyleMiter ST_StrokeJoinStyle =3;);func init (){_f .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 );_f .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 );_f .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 );_f .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 );_f .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 );_f .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 );_f .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 );_f .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 );_f .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 );_f .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 );_f .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 );_f .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u00
|