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-12-06 11:56:49 +00:00
|
|
|
package vml ;import (_a "encoding/xml";_f "fmt";_ge "github.com/unidoc/unioffice";_ag "github.com/unidoc/unioffice/common/logger";_c "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";_cb "github.com/unidoc/unioffice/schema/soo/wml";_b "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/excel";_fg "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/powerpoint";_e "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/word";_gc "strconv";);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-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Textbox and its children, prefixing error messages with path
|
|
|
|
func (_ggcgb *Textbox )ValidateWithPath (path string )error {if _caedb :=_ggcgb .CT_Textbox .ValidateWithPath (path );_caedb !=nil {return _caedb ;};return nil ;};func (_aaaee *ST_Ext )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_aaaee =0;case "\u0076\u0069\u0065\u0077":*_aaaee =1;case "\u0065\u0064\u0069\u0074":*_aaaee =2;case "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065":*_aaaee =3;};return nil ;};func (_dfgge *OfcCallout )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _dfgge .OfcCT_Callout .MarshalXML (e ,start );};func (_cgg *AG_Id )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_feea :=range start .Attr {if _feea .Name .Local =="\u0069\u0064"{_bbe ,_gea :=_feea .Value ,error (nil );if _gea !=nil {return _gea ;};_cgg .IdAttr =&_bbe ;continue ;};};for {_bbcd ,_bde :=d .Token ();if _bde !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005f\u0049d\u003a\u0020\u0025\u0073",_bde );};if _ada ,_gbf :=_bbcd .(_a .EndElement );_gbf &&_ada .Name ==start .Name {break ;};};return nil ;};const (ST_FillTypeUnset ST_FillType =0;ST_FillTypeSolid ST_FillType =1;ST_FillTypeGradient ST_FillType =2;ST_FillTypeGradientRadial ST_FillType =3;ST_FillTypeTile ST_FillType =4;ST_FillTypePattern ST_FillType =5;ST_FillTypeFrame ST_FillType =6;);type ST_StrokeArrowType byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcExtrusion and its children, prefixing error messages with path
|
|
|
|
func (_efeabd *OfcExtrusion )ValidateWithPath (path string )error {if _ceddc :=_efeabd .OfcCT_Extrusion .ValidateWithPath (path );_ceddc !=nil {return _ceddc ;};return nil ;};func (_cgfcc *Rect )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _cgfcc .CT_Rect .MarshalXML (e ,start );};func (_daeec *Shadow )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_daeec .CT_Shadow =*NewCT_Shadow ();for _ ,_cfag :=range start .Attr {if _cfag .Name .Local =="\u006f\u006e"{_daeec .OnAttr .UnmarshalXMLAttr (_cfag );continue ;};if _cfag .Name .Local =="\u0074\u0079\u0070\u0065"{_daeec .TypeAttr .UnmarshalXMLAttr (_cfag );continue ;};if _cfag .Name .Local =="\u006f\u0062\u0073\u0063\u0075\u0072\u0065\u0064"{_daeec .ObscuredAttr .UnmarshalXMLAttr (_cfag );continue ;};if _cfag .Name .Local =="\u0063\u006f\u006co\u0072"{_eged ,_dfbb :=_cfag .Value ,error (nil );if _dfbb !=nil {return _dfbb ;};_daeec .ColorAttr =&_eged ;continue ;};if _cfag .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_aeabb ,_fbgg :=_cfag .Value ,error (nil );if _fbgg !=nil {return _fbgg ;};_daeec .OpacityAttr =&_aeabb ;continue ;};if _cfag .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_cafeg ,_egcce :=_cfag .Value ,error (nil );if _egcce !=nil {return _egcce ;};_daeec .OffsetAttr =&_cafeg ;continue ;};if _cfag .Name .Local =="\u0063\u006f\u006c\u006f\u0072\u0032"{_dgeaaa ,_dbbd :=_cfag .Value ,error (nil );if _dbbd !=nil {return _dbbd ;};_daeec .Color2Attr =&_dgeaaa ;continue ;};if _cfag .Name .Local =="\u006ff\u0066\u0073\u0065\u0074\u0032"{_cabca ,_cbbfaf :=_cfag .Value ,error (nil );if _cbbfaf !=nil {return _cbbfaf ;};_daeec .Offset2Attr =&_cabca ;continue ;};if _cfag .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_aecfa ,_ebacc :=_cfag .Value ,error (nil );if _ebacc !=nil {return _ebacc ;};_daeec .OriginAttr =&_aecfa ;continue ;};if _cfag .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_dbcgfc ,_agcec :=_cfag .Value ,error (nil );if _agcec !=nil {return _agcec ;};_daeec .MatrixAttr =&_dbcgfc ;continue ;};if _cfag .Name .Local =="\u0069\u0064"{_acfgd ,_gfefeb :=_cfag .Value ,error (nil );if _gfefeb !=nil {return _gfefeb ;};_daeec .IdAttr =&_acfgd ;continue ;};};for {_beced ,_gceea :=d .Token ();if _gceea !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0053h\u0061\u0064o\u0077\u003a\u0020\u0025\u0073",_gceea );};if _fgdgb ,_edgfgb :=_beced .(_a .EndElement );_edgfgb &&_fgdgb .Name ==start .Name {break ;};};return nil ;};const (OfcST_RTypeUnset OfcST_RType =0;OfcST_RTypeArc OfcST_RType =1;OfcST_RTypeCallout OfcST_RType =2;OfcST_RTypeConnector OfcST_RType =3;OfcST_RTypeAlign OfcST_RType =4;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Group and its children
|
|
|
|
func (_cggcc *Group )Validate ()error {return _cggcc .ValidateWithPath ("\u0047\u0072\u006fu\u0070")};func (_ccbdd *Path )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _ccbdd .CT_Path .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_Path and its children, prefixing error messages with path
|
|
|
|
func (_aefg *AG_Path )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Handles and its children
|
|
|
|
func (_aaabb *CT_Handles )Validate ()error {return _aaabb .ValidateWithPath ("\u0043\u0054\u005f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");};func (_edaf *CT_Arc )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ecagc :=range start .Attr {if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_edaf .UserdrawnAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_edaf .ButtonAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_edaf .DgmlayoutmruAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_edaf .UserhiddenAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_edaf .CliptowrapAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_edaf .BulletAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u006f\u006c\u0065"{_edaf .OleAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0068\u0072"{_edaf .HrAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0073\u0070\u0069\u0064"{_dced ,_dacf :=_ecagc .Value ,error (nil );if _dacf !=nil {return _dacf ;};_edaf .SpidAttr =&_dced ;continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecagc .Name .Local =="\u0068\u0072\u0073t\u0064"{_edaf .HrstdAttr .UnmarshalXMLAttr (_ecagc );continue ;};if _ecagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Image and its children
|
|
|
|
func (_fffg *CT_Image )Validate ()error {return _fffg .ValidateWithPath ("\u0043\u0054\u005f\u0049\u006d\u0061\u0067\u0065");};func (_dgcg OfcST_ConnectorType )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_dgcg .String (),start );};func (_cdcd *AG_Style )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_bgf :=range start .Attr {if _bgf .Name .Local =="\u0073\u0074\u0079l\u0065"{_eggc ,_gfe :=_bgf .Value ,error (nil );if _gfe !=nil {return _gfe ;};_cdcd .StyleAttr =&_eggc ;continue ;};};for {_degcc ,_gbdb :=d .Token ();if _gbdb !=nil {return _f .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005fS\u0074\u0079\u006c\u0065: \u0025\u0073",_gbdb );};if _cffg ,_deaa :=_degcc .(_a .EndElement );_deaa &&_cffg .Name ==start .Name {break ;};};return nil ;};func NewCT_PolyLine ()*CT_PolyLine {_face :=&CT_PolyLine {};return _face };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcClippath and its children, prefixing error messages with path
|
|
|
|
func (_bdeg *OfcClippath )ValidateWithPath (path string )error {if _acfga :=_bdeg .OfcCT_ClipPath .ValidateWithPath (path );_acfga !=nil {return _acfga ;};return nil ;};type Shape struct{CT_Shape };func (_egedd *Shape )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _egedd .CT_Shape .MarshalXML (e ,start );};func (_cabfg OfcST_DiagramLayout )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_cabfg .String (),start );};func NewAG_Fill ()*AG_Fill {_agff :=&AG_Fill {};return _agff };type CT_Handles struct{H []*CT_H ;};func (_dfdfa *OfcSignatureline )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065";return _dfdfa .OfcCT_SignatureLine .MarshalXML (e ,start );};type CT_Textbox struct{InsetAttr *string ;SingleclickAttr _c .ST_TrueFalse ;InsetmodeAttr OfcST_InsetMode ;TxbxContent *_cb .TxbxContent ;Any _ge .Any ;IdAttr *string ;StyleAttr *string ;};func NewAG_Path ()*AG_Path {_cgfe :=&AG_Path {};return _cgfe };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_edb *AG_OfficeShapeAttributes )ValidateWithPath (path string )error {if _cea :=_edb .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_cea !=nil {return _cea ;};if _gbabd :=_edb .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_gbabd !=nil {return _gbabd ;};if _ccfe :=_edb .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ccfe !=nil {return _ccfe ;};if _fdaa :=_edb .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_fdaa !=nil {return _fdaa ;};if _aed :=_edb .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_aed !=nil {return _aed ;};if _bff :=_edb .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_bff !=nil {return _bff ;};if _bbed :=_edb .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_bbed !=nil {return _bbed ;};if _dgcc :=_edb .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_dgcc !=nil {return _dgcc ;};if _fcdc :=_edb .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_fcdc !=nil {return _fcdc ;};if _ggea :=_edb .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_ggea !=nil {return _ggea ;};return nil ;};func (_gceca ST_ShadowType )Validate ()error {return _gceca .ValidateWithPath ("")};func (_eceddc OfcST_ColorMode )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_eceddc .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcInk and its children, prefixing error messages with path
|
|
|
|
func (_fbafe *OfcInk )ValidateWithPath (path string )error {if _degab :=_fbafe .OfcCT_Ink .ValidateWithPath (path );_degab !=nil {return _degab ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-09-02 11:46:53 +00:00
|
|
|
// ValidateWithPath validates the CT_Handles and its children, prefixing error messages with path
|
2022-12-06 11:56:49 +00:00
|
|
|
func (_bcga *CT_Handles )ValidateWithPath (path string )error {for _ebed ,_bffb :=range _bcga .H {if _fafgf :=_bffb .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0048\u005b\u0025\u0064\u005d",path ,_ebed ));_fafgf !=nil {return _fafgf ;};};return nil ;};func (_dgaa *OfcCT_Entry )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0065\u006e\u0074\u0072\u0079";};if _dgaa .NewAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006e\u0065\u0077"},Value :_f .Sprintf ("\u0025\u0076",*_dgaa .NewAttr )});};if _dgaa .OldAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u006c\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_dgaa .OldAttr )});};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewOfcLock ()*OfcLock {_fedga :=&OfcLock {};_fedga .OfcCT_Lock =*NewOfcCT_Lock ();return _fedga };type Roundrect struct{CT_RoundRect };func (_afgcfg ST_StrokeEndCap )ValidateWithPath (path string )error {switch _afgcfg {case 0,1,2,3:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_afgcfg ));};return nil ;};func NewCT_Oval ()*CT_Oval {_cgaeb :=&CT_Oval {};return _cgaeb };func (_fdbaeg *OfcST_OLEUpdateMode )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_fdbaeg =0;case "\u0041\u006c\u0077\u0061\u0079\u0073":*_fdbaeg =1;case "\u004f\u006e\u0043\u0061\u006c\u006c":*_fdbaeg =2;};return nil ;};func (_gadaa *ST_StrokeArrowType )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_aefgf ,_fggfd :=d .Token ();if _fggfd !=nil {return _fggfd ;};if _cbeda ,_cfca :=_aefgf .(_a .EndElement );_cfca &&_cbeda .Name ==start .Name {*_gadaa =1;return nil ;};if _eaba ,_cddfc :=_aefgf .(_a .CharData );!_cddfc {return _f .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",_aefgf );}else {switch string (_eaba ){case "":*_gadaa =0;case "\u006e\u006f\u006e\u0065":*_gadaa =1;case "\u0062\u006c\u006fc\u006b":*_gadaa =2;case "\u0063l\u0061\u0073\u0073\u0069\u0063":*_gadaa =3;case "\u006f\u0076\u0061\u006c":*_gadaa =4;case "\u0064i\u0061\u006d\u006f\u006e\u0064":*_gadaa =5;case "\u006f\u0070\u0065\u006e":*_gadaa =6;};};_aefgf ,_fggfd =d .Token ();if _fggfd !=nil {return _fggfd ;};if _degfee ,_bcfcd :=_aefgf .(_a .EndElement );_bcfcd &&_degfee .Name ==start .Name {return nil ;};return _f .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",_aefgf );};type OfcLeft struct{OfcCT_StrokeChild };func (_gcfef *OfcBottom )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_gcfef .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_cfbda :=range start .Attr {if _cfbda .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbda .Name .Local =="\u0068\u0072\u0065\u0066"{_fcgbc ,_bdade :=_cfbda .Value ,error (nil );if _bdade !=nil {return _bdade ;};_gcfef .HrefAttr =&_fcgbc ;continue ;};if _cfbda .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbda .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_gcfef .ForcedashAttr .UnmarshalXMLAttr (_cfbda );continue ;};if _cfbda .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbda .Name .Local =="\u0074\u0069\u0074l\u0065"{_adefd ,_e
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcShapelayout and its children, prefixing error messages with path
|
|
|
|
func (_egdfg *OfcShapelayout )ValidateWithPath (path string )error {if _cbeag :=_egdfg .OfcCT_ShapeLayout .ValidateWithPath (path );_cbeag !=nil {return _cbeag ;};return nil ;};func (_cf *AG_AllCoreAttributes )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ed :=range start .Attr {if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_cf .BulletAttr .UnmarshalXMLAttr (_ed );continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="\u006f\u006e\u0065\u0064"{_cf .OnedAttr .UnmarshalXMLAttr (_ed );continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_cf .AllowincellAttr .UnmarshalXMLAttr (_ed );continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_aae ,_gde :=_gc .ParseInt (_ed .Value ,10,64);if _gde !=nil {return _gde ;};_cf .RegroupidAttr =&_aae ;continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="d\u0067\u006d\u006e\u006f\u0064\u0065\u006b\u0069\u006e\u0064"{_bfga ,_dg :=_gc .ParseInt (_ed .Value ,10,64);if _dg !=nil {return _dg ;};_cf .DgmnodekindAttr =&_bfga ;continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_cf .DoubleclicknotifyAttr .UnmarshalXMLAttr (_ed );continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="\u0062\u006fr\u0064\u0065\u0072r\u0069\u0067\u0068\u0074\u0063\u006f\u006c\u006f\u0072"{_dd ,_cba :=_ed .Value ,error (nil );if _cba !=nil {return _cba ;};_cf .BorderrightcolorAttr =&_dd ;continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_cf .ButtonAttr .UnmarshalXMLAttr (_ed );continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ed .Name .Local =="\u0062o\u0072d\u0065\u0072\u006c\u0065\u0066\u0074\u0063\u006f\u006c\u006f\u0072"{_gg ,_gab :=_ed .Value ,error (nil );if _gab !=nil {return _gab ;};_cf .BorderleftcolorAttr =&_gg ;continue ;};if _ed .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcSignatureline and its children, prefixing error messages with path
|
|
|
|
func (_ebega *OfcSignatureline )ValidateWithPath (path string )error {if _ccfcbb :=_ebega .OfcCT_SignatureLine .ValidateWithPath (path );_ccfcbb !=nil {return _ccfcbb ;};return nil ;};type OfcST_BWMode byte ;func (_ebebe *Group )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _ebebe .CT_Group .MarshalXML (e ,start );};func (_bbead *ST_EditAs )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fbfd ,_abdaae :=d .Token ();if _abdaae !=nil {return _abdaae ;};if _gecdfe ,_bafcf :=_fbfd .(_a .EndElement );_bafcf &&_gecdfe .Name ==start .Name {*_bbead =1;return nil ;};if _fffag ,_bcffbc :=_fbfd .(_a .CharData );!_bcffbc {return _f .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",_fbfd );}else {switch string (_fffag ){case "":*_bbead =0;case "\u0063\u0061\u006e\u0076\u0061\u0073":*_bbead =1;case "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074":*_bbead =2;case "\u0072\u0061\u0064\u0069\u0061\u006c":*_bbead =3;case "\u0063\u0079\u0063l\u0065":*_bbead =4;case "\u0073t\u0061\u0063\u006b\u0065\u0064":*_bbead =5;case "\u0076\u0065\u006e\u006e":*_bbead =6;case "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065":*_bbead =7;};};_fbfd ,_abdaae =d .Token ();if _abdaae !=nil {return _abdaae ;};if _cgabcc ,_eabb :=_fbfd .(_a .EndElement );_eabb &&_cgabcc .Name ==start .Name {return nil ;};return _f .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",_fbfd );};func (_ggedd *Textbox )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ggedd .CT_Textbox =*NewCT_Textbox ();for _ ,_beagc :=range start .Attr {if _beagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beagc .Name .Local =="s\u0069\u006e\u0067\u006c\u0065\u0063\u006c\u0069\u0063\u006b"{_ggedd .SingleclickAttr .UnmarshalXMLAttr (_beagc );continue ;};if _beagc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_beagc .Name .Local =="\u0069n\u0073\u0065\u0074\u006d\u006f\u0064e"{_ggedd .InsetmodeAttr .UnmarshalXMLAttr (_beagc );continue ;};if _beagc .Name .Local =="\u0069\u006e\u0073e\u0074"{_gaec ,_gdgda :=_beagc .Value ,error (nil );if _gdgda !=nil {return _gdgda ;};_ggedd .InsetAttr =&_gaec ;continue ;};if _beagc .Name .Local =="\u0069\u0064"{_eaea ,_acbda :=_beagc .Value ,error (nil );if _acbda !=nil {return _acbda ;};_ggedd .IdAttr =&_eaea ;continue ;};if _beagc .Name .Local =="\u0073\u0074\u0079l\u0065"{_ddgfe ,_aefca :=_beagc .Value ,error (nil );if _aefca !=nil {return _aefca ;};_ggedd .StyleAttr =&_ddgfe ;continue ;};};_ddfce :for {_abgcd ,_gefc :=d .Token ();if _gefc !=nil {return _gefc ;};switch _egdabd :=_abgcd .(type ){case _a .StartElement :switch _egdabd .Name {case _a .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"},_a .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"}:_ggedd .TxbxContent =_cb .NewTxbxContent ();if _aeabda :=d .DecodeElement (_ggedd .TxbxContent ,&_egdabd );_aeabda !=nil {return _aeabda ;};d
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_fabfb *CT_Shapetype )ValidateWithPath (path string )error {for _bbcab ,_gffab :=range _fabfb .EG_ShapeElements {if _ceafd :=_gffab .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bbcab ));_ceafd !=nil {return _ceafd ;};};if _fabfb .Complex !=nil {if _gbdgf :=_fabfb .Complex .ValidateWithPath (path +"\u002f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");_gbdgf !=nil {return _gbdgf ;};};if _ebcbf :=_fabfb .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ebcbf !=nil {return _ebcbf ;};if _aebc :=_fabfb .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_aebc !=nil {return _aebc ;};if _abbe :=_fabfb .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_abbe !=nil {return _abbe ;};if _gcfec :=_fabfb .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_gcfec !=nil {return _gcfec ;};if _agfe :=_fabfb .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_agfe !=nil {return _agfe ;};if _ddeae :=_fabfb .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ddeae !=nil {return _ddeae ;};if _cddef :=_fabfb .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cddef !=nil {return _cddef ;};if _eaac :=_fabfb .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_eaac !=nil {return _eaac ;};if _cfedd :=_fabfb .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cfedd !=nil {return _cfedd ;};if _ffbd :=_fabfb .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ffbd !=nil {return _ffbd ;};if _beeec :=_fabfb .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_beeec !=nil {return _beeec ;};if _ffbe :=_fabfb .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_ffbe !=nil {return _ffbe ;};if _fdbba :=_fabfb .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fdbba !=nil {return _fdbba ;};if _daed :=_fabfb .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_daed !=nil {return _daed ;};if _bdgbe :=_fabfb .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bdgbe !=nil {return _bdgbe ;};if _gffec :=_fabfb .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gffec !=nil {return _gffec ;};if _eegee :=_fabfb .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_eegee !=nil {return _eegee ;};if _eeeg :=_fabfb .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_eeeg !=nil {return _eeeg ;};if _ddecf :=_fabfb .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_ddecf !=nil {return _ddecf ;};if _febbe :=_fabfb .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_febbe !=nil {return _febbe ;};if _ceaaf :=_fabfb .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ceaaf !=nil {return _ceaaf ;};if _feeca :=_fabfb .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_Path and its children
|
|
|
|
func (_egc *AG_Path )Validate ()error {return _egc .ValidateWithPath ("\u0041G\u005f\u0050\u0061\u0074\u0068");};func NewCT_H ()*CT_H {_gbga :=&CT_H {};return _gbga };func NewRoundrect ()*Roundrect {_geefcb :=&Roundrect {};_geefcb .CT_RoundRect =*NewCT_RoundRect ();return _geefcb ;};type OfcDiagram struct{OfcCT_Diagram };func (_eea *AG_Chromakey )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_de :=range start .Attr {if _de .Name .Local =="\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"{_fgcg ,_daf :=_de .Value ,error (nil );if _daf !=nil {return _daf ;};_eea .ChromakeyAttr =&_fgcg ;continue ;};};for {_ddd ,_bfe :=d .Token ();if _bfe !=nil {return _f .Errorf ("\u0070a\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005f\u0043\u0068r\u006f\u006d\u0061\u006b\u0065\u0079\u003a\u0020\u0025\u0073",_bfe );};if _aaa ,_ffa :=_ddd .(_a .EndElement );_ffa &&_aaa .Name ==start .Name {break ;};};return nil ;};type OfcCT_ColorMenu struct{StrokecolorAttr *string ;FillcolorAttr *string ;ShadowcolorAttr *string ;ExtrusioncolorAttr *string ;ExtAttr ST_Ext ;};func (_aeeab *OfcST_OLEDrawAspect )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cgfdg ,_deagg :=d .Token ();if _deagg !=nil {return _deagg ;};if _geafag ,_fddc :=_cgfdg .(_a .EndElement );_fddc &&_geafag .Name ==start .Name {*_aeeab =1;return nil ;};if _bccfca ,_fgacd :=_cgfdg .(_a .CharData );!_fgacd {return _f .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",_cgfdg );}else {switch string (_bccfca ){case "":*_aeeab =0;case "\u0043o\u006e\u0074\u0065\u006e\u0074":*_aeeab =1;case "\u0049\u0063\u006f\u006e":*_aeeab =2;};};_cgfdg ,_deagg =d .Token ();if _deagg !=nil {return _deagg ;};if _beabf ,_fcagc :=_cgfdg .(_a .EndElement );_fcagc &&_beabf .Name ==start .Name {return nil ;};return _f .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",_cgfdg );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Fill and its children
|
|
|
|
func (_cedf *CT_Fill )Validate ()error {return _cedf .ValidateWithPath ("\u0043T\u005f\u0046\u0069\u006c\u006c");};func (_fceb *AG_ShapeAttributes )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_fbbag :=range start .Attr {if _fbbag .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_gcgb ,_gbcd :=_fbbag .Value ,error (nil );if _gbcd !=nil {return _gbcd ;};_fceb .OpacityAttr =&_gcgb ;continue ;};if _fbbag .Name .Local =="\u0073t\u0072\u006f\u006b\u0065\u0064"{_fceb .StrokedAttr .UnmarshalXMLAttr (_fbbag );continue ;};if _fbbag .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_dccd ,_ace :=_fbbag .Value ,error (nil );if _ace !=nil {return _ace ;};_fceb .StrokecolorAttr =&_dccd ;continue ;};if _fbbag .Name .Local =="\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"{_bcbg ,_cef :=_fbbag .Value ,error (nil );if _cef !=nil {return _cef ;};_fceb .StrokeweightAttr =&_bcbg ;continue ;};if _fbbag .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_fceb .InsetpenAttr .UnmarshalXMLAttr (_fbbag );continue ;};if _fbbag .Name .Local =="\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"{_eddb ,_efaa :=_fbbag .Value ,error (nil );if _efaa !=nil {return _efaa ;};_fceb .ChromakeyAttr =&_eddb ;continue ;};if _fbbag .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_fceb .FilledAttr .UnmarshalXMLAttr (_fbbag );continue ;};if _fbbag .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_aebe ,_gbcf :=_fbbag .Value ,error (nil );if _gbcf !=nil {return _gbcf ;};_fceb .FillcolorAttr =&_aebe ;continue ;};};for {_bgacg ,_cda :=d .Token ();if _cda !=nil {return _f .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",_cda );};if _ddaa ,_efaf :=_bgacg .(_a .EndElement );_efaf &&_ddaa .Name ==start .Name {break ;};};return nil ;};type OfcCT_Entry struct{NewAttr *int32 ;OldAttr *int32 ;};func (_fbccc OfcST_HrAlign )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_bafbdb :=_a .Attr {};_bafbdb .Name =name ;switch _fbccc {case OfcST_HrAlignUnset :_bafbdb .Value ="";case OfcST_HrAlignLeft :_bafbdb .Value ="\u006c\u0065\u0066\u0074";case OfcST_HrAlignRight :_bafbdb .Value ="\u0072\u0069\u0067h\u0074";case OfcST_HrAlignCenter :_bafbdb .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";};return _bafbdb ,nil ;};func (_daggc ST_StrokeLineStyle )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_daggc .String (),start );};type AG_CoreAttributes struct{HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _c .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;};func (_dabeaa *OfcInk )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Background and its children, prefixing error messages with path
|
|
|
|
func (_dead *CT_Background )ValidateWithPath (path string )error {if _gagg :=_dead .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_gagg !=nil {return _gagg ;};if _acfg :=_dead .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_acfg !=nil {return _acfg ;};if _cdae :=_dead .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_cdae !=nil {return _cdae ;};if _ggg :=_dead .TargetscreensizeAttr .ValidateWithPath (path +"/\u0054\u0061\u0072\u0067et\u0073c\u0072\u0065\u0065\u006e\u0073i\u007a\u0065\u0041\u0074\u0074\u0072");_ggg !=nil {return _ggg ;};if _dead .Fill !=nil {if _dbf :=_dead .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_dbf !=nil {return _dbf ;};};if _acb :=_dead .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_acb !=nil {return _acb ;};return nil ;};type Stroke struct{CT_Stroke };func (_cfgde ST_StrokeJoinStyle )Validate ()error {return _cfgde .ValidateWithPath ("")};func (_dfegc *ST_EditAs )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_dfegc =0;case "\u0063\u0061\u006e\u0076\u0061\u0073":*_dfegc =1;case "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074":*_dfegc =2;case "\u0072\u0061\u0064\u0069\u0061\u006c":*_dfegc =3;case "\u0063\u0079\u0063l\u0065":*_dfegc =4;case "\u0073t\u0061\u0063\u006b\u0065\u0064":*_dfegc =5;case "\u0076\u0065\u006e\u006e":*_dfegc =6;case "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065":*_dfegc =7;};return nil ;};type ST_EditAs byte ;func (_bgefc *OfcSkew )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _bgefc .OfcCT_Skew .MarshalXML (e ,start );};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 _c .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _c .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _c .ST_TrueFalse ;ButtonAttr _c .ST_TrueFalse ;UserhiddenAttr _c .ST_TrueFalse ;BulletAttr _c .ST_TrueFalse ;HrAttr _c .ST_TrueFalse ;HrstdAttr _c .ST_TrueFalse ;HrnoshadeAttr _c .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _c .ST_TrueFalse ;AllowoverlapAttr _c .ST_TrueFalse ;UserdrawnAttr _c .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcFill and its children, prefixing error messages with path
|
|
|
|
func (_gddcbc *OfcFill )ValidateWithPath (path string )error {if _fcgcc :=_gddcbc .OfcCT_Fill .ValidateWithPath (path );_fcgcc !=nil {return _fcgcc ;};return nil ;};type OfcCT_Fill struct{TypeAttr OfcST_FillType ;ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_Ext and its children, prefixing error messages with path
|
|
|
|
func (_acge *AG_Ext )ValidateWithPath (path string )error {if _acge .ExtAttr ==ST_ExtUnset {return _f .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 _aeb :=_acge .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_aeb !=nil {return _aeb ;};return nil ;};func (_dba *CT_Formulas )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cdbe :for {_bbbf ,_dbcdc :=d .Token ();if _dbcdc !=nil {return _dbcdc ;};switch _gebf :=_bbbf .(type ){case _a .StartElement :switch _gebf .Name {case _a .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"}:_fccg :=NewCT_F ();if _bgfb :=d .DecodeElement (_fccg ,&_gebf );_bgfb !=nil {return _bgfb ;};_dba .F =append (_dba .F ,_fccg );default:_ag .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",_gebf .Name );if _bccb :=d .Skip ();_bccb !=nil {return _bccb ;};};case _a .EndElement :break _cdbe ;case _a .CharData :};};return nil ;};func (_aecbd *ST_FillType )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_aecbd =0;case "\u0073\u006f\u006ci\u0064":*_aecbd =1;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_aecbd =2;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_aecbd =3;case "\u0074\u0069\u006c\u0065":*_aecbd =4;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_aecbd =5;case "\u0066\u0072\u0061m\u0065":*_aecbd =6;};return nil ;};func (_deagd *OfcCT_ShapeDefaults )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0073h\u0061\u0070\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073";};if _deagd .SpidmaxAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073p\u0069\u0064\u006d\u0061\u0078"},Value :_f .Sprintf ("\u0025\u0076",*_deagd .SpidmaxAttr )});};if _deagd .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_deagd .StyleAttr )});};if _deagd .FillAttr !=_c .ST_TrueFalseUnset {_eeeab ,_cedgf :=_deagd .FillAttr .MarshalXMLAttr (_a .Name {Local :"\u0066\u0069\u006c\u006c"});if _cedgf !=nil {return _cedgf ;};start .Attr =append (start .Attr ,_eeeab );};if _deagd .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_f .Sprintf ("\u0025\u0076",*_deagd .FillcolorAttr )});};if _deagd .StrokeAttr !=_c .ST_TrueFalseUnset {_bfdfb ,_eefb :=_deagd .StrokeAttr .MarshalXMLAttr (_a .Name {Local :"\u0073\u0074\u0072\u006f\u006b\u0065"});if _eefb !=nil {return _eefb ;};start .Attr =append (start .Attr ,_bfdfb );};if _deagd .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_deagd .StrokecolorAttr )});};if _deagd .AllowincellAttr !=_c .ST_TrueFalseUnset {_fcgeg ,_degbb :=_deagd .AllowincellAttr .MarshalXMLAttr (_a .Name {Local :"a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"});if _degbb !=nil {return _degbb ;};start .Attr =append (start .Attr ,_fcgeg );};if _deagd .ExtAttr !=ST_ExtUnset {_egceb ,_cbeaa :=_deagd .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _cbeaa !=nil {return _cbeaa ;};start .Attr =append (start .Attr ,_egceb );};e .EncodeToken (start );if _deagd .Fill !=nil {_cdggb :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_deagd .Fill ,_cdggb );};if _deagd .
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Fill and its children, prefixing error messages with path
|
|
|
|
func (_agbgb *Fill )ValidateWithPath (path string )error {if _bcac :=_agbgb .CT_Fill .ValidateWithPath (path );_bcac !=nil {return _bcac ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Oval and its children, prefixing error messages with path
|
|
|
|
func (_egggg *Oval )ValidateWithPath (path string )error {if _aecea :=_egggg .CT_Oval .ValidateWithPath (path );_aecea !=nil {return _aecea ;};return nil ;};func (_ddfbf *OfcCT_ClipPath )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_eeafd :=range start .Attr {if _eeafd .Name .Local =="\u0076"{_eaee ,_gfgff :=_eeafd .Value ,error (nil );if _gfgff !=nil {return _gfgff ;};_ddfbf .VAttr =_eaee ;continue ;};};for {_ecdb ,_badfaf :=d .Token ();if _badfaf !=nil {return _f .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",_badfaf );};if _ccff ,_fgbgbd :=_ecdb .(_a .EndElement );_fgbgbd &&_ccff .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Arc and its children
|
|
|
|
func (_bfef *CT_Arc )Validate ()error {return _bfef .ValidateWithPath ("\u0043\u0054\u005f\u0041\u0072\u0063");};func NewAG_OfficeCoreAttributes ()*AG_OfficeCoreAttributes {_ebfg :=&AG_OfficeCoreAttributes {};return _ebfg ;};type Shapetype struct{CT_Shapetype };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ClipPath and its children, prefixing error messages with path
|
|
|
|
func (_defbd *OfcCT_ClipPath )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMru and its children, prefixing error messages with path
|
|
|
|
func (_adbf *OfcCT_ColorMru )ValidateWithPath (path string )error {if _aaeed :=_adbf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_aaeed !=nil {return _aaeed ;};return nil ;};func (_ebafe *OfcSignatureline )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ebafe .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();for _ ,_bdfgd :=range start .Attr {if _bdfgd .Name .Local =="\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"{_fedad ,_bfccf :=_bdfgd .Value ,error (nil );if _bfccf !=nil {return _bfccf ;};_ebafe .SuggestedsignerAttr =&_fedad ;continue ;};if _bdfgd .Name .Local =="\u0069\u0064"{_cbge ,_gfafa :=_bdfgd .Value ,error (nil );if _gfafa !=nil {return _gfafa ;};_ebafe .IdAttr =&_cbge ;continue ;};if _bdfgd .Name .Local =="\u0070\u0072\u006f\u0076\u0069\u0064"{_ebdef ,_ddbac :=_bdfgd .Value ,error (nil );if _ddbac !=nil {return _ddbac ;};_ebafe .ProvidAttr =&_ebdef ;continue ;};if _bdfgd .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"{_ebafe .SigninginstructionssetAttr .UnmarshalXMLAttr (_bdfgd );continue ;};if _bdfgd .Name .Local =="\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"{_ebafe .AllowcommentsAttr .UnmarshalXMLAttr (_bdfgd );continue ;};if _bdfgd .Name .Local =="\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"{_ebafe .ShowsigndateAttr .UnmarshalXMLAttr (_bdfgd );continue ;};if _bdfgd .Name .Local =="\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"{_ebafe .IssignaturelineAttr .UnmarshalXMLAttr (_bdfgd );continue ;};if _bdfgd .Name .Local =="\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"{_dfagc ,_bfgbe :=_bdfgd .Value ,error (nil );if _bfgbe !=nil {return _bfgbe ;};_ebafe .Suggestedsigner2Attr =&_dfagc ;continue ;};if _bdfgd .Name .Local =="s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"{_gcbeg ,_cgbfd :=_bdfgd .Value ,error (nil );if _cgbfd !=nil {return _cgbfd ;};_ebafe .SuggestedsigneremailAttr =&_gcbeg ;continue ;};if _bdfgd .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"{_cbfae ,_ebege :=_bdfgd .Value ,error (nil );if _ebege !=nil {return _ebege ;};_ebafe .SigninginstructionsAttr =&_cbfae ;continue ;};if _bdfgd .Name .Local =="\u0061d\u0064\u006c\u0078\u006d\u006c"{_fbbbee ,_dbdgff :=_bdfgd .Value ,error (nil );if _dbdgff !=nil {return _dbdgff ;};_ebafe .AddlxmlAttr =&_fbbbee ;continue ;};if _bdfgd .Name .Local =="\u0073\u0069\u0067\u0070\u0072\u006f\u0076\u0075\u0072\u006c"{_gcfab ,_edbeg :=_bdfgd .Value ,error (nil );if _edbeg !=nil {return _edbeg ;};_ebafe .SigprovurlAttr =&_gcfab ;continue ;};if _bdfgd .Name .Local =="\u0065\u0078\u0074"{_ebafe .ExtAttr .UnmarshalXMLAttr (_bdfgd );continue ;};};for {_cfaag ,_fdcaea :=d .Token ();if _fdcaea !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073i\u006e\u0067\u0020\u004f\u0066\u0063\u0053\u0069\u0067\u006ea\u0074u\u0072\u0065\u006c\u0069\u006e\u0065\u003a \u0025\u0073",_fdcaea );};if _efdgce ,_cfded :=_cfaag .(_a .EndElement );_cfded &&_efdgce .Name ==start .Name {break ;};};return nil ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the EG_ShapeElements and its children
|
|
|
|
func (_ageaa *EG_ShapeElements )Validate ()error {return _ageaa .ValidateWithPath ("\u0045\u0047_\u0053\u0068\u0061p\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073");};func (_dcce ST_Ext )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_dcce .String (),start );};func (_cdfea ST_EditAs )Validate ()error {return _cdfea .ValidateWithPath ("")};func (_cegc *Curve )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _cegc .CT_Curve .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_ShapeLayout and its children
|
|
|
|
func (_aggef *OfcCT_ShapeLayout )Validate ()error {return _aggef .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004ca\u0079\u006f\u0075\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_RoundRect and its children
|
|
|
|
func (_bcfg *CT_RoundRect )Validate ()error {return _bcfg .ValidateWithPath ("\u0043\u0054\u005fR\u006f\u0075\u006e\u0064\u0052\u0065\u0063\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Shadow and its children, prefixing error messages with path
|
|
|
|
func (_efegg *Shadow )ValidateWithPath (path string )error {if _gbcgc :=_efegg .CT_Shadow .ValidateWithPath (path );_gbcgc !=nil {return _gbcgc ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_R and its children, prefixing error messages with path
|
|
|
|
func (_agee *OfcCT_R )ValidateWithPath (path string )error {if _cbaca :=_agee .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_cbaca !=nil {return _cbaca ;};if _bbfbe :=_agee .HowAttr .ValidateWithPath (path +"\u002f\u0048\u006f\u0077\u0041\u0074\u0074\u0072");_bbfbe !=nil {return _bbfbe ;};for _daceg ,_eaabe :=range _agee .Proxy {if _agdec :=_eaabe .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fP\u0072\u006f\u0078\u0079\u005b\u0025\u0064\u005d",path ,_daceg ));_agdec !=nil {return _agdec ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Rect and its children, prefixing error messages with path
|
|
|
|
func (_daege *CT_Rect )ValidateWithPath (path string )error {for _ggfc ,_gfff :=range _daege .EG_ShapeElements {if _abaaa :=_gfff .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_ggfc ));_abaaa !=nil {return _abaaa ;};};if _eafac :=_daege .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_eafac !=nil {return _eafac ;};if _ceaag :=_daege .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ceaag !=nil {return _ceaag ;};if _cdeaa :=_daege .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cdeaa !=nil {return _cdeaa ;};if _cfddf :=_daege .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cfddf !=nil {return _cfddf ;};if _defg :=_daege .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_defg !=nil {return _defg ;};if _bbcb :=_daege .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_bbcb !=nil {return _bbcb ;};if _cgbbd :=_daege .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cgbbd !=nil {return _cgbbd ;};if _cccbaf :=_daege .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_cccbaf !=nil {return _cccbaf ;};if _aeea :=_daege .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_aeea !=nil {return _aeea ;};if _dgffg :=_daege .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dgffg !=nil {return _dgffg ;};if _aaacc :=_daege .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_aaacc !=nil {return _aaacc ;};if _eded :=_daege .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_eded !=nil {return _eded ;};if _fgcd :=_daege .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fgcd !=nil {return _fgcd ;};if _bgabb :=_daege .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_bgabb !=nil {return _bgabb ;};if _adedg :=_daege .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_adedg !=nil {return _adedg ;};if _fgeg :=_daege .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fgeg !=nil {return _fgeg ;};if _ggcc :=_daege .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ggcc !=nil {return _ggcc ;};if _dgdcd :=_daege .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_dgdcd !=nil {return _dgdcd ;};if _cgee :=_daege .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_cgee !=nil {return _cgee ;};if _bdgac :=_daege .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_bdgac !=nil {return _bdgac ;};if _abff :=_daege .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_abff !=nil {return _abff ;};if _cceb :=_daege .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_cceb !=nil {return _cceb ;};if _dacc :=_daege .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Stroke and its children, prefixing error messages with path
|
|
|
|
func (_babba *Stroke )ValidateWithPath (path string )error {if _cgca :=_babba .CT_Stroke .ValidateWithPath (path );_cgca !=nil {return _cgca ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_OLEObject and its children
|
|
|
|
func (_ddcaf *OfcCT_OLEObject )Validate ()error {return _ddcaf .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u004f\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func NewOfcCT_Ink ()*OfcCT_Ink {_abaad :=&OfcCT_Ink {};return _abaad };type OfcCT_Rules struct{R []*OfcCT_R ;ExtAttr ST_Ext ;};func (_bbb *Arc )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _bbb .CT_Arc .MarshalXML (e ,start );};
|
2022-02-25 19:20:45 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Entry and its children
|
|
|
|
func (_bbge *OfcCT_Entry )Validate ()error {return _bbge .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0045\u006e\u0074\u0072\u0079");};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_OfficeShapeAttributes and its children
|
|
|
|
func (_dad *AG_OfficeShapeAttributes )Validate ()error {return _dad .ValidateWithPath ("\u0041G\u005f\u004f\u0066\u0066\u0069\u0063\u0065\u0053\u0068\u0061\u0070e\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-09-02 11:46:53 +00:00
|
|
|
// Validate validates the AG_Id and its children
|
2022-12-06 11:56:49 +00:00
|
|
|
func (_dfeb *AG_Id )Validate ()error {return _dfeb .ValidateWithPath ("\u0041\u0047\u005fI\u0064")};type Group struct{CT_Group };type OfcExtrusion struct{OfcCT_Extrusion };type Textpath struct{CT_TextPath };func (_babagd ST_StrokeArrowWidth )String ()string {switch _babagd {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 "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_ShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_eebe *AG_ShapeAttributes )ValidateWithPath (path string )error {if _aff :=_eebe .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_aff !=nil {return _aff ;};if _afd :=_eebe .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_afd !=nil {return _afd ;};if _caeg :=_eebe .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_caeg !=nil {return _caeg ;};return nil ;};func (_aacgg *CT_Shapetype )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="v\u003a\u0073\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065";};if _aacgg .MasterAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u006d\u0061\u0073\u0074\u0065\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .MasterAttr )});};if _aacgg .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .HrefAttr )});};if _aacgg .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .TargetAttr )});};if _aacgg .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .ClassAttr )});};if _aacgg .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .TitleAttr )});};if _aacgg .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .AltAttr )});};if _aacgg .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .CoordsizeAttr )});};if _aacgg .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .CoordoriginAttr )});};if _aacgg .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .WrapcoordsAttr )});};if _aacgg .PrintAttr !=_c .ST_TrueFalseUnset {_aeefd ,_addfd :=_aacgg .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _addfd !=nil {return _addfd ;};start .Attr =append (start .Attr ,_aeefd );};if _aacgg .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .IdAttr )});};if _aacgg .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .StyleAttr )});};if _aacgg .SpidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .SpidAttr )});};if _aacgg .OnedAttr !=_c .ST_TrueFalseUnset {_aafa ,_bbdc :=_aacgg .OnedAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _bbdc !=nil {return _bbdc ;};start .Attr =append (start .Attr ,_aafa );};if _aacgg .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_aacgg .RegroupidAttr )});};if _aacgg .DoubleclicknotifyAttr !=_c .ST_TrueFalseUnset {_egagb ,_gffd :=_aacgg .DoubleclicknotifyAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _gffd !=nil {return _gffd ;};start .Attr =append (start .Attr ,_egagb
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Line and its children
|
|
|
|
func (_gebb *Line )Validate ()error {return _gebb .ValidateWithPath ("\u004c\u0069\u006e\u0065")};func (_egbec *OfcST_RType )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_egbec =0;case "\u0061\u0072\u0063":*_egbec =1;case "\u0063a\u006c\u006c\u006f\u0075\u0074":*_egbec =2;case "\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr":*_egbec =3;case "\u0061\u006c\u0069g\u006e":*_egbec =4;};return nil ;};func (_eedcg *OfcComplex )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f:\u0063\u006f\u006d\u0070\u006c\u0065x";return _eedcg .OfcCT_Complex .MarshalXML (e ,start );};const (ST_StrokeEndCapUnset ST_StrokeEndCap =0;ST_StrokeEndCapFlat ST_StrokeEndCap =1;ST_StrokeEndCapSquare ST_StrokeEndCap =2;ST_StrokeEndCapRound ST_StrokeEndCap =3;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcRight and its children, prefixing error messages with path
|
|
|
|
func (_feffe *OfcRight )ValidateWithPath (path string )error {if _cfgabf :=_feffe .OfcCT_StrokeChild .ValidateWithPath (path );_cfgabf !=nil {return _cfgabf ;};return nil ;};type ST_StrokeArrowWidth byte ;func (_ccef *CT_H )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_fafda :=range start .Attr {if _fafda .Name .Local =="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"{_beaf ,_dfaga :=_fafda .Value ,error (nil );if _dfaga !=nil {return _dfaga ;};_ccef .PositionAttr =&_beaf ;continue ;};if _fafda .Name .Local =="\u0070\u006f\u006ca\u0072"{_cdgab ,_cbdb :=_fafda .Value ,error (nil );if _cbdb !=nil {return _cbdb ;};_ccef .PolarAttr =&_cdgab ;continue ;};if _fafda .Name .Local =="\u006d\u0061\u0070"{_befb ,_ceba :=_fafda .Value ,error (nil );if _ceba !=nil {return _ceba ;};_ccef .MapAttr =&_befb ;continue ;};if _fafda .Name .Local =="\u0069\u006e\u0076\u0078"{_ccef .InvxAttr .UnmarshalXMLAttr (_fafda );continue ;};if _fafda .Name .Local =="\u0069\u006e\u0076\u0079"{_ccef .InvyAttr .UnmarshalXMLAttr (_fafda );continue ;};if _fafda .Name .Local =="\u0073\u0077\u0069\u0074\u0063\u0068"{_ccef .SwitchAttr .UnmarshalXMLAttr (_fafda );continue ;};if _fafda .Name .Local =="\u0078\u0072\u0061\u006e\u0067\u0065"{_ddfd ,_fdaba :=_fafda .Value ,error (nil );if _fdaba !=nil {return _fdaba ;};_ccef .XrangeAttr =&_ddfd ;continue ;};if _fafda .Name .Local =="\u0079\u0072\u0061\u006e\u0067\u0065"{_cbeg ,_faec :=_fafda .Value ,error (nil );if _faec !=nil {return _faec ;};_ccef .YrangeAttr =&_cbeg ;continue ;};if _fafda .Name .Local =="r\u0061\u0064\u0069\u0075\u0073\u0072\u0061\u006e\u0067\u0065"{_ebgbf ,_efee :=_fafda .Value ,error (nil );if _efee !=nil {return _efee ;};_ccef .RadiusrangeAttr =&_ebgbf ;continue ;};};for {_edfg ,_gfded :=d .Token ();if _gfded !=nil {return _f .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u0043\u0054\u005f\u0048\u003a\u0020\u0025\u0073",_gfded );};if _egae ,_fdbef :=_edfg .(_a .EndElement );_fdbef &&_egae .Name ==start .Name {break ;};};return nil ;};type OfcCT_Extrusion struct{OnAttr _c .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 _c .ST_TrueFalse ;AutorotationcenterAttr _c .ST_TrueFalse ;RotationcenterAttr *string ;RotationangleAttr *string ;ColormodeAttr OfcST_ColorMode ;ColorAttr *string ;ShininessAttr *float32 ;SpecularityAttr *string ;DiffusityAttr *string ;MetalAttr _c .ST_TrueFalse ;EdgeAttr *string ;FacetAttr *string ;LightfaceAttr _c .ST_TrueFalse ;BrightnessAttr *string ;LightpositionAttr *string ;LightlevelAttr *string ;LightharshAttr _c .ST_TrueFalse ;Lightposition2Attr *string ;Lightlevel2Attr *string ;Lightharsh2Attr _c .ST_TrueFalse ;ExtAttr ST_Ext ;};type AG_Ext struct{ExtAttr ST_Ext ;};func (_gcgcec *Stroke )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_gcgcec .CT_Stroke =*NewCT_Stroke ();for _ ,_fdfcg :=range start .Attr {if _fdfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdfcg .Name .Local =="\u0072\u0065\u006ci\u0064"{_fbgef ,_ccgbf :=_fdfcg .Value ,error (nil );if _ccgbf !=nil {return _ccgbf ;};_gcgcec .RelidAttr =&_fbgef ;continue ;};if _fdfcg .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"&&_fdfcg .Name .Local =="\u0069\u0064"{_bgafba ,_ddddc :=_fdfcg .Value ,error (nil );if _ddddc !=nil {return _ddddc ;};_gcgcec .RIdAttr =&_bgafba ;con
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_Adj and its children
|
|
|
|
func (_bd *AG_Adj )Validate ()error {return _bd .ValidateWithPath ("\u0041\u0047\u005f\u0041\u0064\u006a");};func (_eacde *OfcCT_RegroupTable )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ecdeec :=range start .Attr {if _ecdeec .Name .Local =="\u0065\u0078\u0074"{_eacde .ExtAttr .UnmarshalXMLAttr (_ecdeec );continue ;};};_dcbgb :for {_dadded ,_feaea :=d .Token ();if _feaea !=nil {return _feaea ;};switch _cfgda :=_dadded .(type ){case _a .StartElement :switch _cfgda .Name {case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\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 :"\u0065\u006e\u0074r\u0079"}:_bfebc :=NewOfcCT_Entry ();if _afaee :=d .DecodeElement (_bfebc ,&_cfgda );_afaee !=nil {return _afaee ;};_eacde .Entry =append (_eacde .Entry ,_bfebc );default:_ag .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006es\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064 \u0065l\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u0067r\u006f\u0075\u0070\u0054\u0061\u0062\u006c\u0065\u0020\u0025\u0076",_cfgda .Name );if _ebdeg :=d .Skip ();_ebdeg !=nil {return _ebdeg ;};};case _a .EndElement :break _dcbgb ;case _a .CharData :};};return nil ;};func (_af *AG_CoreAttributes )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _af .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_af .HrefAttr )});};if _af .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_af .TargetAttr )});};if _af .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_af .ClassAttr )});};if _af .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_af .TitleAttr )});};if _af .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_af .AltAttr )});};if _af .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_af .CoordsizeAttr )});};if _af .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_af .CoordoriginAttr )});};if _af .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_af .WrapcoordsAttr )});};if _af .PrintAttr !=_c .ST_TrueFalseUnset {_ebc ,_cgbfa :=_af .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _cgbfa !=nil {return _cgbfa ;};start .Attr =append (start .Attr ,_ebc );};if _af .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_af .IdAttr )});};if _af .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_af .StyleAttr )});};return nil ;};func (_bceca *CT_Textbox )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_edddgc :=range start .Attr {if _edddgc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edddgc .Name .Local =="s\u0069\u006e\u0067\u006c\u0065\u0063\u006c\u0069\u0063\u006b"{_bceca .SingleclickAttr .UnmarshalXML
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_IdMap and its children
|
|
|
|
func (_gafb *OfcCT_IdMap )Validate ()error {return _gafb .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0049\u0064\u004d\u0061\u0070");};type OfcCT_OLEObject struct{TypeAttr OfcST_OLEType ;ProgIDAttr *string ;ShapeIDAttr *string ;DrawAspectAttr OfcST_OLEDrawAspect ;ObjectIDAttr *string ;IdAttr *string ;UpdateModeAttr OfcST_OLEUpdateMode ;LinkType *string ;LockedField _c .ST_TrueFalseBlank ;FieldCodes *string ;};type Curve struct{CT_Curve };const (OfcST_ExtrusionPlaneUnset OfcST_ExtrusionPlane =0;OfcST_ExtrusionPlaneXY OfcST_ExtrusionPlane =1;OfcST_ExtrusionPlaneZX OfcST_ExtrusionPlane =2;OfcST_ExtrusionPlaneYZ OfcST_ExtrusionPlane =3;);type OfcFill struct{OfcCT_Fill };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcOLEObject and its children
|
|
|
|
func (_eaedf *OfcOLEObject )Validate ()error {return _eaedf .ValidateWithPath ("\u004f\u0066\u0063O\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func (_egbdc OfcST_FillType )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_eeecd :=_a .Attr {};_eeecd .Name =name ;switch _egbdc {case OfcST_FillTypeUnset :_eeecd .Value ="";case OfcST_FillTypeGradientCenter :_eeecd .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072";case OfcST_FillTypeSolid :_eeecd .Value ="\u0073\u006f\u006ci\u0064";case OfcST_FillTypePattern :_eeecd .Value ="\u0070a\u0074\u0074\u0065\u0072\u006e";case OfcST_FillTypeTile :_eeecd .Value ="\u0074\u0069\u006c\u0065";case OfcST_FillTypeFrame :_eeecd .Value ="\u0066\u0072\u0061m\u0065";case OfcST_FillTypeGradientUnscaled :_eeecd .Value ="\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064";case OfcST_FillTypeGradientRadial :_eeecd .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case OfcST_FillTypeGradient :_eeecd .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case OfcST_FillTypeBackground :_eeecd .Value ="\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";};return _eeecd ,nil ;};func (_abbff *OfcST_ExtrusionRender )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cdgfa ,_bbdca :=d .Token ();if _bbdca !=nil {return _bbdca ;};if _ccdd ,_ffbddb :=_cdgfa .(_a .EndElement );_ffbddb &&_ccdd .Name ==start .Name {*_abbff =1;return nil ;};if _dfgac ,_fafgb :=_cdgfa .(_a .CharData );!_fafgb {return _f .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",_cdgfa );}else {switch string (_dfgac ){case "":*_abbff =0;case "\u0073\u006f\u006ci\u0064":*_abbff =1;case "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de":*_abbff =2;case "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065":*_abbff =3;};};_cdgfa ,_bbdca =d .Token ();if _bbdca !=nil {return _bbdca ;};if _dccgd ,_bfbbe :=_cdgfa .(_a .EndElement );_bfbbe &&_dccgd .Name ==start .Name {return nil ;};return _f .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",_cdgfa );};func (_aeeb *CT_ImageData )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="v\u003a\u0069\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061";};if _aeeb .EmbosscolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"e\u006d\u0062\u006f\u0073\u0073\u0063\u006f\u006c\u006f\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_aeeb .EmbosscolorAttr )});};if _aeeb .RecolortargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0072\u0065\u0063\u006f\u006c\u006f\u0072\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_aeeb .RecolortargetAttr )});};if _aeeb .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_aeeb .HrefAttr )});};if _aeeb .AlthrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f:\u0061\u006c\u0074\u0068\u0072\u0065f"},Value :_f .Sprintf ("\u0025\u0076",*_aeeb .AlthrefAttr )});};if _aeeb .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f:\u0074\u0069\u0074\u006c\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_aeeb .TitleAttr )});};if _aeeb .OleidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f:\u006f\u006c\u0065\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_aeeb .OleidAttr )});};if _aeeb .DetectmouseclickAttr !=_c .ST_TrueFalseUnset {_eeaa ,_gfebe :=_aeeb .DetectmouseclickAttr .MarshalXMLAttr (_a .Name {Local :"\u006f:\u0064e\u0074\u0065\u0063\u0074\u006do\u0075\u0073e\u0063\u006c\u0069\u0063\u006b"});if _gfebe !=nil {return _gfebe ;};start .Attr =append (start .
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Textbox and its children, prefixing error messages with path
|
|
|
|
func (_babac *CT_Textbox )ValidateWithPath (path string )error {if _cccbg :=_babac .SingleclickAttr .ValidateWithPath (path +"\u002f\u0053i\u006e\u0067\u006ce\u0063\u006c\u0069\u0063\u006b\u0041\u0074\u0074\u0072");_cccbg !=nil {return _cccbg ;};if _efgd :=_babac .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_efgd !=nil {return _efgd ;};if _babac .TxbxContent !=nil {if _ebcec :=_babac .TxbxContent .ValidateWithPath (path +"\u002f\u0054\u0078b\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074");_ebcec !=nil {return _ebcec ;};};return nil ;};func (_ffee *CT_Fill )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0066\u0069\u006c\u006c";};if _ffee .TypeAttr !=ST_FillTypeUnset {_dbe ,_gegc :=_ffee .TypeAttr .MarshalXMLAttr (_a .Name {Local :"\u0074\u0079\u0070\u0065"});if _gegc !=nil {return _gegc ;};start .Attr =append (start .Attr ,_dbe );};if _ffee .OnAttr !=_c .ST_TrueFalseUnset {_daeb ,_dfdga :=_ffee .OnAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u006e"});if _dfdga !=nil {return _dfdga ;};start .Attr =append (start .Attr ,_daeb );};if _ffee .ColorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .ColorAttr )});};if _ffee .OpacityAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .OpacityAttr )});};if _ffee .Color2Attr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0032"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .Color2Attr )});};if _ffee .SrcAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0072\u0063"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .SrcAttr )});};if _ffee .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .HrefAttr )});};if _ffee .AlthrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f:\u0061\u006c\u0074\u0068\u0072\u0065f"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .AlthrefAttr )});};if _ffee .SizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0069\u007a\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .SizeAttr )});};if _ffee .OriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .OriginAttr )});};if _ffee .PositionAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .PositionAttr )});};if _ffee .AspectAttr !=ST_ImageAspectUnset {_gafg ,_faefe :=_ffee .AspectAttr .MarshalXMLAttr (_a .Name {Local :"\u0061\u0073\u0070\u0065\u0063\u0074"});if _faefe !=nil {return _faefe ;};start .Attr =append (start .Attr ,_gafg );};if _ffee .ColorsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .ColorsAttr )});};if _ffee .AngleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006e\u0067l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .AngleAttr )});};if _ffee .AlignshapeAttr !=_c .ST_TrueFalseUnset {_ggdc ,_dbcd :=_ffee .AlignshapeAttr .MarshalXMLAttr (_a .Name {Local :"\u0061\u006c\u0069\u0067\u006e\u0073\u0068\u0061\u0070\u0065"});if _dbcd !=nil {return _dbcd ;};start .Attr =append (start .Attr ,_ggdc );};if _ffee .FocusAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066\u006f\u0063u\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_ffee .FocusAttr )});};if _ffee .FocussizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066o\u0063\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Complex and its children
|
|
|
|
func (_dagga *OfcCT_Complex )Validate ()error {return _dagga .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};func (_gdfgc *CT_PolyLine )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0070\u006f\u006c\u0079\u006c\u0069\u006e\u0065";};if _gdfgc .PointsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0070\u006f\u0069\u006e\u0074\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .PointsAttr )});};if _gdfgc .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .HrefAttr )});};if _gdfgc .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .TargetAttr )});};if _gdfgc .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .ClassAttr )});};if _gdfgc .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .TitleAttr )});};if _gdfgc .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .AltAttr )});};if _gdfgc .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .CoordsizeAttr )});};if _gdfgc .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .CoordoriginAttr )});};if _gdfgc .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .WrapcoordsAttr )});};if _gdfgc .PrintAttr !=_c .ST_TrueFalseUnset {_agfge ,_ccgb :=_gdfgc .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _ccgb !=nil {return _ccgb ;};start .Attr =append (start .Attr ,_agfge );};if _gdfgc .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .IdAttr )});};if _gdfgc .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .StyleAttr )});};if _gdfgc .SpidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .SpidAttr )});};if _gdfgc .OnedAttr !=_c .ST_TrueFalseUnset {_ggbga ,_cege :=_gdfgc .OnedAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _cege !=nil {return _cege ;};start .Attr =append (start .Attr ,_ggbga );};if _gdfgc .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_gdfgc .RegroupidAttr )});};if _gdfgc .DoubleclicknotifyAttr !=_c .ST_TrueFalseUnset {_fefc ,_gbfe :=_gdfgc .DoubleclicknotifyAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _gbfe !=nil {return _gbfe ;};start .Attr =append (start .Attr ,_fefc );};if _gdfgc .ButtonAttr !=_c .ST_TrueFalseUnset {_gbfec ,_aeebb :=_gdfgc .ButtonAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _aeebb !=nil {return _aeebb ;};start .Attr =append (start .Attr ,_gbfec );};if _gdfgc .UserhiddenAttr !=_c .ST_TrueFalseUnset {_dgef ,_eddbc :=_gdfgc .UserhiddenAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0075s\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Polyline and its children
|
|
|
|
func (_dfdaa *Polyline )Validate ()error {return _dfdaa .ValidateWithPath ("\u0050\u006f\u006c\u0079\u006c\u0069\u006e\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the EG_ShapeElements and its children, prefixing error messages with path
|
|
|
|
func (_ffccd *EG_ShapeElements )ValidateWithPath (path string )error {if _ffccd .Path !=nil {if _ceacb :=_ffccd .Path .ValidateWithPath (path +"\u002f\u0050\u0061t\u0068");_ceacb !=nil {return _ceacb ;};};if _ffccd .Formulas !=nil {if _gffdg :=_ffccd .Formulas .ValidateWithPath (path +"\u002fF\u006f\u0072\u006d\u0075\u006c\u0061s");_gffdg !=nil {return _gffdg ;};};if _ffccd .Handles !=nil {if _cdcfea :=_ffccd .Handles .ValidateWithPath (path +"\u002f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");_cdcfea !=nil {return _cdcfea ;};};if _ffccd .Fill !=nil {if _fcaf :=_ffccd .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_fcaf !=nil {return _fcaf ;};};if _ffccd .Stroke !=nil {if _egeaf :=_ffccd .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_egeaf !=nil {return _egeaf ;};};if _ffccd .Shadow !=nil {if _beefb :=_ffccd .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_beefb !=nil {return _beefb ;};};if _ffccd .Textbox !=nil {if _ddddf :=_ffccd .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_ddddf !=nil {return _ddddf ;};};if _ffccd .Textpath !=nil {if _bedb :=_ffccd .Textpath .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0070\u0061\u0074h");_bedb !=nil {return _bedb ;};};if _ffccd .Imagedata !=nil {if _gcca :=_ffccd .Imagedata .ValidateWithPath (path +"\u002f\u0049\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061");_gcca !=nil {return _gcca ;};};if _ffccd .Skew !=nil {if _caeb :=_ffccd .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_caeb !=nil {return _caeb ;};};if _ffccd .Extrusion !=nil {if _bedce :=_ffccd .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_bedce !=nil {return _bedce ;};};if _ffccd .Callout !=nil {if _fcdcb :=_ffccd .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_fcdcb !=nil {return _fcdcb ;};};if _ffccd .Lock !=nil {if _ccdcbb :=_ffccd .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_ccdcbb !=nil {return _ccdcbb ;};};if _ffccd .Clippath !=nil {if _cbeccc :=_ffccd .Clippath .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0070\u0061\u0074h");_cbeccc !=nil {return _cbeccc ;};};if _ffccd .Signatureline !=nil {if _cfdc :=_ffccd .Signatureline .ValidateWithPath (path +"\u002f\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065");_cfdc !=nil {return _cfdc ;};};if _ffccd .Wrap !=nil {if _caabe :=_ffccd .Wrap .ValidateWithPath (path +"\u002f\u0057\u0072a\u0070");_caabe !=nil {return _caabe ;};};if _ffccd .Anchorlock !=nil {if _dgcfb :=_ffccd .Anchorlock .ValidateWithPath (path +"/\u0041\u006e\u0063\u0068\u006f\u0072\u006c\u006f\u0063\u006b");_dgcfb !=nil {return _dgcfb ;};};if _ffccd .Bordertop !=nil {if _gccb :=_ffccd .Bordertop .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070");_gccb !=nil {return _gccb ;};};if _ffccd .Borderbottom !=nil {if _aacfa :=_ffccd .Borderbottom .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0062\u006f\u0074\u0074\u006f\u006d");_aacfa !=nil {return _aacfa ;};};if _ffccd .Borderleft !=nil {if _cged :=_ffccd .Borderleft .ValidateWithPath (path +"/\u0042\u006f\u0072\u0064\u0065\u0072\u006c\u0065\u0066\u0074");_cged !=nil {return _cged ;};};if _ffccd .Borderright !=nil {if _dagac :=_ffccd .Borderright .ValidateWithPath (path +"\u002f\u0042\u006fr\u0064\u0065\u0072\u0072\u0069\u0067\u0068\u0074");_dagac !=nil {return _dagac ;};};if _ffccd .ClientData !=nil {if _gecfa :=_ffccd .ClientData .ValidateWithPath (path +"/\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");_gecfa !=nil {return _gecfa ;};};if _ffccd .Textdata !=nil {if _aebdb :=_ffccd .Textdata .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0064\u0061\u0074a");_aebdb !=nil {return _aebdb ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_Chromakey and its children
|
|
|
|
func (_fce *AG_Chromakey )Validate ()error {return _fce .ValidateWithPath ("\u0041\u0047\u005fC\u0068\u0072\u006f\u006d\u0061\u006b\u0065\u0079");};func (_ecac *AG_Type )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_gdf :=range start .Attr {if _gdf .Name .Local =="\u0074\u0079\u0070\u0065"{_agde ,_aadb :=_gdf .Value ,error (nil );if _aadb !=nil {return _aadb ;};_ecac .TypeAttr =&_agde ;continue ;};};for {_gabc ,_efaeg :=d .Token ();if _efaeg !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0054\u0079\u0070\u0065\u003a\u0020\u0025\u0073",_efaeg );};if _dccb ,_acea :=_gabc .(_a .EndElement );_acea &&_dccb .Name ==start .Name {break ;};};return nil ;};type OfcBottom struct{OfcCT_StrokeChild };func (_dee *AG_ImageAttributes )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_abb :=range start .Attr {if _abb .Name .Local =="\u0073\u0072\u0063"{_cgbb ,_dgg :=_abb .Value ,error (nil );if _dgg !=nil {return _dgg ;};_dee .SrcAttr =&_cgbb ;continue ;};if _abb .Name .Local =="\u0063\u0072\u006f\u0070\u006c\u0065\u0066\u0074"{_eadg ,_faa :=_abb .Value ,error (nil );if _faa !=nil {return _faa ;};_dee .CropleftAttr =&_eadg ;continue ;};if _abb .Name .Local =="\u0063r\u006f\u0070\u0074\u006f\u0070"{_gba ,_bccf :=_abb .Value ,error (nil );if _bccf !=nil {return _bccf ;};_dee .CroptopAttr =&_gba ;continue ;};if _abb .Name .Local =="\u0063r\u006f\u0070\u0072\u0069\u0067\u0068t"{_gaaa ,_bcbc :=_abb .Value ,error (nil );if _bcbc !=nil {return _bcbc ;};_dee .CroprightAttr =&_gaaa ;continue ;};if _abb .Name .Local =="\u0063\u0072\u006f\u0070\u0062\u006f\u0074\u0074\u006f\u006d"{_bda ,_cbd :=_abb .Value ,error (nil );if _cbd !=nil {return _cbd ;};_dee .CropbottomAttr =&_bda ;continue ;};if _abb .Name .Local =="\u0067\u0061\u0069\u006e"{_fgge ,_bec :=_abb .Value ,error (nil );if _bec !=nil {return _bec ;};_dee .GainAttr =&_fgge ;continue ;};if _abb .Name .Local =="\u0062\u006c\u0061\u0063\u006b\u006c\u0065\u0076\u0065\u006c"{_afc ,_dfb :=_abb .Value ,error (nil );if _dfb !=nil {return _dfb ;};_dee .BlacklevelAttr =&_afc ;continue ;};if _abb .Name .Local =="\u0067\u0061\u006dm\u0061"{_eccb ,_dbb :=_abb .Value ,error (nil );if _dbb !=nil {return _dbb ;};_dee .GammaAttr =&_eccb ;continue ;};if _abb .Name .Local =="\u0067r\u0061\u0079\u0073\u0063\u0061\u006ce"{_dee .GrayscaleAttr .UnmarshalXMLAttr (_abb );continue ;};if _abb .Name .Local =="\u0062i\u006c\u0065\u0076\u0065\u006c"{_dee .BilevelAttr .UnmarshalXMLAttr (_abb );continue ;};};for {_ggf ,_fdag :=d .Token ();if _fdag !=nil {return _f .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",_fdag );};if _ccc ,_eega :=_ggf .(_a .EndElement );_eega &&_ccc .Name ==start .Name {break ;};};return nil ;};func NewEG_ShapeElements ()*EG_ShapeElements {_bfgaa :=&EG_ShapeElements {};return _bfgaa };func (_eagea *OfcCT_SignatureLine )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ddgge :=range start .Attr {if _ddgge .Name .Local =="\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"{_ffba ,_cecae :=_ddgge .Value ,error (nil );if _cecae !=nil {return _cecae ;};_eagea .SuggestedsignerAttr =&_ffba ;continue ;};if _ddgge .Name .Local =="\u0069\u0064"{_bbcgg ,_eaddf :=_ddgge .Value ,error (nil );if _eaddf !=nil {return _eaddf ;};_eagea .IdAttr =&_bbcgg ;continue ;};if _ddgge .Name .Local =="\u0070\u0072\u006f\u0076\u0069\u0064"{_ggefe ,_fdeee :=_ddgge .Value ,error (nil );if _fdeee !=nil {return _fdeee ;};_eagea .ProvidAttr =&_ggefe ;continue ;};if _ddgge .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"{_eagea .SigninginstructionssetAttr .UnmarshalXMLAttr (_ddgge );continue ;};if _ddgge .Name .Local =="\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"{_eagea .AllowcommentsAttr .UnmarshalXMLAttr (_ddgge );continue ;};if _ddgge .Name .Local =="\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcLeft and its children
|
|
|
|
func (_deaaed *OfcLeft )Validate ()error {return _deaaed .ValidateWithPath ("\u004ff\u0063\u004c\u0065\u0066\u0074");};func (_gfbe *OfcCT_ColorMenu )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="o\u003a\u0063\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075";};if _gfbe .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_gfbe .StrokecolorAttr )});};if _gfbe .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_f .Sprintf ("\u0025\u0076",*_gfbe .FillcolorAttr )});};if _gfbe .ShadowcolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"s\u0068\u0061\u0064\u006f\u0077\u0063\u006f\u006c\u006f\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_gfbe .ShadowcolorAttr )});};if _gfbe .ExtrusioncolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006ec\u006f\u006c\u006f\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_gfbe .ExtrusioncolorAttr )});};if _gfbe .ExtAttr !=ST_ExtUnset {_gfade ,_ebebg :=_gfbe .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _ebebg !=nil {return _ebebg ;};start .Attr =append (start .Attr ,_gfade );};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_cdbec *OfcST_FillType )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_febdg ,_bfcgd :=d .Token ();if _bfcgd !=nil {return _bfcgd ;};if _defeg ,_gbecb :=_febdg .(_a .EndElement );_gbecb &&_defeg .Name ==start .Name {*_cdbec =1;return nil ;};if _dgbc ,_aagaag :=_febdg .(_a .CharData );!_aagaag {return _f .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",_febdg );}else {switch string (_dgbc ){case "":*_cdbec =0;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072":*_cdbec =1;case "\u0073\u006f\u006ci\u0064":*_cdbec =2;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_cdbec =3;case "\u0074\u0069\u006c\u0065":*_cdbec =4;case "\u0066\u0072\u0061m\u0065":*_cdbec =5;case "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064":*_cdbec =6;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_cdbec =7;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_cdbec =8;case "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064":*_cdbec =9;};};_febdg ,_bfcgd =d .Token ();if _bfcgd !=nil {return _bfcgd ;};if _dbccc ,_dbagc :=_febdg .(_a .EndElement );_dbagc &&_dbccc .Name ==start .Name {return nil ;};return _f .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",_febdg );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Skew and its children, prefixing error messages with path
|
|
|
|
func (_bdcag *OfcCT_Skew )ValidateWithPath (path string )error {if _gacgab :=_bdcag .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_gacgab !=nil {return _gacgab ;};if _cebbc :=_bdcag .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_cebbc !=nil {return _cebbc ;};return nil ;};func (_cadba ST_StrokeJoinStyle )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_cadba .String (),start );};func (_accea *OfcST_ConnectorType )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_efgadb ,_gbcfbg :=d .Token ();if _gbcfbg !=nil {return _gbcfbg ;};if _aegff ,_bbdbe :=_efgadb .(_a .EndElement );_bbdbe &&_aegff .Name ==start .Name {*_accea =1;return nil ;};if _bdcggg ,_ebcag :=_efgadb .(_a .CharData );!_ebcag {return _f .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",_efgadb );}else {switch string (_bdcggg ){case "":*_accea =0;case "\u006e\u006f\u006e\u0065":*_accea =1;case "\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074":*_accea =2;case "\u0065\u006c\u0062o\u0077":*_accea =3;case "\u0063\u0075\u0072\u0076\u0065\u0064":*_accea =4;};};_efgadb ,_gbcfbg =d .Token ();if _gbcfbg !=nil {return _gbcfbg ;};if _eagffe ,_egbgb :=_efgadb .(_a .EndElement );_egbgb &&_eagffe .Name ==start .Name {return nil ;};return _f .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",_efgadb );};func (_dbeb *CT_Oval )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_gafdb :=range start .Attr {if _gafdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gafdb .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_gaba ,_ccedb :=_gafdb .Value ,error (nil );if _ccedb !=nil {return _ccedb ;};_dbeb .BordertopcolorAttr =&_gaba ;continue ;};if _gafdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gafdb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_dbeb .BulletAttr .UnmarshalXMLAttr (_gafdb );continue ;};if _gafdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gafdb .Name .Local =="\u0068\u0072"{_dbeb .HrAttr .UnmarshalXMLAttr (_gafdb );continue ;};if _gafdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gafdb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_dbeb .CliptowrapAttr .UnmarshalXMLAttr (_gafdb );continue ;};if _gafdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gafdb .Name .Local =="\u0068\u0072\u0073t\u0064"{_dbeb .HrstdAttr .UnmarshalXMLAttr (_gafdb );continue ;};if _gafdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gafdb .Name .Local =="\u006f\u006c\u0065"{_dbeb .OleAttr .UnmarshalXMLAttr (_gafdb );continue ;};if _gafdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Curve and its children
|
|
|
|
func (_dggd *CT_Curve )Validate ()error {return _dggd .ValidateWithPath ("\u0043\u0054\u005f\u0043\u0075\u0072\u0076\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcLeft and its children, prefixing error messages with path
|
|
|
|
func (_effc *OfcLeft )ValidateWithPath (path string )error {if _gabcg :=_effc .OfcCT_StrokeChild .ValidateWithPath (path );_gabcg !=nil {return _gabcg ;};return nil ;};type OfcColumn struct{OfcCT_StrokeChild };func (_fefbc *OfcST_ConnectType )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_fefbc =0;case "\u006e\u006f\u006e\u0065":*_fefbc =1;case "\u0072\u0065\u0063\u0074":*_fefbc =2;case "\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073":*_fefbc =3;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_fefbc =4;};return nil ;};func NewCT_Background ()*CT_Background {_gagc :=&CT_Background {};return _gagc };func (_acac *AG_Type )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _acac .TypeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_acac .TypeAttr )});};return nil ;};func (_agf *AG_AllShapeAttributes )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_egba :=range start .Attr {if _egba .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egba .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"{_agf .ConnectortypeAttr .UnmarshalXMLAttr (_egba );continue ;};if _egba .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egba .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_agf .BwpureAttr .UnmarshalXMLAttr (_egba );continue ;};if _egba .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egba .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_agf .CliptowrapAttr .UnmarshalXMLAttr (_egba );continue ;};if _egba .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egba .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_agf .PreferrelativeAttr .UnmarshalXMLAttr (_egba );continue ;};if _egba .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egba .Name .Local =="\u006f\u006c\u0065"{_agf .OleAttr .UnmarshalXMLAttr (_egba );continue ;};if _egba .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egba .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_agf .OleiconAttr .UnmarshalXMLAttr (_egba );continue ;};if _egba .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egba .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_agf .ForcedashAttr .UnmarshalXMLAttr (_egba );continue ;};if _egba .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egba .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_agf .BwnormalAttr .UnmarshalXMLAttr (_egba );continue ;};if _egba .Name .Space =="\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_StrokeAttributes and its children
|
|
|
|
func (_agfff *AG_StrokeAttributes )Validate ()error {return _agfff .ValidateWithPath ("\u0041\u0047\u005f\u0053tr\u006f\u006b\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Extrusion and its children
|
|
|
|
func (_fdeef *OfcCT_Extrusion )Validate ()error {return _fdeef .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};type ST_FillType byte ;type OfcCT_SignatureLine struct{IssignaturelineAttr _c .ST_TrueFalse ;IdAttr *string ;ProvidAttr *string ;SigninginstructionssetAttr _c .ST_TrueFalse ;AllowcommentsAttr _c .ST_TrueFalse ;ShowsigndateAttr _c .ST_TrueFalse ;SuggestedsignerAttr *string ;Suggestedsigner2Attr *string ;SuggestedsigneremailAttr *string ;SigninginstructionsAttr *string ;AddlxmlAttr *string ;SigprovurlAttr *string ;ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Complex and its children, prefixing error messages with path
|
|
|
|
func (_defdc *OfcCT_Complex )ValidateWithPath (path string )error {if _eaefe :=_defdc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_eaefe !=nil {return _eaefe ;};return nil ;};func NewOfcCT_Fill ()*OfcCT_Fill {_edbdb :=&OfcCT_Fill {};return _edbdb };func NewAG_ImageAttributes ()*AG_ImageAttributes {_ccd :=&AG_ImageAttributes {};return _ccd };func NewImage ()*Image {_eadf :=&Image {};_eadf .CT_Image =*NewCT_Image ();return _eadf };func (_affdf *OfcCT_RelationTable )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0072e\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065";};if _affdf .ExtAttr !=ST_ExtUnset {_cgbcfb ,_dgfbf :=_affdf .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dgfbf !=nil {return _dgfbf ;};start .Attr =append (start .Attr ,_cgbcfb );};e .EncodeToken (start );if _affdf .Rel !=nil {_facgb :=_a .StartElement {Name :_a .Name {Local :"\u006f\u003a\u0072e\u006c"}};for _ ,_afbec :=range _affdf .Rel {e .EncodeElement (_afbec ,_facgb );};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewAG_OfficeShapeAttributes ()*AG_OfficeShapeAttributes {_gdcb :=&AG_OfficeShapeAttributes {};return _gdcb ;};func (_bccccd *CT_RoundRect )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_agbg :=range start .Attr {if _agbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbg .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_bccccd .UserdrawnAttr .UnmarshalXMLAttr (_agbg );continue ;};if _agbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbg .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_dgcb ,_ddgb :=_agbg .Value ,error (nil );if _ddgb !=nil {return _ddgb ;};_bccccd .BordertopcolorAttr =&_dgcb ;continue ;};if _agbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbg .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_bccccd .UserhiddenAttr .UnmarshalXMLAttr (_agbg );continue ;};if _agbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbg .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_bccccd .BulletAttr .UnmarshalXMLAttr (_agbg );continue ;};if _agbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbg .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_bccccd .CliptowrapAttr .UnmarshalXMLAttr (_agbg );continue ;};if _agbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbg .Name .Local =="\u0068\u0072"{_bccccd .HrAttr .UnmarshalXMLAttr (_agbg );continue ;};if _agbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbg .Name .Local =="\u006f\u006c\u0065"{_bccccd .OleAttr .UnmarshalXMLAttr (_agbg
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_Fill and its children, prefixing error messages with path
|
|
|
|
func (_cff *AG_Fill )ValidateWithPath (path string )error {if _edcc :=_cff .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_edcc !=nil {return _edcc ;};return nil ;};func (_cbca *AG_Fill )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_befa :=range start .Attr {if _befa .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_cbca .FilledAttr .UnmarshalXMLAttr (_befa );continue ;};if _befa .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_aag ,_gfda :=_befa .Value ,error (nil );if _gfda !=nil {return _gfda ;};_cbca .FillcolorAttr =&_aag ;continue ;};};for {_agg ,_cfb :=d .Token ();if _cfb !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0046\u0069\u006c\u006c\u003a\u0020\u0025\u0073",_cfb );};if _adf ,_daff :=_agg .(_a .EndElement );_daff &&_adf .Name ==start .Name {break ;};};return nil ;};func (_cefe *CT_Rect )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0072\u0065\u0063\u0074";};if _cefe .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .HrefAttr )});};if _cefe .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .TargetAttr )});};if _cefe .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .ClassAttr )});};if _cefe .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .TitleAttr )});};if _cefe .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .AltAttr )});};if _cefe .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .CoordsizeAttr )});};if _cefe .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .CoordoriginAttr )});};if _cefe .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .WrapcoordsAttr )});};if _cefe .PrintAttr !=_c .ST_TrueFalseUnset {_afdg ,_cefb :=_cefe .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _cefb !=nil {return _cefb ;};start .Attr =append (start .Attr ,_afdg );};if _cefe .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .IdAttr )});};if _cefe .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .StyleAttr )});};if _cefe .SpidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .SpidAttr )});};if _cefe .OnedAttr !=_c .ST_TrueFalseUnset {_cedg ,_bfeff :=_cefe .OnedAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _bfeff !=nil {return _bfeff ;};start .Attr =append (start .Attr ,_cedg );};if _cefe .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_cefe .RegroupidAttr )});};if _cefe .DoubleclicknotifyAttr !=_c .ST_TrueFalseUnset {_efedbb ,_eddeb :=_cefe .DoubleclicknotifyAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Shadow and its children, prefixing error messages with path
|
|
|
|
func (_fgea *CT_Shadow )ValidateWithPath (path string )error {if _edgf :=_fgea .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_edgf !=nil {return _edgf ;};if _acbgf :=_fgea .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_acbgf !=nil {return _acbgf ;};if _ffcbe :=_fgea .ObscuredAttr .ValidateWithPath (path +"\u002f\u004f\u0062\u0073\u0063\u0075\u0072\u0065\u0064\u0041\u0074\u0074\u0072");_ffcbe !=nil {return _ffcbe ;};return nil ;};func (_afgfg OfcST_CalloutPlacement )ValidateWithPath (path string )error {switch _afgfg {case 0,1,2,3,4:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_afgfg ));};return nil ;};func (_fgcdc *OfcCT_Rules )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0072\u0075\u006c\u0065\u0073";};if _fgcdc .ExtAttr !=ST_ExtUnset {_faccf ,_gece :=_fgcdc .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _gece !=nil {return _gece ;};start .Attr =append (start .Attr ,_faccf );};e .EncodeToken (start );if _fgcdc .R !=nil {_cfdac :=_a .StartElement {Name :_a .Name {Local :"\u006f\u003a\u0072"}};for _ ,_feedc :=range _fgcdc .R {e .EncodeElement (_feedc ,_cfdac );};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type OfcInk struct{OfcCT_Ink };func (_cdgcf ST_FillMethod )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_cdgcf .String (),start );};func (_bdgbef *ST_StrokeEndCap )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fgcaf ,_fecca :=d .Token ();if _fecca !=nil {return _fecca ;};if _acccd ,_bagab :=_fgcaf .(_a .EndElement );_bagab &&_acccd .Name ==start .Name {*_bdgbef =1;return nil ;};if _cbdba ,_gagfg :=_fgcaf .(_a .CharData );!_gagfg {return _f .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",_fgcaf );}else {switch string (_cbdba ){case "":*_bdgbef =0;case "\u0066\u006c\u0061\u0074":*_bdgbef =1;case "\u0073\u0071\u0075\u0061\u0072\u0065":*_bdgbef =2;case "\u0072\u006f\u0075n\u0064":*_bdgbef =3;};};_fgcaf ,_fecca =d .Token ();if _fecca !=nil {return _fecca ;};if _cdgca ,_fdfad :=_fgcaf .(_a .EndElement );_fdfad &&_cdgca .Name ==start .Name {return nil ;};return _f .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",_fgcaf );};func (_gddad *OfcCT_Fill )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f\u003a\u0066\u0069\u006c\u006c";};if _gddad .TypeAttr !=OfcST_FillTypeUnset {_fdfgd ,_faegcd :=_gddad .TypeAttr .MarshalXMLAttr (_a .Name {Local :"\u0074\u0079\u0070\u0065"});if _faegcd !=nil {return _faegcd ;};start .Attr =append (start .Attr ,_fdfgd );};if _gddad .ExtAttr !=ST_ExtUnset {_efbag ,_dgggf :=_gddad .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dgggf !=nil {return _dgggf ;};start .Attr =append (start .Attr ,_efbag );};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_acaee OfcST_CalloutPlacement )String ()string {switch _acaee {case 0:return "";case 1:return "\u0074\u006f\u0070";case 2:return "\u0063\u0065\u006e\u0074\u0065\u0072";case 3:return "\u0062\u006f\u0074\u0074\u006f\u006d";case 4:return "\u0075\u0073\u0065\u0072";};return "";};func (_efg *AG_Id )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _efg .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_efg .IdAttr )});};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Ink and its children
|
|
|
|
func (_dgfaf *OfcCT_Ink )Validate ()error {return _dgfaf .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0049\u006ek");};func NewOfcCT_IdMap ()*OfcCT_IdMap {_dcfb :=&OfcCT_IdMap {};return _dcfb };func NewOfcDiagram ()*OfcDiagram {_cefef :=&OfcDiagram {};_cefef .OfcCT_Diagram =*NewOfcCT_Diagram ();return _cefef ;};func (_fbacdb ST_StrokeArrowLength )ValidateWithPath (path string )error {switch _fbacdb {case 0,1,2,3:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fbacdb ));};return nil ;};func (_bcbddf OfcST_FillType )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_bcbddf .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Polyline and its children, prefixing error messages with path
|
|
|
|
func (_aaeeab *Polyline )ValidateWithPath (path string )error {if _cgdde :=_aaeeab .CT_PolyLine .ValidateWithPath (path );_cgdde !=nil {return _cgdde ;};return nil ;};type OfcCT_RelationTable struct{Rel []*OfcCT_Relation ;ExtAttr ST_Ext ;};func NewCT_F ()*CT_F {_dagf :=&CT_F {};return _dagf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Entry and its children, prefixing error messages with path
|
|
|
|
func (_fdad *OfcCT_Entry )ValidateWithPath (path string )error {return nil };
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Imagedata and its children
|
|
|
|
func (_bdbef *Imagedata )Validate ()error {return _bdbef .ValidateWithPath ("\u0049m\u0061\u0067\u0065\u0064\u0061\u0074a");};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_ImageData and its children, prefixing error messages with path
|
|
|
|
func (_aaea *CT_ImageData )ValidateWithPath (path string )error {if _dfegg :=_aaea .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_dfegg !=nil {return _dfegg ;};if _cfbbc :=_aaea .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_cfbbc !=nil {return _cfbbc ;};if _ggcb :=_aaea .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_ggcb !=nil {return _ggcb ;};return nil ;};func (_ebbcb OfcST_HrAlign )ValidateWithPath (path string )error {switch _ebbcb {case 0,1,2,3:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ebbcb ));};return nil ;};func (_bdbgc *OfcCT_IdMap )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0069\u0064\u006d\u0061\u0070";};if _bdbgc .DataAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0064\u0061\u0074\u0061"},Value :_f .Sprintf ("\u0025\u0076",*_bdbgc .DataAttr )});};if _bdbgc .ExtAttr !=ST_ExtUnset {_ecgbea ,_dgacd :=_bdbgc .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dgacd !=nil {return _dgacd ;};start .Attr =append (start .Attr ,_ecgbea );};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcLock and its children
|
|
|
|
func (_cdbcc *OfcLock )Validate ()error {return _cdbcc .ValidateWithPath ("\u004ff\u0063\u004c\u006f\u0063\u006b");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Path and its children, prefixing error messages with path
|
|
|
|
func (_bade *CT_Path )ValidateWithPath (path string )error {if _bfaf :=_bade .FillokAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u006f\u006b\u0041\u0074\u0074\u0072");_bfaf !=nil {return _bfaf ;};if _facff :=_bade .StrokeokAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0072\u006f\u006b\u0065\u006f\u006b\u0041\u0074\u0074\u0072");_facff !=nil {return _facff ;};if _edbae :=_bade .ShadowokAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0064\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_edbae !=nil {return _edbae ;};if _dbfff :=_bade .ArrowokAttr .ValidateWithPath (path +"\u002f\u0041\u0072r\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_dbfff !=nil {return _dbfff ;};if _cfed :=_bade .GradientshapeokAttr .ValidateWithPath (path +"/\u0047r\u0061\u0064\u0069\u0065\u006e\u0074\u0073\u0068a\u0070\u0065\u006f\u006bAt\u0074\u0072");_cfed !=nil {return _cfed ;};if _aebg :=_bade .TextpathokAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0070\u0061\u0074\u0068\u006f\u006b\u0041\u0074\u0074\u0072");_aebg !=nil {return _aebg ;};if _feceg :=_bade .InsetpenokAttr .ValidateWithPath (path +"\u002fI\u006es\u0065\u0074\u0070\u0065\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_feceg !=nil {return _feceg ;};if _cadb :=_bade .ConnecttypeAttr .ValidateWithPath (path +"\u002f\u0043o\u006e\u006e\u0065c\u0074\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_cadb !=nil {return _cadb ;};if _bafd :=_bade .ExtrusionokAttr .ValidateWithPath (path +"\u002f\u0045x\u0074\u0072\u0075s\u0069\u006f\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_bafd !=nil {return _bafd ;};return nil ;};func (_dgead *Line )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _dgead .CT_Line .MarshalXML (e ,start );};func (_dgabg OfcST_How )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_dgabg .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Line and its children, prefixing error messages with path
|
|
|
|
func (_dgcff *Line )ValidateWithPath (path string )error {if _cdagg :=_dgcff .CT_Line .ValidateWithPath (path );_cdagg !=nil {return _cdagg ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_F and its children
|
|
|
|
func (_bfea *CT_F )Validate ()error {return _bfea .ValidateWithPath ("\u0043\u0054\u005f\u0046")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_StrokeChild and its children
|
|
|
|
func (_ffbda *OfcCT_StrokeChild )Validate ()error {return _ffbda .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0074\u0072\u006f\u006b\u0065C\u0068\u0069\u006c\u0064");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Curve and its children, prefixing error messages with path
|
|
|
|
func (_dbbg *Curve )ValidateWithPath (path string )error {if _efcfbc :=_dbbg .CT_Curve .ValidateWithPath (path );_efcfbc !=nil {return _efcfbc ;};return nil ;};func (_efcda *Shapetype )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _efcda .CT_Shapetype .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Oval and its children
|
|
|
|
func (_cecfb *Oval )Validate ()error {return _cecfb .ValidateWithPath ("\u004f\u0076\u0061\u006c")};func (_acefg *OfcExtrusion )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _acefg .OfcCT_Extrusion .MarshalXML (e ,start );};func (_egafe *OfcLeft )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 _egafe .OfcCT_StrokeChild .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Path and its children, prefixing error messages with path
|
|
|
|
func (_egcge *Path )ValidateWithPath (path string )error {if _dddfe :=_egcge .CT_Path .ValidateWithPath (path );_dddfe !=nil {return _dddfe ;};return nil ;};func (_acege OfcST_Angle )String ()string {switch _acege {case 0:return "";case 1:return "\u0061\u006e\u0079";case 2:return "\u0033\u0030";case 3:return "\u0034\u0035";case 4:return "\u0036\u0030";case 5:return "\u0039\u0030";case 6:return "\u0061\u0075\u0074\u006f";};return "";};type OfcST_ScreenSize byte ;type OfcShapelayout struct{OfcCT_ShapeLayout };func NewCT_Curve ()*CT_Curve {_cffef :=&CT_Curve {};return _cffef };func (_fdcaga *Handles )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _fdcaga .CT_Handles .MarshalXML (e ,start );};func (_fabba *CT_Formulas )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0073";};e .EncodeToken (start );if _fabba .F !=nil {_dafff :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0066"}};for _ ,_fbbb :=range _fabba .F {e .EncodeElement (_fbbb ,_dafff );};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_dfbe *CT_H )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0068";};if _dfbe .PositionAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_dfbe .PositionAttr )});};if _dfbe .PolarAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0070\u006f\u006ca\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_dfbe .PolarAttr )});};if _dfbe .MapAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006d\u0061\u0070"},Value :_f .Sprintf ("\u0025\u0076",*_dfbe .MapAttr )});};if _dfbe .InvxAttr !=_c .ST_TrueFalseUnset {_bebe ,_gbbg :=_dfbe .InvxAttr .MarshalXMLAttr (_a .Name {Local :"\u0069\u006e\u0076\u0078"});if _gbbg !=nil {return _gbbg ;};start .Attr =append (start .Attr ,_bebe );};if _dfbe .InvyAttr !=_c .ST_TrueFalseUnset {_ecccf ,_defdb :=_dfbe .InvyAttr .MarshalXMLAttr (_a .Name {Local :"\u0069\u006e\u0076\u0079"});if _defdb !=nil {return _defdb ;};start .Attr =append (start .Attr ,_ecccf );};if _dfbe .SwitchAttr !=_c .ST_TrueFalseBlankUnset {_gefb ,_dfecf :=_dfbe .SwitchAttr .MarshalXMLAttr (_a .Name {Local :"\u0073\u0077\u0069\u0074\u0063\u0068"});if _dfecf !=nil {return _dfecf ;};start .Attr =append (start .Attr ,_gefb );};if _dfbe .XrangeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0078\u0072\u0061\u006e\u0067\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_dfbe .XrangeAttr )});};if _dfbe .YrangeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0079\u0072\u0061\u006e\u0067\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_dfbe .YrangeAttr )});};if _dfbe .RadiusrangeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"r\u0061\u0064\u0069\u0075\u0073\u0072\u0061\u006e\u0067\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_dfbe .RadiusrangeAttr )});};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type OfcCT_Proxy struct{StartAttr _c .ST_TrueFalseBlank ;EndAttr _c .ST_TrueFalseBlank ;IdrefAttr *string ;ConnectlocAttr *int32 ;};func NewOfcLeft ()*OfcLeft {_geeaa :=&OfcLeft {};_geeaa .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _geeaa ;};func (_caacc OfcST_ScreenSize )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_caacc .String (),start );};func (_cdgdb *CT_Curve )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076:\u0063\u0075\u0072\u0076\u0065";};if _cdgdb .FromAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_f .Sprintf ("\u0025\u0076",*_cdgdb .FromAttr )});};if _cdgdb .Control1Attr !=nil {start .Attr =append (start .Attr ,_a .Attr
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Fill and its children
|
|
|
|
func (_gbgdb *Fill )Validate ()error {return _gbgdb .ValidateWithPath ("\u0046\u0069\u006c\u006c")};func (_caba *OfcColumn )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 _caba .OfcCT_StrokeChild .MarshalXML (e ,start );};func (_fedee *OfcCT_Skew )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f\u003a\u0073\u006b\u0065\u0077";};if _fedee .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_fedee .IdAttr )});};if _fedee .OnAttr !=_c .ST_TrueFalseUnset {_bgbea ,_gdcdg :=_fedee .OnAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u006e"});if _gdcdg !=nil {return _gdcdg ;};start .Attr =append (start .Attr ,_bgbea );};if _fedee .OffsetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u0066\u0066\u0073\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_fedee .OffsetAttr )});};if _fedee .OriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_fedee .OriginAttr )});};if _fedee .MatrixAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006d\u0061\u0074\u0072\u0069\u0078"},Value :_f .Sprintf ("\u0025\u0076",*_fedee .MatrixAttr )});};if _fedee .ExtAttr !=ST_ExtUnset {_gegcbb ,_fbdf :=_fedee .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _fbdf !=nil {return _fbdf ;};start .Attr =append (start .Attr ,_gegcbb );};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_cccbae *Formulas )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _cccbae .CT_Formulas .MarshalXML (e ,start );};fu
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Handles and its children
|
|
|
|
func (_dbafg *Handles )Validate ()error {return _dbafg .ValidateWithPath ("\u0048a\u006e\u0064\u006c\u0065\u0073");};func NewOfcBottom ()*OfcBottom {_cfbfc :=&OfcBottom {};_cfbfc .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _cfbfc ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Handles and its children, prefixing error messages with path
|
|
|
|
func (_agfaa *Handles )ValidateWithPath (path string )error {if _ecaef :=_agfaa .CT_Handles .ValidateWithPath (path );_ecaef !=nil {return _ecaef ;};return nil ;};func (_gccba *OfcST_FillType )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_gccba =0;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072":*_gccba =1;case "\u0073\u006f\u006ci\u0064":*_gccba =2;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_gccba =3;case "\u0074\u0069\u006c\u0065":*_gccba =4;case "\u0066\u0072\u0061m\u0065":*_gccba =5;case "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064":*_gccba =6;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_gccba =7;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_gccba =8;case "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064":*_gccba =9;};return nil ;};func (_efbaa *OfcCT_RelationTable )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_gbed :=range start .Attr {if _gbed .Name .Local =="\u0065\u0078\u0074"{_efbaa .ExtAttr .UnmarshalXMLAttr (_gbed );continue ;};};_gfegec :for {_ecda ,_eggga :=d .Token ();if _eggga !=nil {return _eggga ;};switch _dgbfg :=_ecda .(type ){case _a .StartElement :switch _dgbfg .Name {case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\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"}:_babag :=NewOfcCT_Relation ();if _egaea :=d .DecodeElement (_babag ,&_dgbfg );_egaea !=nil {return _egaea ;};_efbaa .Rel =append (_efbaa .Rel ,_babag );default:_ag .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",_dgbfg .Name );if _eaffgd :=d .Skip ();_eaffgd !=nil {return _eaffgd ;};};case _a .EndElement :break _gfegec ;case _a .CharData :};};return nil ;};func (_eabdee OfcST_ColorMode )Validate ()error {return _eabdee .ValidateWithPath ("")};type CT_PolyLine struct{PointsAttr *string ;Ink []*OfcInk ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _c .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _c .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _c .ST_TrueFalse ;ButtonAttr _c .ST_TrueFalse ;UserhiddenAttr _c .ST_TrueFalse ;BulletAttr _c .ST_TrueFalse ;HrAttr _c .ST_TrueFalse ;HrstdAttr _c .ST_TrueFalse ;HrnoshadeAttr _c .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _c .ST_TrueFalse ;AllowoverlapAttr _c .ST_TrueFalse ;UserdrawnAttr _c .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _c .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _c .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _c .ST_TrueFalse ;OleiconAttr _c .ST_TrueFalse ;OleAttr _c .ST_TrueFalseBlank ;PreferrelativeAttr _c .ST_TrueFalse ;CliptowrapAttr _c .ST_TrueFalse ;ClipAttr _c .ST_TrueFalse ;};const (OfcST_ExtrusionTypeUnset OfcST_ExtrusionType =0;OfcST_ExtrusionTypePerspective OfcST_ExtrusionType =1;OfcST_ExtrusionTypeParallel OfcST_ExtrusionType =2;);type OfcCT_Lock struct{PositionAttr _c .ST_TrueFalse ;SelectionAttr _c .ST_TrueFalse ;GroupingAttr _
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcExtrusion and its children
|
|
|
|
func (_eebaca *OfcExtrusion )Validate ()error {return _eebaca .ValidateWithPath ("\u004f\u0066\u0063E\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Diagram and its children, prefixing error messages with path
|
|
|
|
func (_acgc *OfcCT_Diagram )ValidateWithPath (path string )error {if _cggdg :=_acgc .AutoformatAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u0066\u006f\u0072\u006d\u0061\u0074\u0041\u0074\u0074\u0072");_cggdg !=nil {return _cggdg ;};if _ebea :=_acgc .ReverseAttr .ValidateWithPath (path +"\u002f\u0052\u0065v\u0065\u0072\u0073\u0065\u0041\u0074\u0074\u0072");_ebea !=nil {return _ebea ;};if _bggcg :=_acgc .AutolayoutAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u006c\u0061\u0079\u006f\u0075\u0074\u0041\u0074\u0074\u0072");_bggcg !=nil {return _bggcg ;};if _acgc .Relationtable !=nil {if _ffeg :=_acgc .Relationtable .ValidateWithPath (path +"\u002f\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006et\u0061\u0062\u006c\u0065");_ffeg !=nil {return _ffeg ;};};if _fgead :=_acgc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fgead !=nil {return _fgead ;};return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Diagram and its children
|
|
|
|
func (_afca *OfcCT_Diagram )Validate ()error {return _afca .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};func NewOfcCT_Lock ()*OfcCT_Lock {_gfefb :=&OfcCT_Lock {};return _gfefb };func (_gbfecc OfcST_ExtrusionRender )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_gbfecc .String (),start );};func (_gcffa *ST_Ext )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_efeec ,_gdgfe :=d .Token ();if _gdgfe !=nil {return _gdgfe ;};if _ggbgf ,_fegfg :=_efeec .(_a .EndElement );_fegfg &&_ggbgf .Name ==start .Name {*_gcffa =1;return nil ;};if _dbbgga ,_dcfg :=_efeec .(_a .CharData );!_dcfg {return _f .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",_efeec );}else {switch string (_dbbgga ){case "":*_gcffa =0;case "\u0076\u0069\u0065\u0077":*_gcffa =1;case "\u0065\u0064\u0069\u0074":*_gcffa =2;case "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065":*_gcffa =3;};};_efeec ,_gdgfe =d .Token ();if _gdgfe !=nil {return _gdgfe ;};if _faagbc ,_eccde :=_efeec .(_a .EndElement );_eccde &&_faagbc .Name ==start .Name {return nil ;};return _f .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",_efeec );};func (_ffc *AG_AllShapeAttributes )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _ffc .OpacityAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_f .Sprintf ("\u0025\u0076",*_ffc .OpacityAttr )});};if _ffc .StrokedAttr !=_c .ST_TrueFalseUnset {_gcg ,_fdbb :=_ffc .StrokedAttr .MarshalXMLAttr (_a .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _fdbb !=nil {return _fdbb ;};start .Attr =append (start .Attr ,_gcg );};if _ffc .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_ffc .StrokecolorAttr )});};if _ffc .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_ffc .StrokeweightAttr )});};if _ffc .InsetpenAttr !=_c .ST_TrueFalseUnset {_ead ,_fgca :=_ffc .InsetpenAttr .MarshalXMLAttr (_a .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _fgca !=nil {return _fgca ;};start .Attr =append (start .Attr ,_ead );};if _ffc .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_f .Sprintf ("\u0025\u0076",*_ffc .ChromakeyAttr )});};if _ffc .FilledAttr !=_c .ST_TrueFalseUnset {_abd ,_fba :=_ffc .FilledAttr .MarshalXMLAttr (_a .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _fba !=nil {return _fba ;};start .Attr =append (start .Attr ,_abd );};if _ffc .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_f .Sprintf ("\u0025\u0076",*_ffc .FillcolorAttr )});};if _ffc .SptAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073p\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_ffc .SptAttr )});};if _ffc .ConnectortypeAttr !=OfcST_ConnectorTypeUnset {_edc ,_bdg :=_ffc .ConnectortypeAttr .MarshalXMLAttr (_a .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"});if _bdg !=nil {return _bdg ;};start .Attr =append (start .Attr ,_edc );};if _ffc .BwmodeAttr !=OfcST_BWModeUnset {_fdbf ,_gdd :=_ffc .BwmodeAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _gdd !=nil {return _gdd ;};start .Attr =append (start .Attr ,_fdbf );};if _ffc .BwpureAttr !=OfcST_BWModeUnset {_ef ,_ggd :=_ffc .BwpureAttr .MarshalXML
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_StrokeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_dcf *AG_StrokeAttributes )ValidateWithPath (path string )error {if _dadb :=_dcf .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_dadb !=nil {return _dadb ;};if _edg :=_dcf .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_edg !=nil {return _edg ;};if _ffdec :=_dcf .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_ffdec !=nil {return _ffdec ;};if _fbbc :=_dcf .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_fbbc !=nil {return _fbbc ;};if _gaf :=_dcf .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_gaf !=nil {return _gaf ;};if _acgd :=_dcf .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_acgd !=nil {return _acgd ;};if _ecf :=_dcf .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_ecf !=nil {return _ecf ;};if _bag :=_dcf .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_bag !=nil {return _bag ;};if _afgb :=_dcf .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_afgb !=nil {return _afgb ;};if _abad :=_dcf .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_abad !=nil {return _abad ;};if _aagg :=_dcf .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_aagg !=nil {return _aagg ;};if _cgfaf :=_dcf .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_cgfaf !=nil {return _cgfaf ;};if _gdeg :=_dcf .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_gdeg !=nil {return _gdeg ;};if _dfaa :=_dcf .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_dfaa !=nil {return _dfaa ;};if _aca :=_dcf .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_aca !=nil {return _aca ;};return nil ;};func (_efbd *EG_ShapeElements )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _efbd .Path !=nil {_cafd :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0070\u0061\u0074\u0068"}};e .EncodeElement (_efbd .Path ,_cafd );};if _efbd .Formulas !=nil {_efebd :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0073"}};e .EncodeElement (_efbd .Formulas ,_efebd );};if _efbd .Handles !=nil {_faeee :=_a .StartElement {Name :_a .Name {Local :"\u0076:\u0068\u0061\u006e\u0064\u006c\u0065s"}};e .EncodeElement (_efbd .Handles ,_faeee );};if _efbd .Fill !=nil {_becag :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_efbd .Fill ,_becag );};if _efbd .Stroke !=nil {_dcde :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0073\u0074\u0072\u006f\u006b\u0065"}};e .EncodeElement (_efbd .Stroke ,_dcde );};if _efbd .Shadow !=nil {_gbgdd :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0073\u0068\u0061\u0064\u006f\u0077"}};e .EncodeElement (_efbd .Shadow ,_gbgdd );};if _efbd .Textbox !=nil {_cdfc :=_a .StartElement {Name :_a .Name {Local :"\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx"}};e .EncodeElement (_efbd .Textbox ,_cdfc );};if _efbd .Textpath !=nil {_ccccc :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068"}};e .EncodeElement (_efbd .Textpath ,_ccccc );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Shapetype and its children
|
|
|
|
func (_dcabc *Shapetype )Validate ()error {return _dcabc .ValidateWithPath ("\u0053h\u0061\u0070\u0065\u0074\u0079\u0070e");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Imagedata and its children, prefixing error messages with path
|
|
|
|
func (_adcdf *Imagedata )ValidateWithPath (path string )error {if _egdgc :=_adcdf .CT_ImageData .ValidateWithPath (path );_egdgc !=nil {return _egdgc ;};return nil ;};func (_ggcbg *ST_StrokeJoinStyle )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_dddgd ,_fcbdf :=d .Token ();if _fcbdf !=nil {return _fcbdf ;};if _bdbad ,_dbgc :=_dddgd .(_a .EndElement );_dbgc &&_bdbad .Name ==start .Name {*_ggcbg =1;return nil ;};if _caadg ,_bcdd :=_dddgd .(_a .CharData );!_bcdd {return _f .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",_dddgd );}else {switch string (_caadg ){case "":*_ggcbg =0;case "\u0072\u006f\u0075n\u0064":*_ggcbg =1;case "\u0062\u0065\u0076e\u006c":*_ggcbg =2;case "\u006d\u0069\u0074e\u0072":*_ggcbg =3;};};_dddgd ,_fcbdf =d .Token ();if _fcbdf !=nil {return _fcbdf ;};if _eggae ,_cbbba :=_dddgd .(_a .EndElement );_cbbba &&_eggae .Name ==start .Name {return nil ;};return _f .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",_dddgd );};type OfcST_CalloutPlacement byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcTop and its children
|
|
|
|
func (_bgbbce *OfcTop )Validate ()error {return _bgbbce .ValidateWithPath ("\u004f\u0066\u0063\u0054\u006f\u0070");};func (_bgbfb ST_FillType )String ()string {switch _bgbfb {case 0:return "";case 1:return "\u0073\u006f\u006ci\u0064";case 2:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case 3:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case 4:return "\u0074\u0069\u006c\u0065";case 5:return "\u0070a\u0074\u0074\u0065\u0072\u006e";case 6:return "\u0066\u0072\u0061m\u0065";};return "";};func (_bbadc *OfcCT_OLEObject )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_dbege :=range start .Attr {if _dbege .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"&&_dbege .Name .Local =="\u0069\u0064"||_dbege .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"&&_dbege .Name .Local =="\u0069\u0064"{_cgdcf ,_gaag :=_dbege .Value ,error (nil );if _gaag !=nil {return _gaag ;};_bbadc .IdAttr =&_cgdcf ;continue ;};if _dbege .Name .Local =="\u0054\u0079\u0070\u0065"{_bbadc .TypeAttr .UnmarshalXMLAttr (_dbege );continue ;};if _dbege .Name .Local =="\u0050\u0072\u006f\u0067\u0049\u0044"{_ecgfa ,_beccd :=_dbege .Value ,error (nil );if _beccd !=nil {return _beccd ;};_bbadc .ProgIDAttr =&_ecgfa ;continue ;};if _dbege .Name .Local =="\u0053h\u0061\u0070\u0065\u0049\u0044"{_gbabea ,_gdgea :=_dbege .Value ,error (nil );if _gdgea !=nil {return _gdgea ;};_bbadc .ShapeIDAttr =&_gbabea ;continue ;};if _dbege .Name .Local =="\u0044\u0072\u0061\u0077\u0041\u0073\u0070\u0065\u0063\u0074"{_bbadc .DrawAspectAttr .UnmarshalXMLAttr (_dbege );continue ;};if _dbege .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0049\u0044"{_affgd ,_ddef :=_dbege .Value ,error (nil );if _ddef !=nil {return _ddef ;};_bbadc .ObjectIDAttr =&_affgd ;continue ;};if _dbege .Name .Local =="\u0055\u0070\u0064\u0061\u0074\u0065\u004d\u006f\u0064\u0065"{_bbadc .UpdateModeAttr .UnmarshalXMLAttr (_dbege );continue ;};};_edecge :for {_bacdc ,_dfgcd :=d .Token ();if _dfgcd !=nil {return _dfgcd ;};switch _fcbfa :=_bacdc .(type ){case _a .StartElement :switch _fcbfa .Name {case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u004c\u0069\u006e\u006b\u0054\u0079\u0070\u0065"}:_bbadc .LinkType =new (string );if _ccfedd :=d .DecodeElement (_bbadc .LinkType ,&_fcbfa );_ccfedd !=nil {return _ccfedd ;};case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"L\u006f\u0063\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064"}:_bbadc .LockedField =_c .ST_TrueFalseBlankUnset ;if _ddbad :=d .DecodeElement (&_bbadc .LockedField ,&_fcbfa );_ddbad !=nil {return _ddbad ;};case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0046\u0069\u0065\u006c\u0064\u0043\u006f\u0064\u0065\u0073"}:_bbadc .FieldCodes =new (string );if _gfbfd :=d .DecodeElement (_bbadc .FieldCodes ,&_fcbfa );_gfbfd !=nil {return _gfbfd ;};default:_ag .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Image and its children, prefixing error messages with path
|
|
|
|
func (_gcbef *Image )ValidateWithPath (path string )error {if _beagf :=_gcbef .CT_Image .ValidateWithPath (path );_beagf !=nil {return _beagf ;};return nil ;};type Rect struct{CT_Rect };func (_dddg *OfcShapedefaults )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_dddg .OfcCT_ShapeDefaults =*NewOfcCT_ShapeDefaults ();for _ ,_dfac :=range start .Attr {if _dfac .Name .Local =="\u0073p\u0069\u0064\u006d\u0061\u0078"{_fegcb ,_abgaf :=_gc .ParseInt (_dfac .Value ,10,64);if _abgaf !=nil {return _abgaf ;};_dddg .SpidmaxAttr =&_fegcb ;continue ;};if _dfac .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_dddg .AllowincellAttr .UnmarshalXMLAttr (_dfac );continue ;};if _dfac .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_dcdcg ,_cdgbc :=_dfac .Value ,error (nil );if _cdgbc !=nil {return _cdgbc ;};_dddg .StrokecolorAttr =&_dcdcg ;continue ;};if _dfac .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065"{_dddg .StrokeAttr .UnmarshalXMLAttr (_dfac );continue ;};if _dfac .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_faacd ,_afccd :=_dfac .Value ,error (nil );if _afccd !=nil {return _afccd ;};_dddg .FillcolorAttr =&_faacd ;continue ;};if _dfac .Name .Local =="\u0066\u0069\u006c\u006c"{_dddg .FillAttr .UnmarshalXMLAttr (_dfac );continue ;};if _dfac .Name .Local =="\u0073\u0074\u0079l\u0065"{_ebead ,_dacbb :=_dfac .Value ,error (nil );if _dacbb !=nil {return _dacbb ;};_dddg .StyleAttr =&_ebead ;continue ;};if _dfac .Name .Local =="\u0065\u0078\u0074"{_dddg .ExtAttr .UnmarshalXMLAttr (_dfac );continue ;};};_degca :for {_abbebd ,_dagdf :=d .Token ();if _dagdf !=nil {return _dagdf ;};switch _bfafd :=_abbebd .(type ){case _a .StartElement :switch _bfafd .Name {case _a .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"}:_dddg .Fill =NewFill ();if _dfbfc :=d .DecodeElement (_dddg .Fill ,&_bfafd );_dfbfc !=nil {return _dfbfc ;};case _a .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"}:_dddg .Stroke =NewStroke ();if _badabg :=d .DecodeElement (_dddg .Stroke ,&_bfafd );_badabg !=nil {return _badabg ;};case _a .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"}:_dddg .Textbox =NewTextbox ();if _fagd :=d .DecodeElement (_dddg .Textbox ,&_bfafd );_fagd !=nil {return _fagd ;};case _a .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"}:_dddg .Shadow =NewShadow ();if _aadf :=d .DecodeElement (_dddg .Shadow ,&_bfafd );_aadf !=nil {return _aadf ;};case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\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"}:_dddg .Skew =NewOfcSkew ();if _eeca :=d .DecodeElement (_dddg .Skew ,&_bfafd );_eeca !=nil {return _eeca ;};case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\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 :"\u0065x\u0074\u0072\u0075\u0073\u0069\u006fn"}:_dddg .Extrusion =NewOfcExtrusion ();if _dgdb :=d .DecodeElement (_dddg .Extrusion ,&_bfafd );_dgdb !=nil {return _dgdb ;};case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_AllShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_aeef *AG_AllShapeAttributes )ValidateWithPath (path string )error {if _cae :=_aeef .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cae !=nil {return _cae ;};if _eeg :=_aeef .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_eeg !=nil {return _eeg ;};if _gcdb :=_aeef .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gcdb !=nil {return _gcdb ;};if _ebf :=_aeef .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_ebf !=nil {return _ebf ;};if _bcf :=_aeef .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bcf !=nil {return _bcf ;};if _bgc :=_aeef .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_bgc !=nil {return _bgc ;};if _efe :=_aeef .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_efe !=nil {return _efe ;};if _dgc :=_aeef .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_dgc !=nil {return _dgc ;};if _cdeb :=_aeef .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_cdeb !=nil {return _cdeb ;};if _faf :=_aeef .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_faf !=nil {return _faf ;};if _ecg :=_aeef .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_ecg !=nil {return _ecg ;};if _ddb :=_aeef .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_ddb !=nil {return _ddb ;};if _fbg :=_aeef .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_fbg !=nil {return _fbg ;};return nil ;};func (_fbdde *Stroke )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _fbdde .CT_Stroke .MarshalXML (e ,start );};func (_bgfde *Formulas )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_bgfde .CT_Formulas =*NewCT_Formulas ();_gadg :for {_caea ,_gefdf :=d .Token ();if _gefdf !=nil {return _gefdf ;};switch _cafdg :=_caea .(type ){case _a .StartElement :switch _cafdg .Name {case _a .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"}:_dgbbb :=NewCT_F ();if _cgbcf :=d .DecodeElement (_dgbbb ,&_cafdg );_cgbcf !=nil {return _cgbcf ;};_bgfde .F =append (_bgfde .F ,_dgbbb );default:_ag .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",_cafdg .Name );if _agcca :=d .Skip ();_agcca !=nil {return _agcca ;};};case _a .EndElement :break _gadg ;case _a .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_SignatureLine and its children
|
|
|
|
func (_fgafd *OfcCT_SignatureLine )Validate ()error {return _fgafd .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u004c\u0069\u006e\u0065");};func (_aggd *AG_OfficeShapeAttributes )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_gfcg :=range start .Attr {if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u0073\u0070\u0074"{_gdbcc ,_bca :=_gc .ParseFloat (_gfcg .Value ,64);if _bca !=nil {return _bca ;};_dfgg :=float32 (_gdbcc );_aggd .SptAttr =&_dfgg ;continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"{_aggd .ConnectortypeAttr .UnmarshalXMLAttr (_gfcg );continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u0062\u0077\u006d\u006f\u0064\u0065"{_aggd .BwmodeAttr .UnmarshalXMLAttr (_gfcg );continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_aggd .BwpureAttr .UnmarshalXMLAttr (_gfcg );continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_aggd .BwnormalAttr .UnmarshalXMLAttr (_gfcg );continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_aggd .ForcedashAttr .UnmarshalXMLAttr (_gfcg );continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_aggd .OleiconAttr .UnmarshalXMLAttr (_gfcg );continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u006f\u006c\u0065"{_aggd .OleAttr .UnmarshalXMLAttr (_gfcg );continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_aggd .PreferrelativeAttr .UnmarshalXMLAttr (_gfcg );continue ;};if _gfcg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfcg .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Line and its children
|
|
|
|
func (_babgba *CT_Line )Validate ()error {return _babgba .ValidateWithPath ("\u0043T\u005f\u004c\u0069\u006e\u0065");};func NewOfcInk ()*OfcInk {_edace :=&OfcInk {};_edace .OfcCT_Ink =*NewOfcCT_Ink ();return _edace };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcInk and its children
|
|
|
|
func (_ggdfb *OfcInk )Validate ()error {return _ggdfb .ValidateWithPath ("\u004f\u0066\u0063\u0049\u006e\u006b");};func (_gfae *AG_Chromakey )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _gfae .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_f .Sprintf ("\u0025\u0076",*_gfae .ChromakeyAttr )});};return nil ;};func (_ccbe OfcST_BWMode )ValidateWithPath (path string )error {switch _ccbe {case 0,1,2,3,4,5,6,7,8,9,10,11,12:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ccbe ));};return nil ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Roundrect and its children
|
|
|
|
func (_eddg *Roundrect )Validate ()error {return _eddg .ValidateWithPath ("\u0052o\u0075\u006e\u0064\u0072\u0065\u0063t");};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 _c .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _c .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _c .ST_TrueFalse ;ButtonAttr _c .ST_TrueFalse ;UserhiddenAttr _c .ST_TrueFalse ;BulletAttr _c .ST_TrueFalse ;HrAttr _c .ST_TrueFalse ;HrstdAttr _c .ST_TrueFalse ;HrnoshadeAttr _c .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _c .ST_TrueFalse ;AllowoverlapAttr _c .ST_TrueFalse ;UserdrawnAttr _c .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _c .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _c .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _c .ST_TrueFalse ;OleiconAttr _c .ST_TrueFalse ;OleAttr _c .ST_TrueFalseBlank ;PreferrelativeAttr _c .ST_TrueFalse ;CliptowrapAttr _c .ST_TrueFalse ;ClipAttr _c .ST_TrueFalse ;SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _c .ST_TrueFalse ;BilevelAttr _c .ST_TrueFalse ;};func NewAG_Type ()*AG_Type {_bcba :=&AG_Type {};return _bcba };func (_ce *AG_Adj )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_bb :=range start .Attr {if _bb .Name .Local =="\u0061\u0064\u006a"{_bg ,_eg :=_bb .Value ,error (nil );if _eg !=nil {return _eg ;};_ce .AdjAttr =&_bg ;continue ;};};for {_ga ,_ceg :=d .Token ();if _ceg !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0041G\u005f\u0041d\u006a\u003a\u0020\u0025\u0073",_ceg );};if _eb ,_aga :=_ga .(_a .EndElement );_aga &&_eb .Name ==start .Name {break ;};};return nil ;};type Textbox struct{CT_Textbox };func (_fcdde *Rect )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fcdde .CT_Rect =*NewCT_Rect ();for _ ,_gcbga :=range start .Attr {if _gcbga .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gcbga .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_faccg ,_eagegd :=_gcbga .Value ,error (nil );if _eagegd !=nil {return _eagegd ;};_fcdde .BordertopcolorAttr =&_faccg ;continue ;};if _gcbga .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gcbga .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_fcdde .BulletAttr .UnmarshalXMLAttr (_gcbga );continue ;};if _gcbga .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gcbga .Name .Local =="\u0068\u0072"{_fcdde .HrAttr .UnmarshalXMLAttr (_gcbga );continue ;};if _gcbga .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gcbga .Name .Local =="\u0063\u006c\u0069\u0070\u
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Background and its children
|
|
|
|
func (_cgdc *CT_Background )Validate ()error {return _cgdc .ValidateWithPath ("\u0043\u0054\u005f\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Shadow and its children
|
|
|
|
func (_gdgb *Shadow )Validate ()error {return _gdgb .ValidateWithPath ("\u0053\u0068\u0061\u0064\u006f\u0077");};func (_gegdd *Shape )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_gegdd .CT_Shape =*NewCT_Shape ();for _ ,_gedae :=range start .Attr {if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_gbgdae ,_febde :=_gc .ParseInt (_gedae .Value ,10,64);if _febde !=nil {return _febde ;};_gegdd .RegroupidAttr =&_gbgdae ;continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_gegdd .DoubleclicknotifyAttr .UnmarshalXMLAttr (_gedae );continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u0063\u006c\u0069\u0070"{_gegdd .ClipAttr .UnmarshalXMLAttr (_gedae );continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_gegdd .ButtonAttr .UnmarshalXMLAttr (_gedae );continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_gegdd .UserhiddenAttr .UnmarshalXMLAttr (_gedae );continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gegdd .BulletAttr .UnmarshalXMLAttr (_gedae );continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u0067f\u0078\u0064\u0061\u0074\u0061"{_cgcge ,_gbgfca :=_gedae .Value ,error (nil );if _gbgfca !=nil {return _gbgfca ;};_gegdd .GfxdataAttr =&_cgcge ;continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u0068\u0072"{_gegdd .HrAttr .UnmarshalXMLAttr (_gedae );continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="\u006f\u006c\u0065"{_gegdd .OleAttr .UnmarshalXMLAttr (_gedae );continue ;};if _gedae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gedae .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-09-02 11:46:53 +00:00
|
|
|
// ValidateWithPath validates the Arc and its children, prefixing error messages with path
|
2022-12-06 11:56:49 +00:00
|
|
|
func (_ddfa *Arc )ValidateWithPath (path string )error {if _cdea :=_ddfa .CT_Arc .ValidateWithPath (path );_cdea !=nil {return _cdea ;};return nil ;};func (_baabc ST_EditAs )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_acgaa :=_a .Attr {};_acgaa .Name =name ;switch _baabc {case ST_EditAsUnset :_acgaa .Value ="";case ST_EditAsCanvas :_acgaa .Value ="\u0063\u0061\u006e\u0076\u0061\u0073";case ST_EditAsOrgchart :_acgaa .Value ="\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074";case ST_EditAsRadial :_acgaa .Value ="\u0072\u0061\u0064\u0069\u0061\u006c";case ST_EditAsCycle :_acgaa .Value ="\u0063\u0079\u0063l\u0065";case ST_EditAsStacked :_acgaa .Value ="\u0073t\u0061\u0063\u006b\u0065\u0064";case ST_EditAsVenn :_acgaa .Value ="\u0076\u0065\u006e\u006e";case ST_EditAsBullseye :_acgaa .Value ="\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065";};return _acgaa ,nil ;};func (_edcfbc *OfcST_ExtrusionPlane )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cfdfg ,_adcga :=d .Token ();if _adcga !=nil {return _adcga ;};if _edbab ,_eedaf :=_cfdfg .(_a .EndElement );_eedaf &&_edbab .Name ==start .Name {*_edcfbc =1;return nil ;};if _dbggg ,_bfedcb :=_cfdfg .(_a .CharData );!_bfedcb {return _f .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",_cfdfg );}else {switch string (_dbggg ){case "":*_edcfbc =0;case "\u0058\u0059":*_edcfbc =1;case "\u005a\u0058":*_edcfbc =2;case "\u0059\u005a":*_edcfbc =3;};};_cfdfg ,_adcga =d .Token ();if _adcga !=nil {return _adcga ;};if _decde ,_acffe :=_cfdfg .(_a .EndElement );_acffe &&_decde .Name ==start .Name {return nil ;};return _f .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",_cfdfg );};func NewOfcCallout ()*OfcCallout {_badga :=&OfcCallout {};_badga .OfcCT_Callout =*NewOfcCT_Callout ();return _badga ;};func NewOfcCT_Proxy ()*OfcCT_Proxy {_eegbd :=&OfcCT_Proxy {};return _eegbd };type CT_ImageData struct{EmbosscolorAttr *string ;RecolortargetAttr *string ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;OleidAttr *float32 ;DetectmouseclickAttr _c .ST_TrueFalse ;MovieAttr *float32 ;RelidAttr *string ;IdAttr *string ;PictAttr *string ;RHrefAttr *string ;SIdAttr *string ;SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _c .ST_TrueFalse ;BilevelAttr _c .ST_TrueFalse ;ChromakeyAttr *string ;};func (_cdfgac OfcST_ExtrusionType )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_cebgcgb :=_a .Attr {};_cebgcgb .Name =name ;switch _cdfgac {case OfcST_ExtrusionTypeUnset :_cebgcgb .Value ="";case OfcST_ExtrusionTypePerspective :_cebgcgb .Value ="p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065";case OfcST_ExtrusionTypeParallel :_cebgcgb .Value ="\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c";};return _cebgcgb ,nil ;};func NewCT_Handles ()*CT_Handles {_acef :=&CT_Handles {};return _acef };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Shape and its children
|
|
|
|
func (_eafeg *Shape )Validate ()error {return _eafeg .ValidateWithPath ("\u0053\u0068\u0061p\u0065")};func (_eaacb *OfcST_Angle )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_eaacb =0;case "\u0061\u006e\u0079":*_eaacb =1;case "\u0033\u0030":*_eaacb =2;case "\u0034\u0035":*_eaacb =3;case "\u0036\u0030":*_eaacb =4;case "\u0039\u0030":*_eaacb =5;case "\u0061\u0075\u0074\u006f":*_eaacb =6;};return nil ;};func (_dgaec OfcST_CalloutPlacement )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_ebadc :=_a .Attr {};_ebadc .Name =name ;switch _dgaec {case OfcST_CalloutPlacementUnset :_ebadc .Value ="";case OfcST_CalloutPlacementTop :_ebadc .Value ="\u0074\u006f\u0070";case OfcST_CalloutPlacementCenter :_ebadc .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";case OfcST_CalloutPlacementBottom :_ebadc .Value ="\u0062\u006f\u0074\u0074\u006f\u006d";case OfcST_CalloutPlacementUser :_ebadc .Value ="\u0075\u0073\u0065\u0072";};return _ebadc ,nil ;};func (_cdaaga *OfcRight )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f:\u0072\u0069\u0067\u0068\u0074";return _cdaaga .OfcCT_StrokeChild .MarshalXML (e ,start );};func (_cgegc ST_StrokeArrowType )ValidateWithPath (path string )error {switch _cgegc {case 0,1,2,3,4,5,6:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_cgegc ));};return nil ;};func (_afdda *OfcST_OLEUpdateMode )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_faebd ,_bcbgb :=d .Token ();if _bcbgb !=nil {return _bcbgb ;};if _cddbcf ,_efaaf :=_faebd .(_a .EndElement );_efaaf &&_cddbcf .Name ==start .Name {*_afdda =1;return nil ;};if _dcgba ,_beaea :=_faebd .(_a .CharData );!_beaea {return _f .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_gec *AG_OfficeCoreAttributes )ValidateWithPath (path string )error {if _gfdbd :=_gec .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gfdbd !=nil {return _gfdbd ;};if _bdgg :=_gec .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bdgg !=nil {return _bdgg ;};if _cgbff :=_gec .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cgbff !=nil {return _cgbff ;};if _bab :=_gec .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bab !=nil {return _bab ;};if _cdga :=_gec .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_cdga !=nil {return _cdga ;};if _adce :=_gec .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_adce !=nil {return _adce ;};if _bae :=_gec .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_bae !=nil {return _bae ;};if _baa :=_gec .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_baa !=nil {return _baa ;};if _bgd :=_gec .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_bgd !=nil {return _bgd ;};if _dgfc :=_gec .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_dgfc !=nil {return _dgfc ;};if _ddece :=_gec .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_ddece !=nil {return _ddece ;};if _ccdc :=_gec .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_ccdc !=nil {return _ccdc ;};if _ddf :=_gec .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_ddf !=nil {return _ddf ;};if _bgac :=_gec .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bgac !=nil {return _bgac ;};if _cdgb :=_gec .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cdgb !=nil {return _cdgb ;};return nil ;};func (_caegfb *OfcCT_Skew )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_egfbc :=range start .Attr {if _egfbc .Name .Local =="\u0069\u0064"{_ebac ,_gaacf :=_egfbc .Value ,error (nil );if _gaacf !=nil {return _gaacf ;};_caegfb .IdAttr =&_ebac ;continue ;};if _egfbc .Name .Local =="\u006f\u006e"{_caegfb .OnAttr .UnmarshalXMLAttr (_egfbc );continue ;};if _egfbc .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_caeeb ,_dcafa :=_egfbc .Value ,error (nil );if _dcafa !=nil {return _dcafa ;};_caegfb .OffsetAttr =&_caeeb ;continue ;};if _egfbc .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_agcb ,_efcgb :=_egfbc .Value ,error (nil );if _efcgb !=nil {return _efcgb ;};_caegfb .OriginAttr =&_agcb ;continue ;};if _egfbc .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_agfacg ,_beedc :=_egfbc .Value ,error (nil );if _beedc !=nil {return _beedc ;};_caegfb .MatrixAttr =&_agfacg ;continue ;};if _egfbc .Name .Local =="\u0065\u0078\u0074"{_caegfb .ExtAttr .UnmarshalXMLAttr (_egfbc );continue ;};};for {_dfadf ,_cdccb :=d .Token ();if _cdccb !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u006b\u0065\u0077\u003a\u0020%\u0073",_cdccb );};if _bgbf ,_bdec :=_dfadf .(_a .EndElement );_bdec &&_bgbf .Name ==start .Name {break ;};};return nil ;};type OfcST_OLEUpdateMode byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Curve and its children, prefixing error messages with path
|
|
|
|
func (_adad *CT_Curve )ValidateWithPath (path string )error {for _dgea ,_ceab :=range _adad .EG_ShapeElements {if _feeaf :=_ceab .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_dgea ));_feeaf !=nil {return _feeaf ;};};if _aede :=_adad .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_aede !=nil {return _aede ;};if _bafa :=_adad .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_bafa !=nil {return _bafa ;};if _bbba :=_adad .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bbba !=nil {return _bbba ;};if _fbbagb :=_adad .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_fbbagb !=nil {return _fbbagb ;};if _eaccd :=_adad .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_eaccd !=nil {return _eaccd ;};if _dabaf :=_adad .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dabaf !=nil {return _dabaf ;};if _gfeb :=_adad .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_gfeb !=nil {return _gfeb ;};if _aaf :=_adad .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_aaf !=nil {return _aaf ;};if _cfbe :=_adad .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cfbe !=nil {return _cfbe ;};if _aadg :=_adad .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_aadg !=nil {return _aadg ;};if _abaa :=_adad .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_abaa !=nil {return _abaa ;};if _gbbb :=_adad .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_gbbb !=nil {return _gbbb ;};if _gfcc :=_adad .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_gfcc !=nil {return _gfcc ;};if _aggg :=_adad .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_aggg !=nil {return _aggg ;};if _bdbd :=_adad .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bdbd !=nil {return _bdbd ;};if _eede :=_adad .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_eede !=nil {return _eede ;};if _abbg :=_adad .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_abbg !=nil {return _abbg ;};if _cbgaf :=_adad .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_cbgaf !=nil {return _cbgaf ;};if _gdefg :=_adad .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gdefg !=nil {return _gdefg ;};if _gggb :=_adad .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_gggb !=nil {return _gggb ;};if _gbba :=_adad .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_gbba !=nil {return _gbba ;};if _bdead :=_adad .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_bdead !=nil {return _bdead ;};if _fggbe :=_adad .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_fggbe !=nil {return _fggbe ;};if _bga
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_F and its children, prefixing error messages with path
|
|
|
|
func (_eead *CT_F )ValidateWithPath (path string )error {return nil };
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Proxy and its children
|
|
|
|
func (_gegeb *OfcCT_Proxy )Validate ()error {return _gegeb .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0050\u0072\u006f\u0078\u0079");};func (_gdbga OfcST_ExtrusionPlane )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_gdbga .String (),start );};func NewOfcRight ()*OfcRight {_gfaaa :=&OfcRight {};_gfaaa .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _gfaaa ;};func (_aefee ST_ImageAspect )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_aefee .String (),start );};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;);const (OfcST_ColorModeUnset OfcST_ColorMode =0;OfcST_ColorModeAuto OfcST_ColorMode =1;OfcST_ColorModeCustom OfcST_ColorMode =2;);func (_dgccc OfcST_ScreenSize )Validate ()error {return _dgccc .ValidateWithPath ("")};func NewAG_Adj ()*AG_Adj {_fgc :=&AG_Adj {};return _fgc };type AG_Type struct{TypeAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Rect and its children, prefixing error messages with path
|
|
|
|
func (_acad *Rect )ValidateWithPath (path string )error {if _geaga :=_acad .CT_Rect .ValidateWithPath (path );_geaga !=nil {return _geaga ;};return nil ;};func NewCT_Shadow ()*CT_Shadow {_ggbegc :=&CT_Shadow {};return _ggbegc };func NewOfcSignatureline ()*OfcSignatureline {_faadg :=&OfcSignatureline {};_faadg .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();return _faadg ;};func NewOfcCT_Diagram ()*OfcCT_Diagram {_daacc :=&OfcCT_Diagram {};return _daacc };const (OfcST_InsetModeUnset OfcST_InsetMode =0;OfcST_InsetModeAuto OfcST_InsetMode =1;OfcST_InsetModeCustom OfcST_InsetMode =2;);type OfcST_ConnectorType byte ;type Imagedata struct{CT_ImageData };func NewOfcCT_RegroupTable ()*OfcCT_RegroupTable {_bgfgg :=&OfcCT_RegroupTable {};return _bgfgg };func (_fbcbce *ST_StrokeEndCap )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_fbcbce =0;case "\u0066\u006c\u0061\u0074":*_fbcbce =1;case "\u0073\u0071\u0075\u0061\u0072\u0065":*_fbcbce =2;case "\u0072\u006f\u0075n\u0064":*_fbcbce =3;};return nil ;};func NewOfcShapelayout ()*OfcShapelayout {_dcdee :=&OfcShapelayout {};_dcdee .OfcCT_ShapeLayout =*NewOfcCT_ShapeLayout ();return _dcdee ;};func (_afgcf *Roundrect )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_afgcf .CT_RoundRect =*NewCT_RoundRect ();for _ ,_ffegb :=range start .Attr {if _ffegb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffegb .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_afgcf .UserdrawnAttr .UnmarshalXMLAttr (_ffegb );continue ;};if _ffegb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffegb .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_cffgd ,_cafbe :=_ffegb .Value ,error (nil );if _cafbe !=nil {return _cafbe ;};_afgcf .BordertopcolorAttr =&_cffgd ;continue ;};if _ffegb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffegb .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_afgcf .UserhiddenAttr .UnmarshalXMLAttr (_ffegb );continue ;};if _ffegb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffegb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_afgcf .BulletAttr .UnmarshalXMLAttr (_ffegb );continue ;};if _ffegb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffegb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_afgcf .CliptowrapAttr .UnmarshalXMLAttr (_ffegb );continue ;};if _ffegb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffegb .Name .Local =="\u0068\u0072"{_afgcf .HrAttr .UnmarshalXMLAttr (_ffegb );continue ;};if _ffegb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffegb .Name .Local =="\u006f\u006c\u0065"{_afgcf .OleAttr .UnmarshalXMLAttr (_ffegb );continue ;};if _ffegb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_SignatureLine and its children, prefixing error messages with path
|
|
|
|
func (_fcgbb *OfcCT_SignatureLine )ValidateWithPath (path string )error {if _ebgdg :=_fcgbb .IssignaturelineAttr .ValidateWithPath (path +"/\u0049s\u0073\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065At\u0074\u0072");_ebgdg !=nil {return _ebgdg ;};if _fcgbb .IdAttr !=nil {if !_c .ST_GuidPatternRe .MatchString (*_fcgbb .IdAttr ){return _f .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 ,_c .ST_GuidPatternRe ,*_fcgbb .IdAttr );};};if _fcgbb .ProvidAttr !=nil {if !_c .ST_GuidPatternRe .MatchString (*_fcgbb .ProvidAttr ){return _f .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 ,_c .ST_GuidPatternRe ,*_fcgbb .ProvidAttr );};};if _bbcef :=_fcgbb .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");_bbcef !=nil {return _bbcef ;};if _gbfc :=_fcgbb .AllowcommentsAttr .ValidateWithPath (path +"\u002fA\u006cl\u006f\u0077\u0063\u006f\u006dm\u0065\u006et\u0073\u0041\u0074\u0074\u0072");_gbfc !=nil {return _gbfc ;};if _fdceg :=_fcgbb .ShowsigndateAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u006f\u0077\u0073\u0069\u0067\u006e\u0064\u0061\u0074e\u0041\u0074\u0074\u0072");_fdceg !=nil {return _fdceg ;};if _ddag :=_fcgbb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ddag !=nil {return _ddag ;};return nil ;};type OfcCallout struct{OfcCT_Callout };func (_dccdd *CT_Image )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076:\u0069\u006d\u0061\u0067\u0065";};if _dccdd .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .HrefAttr )});};if _dccdd .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .TargetAttr )});};if _dccdd .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .ClassAttr )});};if _dccdd .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .TitleAttr )});};if _dccdd .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .AltAttr )});};if _dccdd .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .CoordsizeAttr )});};if _dccdd .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .CoordoriginAttr )});};if _dccdd .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .WrapcoordsAttr )});};if _dccdd .PrintAttr !=_c .ST_TrueFalseUnset {_beadd ,_aaca :=_dccdd .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _aaca !=nil {return _aaca ;};start .Attr =append (start .Attr ,_beadd );};if _dccdd .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_dccdd .IdAttr )});};if _dccdd .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Formulas and its children, prefixing error messages with path
|
|
|
|
func (_ceea *CT_Formulas )ValidateWithPath (path string )error {for _cbebb ,_dacb :=range _ceea .F {if _bead :=_dacb .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0046\u005b\u0025\u0064\u005d",path ,_cbebb ));_bead !=nil {return _bead ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Image and its children, prefixing error messages with path
|
|
|
|
func (_fcbd *CT_Image )ValidateWithPath (path string )error {for _gacg ,_dadbf :=range _fcbd .EG_ShapeElements {if _bece :=_dadbf .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_gacg ));_bece !=nil {return _bece ;};};if _ebeb :=_fcbd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ebeb !=nil {return _ebeb ;};if _efeed :=_fcbd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_efeed !=nil {return _efeed ;};if _efgada :=_fcbd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_efgada !=nil {return _efgada ;};if _dbea :=_fcbd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_dbea !=nil {return _dbea ;};if _ecef :=_fcbd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_ecef !=nil {return _ecef ;};if _gfee :=_fcbd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_gfee !=nil {return _gfee ;};if _dedb :=_fcbd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_dedb !=nil {return _dedb ;};if _gdcbd :=_fcbd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gdcbd !=nil {return _gdcbd ;};if _dadc :=_fcbd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_dadc !=nil {return _dadc ;};if _ebdg :=_fcbd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ebdg !=nil {return _ebdg ;};if _agdc :=_fcbd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_agdc !=nil {return _agdc ;};if _abdff :=_fcbd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_abdff !=nil {return _abdff ;};if _ecgbe :=_fcbd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_ecgbe !=nil {return _ecgbe ;};if _afec :=_fcbd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_afec !=nil {return _afec ;};if _dcab :=_fcbd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_dcab !=nil {return _dcab ;};if _cdce :=_fcbd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cdce !=nil {return _cdce ;};if _cffdd :=_fcbd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cffdd !=nil {return _cffdd ;};if _eefe :=_fcbd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_eefe !=nil {return _eefe ;};if _bgacc :=_fcbd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bgacc !=nil {return _bgacc ;};if _fcab :=_fcbd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_fcab !=nil {return _fcab ;};if _edde :=_fcbd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_edde !=nil {return _edde ;};if _adag :=_fcbd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_adag !=nil {return _adag ;};if _bcda :=_fcbd .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_bcda !=nil {return _bcda ;};if _f
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-09-02 11:46:53 +00:00
|
|
|
// ValidateWithPath validates the CT_Line and its children, prefixing error messages with path
|
2022-12-06 11:56:49 +00:00
|
|
|
func (_ddcd *CT_Line )ValidateWithPath (path string )error {for _aabef ,_ccfcb :=range _ddcd .EG_ShapeElements {if _aagfe :=_ccfcb .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_aabef ));_aagfe !=nil {return _aagfe ;};};if _gbgga :=_ddcd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_gbgga !=nil {return _gbgga ;};if _eaceg :=_ddcd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_eaceg !=nil {return _eaceg ;};if _gffb :=_ddcd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_gffb !=nil {return _gffb ;};if _cfgc :=_ddcd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cfgc !=nil {return _cfgc ;};if _eadce :=_ddcd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_eadce !=nil {return _eadce ;};if _dbcfd :=_ddcd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dbcfd !=nil {return _dbcfd ;};if _cefd :=_ddcd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cefd !=nil {return _cefd ;};if _gbcb :=_ddcd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gbcb !=nil {return _gbcb ;};if _egacf :=_ddcd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_egacf !=nil {return _egacf ;};if _feggc :=_ddcd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_feggc !=nil {return _feggc ;};if _cegd :=_ddcd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_cegd !=nil {return _cegd ;};if _bbbg :=_ddcd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bbbg !=nil {return _bbbg ;};if _bggdd :=_ddcd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_bggdd !=nil {return _bggdd ;};if _ffffa :=_ddcd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_ffffa !=nil {return _ffffa ;};if _bgafg :=_ddcd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bgafg !=nil {return _bgafg ;};if _eecee :=_ddcd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_eecee !=nil {return _eecee ;};if _cbcf :=_ddcd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cbcf !=nil {return _cbcf ;};if _fafcc :=_ddcd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fafcc !=nil {return _fafcc ;};if _edece :=_ddcd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_edece !=nil {return _edece ;};if _ddfac :=_ddcd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_ddfac !=nil {return _ddfac ;};if _becgd :=_ddcd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_becgd !=nil {return _becgd ;};if _fcfba :=_ddcd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_fcfba !=nil {return _fcfba ;};if _bged :=_ddcd .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_bged !=n
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMenu and its children, prefixing error messages with path
|
|
|
|
func (_defcd *OfcCT_ColorMenu )ValidateWithPath (path string )error {if _aadca :=_defcd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_aadca !=nil {return _aadca ;};return nil ;};func (_bgdce *OfcCT_StrokeChild )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ebddc :=range start .Attr {if _ebddc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ebddc .Name .Local =="\u0068\u0072\u0065\u0066"{_dbde ,_dcdgdb :=_ebddc .Value ,error (nil );if _dcdgdb !=nil {return _dcdgdb ;};_bgdce .HrefAttr =&_dbde ;continue ;};if _ebddc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ebddc .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_bgdce .ForcedashAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ebddc .Name .Local =="\u0074\u0069\u0074l\u0065"{_ffgcd ,_efabf :=_ebddc .Value ,error (nil );if _efabf !=nil {return _efabf ;};_bgdce .TitleAttr =&_ffgcd ;continue ;};if _ebddc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ebddc .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_ebgeg ,_egde :=_ebddc .Value ,error (nil );if _egde !=nil {return _egde ;};_bgdce .AlthrefAttr =&_ebgeg ;continue ;};if _ebddc .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_bgdce .ImageaspectAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_bgdce .StartarrowAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_bgdce .LinestyleAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_bgdce .StartarrowwidthAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_bgdce .JoinstyleAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_bgdce .StartarrowlengthAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_ecbebc ,_aefec :=_ebddc .Value ,error (nil );if _aefec !=nil {return _aefec ;};_bgdce .DashstyleAttr =&_ecbebc ;continue ;};if _ebddc .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_bgdce .EndarrowAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_bgdce .FilltypeAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_bgdce .EndarrowwidthAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_dcedd ,_badbg :=_ebddc .Value ,error (nil );if _badbg !=nil {return _badbg ;};_bgdce .OpacityAttr =&_dcedd ;continue ;};if _ebddc .Name .Local =="\u0063\u006f\u006co\u0072"{_adgge ,_abadef :=_ebddc .Value ,error (nil );if _abadef !=nil {return _abadef ;};_bgdce .ColorAttr =&_adgge ;continue ;};if _ebddc .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_bgdce .InsetpenAttr .UnmarshalXMLAttr (_ebddc );continue ;};if _ebddc .Name .Local =="\u0065\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_CoreAttributes and its children
|
|
|
|
func (_dgf *AG_CoreAttributes )Validate ()error {return _dgf .ValidateWithPath ("\u0041\u0047\u005f\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069b\u0075\u0074\u0065\u0073");};func (_ebgda *OfcFill )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ebgda .OfcCT_Fill =*NewOfcCT_Fill ();for _ ,_gcbbd :=range start .Attr {if _gcbbd .Name .Local =="\u0074\u0079\u0070\u0065"{_ebgda .TypeAttr .UnmarshalXMLAttr (_gcbbd );continue ;};if _gcbbd .Name .Local =="\u0065\u0078\u0074"{_ebgda .ExtAttr .UnmarshalXMLAttr (_gcbbd );continue ;};};for {_begab ,_fcgfa :=d .Token ();if _fcgfa !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0046\u0069\u006c\u006c\u003a\u0020\u0025\u0073",_fcgfa );};if _cacbd ,_gbcec :=_begab .(_a .EndElement );_gbcec &&_cacbd .Name ==start .Name {break ;};};return nil ;};func (_fbfbf OfcST_ExtrusionPlane )String ()string {switch _fbfbf {case 0:return "";case 1:return "\u0058\u0059";case 2:return "\u005a\u0058";case 3:return "\u0059\u005a";};return "";};type ST_ShadowType byte ;func NewOfcClippath ()*OfcClippath {_deegg :=&OfcClippath {};_deegg .OfcCT_ClipPath =*NewOfcCT_ClipPath ();return _deegg ;};func (_fcdfc *OfcCT_Complex )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0063\u006f\u006d\u0070\u006c\u0065x";};if _fcdfc .ExtAttr !=ST_ExtUnset {_gdaed ,_ebffd :=_fcdfc .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _ebffd !=nil {return _ebffd ;};start .Attr =append (start .Attr ,_gdaed );};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewOfcCT_Rules ()*OfcCT_Rules {_edegc :=&OfcCT_Rules {};return _edegc };func (_bcdee *CT_Textbox )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx";};if _bcdee .InsetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u006e\u0073e\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_bcdee .InsetAttr )});};if _bcdee .SingleclickAttr !=_c .ST_TrueFalseUnset {_abaec ,_fdgfa :=_bcdee .SingleclickAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0073\u0069\u006e\u0067\u006c\u0065\u0063\u006c\u0069\u0063\u006b"});if _fdgfa !=nil {return _fdgfa ;};start .Attr =append (start .Attr ,_abaec );};if _bcdee .InsetmodeAttr !=OfcST_InsetModeUnset {_afab ,_gccec :=_bcdee .InsetmodeAttr .MarshalXMLAttr (_a .Name {Local :"o\u003a\u0069\u006e\u0073\u0065\u0074\u006d\u006f\u0064\u0065"});if _gccec !=nil {return _gccec ;};start .Attr =append (start .Attr ,_afab );};if _bcdee .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_bcdee .IdAttr )});};if _bcdee .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_bcdee .StyleAttr )});};e .EncodeToken (start );if _bcdee .TxbxContent !=nil {_bdeef :=_a .StartElement {Name :_a .Name {Local :"\u0077\u003a\u0074\u0078\u0062\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074"}};e .EncodeElement (_bcdee .TxbxContent ,_bdeef );};if _bcdee .Any !=nil {_bcdee .Any .MarshalXML (e ,_a .StartElement {});};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type AG_OfficeShapeAttributes struct{SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _c .ST_TrueFalse ;OleiconAttr _c .ST_TrueFalse ;OleAttr _c .ST_TrueFalseBlank ;PreferrelativeAttr _c .ST_TrueFalse ;CliptowrapAttr _c .ST_TrueFalse ;ClipAttr _c .ST_TrueFalse ;};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Formulas and its children
|
|
|
|
func (_gdbee *CT_Formulas )Validate ()error {return _gdbee .ValidateWithPath ("C\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Callout and its children
|
|
|
|
func (_caaac *OfcCT_Callout )Validate ()error {return _caaac .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};type CT_Background struct{BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;TargetscreensizeAttr OfcST_ScreenSize ;Fill *Fill ;IdAttr *string ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;};type CT_F struct{EqnAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_ShapeDefaults and its children
|
|
|
|
func (_deccd *OfcCT_ShapeDefaults )Validate ()error {return _deccd .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0068\u0061\u0070\u0065\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};func NewCT_Image ()*CT_Image {_agea :=&CT_Image {};return _agea };func (_fdcdd OfcST_RType )Validate ()error {return _fdcdd .ValidateWithPath ("")};type CT_Shapetype struct{MasterAttr *string ;EG_ShapeElements []*EG_ShapeElements ;Complex *OfcComplex ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _c .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _c .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _c .ST_TrueFalse ;ButtonAttr _c .ST_TrueFalse ;UserhiddenAttr _c .ST_TrueFalse ;BulletAttr _c .ST_TrueFalse ;HrAttr _c .ST_TrueFalse ;HrstdAttr _c .ST_TrueFalse ;HrnoshadeAttr _c .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _c .ST_TrueFalse ;AllowoverlapAttr _c .ST_TrueFalse ;UserdrawnAttr _c .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _c .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _c .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _c .ST_TrueFalse ;OleiconAttr _c .ST_TrueFalse ;OleAttr _c .ST_TrueFalseBlank ;PreferrelativeAttr _c .ST_TrueFalse ;CliptowrapAttr _c .ST_TrueFalse ;ClipAttr _c .ST_TrueFalse ;AdjAttr *string ;PathAttr *string ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Curve and its children
|
|
|
|
func (_ebdde *Curve )Validate ()error {return _ebdde .ValidateWithPath ("\u0043\u0075\u0072v\u0065")};func (_cdfg *CT_Shapetype )UnmarshalXML (d *_a .Decoder ,start _a .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 =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_feff ,_fdefd :=_ggfg .Value ,error (nil );if _fdefd !=nil {return _fdefd ;};_cdfg .BordertopcolorAttr =&_feff ;continue ;};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 =="\u006d\u0061\u0073\u0074\u0065\u0072"{_fabe ,_gbcc :=_ggfg .Value ,error (nil );if _gbcc !=nil {return _gbcc ;};_cdfg .MasterAttr =&_fabe ;continue ;};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 =="\u0062o\u0072d\u0065\u0072\u006c\u0065\u0066\u0074\u0063\u006f\u006c\u006f\u0072"{_fcca ,_ageg :=_ggfg .Value ,error (nil );if _ageg !=nil {return _ageg ;};_cdfg .BorderleftcolorAttr =&_fcca ;continue ;};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 =="\u0062\u0075\u006c\u006c\u0065\u0074"{_cdfg .BulletAttr .UnmarshalXMLAttr (_ggfg );continue ;};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 =="\u0068\u0072"{_cdfg .HrAttr .UnmarshalXMLAttr (_ggfg );continue ;};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 =="\u0063\u006c\u0069\u0070"{_cdfg .ClipAttr .UnmarshalXMLAttr (_ggfg );continue ;};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 =="\u0068\u0072\u0073t\u0064"{_cdfg .HrstdAttr .UnmarshalXMLAttr (_ggfg );continue ;};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 =="\u0073\u0070\u0069\u0064"{_agffa ,_fdegc :=_ggfg .Value ,error (nil );if _fdegc !=nil {return _fdegc ;};_cdfg .SpidAttr =&_agffa ;continue ;};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 =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_cdfg .HrnoshadeAttr .UnmarshalXMLAttr (_ggfg );continue ;};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 =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Lock and its children, prefixing error messages with path
|
|
|
|
func (_fadfd *OfcCT_Lock )ValidateWithPath (path string )error {if _eeacf :=_fadfd .PositionAttr .ValidateWithPath (path +"\u002f\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_eeacf !=nil {return _eeacf ;};if _ecgc :=_fadfd .SelectionAttr .ValidateWithPath (path +"\u002f\u0053\u0065\u006c\u0065\u0063\u0074\u0069\u006fn\u0041\u0074\u0074\u0072");_ecgc !=nil {return _ecgc ;};if _fafac :=_fadfd .GroupingAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_fafac !=nil {return _fafac ;};if _gecdf :=_fadfd .UngroupingAttr .ValidateWithPath (path +"\u002fU\u006eg\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_gecdf !=nil {return _gecdf ;};if _bfgb :=_fadfd .RotationAttr .ValidateWithPath (path +"\u002f\u0052\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_bfgb !=nil {return _bfgb ;};if _eagecc :=_fadfd .CroppingAttr .ValidateWithPath (path +"\u002f\u0043\u0072\u006f\u0070\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_eagecc !=nil {return _eagecc ;};if _bfgee :=_fadfd .VerticiesAttr .ValidateWithPath (path +"\u002f\u0056\u0065\u0072\u0074\u0069\u0063\u0069\u0065s\u0041\u0074\u0074\u0072");_bfgee !=nil {return _bfgee ;};if _eefeg :=_fadfd .AdjusthandlesAttr .ValidateWithPath (path +"\u002fA\u0064j\u0075\u0073\u0074\u0068\u0061n\u0064\u006ce\u0073\u0041\u0074\u0074\u0072");_eefeg !=nil {return _eefeg ;};if _bbffg :=_fadfd .TextAttr .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0041\u0074\u0074r");_bbffg !=nil {return _bbffg ;};if _cgceg :=_fadfd .AspectratioAttr .ValidateWithPath (path +"\u002f\u0041s\u0070\u0065\u0063t\u0072\u0061\u0074\u0069\u006f\u0041\u0074\u0074\u0072");_cgceg !=nil {return _cgceg ;};if _beaaf :=_fadfd .ShapetypeAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0070\u0065\u0074\u0079\u0070e\u0041\u0074\u0074\u0072");_beaaf !=nil {return _beaaf ;};if _acdb :=_fadfd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_acdb !=nil {return _acdb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Relation and its children, prefixing error messages with path
|
|
|
|
func (_afafb *OfcCT_Relation )ValidateWithPath (path string )error {if _gaebgc :=_afafb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gaebgc !=nil {return _gaebgc ;};return nil ;};func (_dfcegb OfcST_ConnectorType )ValidateWithPath (path string )error {switch _dfcegb {case 0,1,2,3,4:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dfcegb ));};return nil ;};func (_aggde OfcST_ConnectorType )Validate ()error {return _aggde .ValidateWithPath ("")};func (_egeg *Arc )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_egeg .CT_Arc =*NewCT_Arc ();for _ ,_deab :=range start .Attr {if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_egeg .UserdrawnAttr .UnmarshalXMLAttr (_deab );continue ;};if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_egeg .ButtonAttr .UnmarshalXMLAttr (_deab );continue ;};if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_egeg .DgmlayoutmruAttr .UnmarshalXMLAttr (_deab );continue ;};if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_egeg .UserhiddenAttr .UnmarshalXMLAttr (_deab );continue ;};if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_egeg .CliptowrapAttr .UnmarshalXMLAttr (_deab );continue ;};if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_egeg .BulletAttr .UnmarshalXMLAttr (_deab );continue ;};if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u006f\u006c\u0065"{_egeg .OleAttr .UnmarshalXMLAttr (_deab );continue ;};if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u0068\u0072"{_egeg .HrAttr .UnmarshalXMLAttr (_deab );continue ;};if _deab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_deab .Name .Local =="\u0073\u0070\u0069\u0064"{_aeg ,_gedc :=_deab .Value ,error (nil );if _gedc !=nil {return _gedc ;};_egeg .SpidAttr
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_PolyLine and its children
|
|
|
|
func (_aeaeg *CT_PolyLine )Validate ()error {return _aeaeg .ValidateWithPath ("C\u0054\u005f\u0050\u006f\u006c\u0079\u004c\u0069\u006e\u0065");};func NewOfcCT_OLEObject ()*OfcCT_OLEObject {_dbgda :=&OfcCT_OLEObject {};return _dbgda };func NewOfcExtrusion ()*OfcExtrusion {_ddggc :=&OfcExtrusion {};_ddggc .OfcCT_Extrusion =*NewOfcCT_Extrusion ();return _ddggc ;};func (_bed *AG_ImageAttributes )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _bed .SrcAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0072\u0063"},Value :_f .Sprintf ("\u0025\u0076",*_bed .SrcAttr )});};if _bed .CropleftAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u0072\u006f\u0070\u006c\u0065\u0066\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_bed .CropleftAttr )});};if _bed .CroptopAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063r\u006f\u0070\u0074\u006f\u0070"},Value :_f .Sprintf ("\u0025\u0076",*_bed .CroptopAttr )});};if _bed .CroprightAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063r\u006f\u0070\u0072\u0069\u0067\u0068t"},Value :_f .Sprintf ("\u0025\u0076",*_bed .CroprightAttr )});};if _bed .CropbottomAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u0072\u006f\u0070\u0062\u006f\u0074\u0074\u006f\u006d"},Value :_f .Sprintf ("\u0025\u0076",*_bed .CropbottomAttr )});};if _bed .GainAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0067\u0061\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_bed .GainAttr )});};if _bed .BlacklevelAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0062\u006c\u0061\u0063\u006b\u006c\u0065\u0076\u0065\u006c"},Value :_f .Sprintf ("\u0025\u0076",*_bed .BlacklevelAttr )});};if _bed .GammaAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0067\u0061\u006dm\u0061"},Value :_f .Sprintf ("\u0025\u0076",*_bed .GammaAttr )});};if _bed .GrayscaleAttr !=_c .ST_TrueFalseUnset {_dga ,_ggbg :=_bed .GrayscaleAttr .MarshalXMLAttr (_a .Name {Local :"\u0067r\u0061\u0079\u0073\u0063\u0061\u006ce"});if _ggbg !=nil {return _ggbg ;};start .Attr =append (start .Attr ,_dga );};if _bed .BilevelAttr !=_c .ST_TrueFalseUnset {_eee ,_dbce :=_bed .BilevelAttr .MarshalXMLAttr (_a .Name {Local :"\u0062i\u006c\u0065\u0076\u0065\u006c"});if _dbce !=nil {return _dbce ;};start .Attr =append (start .Attr ,_eee );};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcComplex and its children
|
|
|
|
func (_ccgbc *OfcComplex )Validate ()error {return _ccgbc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};func NewOfcFill ()*OfcFill {_gcaff :=&OfcFill {};_gcaff .OfcCT_Fill =*NewOfcCT_Fill ();return _gcaff };func (_aaffd *Group )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_aaffd .CT_Group =*NewCT_Group ();for _ ,_addb :=range start .Attr {if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_aaffd .AllowincellAttr .UnmarshalXMLAttr (_addb );continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_aaffd .BulletAttr .UnmarshalXMLAttr (_addb );continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="\u0068\u0072"{_aaffd .HrAttr .UnmarshalXMLAttr (_addb );continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="\u006f\u006e\u0065\u0064"{_aaffd .OnedAttr .UnmarshalXMLAttr (_addb );continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_aaffd .HralignAttr .UnmarshalXMLAttr (_addb );continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="t\u0061\u0062\u006c\u0065\u006c\u0069\u006d\u0069\u0074\u0073"{_bdaca ,_aaggd :=_addb .Value ,error (nil );if _aaggd !=nil {return _aaggd ;};_aaffd .TablelimitsAttr =&_bdaca ;continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_fafdd ,_dfaebb :=_gc .ParseInt (_addb .Value ,10,64);if _dfaebb !=nil {return _dfaebb ;};_aaffd .RegroupidAttr =&_fafdd ;continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_ebfa ,_egdgd :=_addb .Value ,error (nil );if _egdgd !=nil {return _egdgd ;};_aaffd .BordertopcolorAttr =&_ebfa ;continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_addb .Name .Local =="\u0073\u0070\u0069\u0064"{_dcge ,_adefa :=_addb .Value ,error (nil );if _adefa !=nil {return _adefa ;};_aaffd .SpidAttr =&_dcge ;continue ;};if _addb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u0
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcSkew and its children, prefixing error messages with path
|
|
|
|
func (_bdeee *OfcSkew )ValidateWithPath (path string )error {if _gecfd :=_bdeee .OfcCT_Skew .ValidateWithPath (path );_gecfd !=nil {return _gecfd ;};return nil ;};func (_cfgcf *OfcST_InsetMode )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fgbd ,_eeeba :=d .Token ();if _eeeba !=nil {return _eeeba ;};if _afgdfd ,_gcfcabe :=_fgbd .(_a .EndElement );_gcfcabe &&_afgdfd .Name ==start .Name {*_cfgcf =1;return nil ;};if _cddfb ,_ggaba :=_fgbd .(_a .CharData );!_ggaba {return _f .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",_fgbd );}else {switch string (_cddfb ){case "":*_cfgcf =0;case "\u0061\u0075\u0074\u006f":*_cfgcf =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_cfgcf =2;};};_fgbd ,_eeeba =d .Token ();if _eeeba !=nil {return _eeeba ;};if _fccbc ,_bgfeg :=_fgbd .(_a .EndElement );_bgfeg &&_fccbc .Name ==start .Name {return nil ;};return _f .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",_fgbd );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Image and its children
|
|
|
|
func (_abbfbb *Image )Validate ()error {return _abbfbb .ValidateWithPath ("\u0049\u006d\u0061g\u0065")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_ImageAttributes and its children
|
|
|
|
func (_ebb *AG_ImageAttributes )Validate ()error {return _ebb .ValidateWithPath ("\u0041G\u005fI\u006d\u0061\u0067\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_Fill and its children
|
|
|
|
func (_adc *AG_Fill )Validate ()error {return _adc .ValidateWithPath ("\u0041G\u005f\u0046\u0069\u006c\u006c");};type OfcST_ConnectType byte ;func NewOfcCT_Relation ()*OfcCT_Relation {_cfcde :=&OfcCT_Relation {};return _cfcde };type Path struct{CT_Path };func NewOfcColumn ()*OfcColumn {_fdffc :=&OfcColumn {};_fdffc .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _fdffc ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcSignatureline and its children
|
|
|
|
func (_dagcd *OfcSignatureline )Validate ()error {return _dagcd .ValidateWithPath ("\u004f\u0066c\u0053\u0069\u0067n\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065");};type OfcCT_IdMap struct{DataAttr *string ;ExtAttr ST_Ext ;};func NewAG_Style ()*AG_Style {_cdde :=&AG_Style {};return _cdde };func NewTextpath ()*Textpath {_dbeeg :=&Textpath {};_dbeeg .CT_TextPath =*NewCT_TextPath ();return _dbeeg ;};func (_abbgd *Image )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_abbgd .CT_Image =*NewCT_Image ();for _ ,_daaf :=range start .Attr {if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="d\u0067\u006d\u006e\u006f\u0064\u0065\u006b\u0069\u006e\u0064"{_adcgc ,_aecef :=_gc .ParseInt (_daaf .Value ,10,64);if _aecef !=nil {return _aecef ;};_abbgd .DgmnodekindAttr =&_adcgc ;continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_abbgd .BulletAttr .UnmarshalXMLAttr (_daaf );continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="\u0068\u0072"{_abbgd .HrAttr .UnmarshalXMLAttr (_daaf );continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_abbgd .OleiconAttr .UnmarshalXMLAttr (_daaf );continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="\u0068\u0072\u0073t\u0064"{_abbgd .HrstdAttr .UnmarshalXMLAttr (_daaf );continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="\u0063\u006c\u0069\u0070"{_abbgd .ClipAttr .UnmarshalXMLAttr (_daaf );continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_abbgd .HrnoshadeAttr .UnmarshalXMLAttr (_daaf );continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_abbgd .PreferrelativeAttr .UnmarshalXMLAttr (_daaf );continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daaf .Name .Local =="\u0068\u0072\u0070c\u0074"{_eccgc ,_bdbea :=_gc .ParseFloat (_daaf .Value ,64);if _bdbea !=nil {return _bdbea ;};_abcc :=float32 (_eccgc );_abbgd .HrpctAttr =&_abcc ;continue ;};if _daaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_ColorMru and its children
|
|
|
|
func (_bfdf *OfcCT_ColorMru )Validate ()error {return _bfdf .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006co\u0072\u004d\u0072\u0075");};func (_cbeeff *Polyline )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _cbeeff .CT_PolyLine .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcShapedefaults and its children
|
|
|
|
func (_ceeeb *OfcShapedefaults )Validate ()error {return _ceeeb .ValidateWithPath ("\u004f\u0066c\u0053\u0068\u0061p\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcDiagram and its children, prefixing error messages with path
|
|
|
|
func (_eadfg *OfcDiagram )ValidateWithPath (path string )error {if _fdbg :=_eadfg .OfcCT_Diagram .ValidateWithPath (path );_fdbg !=nil {return _fdbg ;};return nil ;};func (_afdfc *OfcTop )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 _afdfc .OfcCT_StrokeChild .MarshalXML (e ,start );};func (_egdbb *ST_ImageAspect )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_egdbb =0;case "\u0069\u0067\u006e\u006f\u0072\u0065":*_egdbb =1;case "\u0061\u0074\u004d\u006f\u0073\u0074":*_egdbb =2;case "\u0061t\u004c\u0065\u0061\u0073\u0074":*_egdbb =3;};return nil ;};func (_caedfg ST_EditAs )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_caedfg .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcFill and its children
|
|
|
|
func (_aaeeb *OfcFill )Validate ()error {return _aaeeb .ValidateWithPath ("\u004ff\u0063\u0046\u0069\u006c\u006c");};func (_egbbe *Oval )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _egbbe .CT_Oval .MarshalXML (e ,start );};type CT_Fill struct{TypeAttr ST_FillType ;OnAttr _c .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 _c .ST_TrueFalse ;FocusAttr *string ;FocussizeAttr *string ;FocuspositionAttr *string ;MethodAttr ST_FillMethod ;DetectmouseclickAttr _c .ST_TrueFalse ;TitleAttr *string ;Opacity2Attr *string ;RecolorAttr _c .ST_TrueFalse ;RotateAttr _c .ST_TrueFalse ;IdAttr *string ;RelidAttr *string ;Fill *OfcFill ;SIdAttr *string ;};func NewStroke ()*Stroke {_bcgcf :=&Stroke {};_bcgcf .CT_Stroke =*NewCT_Stroke ();return _bcgcf };func NewPolyline ()*Polyline {_cegef :=&Polyline {};_cegef .CT_PolyLine =*NewCT_PolyLine ();return _cegef ;};func (_adebf *CT_Path )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ffdf :=range start .Attr {if _ffdf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffdf .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"{_adebf .ConnecttypeAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffdf .Name .Local =="e\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"{_adebf .ExtrusionokAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffdf .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"{_dcbe ,_bdef :=_ffdf .Value ,error (nil );if _bdef !=nil {return _bdef ;};_adebf .ConnectanglesAttr =&_dcbe ;continue ;};if _ffdf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ffdf .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"{_gfdfb ,_adfa :=_ffdf .Value ,error (nil );if _adfa !=nil {return _adfa ;};_adebf .ConnectlocsAttr =&_gfdfb ;continue ;};if _ffdf .Name .Local =="\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"{_adebf .GradientshapeokAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Local =="\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"{_adebf .ShadowokAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Local =="\u0061r\u0072\u006f\u0077\u006f\u006b"{_adebf .ArrowokAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Local =="\u0076"{_eggdf ,_fafaf :=_ffdf .Value ,error (nil );if _fafaf !=nil {return _fafaf ;};_adebf .VAttr =&_eggdf ;continue ;};if _ffdf .Name .Local =="\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"{_adebf .TextpathokAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"{_adebf .InsetpenokAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"{_adebf .StrokeokAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Local =="\u0066\u0069\u006c\u006c\u006f\u006b"{_adebf .FillokAttr .UnmarshalXMLAttr (_ffdf );continue ;};if _ffdf .Name .Local =="t\u0065\
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_RelationTable and its children
|
|
|
|
func (_cabdf *OfcCT_RelationTable )Validate ()error {return _cabdf .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0054\u0061\u0062\u006c\u0065");};func (_aadde OfcST_ExtrusionRender )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_eadgg :=_a .Attr {};_eadgg .Name =name ;switch _aadde {case OfcST_ExtrusionRenderUnset :_eadgg .Value ="";case OfcST_ExtrusionRenderSolid :_eadgg .Value ="\u0073\u006f\u006ci\u0064";case OfcST_ExtrusionRenderWireFrame :_eadgg .Value ="\u0077i\u0072\u0065\u0046\u0072\u0061\u006de";case OfcST_ExtrusionRenderBoundingCube :_eadgg .Value ="\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065";};return _eadgg ,nil ;};func (_edda *AG_ShapeAttributes )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _edda .OpacityAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_f .Sprintf ("\u0025\u0076",*_edda .OpacityAttr )});};if _edda .StrokedAttr !=_c .ST_TrueFalseUnset {_fbba ,_bbd :=_edda .StrokedAttr .MarshalXMLAttr (_a .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _bbd !=nil {return _bbd ;};start .Attr =append (start .Attr ,_fbba );};if _edda .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_edda .StrokecolorAttr )});};if _edda .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_edda .StrokeweightAttr )});};if _edda .InsetpenAttr !=_c .ST_TrueFalseUnset {_agc ,_ecea :=_edda .InsetpenAttr .MarshalXMLAttr (_a .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _ecea !=nil {return _ecea ;};start .Attr =append (start .Attr ,_agc );};if _edda .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_f .Sprintf ("\u0025\u0076",*_edda .ChromakeyAttr )});};if _edda .FilledAttr !=_c .ST_TrueFalseUnset {_dag ,_baff :=_edda .FilledAttr .MarshalXMLAttr (_a .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _baff !=nil {return _baff ;};start .Attr =append (start .Attr ,_dag );};if _edda .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_f .Sprintf ("\u0025\u0076",*_edda .FillcolorAttr )});};return nil ;};func (_fbbad *OfcCT_Complex )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_fefa :=range start .Attr {if _fefa .Name .Local =="\u0065\u0078\u0074"{_fbbad .ExtAttr .UnmarshalXMLAttr (_fefa );continue ;};};for {_aaecc ,_ccga :=d .Token ();if _ccga !=nil {return _f .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u006fm\u0070\u006c\u0065\u0078\u003a\u0020\u0025s",_ccga );};if _debgb ,_ffdbb :=_aaecc .(_a .EndElement );_ffdbb &&_debgb .Name ==start .Name {break ;};};return nil ;};type Polyline struct{CT_PolyLine };func (_caaea *Imagedata )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_caaea .CT_ImageData =*NewCT_ImageData ();for _ ,_cgfafbd :=range start .Attr {if _cgfafbd .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"&&_cgfafbd .Name .Local =="\u0070\u0069\u0063\u0074"||_cgfafbd .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\u0
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_Adj and its children, prefixing error messages with path
|
|
|
|
func (_be *AG_Adj )ValidateWithPath (path string )error {return nil };func (_ac *AG_AllCoreAttributes )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _ac .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_ac .HrefAttr )});};if _ac .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_ac .TargetAttr )});};if _ac .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_ac .ClassAttr )});};if _ac .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_ac .TitleAttr )});};if _ac .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_ac .AltAttr )});};if _ac .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_ac .CoordsizeAttr )});};if _ac .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_ac .CoordoriginAttr )});};if _ac .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_ac .WrapcoordsAttr )});};if _ac .PrintAttr !=_c .ST_TrueFalseUnset {_gf ,_gaa :=_ac .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _gaa !=nil {return _gaa ;};start .Attr =append (start .Attr ,_gf );};if _ac .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_ac .IdAttr )});};if _ac .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_ac .StyleAttr )});};if _ac .SpidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_ac .SpidAttr )});};if _ac .OnedAttr !=_c .ST_TrueFalseUnset {_aa ,_fgf :=_ac .OnedAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _fgf !=nil {return _fgf ;};start .Attr =append (start .Attr ,_aa );};if _ac .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_ac .RegroupidAttr )});};if _ac .DoubleclicknotifyAttr !=_c .ST_TrueFalseUnset {_gaad ,_ae :=_ac .DoubleclicknotifyAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _ae !=nil {return _ae ;};start .Attr =append (start .Attr ,_gaad );};if _ac .ButtonAttr !=_c .ST_TrueFalseUnset {_ff ,_gcd :=_ac .ButtonAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _gcd !=nil {return _gcd ;};start .Attr =append (start .Attr ,_ff );};if _ac .UserhiddenAttr !=_c .ST_TrueFalseUnset {_bc ,_d :=_ac .UserhiddenAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _d !=nil {return _d ;};start .Attr =append (start .Attr ,_bc );};if _ac .BulletAttr !=_c .ST_TrueFalseUnset {_df ,_fb :=_ac .BulletAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0075\u006c\u006c\u0065\u0074"});if _fb !=nil {return _fb ;};start .Attr =append (start .Attr ,_df );};if _ac .HrAttr !=_c .ST_TrueFalseUnset {_bf ,_ba :=_ac .HrAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0068\u0072"});if _ba !=nil {return _ba ;};start .Attr =append (start .Attr ,_bf );};if _ac
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-09-02 11:46:53 +00:00
|
|
|
// Validate validates the OfcCT_R and its children
|
2022-12-06 11:56:49 +00:00
|
|
|
func (_ecdeeb *OfcCT_R )Validate ()error {return _ecdeeb .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0052");};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;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Ink and its children, prefixing error messages with path
|
|
|
|
func (_eacfa *OfcCT_Ink )ValidateWithPath (path string )error {if _acagfd :=_eacfa .AnnotationAttr .ValidateWithPath (path +"\u002fA\u006en\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_acagfd !=nil {return _acagfd ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_Chromakey and its children, prefixing error messages with path
|
|
|
|
func (_gdb *AG_Chromakey )ValidateWithPath (path string )error {return nil };func (_eafec *CT_Stroke )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0073\u0074\u0072\u006f\u006b\u0065";};if _eafec .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .IdAttr )});};if _eafec .OnAttr !=_c .ST_TrueFalseUnset {_bcad ,_cagg :=_eafec .OnAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u006e"});if _cagg !=nil {return _cagg ;};start .Attr =append (start .Attr ,_bcad );};if _eafec .WeightAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .WeightAttr )});};if _eafec .ColorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .ColorAttr )});};if _eafec .OpacityAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .OpacityAttr )});};if _eafec .LinestyleAttr !=ST_StrokeLineStyleUnset {_ebfcc ,_abefa :=_eafec .LinestyleAttr .MarshalXMLAttr (_a .Name {Local :"\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"});if _abefa !=nil {return _abefa ;};start .Attr =append (start .Attr ,_ebfcc );};if _eafec .MiterlimitAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006d\u0069\u0074\u0065\u0072\u006c\u0069\u006d\u0069\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .MiterlimitAttr )});};if _eafec .JoinstyleAttr !=ST_StrokeJoinStyleUnset {_dgfce ,_eacacg :=_eafec .JoinstyleAttr .MarshalXMLAttr (_a .Name {Local :"\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"});if _eacacg !=nil {return _eacacg ;};start .Attr =append (start .Attr ,_dgfce );};if _eafec .EndcapAttr !=ST_StrokeEndCapUnset {_cabgb ,_adaec :=_eafec .EndcapAttr .MarshalXMLAttr (_a .Name {Local :"\u0065\u006e\u0064\u0063\u0061\u0070"});if _adaec !=nil {return _adaec ;};start .Attr =append (start .Attr ,_cabgb );};if _eafec .DashstyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .DashstyleAttr )});};if _eafec .FilltypeAttr !=ST_FillTypeUnset {_baaab ,_gaada :=_eafec .FilltypeAttr .MarshalXMLAttr (_a .Name {Local :"\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"});if _gaada !=nil {return _gaada ;};start .Attr =append (start .Attr ,_baaab );};if _eafec .SrcAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0072\u0063"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .SrcAttr )});};if _eafec .ImageaspectAttr !=ST_ImageAspectUnset {_gcdfaa ,_cacec :=_eafec .ImageaspectAttr .MarshalXMLAttr (_a .Name {Local :"i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"});if _cacec !=nil {return _cacec ;};start .Attr =append (start .Attr ,_gcdfaa );};if _eafec .ImagesizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .ImagesizeAttr )});};if _eafec .ImagealignshapeAttr !=_c .ST_TrueFalseUnset {_bedc ,_ececf :=_eafec .ImagealignshapeAttr .MarshalXMLAttr (_a .Name {Local :"\u0069m\u0061g\u0065\u0061\u006c\u0069\u0067\u006e\u0073\u0068\u0061\u0070\u0065"});if _ececf !=nil {return _ececf ;};start .Attr =append (start .Attr ,_bedc );};if _eafec .Color2Attr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0032"},Value :_f .Sprintf ("\u0025\u0076",*_eafec .Color2Attr )});};if _eafec .StartarrowAttr !=ST_StrokeArrowTypeUnset {_bdaa ,_fadeb :=_eafec .StartarrowAttr .MarshalXMLAttr (_a .Name {Local :"\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"});if _fadeb !=nil {return _fadeb ;};start .Attr =append (start .Attr ,_bdaa );};if _eafec .StartarrowwidthAttr !
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Textpath and its children
|
|
|
|
func (_cddcf *Textpath )Validate ()error {return _cddcf .ValidateWithPath ("\u0054\u0065\u0078\u0074\u0070\u0061\u0074\u0068");};func (_dbd *Background )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0077"},Value :"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"});start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c"});start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ="\u0076\u003a\u0062a\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";return _dbd .CT_Background .MarshalXML (e ,start );};func (_ggbeb *OfcCT_Lock )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Extrusion and its children, prefixing error messages with path
|
|
|
|
func (_ccdff *OfcCT_Extrusion )ValidateWithPath (path string )error {if _eafaf :=_ccdff .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_eafaf !=nil {return _eafaf ;};if _bedd :=_ccdff .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_bedd !=nil {return _bedd ;};if _dgcfbc :=_ccdff .RenderAttr .ValidateWithPath (path +"/\u0052\u0065\u006e\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_dgcfbc !=nil {return _dgcfbc ;};if _geeed :=_ccdff .PlaneAttr .ValidateWithPath (path +"\u002f\u0050\u006c\u0061\u006e\u0065\u0041\u0074\u0074\u0072");_geeed !=nil {return _geeed ;};if _ffedd :=_ccdff .LockrotationcenterAttr .ValidateWithPath (path +"\u002f\u004c\u006fck\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_ffedd !=nil {return _ffedd ;};if _ecfgb :=_ccdff .AutorotationcenterAttr .ValidateWithPath (path +"\u002f\u0041\u0075to\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_ecfgb !=nil {return _ecfgb ;};if _fcbb :=_ccdff .ColormodeAttr .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fcbb !=nil {return _fcbb ;};if _debgc :=_ccdff .MetalAttr .ValidateWithPath (path +"\u002f\u004d\u0065\u0074\u0061\u006c\u0041\u0074\u0074\u0072");_debgc !=nil {return _debgc ;};if _agbfc :=_ccdff .LightfaceAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u0067\u0068\u0074\u0066\u0061\u0063e\u0041\u0074\u0074\u0072");_agbfc !=nil {return _agbfc ;};if _cbeae :=_ccdff .LightharshAttr .ValidateWithPath (path +"\u002fL\u0069g\u0068\u0074\u0068\u0061\u0072\u0073\u0068\u0041\u0074\u0074\u0072");_cbeae !=nil {return _cbeae ;};if _eagcg :=_ccdff .Lightharsh2Attr .ValidateWithPath (path +"\u002f\u004ci\u0067\u0068\u0074h\u0061\u0072\u0073\u0068\u0032\u0041\u0074\u0074\u0072");_eagcg !=nil {return _eagcg ;};if _begad :=_ccdff .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_begad !=nil {return _begad ;};return nil ;};type OfcCT_RegroupTable struct{Entry []*OfcCT_Entry ;ExtAttr ST_Ext ;};func (_afdgd *OfcLock )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _afdgd .OfcCT_Lock .MarshalXML (e ,start );};func (_cgeeg OfcST_ScreenSize )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_fcgef :=_a .Attr {};_fcgef .Name =name ;switch _cgeeg {case OfcST_ScreenSizeUnset :_fcgef .Value ="";case OfcST_ScreenSize544x376 :_fcgef .Value ="\u00354\u0034\u002c\u0033\u0037\u0036";case OfcST_ScreenSize640x480 :_fcgef .Value ="\u00364\u0030\u002c\u0034\u0038\u0030";case OfcST_ScreenSize720x512 :_fcgef .Value ="\u00372\u0030\u002c\u0035\u0031\u0032";case OfcST_ScreenSize800x600 :_fcgef .Value ="\u00380\u0030\u002c\u0036\u0030\u0030";case OfcST_ScreenSize1024x768 :_fcgef .Value ="\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038";case OfcST_ScreenSize1152x862 :_fcgef .Value ="\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032";};return _fcgef ,nil ;};func (_ceaefd OfcST_DiagramLayout )ValidateWithPath (path string )error {switch _ceaefd {case 0,1,2,3,4:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ceaefd ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_Ext and its children
|
|
|
|
func (_bced *AG_Ext )Validate ()error {return _bced .ValidateWithPath ("\u0041\u0047\u005f\u0045\u0078\u0074");};func (_cgffd *CT_TextPath )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_decf :=range start .Attr {if _decf .Name .Local =="\u006f\u006e"{_cgffd .OnAttr .UnmarshalXMLAttr (_decf );continue ;};if _decf .Name .Local =="\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"{_cgffd .FitshapeAttr .UnmarshalXMLAttr (_decf );continue ;};if _decf .Name .Local =="\u0066i\u0074\u0070\u0061\u0074\u0068"{_cgffd .FitpathAttr .UnmarshalXMLAttr (_decf );continue ;};if _decf .Name .Local =="\u0074\u0072\u0069\u006d"{_cgffd .TrimAttr .UnmarshalXMLAttr (_decf );continue ;};if _decf .Name .Local =="\u0078\u0073\u0063\u0061\u006c\u0065"{_cgffd .XscaleAttr .UnmarshalXMLAttr (_decf );continue ;};if _decf .Name .Local =="\u0073\u0074\u0072\u0069\u006e\u0067"{_fcadd ,_feaca :=_decf .Value ,error (nil );if _feaca !=nil {return _feaca ;};_cgffd .StringAttr =&_fcadd ;continue ;};if _decf .Name .Local =="\u0069\u0064"{_acecb ,_cfgd :=_decf .Value ,error (nil );if _cfgd !=nil {return _cfgd ;};_cgffd .IdAttr =&_acecb ;continue ;};if _decf .Name .Local =="\u0073\u0074\u0079l\u0065"{_aegdc ,_dcfcf :=_decf .Value ,error (nil );if _dcfcf !=nil {return _dcfcf ;};_cgffd .StyleAttr =&_aegdc ;continue ;};};for {_aafb ,_cfcf :=d .Token ();if _cfcf !=nil {return _f .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_cfcf );};if _gfdfbc ,_edebf :=_aafb .(_a .EndElement );_edebf &&_gfdfbc .Name ==start .Name {break ;};};return nil ;};func (_bcgfd OfcST_BWMode )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_bcgfd .String (),start );};func (_dcgcd *OfcST_InsetMode )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_dcgcd =0;case "\u0061\u0075\u0074\u006f":*_dcgcd =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_dcgcd =2;};return nil ;};func (_dafeb OfcST_ExtrusionType )ValidateWithPath (path string )error {switch _dafeb {case 0,1,2:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dafeb ));};return nil ;};func (_fcdcea ST_ShadowType )ValidateWithPath (path string )error {switch _fcdcea {case 0,1,2,3,4:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fcdcea ));};return nil ;};func NewShape ()*Shape {_dadea :=&Shape {};_dadea .CT_Shape =*NewCT_Shape ();return _dadea };func NewOfcCT_ColorMru ()*OfcCT_ColorMru {_bfgdf :=&OfcCT_ColorMru {};return _bfgdf };func (_efcbd ST_StrokeArrowLength )Validate ()error {return _efcbd .ValidateWithPath ("")};func (_adbec ST_StrokeEndCap )String ()string {switch _adbec {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 (_fdfcb OfcST_OLEDrawAspect )Validate ()error {return _fdfcb .ValidateWithPath ("")};func (_dfffe *OfcCT_EquationXml )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_eebbc :=range start .Attr {if _eebbc .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_dedda ,_dgcaf :=_eebbc .Value ,error (nil );if _dgcaf !=nil {return _dgcaf ;};_dfffe .ContentTypeAttr =&_dedda ;continue ;};};_dbggf :for {_gcddg ,_acebd :=d .Token ();if _acebd !=nil {return _acebd ;};switch _eggfa :=_gcddg .(type ){case _a .StartElement :switch _eggfa .Name {default:if _cfde ,_daffb :=_ge .CreateElement (_eggfa );_daffb !=nil {return _daffb ;}else {if _edecg :=d .DecodeElement (_cfde ,&_eggfa );_edecg !=nil {return _edecg ;};_dfffe .Any =_cfde ;};};case _a .EndElement :break _dbggf ;case _a .CharData :};};return nil ;};func (_ggbc OfcST_OLEUpdateMode )Validate ()error {return _ggbc .ValidateWithPath ("")};func (_edegg *OfcCT_ColorMru )MarshalXML (e *_a .Encoder ,start _a .StartElement )err
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Background and its children, prefixing error messages with path
|
|
|
|
func (_bgge *Background )ValidateWithPath (path string )error {if _cbf :=_bgge .CT_Background .ValidateWithPath (path );_cbf !=nil {return _cbf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_TextPath and its children, prefixing error messages with path
|
|
|
|
func (_ebefe *CT_TextPath )ValidateWithPath (path string )error {if _effbd :=_ebefe .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_effbd !=nil {return _effbd ;};if _gaeg :=_ebefe .FitshapeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u0074\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_gaeg !=nil {return _gaeg ;};if _bgbbd :=_ebefe .FitpathAttr .ValidateWithPath (path +"\u002f\u0046\u0069t\u0070\u0061\u0074\u0068\u0041\u0074\u0074\u0072");_bgbbd !=nil {return _bgbbd ;};if _fdabg :=_ebefe .TrimAttr .ValidateWithPath (path +"\u002fT\u0072\u0069\u006d\u0041\u0074\u0074r");_fdabg !=nil {return _fdabg ;};if _fdda :=_ebefe .XscaleAttr .ValidateWithPath (path +"/\u0058\u0073\u0063\u0061\u006c\u0065\u0041\u0074\u0074\u0072");_fdda !=nil {return _fdda ;};return nil ;};type CT_Arc struct{StartAngleAttr *float64 ;EndAngleAttr *float64 ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _c .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _c .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _c .ST_TrueFalse ;ButtonAttr _c .ST_TrueFalse ;UserhiddenAttr _c .ST_TrueFalse ;BulletAttr _c .ST_TrueFalse ;HrAttr _c .ST_TrueFalse ;HrstdAttr _c .ST_TrueFalse ;HrnoshadeAttr _c .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _c .ST_TrueFalse ;AllowoverlapAttr _c .ST_TrueFalse ;UserdrawnAttr _c .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _c .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _c .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _c .ST_TrueFalse ;OleiconAttr _c .ST_TrueFalse ;OleAttr _c .ST_TrueFalseBlank ;PreferrelativeAttr _c .ST_TrueFalse ;CliptowrapAttr _c .ST_TrueFalse ;ClipAttr _c .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Path and its children
|
|
|
|
func (_aegga *Path )Validate ()error {return _aegga .ValidateWithPath ("\u0050\u0061\u0074\u0068")};func (_ggca ST_StrokeArrowLength )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_ggca .String (),start );};func (_fegbb *OfcST_BWMode )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_gegcf ,_ccbbbd :=d .Token ();if _ccbbbd !=nil {return _ccbbbd ;};if _bdgfg ,_gdcfgc :=_gegcf .(_a .EndElement );_gdcfgc &&_bdgfg .Name ==start .Name {*_fegbb =1;return nil ;};if _gbgb ,_ebgdb :=_gegcf .(_a .CharData );!_ebgdb {return _f .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",_gegcf );}else {switch string (_gbgb ){case "":*_fegbb =0;case "\u0063\u006f\u006co\u0072":*_fegbb =1;case "\u0061\u0075\u0074\u006f":*_fegbb =2;case "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce":*_fegbb =3;case "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065":*_fegbb =4;case "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079":*_fegbb =5;case "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065":*_fegbb =6;case "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074":*_fegbb =7;case "\u0062\u006c\u0061c\u006b":*_fegbb =8;case "\u0077\u0068\u0069t\u0065":*_fegbb =9;case "\u0068\u0069\u0064\u0065":*_fegbb =10;case "\u0075n\u0064\u0072\u0061\u0077\u006e":*_fegbb =11;case "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073":*_fegbb =12;};};_gegcf ,_ccbbbd =d .Token ();if _ccbbbd !=nil {return _ccbbbd ;};if _aedfb ,_fedfg :=_gegcf .(_a .EndElement );_fedfg &&_aedfb .Name ==start .Name {return nil ;};return _f .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",_gegcf );};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 _c .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _c .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _c .ST_TrueFalse ;ButtonAttr _c .ST_TrueFalse ;UserhiddenAttr _c .ST_TrueFalse ;BulletAttr _c .ST_TrueFalse ;HrAttr _c .ST_TrueFalse ;HrstdAttr _c .ST_TrueFalse ;HrnoshadeAttr _c .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _c .ST_TrueFalse ;AllowoverlapAttr _c .ST_TrueFalse ;UserdrawnAttr _c .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _c .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _c .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _c .ST_TrueFalse ;OleiconAttr _c .ST_TrueFalse ;OleAttr _c .ST_TrueFalseBlank ;PreferrelativeAttr _c .ST_TrueFalse ;CliptowrapAttr _c .ST_TrueFalse ;ClipAttr _c .ST_TrueFalse ;};func (_gbce *CT_Shadow )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_efcgd :=range start .Attr {if _efcgd .Name .Local =="\u006f\u006e"{_gbce .OnAttr .UnmarshalXMLAttr (_efcgd );continue ;};if _efcgd .Name .Local =="\u0074\u0079\u0070\u0065"{_gbce .TypeAttr .UnmarshalXMLAttr (_efcgd );continue ;};if _efcgd .Name .Local =="\u006f\u0062\u0073\u0063\u0075\u0072\u0065\u0064"{_gbce .ObscuredAttr .UnmarshalXMLAttr (_efcgd );continue ;};if _efcgd .Name .Local =="\u0063\u006f\u006co\u0072"{_effge ,_eabfed :=_efcgd .Value ,error (nil );if _eabfed !=nil {return _eabfed ;};_gbce .ColorAttr =&_effge ;continue ;};if _efcgd .Name .Local =="\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_OLEObject and its children, prefixing error messages with path
|
|
|
|
func (_ccedg *OfcCT_OLEObject )ValidateWithPath (path string )error {if _ffedda :=_ccedg .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_ffedda !=nil {return _ffedda ;};if _ffaa :=_ccedg .DrawAspectAttr .ValidateWithPath (path +"\u002fD\u0072a\u0077\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_ffaa !=nil {return _ffaa ;};if _cbfdbd :=_ccedg .UpdateModeAttr .ValidateWithPath (path +"\u002fU\u0070d\u0061\u0074\u0065\u004d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_cbfdbd !=nil {return _cbfdbd ;};if _ebfcb :=_ccedg .LockedField .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064");_ebfcb !=nil {return _ebfcb ;};return nil ;};func (_bcggb *OfcST_ColorMode )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_bcggb =0;case "\u0061\u0075\u0074\u006f":*_bcggb =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_bcggb =2;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Shadow and its children
|
|
|
|
func (_bfdgc *CT_Shadow )Validate ()error {return _bfdgc .ValidateWithPath ("\u0043T\u005f\u0053\u0068\u0061\u0064\u006fw");};func (_cdddg ST_ImageAspect )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_egdae :=_a .Attr {};_egdae .Name =name ;switch _cdddg {case ST_ImageAspectUnset :_egdae .Value ="";case ST_ImageAspectIgnore :_egdae .Value ="\u0069\u0067\u006e\u006f\u0072\u0065";case ST_ImageAspectAtMost :_egdae .Value ="\u0061\u0074\u004d\u006f\u0073\u0074";case ST_ImageAspectAtLeast :_egdae .Value ="\u0061t\u004c\u0065\u0061\u0073\u0074";};return _egdae ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcBottom and its children
|
|
|
|
func (_edgbe *OfcBottom )Validate ()error {return _edgbe .ValidateWithPath ("\u004ff\u0063\u0042\u006f\u0074\u0074\u006fm");};const (ST_ExtUnset ST_Ext =0;ST_ExtView ST_Ext =1;ST_ExtEdit ST_Ext =2;ST_ExtBackwardCompatible ST_Ext =3;);func (_gdfd *OfcST_Angle )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fabeb ,_gedad :=d .Token ();if _gedad !=nil {return _gedad ;};if _gffbc ,_aggaa :=_fabeb .(_a .EndElement );_aggaa &&_gffbc .Name ==start .Name {*_gdfd =1;return nil ;};if _bcgga ,_gbbbd :=_fabeb .(_a .CharData );!_gbbbd {return _f .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",_fabeb );}else {switch string (_bcgga ){case "":*_gdfd =0;case "\u0061\u006e\u0079":*_gdfd =1;case "\u0033\u0030":*_gdfd =2;case "\u0034\u0035":*_gdfd =3;case "\u0036\u0030":*_gdfd =4;case "\u0039\u0030":*_gdfd =5;case "\u0061\u0075\u0074\u006f":*_gdfd =6;};};_fabeb ,_gedad =d .Token ();if _gedad !=nil {return _gedad ;};if _dbbcc ,_afcfaf :=_fabeb .(_a .EndElement );_afcfaf &&_dbbcc .Name ==start .Name {return nil ;};return _f .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",_fabeb );};func (_eacda ST_StrokeEndCap )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_eacda .String (),start );};func (_aegee ST_StrokeArrowWidth )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_deadbg :=_a .Attr {};_deadbg .Name =name ;switch _aegee {case ST_StrokeArrowWidthUnset :_deadbg .Value ="";case ST_StrokeArrowWidthNarrow :_deadbg .Value ="\u006e\u0061\u0072\u0072\u006f\u0077";case ST_StrokeArrowWidthMedium :_deadbg .Value ="\u006d\u0065\u0064\u0069\u0075\u006d";case ST_StrokeArrowWidthWide :_deadbg .Value ="\u0077\u0069\u0064\u0065";};return _deadbg ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Roundrect and its children, prefixing error messages with path
|
|
|
|
func (_geffc *Roundrect )ValidateWithPath (path string )error {if _bgec :=_geffc .CT_RoundRect .ValidateWithPath (path );_bgec !=nil {return _bgec ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeLayout and its children, prefixing error messages with path
|
|
|
|
func (_edfce *OfcCT_ShapeLayout )ValidateWithPath (path string )error {if _edfce .Idmap !=nil {if _cdgbg :=_edfce .Idmap .ValidateWithPath (path +"\u002f\u0049\u0064\u006d\u0061\u0070");_cdgbg !=nil {return _cdgbg ;};};if _edfce .Regrouptable !=nil {if _dfgba :=_edfce .Regrouptable .ValidateWithPath (path +"\u002f\u0052\u0065\u0067\u0072\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065");_dfgba !=nil {return _dfgba ;};};if _edfce .Rules !=nil {if _deaag :=_edfce .Rules .ValidateWithPath (path +"\u002f\u0052\u0075\u006c\u0065\u0073");_deaag !=nil {return _deaag ;};};if _aafe :=_edfce .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_aafe !=nil {return _aafe ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Oval and its children, prefixing error messages with path
|
|
|
|
func (_cfda *CT_Oval )ValidateWithPath (path string )error {for _bafff ,_ddg :=range _cfda .EG_ShapeElements {if _ecgdcb :=_ddg .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bafff ));_ecgdcb !=nil {return _ecgdcb ;};};if _ecga :=_cfda .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ecga !=nil {return _ecga ;};if _aeace :=_cfda .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_aeace !=nil {return _aeace ;};if _dcea :=_cfda .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_dcea !=nil {return _dcea ;};if _agfab :=_cfda .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_agfab !=nil {return _agfab ;};if _gegbc :=_cfda .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_gegbc !=nil {return _gegbc ;};if _gcff :=_cfda .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_gcff !=nil {return _gcff ;};if _cbfbg :=_cfda .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cbfbg !=nil {return _cbfbg ;};if _gbdc :=_cfda .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gbdc !=nil {return _gbdc ;};if _fcbgg :=_cfda .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fcbgg !=nil {return _fcbgg ;};if _cfeb :=_cfda .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_cfeb !=nil {return _cfeb ;};if _gegdc :=_cfda .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gegdc !=nil {return _gegdc ;};if _bcag :=_cfda .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bcag !=nil {return _bcag ;};if _afcg :=_cfda .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_afcg !=nil {return _afcg ;};if _faecd :=_cfda .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_faecd !=nil {return _faecd ;};if _fgafc :=_cfda .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_fgafc !=nil {return _fgafc ;};if _fgeee :=_cfda .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fgeee !=nil {return _fgeee ;};if _fdbeaf :=_cfda .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_fdbeaf !=nil {return _fdbeaf ;};if _dbdda :=_cfda .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_dbdda !=nil {return _dbdda ;};if _eaabg :=_cfda .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_eaabg !=nil {return _eaabg ;};if _cdbcb :=_cfda .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_cdbcb !=nil {return _cdbcb ;};if _bfgffb :=_cfda .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bfgffb !=nil {return _bfgffb ;};if _afbfe :=_cfda .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_afbfe !=nil {return _afbfe ;};if _cabd :=_cfda .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_cab
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Textpath and its children, prefixing error messages with path
|
|
|
|
func (_fbebb *Textpath )ValidateWithPath (path string )error {if _eaadc :=_fbebb .CT_TextPath .ValidateWithPath (path );_eaadc !=nil {return _eaadc ;};return nil ;};func NewOfcCT_StrokeChild ()*OfcCT_StrokeChild {_eeged :=&OfcCT_StrokeChild {};return _eeged };func (_cbagc *OfcST_ConnectType )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_bgffb ,_becfe :=d .Token ();if _becfe !=nil {return _becfe ;};if _cgeeeg ,_dfagab :=_bgffb .(_a .EndElement );_dfagab &&_cgeeeg .Name ==start .Name {*_cbagc =1;return nil ;};if _ggdbf ,_cffcdf :=_bgffb .(_a .CharData );!_cffcdf {return _f .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",_bgffb );}else {switch string (_ggdbf ){case "":*_cbagc =0;case "\u006e\u006f\u006e\u0065":*_cbagc =1;case "\u0072\u0065\u0063\u0074":*_cbagc =2;case "\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073":*_cbagc =3;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_cbagc =4;};};_bgffb ,_becfe =d .Token ();if _becfe !=nil {return _becfe ;};if _bfgbg ,_ffcga :=_bgffb .(_a .EndElement );_ffcga &&_bfgbg .Name ==start .Name {return nil ;};return _f .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",_bgffb );};func NewShapetype ()*Shapetype {_bfbfb :=&Shapetype {};_bfbfb .CT_Shapetype =*NewCT_Shapetype ();return _bfbfb ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcShapelayout and its children
|
|
|
|
func (_deafc *OfcShapelayout )Validate ()error {return _deafc .ValidateWithPath ("\u004f\u0066\u0063\u0053\u0068\u0061\u0070\u0065\u006ca\u0079\u006f\u0075\u0074");};func (_ecgdd OfcST_BWMode )String ()string {switch _ecgdd {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 "";};
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_ImageData and its children
|
|
|
|
func (_gbaee *CT_ImageData )Validate ()error {return _gbaee .ValidateWithPath ("\u0043\u0054\u005fI\u006d\u0061\u0067\u0065\u0044\u0061\u0074\u0061");};func NewOfcCT_Complex ()*OfcCT_Complex {_gbabeg :=&OfcCT_Complex {};return _gbabeg };func NewCT_Formulas ()*CT_Formulas {_daebb :=&CT_Formulas {};return _daebb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_Style and its children
|
|
|
|
func (_eafe *AG_Style )Validate ()error {return _eafe .ValidateWithPath ("\u0041\u0047\u005f\u0053\u0074\u0079\u006c\u0065");};func (_fbcge *OfcLock )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fbcge .OfcCT_Lock =*NewOfcCT_Lock ();for _ ,_badcg :=range start .Attr {if _badcg .Name .Local =="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"{_fbcge .PositionAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0073e\u006c\u0065\u0063\u0074\u0069\u006fn"{_fbcge .SelectionAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"{_fbcge .GroupingAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0075\u006e\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"{_fbcge .UngroupingAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_fbcge .RotationAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0063\u0072\u006f\u0070\u0070\u0069\u006e\u0067"{_fbcge .CroppingAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0076e\u0072\u0074\u0069\u0063\u0069\u0065s"{_fbcge .VerticiesAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0061\u0064\u006a\u0075\u0073\u0074\u0068\u0061\u006e\u0064\u006c\u0065\u0073"{_fbcge .AdjusthandlesAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0074\u0065\u0078\u0074"{_fbcge .TextAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="a\u0073\u0070\u0065\u0063\u0074\u0072\u0061\u0074\u0069\u006f"{_fbcge .AspectratioAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0073h\u0061\u0070\u0065\u0074\u0079\u0070e"{_fbcge .ShapetypeAttr .UnmarshalXMLAttr (_badcg );continue ;};if _badcg .Name .Local =="\u0065\u0078\u0074"{_fbcge .ExtAttr .UnmarshalXMLAttr (_badcg );continue ;};};for {_ebgfbd ,_ggfed :=d .Token ();if _ggfed !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u004c\u006f\u0063\u006b\u003a\u0020\u0025\u0073",_ggfed );};if _affb ,_ggaec :=_ebgfbd .(_a .EndElement );_ggaec &&_affb .Name ==start .Name {break ;};};return nil ;};func NewArc ()*Arc {_dff :=&Arc {};_dff .CT_Arc =*NewCT_Arc ();return _dff };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_TextPath and its children
|
|
|
|
func (_caafg *CT_TextPath )Validate ()error {return _caafg .ValidateWithPath ("C\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068");};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;);type OfcST_OLEType byte ;func (_gacgcc ST_FillType )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_fbbcf :=_a .Attr {};_fbbcf .Name =name ;switch _gacgcc {case ST_FillTypeUnset :_fbbcf .Value ="";case ST_FillTypeSolid :_fbbcf .Value ="\u0073\u006f\u006ci\u0064";case ST_FillTypeGradient :_fbbcf .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case ST_FillTypeGradientRadial :_fbbcf .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case ST_FillTypeTile :_fbbcf .Value ="\u0074\u0069\u006c\u0065";case ST_FillTypePattern :_fbbcf .Value ="\u0070a\u0074\u0074\u0065\u0072\u006e";case ST_FillTypeFrame :_fbbcf .Value ="\u0066\u0072\u0061m\u0065";};return _fbbcf ,nil ;};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcLock and its children, prefixing error messages with path
|
|
|
|
func (_dfccge *OfcLock )ValidateWithPath (path string )error {if _adaaf :=_dfccge .OfcCT_Lock .ValidateWithPath (path );_adaaf !=nil {return _adaaf ;};return nil ;};func (_eafbe *OfcExtrusion )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_eafbe .OfcCT_Extrusion =*NewOfcCT_Extrusion ();for _ ,_egegd :=range start .Attr {if _egegd .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_eafbe .ColormodeAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u0063\u006f\u006co\u0072"{_ggffe ,_bcbcb :=_egegd .Value ,error (nil );if _bcbcb !=nil {return _bcbcb ;};_eafbe .ColorAttr =&_ggffe ;continue ;};if _egegd .Name .Local =="\u0074\u0079\u0070\u0065"{_eafbe .TypeAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_fbfa ,_cedba :=_gc .ParseFloat (_egegd .Value ,64);if _cedba !=nil {return _cedba ;};_eaae :=float32 (_fbfa );_eafbe .ShininessAttr =&_eaae ;continue ;};if _egegd .Name .Local =="\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"{_feeafd ,_dggga :=_egegd .Value ,error (nil );if _dggga !=nil {return _dggga ;};_eafbe .ViewpointoriginAttr =&_feeafd ;continue ;};if _egegd .Name .Local =="s\u0070\u0065\u0063\u0075\u006c\u0061\u0072\u0069\u0074\u0079"{_aefgg ,_fabfa :=_egegd .Value ,error (nil );if _fabfa !=nil {return _fabfa ;};_eafbe .SpecularityAttr =&_aefgg ;continue ;};if _egegd .Name .Local =="\u0070\u006c\u0061n\u0065"{_eafbe .PlaneAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u0064i\u0066\u0066\u0075\u0073\u0069\u0074y"{_abeab ,_eaegae :=_egegd .Value ,error (nil );if _eaegae !=nil {return _eaegae ;};_eafbe .DiffusityAttr =&_abeab ;continue ;};if _egegd .Name .Local =="\u0073k\u0065\u0077\u0061\u006d\u0074"{_ebcfe ,_fcgfd :=_egegd .Value ,error (nil );if _fcgfd !=nil {return _fcgfd ;};_eafbe .SkewamtAttr =&_ebcfe ;continue ;};if _egegd .Name .Local =="\u006d\u0065\u0074a\u006c"{_eafbe .MetalAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"{_agaeb ,_ebca :=_egegd .Value ,error (nil );if _ebca !=nil {return _ebca ;};_eafbe .BackdepthAttr =&_agaeb ;continue ;};if _egegd .Name .Local =="\u0065\u0064\u0067\u0065"{_bdbeb ,_eacfg :=_egegd .Value ,error (nil );if _eacfg !=nil {return _eacfg ;};_eafbe .EdgeAttr =&_bdbeb ;continue ;};if _egegd .Name .Local =="l\u0069\u0067\u0068\u0074\u006c\u0065\u0076\u0065\u006c\u0032"{_edcfa ,_gadfd :=_egegd .Value ,error (nil );if _gadfd !=nil {return _gadfd ;};_eafbe .Lightlevel2Attr =&_edcfa ;continue ;};if _egegd .Name .Local =="\u006f\u0072i\u0065\u006e\u0074a\u0074\u0069\u006f\u006e\u0061\u006e\u0067\u006c\u0065"{_gcfdef ,_gdfce :=_gc .ParseFloat (_egegd .Value ,64);if _gdfce !=nil {return _gdfce ;};_facfa :=float32 (_gcfdef );_eafbe .OrientationangleAttr =&_facfa ;continue ;};if _egegd .Name .Local =="\u006f\u006e"{_eafbe .OnAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u006c\u0069\u0067\u0068\u0074\u0068\u0061\u0072\u0073\u0068"{_eafbe .LightharshAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u006ci\u0067\u0068\u0074\u0066\u0061\u0063e"{_eafbe .LightfaceAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u0066o\u0072\u0065\u0064\u0065\u0070\u0074h"{_fbfb ,_afbfff :=_egegd .Value ,error (nil );if _afbfff !=nil {return _afbfff ;};_eafbe .ForedepthAttr =&_fbfb ;continue ;};if _egegd .Name .Local =="\u0065\u0078\u0074"{_eafbe .ExtAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u0061u\u0074o\u0072\u006f\u0074\u0061\u0074i\u006f\u006ec\u0065\u006e\u0074\u0065\u0072"{_eafbe .AutorotationcenterAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u0066\u0061\u0063e\u0074"{_gdbce ,_eefbe :=_egegd .Value ,error (nil );if _eefbe !=nil {return _eefbe ;};_eafbe .FacetAttr =&_gdbce ;continue ;};if _egegd .Name .Local =="\u0072\u0065\u006e\u0064\u0065\u0072"{_eafbe .RenderAttr .UnmarshalXMLAttr (_egegd );continue ;};if _egegd .Name .Local =="\u006c\u0069\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_RoundRect and its children, prefixing error messages with path
|
|
|
|
func (_bfade *CT_RoundRect )ValidateWithPath (path string )error {for _dgeaa ,_defc :=range _bfade .EG_ShapeElements {if _ccfg :=_defc .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_dgeaa ));_ccfg !=nil {return _ccfg ;};};if _bbebe :=_bfade .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_bbebe !=nil {return _bbebe ;};if _debed :=_bfade .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_debed !=nil {return _debed ;};if _egfb :=_bfade .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_egfb !=nil {return _egfb ;};if _dddfa :=_bfade .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_dddfa !=nil {return _dddfa ;};if _edgg :=_bfade .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_edgg !=nil {return _edgg ;};if _dgcfc :=_bfade .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dgcfc !=nil {return _dgcfc ;};if _affc :=_bfade .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_affc !=nil {return _affc ;};if _cgeb :=_bfade .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_cgeb !=nil {return _cgeb ;};if _afega :=_bfade .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_afega !=nil {return _afega ;};if _gbgeaf :=_bfade .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_gbgeaf !=nil {return _gbgeaf ;};if _bbggc :=_bfade .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_bbggc !=nil {return _bbggc ;};if _cgda :=_bfade .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_cgda !=nil {return _cgda ;};if _fedg :=_bfade .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fedg !=nil {return _fedg ;};if _decag :=_bfade .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_decag !=nil {return _decag ;};if _ccagf :=_bfade .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_ccagf !=nil {return _ccagf ;};if _bgee :=_bfade .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_bgee !=nil {return _bgee ;};if _cecga :=_bfade .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cecga !=nil {return _cecga ;};if _edgc :=_bfade .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_edgc !=nil {return _edgc ;};if _agce :=_bfade .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_agce !=nil {return _agce ;};if _gcebg :=_bfade .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_gcebg !=nil {return _gcebg ;};if _abac :=_bfade .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_abac !=nil {return _abac ;};if _eeeb :=_bfade .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_eeeb !=nil {return _eeeb ;};if _aabbg :=_bfade .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Stroke and its children
|
|
|
|
func (_bfege *Stroke )Validate ()error {return _bfege .ValidateWithPath ("\u0053\u0074\u0072\u006f\u006b\u0065");};func (_ebdbe OfcST_ColorMode )String ()string {switch _ebdbe {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Shape and its children, prefixing error messages with path
|
|
|
|
func (_edeab *CT_Shape )ValidateWithPath (path string )error {for _faagfa ,_cfdde :=range _edeab .Ink {if _fcabd :=_cfdde .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_faagfa ));_fcabd !=nil {return _fcabd ;};};for _geccb ,_fbffg :=range _edeab .Iscomment {if _gedd :=_fbffg .ValidateWithPath (_f .Sprintf ("\u0025\u0073/\u0049\u0073\u0063o\u006d\u006d\u0065\u006e\u0074\u005b\u0025\u0064\u005d",path ,_geccb ));_gedd !=nil {return _gedd ;};};for _cbec ,_aacg :=range _edeab .Equationxml {if _bbccc :=_aacg .ValidateWithPath (_f .Sprintf ("\u0025s\u002fE\u0071\u0075\u0061\u0074\u0069o\u006e\u0078m\u006c\u005b\u0025\u0064\u005d",path ,_cbec ));_bbccc !=nil {return _bbccc ;};};for _cbgga ,_daec :=range _edeab .EG_ShapeElements {if _bgdc :=_daec .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_cbgga ));_bgdc !=nil {return _bgdc ;};};if _cbefc :=_edeab .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_cbefc !=nil {return _cbefc ;};if _fbfca :=_edeab .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_fbfca !=nil {return _fbfca ;};if _acgef :=_edeab .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_acgef !=nil {return _acgef ;};if _afbfg :=_edeab .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_afbfg !=nil {return _afbfg ;};if _bgcd :=_edeab .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bgcd !=nil {return _bgcd ;};if _ggeag :=_edeab .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ggeag !=nil {return _ggeag ;};if _ebeg :=_edeab .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_ebeg !=nil {return _ebeg ;};if _gaca :=_edeab .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gaca !=nil {return _gaca ;};if _dceee :=_edeab .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_dceee !=nil {return _dceee ;};if _baec :=_edeab .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_baec !=nil {return _baec ;};if _gfbfcf :=_edeab .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gfbfcf !=nil {return _gfbfcf ;};if _ageb :=_edeab .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_ageb !=nil {return _ageb ;};if _ceeed :=_edeab .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_ceeed !=nil {return _ceeed ;};if _afdfea :=_edeab .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_afdfea !=nil {return _afdfea ;};if _caee :=_edeab .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_caee !=nil {return _caee ;};if _acaeg :=_edeab .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_acaeg !=nil {return _acaeg ;};if _cddba :=_edeab .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cddba !=nil {return _cddba ;};if _gdcac :=_edeab .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_gdcac !=nil {return _gdcac ;};if _acfde :=_edeab .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_EquationXml and its children
|
|
|
|
func (_ddfg *OfcCT_EquationXml )Validate ()error {return _ddfg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0058\u006d\u006c");};type AG_AllShapeAttributes struct{OpacityAttr *string ;StrokedAttr _c .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _c .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _c .ST_TrueFalse ;OleiconAttr _c .ST_TrueFalse ;OleAttr _c .ST_TrueFalseBlank ;PreferrelativeAttr _c .ST_TrueFalse ;CliptowrapAttr _c .ST_TrueFalse ;ClipAttr _c .ST_TrueFalse ;};func (_fccd ST_Ext )ValidateWithPath (path string )error {switch _fccd {case 0,1,2,3:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fccd ));};return nil ;};func (_cbccde OfcST_RType )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_cbccde .String (),start );};const (ST_StrokeArrowWidthUnset ST_StrokeArrowWidth =0;ST_StrokeArrowWidthNarrow ST_StrokeArrowWidth =1;ST_StrokeArrowWidthMedium ST_StrokeArrowWidth =2;ST_StrokeArrowWidthWide ST_StrokeArrowWidth =3;);
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Textbox and its children
|
|
|
|
func (_aeedf *Textbox )Validate ()error {return _aeedf .ValidateWithPath ("\u0054e\u0078\u0074\u0062\u006f\u0078");};type Arc struct{CT_Arc };func NewTextbox ()*Textbox {_bfdfac :=&Textbox {};_bfdfac .CT_Textbox =*NewCT_Textbox ();return _bfdfac ;};func (_gbbfeg ST_StrokeArrowWidth )Validate ()error {return _gbbfeg .ValidateWithPath ("")};func (_eedgf ST_ImageAspect )Validate ()error {return _eedgf .ValidateWithPath ("")};func (_fabfd *OfcFill )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0066\u0069\u006c\u006c";return _fabfd .OfcCT_Fill .MarshalXML (e ,start );};func (_dea *AG_CoreAttributes )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_cacc :=range start .Attr {if _cacc .Name .Local =="\u0068\u0072\u0065\u0066"{_beae ,_fdab :=_cacc .Value ,error (nil );if _fdab !=nil {return _fdab ;};_dea .HrefAttr =&_beae ;continue ;};if _cacc .Name .Local =="\u0074\u0061\u0072\u0067\u0065\u0074"{_bbg ,_gdbc :=_cacc .Value ,error (nil );if _gdbc !=nil {return _gdbc ;};_dea .TargetAttr =&_bbg ;continue ;};if _cacc .Name .Local =="\u0063\u006c\u0061s\u0073"{_beec ,_dcbc :=_cacc .Value ,error (nil );if _dcbc !=nil {return _dcbc ;};_dea .ClassAttr =&_beec ;continue ;};if _cacc .Name .Local =="\u0074\u0069\u0074l\u0065"{_gfb ,_bcbd :=_cacc .Value ,error (nil );if _bcbd !=nil {return _bcbd ;};_dea .TitleAttr =&_gfb ;continue ;};if _cacc .Name .Local =="\u0061\u006c\u0074"{_ebg ,_cgbfc :=_cacc .Value ,error (nil );if _cgbfc !=nil {return _cgbfc ;};_dea .AltAttr =&_ebg ;continue ;};if _cacc .Name .Local =="\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"{_bdb ,_bge :=_cacc .Value ,error (nil );if _bge !=nil {return _bge ;};_dea .CoordsizeAttr =&_bdb ;continue ;};if _cacc .Name .Local =="c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"{_fee ,_aad :=_cacc .Value ,error (nil );if _aad !=nil {return _
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_AllShapeAttributes and its children
|
|
|
|
func (_fgd *AG_AllShapeAttributes )Validate ()error {return _fgd .ValidateWithPath ("A\u0047\u005f\u0041\u006clS\u0068a\u0070\u0065\u0041\u0074\u0074r\u0069\u0062\u0075\u0074\u0065\u0073");};func (_egdf *CT_Path )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0070\u0061\u0074\u0068";};if _egdf .VAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0076"},Value :_f .Sprintf ("\u0025\u0076",*_egdf .VAttr )});};if _egdf .LimoAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006c\u0069\u006d\u006f"},Value :_f .Sprintf ("\u0025\u0076",*_egdf .LimoAttr )});};if _egdf .TextboxrectAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"t\u0065\u0078\u0074\u0062\u006f\u0078\u0072\u0065\u0063\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_egdf .TextboxrectAttr )});};if _egdf .FillokAttr !=_c .ST_TrueFalseUnset {_efedc ,_gdcfg :=_egdf .FillokAttr .MarshalXMLAttr (_a .Name {Local :"\u0066\u0069\u006c\u006c\u006f\u006b"});if _gdcfg !=nil {return _gdcfg ;};start .Attr =append (start .Attr ,_efedc );};if _egdf .StrokeokAttr !=_c .ST_TrueFalseUnset {_cede ,_fbegd :=_egdf .StrokeokAttr .MarshalXMLAttr (_a .Name {Local :"\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"});if _fbegd !=nil {return _fbegd ;};start .Attr =append (start .Attr ,_cede );};if _egdf .ShadowokAttr !=_c .ST_TrueFalseUnset {_cfffa ,_bcbf :=_egdf .ShadowokAttr .MarshalXMLAttr (_a .Name {Local :"\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"});if _bcbf !=nil {return _bcbf ;};start .Attr =append (start .Attr ,_cfffa );};if _egdf .ArrowokAttr !=_c .ST_TrueFalseUnset {_ebffa ,_afaf :=_egdf .ArrowokAttr .MarshalXMLAttr (_a .Name {Local :"\u0061r\u0072\u006f\u0077\u006f\u006b"});if _afaf !=nil {return _afaf ;};start .Attr =append (start .Attr ,_ebffa );};if _egdf .GradientshapeokAttr !=_c .ST_TrueFalseUnset {_fbfe ,_fggeg :=_egdf .GradientshapeokAttr .MarshalXMLAttr (_a .Name {Local :"\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"});if _fggeg !=nil {return _fggeg ;};start .Attr =append (start .Attr ,_fbfe );};if _egdf .TextpathokAttr !=_c .ST_TrueFalseUnset {_fdecg ,_gegbe :=_egdf .TextpathokAttr .MarshalXMLAttr (_a .Name {Local :"\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"});if _gegbe !=nil {return _gegbe ;};start .Attr =append (start .Attr ,_fdecg );};if _egdf .InsetpenokAttr !=_c .ST_TrueFalseUnset {_dbgef ,_fbfcc :=_egdf .InsetpenokAttr .MarshalXMLAttr (_a .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"});if _fbfcc !=nil {return _fbfcc ;};start .Attr =append (start .Attr ,_dbgef );};if _egdf .ConnecttypeAttr !=OfcST_ConnectTypeUnset {_gfdee ,_gede :=_egdf .ConnecttypeAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"});if _gede !=nil {return _gede ;};start .Attr =append (start .Attr ,_gfdee );};if _egdf .ConnectlocsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_egdf .ConnectlocsAttr )});};if _egdf .ConnectanglesAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_egdf .ConnectanglesAttr )});};if _egdf .ExtrusionokAttr !=_c .ST_TrueFalseUnset {_cfdd ,_bcdf :=_egdf .ExtrusionokAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"});if _bcdf !=nil {return _bcdf ;};start .Attr =append (start .Attr ,_cfdd );};if _egdf .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_egdf .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_feead OfcST_ConnectorType )String ()string
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_EquationXml and its children, prefixing error messages with path
|
|
|
|
func (_agbac *OfcCT_EquationXml )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Group and its children, prefixing error messages with path
|
|
|
|
func (_bebffc *CT_Group )ValidateWithPath (path string )error {if _gebc :=_bebffc .EditasAttr .ValidateWithPath (path +"/\u0045\u0064\u0069\u0074\u0061\u0073\u0041\u0074\u0074\u0072");_gebc !=nil {return _gebc ;};for _ffdecd ,_fcea :=range _bebffc .Group {if _edeea :=_fcea .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fG\u0072\u006f\u0075\u0070\u005b\u0025\u0064\u005d",path ,_ffdecd ));_edeea !=nil {return _edeea ;};};for _gbdf ,_cabff :=range _bebffc .Shape {if _cggc :=_cabff .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fS\u0068\u0061\u0070\u0065\u005b\u0025\u0064\u005d",path ,_gbdf ));_cggc !=nil {return _cggc ;};};for _ddbd ,_bbfc :=range _bebffc .Shapetype {if _cbcg :=_bbfc .ValidateWithPath (_f .Sprintf ("\u0025\u0073/\u0053\u0068\u0061p\u0065\u0074\u0079\u0070\u0065\u005b\u0025\u0064\u005d",path ,_ddbd ));_cbcg !=nil {return _cbcg ;};};for _fegae ,_afge :=range _bebffc .Arc {if _fcad :=_afge .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0041\u0072\u0063\u005b\u0025\u0064\u005d",path ,_fegae ));_fcad !=nil {return _fcad ;};};for _adggc ,_begg :=range _bebffc .Curve {if _abdd :=_begg .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fC\u0075\u0072\u0076\u0065\u005b\u0025\u0064\u005d",path ,_adggc ));_abdd !=nil {return _abdd ;};};for _deba ,_ggbda :=range _bebffc .Image {if _gegg :=_ggbda .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fI\u006d\u0061\u0067\u0065\u005b\u0025\u0064\u005d",path ,_deba ));_gegg !=nil {return _gegg ;};};for _ddca ,_fcebb :=range _bebffc .Line {if _efgac :=_fcebb .ValidateWithPath (_f .Sprintf ("%\u0073\u002f\u004c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_ddca ));_efgac !=nil {return _efgac ;};};for _eeef ,_dcdd :=range _bebffc .Oval {if _deefe :=_dcdd .ValidateWithPath (_f .Sprintf ("%\u0073\u002f\u004f\u0076\u0061\u006c\u005b\u0025\u0064\u005d",path ,_eeef ));_deefe !=nil {return _deefe ;};};for _fdddg ,_geec :=range _bebffc .Polyline {if _edebg :=_geec .ValidateWithPath (_f .Sprintf ("\u0025s\u002fP\u006f\u006c\u0079\u006c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_fdddg ));_edebg !=nil {return _edebg ;};};for _dbbad ,_fcgb :=range _bebffc .Rect {if _bcabb :=_fcgb .ValidateWithPath (_f .Sprintf ("%\u0073\u002f\u0052\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_dbbad ));_bcabb !=nil {return _bcabb ;};};for _fggc ,_fafaa :=range _bebffc .Roundrect {if _cefcf :=_fafaa .ValidateWithPath (_f .Sprintf ("\u0025\u0073/\u0052\u006f\u0075n\u0064\u0072\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_fggc ));_cefcf !=nil {return _cefcf ;};};for _gbge ,_fdfbd :=range _bebffc .Diagram {if _ggde :=_fdfbd .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0044\u0069\u0061\u0067\u0072\u0061m\u005b\u0025\u0064\u005d",path ,_gbge ));_ggde !=nil {return _ggde ;};};for _fbgc ,_aadbeg :=range _bebffc .EG_ShapeElements {if _aacc :=_aadbeg .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fbgc ));_aacc !=nil {return _aacc ;};};if _bbfe :=_bebffc .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_bbfe !=nil {return _bbfe ;};if _cfef :=_bebffc .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_cfef !=nil {return _cfef ;};if _fdce :=_bebffc .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_fdce !=nil {return _fdce ;};if _bbebf :=_bebffc .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_bbebf !=nil {return _bbebf ;};if _acaa :=_bebffc .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_acaa !=nil {return _acaa ;};if _cdbg :=_bebffc .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_cdbg !=nil {return _cdbg ;};if _gfaee :=_bebffc .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcTop and its children, prefixing error messages with path
|
|
|
|
func (_gcceg *OfcTop )ValidateWithPath (path string )error {if _bgfa :=_gcceg .OfcCT_StrokeChild .ValidateWithPath (path );_bgfa !=nil {return _bgfa ;};return nil ;};func (_cedaeb *OfcST_ExtrusionType )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_cedaeb =0;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_cedaeb =1;case "\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c":*_cedaeb =2;};return nil ;};func NewFill ()*Fill {_faebg :=&Fill {};_faebg .CT_Fill =*NewCT_Fill ();return _faebg };func (_bgefd *Handles )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_bgefd .CT_Handles =*NewCT_Handles ();_bgcb :for {_gcdcd ,_bddffg :=d .Token ();if _bddffg !=nil {return _bddffg ;};switch _facaf :=_gcdcd .(type ){case _a .StartElement :switch _facaf .Name {case _a .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"}:_dbdgf :=NewCT_H ();if _dddcb :=d .DecodeElement (_dbdgf ,&_facaf );_dddcb !=nil {return _dddcb ;};_bgefd .H =append (_bgefd .H ,_dbdgf );default:_ag .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",_facaf .Name );if _dafad :=d .Skip ();_dafad !=nil {return _dafad ;};};case _a .EndElement :break _bgcb ;case _a .CharData :};};return nil ;};func (_efgadd *OfcDiagram )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_efgadd .OfcCT_Diagram =*NewOfcCT_Diagram ();for _ ,_cccfb :=range start .Attr {if _cccfb .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_fadbd ,_cdddb :=_gc .ParseInt (_cccfb .Value ,10,64);if _cdddb !=nil {return _cdddb ;};_efgadd .DgmstyleAttr =&_fadbd ;continue ;};if _cccfb .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_efgadd .AutoformatAttr .UnmarshalXMLAttr (_cccfb );continue ;};if _cccfb .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_efgadd .ReverseAttr .UnmarshalXMLAttr (_cccfb );continue ;};if _cccfb .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_efgadd .AutolayoutAttr .UnmarshalXMLAttr (_cccfb );continue ;};if _cccfb .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_acdcb ,_eadae :=_gc .ParseInt (_cccfb .Value ,10,64);if _eadae !=nil {return _eadae ;};_efgadd .DgmscalexAttr =&_acdcb ;continue ;};if _cccfb .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_eeace ,_eeacef :=_gc .ParseInt (_cccfb .Value ,10,64);if _eeacef !=nil {return _eeacef ;};_efgadd .DgmscaleyAttr =&_eeace ;continue ;};if _cccfb .Name .Local =="d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"{_aebeb ,_dgce :=_gc .ParseInt (_cccfb .Value ,10,64);if _dgce !=nil {return _dgce ;};_efgadd .DgmfontsizeAttr =&_aebeb ;continue ;};if _cccfb .Name .Local =="\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"{_gfgfc ,_cffab :=_cccfb .Value ,error (nil );if _cffab !=nil {return _cffab ;};_efgadd .ConstrainboundsAttr =&_gfgfc ;continue ;};if _cccfb .Name .Local =="\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"{_geacg ,_geag :=_gc .ParseInt (_cccfb .Value ,10,64);if _geag !=nil {return _geag ;};_efgadd .DgmbasetextscaleAttr =&_geacg ;continue ;};if _cccfb .Name .Local =="\u0065\u0078\u0074"{_efgadd .ExtAttr .UnmarshalXMLAttr (_cccfb );continue ;};};_bdbge :for {_faccd ,_cbcbd :=d .Token ();if _cbcbd !=nil {return _cbcbd ;};switch _efaae :=_faccd .(type ){case _a .StartElement :switch _efaae .Name {case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\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"}:_efgadd .Relat
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_ColorMenu and its children
|
|
|
|
func (_caaad *OfcCT_ColorMenu )Validate ()error {return _caaad .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0043\u006f\u006c\u006f\u0072\u004d\u0065\u006e\u0075");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcEquationxml and its children, prefixing error messages with path
|
|
|
|
func (_deagdg *OfcEquationxml )ValidateWithPath (path string )error {if _cgbacd :=_deagdg .OfcCT_EquationXml .ValidateWithPath (path );_cgbacd !=nil {return _cgbacd ;};return nil ;};const (ST_ImageAspectUnset ST_ImageAspect =0;ST_ImageAspectIgnore ST_ImageAspect =1;ST_ImageAspectAtMost ST_ImageAspect =2;ST_ImageAspectAtLeast ST_ImageAspect =3;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Shapetype and its children
|
|
|
|
func (_agfbc *CT_Shapetype )Validate ()error {return _agfbc .ValidateWithPath ("\u0043\u0054\u005fS\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065");};func NewOfcEquationxml ()*OfcEquationxml {_bccfa :=&OfcEquationxml {};_bccfa .OfcCT_EquationXml =*NewOfcCT_EquationXml ();return _bccfa ;};func (_geafa OfcST_Angle )ValidateWithPath (path string )error {switch _geafa {case 0,1,2,3,4,5,6:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_geafa ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Group and its children
|
|
|
|
func (_faed *CT_Group )Validate ()error {return _faed .ValidateWithPath ("\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_Type and its children, prefixing error messages with path
|
|
|
|
func (_fafc *AG_Type )ValidateWithPath (path string )error {return nil };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;);type ST_StrokeEndCap byte ;func (_cddgaa *OfcSkew )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cddgaa .OfcCT_Skew =*NewOfcCT_Skew ();for _ ,_egegc :=range start .Attr {if _egegc .Name .Local =="\u0069\u0064"{_ebfag ,_aaddc :=_egegc .Value ,error (nil );if _aaddc !=nil {return _aaddc ;};_cddgaa .IdAttr =&_ebfag ;continue ;};if _egegc .Name .Local =="\u006f\u006e"{_cddgaa .OnAttr .UnmarshalXMLAttr (_egegc );continue ;};if _egegc .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_fggfb ,_cbbgg :=_egegc .Value ,error (nil );if _cbbgg !=nil {return _cbbgg ;};_cddgaa .OffsetAttr =&_fggfb ;continue ;};if _egegc .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_dfdgc ,_bcdcc :=_egegc .Value ,error (nil );if _bcdcc !=nil {return _bcdcc ;};_cddgaa .OriginAttr =&_dfdgc ;continue ;};if _egegc .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_fgfeba ,_cgcd :=_egegc .Value ,error (nil );if _cgcd !=nil {return _cgcd ;};_cddgaa .MatrixAttr =&_fgfeba ;continue ;};if _egegc .Name .Local =="\u0065\u0078\u0074"{_cddgaa .ExtAttr .UnmarshalXMLAttr (_egegc );continue ;};};for {_fcfg ,_becfa :=d .Token ();if _becfa !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0053\u006b\u0065\u0077\u003a\u0020\u0025\u0073",_becfa );};if _caebbd ,_gfaag :=_fcfg .(_a .EndElement );_gfaag &&_caebbd .Name ==start .Name {break ;};};return nil ;};func (_afbef OfcST_FillType )Validate ()error {return _afbef .ValidateWithPath ("")};func (_fbbgd *OfcShapedefaults )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcColumn and its children, prefixing error messages with path
|
|
|
|
func (_bdgec *OfcColumn )ValidateWithPath (path string )error {if _fgdae :=_bdgec .OfcCT_StrokeChild .ValidateWithPath (path );_fgdae !=nil {return _fgdae ;};return nil ;};func NewPath ()*Path {_ffbgb :=&Path {};_ffbgb .CT_Path =*NewCT_Path ();return _ffbgb };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_OfficeCoreAttributes and its children
|
|
|
|
func (_gddg *AG_OfficeCoreAttributes )Validate ()error {return _gddg .ValidateWithPath ("\u0041\u0047\u005fOf\u0066\u0069\u0063\u0065\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};func (_defgbf ST_StrokeJoinStyle )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_ebfega :=_a .Attr {};_ebfega .Name =name ;switch _defgbf {case ST_StrokeJoinStyleUnset :_ebfega .Value ="";case ST_StrokeJoinStyleRound :_ebfega .Value ="\u0072\u006f\u0075n\u0064";case ST_StrokeJoinStyleBevel :_ebfega .Value ="\u0062\u0065\u0076e\u006c";case ST_StrokeJoinStyleMiter :_ebfega .Value ="\u006d\u0069\u0074e\u0072";};return _ebfega ,nil ;};func (_efagf ST_StrokeArrowLength )String ()string {switch _efagf {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 (_ffcgd *OfcCT_RegroupTable )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070t\u0061\u0062\u006c\u0065";};if _ffcgd .ExtAttr !=ST_ExtUnset {_eacacc ,_feabd :=_ffcgd .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _feabd !=nil {return _feabd ;};start .Attr =append (start .Attr ,_eacacc );};e .EncodeToken (start );if _ffcgd .Entry !=nil {_beeda :=_a .StartElement {Name :_a .Name {Local :"\u006f:\u0065\u006e\u0074\u0072\u0079"}};for _ ,_bgcbaf :=range _ffcgd .Entry {e .EncodeElement (_bgcbaf ,_beeda );};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_gcdfd OfcST_Angle )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_fgadf :=_a .Attr {};_fgadf .Name =name ;switch _gcdfd {case OfcST_AngleUnset :_fgadf .Value ="";case OfcST_AngleAny :_fgadf .Value ="\u0061\u006e\u0079";case OfcST_Angle30 :_fgadf .Value ="\u0033\u0030";case OfcST_Angle45 :_fgadf .Value ="\u0034\u0035";case OfcST_Angle60 :_fgadf .Value ="\u0036\u0030";case OfcST_Angle90 :_fgadf .Value ="\u0039\u0030";case OfcST_AngleAuto :_fgadf .Value ="\u0061\u0075\u0074\u006f";};return _fgadf ,nil ;};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_AllCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_bbcf *AG_AllCoreAttributes )ValidateWithPath (path string )error {if _cgd :=_bbcf .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_cgd !=nil {return _cgd ;};if _ggb :=_bbcf .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ggb !=nil {return _ggb ;};if _dfc :=_bbcf .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_dfc !=nil {return _dfc ;};if _gcf :=_bbcf .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_gcf !=nil {return _gcf ;};if _ged :=_bbcf .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_ged !=nil {return _ged ;};if _fea :=_bbcf .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_fea !=nil {return _fea ;};if _ddc :=_bbcf .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_ddc !=nil {return _ddc ;};if _bee :=_bbcf .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_bee !=nil {return _bee ;};if _add :=_bbcf .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_add !=nil {return _add ;};if _caa :=_bbcf .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_caa !=nil {return _caa ;};if _dab :=_bbcf .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_dab !=nil {return _dab ;};if _dgb :=_bbcf .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_dgb !=nil {return _dgb ;};if _fgg :=_bbcf .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fgg !=nil {return _fgg ;};if _dde :=_bbcf .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_dde !=nil {return _dde ;};if _acf :=_bbcf .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_acf !=nil {return _acf ;};if _ffe :=_bbcf .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_ffe !=nil {return _ffe ;};return nil ;};func NewAG_Id ()*AG_Id {_dbg :=&AG_Id {};return _dbg };func (_bfgcf *OfcST_How )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_bfgcf =0;case "\u0074\u006f\u0070":*_bfgcf =1;case "\u006d\u0069\u0064\u0064\u006c\u0065":*_bfgcf =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_bfgcf =3;case "\u006c\u0065\u0066\u0074":*_bfgcf =4;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_bfgcf =5;case "\u0072\u0069\u0067h\u0074":*_bfgcf =6;};return nil ;};func (_acgea *OfcCT_Extrusion )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_dgaf :=range start .Attr {if _dgaf .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_acgea .ColormodeAttr .UnmarshalXMLAttr (_dgaf );continue ;};if _dgaf .Name .Local =="\u0063\u006f\u006co\u0072"{_aegdf ,_aeeg :=_dgaf .Value ,error (nil );if _aeeg !=nil {return _aeeg ;};_acgea .ColorAttr =&_aegdf ;continue ;};if _dgaf .Name .Local =="\u0074\u0079\u0070\u0065"{_acgea .TypeAttr .UnmarshalXMLAttr (_dgaf );continue ;};if _dgaf .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_gagb ,_cbff :=_gc .ParseFloat (_dgaf .Value ,64);if _cbff !=nil {return _cbff ;};_abbfa :=float32 (_gagb );_acgea .ShininessAttr =&_abbfa ;continue ;};if _dgaf .Name .Local =="\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"{_bddaea ,_abgce :=_dgaf .Value ,error (nil );if _abgce !=nil {return _abgce ;};_acgea .ViewpointoriginAttr =&_bddaea ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Stroke and its children, prefixing error messages with path
|
|
|
|
func (_ggacd *CT_Stroke )ValidateWithPath (path string )error {if _ggacd .Left !=nil {if _bbdea :=_ggacd .Left .ValidateWithPath (path +"\u002f\u004c\u0065f\u0074");_bbdea !=nil {return _bbdea ;};};if _ggacd .Top !=nil {if _caac :=_ggacd .Top .ValidateWithPath (path +"\u002f\u0054\u006f\u0070");_caac !=nil {return _caac ;};};if _ggacd .Right !=nil {if _cead :=_ggacd .Right .ValidateWithPath (path +"\u002f\u0052\u0069\u0067\u0068\u0074");_cead !=nil {return _cead ;};};if _ggacd .Bottom !=nil {if _gfdcf :=_ggacd .Bottom .ValidateWithPath (path +"\u002fB\u006f\u0074\u0074\u006f\u006d");_gfdcf !=nil {return _gfdcf ;};};if _ggacd .Column !=nil {if _cdad :=_ggacd .Column .ValidateWithPath (path +"\u002fC\u006f\u006c\u0075\u006d\u006e");_cdad !=nil {return _cdad ;};};if _cbabe :=_ggacd .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_cbabe !=nil {return _cbabe ;};if _fgabf :=_ggacd .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_fgabf !=nil {return _fgabf ;};if _bcgge :=_ggacd .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_bcgge !=nil {return _bcgge ;};if _dcdg :=_ggacd .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_dcdg !=nil {return _dcdg ;};if _afdae :=_ggacd .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_afdae !=nil {return _afdae ;};if _eadcf :=_ggacd .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_eadcf !=nil {return _eadcf ;};if _gffef :=_ggacd .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_gffef !=nil {return _gffef ;};if _cacce :=_ggacd .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_cacce !=nil {return _cacce ;};if _ceaaea :=_ggacd .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_ceaaea !=nil {return _ceaaea ;};if _ggeca :=_ggacd .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_ggeca !=nil {return _ggeca ;};if _efdf :=_ggacd .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_efdf !=nil {return _efdf ;};if _beba :=_ggacd .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_beba !=nil {return _beba ;};if _ccfed :=_ggacd .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_ccfed !=nil {return _ccfed ;};if _gbgfe :=_ggacd .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_gbgfe !=nil {return _gbgfe ;};if _cbecc :=_ggacd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_cbecc !=nil {return _cbecc ;};return nil ;};type OfcComplex struct{OfcCT_Complex };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Path and its children
|
|
|
|
func (_egdbe *CT_Path )Validate ()error {return _egdbe .ValidateWithPath ("\u0043T\u005f\u0050\u0061\u0074\u0068");};func (_fbbef ST_StrokeArrowType )String ()string {switch _fbbef {case 0:return "";case 1:return "\u006e\u006f\u006e\u0065";case 2:return "\u0062\u006c\u006fc\u006b";case 3:return "\u0063l\u0061\u0073\u0073\u0069\u0063";case 4:return "\u006f\u0076\u0061\u006c";case 5:return "\u0064i\u0061\u006d\u006f\u006e\u0064";case 6:return "\u006f\u0070\u0065\u006e";};return "";};func (_begd *AG_OfficeCoreAttributes )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _begd .SpidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_begd .SpidAttr )});};if _begd .OnedAttr !=_c .ST_TrueFalseUnset {_ebfd ,_faad :=_begd .OnedAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _faad !=nil {return _faad ;};start .Attr =append (start .Attr ,_ebfd );};if _begd .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_begd .RegroupidAttr )});};if _begd .DoubleclicknotifyAttr !=_c .ST_TrueFalseUnset {_cgf ,_acff :=_begd .DoubleclicknotifyAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _acff !=nil {return _acff ;};start .Attr =append (start .Attr ,_cgf );};if _begd .ButtonAttr !=_c .ST_TrueFalseUnset {_edaa ,_eaf :=_begd .ButtonAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _eaf !=nil {return _eaf ;};start .Attr =append (start .Attr ,_edaa );};if _begd .UserhiddenAttr !=_c .ST_TrueFalseUnset {_edd ,_gbb :=_begd .UserhiddenAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _gbb !=nil {return _gbb ;};start .Attr =append (start .Attr ,_edd );};if _begd .BulletAttr !=_c .ST_TrueFalseUnset {_eccc ,_bddd :=_begd .BulletAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0075\u006c\u006c\u0065\u0074"});if _bddd !=nil {return _bddd ;};start .Attr =append (start .Attr ,_eccc );};if _begd .HrAttr !=_c .ST_TrueFalseUnset {_dfcb ,_daba :=_begd .HrAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0068\u0072"});if _daba !=nil {return _daba ;};start .Attr =append (start .Attr ,_dfcb );};if _begd .HrstdAttr !=_c .ST_TrueFalseUnset {_gge ,_bdee :=_begd .HrstdAttr .MarshalXMLAttr (_a .Name {Local :"\u006f:\u0068\u0072\u0073\u0074\u0064"});if _bdee !=nil {return _bdee ;};start .Attr =append (start .Attr ,_gge );};if _begd .HrnoshadeAttr !=_c .ST_TrueFalseUnset {_bdfb ,_cca :=_begd .HrnoshadeAttr .MarshalXMLAttr (_a .Name {Local :"o\u003a\u0068\u0072\u006e\u006f\u0073\u0068\u0061\u0064\u0065"});if _cca !=nil {return _cca ;};start .Attr =append (start .Attr ,_bdfb );};if _begd .HrpctAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f:\u0068\u0072\u0070\u0063\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_begd .HrpctAttr )});};if _begd .HralignAttr !=OfcST_HrAlignUnset {_ege ,_ddec :=_begd .HralignAttr .MarshalXMLAttr (_a .Name {Local :"\u006f:\u0068\u0072\u0061\u006c\u0069\u0067n"});if _ddec !=nil {return _ddec ;};start .Attr =append (start .Attr ,_ege );};if _begd .AllowincellAttr !=_c .ST_TrueFalseUnset {_gbab ,_fafd :=_begd .AllowincellAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0061\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"});if _fafd !=nil {return _fafd ;};start .Attr =append (start .Attr ,_gbab );};if _begd .AllowoverlapAttr !=_c .ST_TrueFalseUnset {_cgde ,_cdc :=_begd .AllowoverlapAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0061\u006c\u006c\u006f\u0077\u006f\u0076e\u0072\u006c\u0061\u0070"});if _cdc !=nil {return _cdc ;};start .Attr =append (start .Attr ,_cgde );};if _begd .UserdrawnAttr !=_c .ST_TrueFalseUnset {_def ,_ecb :=_begd .UserdrawnAttr .MarshalXMLAttr (_a .Name {Local :"
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcComplex and its children, prefixing error messages with path
|
|
|
|
func (_gded *OfcComplex )ValidateWithPath (path string )error {if _eeed :=_gded .OfcCT_Complex .ValidateWithPath (path );_eeed !=nil {return _eeed ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Rules and its children, prefixing error messages with path
|
|
|
|
func (_bbcbf *OfcCT_Rules )ValidateWithPath (path string )error {for _bcdfg ,_gedgd :=range _bbcbf .R {if _edbb :=_gedgd .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0052\u005b\u0025\u0064\u005d",path ,_bcdfg ));_edbb !=nil {return _edbb ;};};if _fcggd :=_bbcbf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fcggd !=nil {return _fcggd ;};return nil ;};func (_bfgce *OfcCT_Relation )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f\u003a\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e";};if _bfgce .IdsrcAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064\u0073r\u0063"},Value :_f .Sprintf ("\u0025\u0076",*_bfgce .IdsrcAttr )});};if _bfgce .IddestAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064\u0064\u0065\u0073\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_bfgce .IddestAttr )});};if _bfgce .IdcntrAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064\u0063\u006e\u0074\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_bfgce .IdcntrAttr )});};if _bfgce .ExtAttr !=ST_ExtUnset {_dbbag ,_fccab :=_bfgce .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _fccab !=nil {return _fccab ;};start .Attr =append (start .Attr ,_dbbag );};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_fabca *Shadow )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _fabca .CT_Shadow .MarshalXML (e ,start );};func (_eageg *OfcCT_ShapeDefaults )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_egbbbc :=range start .Attr {if _egbbbc .Name .Local =="\u0073p\u0069\u0064\u006d\u0061\u0078"{_eefee ,_ddbbg :=_gc .ParseInt (_egbbbc .Value ,10,64);if _ddbbg !=nil {return _ddbbg ;};_eageg .SpidmaxAttr =&_eefee ;continue ;};if _egbbbc .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_eageg .AllowincellAttr .UnmarshalXMLAttr (_egbbbc );continue ;};if _egbbbc .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_ceeab ,_bedg :=_egbbbc .Value ,error (nil );if _bedg !=nil {return _bedg ;};_eageg .StrokecolorAttr =&_ceeab ;continue ;};if _egbbbc .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065"{_eageg .StrokeAttr .UnmarshalXMLAttr (_egbbbc );continue ;};if _egbbbc .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_daaa ,_cgead :=_egbbbc .Value ,error (nil );if _cgead !=nil {return _cgead ;};_eageg .FillcolorAttr =&_daaa ;continue ;};if _egbbbc .Name .Local =="\u0066\u0069\u006c\u006c"{_eageg .FillAttr .UnmarshalXMLAttr (_egbbbc );continue ;};if _egbbbc .Name .Local =="\u0073\u0074\u0079l\u0065"{_babbb ,_dabgee :=_egbbbc .Value ,error (nil );if _dabgee !=nil {return _dabgee ;};_eageg .StyleAttr =&_babbb ;continue ;};if _egbbbc .Name .Local =="\u0065\u0078\u0074"{_eageg .ExtAttr .UnmarshalXMLAttr (_egbbbc );continue ;};};_ccabe :for {_efdab ,_ceaef :=d .Token ();if _ceaef !=nil {return _ceaef ;};switch _befdd :=_efdab .(type ){case _a .StartElement :switch _befdd .Name {case _a .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"}:_eageg .Fill =NewFill ();if _ecfag :=d .DecodeElement (_eageg .Fill ,&_befdd );_ecfag !=nil {return _ecfag ;};case _a .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"}:_eageg .Stroke =NewStroke ();if _gfdeb :=d .DecodeElement (_eageg .Stroke ,&_befdd );_gfdeb !=nil {return _gfdeb ;};case _a .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"}:_eageg
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcRight and its children
|
|
|
|
func (_efceca *OfcRight )Validate ()error {return _efceca .ValidateWithPath ("\u004f\u0066\u0063\u0052\u0069\u0067\u0068\u0074");};func NewOfcCT_ClipPath ()*OfcCT_ClipPath {_cgbab :=&OfcCT_ClipPath {};return _cgbab };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Arc and its children, prefixing error messages with path
|
|
|
|
func (_dge *CT_Arc )ValidateWithPath (path string )error {for _becf ,_caadd :=range _dge .EG_ShapeElements {if _abag :=_caadd .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_becf ));_abag !=nil {return _abag ;};};if _fcdeb :=_dge .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fcdeb !=nil {return _fcdeb ;};if _gdac :=_dge .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gdac !=nil {return _gdac ;};if _bac :=_dge .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bac !=nil {return _bac ;};if _cgcg :=_dge .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cgcg !=nil {return _cgcg ;};if _faadc :=_dge .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_faadc !=nil {return _faadc ;};if _fccb :=_dge .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_fccb !=nil {return _fccb ;};if _dgcf :=_dge .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_dgcf !=nil {return _dgcf ;};if _gegb :=_dge .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gegb !=nil {return _gegb ;};if _ebaad :=_dge .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_ebaad !=nil {return _ebaad ;};if _egda :=_dge .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_egda !=nil {return _egda ;};if _fgb :=_dge .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_fgb !=nil {return _fgb ;};if _aabc :=_dge .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_aabc !=nil {return _aabc ;};if _fca :=_dge .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fca !=nil {return _fca ;};if _babde :=_dge .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_babde !=nil {return _babde ;};if _eafd :=_dge .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_eafd !=nil {return _eafd ;};if _bafeg :=_dge .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_bafeg !=nil {return _bafeg ;};if _ccdcf :=_dge .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ccdcf !=nil {return _ccdcf ;};if _fgee :=_dge .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fgee !=nil {return _fgee ;};if _dcaf :=_dge .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_dcaf !=nil {return _dcaf ;};if _gfdfa :=_dge .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_gfdfa !=nil {return _gfdfa ;};if _ebcd :=_dge .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ebcd !=nil {return _ebcd ;};if _cfd :=_dge .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_cfd !=nil {return _cfd ;};if _cab :=_dge .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_cab !=nil {return _cab ;};if _agcd :=_dge .ForcedashAttr .ValidateWithPath (
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Rules and its children
|
|
|
|
func (_aaecdc *OfcCT_Rules )Validate ()error {return _aaecdc .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0052\u0075\u006c\u0065\u0073");};func (_bgggd *OfcCT_Ink )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f\u003a\u0069n\u006b";};if _bgggd .IAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069"},Value :_f .Sprintf ("\u0025\u0076",*_bgggd .IAttr )});};if _bgggd .AnnotationAttr !=_c .ST_TrueFalseUnset {_ggfff ,_gagcb :=_bgggd .AnnotationAttr .MarshalXMLAttr (_a .Name {Local :"\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"});if _gagcb !=nil {return _gagcb ;};start .Attr =append (start .Attr ,_ggfff );};if _bgggd .ContentTypeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_bgggd .ContentTypeAttr )});};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_ccafb OfcST_ExtrusionRender )ValidateWithPath (path string )error {switch _ccafb {case 0,1,2,3:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ccafb ));};return nil ;};type OfcCT_Complex struct{ExtAttr ST_Ext ;};func (_agggd *ST_ImageAspect )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ebefa ,_bfbfea :=d .Token ();if _bfbfea !=nil {return _bfbfea ;};if _bacfd ,_fgefg :=_ebefa .(_a .EndElement );_fgefg &&_bacfd .Name ==start .Name {*_agggd =1;return nil ;};if _aegaa ,_efdfgc :=_ebefa .(_a .CharData );!_efdfgc {return _f .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",_ebefa );}else {switch string (_aegaa ){case "":*_agggd =0;case "\u0069\u0067\u006e\u006f\u0072\u0065":*_agggd =1;case "\u0061\u0074\u004d\u006f\u0073\u0074":*_agggd =2;case "\u0061t\u004c\u0065\u0061\u0073\u0074":*_agggd =3;};};_ebefa ,_bfbfea =d .Token ();if _bfbfea !=nil {return _bfbfea ;};if _adbc ,_gcaaf :=_ebefa .(_a .EndElement );_gcaaf &&_adbc .Name ==start .Name {return nil ;};return _f .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",_ebefa );};func NewShadow ()*Shadow {_gebeb :=&Shadow {};_gebeb .CT_Shadow =*NewCT_Shadow ();return _gebeb };func (_bffab OfcST_OLEType )Validate ()error {return _bffab .ValidateWithPath ("")};func (_fgbcge OfcST_ExtrusionPlane )Validate ()error {return _fgbcge .ValidateWithPath ("")};func (_dadcb OfcST_DiagramLayout )String ()string {switch _dadcb {case 0:return "";case 1:return "\u0030";case 2:return "\u0031";case 3:return "\u0032";case 4:return "\u0033";};return "";};func (_fdbad OfcST_InsetMode )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_dfcdc :=_a .Attr {};_dfcdc .Name =name ;switch _fdbad {case OfcST_InsetModeUnset :_dfcdc .Value ="";case OfcST_InsetModeAuto :_dfcdc .Value ="\u0061\u0075\u0074\u006f";case OfcST_InsetModeCustom :_dfcdc .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _dfcdc ,nil ;};type OfcST_InsetMode byte ;func NewOfcCT_Extrusion ()*OfcCT_Extrusion {_geaaa :=&OfcCT_Extrusion {};return _geaaa };type AG_Path struct{PathAttr *string ;};type AG_Adj struct{AdjAttr *string ;};func (_ceeegf *OfcClippath )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ceeegf .OfcCT_ClipPath =*NewOfcCT_ClipPath ();for _ ,_fffea :=range start .Attr {if _fffea .Name .Local =="\u0076"{_acbad ,_facd :=_fffea .Value ,error (nil );if _facd !=nil {return _facd ;};_ceeegf .VAttr =_acbad ;continue ;};};for {_gbbga ,_adeeb :=d .Token ();if _adeeb !=nil {return _f .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_adeeb );};if _cbgdc ,_adeefb :=_gbbga .(_a .EndElement );_adeefb &&_cbgdc .Name ==start .Name {break ;};};ret
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Formulas and its children
|
|
|
|
func (_bdcgg *Formulas )Validate ()error {return _bdcgg .ValidateWithPath ("\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};func (_gdfeg *OfcCT_SignatureLine )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065";};if _gdfeg .IssignaturelineAttr !=_c .ST_TrueFalseUnset {_dcga ,_fdaaf :=_gdfeg .IssignaturelineAttr .MarshalXMLAttr (_a .Name {Local :"\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"});if _fdaaf !=nil {return _fdaaf ;};start .Attr =append (start .Attr ,_dcga );};if _gdfeg .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_gdfeg .IdAttr )});};if _gdfeg .ProvidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0070\u0072\u006f\u0076\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_gdfeg .ProvidAttr )});};if _gdfeg .SigninginstructionssetAttr !=_c .ST_TrueFalseUnset {_ccee ,_baafc :=_gdfeg .SigninginstructionssetAttr .MarshalXMLAttr (_a .Name {Local :"\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"});if _baafc !=nil {return _baafc ;};start .Attr =append (start .Attr ,_ccee );};if _gdfeg .AllowcommentsAttr !=_c .ST_TrueFalseUnset {_fdgbc ,_bbab :=_gdfeg .AllowcommentsAttr .MarshalXMLAttr (_a .Name {Local :"\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"});if _bbab !=nil {return _bbab ;};start .Attr =append (start .Attr ,_fdgbc );};if _gdfeg .ShowsigndateAttr !=_c .ST_TrueFalseUnset {_cccccd ,_fgebg :=_gdfeg .ShowsigndateAttr .MarshalXMLAttr (_a .Name {Local :"\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"});if _fgebg !=nil {return _fgebg ;};start .Attr =append (start .Attr ,_cccccd );};if _gdfeg .SuggestedsignerAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_gdfeg .SuggestedsignerAttr )});};if _gdfeg .Suggestedsigner2Attr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"},Value :_f .Sprintf ("\u0025\u0076",*_gdfeg .Suggestedsigner2Attr )});};if _gdfeg .SuggestedsigneremailAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"},Value :_f .Sprintf ("\u0025\u0076",*_gdfeg .SuggestedsigneremailAttr )});};if _gdfeg .SigninginstructionsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_gdfeg .SigninginstructionsAttr )});};if _gdfeg .AddlxmlAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061d\u0064\u006c\u0078\u006d\u006c"},Value :_f .Sprintf ("\u0025\u0076",*_gdfeg .AddlxmlAttr )});};if _gdfeg .SigprovurlAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0069\u0067\u0070\u0072\u006f\u0076\u0075\u0072\u006c"},Value :_f .Sprintf ("\u0025\u0076",*_gdfeg .SigprovurlAttr )});};if _gdfeg .ExtAttr !=ST_ExtUnset {_caebb ,_fcfff :=_gdfeg .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _fcfff !=nil {return _fcfff ;};start .Attr =append (start .Attr ,_caebb );};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_gbbdba *ST_StrokeLineStyle )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_gbbdba =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_gbbdba =1;case "\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e":*_gbbdba =2;case "\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k":*_gbbdba =3;case "\u0074h\u0069\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Oval and its children
|
|
|
|
func (_dadfd *CT_Oval )Validate ()error {return _dadfd .ValidateWithPath ("\u0043T\u005f\u004f\u0076\u0061\u006c");};func (_egacd *ST_StrokeArrowType )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_egacd =0;case "\u006e\u006f\u006e\u0065":*_egacd =1;case "\u0062\u006c\u006fc\u006b":*_egacd =2;case "\u0063l\u0061\u0073\u0073\u0069\u0063":*_egacd =3;case "\u006f\u0076\u0061\u006c":*_egacd =4;case "\u0064i\u0061\u006d\u006f\u006e\u0064":*_egacd =5;case "\u006f\u0070\u0065\u006e":*_egacd =6;};return nil ;};func NewOfcCT_ShapeLayout ()*OfcCT_ShapeLayout {_egfcd :=&OfcCT_ShapeLayout {};return _egfcd };func (_bafdf *OfcCT_Ink )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_dafdd :=range start .Attr {if _dafdd .Name .Local =="\u0069"{_cbgd ,_ggaff :=_dafdd .Value ,error (nil );if _ggaff !=nil {return _ggaff ;};_bafdf .IAttr =&_cbgd ;continue ;};if _dafdd .Name .Local =="\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_bafdf .AnnotationAttr .UnmarshalXMLAttr (_dafdd );continue ;};if _dafdd .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_bcfdd ,_dbfeg :=_dafdd .Value ,error (nil );if _dbfeg !=nil {return _dbfeg ;};_bafdf .ContentTypeAttr =&_bcfdd ;continue ;};};for {_fffe ,_egfga :=d .Token ();if _egfga !=nil {return _f .Errorf ("p\u0061\u0072\u0073\u0069ng\u0020O\u0066\u0063\u0043\u0054\u005fI\u006e\u006b\u003a\u0020\u0025\u0073",_egfga );};if _dgeedg ,_gbbgg :=_fffe .(_a .EndElement );_gbbgg &&_dgeedg .Name ==start .Name {break ;};};return nil ;};func (_badaa OfcST_ConnectType )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_badaa .String (),start );};func (_bgefa *OfcST_OLEType )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_bgefa =0;case "\u0045\u006d\u0062e\u0064":*_bgefa =1;case "\u004c\u0069\u006e\u006b":*_bgefa =2;};return nil ;};type OfcSkew struct{OfcCT_Skew };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 (_bbaf *OfcCT_Rules )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_fdacf :=range start .Attr {if _fdacf .Name .Local =="\u0065\u0078\u0074"{_bbaf .ExtAttr .UnmarshalXMLAttr (_fdacf );continue ;};};_cfafb :for {_ebcgf ,_eeffe :=d .Token ();if _eeffe !=nil {return _eeffe ;};switch _agfage :=_ebcgf .(type ){case _a .StartElement :switch _agfage .Name {case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\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"}:_ggeagc :=NewOfcCT_R ();if _bcaaa :=d .DecodeElement (_ggeagc ,&_agfage );_bcaaa !=nil {return _bcaaa ;};_bbaf .R =append (_bbaf .R ,_ggeagc );default:_ag .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\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0075\u006c\u0065\u0073\u0020\u0025\u0076",_agfage .Name );if _bfdeg :=d .Skip ();_bfdeg !=nil {return _bfdeg ;};};case _a .EndElement :break _cfafb ;case _a .CharData :};};return nil ;};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;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Proxy and its children, prefixing error messages with path
|
|
|
|
func (_aabdg *OfcCT_Proxy )ValidateWithPath (path string )error {if _dbaff :=_aabdg .StartAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0061\u0072\u0074\u0041\u0074\u0074\u0072");_dbaff !=nil {return _dbaff ;};if _bdeaga :=_aabdg .EndAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0041\u0074\u0074\u0072");_bdeaga !=nil {return _bdeaga ;};return nil ;};func (_bbffe OfcST_RType )String ()string {switch _bbffe {case 0:return "";case 1:return "\u0061\u0072\u0063";case 2:return "\u0063a\u006c\u006c\u006f\u0075\u0074";case 3:return "\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr";case 4:return "\u0061\u006c\u0069g\u006e";};return "";};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;);type AG_Fill struct{FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;};func (_bbda *OfcOLEObject )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_bbda .OfcCT_OLEObject =*NewOfcCT_OLEObject ();for _ ,_eddee :=range start .Attr {if _eddee .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"&&_eddee .Name .Local =="\u0069\u0064"||_eddee .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"&&_eddee .Name .Local =="\u0069\u0064"{_dgade ,_cceee :=_eddee .Value ,error (nil );if _cceee !=nil {return _cceee ;};_bbda .IdAttr =&_dgade ;continue ;};if _eddee .Name .Local =="\u0054\u0079\u0070\u0065"{_bbda .TypeAttr .UnmarshalXMLAttr (_eddee );continue ;};if _eddee .Name .Local =="\u0050\u0072\u006f\u0067\u0049\u0044"{_bbedb ,_afdgf :=_eddee .Value ,error (nil );if _afdgf !=nil {return _afdgf ;};_bbda .ProgIDAttr =&_bbedb ;continue ;};if _eddee .Name .Local =="\u0053h\u0061\u0070\u0065\u0049\u0044"{_eagddf ,_dcaca :=_eddee .Value ,error (nil );if _dcaca !=nil {return _dcaca ;};_bbda .ShapeIDAttr =&_eagddf ;continue ;};if _eddee .Name .Local =="\u0044\u0072\u0061\u0077\u0041\u0073\u0070\u0065\u0063\u0074"{_bbda .DrawAspectAttr .UnmarshalXMLAttr (_eddee );continue ;};if _eddee .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0049\u0044"{_gabaf ,_bedgc :=_eddee .Value ,error (nil );if _bedgc !=nil {return _bedgc ;};_bbda .ObjectIDAttr =&_gabaf ;continue ;};if _eddee .Name .Local =="\u0055\u0070\u0064\u0061\u0074\u0065\u004d\u006f\u0064\u0065"{_bbda .UpdateModeAttr .UnmarshalXMLAttr (_eddee );continue ;};};_gaefc :for {_adgca ,_decccf :=d .Token ();if _decccf !=nil {return _decccf ;};switch _gegfe :=_adgca .(type ){case _a .StartElement :switch _gegfe .Name {case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u004c\u0069\u006e\u006b\u0054\u0079\u0070\u0065"}:_bbda .LinkType =new (string );if _bdacc :=d .DecodeElement (_bbda .LinkType ,&_gegfe );_bdacc !=nil {return _bdacc ;};case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"L\u006f\u0063\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064"}:_bbda .LockedField =_c .ST_TrueFalseBlankUnset ;if _bdcdcb :=d .DecodeElement (&_bbda .LockedField ,&_gegfe );_bdcdcb !=nil {return _bdcdcb ;};case _a .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Rect and its children
|
|
|
|
func (_gcdfeb *Rect )Validate ()error {return _gcdfeb .ValidateWithPath ("\u0052\u0065\u0063\u0074")};func (_gfgb *CT_Arc )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0061r\u0063";};if _gfgb .StartAngleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0061\u0072\u0074\u0041\u006e\u0067\u006c\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .StartAngleAttr )});};if _gfgb .EndAngleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0065\u006e\u0064\u0041\u006e\u0067\u006c\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .EndAngleAttr )});};if _gfgb .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .HrefAttr )});};if _gfgb .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .TargetAttr )});};if _gfgb .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .ClassAttr )});};if _gfgb .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .TitleAttr )});};if _gfgb .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .AltAttr )});};if _gfgb .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .CoordsizeAttr )});};if _gfgb .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .CoordoriginAttr )});};if _gfgb .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .WrapcoordsAttr )});};if _gfgb .PrintAttr !=_c .ST_TrueFalseUnset {_dbca ,_fdaac :=_gfgb .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _fdaac !=nil {return _fdaac ;};start .Attr =append (start .Attr ,_dbca );};if _gfgb .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .IdAttr )});};if _gfgb .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .StyleAttr )});};if _gfgb .SpidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .SpidAttr )});};if _gfgb .OnedAttr !=_c .ST_TrueFalseUnset {_dac ,_cagc :=_gfgb .OnedAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _cagc !=nil {return _cagc ;};start .Attr =append (start .Attr ,_dac );};if _gfgb .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_gfgb .RegroupidAttr )});};if _gfgb .DoubleclicknotifyAttr !=_c .ST_TrueFalseUnset {_dffg ,_gafd :=_gfgb .DoubleclicknotifyAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _gafd !=nil {return _gafd ;};start .Attr =append (start .Attr ,_dffg );};if _gfgb .ButtonAttr !=_c .ST_TrueFalseUnset {_daeg ,_fcbac :=_gfgb .ButtonAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _fcbac !=nil {return _fcbac ;};start .Attr =append (start .Attr ,_daeg );};if _gfgb .UserhiddenAttr !=_c .ST_TrueFalseUnset
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcSkew and its children
|
|
|
|
func (_fgecf *OfcSkew )Validate ()error {return _fgecf .ValidateWithPath ("\u004ff\u0063\u0053\u006b\u0065\u0077");};func (_agdcb *OfcCT_ClipPath )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f\u003a\u0063\u006c\u0069\u0070\u0070\u0061\u0074\u0068";};start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0076"},Value :_f .Sprintf ("\u0025\u0076",_agdcb .VAttr )});e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type Handles struct{CT_Handles };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_PolyLine and its children, prefixing error messages with path
|
|
|
|
func (_edbcc *CT_PolyLine )ValidateWithPath (path string )error {for _fbeab ,_gfdc :=range _edbcc .Ink {if _bfcb :=_gfdc .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_fbeab ));_bfcb !=nil {return _bfcb ;};};for _dafbe ,_gggbg :=range _edbcc .EG_ShapeElements {if _fdecgc :=_gggbg .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_dafbe ));_fdecgc !=nil {return _fdecgc ;};};if _bdfgb :=_edbcc .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_bdfgb !=nil {return _bdfgb ;};if _defead :=_edbcc .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_defead !=nil {return _defead ;};if _aedb :=_edbcc .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_aedb !=nil {return _aedb ;};if _aaegd :=_edbcc .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_aaegd !=nil {return _aaegd ;};if _dfad :=_edbcc .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_dfad !=nil {return _dfad ;};if _afdfb :=_edbcc .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_afdfb !=nil {return _afdfb ;};if _efda :=_edbcc .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_efda !=nil {return _efda ;};if _egcd :=_edbcc .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_egcd !=nil {return _egcd ;};if _fgaaa :=_edbcc .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fgaaa !=nil {return _fgaaa ;};if _fgdgg :=_edbcc .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fgdgg !=nil {return _fgdgg ;};if _ccfcce :=_edbcc .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_ccfcce !=nil {return _ccfcce ;};if _eefac :=_edbcc .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_eefac !=nil {return _eefac ;};if _ecced :=_edbcc .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_ecced !=nil {return _ecced ;};if _eefacd :=_edbcc .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_eefacd !=nil {return _eefacd ;};if _dccgf :=_edbcc .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_dccgf !=nil {return _dccgf ;};if _baagc :=_edbcc .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_baagc !=nil {return _baagc ;};if _cfcce :=_edbcc .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cfcce !=nil {return _cfcce ;};if _bbagb :=_edbcc .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_bbagb !=nil {return _bbagb ;};if _eage :=_edbcc .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_eage !=nil {return _eage ;};if _dbad :=_edbcc .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_dbad !=nil {return _dbad ;};if _bcaae :=_edbcc .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bcaae !=nil {return _bcaae ;};if _gfcb :=_edbcc .BwpureAttr .ValidateWithPath (path +"/\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcDiagram and its children
|
|
|
|
func (_fcee *OfcDiagram )Validate ()error {return _fcee .ValidateWithPath ("\u004f\u0066\u0063\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};const (OfcST_OLEDrawAspectUnset OfcST_OLEDrawAspect =0;OfcST_OLEDrawAspectContent OfcST_OLEDrawAspect =1;OfcST_OLEDrawAspectIcon OfcST_OLEDrawAspect =2;);func NewCT_Group ()*CT_Group {_gabe :=&CT_Group {};return _gabe };func (_fgbag OfcST_OLEUpdateMode )String ()string {switch _fgbag {case 0:return "";case 1:return "\u0041\u006c\u0077\u0061\u0079\u0073";case 2:return "\u004f\u006e\u0043\u0061\u006c\u006c";};return "";};func (_aafce OfcST_ExtrusionPlane )ValidateWithPath (path string )error {switch _aafce {case 0,1,2,3:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_aafce ));};return nil ;};type OfcST_HrAlign byte ;func (_geab *CT_Background )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0062a\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";};if _geab .BwmodeAttr !=OfcST_BWModeUnset {_cbfb ,_cgdd :=_geab .BwmodeAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _cgdd !=nil {return _cgdd ;};start .Attr =append (start .Attr ,_cbfb );};if _geab .BwpureAttr !=OfcST_BWModeUnset {_cdaa ,_abc :=_geab .BwpureAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0077\u0070\u0075\u0072\u0065"});if _abc !=nil {return _abc ;};start .Attr =append (start .Attr ,_cdaa );};if _geab .BwnormalAttr !=OfcST_BWModeUnset {_bcec ,_abadc :=_geab .BwnormalAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _abadc !=nil {return _abadc ;};start .Attr =append (start .Attr ,_bcec );};if _geab .TargetscreensizeAttr !=OfcST_ScreenSizeUnset {_bba ,_abg :=_geab .TargetscreensizeAttr .MarshalXMLAttr (_a .Name {Local :"\u006f:\u0074a\u0072\u0067\u0065\u0074\u0073c\u0072\u0065e\u006e\u0073\u0069\u007a\u0065"});if _abg !=nil {return _abg ;};start .Attr =append (start .Attr ,_bba );};if _geab .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_geab .IdAttr )});};if _geab .FilledAttr !=_c .ST_TrueFalseUnset {_dcdf ,_aeag :=_geab .FilledAttr .MarshalXMLAttr (_a .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _aeag !=nil {return _aeag ;};start .Attr =append (start .Attr ,_dcdf );};if _geab .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_f .Sprintf ("\u0025\u0076",*_geab .FillcolorAttr )});};e .EncodeToken (start );if _geab .Fill !=nil {_gdgdc :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_geab .Fill ,_gdgdc );};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_dbfc *CT_Rect )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_cfbae :=range start .Attr {if _cfbae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbae .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_fagc ,_dbfcg :=_cfbae .Value ,error (nil );if _dbfcg !=nil {return _dbfcg ;};_dbfc .BordertopcolorAttr =&_fagc ;continue ;};if _cfbae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbae .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_dbfc .BulletAttr .UnmarshalXMLAttr (_cfbae );continue ;};if _cfbae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Group and its children, prefixing error messages with path
|
|
|
|
func (_eafca *Group )ValidateWithPath (path string )error {if _dbdf :=_eafca .CT_Group .ValidateWithPath (path );_dbdf !=nil {return _dbdf ;};return nil ;};func (_bcfe *AG_OfficeCoreAttributes )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_geg :=range start .Attr {if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_bcfe .HralignAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_bcfe .AllowincellAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u006f\u006e\u0065\u0064"{_bcfe .OnedAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_bcfe .AllowoverlapAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_bcfe .DoubleclicknotifyAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_bcfe .UserdrawnAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_bcfe .UserhiddenAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_gcdbe ,_eed :=_geg .Value ,error (nil );if _eed !=nil {return _eed ;};_bcfe .BordertopcolorAttr =&_gcdbe ;continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u0068\u0072"{_bcfe .HrAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geg .Name .Local =="\u0062o\u0072d\u0065\u0072\u006c\u0065\u0066\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_eecgc *OfcCT_Fill )ValidateWithPath (path string )error {if _ebabb :=_eecgc .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_ebabb !=nil {return _ebabb ;};if _gfce :=_eecgc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gfce !=nil {return _gfce ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Fill and its children
|
|
|
|
func (_dbbgg *OfcCT_Fill )Validate ()error {return _dbbgg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0046\u0069\u006c\u006c");};func (_aeecb ST_StrokeArrowType )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_agbfee :=_a .Attr {};_agbfee .Name =name ;switch _aeecb {case ST_StrokeArrowTypeUnset :_agbfee .Value ="";case ST_StrokeArrowTypeNone :_agbfee .Value ="\u006e\u006f\u006e\u0065";case ST_StrokeArrowTypeBlock :_agbfee .Value ="\u0062\u006c\u006fc\u006b";case ST_StrokeArrowTypeClassic :_agbfee .Value ="\u0063l\u0061\u0073\u0073\u0069\u0063";case ST_StrokeArrowTypeOval :_agbfee .Value ="\u006f\u0076\u0061\u006c";case ST_StrokeArrowTypeDiamond :_agbfee .Value ="\u0064i\u0061\u006d\u006f\u006e\u0064";case ST_StrokeArrowTypeOpen :_agbfee .Value ="\u006f\u0070\u0065\u006e";};return _agbfee ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_Style and its children, prefixing error messages with path
|
|
|
|
func (_agfd *AG_Style )ValidateWithPath (path string )error {return nil };func (_abbed *OfcComplex )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_abbed .OfcCT_Complex =*NewOfcCT_Complex ();for _ ,_fgacb :=range start .Attr {if _fgacb .Name .Local =="\u0065\u0078\u0074"{_abbed .ExtAttr .UnmarshalXMLAttr (_fgacb );continue ;};};for {_cbdf ,_bebbd :=d .Token ();if _bebbd !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u006f\u006d\u0070\u006c\u0065\u0078\u003a\u0020%\u0073",_bebbd );};if _bdadeg ,_becgg :=_cbdf .(_a .EndElement );_becgg &&_bdadeg .Name ==start .Name {break ;};};return nil ;};func NewCT_Rect ()*CT_Rect {_dfcec :=&CT_Rect {};return _dfcec };func (_cacb *OfcCT_Diagram )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0064\u0069\u0061\u0067\u0072\u0061m";};if _cacb .DgmstyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_cacb .DgmstyleAttr )});};if _cacb .AutoformatAttr !=_c .ST_TrueFalseUnset {_agcea ,_afdbb :=_cacb .AutoformatAttr .MarshalXMLAttr (_a .Name {Local :"\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"});if _afdbb !=nil {return _afdbb ;};start .Attr =append (start .Attr ,_agcea );};if _cacb .ReverseAttr !=_c .ST_TrueFalseUnset {_dfecb ,_gfefe :=_cacb .ReverseAttr .MarshalXMLAttr (_a .Name {Local :"\u0072e\u0076\u0065\u0072\u0073\u0065"});if _gfefe !=nil {return _gfefe ;};start .Attr =append (start .Attr ,_dfecb );};if _cacb .AutolayoutAttr !=_c .ST_TrueFalseUnset {_fdcf ,_bfcg :=_cacb .AutolayoutAttr .MarshalXMLAttr (_a .Name {Local :"\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"});if _bfcg !=nil {return _bfcg ;};start .Attr =append (start .Attr ,_fdcf );};if _cacb .DgmscalexAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"},Value :_f .Sprintf ("\u0025\u0076",*_cacb .DgmscalexAttr )});};if _cacb .DgmscaleyAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"},Value :_f .Sprintf ("\u0025\u0076",*_cacb .DgmscaleyAttr )});};if _cacb .DgmfontsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_cacb .DgmfontsizeAttr )});};if _cacb .ConstrainboundsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_cacb .ConstrainboundsAttr )});};if _cacb .DgmbasetextscaleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_cacb .DgmbasetextscaleAttr )});};if _cacb .ExtAttr !=ST_ExtUnset {_ccgca ,_gdefb :=_cacb .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _gdefb !=nil {return _gdefb ;};start .Attr =append (start .Attr ,_ccgca );};e .EncodeToken (start );if _cacb .Relationtable !=nil {_efge :=_a .StartElement {Name :_a .Name {Local :"\u006f:\u0072e\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065"}};e .EncodeElement (_cacb .Relationtable ,_efge );};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func init (){_ge .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 );_ge .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",NewC
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_RegroupTable and its children
|
|
|
|
func (_ccgcg *OfcCT_RegroupTable )Validate ()error {return _ccgcg .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0052\u0065\u0067r\u006f\u0075p\u0054\u0061\u0062\u006c\u0065");};type OfcCT_Diagram struct{DgmstyleAttr *int64 ;AutoformatAttr _c .ST_TrueFalse ;ReverseAttr _c .ST_TrueFalse ;AutolayoutAttr _c .ST_TrueFalse ;DgmscalexAttr *int64 ;DgmscaleyAttr *int64 ;DgmfontsizeAttr *int64 ;ConstrainboundsAttr *string ;DgmbasetextscaleAttr *int64 ;Relationtable *OfcCT_RelationTable ;ExtAttr ST_Ext ;};
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RegroupTable and its children, prefixing error messages with path
|
|
|
|
func (_cbgbg *OfcCT_RegroupTable )ValidateWithPath (path string )error {for _deffc ,_fcacf :=range _cbgbg .Entry {if _eafea :=_fcacf .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002fE\u006e\u0074\u0072\u0079\u005b\u0025\u0064\u005d",path ,_deffc ));_eafea !=nil {return _eafea ;};};if _cggbb :=_cbgbg .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_cggbb !=nil {return _cggbb ;};return nil ;};type ST_StrokeLineStyle byte ;
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the Arc and its children
|
|
|
|
func (_aeaa *Arc )Validate ()error {return _aeaa .ValidateWithPath ("\u0041\u0072\u0063")};func (_aecb *CT_Oval )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u006f\u0076\u0061\u006c";};if _aecb .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .HrefAttr )});};if _aecb .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .TargetAttr )});};if _aecb .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .ClassAttr )});};if _aecb .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .TitleAttr )});};if _aecb .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .AltAttr )});};if _aecb .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .CoordsizeAttr )});};if _aecb .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .CoordoriginAttr )});};if _aecb .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .WrapcoordsAttr )});};if _aecb .PrintAttr !=_c .ST_TrueFalseUnset {_acecd ,_aaggg :=_aecb .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _aaggg !=nil {return _aaggg ;};start .Attr =append (start .Attr ,_acecd );};if _aecb .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .IdAttr )});};if _aecb .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .StyleAttr )});};if _aecb .SpidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .SpidAttr )});};if _aecb .OnedAttr !=_c .ST_TrueFalseUnset {_bfgg ,_cfbba :=_aecb .OnedAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _cfbba !=nil {return _cfbba ;};start .Attr =append (start .Attr ,_bfgg );};if _aecb .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_aecb .RegroupidAttr )});};if _aecb .DoubleclicknotifyAttr !=_c .ST_TrueFalseUnset {_geda ,_ggaf :=_aecb .DoubleclicknotifyAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _ggaf !=nil {return _ggaf ;};start .Attr =append (start .Attr ,_geda );};if _aecb .ButtonAttr !=_c .ST_TrueFalseUnset {_cfbad ,_cbdee :=_aecb .ButtonAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _cbdee !=nil {return _cbdee ;};start .Attr =append (start .Attr ,_cfbad );};if _aecb .UserhiddenAttr !=_c .ST_TrueFalseUnset {_baaf ,_acffg :=_aecb .UserhiddenAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _acffg !=nil {return _acffg ;};start .Attr =append (start .Attr ,_baaf );};if _aecb .BulletAttr !=_c .ST_TrueFalseUnset {_fede ,_gdeaa :=_aecb .BulletAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0062\u0075\u006c\u006c\u0065\u0074"});if _gdeaa !=nil {return _gdeaa ;};sta
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_Id and its children, prefixing error messages with path
|
|
|
|
func (_fddd *AG_Id )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_H and its children, prefixing error messages with path
|
|
|
|
func (_gafgc *CT_H )ValidateWithPath (path string )error {if _efbbf :=_gafgc .InvxAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0078\u0041\u0074\u0074r");_efbbf !=nil {return _efbbf ;};if _gffe :=_gafgc .InvyAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0079\u0041\u0074\u0074r");_gffe !=nil {return _gffe ;};if _dcdc :=_gafgc .SwitchAttr .ValidateWithPath (path +"/\u0053\u0077\u0069\u0074\u0063\u0068\u0041\u0074\u0074\u0072");_dcdc !=nil {return _dcdc ;};return nil ;};func (_gccag ST_ShadowType )String ()string {switch _gccag {case 0:return "";case 1:return "\u0073\u0069\u006e\u0067\u006c\u0065";case 2:return "\u0064\u006f\u0075\u0062\u006c\u0065";case 3:return "\u0065\u006d\u0062\u006f\u0073\u0073";case 4:return "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065";};return "";};func (_facde *OfcLeft )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_facde .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_fgdggb :=range start .Attr {if _fgdggb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgdggb .Name .Local =="\u0068\u0072\u0065\u0066"{_dgfff ,_bacec :=_fgdggb .Value ,error (nil );if _bacec !=nil {return _bacec ;};_facde .HrefAttr =&_dgfff ;continue ;};if _fgdggb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgdggb .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_facde .ForcedashAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgdggb .Name .Local =="\u0074\u0069\u0074l\u0065"{_abbfag ,_cfecfg :=_fgdggb .Value ,error (nil );if _cfecfg !=nil {return _cfecfg ;};_facde .TitleAttr =&_abbfag ;continue ;};if _fgdggb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgdggb .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_feacf ,_eefgb :=_fgdggb .Value ,error (nil );if _eefgb !=nil {return _eefgb ;};_facde .AlthrefAttr =&_feacf ;continue ;};if _fgdggb .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_facde .ImageaspectAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_facde .StartarrowAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_facde .LinestyleAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_facde .StartarrowwidthAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_facde .JoinstyleAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_facde .StartarrowlengthAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_bgedae ,_ebgbfd :=_fgdggb .Value ,error (nil );if _ebgbfd !=nil {return _ebgbfd ;};_facde .DashstyleAttr =&_bgedae ;continue ;};if _fgdggb .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_facde .EndarrowAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_facde .FilltypeAttr .UnmarshalXMLAttr (_fgdggb );continue ;};if _fgdggb .Name .Local =="\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Textbox and its children
|
|
|
|
func (_ccdae *CT_Textbox )Validate ()error {return _ccdae .ValidateWithPath ("\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");};func (_gbacd *OfcRight )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_gbacd .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_eegfg :=range start .Attr {if _eegfg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eegfg .Name .Local =="\u0068\u0072\u0065\u0066"{_bdcfee ,_fcdfg :=_eegfg .Value ,error (nil );if _fcdfg !=nil {return _fcdfg ;};_gbacd .HrefAttr =&_bdcfee ;continue ;};if _eegfg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eegfg .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_gbacd .ForcedashAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eegfg .Name .Local =="\u0074\u0069\u0074l\u0065"{_adbaa ,_decec :=_eegfg .Value ,error (nil );if _decec !=nil {return _decec ;};_gbacd .TitleAttr =&_adbaa ;continue ;};if _eegfg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eegfg .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_fgdgd ,_cccbge :=_eegfg .Value ,error (nil );if _cccbge !=nil {return _cccbge ;};_gbacd .AlthrefAttr =&_fgdgd ;continue ;};if _eegfg .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_gbacd .ImageaspectAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_gbacd .StartarrowAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_gbacd .LinestyleAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_gbacd .StartarrowwidthAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_gbacd .JoinstyleAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_gbacd .StartarrowlengthAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_ccccd ,_cdebd :=_eegfg .Value ,error (nil );if _cdebd !=nil {return _cdebd ;};_gbacd .DashstyleAttr =&_ccccd ;continue ;};if _eegfg .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_gbacd .EndarrowAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_gbacd .FilltypeAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_gbacd .EndarrowwidthAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_dgbbf ,_ebded :=_eegfg .Value ,error (nil );if _ebded !=nil {return _ebded ;};_gbacd .OpacityAttr =&_dgbbf ;continue ;};if _eegfg .Name .Local =="\u0063\u006f\u006co\u0072"{_agdg ,_ccfd :=_eegfg .Value ,error (nil );if _ccfd !=nil {return _ccfd ;};_gbacd .ColorAttr =&_agdg ;continue ;};if _eegfg .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_gbacd .InsetpenAttr .UnmarshalXMLAttr (_eegfg );continue ;};if _eegfg .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Callout and its children, prefixing error messages with path
|
|
|
|
func (_ccfa *OfcCT_Callout )ValidateWithPath (path string )error {if _bedfa :=_ccfa .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_bedfa !=nil {return _bedfa ;};if _aeaff :=_ccfa .AngleAttr .ValidateWithPath (path +"\u002f\u0041\u006e\u0067\u006c\u0065\u0041\u0074\u0074\u0072");_aeaff !=nil {return _aeaff ;};if _gdbcb :=_ccfa .DropautoAttr .ValidateWithPath (path +"\u002f\u0044\u0072\u006f\u0070\u0061\u0075\u0074\u006f\u0041\u0074\u0074\u0072");_gdbcb !=nil {return _gdbcb ;};if _gefbc :=_ccfa .LengthspecifiedAttr .ValidateWithPath (path +"/\u004ce\u006e\u0067\u0074\u0068\u0073\u0070\u0065\u0063i\u0066\u0069\u0065\u0064At\u0074\u0072");_gefbc !=nil {return _gefbc ;};if _ageac :=_ccfa .AccentbarAttr .ValidateWithPath (path +"\u002f\u0041\u0063\u0063\u0065\u006e\u0074\u0062\u0061r\u0041\u0074\u0074\u0072");_ageac !=nil {return _ageac ;};if _gdfcb :=_ccfa .TextborderAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0062\u006f\u0072\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_gdfcb !=nil {return _gdfcb ;};if _cegcd :=_ccfa .MinusxAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0078\u0041\u0074\u0074\u0072");_cegcd !=nil {return _cegcd ;};if _eeefg :=_ccfa .MinusyAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0079\u0041\u0074\u0074\u0072");_eeefg !=nil {return _eeefg ;};if _fdedd :=_ccfa .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fdedd !=nil {return _fdedd ;};return nil ;};func (_gafc OfcST_ScreenSize )ValidateWithPath (path string )error {switch _gafc {case 0,1,2,3,4,5,6:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_gafc ));};return nil ;};func (_ccbde *OfcEquationxml )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ccbde .OfcCT_EquationXml =*NewOfcCT_EquationXml ();for _ ,_bdeeb :=range start .Attr {if _bdeeb .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_ceegd ,_cbcaa :=_bdeeb .Value ,error (nil );if _cbcaa !=nil {return _cbcaa ;};_ccbde .ContentTypeAttr =&_ceegd ;continue ;};};_edgee :for {_gfabg ,_ddaaf :=d .Token ();if _ddaaf !=nil {return _ddaaf ;};switch _fecde :=_gfabg .(type ){case _a .StartElement :switch _fecde .Name {default:if _bdfad ,_gbec :=_ge .CreateElement (_fecde );_gbec !=nil {return _gbec ;}else {if _defgb :=d .DecodeElement (_bdfad ,&_fecde );_defgb !=nil {return _defgb ;};_ccbde .Any =_bdfad ;};};case _a .EndElement :break _edgee ;case _a .CharData :};};return nil ;};func (_dffef *CT_Shadow )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0073\u0068\u0061\u0064\u006f\u0077";};if _dffef .OnAttr !=_c .ST_TrueFalseUnset {_bdggce ,_aeddf :=_dffef .OnAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u006e"});if _aeddf !=nil {return _aeddf ;};start .Attr =append (start .Attr ,_bdggce );};if _dffef .TypeAttr !=ST_ShadowTypeUnset {_abace ,_dbcaf :=_dffef .TypeAttr .MarshalXMLAttr (_a .Name {Local :"\u0074\u0079\u0070\u0065"});if _dbcaf !=nil {return _dbcaf ;};start .Attr =append (start .Attr ,_abace );};if _dffef .ObscuredAttr !=_c .ST_TrueFalseUnset {_afbc ,_bgba :=_dffef .ObscuredAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u0062\u0073\u0063\u0075\u0072\u0065\u0064"});if _bgba !=nil {return _bgba ;};start .Attr =append (start .Attr ,_afbc );};if _dffef .ColorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_f .Sprintf ("\u0025\u0076",*_dffef .ColorAttr )});};if _dffef .OpacityAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_f .Sprintf ("\u0025\u0076",*_dffef .OpacityAttr )});};if _dffef .OffsetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u0066\u0066\u0073\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_dffef .OffsetAttr )});};if _dffef .Color2Attr !=nil {start .Attr =append (start
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_CoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_afg *AG_CoreAttributes )ValidateWithPath (path string )error {if _ffda :=_afg .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ffda !=nil {return _ffda ;};return nil ;};func (_eabcg *CT_ImageData )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_cced :=range start .Attr {if _cced .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"&&_cced .Name .Local =="\u0070\u0069\u0063\u0074"||_cced .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"&&_cced .Name .Local =="\u0070\u0069\u0063\u0074"{_afcd ,_bgab :=_cced .Value ,error (nil );if _bgab !=nil {return _bgab ;};_eabcg .PictAttr =&_afcd ;continue ;};if _cced .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"&&_cced .Name .Local =="\u0068\u0072\u0065\u0066"||_cced .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"&&_cced .Name .Local =="\u0068\u0072\u0065\u0066"{_gfgg ,_bdeb :=_cced .Value ,error (nil );if _bdeb !=nil {return _bdeb ;};_eabcg .RHrefAttr =&_gfgg ;continue ;};if _cced .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cced .Name .Local =="\u0068\u0072\u0065\u0066"{_faaf ,_aefd :=_cced .Value ,error (nil );if _aefd !=nil {return _aefd ;};_eabcg .HrefAttr =&_faaf ;continue ;};if _cced .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cced .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_gbaa ,_cfeca :=_cced .Value ,error (nil );if _cfeca !=nil {return _cfeca ;};_eabcg .AlthrefAttr =&_gbaa ;continue ;};if _cced .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cced .Name .Local =="\u0074\u0069\u0074l\u0065"{_egega ,_dccf :=_cced .Value ,error (nil );if _dccf !=nil {return _dccf ;};_eabcg .TitleAttr =&_egega ;continue ;};if _cced .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cced .Name .Local =="\u006f\u006c\u0065i\u0064"{_bccfc ,_dgadd :=_gc .ParseFloat (_cced .Value ,64);if _dgadd !=nil {return _dgadd ;};_ebef :=float32 (_bccfc );_eabcg .OleidAttr =&_ebef ;continue ;};if _cced .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcOLEObject and its children, prefixing error messages with path
|
|
|
|
func (_afdgfb *OfcOLEObject )ValidateWithPath (path string )error {if _aeged :=_afdgfb .OfcCT_OLEObject .ValidateWithPath (path );_aeged !=nil {return _aeged ;};return nil ;};func (_gfeff *OfcST_ExtrusionPlane )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_gfeff =0;case "\u0058\u0059":*_gfeff =1;case "\u005a\u0058":*_gfeff =2;case "\u0059\u005a":*_gfeff =3;};return nil ;};func NewOfcCT_ColorMenu ()*OfcCT_ColorMenu {_baaee :=&OfcCT_ColorMenu {};return _baaee };func (_fcfbag OfcST_ColorMode )ValidateWithPath (path string )error {switch _fcfbag {case 0,1,2:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fcfbag ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeDefaults and its children, prefixing error messages with path
|
|
|
|
func (_aebfg *OfcCT_ShapeDefaults )ValidateWithPath (path string )error {if _cdaba :=_aebfg .FillAttr .ValidateWithPath (path +"\u002fF\u0069\u006c\u006c\u0041\u0074\u0074r");_cdaba !=nil {return _cdaba ;};if _afbgg :=_aebfg .StrokeAttr .ValidateWithPath (path +"/\u0053\u0074\u0072\u006f\u006b\u0065\u0041\u0074\u0074\u0072");_afbgg !=nil {return _afbgg ;};if _cbccf :=_aebfg .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_cbccf !=nil {return _cbccf ;};if _aebfg .Fill !=nil {if _deabb :=_aebfg .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_deabb !=nil {return _deabb ;};};if _aebfg .Stroke !=nil {if _ffeb :=_aebfg .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_ffeb !=nil {return _ffeb ;};};if _aebfg .Textbox !=nil {if _gcdee :=_aebfg .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_gcdee !=nil {return _gcdee ;};};if _aebfg .Shadow !=nil {if _edeef :=_aebfg .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_edeef !=nil {return _edeef ;};};if _aebfg .Skew !=nil {if _bfgabb :=_aebfg .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_bfgabb !=nil {return _bfgabb ;};};if _aebfg .Extrusion !=nil {if _gegfa :=_aebfg .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_gegfa !=nil {return _gegfa ;};};if _aebfg .Callout !=nil {if _fdgcc :=_aebfg .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_fdgcc !=nil {return _fdgcc ;};};if _aebfg .Lock !=nil {if _cegfd :=_aebfg .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_cegfd !=nil {return _cegfd ;};};if _aebfg .Colormru !=nil {if _aagee :=_aebfg .Colormru .ValidateWithPath (path +"\u002fC\u006f\u006c\u006f\u0072\u006d\u0072u");_aagee !=nil {return _aagee ;};};if _aebfg .Colormenu !=nil {if _eddfe :=_aebfg .Colormenu .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075");_eddfe !=nil {return _eddfe ;};};if _dgbg :=_aebfg .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_dgbg !=nil {return _dgbg ;};return nil ;};func (_fceacd OfcST_DiagramLayout )Validate ()error {return _fceacd .ValidateWithPath ("")};func (_cddfg *OfcCT_Relation )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ebegc :=range start .Attr {if _ebegc .Name .Local =="\u0069\u0064\u0073r\u0063"{_ecbeb ,_cadfc :=_ebegc .Value ,error (nil );if _cadfc !=nil {return _cadfc ;};_cddfg .IdsrcAttr =&_ecbeb ;continue ;};if _ebegc .Name .Local =="\u0069\u0064\u0064\u0065\u0073\u0074"{_beggc ,_edfccc :=_ebegc .Value ,error (nil );if _edfccc !=nil {return _edfccc ;};_cddfg .IddestAttr =&_beggc ;continue ;};if _ebegc .Name .Local =="\u0069\u0064\u0063\u006e\u0074\u0072"{_gbaab ,_fegdf :=_ebegc .Value ,error (nil );if _fegdf !=nil {return _fegdf ;};_cddfg .IdcntrAttr =&_gbaab ;continue ;};if _ebegc .Name .Local =="\u0065\u0078\u0074"{_cddfg .ExtAttr .UnmarshalXMLAttr (_ebegc );continue ;};};for {_dfbdec ,_bbadd :=d .Token ();if _bbadd !=nil {return _f .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",_bbadd );};if _fgef ,_fbafd :=_dfbdec .(_a .EndElement );_fbafd &&_fgef .Name ==start .Name {break ;};};return nil ;};func (_fggbf OfcST_OLEDrawAspect )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_bcdde :=_a .Attr {};_bcdde .Name =name ;switch _fggbf {case OfcST_OLEDrawAspectUnset :_bcdde .Value ="";case OfcST_OLEDrawAspectContent :_bcdde .Value ="\u0043o\u006e\u0074\u0065\u006e\u0074";case OfcST_OLEDrawAspectIcon :_bcdde .Value ="\u0049\u0063\u006f\u006e";};return _bcdde ,nil ;};func (_gdafd *OfcST_RType )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_bdaab ,_cfdf :=d .Token ();if _cfdf !=nil {return _cfdf ;};if _dcecc ,_fbbbab :=_bdaab .(_a .EndElement );_fbbbab &&_dcecc .Name ==start .Name {*_gdafd =1;return nil ;};if _gaaef ,_cgadg
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Rect and its children
|
|
|
|
func (_ggffb *CT_Rect )Validate ()error {return _ggffb .ValidateWithPath ("\u0043T\u005f\u0052\u0065\u0063\u0074");};func (_cecba *OfcBottom )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 _cecba .OfcCT_StrokeChild .MarshalXML (e ,start );};func (_bdfeb OfcST_InsetMode )String ()string {switch _bdfeb {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};func NewCT_Shape ()*CT_Shape {_bcabcf :=&CT_Shape {};return _bcabcf };func (_fgbgbc *OfcInk )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fgbgbc .OfcCT_Ink =*NewOfcCT_Ink ();for _ ,_abga :=range start .Attr {if _abga .Name .Local =="\u0069"{_aacd ,_affe :=_abga .Value ,error (nil );if _affe !=nil {return _affe ;};_fgbgbc .IAttr =&_aacd ;continue ;};if _abga .Name .Local =="\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_fgbgbc .AnnotationAttr .UnmarshalXMLAttr (_abga );continue ;};if _abga .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_ddab ,_fddab :=_abga .Value ,error (nil );if _fddab !=nil {return _fddab ;};_fgbgbc .ContentTypeAttr =&_ddab ;continue ;};};for {_egge ,_bbacb :=d .Token ();if _bbacb !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u004ff\u0063\u0049n\u006b\u003a\u0020\u0025\u0073",_bbacb );};if _cfcbe ,_cabge :=_egge .(_a .EndElement );_cabge &&_cfcbe .Name ==start .Name {break ;};};return nil ;};func NewBackground ()*Background {_adg :=&Background {};_adg .CT_Background =*NewCT_Background ();return _adg ;};func (_fdge *CT_Shape )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076:\u0073\u0068\u0061\u0070\u0065";};if _fdge .GfxdataAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Na
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCallout and its children, prefixing error messages with path
|
|
|
|
func (_agaf *OfcCallout )ValidateWithPath (path string )error {if _dbffge :=_agaf .OfcCT_Callout .ValidateWithPath (path );_dbffge !=nil {return _dbffge ;};return nil ;};func NewCT_Arc ()*CT_Arc {_aadbe :=&CT_Arc {};return _aadbe };func NewOfcTop ()*OfcTop {_afgdg :=&OfcTop {};_afgdg .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _afgdg ;};func NewCurve ()*Curve {_bccff :=&Curve {};_bccff .CT_Curve =*NewCT_Curve ();return _bccff };func (_gddc *CT_F )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_cefce :=range start .Attr {if _cefce .Name .Local =="\u0065\u0071\u006e"{_fffc ,_bfbac :=_cefce .Value ,error (nil );if _bfbac !=nil {return _bfbac ;};_gddc .EqnAttr =&_fffc ;continue ;};};for {_gbfa ,_fade :=d .Token ();if _fade !=nil {return _f .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u0043\u0054\u005f\u0046\u003a\u0020\u0025\u0073",_fade );};if _acbb ,_eadc :=_gbfa .(_a .EndElement );_eadc &&_acbb .Name ==start .Name {break ;};};return nil ;};func (_feb *AG_Path )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ccfc :=range start .Attr {if _ccfc .Name .Local =="\u0070\u0061\u0074\u0068"{_cdebg ,_dded :=_ccfc .Value ,error (nil );if _dded !=nil {return _dded ;};_feb .PathAttr =&_cdebg ;continue ;};};for {_ggeg ,_bccc :=d .Token ();if _bccc !=nil {return _f .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_bccc );};if _dcad ,_fad :=_ggeg .(_a .EndElement );_fad &&_dcad .Name ==start .Name {break ;};};return nil ;};func (_adeb *CT_Line )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u006c\u0069\u006e\u0065";};if _adeb .FromAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .FromAttr )});};if _adeb .ToAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u006f"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .ToAttr )});};if _adeb .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .HrefAttr )});};if _adeb .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .TargetAttr )});};if _adeb .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .ClassAttr )});};if _adeb .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .TitleAttr )});};if _adeb .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .AltAttr )});};if _adeb .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .CoordsizeAttr )});};if _adeb .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .CoordoriginAttr )});};if _adeb .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .WrapcoordsAttr )});};if _adeb .PrintAttr !=_c .ST_TrueFalseUnset {_efaac ,_fadc :=_adeb .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _fadc !=nil {return _fadc ;};start .Attr =append (start .Attr ,_efaac );};if _adeb .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_adeb .IdAttr )});};if _adeb .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Shape and its children, prefixing error messages with path
|
|
|
|
func (_fadfc *Shape )ValidateWithPath (path string )error {if _dagacd :=_fadfc .CT_Shape .ValidateWithPath (path );_dagacd !=nil {return _dagacd ;};return nil ;};type ST_Ext byte ;func (_ffede OfcST_OLEType )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_aefgfb :=_a .Attr {};_aefgfb .Name =name ;switch _ffede {case OfcST_OLETypeUnset :_aefgfb .Value ="";case OfcST_OLETypeEmbed :_aefgfb .Value ="\u0045\u006d\u0062e\u0064";case OfcST_OLETypeLink :_aefgfb .Value ="\u004c\u0069\u006e\u006b";};return _aefgfb ,nil ;};func (_cbedbf *Textbox )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _cbedbf .CT_Textbox .MarshalXML (e ,start );};type ST_ImageAspect byte ;func NewOfcCT_Callout ()*OfcCT_Callout {_bcgfaf :=&OfcCT_Callout {};return _bcgfaf };func (_aebcb OfcST_OLEUpdateMode )ValidateWithPath (path string )error {switch _aebcb {case 0,1,2:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_aebcb ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_Type and its children
|
|
|
|
func (_dgbb *AG_Type )Validate ()error {return _dgbb .ValidateWithPath ("\u0041G\u005f\u0054\u0079\u0070\u0065");};func NewCT_Path ()*CT_Path {_cdaf :=&CT_Path {};return _cdaf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Formulas and its children, prefixing error messages with path
|
|
|
|
func (_gedcc *Formulas )ValidateWithPath (path string )error {if _aefdf :=_gedcc .CT_Formulas .ValidateWithPath (path );_aefdf !=nil {return _aefdf ;};return nil ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Lock and its children
|
|
|
|
func (_ececff *OfcCT_Lock )Validate ()error {return _ececff .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u004c\u006f\u0063\u006b");};func (_aedba OfcST_ConnectType )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_gccea :=_a .Attr {};_gccea .Name =name ;switch _aedba {case OfcST_ConnectTypeUnset :_gccea .Value ="";case OfcST_ConnectTypeNone :_gccea .Value ="\u006e\u006f\u006e\u0065";case OfcST_ConnectTypeRect :_gccea .Value ="\u0072\u0065\u0063\u0074";case OfcST_ConnectTypeSegments :_gccea .Value ="\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073";case OfcST_ConnectTypeCustom :_gccea .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _gccea ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the CT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_dbed *CT_Fill )ValidateWithPath (path string )error {if _geaff :=_dbed .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_geaff !=nil {return _geaff ;};if _dbcc :=_dbed .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_dbcc !=nil {return _dbcc ;};if _addaa :=_dbed .AspectAttr .ValidateWithPath (path +"/\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_addaa !=nil {return _addaa ;};if _gdcg :=_dbed .AlignshapeAttr .ValidateWithPath (path +"\u002fA\u006ci\u0067\u006e\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_gdcg !=nil {return _gdcg ;};if _dbge :=_dbed .MethodAttr .ValidateWithPath (path +"/\u004d\u0065\u0074\u0068\u006f\u0064\u0041\u0074\u0074\u0072");_dbge !=nil {return _dbge ;};if _eegb :=_dbed .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_eegb !=nil {return _eegb ;};if _gacf :=_dbed .RecolorAttr .ValidateWithPath (path +"\u002f\u0052\u0065c\u006f\u006c\u006f\u0072\u0041\u0074\u0074\u0072");_gacf !=nil {return _gacf ;};if _eabc :=_dbed .RotateAttr .ValidateWithPath (path +"/\u0052\u006f\u0074\u0061\u0074\u0065\u0041\u0074\u0074\u0072");_eabc !=nil {return _eabc ;};if _dbed .Fill !=nil {if _abdce :=_dbed .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_abdce !=nil {return _abdce ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RelationTable and its children, prefixing error messages with path
|
|
|
|
func (_agebe *OfcCT_RelationTable )ValidateWithPath (path string )error {for _abfgb ,_dgcabc :=range _agebe .Rel {if _gfcfe :=_dgcabc .ValidateWithPath (_f .Sprintf ("\u0025\u0073\u002f\u0052\u0065\u006c\u005b\u0025\u0064\u005d",path ,_abfgb ));_gfcfe !=nil {return _gfcfe ;};};if _ggeee :=_agebe .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ggeee !=nil {return _ggeee ;};return nil ;};func NewRect ()*Rect {_ceafe :=&Rect {};_ceafe .CT_Rect =*NewCT_Rect ();return _ceafe };func (_aecee OfcST_InsetMode )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_aecee .String (),start );};func (_fbdga *CT_F )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076\u003a\u0066";};if _fbdga .EqnAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0065\u0071\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_fbdga .EqnAttr )});};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
|
|
|
|
|
|
|
|
// Validate validates the OfcCallout and its children
|
|
|
|
func (_ebfe *OfcCallout )Validate ()error {return _ebfe .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};const (OfcST_ConnectTypeUnset OfcST_ConnectType =0;OfcST_ConnectTypeNone OfcST_ConnectType =1;OfcST_ConnectTypeRect OfcST_ConnectType =2;OfcST_ConnectTypeSegments OfcST_ConnectType =3;OfcST_ConnectTypeCustom OfcST_ConnectType =4;);
|
|
|
|
|
|
|
|
// Validate validates the OfcCT_ClipPath and its children
|
|
|
|
func (_gfadc *OfcCT_ClipPath )Validate ()error {return _gfadc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006c\u0069p\u0050\u0061\u0074\u0068");};func (_cfbdg OfcST_InsetMode )Validate ()error {return _cfbdg .ValidateWithPath ("")};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-09-02 11:46:53 +00:00
|
|
|
// Validate validates the Background and its children
|
2022-12-06 11:56:49 +00:00
|
|
|
func (_efgbb *Background )Validate ()error {return _efgbb .ValidateWithPath ("\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};func (_dbcefe ST_ImageAspect )String ()string {switch _dbcefe {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 "";};type OfcEquationxml struct{OfcCT_EquationXml };type AG_Chromakey struct{ChromakeyAttr *string ;};type OfcTop struct{OfcCT_StrokeChild };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 _c .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _c .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _c .ST_TrueFalse ;ButtonAttr _c .ST_TrueFalse ;UserhiddenAttr _c .ST_TrueFalse ;BulletAttr _c .ST_TrueFalse ;HrAttr _c .ST_TrueFalse ;HrstdAttr _c .ST_TrueFalse ;HrnoshadeAttr _c .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _c .ST_TrueFalse ;AllowoverlapAttr _c .ST_TrueFalse ;UserdrawnAttr _c .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _c .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _c .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _c .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _c .ST_TrueFalse ;OleiconAttr _c .ST_TrueFalse ;OleAttr _c .ST_TrueFalseBlank ;PreferrelativeAttr _c .ST_TrueFalse ;CliptowrapAttr _c .ST_TrueFalse ;ClipAttr _c .ST_TrueFalse ;};func NewOfcSkew ()*OfcSkew {_ebacd :=&OfcSkew {};_ebacd .OfcCT_Skew =*NewOfcCT_Skew ();return _ebacd };func (_gaebga *OfcEquationxml )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Relation and its children
|
|
|
|
func (_efeab *OfcCT_Relation )Validate ()error {return _efeab .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u006ca\u0074\u0069\u006f\u006e");};func (_abce *CT_Group )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076:\u0067\u0072\u006f\u0075\u0070";};if _abce .EditasAttr !=ST_EditAsUnset {_cfaa ,_ggdg :=_abce .EditasAttr .MarshalXMLAttr (_a .Name {Local :"\u0065\u0064\u0069\u0074\u0061\u0073"});if _ggdg !=nil {return _ggdg ;};start .Attr =append (start .Attr ,_cfaa );};if _abce .TablepropertiesAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0074\u0061\u0062\u006c\u0065\u0070\u0072\u006f\u0070\u0065r\u0074\u0069\u0065\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_abce .TablepropertiesAttr )});};if _abce .TablelimitsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0074\u0061\u0062\u006c\u0065\u006c\u0069\u006d\u0069\u0074\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_abce .TablelimitsAttr )});};if _abce .HrefAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_f .Sprintf ("\u0025\u0076",*_abce .HrefAttr )});};if _abce .TargetAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_abce .TargetAttr )});};if _abce .ClassAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_abce .ClassAttr )});};if _abce .TitleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_abce .TitleAttr )});};if _abce .AltAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u006c\u0074"},Value :_f .Sprintf ("\u0025\u0076",*_abce .AltAttr )});};if _abce .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_f .Sprintf ("\u0025\u0076",*_abce .CoordsizeAttr )});};if _abce .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_f .Sprintf ("\u0025\u0076",*_abce .CoordoriginAttr )});};if _abce .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_f .Sprintf ("\u0025\u0076",*_abce .WrapcoordsAttr )});};if _abce .PrintAttr !=_c .ST_TrueFalseUnset {_bgbg ,_bcca :=_abce .PrintAttr .MarshalXMLAttr (_a .Name {Local :"\u0070\u0072\u0069n\u0074"});if _bcca !=nil {return _bcca ;};start .Attr =append (start .Attr ,_bgbg );};if _abce .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_abce .IdAttr )});};if _abce .StyleAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_abce .StyleAttr )});};if _abce .SpidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_abce .SpidAttr )});};if _abce .OnedAttr !=_c .ST_TrueFalseUnset {_gabeb ,_acfe :=_abce .OnedAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _acfe !=nil {return _acfe ;};start .Attr =append (start .Attr ,_gabeb );};if _abce .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_f .Sprintf ("\u0025\u0076",*_abce .RegroupidAttr )});};if _abce .DoubleclicknotifyAttr !=_c .ST_TrueFalseUnset {_fcdg ,_bagb :=_abce .DoubleclicknotifyAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcColumn and its children
|
|
|
|
func (_gadgd *OfcColumn )Validate ()error {return _gadgd .ValidateWithPath ("\u004ff\u0063\u0043\u006f\u006c\u0075\u006dn");};type OfcST_RType byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcCT_Skew and its children
|
|
|
|
func (_deeae *OfcCT_Skew )Validate ()error {return _deeae .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u006b\u0065\u0077");};func (_degfda *OfcST_OLEDrawAspect )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_degfda =0;case "\u0043o\u006e\u0074\u0065\u006e\u0074":*_degfda =1;case "\u0049\u0063\u006f\u006e":*_degfda =2;};return nil ;};func (_fcfbef OfcST_RType )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_dffefd :=_a .Attr {};_dffefd .Name =name ;switch _fcfbef {case OfcST_RTypeUnset :_dffefd .Value ="";case OfcST_RTypeArc :_dffefd .Value ="\u0061\u0072\u0063";case OfcST_RTypeCallout :_dffefd .Value ="\u0063a\u006c\u006c\u006f\u0075\u0074";case OfcST_RTypeConnector :_dffefd .Value ="\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr";case OfcST_RTypeAlign :_dffefd .Value ="\u0061\u006c\u0069g\u006e";};return _dffefd ,nil ;};func (_cbcca *Path )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cbcca .CT_Path =*NewCT_Path ();for _ ,_adgd :=range start .Attr {if _adgd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_adgd .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"{_cbcca .ConnecttypeAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_adgd .Name .Local =="e\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"{_cbcca .ExtrusionokAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_adgd .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"{_dbggab ,_ebccaa :=_adgd .Value ,error (nil );if _ebccaa !=nil {return _ebccaa ;};_cbcca .ConnectanglesAttr =&_dbggab ;continue ;};if _adgd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_adgd .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"{_adefdd ,_ggfcb :=_adgd .Value ,error (nil );if _ggfcb !=nil {return _ggfcb ;};_cbcca .ConnectlocsAttr =&_adefdd ;continue ;};if _adgd .Name .Local =="\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"{_cbcca .GradientshapeokAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Local =="\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"{_cbcca .ShadowokAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Local =="\u0061r\u0072\u006f\u0077\u006f\u006b"{_cbcca .ArrowokAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Local =="\u0076"{_bgca ,_geefc :=_adgd .Value ,error (nil );if _geefc !=nil {return _geefc ;};_cbcca .VAttr =&_bgca ;continue ;};if _adgd .Name .Local =="\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"{_cbcca .TextpathokAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"{_cbcca .InsetpenokAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"{_cbcca .StrokeokAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Local =="\u0066\u0069\u006c\u006c\u006f\u006b"{_cbcca .FillokAttr .UnmarshalXMLAttr (_adgd );continue ;};if _adgd .Name .Local =="t\u0065\u0078\u0074\u0062\u006f\u0078\u0072\u0065\u0063\u0074"{_gcfbb ,_bgdbb :=_adgd .Value ,error (nil );if _bgdbb !=nil {return _bgdbb ;};_cbcca .TextboxrectAttr =&_gcfbb ;continue ;};if
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Shape and its children
|
|
|
|
func (_gbbdb *CT_Shape )Validate ()error {return _gbbdb .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065");};func (_gagcf *Imagedata )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return _gagcf .CT_ImageData .MarshalXML (e ,start );};type OfcST_DiagramLayout byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_Stroke and its children
|
|
|
|
func (_cbfga *CT_Stroke )Validate ()error {return _cbfga .ValidateWithPath ("\u0043T\u005f\u0053\u0074\u0072\u006f\u006be");};type OfcClippath struct{OfcCT_ClipPath };func NewLine ()*Line {_ceegf :=&Line {};_ceegf .CT_Line =*NewCT_Line ();return _ceegf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcClippath and its children
|
|
|
|
func (_ddgd *OfcClippath )Validate ()error {return _ddgd .ValidateWithPath ("O\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068");};func (_bbffb OfcST_ConnectType )ValidateWithPath (path string )error {switch _bbffb {case 0,1,2,3,4:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_bbffb ));};return nil ;};func (_agbca *OfcCT_ColorMru )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_aceg :=range start .Attr {if _aceg .Name .Local =="\u0063\u006f\u006c\u006f\u0072\u0073"{_dfggf ,_agfaf :=_aceg .Value ,error (nil );if _agfaf !=nil {return _agfaf ;};_agbca .ColorsAttr =&_dfggf ;continue ;};if _aceg .Name .Local =="\u0065\u0078\u0074"{_agbca .ExtAttr .UnmarshalXMLAttr (_aceg );continue ;};};for {_afbff ,_dbbe :=d .Token ();if _dbbe !=nil {return _f .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",_dbbe );};if _ddbbc ,_gddfd :=_afbff .(_a .EndElement );_gddfd &&_ddbbc .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_ShapeAttributes and its children
|
|
|
|
func (_dfbc *AG_ShapeAttributes )Validate ()error {return _dfbc .ValidateWithPath ("\u0041G\u005fS\u0068\u0061\u0070\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};type AG_StrokeAttributes struct{OnAttr _c .ST_TrueFalse ;WeightAttr *string ;ColorAttr *string ;OpacityAttr *string ;LinestyleAttr ST_StrokeLineStyle ;MiterlimitAttr *float64 ;JoinstyleAttr ST_StrokeJoinStyle ;EndcapAttr ST_StrokeEndCap ;DashstyleAttr *string ;FilltypeAttr ST_FillType ;SrcAttr *string ;ImageaspectAttr ST_ImageAspect ;ImagesizeAttr *string ;ImagealignshapeAttr _c .ST_TrueFalse ;Color2Attr *string ;StartarrowAttr ST_StrokeArrowType ;StartarrowwidthAttr ST_StrokeArrowWidth ;StartarrowlengthAttr ST_StrokeArrowLength ;EndarrowAttr ST_StrokeArrowType ;EndarrowwidthAttr ST_StrokeArrowWidth ;EndarrowlengthAttr ST_StrokeArrowLength ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;ForcedashAttr _c .ST_TrueFalse ;IdAttr *string ;InsetpenAttr _c .ST_TrueFalse ;RelidAttr *string ;};func (_deaab OfcST_Angle )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_deaab .String (),start );};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the AG_ImageAttributes and its children, prefixing error messages with path
|
|
|
|
func (_abdc *AG_ImageAttributes )ValidateWithPath (path string )error {if _agd :=_abdc .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_agd !=nil {return _agd ;};if _agae :=_abdc .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_agae !=nil {return _agae ;};return nil ;};type AG_Id struct{IdAttr *string ;};func (_dabaa ST_Ext )String ()string {switch _dabaa {case 0:return "";case 1:return "\u0076\u0069\u0065\u0077";case 2:return "\u0065\u0064\u0069\u0074";case 3:return "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065";};return "";};type OfcShapedefaults struct{OfcCT_ShapeDefaults };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;);const (OfcST_OLETypeUnset OfcST_OLEType =0;OfcST_OLETypeEmbed OfcST_OLEType =1;OfcST_OLETypeLink OfcST_OLEType =2;);func (_cbfcc *OfcST_ConnectorType )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_cbfcc =0;case "\u006e\u006f\u006e\u0065":*_cbfcc =1;case "\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074":*_cbfcc =2;case "\u0065\u006c\u0062o\u0077":*_cbfcc =3;case "\u0063\u0075\u0072\u0076\u0065\u0064":*_cbfcc =4;};return nil ;};type CT_Path struct{VAttr *string ;LimoAttr *string ;TextboxrectAttr *string ;FillokAttr _c .ST_TrueFalse ;StrokeokAttr _c .ST_TrueFalse ;ShadowokAttr _c .ST_TrueFalse ;ArrowokAttr _c .ST_TrueFalse ;GradientshapeokAttr _c .ST_TrueFalse ;TextpathokAttr _c .ST_TrueFalse ;InsetpenokAttr _c .ST_TrueFalse ;ConnecttypeAttr OfcST_ConnectType ;ConnectlocsAttr *string ;ConnectanglesAttr *string ;ExtrusionokAttr _c .ST_TrueFalse ;IdAttr *string ;};func (_ecdbd ST_Ext )Validate ()error {return _ecdbd .ValidateWithPath ("")};const (ST_FillMethodUnset ST_FillMethod =0;ST_FillMethodNone ST_FillMethod =1;ST_FillMethodLinear ST_FillMethod =2;ST_FillMethodSigma ST_FillMethod =3;ST_FillMethodAny ST_FillMethod =4;ST_FillMethodLinearSigma ST_FillMethod =5;);func (_efcb *Fill )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_efcb .CT_Fill =*NewCT_Fill ();for _ ,_gfedec :=range start .Attr {if _gfedec .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfedec .Name .Local =="\u0064\u0065t\u0065\u0063\u0074m\u006f\u0075\u0073\u0065\u0063\u006c\u0069\u0063\u006b"{_efcb .DetectmouseclickAttr .UnmarshalXMLAttr (_gfedec );continue ;};if _gfedec .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfedec .Name .Local =="\u0072\u0065\u006ci\u0064"{_edcf ,_bdcfa :=_gfedec .Value ,error (nil );if _bdcfa !=nil {return _bdcfa ;};_efcb .RelidAttr =&_edcf ;continue ;};if _gfedec .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"&&_gfedec .Name .Local =="\u0069\u0064"||_gfedec .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"&&_gfedec .Name .Local =="\u0069\u0064"{_fgaff ,_abada :=_gfedec .Value ,error (nil );if _abada !=nil {return _abada ;};_efcb .IdAttr =&_fgaff ;continue ;};if _
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_eaddb *Shapetype )ValidateWithPath (path string )error {if _bgada :=_eaddb .CT_Shapetype .ValidateWithPath (path );_bgada !=nil {return _bgada ;};return nil ;};func (_ebee ST_FillMethod )ValidateWithPath (path string )error {switch _ebee {case 0,1,2,3,4,5:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ebee ));};return nil ;};func (_fcacee ST_ImageAspect )ValidateWithPath (path string )error {switch _fcacee {case 0,1,2,3:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fcacee ));};return nil ;};func (_fgcf *CT_Handles )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u0076:\u0068\u0061\u006e\u0064\u006c\u0065s";};e .EncodeToken (start );if _fgcf .H !=nil {_gggbc :=_a .StartElement {Name :_a .Name {Local :"\u0076\u003a\u0068"}};for _ ,_gfca :=range _fgcf .H {e .EncodeElement (_gfca ,_gggbc );};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_ebgae *ST_StrokeArrowWidth )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ebffe ,_gcbec :=d .Token ();if _gcbec !=nil {return _gcbec ;};if _cbgeg ,_deddb :=_ebffe .(_a .EndElement );_deddb &&_cbgeg .Name ==start .Name {*_ebgae =1;return nil ;};if _fbddb ,_ccgbe :=_ebffe .(_a .CharData );!_ccgbe {return _f .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",_ebffe );}else {switch string (_fbddb ){case "":*_ebgae =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_ebgae =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_ebgae =2;case "\u0077\u0069\u0064\u0065":*_ebgae =3;};};_ebffe ,_gcbec =d .Token ();if _gcbec !=nil {return _gcbec ;};if _fcead ,_eggff :=_ebffe .(_a .EndElement );_eggff &&_fcead .Name ==start .Name {return nil ;};return _f .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",_ebffe );};func NewAG_StrokeAttributes ()*AG_StrokeAttributes {_ecgg :=&AG_StrokeAttributes {};return _ecgg };
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the CT_H and its children
|
|
|
|
func (_efag *CT_H )Validate ()error {return _efag .ValidateWithPath ("\u0043\u0054\u005f\u0048")};func (_cbegf ST_FillMethod )String ()string {switch _cbegf {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 NewOfcCT_RelationTable ()*OfcCT_RelationTable {_bgff :=&OfcCT_RelationTable {};return _bgff };
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the OfcEquationxml and its children
|
|
|
|
func (_cfbfd *OfcEquationxml )Validate ()error {return _cfbfd .ValidateWithPath ("\u004f\u0066\u0063\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0078\u006d\u006c");};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;);func (_ecagce OfcST_CalloutPlacement )Validate ()error {return _ecagce .ValidateWithPath ("")};func (_bcd *AG_Fill )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _bcd .FilledAttr !=_c .ST_TrueFalseUnset {_cbe ,_deg :=_bcd .FilledAttr .MarshalXMLAttr (_a .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _deg !=nil {return _deg ;};start .Attr =append (start .Attr ,_cbe );};if _bcd .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_f .Sprintf ("\u0025\u0076",*_bcd .FillcolorAttr )});};return nil ;};func (_eadfgc *OfcST_DiagramLayout )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_dbfa ,_facaa :=d .Token ();if _facaa !=nil {return _facaa ;};if _fdecd ,_ddge :=_dbfa .(_a .EndElement );_ddge &&_fdecd .Name ==start .Name {*_eadfgc =1;return nil ;};if _ffbbbe ,_bgbd :=_dbfa .(_a .CharData );!_bgbd {return _f .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",_dbfa );}else {switch string (_ffbbbe ){case "":*_eadfgc =0;case "\u0030":*_eadfgc =1;case "\u0031":*_eadfgc =2;case "\u0032":*_eadfgc =3;case "\u0033":*_eadfgc =4;};};_dbfa ,_facaa =d .Token ();if _facaa !=nil {return _facaa ;};if _fgdeg ,_gefg :=_dbfa .(_a .EndElement );_gefg &&_fgdeg .Name ==start .Name {return nil ;};return _f .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",_dbfa );};type OfcCT_EquationXml struct{ContentTypeAttr *string ;Any _ge .Any ;};func (_baaaf *Textpath )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_baaaf .CT_TextPath =*NewCT_TextPath ();for _ ,_gebed :=range start .Attr {if _gebed .Name .Local =="\u006f\u006e"{_baaaf .OnAttr .UnmarshalXMLAttr (_gebed );continue ;};if _gebed .Name .Local =="\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"{_baaaf .FitshapeAttr .UnmarshalXMLAttr (_gebed );continue ;};if _gebed .Name .Local =="\u0066i\u0074\u0070\u0061\u0074\u0068"{_baaaf .FitpathAttr .UnmarshalXMLAttr (_gebed );continue ;};if _gebed .Name .Local =="\u0074\u0072\u0069\u006d"{_baaaf .TrimAttr .UnmarshalXMLAttr (_gebed );continue ;};if _gebed .Name .Local =="\u0078\u0073\u0063\u0061\u006c\u0065"{_baaaf .XscaleAttr .UnmarshalXMLAttr (_gebed );continue ;};if _gebed .Name .Local =="\u0073\u0074\u0072\u0069\u006e\u0067"{_edcfb ,_fddda :=_gebed .Value ,error (nil );if _fddda !=nil {return _fddda ;};_baaaf .StringAttr =&_edcfb ;continue ;};if _gebed .Name .Local =="\u0069\u0064"{_afbfcf ,_egdcb :=_gebed .Value ,error (nil );if _egdcb !=nil {return _egdcb ;};_baaaf .IdAttr =&_afbfcf ;continue ;};if _gebed .Name .Local =="\u0073\u0074\u0079l\u0065"{_bdbeg ,_facfc :=_gebed .Value ,error (nil );if _facfc !=nil {return _facfc ;};_baaaf .StyleAttr =&_bdbeg ;continue ;};};for {_fcdgf ,_feffa :=d .Token ();if _feffa !=nil {return _f .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0054\u0065\u0078t\u0070\u0061\u0074\u0068: \u0025\u0073",_feffa );};if _ddegf ,_bbbcc :=_fcdgf .(_a .EndElement );_bbbcc &&_ddegf .Name ==start .Name {break ;};};return nil ;};func (_bcebe OfcST_OLEUpdateMode )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_gcaafb :=_a .Attr {};_gcaafb .Name =name ;switch _bcebe {case OfcST_OLEUpdateModeUnset :_gcaafb .Value ="";case OfcST_OLEUpdateModeAlways :_gcaafb .Value ="\u0041\u006c\u0077\u0061\u0079\u0073";case OfcST_OLEUpdateModeOnCall :_gcaafb .Value ="\u004f\u006e\u0043\u0061\u006c\u006c";};return _gcaafb ,nil ;};const (OfcST_HrAlignUnset OfcST_HrAlign =0;OfcST_HrAlignLeft OfcST_HrAlign =1;OfcST_HrAlignRight OfcST_HrAlign
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_IdMap and its children, prefixing error messages with path
|
|
|
|
func (_gcfde *OfcCT_IdMap )ValidateWithPath (path string )error {if _bgcba :=_gcfde .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bgcba !=nil {return _bgcba ;};return nil ;};func NewOval ()*Oval {_aeaae :=&Oval {};_aeaae .CT_Oval =*NewCT_Oval ();return _aeaae };func (_cabg *CT_Group )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_fcge :=range start .Attr {if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_cabg .AllowincellAttr .UnmarshalXMLAttr (_fcge );continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_cabg .BulletAttr .UnmarshalXMLAttr (_fcge );continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="\u0068\u0072"{_cabg .HrAttr .UnmarshalXMLAttr (_fcge );continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="\u006f\u006e\u0065\u0064"{_cabg .OnedAttr .UnmarshalXMLAttr (_fcge );continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_cabg .HralignAttr .UnmarshalXMLAttr (_fcge );continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="t\u0061\u0062\u006c\u0065\u006c\u0069\u006d\u0069\u0074\u0073"{_cffga ,_deaae :=_fcge .Value ,error (nil );if _deaae !=nil {return _deaae ;};_cabg .TablelimitsAttr =&_cffga ;continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_ceaae ,_edac :=_gc .ParseInt (_fcge .Value ,10,64);if _edac !=nil {return _edac ;};_cabg .RegroupidAttr =&_ceaae ;continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_efad ,_debe :=_fcge .Value ,error (nil );if _debe !=nil {return _debe ;};_cabg .BordertopcolorAttr =&_efad ;continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fcge .Name .Local =="\u0073\u0070\u0069\u0064"{_bgefe ,_dbged :=_fcge .Value ,error (nil );if _dbged !=nil {return _dbged ;};_cabg .SpidAttr =&_bgefe ;continue ;};if _fcge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061
|
2022-06-27 19:44:23 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcBottom and its children, prefixing error messages with path
|
|
|
|
func (_gbdca *OfcBottom )ValidateWithPath (path string )error {if _afdaef :=_gbdca .OfcCT_StrokeChild .ValidateWithPath (path );_afdaef !=nil {return _afdaef ;};return nil ;};
|
2022-06-27 19:44:23 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcShapedefaults and its children, prefixing error messages with path
|
|
|
|
func (_adbdf *OfcShapedefaults )ValidateWithPath (path string )error {if _bgade :=_adbdf .OfcCT_ShapeDefaults .ValidateWithPath (path );_bgade !=nil {return _bgade ;};return nil ;};func NewCT_TextPath ()*CT_TextPath {_aafab :=&CT_TextPath {};return _aafab };
|
2022-09-02 11:46:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_StrokeChild and its children, prefixing error messages with path
|
|
|
|
func (_gecbe *OfcCT_StrokeChild )ValidateWithPath (path string )error {if _fddgb :=_gecbe .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_fddgb !=nil {return _fddgb ;};if _ccbbe :=_gecbe .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_ccbbe !=nil {return _ccbbe ;};if _daaaf :=_gecbe .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_daaaf !=nil {return _daaaf ;};if _ddaae :=_gecbe .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_ddaae !=nil {return _ddaae ;};if _fageaa :=_gecbe .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fageaa !=nil {return _fageaa ;};if _bfcbd :=_gecbe .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_bfcbd !=nil {return _bfcbd ;};if _egcgc :=_gecbe .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_egcgc !=nil {return _egcgc ;};if _aefbe :=_gecbe .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_aefbe !=nil {return _aefbe ;};if _aaecg :=_gecbe .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_aaecg !=nil {return _aaecg ;};if _abfdc :=_gecbe .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_abfdc !=nil {return _abfdc ;};if _bbadb :=_gecbe .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_bbadb !=nil {return _bbadb ;};if _eecdf :=_gecbe .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_eecdf !=nil {return _eecdf ;};if _badae :=_gecbe .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_badae !=nil {return _badae ;};if _eabff :=_gecbe .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_eabff !=nil {return _eabff ;};if _gfbed :=_gecbe .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_gfbed !=nil {return _gfbed ;};if _befaa :=_gecbe .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_befaa !=nil {return _befaa ;};return nil ;};func (_eeag *AG_Ext )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_eeag .ExtAttr =ST_Ext (1);for _ ,_gac :=range start .Attr {if _gac .Name .Local =="\u0065\u0078\u0074"{_eeag .ExtAttr .UnmarshalXMLAttr (_gac );continue ;};};for {_fae ,_dfca :=d .Token ();if _dfca !=nil {return _f .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0041G\u005f\u0045x\u0074\u003a\u0020\u0025\u0073",_dfca );};if _gfdb ,_ded :=_fae .(_a .EndElement );_ded &&_gfdb .Name ==start .Name {break ;};};return nil ;};func (_cacbf ST_FillType )ValidateWithPath (path string )error {switch _cacbf {case 0,1,2,3,4,5,6:default:return _f .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_cacbf ));};return nil ;};type CT_Stroke struct{Left *OfcLeft ;Top *OfcTop ;Right *OfcRight ;Bottom *OfcBottom ;Column *OfcColumn ;IdAttr *string ;OnAttr _c .ST_TrueFalse ;WeightAttr *string ;ColorAttr *string ;OpacityAttr *string ;LinestyleAttr ST_StrokeLineStyle ;MiterlimitAttr *float64 ;JoinstyleAttr ST_StrokeJoinStyle ;EndcapAttr ST_StrokeEndCap ;DashstyleAttr *string ;FilltypeAttr ST_FillType ;SrcAttr *string ;ImageaspectAttr ST_ImageAspect ;Imagesi
|
2022-09-02 11:46:53 +00:00
|
|
|
|
2022-12-06 11:56:49 +00:00
|
|
|
// Validate validates the AG_AllCoreAttributes and its children
|
|
|
|
func (_cbg *AG_AllCoreAttributes )Validate ()error {return _cbg .ValidateWithPath ("A\u0047_\u0041\u006c\u006c\u0043\u006f\u0072\u0065\u0041t\u0074\u0072\u0069\u0062ut\u0065\u0073");};func (_dagcca OfcST_HrAlign )Validate ()error {return _dagcca .ValidateWithPath ("")};func (_bddg *OfcCT_Callout )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if (start .Name ==_a .Name {}){start .Name .Local ="\u006f:\u0063\u0061\u006c\u006c\u006f\u0075t";};if _bddg .OnAttr !=_c .ST_TrueFalseUnset {_eefgfb ,_gcfbc :=_bddg .OnAttr .MarshalXMLAttr (_a .Name {Local :"\u006f\u006e"});if _gcfbc !=nil {return _gcfbc ;};start .Attr =append (start .Attr ,_eefgfb );};if _bddg .TypeAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_bddg .TypeAttr )});};if _bddg .GapAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0067\u0061\u0070"},Value :_f .Sprintf ("\u0025\u0076",*_bddg .GapAttr )});};if _bddg .AngleAttr !=OfcST_AngleUnset {_fgdfcc ,_ccgda :=_bddg .AngleAttr .MarshalXMLAttr (_a .Name {Local :"\u0061\u006e\u0067l\u0065"});if _ccgda !=nil {return _ccgda ;};start .Attr =append (start .Attr ,_fgdfcc );};if _bddg .DropautoAttr !=_c .ST_TrueFalseUnset {_efdgc ,_fagcb :=_bddg .DropautoAttr .MarshalXMLAttr (_a .Name {Local :"\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"});if _fagcb !=nil {return _fagcb ;};start .Attr =append (start .Attr ,_efdgc );};if _bddg .DropAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0064\u0072\u006f\u0070"},Value :_f .Sprintf ("\u0025\u0076",*_bddg .DropAttr )});};if _bddg .DistanceAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"},Value :_f .Sprintf ("\u0025\u0076",*_bddg .DistanceAttr )});};if _bddg .LengthspecifiedAttr !=_c .ST_TrueFalseUnset {_fgfgf ,_efbac :=_bddg .LengthspecifiedAttr .MarshalXMLAttr (_a .Name {Local :"\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"});if _efbac !=nil {return _efbac ;};start .Attr =append (start .Attr ,_fgfgf );};if _bddg .LengthAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006c\u0065\u006e\u0067\u0074\u0068"},Value :_f .Sprintf ("\u0025\u0076",*_bddg .LengthAttr )});};if _bddg .AccentbarAttr !=_c .ST_TrueFalseUnset {_bceedc ,_bafee :=_bddg .AccentbarAttr .MarshalXMLAttr (_a .Name {Local :"\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"});if _bafee !=nil {return _bafee ;};start .Attr =append (start .Attr ,_bceedc );};if _bddg .TextborderAttr !=_c .ST_TrueFalseUnset {_bbdb ,_gdbf :=_bddg .TextborderAttr .MarshalXMLAttr (_a .Name {Local :"\u0074\u0065\u0078\u0074\u0062\u006f\u0072\u0064\u0065\u0072"});if _gdbf !=nil {return _gdbf ;};start .Attr =append (start .Attr ,_bbdb );};if _bddg .MinusxAttr !=_c .ST_TrueFalseUnset {_fdaff ,_baebg :=_bddg .MinusxAttr .MarshalXMLAttr (_a .Name {Local :"\u006d\u0069\u006e\u0075\u0073\u0078"});if _baebg !=nil {return _baebg ;};start .Attr =append (start .Attr ,_fdaff );};if _bddg .MinusyAttr !=_c .ST_TrueFalseUnset {_degceg ,_gcafd :=_bddg .MinusyAttr .MarshalXMLAttr (_a .Name {Local :"\u006d\u0069\u006e\u0075\u0073\u0079"});if _gcafd !=nil {return _gcafd ;};start .Attr =append (start .Attr ,_degceg );};if _bddg .ExtAttr !=ST_ExtUnset {_gfdfe ,_eefc :=_bddg .ExtAttr .MarshalXMLAttr (_a .Name {Local :"\u0076\u003a\u0065x\u0074"});if _eefc !=nil {return _eefc ;};start .Attr =append (start .Attr ,_gfdfe );};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type AG_ImageAttributes struct{SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _c .ST_TrueFalse ;BilevelAttr _c .ST_TrueFalse ;};func (_cccae ST_FillMethod )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_bbgac :=_a .Attr {};_bbgac .Name =name ;switch _cccae {case ST_FillMethodUnset :_bbgac .Value ="";case ST_Fi
|