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/
|
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
package vml ;import (_c "encoding/xml";_fb "fmt";_a "github.com/unidoc/unioffice";_ac "github.com/unidoc/unioffice/common/logger";_fc "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";_dc "github.com/unidoc/unioffice/schema/soo/wml";_b "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/excel";_dce "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/powerpoint";_ae "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/word";_f "strconv";);func (_cbbec ST_StrokeLineStyle )ValidateWithPath (path string )error {switch _cbbec {case 0,1,2,3,4,5:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_cbbec ));};return nil ;};type AG_Ext struct{ExtAttr ST_Ext ;};func (_gacf *CT_Line )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u006c\u0069\u006e\u0065";};if _gacf .FromAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .FromAttr )});};if _gacf .ToAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u006f"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .ToAttr )});};if _gacf .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .HrefAttr )});};if _gacf .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .TargetAttr )});};if _gacf .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .ClassAttr )});};if _gacf .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .TitleAttr )});};if _gacf .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .AltAttr )});};if _gacf .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .CoordsizeAttr )});};if _gacf .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .CoordoriginAttr )});};if _gacf .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .WrapcoordsAttr )});};if _gacf .PrintAttr !=_fc .ST_TrueFalseUnset {_gdae ,_ccdc :=_gacf .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _ccdc !=nil {return _ccdc ;};start .Attr =append (start .Attr ,_gdae );};if _gacf .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .IdAttr )});};if _gacf .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .StyleAttr )});};if _gacf .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_gacf .SpidAttr )});};if _gacf .OnedAttr !=_fc .ST_TrueFalseUnset {_ebfca ,_dfeeg :=_gacf .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _dfeeg !=nil {return _dfeeg ;};start .Attr =append (start .Attr ,_ebfca );};if _gacf .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_fb .Spri
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_ImageData and its children, prefixing error messages with path
|
|
|
|
func (_decg *CT_ImageData )ValidateWithPath (path string )error {if _fcgb :=_decg .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_fcgb !=nil {return _fcgb ;};if _cadc :=_decg .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_cadc !=nil {return _cadc ;};if _abbd :=_decg .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_abbd !=nil {return _abbd ;};return nil ;};func NewAG_Id ()*AG_Id {_ffd :=&AG_Id {};return _ffd };func (_bfcfd OfcST_OLEType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_bdaefg :=_c .Attr {};_bdaefg .Name =name ;switch _bfcfd {case OfcST_OLETypeUnset :_bdaefg .Value ="";case OfcST_OLETypeEmbed :_bdaefg .Value ="\u0045\u006d\u0062e\u0064";case OfcST_OLETypeLink :_bdaefg .Value ="\u004c\u0069\u006e\u006b";};return _bdaefg ,nil ;};type OfcLeft struct{OfcCT_StrokeChild };func (_geeca *CT_Stroke )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0073\u0074\u0072\u006f\u006b\u0065";};if _geeca .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_geeca .IdAttr )});};if _geeca .OnAttr !=_fc .ST_TrueFalseUnset {_acbd ,_fcaec :=_geeca .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _fcaec !=nil {return _fcaec ;};start .Attr =append (start .Attr ,_acbd );};if _geeca .WeightAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_geeca .WeightAttr )});};if _geeca .ColorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_geeca .ColorAttr )});};if _geeca .OpacityAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_fb .Sprintf ("\u0025\u0076",*_geeca .OpacityAttr )});};if _geeca .LinestyleAttr !=ST_StrokeLineStyleUnset {_egfa ,_bfda :=_geeca .LinestyleAttr .MarshalXMLAttr (_c .Name {Local :"\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"});if _bfda !=nil {return _bfda ;};start .Attr =append (start .Attr ,_egfa );};if _geeca .MiterlimitAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006d\u0069\u0074\u0065\u0072\u006c\u0069\u006d\u0069\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_geeca .MiterlimitAttr )});};if _geeca .JoinstyleAttr !=ST_StrokeJoinStyleUnset {_aaccc ,_fcfe :=_geeca .JoinstyleAttr .MarshalXMLAttr (_c .Name {Local :"\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"});if _fcfe !=nil {return _fcfe ;};start .Attr =append (start .Attr ,_aaccc );};if _geeca .EndcapAttr !=ST_StrokeEndCapUnset {_abcdb ,_fcgc :=_geeca .EndcapAttr .MarshalXMLAttr (_c .Name {Local :"\u0065\u006e\u0064\u0063\u0061\u0070"});if _fcgc !=nil {return _fcgc ;};start .Attr =append (start .Attr ,_abcdb );};if _geeca .DashstyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"},Value :_fb .Sprintf ("\u0025\u0076",*_geeca .DashstyleAttr )});};if _geeca .FilltypeAttr !=ST_FillTypeUnset {_gfggec ,_efafe :=_geeca .FilltypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"});if _efafe !=nil {return _efafe ;};start .Attr =append (start .Attr ,_gfggec );};if _geeca .SrcAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0072\u0063"},Value :_fb .Sprintf ("\u0025\u0076",*_geeca .SrcAttr )});};if _geeca .ImageaspectAttr !=ST_ImageAspectUnset {_ebaa ,_fbbc :=_geeca .ImageaspectAttr .MarshalXMLAttr (_c .Name {Local :"i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"});if _fbbc !=nil {return _fbbc ;};start .Attr =append (start .Attr ,_ebaa );};if _geeca .ImagesizeAttr !=nil {start .Attr =append (s
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_Id and its children
|
|
|
|
func (_ggc *AG_Id )Validate ()error {return _ggc .ValidateWithPath ("\u0041\u0047\u005fI\u0064")};func (_cgfcf *AG_OfficeShapeAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _cgfcf .SptAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073p\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_cgfcf .SptAttr )});};if _cgfcf .ConnectortypeAttr !=OfcST_ConnectorTypeUnset {_abaa ,_ded :=_cgfcf .ConnectortypeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"});if _ded !=nil {return _ded ;};start .Attr =append (start .Attr ,_abaa );};if _cgfcf .BwmodeAttr !=OfcST_BWModeUnset {_cda ,_agdb :=_cgfcf .BwmodeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _agdb !=nil {return _agdb ;};start .Attr =append (start .Attr ,_cda );};if _cgfcf .BwpureAttr !=OfcST_BWModeUnset {_geaa ,_ccd :=_cgfcf .BwpureAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u0070\u0075\u0072\u0065"});if _ccd !=nil {return _ccd ;};start .Attr =append (start .Attr ,_geaa );};if _cgfcf .BwnormalAttr !=OfcST_BWModeUnset {_dcf ,_gccb :=_cgfcf .BwnormalAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _gccb !=nil {return _gccb ;};start .Attr =append (start .Attr ,_dcf );};if _cgfcf .ForcedashAttr !=_fc .ST_TrueFalseUnset {_aaf ,_gfba :=_cgfcf .ForcedashAttr .MarshalXMLAttr (_c .Name {Local :"o\u003a\u0066\u006f\u0072\u0063\u0065\u0064\u0061\u0073\u0068"});if _gfba !=nil {return _gfba ;};start .Attr =append (start .Attr ,_aaf );};if _cgfcf .OleiconAttr !=_fc .ST_TrueFalseUnset {_dfb ,_fce :=_cgfcf .OleiconAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u006f\u006c\u0065\u0069\u0063\u006fn"});if _fce !=nil {return _fce ;};start .Attr =append (start .Attr ,_dfb );};if _cgfcf .OleAttr !=_fc .ST_TrueFalseBlankUnset {_dcc ,_dddf :=_cgfcf .OleAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006fl\u0065"});if _dddf !=nil {return _dddf ;};start .Attr =append (start .Attr ,_dcc );};if _cgfcf .PreferrelativeAttr !=_fc .ST_TrueFalseUnset {_eedb ,_ebed :=_cgfcf .PreferrelativeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003ap\u0072\u0065\u0066e\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065"});if _ebed !=nil {return _ebed ;};start .Attr =append (start .Attr ,_eedb );};if _cgfcf .CliptowrapAttr !=_fc .ST_TrueFalseUnset {_feae ,_cefe :=_cgfcf .CliptowrapAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0063l\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"});if _cefe !=nil {return _cefe ;};start .Attr =append (start .Attr ,_feae );};if _cgfcf .ClipAttr !=_fc .ST_TrueFalseUnset {_bgddd ,_efa :=_cgfcf .ClipAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0063\u006c\u0069\u0070"});if _efa !=nil {return _efa ;};start .Attr =append (start .Attr ,_bgddd );};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_StrokeChild and its children
|
|
|
|
func (_eecgd *OfcCT_StrokeChild )Validate ()error {return _eecgd .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
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Group and its children
|
|
|
|
func (_cbfbe *Group )Validate ()error {return _cbfbe .ValidateWithPath ("\u0047\u0072\u006fu\u0070")};func (_ggaggd OfcST_ScreenSize )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_addge :=_c .Attr {};_addge .Name =name ;switch _ggaggd {case OfcST_ScreenSizeUnset :_addge .Value ="";case OfcST_ScreenSize544x376 :_addge .Value ="\u00354\u0034\u002c\u0033\u0037\u0036";case OfcST_ScreenSize640x480 :_addge .Value ="\u00364\u0030\u002c\u0034\u0038\u0030";case OfcST_ScreenSize720x512 :_addge .Value ="\u00372\u0030\u002c\u0035\u0031\u0032";case OfcST_ScreenSize800x600 :_addge .Value ="\u00380\u0030\u002c\u0036\u0030\u0030";case OfcST_ScreenSize1024x768 :_addge .Value ="\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038";case OfcST_ScreenSize1152x862 :_addge .Value ="\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032";};return _addge ,nil ;};func (_cgbbe *ST_StrokeJoinStyle )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_aceaa ,_fcfag :=d .Token ();if _fcfag !=nil {return _fcfag ;};if _abbae ,_gffcc :=_aceaa .(_c .EndElement );_gffcc &&_abbae .Name ==start .Name {*_cgbbe =1;return nil ;};if _dcgb ,_bfcf :=_aceaa .(_c .CharData );!_bfcf {return _fb .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",_aceaa );}else {switch string (_dcgb ){case "":*_cgbbe =0;case "\u0072\u006f\u0075n\u0064":*_cgbbe =1;case "\u0062\u0065\u0076e\u006c":*_cgbbe =2;case "\u006d\u0069\u0074e\u0072":*_cgbbe =3;};};_aceaa ,_fcfag =d .Token ();if _fcfag !=nil {return _fcfag ;};if _fbfbdb ,_aaddd :=_aceaa .(_c .EndElement );_aaddd &&_fbfbdb .Name ==start .Name {return nil ;};return _fb .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",_aceaa );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Extrusion and its children
|
|
|
|
func (_fefgg *OfcCT_Extrusion )Validate ()error {return _fefgg .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};func NewCT_F ()*CT_F {_deaa :=&CT_F {};return _deaa };type AG_AllShapeAttributes struct{OpacityAttr *string ;StrokedAttr _fc .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _fc .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _fc .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _fc .ST_TrueFalse ;OleiconAttr _fc .ST_TrueFalse ;OleAttr _fc .ST_TrueFalseBlank ;PreferrelativeAttr _fc .ST_TrueFalse ;CliptowrapAttr _fc .ST_TrueFalse ;ClipAttr _fc .ST_TrueFalse ;};func (_egdafc *Image )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _egdafc .CT_Image .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_CoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_gac *AG_CoreAttributes )ValidateWithPath (path string )error {if _gdf :=_gac .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_gdf !=nil {return _gdf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Oval and its children, prefixing error messages with path
|
|
|
|
func (_afeea *Oval )ValidateWithPath (path string )error {if _gcbfag :=_afeea .CT_Oval .ValidateWithPath (path );_gcbfag !=nil {return _gcbfag ;};return nil ;};func (_ffag *OfcCT_Ink )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_eegcc :=range start .Attr {if _eegcc .Name .Local =="\u0069"{_debgd ,_befda :=_eegcc .Value ,error (nil );if _befda !=nil {return _befda ;};_ffag .IAttr =&_debgd ;continue ;};if _eegcc .Name .Local =="\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_ffag .AnnotationAttr .UnmarshalXMLAttr (_eegcc );continue ;};if _eegcc .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_feafe ,_fcaeg :=_eegcc .Value ,error (nil );if _fcaeg !=nil {return _fcaeg ;};_ffag .ContentTypeAttr =&_feafe ;continue ;};};for {_cfef ,_cfeea :=d .Token ();if _cfeea !=nil {return _fb .Errorf ("p\u0061\u0072\u0073\u0069ng\u0020O\u0066\u0063\u0043\u0054\u005fI\u006e\u006b\u003a\u0020\u0025\u0073",_cfeea );};if _fbecg ,_caebb :=_cfef .(_c .EndElement );_caebb &&_fbecg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Formulas and its children, prefixing error messages with path
|
|
|
|
func (_caag *CT_Formulas )ValidateWithPath (path string )error {for _gcada ,_bade :=range _caag .F {if _adfd :=_bade .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002f\u0046\u005b\u0025\u0064\u005d",path ,_gcada ));_adfd !=nil {return _adfd ;};};return nil ;};type OfcST_ExtrusionRender byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Shadow and its children, prefixing error messages with path
|
|
|
|
func (_eefd *CT_Shadow )ValidateWithPath (path string )error {if _efggc :=_eefd .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_efggc !=nil {return _efggc ;};if _ddcdc :=_eefd .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_ddcdc !=nil {return _ddcdc ;};if _dcfae :=_eefd .ObscuredAttr .ValidateWithPath (path +"\u002f\u004f\u0062\u0073\u0063\u0075\u0072\u0065\u0064\u0041\u0074\u0074\u0072");_dcfae !=nil {return _dcfae ;};return nil ;};type Fill struct{CT_Fill };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Stroke and its children, prefixing error messages with path
|
|
|
|
func (_dcbg *CT_Stroke )ValidateWithPath (path string )error {if _dcbg .Left !=nil {if _agbca :=_dcbg .Left .ValidateWithPath (path +"\u002f\u004c\u0065f\u0074");_agbca !=nil {return _agbca ;};};if _dcbg .Top !=nil {if _dbdd :=_dcbg .Top .ValidateWithPath (path +"\u002f\u0054\u006f\u0070");_dbdd !=nil {return _dbdd ;};};if _dcbg .Right !=nil {if _dbded :=_dcbg .Right .ValidateWithPath (path +"\u002f\u0052\u0069\u0067\u0068\u0074");_dbded !=nil {return _dbded ;};};if _dcbg .Bottom !=nil {if _dcfgg :=_dcbg .Bottom .ValidateWithPath (path +"\u002fB\u006f\u0074\u0074\u006f\u006d");_dcfgg !=nil {return _dcfgg ;};};if _dcbg .Column !=nil {if _cagca :=_dcbg .Column .ValidateWithPath (path +"\u002fC\u006f\u006c\u0075\u006d\u006e");_cagca !=nil {return _cagca ;};};if _cddcf :=_dcbg .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_cddcf !=nil {return _cddcf ;};if _dbdfed :=_dcbg .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_dbdfed !=nil {return _dbdfed ;};if _fcbdb :=_dcbg .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_fcbdb !=nil {return _fcbdb ;};if _agddd :=_dcbg .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_agddd !=nil {return _agddd ;};if _daae :=_dcbg .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_daae !=nil {return _daae ;};if _fbbgc :=_dcbg .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_fbbgc !=nil {return _fbbgc ;};if _decgf :=_dcbg .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_decgf !=nil {return _decgf ;};if _cebea :=_dcbg .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_cebea !=nil {return _cebea ;};if _agaef :=_dcbg .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_agaef !=nil {return _agaef ;};if _bfcee :=_dcbg .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_bfcee !=nil {return _bfcee ;};if _efafb :=_dcbg .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_efafb !=nil {return _efafb ;};if _cgdg :=_dcbg .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_cgdg !=nil {return _cgdg ;};if _bafcd :=_dcbg .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_bafcd !=nil {return _bafcd ;};if _edcbb :=_dcbg .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_edcbb !=nil {return _edcbb ;};if _debgb :=_dcbg .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_debgb !=nil {return _debgb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcClippath and its children, prefixing error messages with path
|
|
|
|
func (_aeaaf *OfcClippath )ValidateWithPath (path string )error {if _afaec :=_aeaaf .OfcCT_ClipPath .ValidateWithPath (path );_afaec !=nil {return _afaec ;};return nil ;};type AG_OfficeCoreAttributes struct{SpidAttr *string ;OnedAttr _fc .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _fc .ST_TrueFalse ;ButtonAttr _fc .ST_TrueFalse ;UserhiddenAttr _fc .ST_TrueFalse ;BulletAttr _fc .ST_TrueFalse ;HrAttr _fc .ST_TrueFalse ;HrstdAttr _fc .ST_TrueFalse ;HrnoshadeAttr _fc .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _fc .ST_TrueFalse ;AllowoverlapAttr _fc .ST_TrueFalse ;UserdrawnAttr _fc .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;};func (_afec *AG_Fill )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_eedd :=range start .Attr {if _eedd .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_afec .FilledAttr .UnmarshalXMLAttr (_eedd );continue ;};if _eedd .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_cfe ,_eggf :=_eedd .Value ,error (nil );if _eggf !=nil {return _eggf ;};_afec .FillcolorAttr =&_cfe ;continue ;};};for {_dbc ,_def :=d .Token ();if _def !=nil {return _fb .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0046\u0069\u006c\u006c\u003a\u0020\u0025\u0073",_def );};if _ebd ,_bgcc :=_dbc .(_c .EndElement );_bgcc &&_ebd .Name ==start .Name {break ;};};return nil ;};type OfcCT_Proxy struct{StartAttr _fc .ST_TrueFalseBlank ;EndAttr _fc .ST_TrueFalseBlank ;IdrefAttr *string ;ConnectlocAttr *int32 ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_PolyLine and its children
|
|
|
|
func (_dcbcd *CT_PolyLine )Validate ()error {return _dcbcd .ValidateWithPath ("C\u0054\u005f\u0050\u006f\u006c\u0079\u004c\u0069\u006e\u0065");};const (OfcST_OLEDrawAspectUnset OfcST_OLEDrawAspect =0;OfcST_OLEDrawAspectContent OfcST_OLEDrawAspect =1;OfcST_OLEDrawAspectIcon OfcST_OLEDrawAspect =2;);func (_cegab *OfcSkew )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cegab .OfcCT_Skew =*NewOfcCT_Skew ();for _ ,_gcbfc :=range start .Attr {if _gcbfc .Name .Local =="\u0069\u0064"{_bageg ,_gbgd :=_gcbfc .Value ,error (nil );if _gbgd !=nil {return _gbgd ;};_cegab .IdAttr =&_bageg ;continue ;};if _gcbfc .Name .Local =="\u006f\u006e"{_cegab .OnAttr .UnmarshalXMLAttr (_gcbfc );continue ;};if _gcbfc .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_baced ,_bbbdb :=_gcbfc .Value ,error (nil );if _bbbdb !=nil {return _bbbdb ;};_cegab .OffsetAttr =&_baced ;continue ;};if _gcbfc .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_dgabg ,_ebfag :=_gcbfc .Value ,error (nil );if _ebfag !=nil {return _ebfag ;};_cegab .OriginAttr =&_dgabg ;continue ;};if _gcbfc .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_dafe ,_dgacf :=_gcbfc .Value ,error (nil );if _dgacf !=nil {return _dgacf ;};_cegab .MatrixAttr =&_dafe ;continue ;};if _gcbfc .Name .Local =="\u0065\u0078\u0074"{_cegab .ExtAttr .UnmarshalXMLAttr (_gcbfc );continue ;};};for {_ggdef ,_ecbbg :=d .Token ();if _ecbbg !=nil {return _fb .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0053\u006b\u0065\u0077\u003a\u0020\u0025\u0073",_ecbbg );};if _dacgg ,_dbea :=_ggdef .(_c .EndElement );_dbea &&_dacgg .Name ==start .Name {break ;};};return nil ;};func (_dfbge OfcST_DiagramLayout )ValidateWithPath (path string )error {switch _dfbge {case 0,1,2,3,4:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dfbge ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcBottom and its children, prefixing error messages with path
|
|
|
|
func (_gafg *OfcBottom )ValidateWithPath (path string )error {if _gccf :=_gafg .OfcCT_StrokeChild .ValidateWithPath (path );_gccf !=nil {return _gccf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Shape and its children, prefixing error messages with path
|
|
|
|
func (_adcbg *Shape )ValidateWithPath (path string )error {if _cabda :=_adcbg .CT_Shape .ValidateWithPath (path );_cabda !=nil {return _cabda ;};return nil ;};func NewGroup ()*Group {_afegd :=&Group {};_afegd .CT_Group =*NewCT_Group ();return _afegd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_StrokeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_cebg *AG_StrokeAttributes )ValidateWithPath (path string )error {if _ecfe :=_cebg .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_ecfe !=nil {return _ecfe ;};if _cca :=_cebg .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_cca !=nil {return _cca ;};if _ebb :=_cebg .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_ebb !=nil {return _ebb ;};if _cbeb :=_cebg .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_cbeb !=nil {return _cbeb ;};if _cabe :=_cebg .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_cabe !=nil {return _cabe ;};if _gfgb :=_cebg .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_gfgb !=nil {return _gfgb ;};if _ebga :=_cebg .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_ebga !=nil {return _ebga ;};if _bdgg :=_cebg .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_bdgg !=nil {return _bdgg ;};if _bdge :=_cebg .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_bdge !=nil {return _bdge ;};if _ffca :=_cebg .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_ffca !=nil {return _ffca ;};if _geca :=_cebg .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_geca !=nil {return _geca ;};if _aafc :=_cebg .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_aafc !=nil {return _aafc ;};if _cffe :=_cebg .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_cffe !=nil {return _cffe ;};if _acce :=_cebg .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_acce !=nil {return _acce ;};if _cbfc :=_cebg .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_cbfc !=nil {return _cbfc ;};return nil ;};func (_ffdff *OfcCT_Complex )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_aabea :=range start .Attr {if _aabea .Name .Local =="\u0065\u0078\u0074"{_ffdff .ExtAttr .UnmarshalXMLAttr (_aabea );continue ;};};for {_cdceb ,_ecbea :=d .Token ();if _ecbea !=nil {return _fb .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u006fm\u0070\u006c\u0065\u0078\u003a\u0020\u0025s",_ecbea );};if _fcbba ,_fdgde :=_cdceb .(_c .EndElement );_fdgde &&_fcbba .Name ==start .Name {break ;};};return nil ;};type CT_Handles struct{H []*CT_H ;};func (_fgcbg *ST_Ext )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bbffed ,_dfbba :=d .Token ();if _dfbba !=nil {return _dfbba ;};if _cabc ,_dfecd :=_bbffed .(_c .EndElement );_dfecd &&_cabc .Name ==start .Name {*_fgcbg =1;return nil ;};if _gacdga ,_aabgc :=_bbffed .(_c .CharData );!_aabgc {return _fb .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",_bbffed );}else {switch string (_gacdga ){case "":*_fgcbg =0;case "\u0076\u0069\u0065\u0077":*_fgcbg =1;case "\u0065\u0064\u0069\u0074":*_fgcbg =2;case "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065":*_fgcbg =3;};};_bbffed ,_dfbba =d .Token ();if _dfbba !=nil {return _dfbba ;};if _ddced ,_ffdege :=_bbffed .(_c .EndElement );_ffd
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RegroupTable and its children, prefixing error messages with path
|
|
|
|
func (_ddec *OfcCT_RegroupTable )ValidateWithPath (path string )error {for _beeac ,_ecfca :=range _ddec .Entry {if _cbbdb :=_ecfca .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fE\u006e\u0074\u0072\u0079\u005b\u0025\u0064\u005d",path ,_beeac ));_cbbdb !=nil {return _cbbdb ;};};if _geacb :=_ddec .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_geacb !=nil {return _geacb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_Path and its children, prefixing error messages with path
|
|
|
|
func (_gab *AG_Path )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Arc and its children, prefixing error messages with path
|
|
|
|
func (_ddab *CT_Arc )ValidateWithPath (path string )error {for _ccad ,_gcfa :=range _ddab .EG_ShapeElements {if _bebg :=_gcfa .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_ccad ));_bebg !=nil {return _bebg ;};};if _fffd :=_ddab .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fffd !=nil {return _fffd ;};if _ceeb :=_ddab .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ceeb !=nil {return _ceeb ;};if _fcbg :=_ddab .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_fcbg !=nil {return _fcbg ;};if _cdfd :=_ddab .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cdfd !=nil {return _cdfd ;};if _gdc :=_ddab .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_gdc !=nil {return _gdc ;};if _acgcf :=_ddab .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_acgcf !=nil {return _acgcf ;};if _bca :=_ddab .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_bca !=nil {return _bca ;};if _ccag :=_ddab .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_ccag !=nil {return _ccag ;};if _faef :=_ddab .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_faef !=nil {return _faef ;};if _dcba :=_ddab .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dcba !=nil {return _dcba ;};if _fbcee :=_ddab .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_fbcee !=nil {return _fbcee ;};if _dbaad :=_ddab .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_dbaad !=nil {return _dbaad ;};if _dggb :=_ddab .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_dggb !=nil {return _dggb ;};if _cfeg :=_ddab .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_cfeg !=nil {return _cfeg ;};if _gdca :=_ddab .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_gdca !=nil {return _gdca ;};if _fdbbg :=_ddab .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fdbbg !=nil {return _fdbbg ;};if _geae :=_ddab .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_geae !=nil {return _geae ;};if _egf :=_ddab .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_egf !=nil {return _egf ;};if _ggf :=_ddab .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_ggf !=nil {return _ggf ;};if _cbebd :=_ddab .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_cbebd !=nil {return _cbebd ;};if _effa :=_ddab .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_effa !=nil {return _effa ;};if _fddd :=_ddab .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_fddd !=nil {return _fddd ;};if _cdae :=_ddab .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_cdae !=nil {return _cdae ;};if _fedd :=_ddab .ForcedashAt
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcTop and its children
|
|
|
|
func (_gffbd *OfcTop )Validate ()error {return _gffbd .ValidateWithPath ("\u004f\u0066\u0063\u0054\u006f\u0070");};type OfcCT_RegroupTable struct{Entry []*OfcCT_Entry ;ExtAttr ST_Ext ;};func NewAG_Adj ()*AG_Adj {_dd :=&AG_Adj {};return _dd };func (_adceg OfcST_ColorMode )String ()string {switch _adceg {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};func NewCT_Stroke ()*CT_Stroke {_eddcg :=&CT_Stroke {};return _eddcg };type CT_Path struct{VAttr *string ;LimoAttr *string ;TextboxrectAttr *string ;FillokAttr _fc .ST_TrueFalse ;StrokeokAttr _fc .ST_TrueFalse ;ShadowokAttr _fc .ST_TrueFalse ;ArrowokAttr _fc .ST_TrueFalse ;GradientshapeokAttr _fc .ST_TrueFalse ;TextpathokAttr _fc .ST_TrueFalse ;InsetpenokAttr _fc .ST_TrueFalse ;ConnecttypeAttr OfcST_ConnectType ;ConnectlocsAttr *string ;ConnectanglesAttr *string ;ExtrusionokAttr _fc .ST_TrueFalse ;IdAttr *string ;};func (_dffef OfcST_DiagramLayout )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_cfebg :=_c .Attr {};_cfebg .Name =name ;switch _dffef {case OfcST_DiagramLayoutUnset :_cfebg .Value ="";case OfcST_DiagramLayout0 :_cfebg .Value ="\u0030";case OfcST_DiagramLayout1 :_cfebg .Value ="\u0031";case OfcST_DiagramLayout2 :_cfebg .Value ="\u0032";case OfcST_DiagramLayout3 :_cfebg .Value ="\u0033";};return _cfebg ,nil ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcShapelayout and its children, prefixing error messages with path
|
|
|
|
func (_fgfed *OfcShapelayout )ValidateWithPath (path string )error {if _eacac :=_fgfed .OfcCT_ShapeLayout .ValidateWithPath (path );_eacac !=nil {return _eacac ;};return nil ;};func (_aafed ST_FillType )String ()string {switch _aafed {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 (_cbdec *Shapetype )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cbdec .CT_Shapetype =*NewCT_Shapetype ();for _ ,_gfeab :=range start .Attr {if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfeab .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_caefgd ,_eagae :=_gfeab .Value ,error (nil );if _eagae !=nil {return _eagae ;};_cbdec .BordertopcolorAttr =&_caefgd ;continue ;};if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfeab .Name .Local =="\u006d\u0061\u0073\u0074\u0065\u0072"{_gcfdd ,_bbgcdf :=_gfeab .Value ,error (nil );if _bbgcdf !=nil {return _bbgcdf ;};_cbdec .MasterAttr =&_gcfdd ;continue ;};if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfeab .Name .Local =="\u0062o\u0072d\u0065\u0072\u006c\u0065\u0066\u0074\u0063\u006f\u006c\u006f\u0072"{_ccfg ,_dagee :=_gfeab .Value ,error (nil );if _dagee !=nil {return _dagee ;};_cbdec .BorderleftcolorAttr =&_ccfg ;continue ;};if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfeab .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_cbdec .BulletAttr .UnmarshalXMLAttr (_gfeab );continue ;};if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfeab .Name .Local =="\u0068\u0072"{_cbdec .HrAttr .UnmarshalXMLAttr (_gfeab );continue ;};if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfeab .Name .Local =="\u0063\u006c\u0069\u0070"{_cbdec .ClipAttr .UnmarshalXMLAttr (_gfeab );continue ;};if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfeab .Name .Local =="\u0068\u0072\u0073t\u0064"{_cbdec .HrstdAttr .UnmarshalXMLAttr (_gfeab );continue ;};if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfeab .Name .Local =="\u0073\u0070\u0069\u0064"{_cfbfg ,_cgcgee :=_gfeab .Value ,error (nil );if _cgcgee !=nil {return _cgcgee ;};_cbdec .SpidAttr =&_cfbfg ;continue ;};if _gfeab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Proxy and its children
|
|
|
|
func (_aefab *OfcCT_Proxy )Validate ()error {return _aefab .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0050\u0072\u006f\u0078\u0079");};func NewHandles ()*Handles {_cfafe :=&Handles {};_cfafe .CT_Handles =*NewCT_Handles ();return _cfafe };func (_gfefbb *CT_Shape )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_geaedf :=range start .Attr {if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_dffad ,_gcce :=_f .ParseInt (_geaedf .Value ,10,64);if _gcce !=nil {return _gcce ;};_gfefbb .RegroupidAttr =&_dffad ;continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_gfefbb .DoubleclicknotifyAttr .UnmarshalXMLAttr (_geaedf );continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u0063\u006c\u0069\u0070"{_gfefbb .ClipAttr .UnmarshalXMLAttr (_geaedf );continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_gfefbb .ButtonAttr .UnmarshalXMLAttr (_geaedf );continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_gfefbb .UserhiddenAttr .UnmarshalXMLAttr (_geaedf );continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gfefbb .BulletAttr .UnmarshalXMLAttr (_geaedf );continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u0067f\u0078\u0064\u0061\u0074\u0061"{_ddee ,_ecdbe :=_geaedf .Value ,error (nil );if _ecdbe !=nil {return _ecdbe ;};_gfefbb .GfxdataAttr =&_ddee ;continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u0068\u0072"{_gfefbb .HrAttr .UnmarshalXMLAttr (_geaedf );continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_geaedf .Name .Local =="\u006f\u006c\u0065"{_gfefbb .OleAttr .UnmarshalXMLAttr (_geaedf );continue ;};if _geaedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Oval and its children
|
|
|
|
func (_dgec *CT_Oval )Validate ()error {return _dgec .ValidateWithPath ("\u0043T\u005f\u004f\u0076\u0061\u006c");};func NewOfcSignatureline ()*OfcSignatureline {_bccefb :=&OfcSignatureline {};_bccefb .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();return _bccefb ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcColumn and its children
|
|
|
|
func (_dfac *OfcColumn )Validate ()error {return _dfac .ValidateWithPath ("\u004ff\u0063\u0043\u006f\u006c\u0075\u006dn");};func NewCT_Path ()*CT_Path {_cfbcf :=&CT_Path {};return _cfbcf };func (_eegca *OfcTop )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0074o\u0070";return _eegca .OfcCT_StrokeChild .MarshalXML (e ,start );};func (_gaecfc *OfcShapelayout )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gaecfc .OfcCT_ShapeLayout =*NewOfcCT_ShapeLayout ();for _ ,_ffcff :=range start .Attr {if _ffcff .Name .Local =="\u0065\u0078\u0074"{_gaecfc .ExtAttr .UnmarshalXMLAttr (_ffcff );continue ;};};_dfgca :for {_egbcc ,_fgfdc :=d .Token ();if _fgfdc !=nil {return _fgfdc ;};switch _bcfgfc :=_egbcc .(type ){case _c .StartElement :switch _bcfgfc .Name {case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0069\u0064\u006da\u0070"}:_gaecfc .Idmap =NewOfcCT_IdMap ();if _fafga :=d .DecodeElement (_gaecfc .Idmap ,&_bcfgfc );_fafga !=nil {return _fafga ;};case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u0067r\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065"}:_gaecfc .Regrouptable =NewOfcCT_RegroupTable ();if _fgaab :=d .DecodeElement (_gaecfc .Regrouptable ,&_bcfgfc );_fgaab !=nil {return _fgaab ;};case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Arc and its children
|
|
|
|
func (_aaba *CT_Arc )Validate ()error {return _aaba .ValidateWithPath ("\u0043\u0054\u005f\u0041\u0072\u0063");};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 _fc .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _fc .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _fc .ST_TrueFalse ;ButtonAttr _fc .ST_TrueFalse ;UserhiddenAttr _fc .ST_TrueFalse ;BulletAttr _fc .ST_TrueFalse ;HrAttr _fc .ST_TrueFalse ;HrstdAttr _fc .ST_TrueFalse ;HrnoshadeAttr _fc .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _fc .ST_TrueFalse ;AllowoverlapAttr _fc .ST_TrueFalse ;UserdrawnAttr _fc .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _fc .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _fc .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _fc .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _fc .ST_TrueFalse ;OleiconAttr _fc .ST_TrueFalse ;OleAttr _fc .ST_TrueFalseBlank ;PreferrelativeAttr _fc .ST_TrueFalse ;CliptowrapAttr _fc .ST_TrueFalse ;ClipAttr _fc .ST_TrueFalse ;SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _fc .ST_TrueFalse ;BilevelAttr _fc .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Handles and its children, prefixing error messages with path
|
|
|
|
func (_fdfdc *CT_Handles )ValidateWithPath (path string )error {for _bcgbg ,_fcdg :=range _fdfdc .H {if _aegd :=_fcdg .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002f\u0048\u005b\u0025\u0064\u005d",path ,_bcgbg ));_aegd !=nil {return _aegd ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Line and its children
|
|
|
|
func (_gbgec *Line )Validate ()error {return _gbgec .ValidateWithPath ("\u004c\u0069\u006e\u0065")};func NewOfcCT_Extrusion ()*OfcCT_Extrusion {_cgdgg :=&OfcCT_Extrusion {};return _cgdgg };func (_adgb *CT_Background )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bdec :=range start .Attr {if _bdec .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdec .Name .Local =="\u0062\u0077\u006d\u006f\u0064\u0065"{_adgb .BwmodeAttr .UnmarshalXMLAttr (_bdec );continue ;};if _bdec .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdec .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_adgb .BwpureAttr .UnmarshalXMLAttr (_bdec );continue ;};if _bdec .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdec .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_adgb .BwnormalAttr .UnmarshalXMLAttr (_bdec );continue ;};if _bdec .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdec .Name .Local =="\u0074\u0061r\u0067\u0065\u0074s\u0063\u0072\u0065\u0065\u006e\u0073\u0069\u007a\u0065"{_adgb .TargetscreensizeAttr .UnmarshalXMLAttr (_bdec );continue ;};if _bdec .Name .Local =="\u0069\u0064"{_cgbb ,_gfgg :=_bdec .Value ,error (nil );if _gfgg !=nil {return _gfgg ;};_adgb .IdAttr =&_cgbb ;continue ;};if _bdec .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_adgb .FilledAttr .UnmarshalXMLAttr (_bdec );continue ;};if _bdec .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_cfaga ,_gbge :=_bdec .Value ,error (nil );if _gbge !=nil {return _gbge ;};_adgb .FillcolorAttr =&_cfaga ;continue ;};};_cedge :for {_cfcc ,_cedc :=d .Token ();if _cedc !=nil {return _cedc ;};switch _gdgc :=_cfcc .(type ){case _c .StartElement :switch _gdgc .Name {case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_adgb .Fill =NewFill ();if _ffcf :=d .DecodeElement (_adgb .Fill ,&_gdgc );_ffcf !=nil {return _ffcf ;};default:_ac .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073up\u0070\u006f\u0072\u0074\u0065\u0064 \u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u0042a\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064 \u0025\u0076",_gdgc .Name );if _agdg :=d .Skip ();_agdg !=nil {return _agdg ;};};case _c .EndElement :break _cedge ;case _c .CharData :};};return nil ;};func (_ebcb OfcST_InsetMode )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_fecfb :=_c .Attr {};_fecfb .Name =name ;switch _ebcb {case OfcST_InsetModeUnset :_fecfb .Value ="";case OfcST_InsetModeAuto :_fecfb .Value ="\u0061\u0075\u0074\u006f";case OfcST_InsetModeCustom :_fecfb .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _fecfb ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeLayout and its children, prefixing error messages with path
|
|
|
|
func (_aefb *OfcCT_ShapeLayout )ValidateWithPath (path string )error {if _aefb .Idmap !=nil {if _bdfgb :=_aefb .Idmap .ValidateWithPath (path +"\u002f\u0049\u0064\u006d\u0061\u0070");_bdfgb !=nil {return _bdfgb ;};};if _aefb .Regrouptable !=nil {if _dgbdd :=_aefb .Regrouptable .ValidateWithPath (path +"\u002f\u0052\u0065\u0067\u0072\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065");_dgbdd !=nil {return _dgbdd ;};};if _aefb .Rules !=nil {if _dgadb :=_aefb .Rules .ValidateWithPath (path +"\u002f\u0052\u0075\u006c\u0065\u0073");_dgadb !=nil {return _dgadb ;};};if _dgcgag :=_aefb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_dgcgag !=nil {return _dgcgag ;};return nil ;};const (ST_StrokeEndCapUnset ST_StrokeEndCap =0;ST_StrokeEndCapFlat ST_StrokeEndCap =1;ST_StrokeEndCapSquare ST_StrokeEndCap =2;ST_StrokeEndCapRound ST_StrokeEndCap =3;);func (_gfgca OfcST_FillType )ValidateWithPath (path string )error {switch _gfgca {case 0,1,2,3,4,5,6,7,8,9:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_gfgca ));};return nil ;};func (_ddeae *OfcST_InsetMode )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gcccb ,_bbgbb :=d .Token ();if _bbgbb !=nil {return _bbgbb ;};if _ecadf ,_bgbac :=_gcccb .(_c .EndElement );_bgbac &&_ecadf .Name ==start .Name {*_ddeae =1;return nil ;};if _egeb ,_baaca :=_gcccb .(_c .CharData );!_baaca {return _fb .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",_gcccb );}else {switch string (_egeb ){case "":*_ddeae =0;case "\u0061\u0075\u0074\u006f":*_ddeae =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_ddeae =2;};};_gcccb ,_bbgbb =d .Token ();if _bbgbb !=nil {return _bbgbb ;};if _bfcg ,_aaebd :=_gcccb .(_c .EndElement );_aaebd &&_bfcg .Name ==start .Name {return nil ;};return _fb .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",_gcccb );};type Handles struct{CT_Handles };func (_caadg *OfcST_How )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_caadg =0;case "\u0074\u006f\u0070":*_caadg =1;case "\u006d\u0069\u0064\u0064\u006c\u0065":*_caadg =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_caadg =3;case "\u006c\u0065\u0066\u0074":*_caadg =4;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_caadg =5;case "\u0072\u0069\u0067h\u0074":*_caadg =6;};return nil ;};func NewCT_PolyLine ()*CT_PolyLine {_eagdce :=&CT_PolyLine {};return _eagdce };func (_gfad *OfcComplex )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0
|
2022-02-25 19:20:45 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Entry and its children, prefixing error messages with path
|
|
|
|
func (_ddcef *OfcCT_Entry )ValidateWithPath (path string )error {return nil };
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Background and its children, prefixing error messages with path
|
|
|
|
func (_bfdc *CT_Background )ValidateWithPath (path string )error {if _dddg :=_bfdc .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_dddg !=nil {return _dddg ;};if _acaa :=_bfdc .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_acaa !=nil {return _acaa ;};if _dcef :=_bfdc .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_dcef !=nil {return _dcef ;};if _bcgb :=_bfdc .TargetscreensizeAttr .ValidateWithPath (path +"/\u0054\u0061\u0072\u0067et\u0073c\u0072\u0065\u0065\u006e\u0073i\u007a\u0065\u0041\u0074\u0074\u0072");_bcgb !=nil {return _bcgb ;};if _bfdc .Fill !=nil {if _cbcfa :=_bfdc .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_cbcfa !=nil {return _cbcfa ;};};if _bgac :=_bfdc .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bgac !=nil {return _bgac ;};return nil ;};func (_gaec *OfcCT_ClipPath )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fbbaf :=range start .Attr {if _fbbaf .Name .Local =="\u0076"{_aagb ,_adbea :=_fbbaf .Value ,error (nil );if _adbea !=nil {return _adbea ;};_gaec .VAttr =_aagb ;continue ;};};for {_eedcb ,_ecegf :=d .Token ();if _ecegf !=nil {return _fb .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",_ecegf );};if _cdeaa ,_cacdg :=_eedcb .(_c .EndElement );_cacdg &&_cdeaa .Name ==start .Name {break ;};};return nil ;};func (_bedf *CT_Handles )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_eccc :for {_fadgg ,_cffce :=d .Token ();if _cffce !=nil {return _cffce ;};switch _fffb :=_fadgg .(type ){case _c .StartElement :switch _fffb .Name {case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0068"}:_fdgc :=NewCT_H ();if _efdg :=d .DecodeElement (_fdgc ,&_fffb );_efdg !=nil {return _efdg ;};_bedf .H =append (_bedf .H ,_fdgc );default:_ac .Log .Debug ("\u0073k\u0069\u0070p\u0069\u006e\u0067 \u0075\u006e\u0073\u0075\u0070\u0070\u006fr\u0074\u0065\u0064\u0020\u0065\u006ce\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005fH\u0061\u006e\u0064\u006c\u0065\u0073\u0020\u0025\u0076",_fffb .Name );if _gebd :=d .Skip ();_gebd !=nil {return _gebd ;};};case _c .EndElement :break _eccc ;case _c .CharData :};};return nil ;};func (_caddg OfcST_OLEDrawAspect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_caddg .String (),start );};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_OfficeCoreAttributes and its children
|
|
|
|
func (_bed *AG_OfficeCoreAttributes )Validate ()error {return _bed .ValidateWithPath ("\u0041\u0047\u005fOf\u0066\u0069\u0063\u0065\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};func (_fafec OfcST_Angle )String ()string {switch _fafec {case 0:return "";case 1:return "\u0061\u006e\u0079";case 2:return "\u0033\u0030";case 3:return "\u0034\u0035";case 4:return "\u0036\u0030";case 5:return "\u0039\u0030";case 6:return "\u0061\u0075\u0074\u006f";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_ImageData and its children
|
|
|
|
func (_aefge *CT_ImageData )Validate ()error {return _aefge .ValidateWithPath ("\u0043\u0054\u005fI\u006d\u0061\u0067\u0065\u0044\u0061\u0074\u0061");};func (_bcca *AG_ShapeAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _bcca .OpacityAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_fb .Sprintf ("\u0025\u0076",*_bcca .OpacityAttr )});};if _bcca .StrokedAttr !=_fc .ST_TrueFalseUnset {_bedb ,_dbaf :=_bcca .StrokedAttr .MarshalXMLAttr (_c .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _dbaf !=nil {return _dbaf ;};start .Attr =append (start .Attr ,_bedb );};if _bcca .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_bcca .StrokecolorAttr )});};if _bcca .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_bcca .StrokeweightAttr )});};if _bcca .InsetpenAttr !=_fc .ST_TrueFalseUnset {_acbg ,_feef :=_bcca .InsetpenAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _feef !=nil {return _feef ;};start .Attr =append (start .Attr ,_acbg );};if _bcca .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_fb .Sprintf ("\u0025\u0076",*_bcca .ChromakeyAttr )});};if _bcca .FilledAttr !=_fc .ST_TrueFalseUnset {_cdc ,_bafc :=_bcca .FilledAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _bafc !=nil {return _bafc ;};start .Attr =append (start .Attr ,_cdc );};if _bcca .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_fb .Sprintf ("\u0025\u0076",*_bcca .FillcolorAttr )});};return nil ;};const (ST_ExtUnset ST_Ext =0;ST_ExtView ST_Ext =1;ST_ExtEdit ST_Ext =2;ST_ExtBackwardCompatible ST_Ext =3;);func (_dfbfg ST_StrokeArrowWidth )Validate ()error {return _dfbfg .ValidateWithPath ("")};type OfcCT_Complex struct{ExtAttr ST_Ext ;};func (_daegcb OfcST_How )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gafac :=_c .Attr {};_gafac .Name =name ;switch _daegcb {case OfcST_HowUnset :_gafac .Value ="";case OfcST_HowTop :_gafac .Value ="\u0074\u006f\u0070";case OfcST_HowMiddle :_gafac .Value ="\u006d\u0069\u0064\u0064\u006c\u0065";case OfcST_HowBottom :_gafac .Value ="\u0062\u006f\u0074\u0074\u006f\u006d";case OfcST_HowLeft :_gafac .Value ="\u006c\u0065\u0066\u0074";case OfcST_HowCenter :_gafac .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";case OfcST_HowRight :_gafac .Value ="\u0072\u0069\u0067h\u0074";};return _gafac ,nil ;};func (_cbgeb *OfcDiagram )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cbgeb .OfcCT_Diagram =*NewOfcCT_Diagram ();for _ ,_aagbb :=range start .Attr {if _aagbb .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_faadb ,_gdcdf :=_f .ParseInt (_aagbb .Value ,10,64);if _gdcdf !=nil {return _gdcdf ;};_cbgeb .DgmstyleAttr =&_faadb ;continue ;};if _aagbb .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_cbgeb .AutoformatAttr .UnmarshalXMLAttr (_aagbb );continue ;};if _aagbb .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_cbgeb .ReverseAttr .UnmarshalXMLAttr (_aagbb );continue ;};if _aagbb .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_cbgeb .AutolayoutAttr .UnmarshalXMLAttr (_aagbb );continue ;};if _aagbb .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_bagcc ,_dbabe :=_f .ParseInt (_aagbb .Value ,10,64);if _dbabe !=nil {return _dbabe ;};_cbgeb .DgmscalexAttr =&_bagcc ;continue ;};if _aagbb .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_cggcf ,_bbged :=_f .ParseInt (_aagbb .Value ,10,64);if _bbged !=nil {return _bbged ;};_cbgeb .DgmscaleyAttr =&_cggcf
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2023-05-26 09:49:04 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_R and its children, prefixing error messages with path
|
2023-06-10 07:12:37 +00:00
|
|
|
func (_cfcg *OfcCT_R )ValidateWithPath (path string )error {if _dece :=_cfcg .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_dece !=nil {return _dece ;};if _edfcd :=_cfcg .HowAttr .ValidateWithPath (path +"\u002f\u0048\u006f\u0077\u0041\u0074\u0074\u0072");_edfcd !=nil {return _edfcd ;};for _eaabd ,_aecfac :=range _cfcg .Proxy {if _dgde :=_aecfac .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fP\u0072\u006f\u0078\u0079\u005b\u0025\u0064\u005d",path ,_eaabd ));_dgde !=nil {return _dgde ;};};return nil ;};func (_afeb *AG_Ext )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_afeb .ExtAttr =ST_Ext (1);for _ ,_egca :=range start .Attr {if _egca .Name .Local =="\u0065\u0078\u0074"{_afeb .ExtAttr .UnmarshalXMLAttr (_egca );continue ;};};for {_dceae ,_edb :=d .Token ();if _edb !=nil {return _fb .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0041G\u005f\u0045x\u0074\u003a\u0020\u0025\u0073",_edb );};if _fegf ,_dcab :=_dceae .(_c .EndElement );_dcab &&_fegf .Name ==start .Name {break ;};};return nil ;};func (_ggbea ST_EditAs )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_ggbea .String (),start );};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 _fc .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _fc .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _fc .ST_TrueFalse ;ButtonAttr _fc .ST_TrueFalse ;UserhiddenAttr _fc .ST_TrueFalse ;BulletAttr _fc .ST_TrueFalse ;HrAttr _fc .ST_TrueFalse ;HrstdAttr _fc .ST_TrueFalse ;HrnoshadeAttr _fc .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _fc .ST_TrueFalse ;AllowoverlapAttr _fc .ST_TrueFalse ;UserdrawnAttr _fc .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _fc .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _fc .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _fc .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _fc .ST_TrueFalse ;OleiconAttr _fc .ST_TrueFalse ;OleAttr _fc .ST_TrueFalseBlank ;PreferrelativeAttr _fc .ST_TrueFalse ;CliptowrapAttr _fc .ST_TrueFalse ;ClipAttr _fc .ST_TrueFalse ;};func NewAG_OfficeShapeAttributes ()*AG_OfficeShapeAttributes {_gfda :=&AG_OfficeShapeAttributes {};return _gfda ;};func (_abeb ST_StrokeArrowLength )ValidateWithPath (path string )error {switch _abeb {case 0,1,2,3:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_abeb ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeDefaults and its children, prefixing error messages with path
|
|
|
|
func (_gfae *OfcCT_ShapeDefaults )ValidateWithPath (path string )error {if _fgbcf :=_gfae .FillAttr .ValidateWithPath (path +"\u002fF\u0069\u006c\u006c\u0041\u0074\u0074r");_fgbcf !=nil {return _fgbcf ;};if _dfdcb :=_gfae .StrokeAttr .ValidateWithPath (path +"/\u0053\u0074\u0072\u006f\u006b\u0065\u0041\u0074\u0074\u0072");_dfdcb !=nil {return _dfdcb ;};if _geced :=_gfae .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_geced !=nil {return _geced ;};if _gfae .Fill !=nil {if _bdege :=_gfae .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_bdege !=nil {return _bdege ;};};if _gfae .Stroke !=nil {if _bbeff :=_gfae .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_bbeff !=nil {return _bbeff ;};};if _gfae .Textbox !=nil {if _fcba :=_gfae .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_fcba !=nil {return _fcba ;};};if _gfae .Shadow !=nil {if _ceadg :=_gfae .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_ceadg !=nil {return _ceadg ;};};if _gfae .Skew !=nil {if _dgef :=_gfae .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_dgef !=nil {return _dgef ;};};if _gfae .Extrusion !=nil {if _fddbg :=_gfae .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_fddbg !=nil {return _fddbg ;};};if _gfae .Callout !=nil {if _edcda :=_gfae .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_edcda !=nil {return _edcda ;};};if _gfae .Lock !=nil {if _cafadg :=_gfae .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_cafadg !=nil {return _cafadg ;};};if _gfae .Colormru !=nil {if _fbgcd :=_gfae .Colormru .ValidateWithPath (path +"\u002fC\u006f\u006c\u006f\u0072\u006d\u0072u");_fbgcd !=nil {return _fbgcd ;};};if _gfae .Colormenu !=nil {if _efebc :=_gfae .Colormenu .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075");_efebc !=nil {return _efebc ;};};if _ebede :=_gfae .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ebede !=nil {return _ebede ;};return nil ;};func NewCT_Background ()*CT_Background {_bcbbb :=&CT_Background {};return _bcbbb };type OfcColumn struct{OfcCT_StrokeChild };const (OfcST_ExtrusionTypeUnset OfcST_ExtrusionType =0;OfcST_ExtrusionTypePerspective OfcST_ExtrusionType =1;OfcST_ExtrusionTypeParallel OfcST_ExtrusionType =2;);func NewCurve ()*Curve {_feega :=&Curve {};_feega .CT_Curve =*NewCT_Curve ();return _feega };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-05-26 09:49:04 +00:00
|
|
|
// Validate validates the OfcCT_ClipPath and its children
|
2023-06-10 07:12:37 +00:00
|
|
|
func (_ggcda *OfcCT_ClipPath )Validate ()error {return _ggcda .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006c\u0069p\u0050\u0061\u0074\u0068");};func (_edgca OfcST_RType )Validate ()error {return _edgca .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcSignatureline and its children, prefixing error messages with path
|
|
|
|
func (_bcaeg *OfcSignatureline )ValidateWithPath (path string )error {if _adbgg :=_bcaeg .OfcCT_SignatureLine .ValidateWithPath (path );_adbgg !=nil {return _adbgg ;};return nil ;};func (_dbgb *Background )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dbgb .CT_Background =*NewCT_Background ();for _ ,_eecb :=range start .Attr {if _eecb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eecb .Name .Local =="\u0062\u0077\u006d\u006f\u0064\u0065"{_dbgb .BwmodeAttr .UnmarshalXMLAttr (_eecb );continue ;};if _eecb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eecb .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_dbgb .BwpureAttr .UnmarshalXMLAttr (_eecb );continue ;};if _eecb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eecb .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_dbgb .BwnormalAttr .UnmarshalXMLAttr (_eecb );continue ;};if _eecb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eecb .Name .Local =="\u0074\u0061r\u0067\u0065\u0074s\u0063\u0072\u0065\u0065\u006e\u0073\u0069\u007a\u0065"{_dbgb .TargetscreensizeAttr .UnmarshalXMLAttr (_eecb );continue ;};if _eecb .Name .Local =="\u0069\u0064"{_eeba ,_acga :=_eecb .Value ,error (nil );if _acga !=nil {return _acga ;};_dbgb .IdAttr =&_eeba ;continue ;};if _eecb .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_dbgb .FilledAttr .UnmarshalXMLAttr (_eecb );continue ;};if _eecb .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_dfaeb ,_bdfe :=_eecb .Value ,error (nil );if _bdfe !=nil {return _bdfe ;};_dbgb .FillcolorAttr =&_dfaeb ;continue ;};};_acbb :for {_agba ,_fcbe :=d .Token ();if _fcbe !=nil {return _fcbe ;};switch _ffeg :=_agba .(type ){case _c .StartElement :switch _ffeg .Name {case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_dbgb .Fill =NewFill ();if _eeff :=d .DecodeElement (_dbgb .Fill ,&_ffeg );_eeff !=nil {return _eeff ;};default:_ac .Log .Debug ("\u0073k\u0069\u0070p\u0069\u006e\u0067 \u0075\u006e\u0073\u0075\u0070\u0070\u006fr\u0074\u0065\u0064\u0020\u0065\u006ce\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0042\u0061\u0063k\u0067\u0072\u006f\u0075\u006e\u0064\u0020\u0025\u0076",_ffeg .Name );if _abdf :=d .Skip ();_abdf !=nil {return _abdf ;};};case _c .EndElement :break _acbb ;case _c .CharData :};};return nil ;};func (_cddge OfcST_ExtrusionType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gffde :=_c .Attr {};_gffde .Name =name ;switch _cddge {case OfcST_ExtrusionTypeUnset :_gffde .Value ="";case OfcST_ExtrusionTypePerspective :_gffde .Value ="p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065";case OfcST_ExtrusionTypeParallel :_gffde .Value ="\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c";};return _gffde ,nil ;};func NewCT_Shadow ()*CT_Shadow {_adda :=&CT_Shadow {};return _adda };func (_fdede OfcST_ExtrusionType )Validate ()error {return _fdede .ValidateWithPath ("")};func (_df *AG_Adj )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _df .AdjAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u0064\u006a"},Value :_fb .Sprintf ("\u0025\u0076",*_df .AdjAttr )});};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcSignatureline and its children
|
|
|
|
func (_egcff *OfcSignatureline )Validate ()error {return _egcff .ValidateWithPath ("\u004f\u0066c\u0053\u0069\u0067n\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065");};type AG_Type struct{TypeAttr *string ;};type OfcST_How byte ;func (_cdeag *OfcShapelayout )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0073\u0068\u0061\u0070\u0065\u006c\u0061\u0079\u006f\u0075\u0074";return _cdeag .OfcCT_ShapeLayout .MarshalXML (e ,start );};func (_beagc OfcST_ConnectorType )String ()string {switch _beagc {case 0:return "";case 1:return "\u006e\u006f\u006e\u0065";case 2:return "\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074";case 3:return "\u0065\u006c\u0062o\u0077";case 4:return "\u0063\u0075\u0072\u0076\u0065\u0064";};return "";};type CT_Stroke struct{Left *OfcLeft ;Top *OfcTop ;Right *OfcRight ;Bottom *OfcBottom ;Column *OfcColumn ;IdAttr *string ;OnAttr _fc .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 _fc .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 _fc .ST_TrueFalse ;RIdAttr *string ;InsetpenAttr _fc .ST_TrueFalse ;RelidAttr *string ;};type AG_Style struct{StyleAttr *string ;};func (_edfd *CT_PolyLine )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cedb :=range start .Attr {if _cedb .Name .Space =="\u0075\u0072\u006e
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcSkew and its children
|
|
|
|
func (_gfdg *OfcSkew )Validate ()error {return _gfdg .ValidateWithPath ("\u004ff\u0063\u0053\u006b\u0065\u0077");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_F and its children, prefixing error messages with path
|
|
|
|
func (_edgd *CT_F )ValidateWithPath (path string )error {return nil };func (_edddd *CT_Shape )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076:\u0073\u0068\u0061\u0070\u0065";};if _edddd .GfxdataAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u0067\u0066\u0078\u0064\u0061\u0074a"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .GfxdataAttr )});};if _edddd .EquationxmlAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"e\u0071\u0075\u0061\u0074\u0069\u006f\u006e\u0078\u006d\u006c"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .EquationxmlAttr )});};if _edddd .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .HrefAttr )});};if _edddd .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .TargetAttr )});};if _edddd .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .ClassAttr )});};if _edddd .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .TitleAttr )});};if _edddd .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .AltAttr )});};if _edddd .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .CoordsizeAttr )});};if _edddd .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .CoordoriginAttr )});};if _edddd .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .WrapcoordsAttr )});};if _edddd .PrintAttr !=_fc .ST_TrueFalseUnset {_ffcg ,_cfca :=_edddd .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _cfca !=nil {return _cfca ;};start .Attr =append (start .Attr ,_ffcg );};if _edddd .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .IdAttr )});};if _edddd .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .StyleAttr )});};if _edddd .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .SpidAttr )});};if _edddd .OnedAttr !=_fc .ST_TrueFalseUnset {_aeafc ,_dcaed :=_edddd .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _dcaed !=nil {return _dcaed ;};start .Attr =append (start .Attr ,_aeafc );};if _edddd .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_edddd .RegroupidAttr )});};if _edddd .DoubleclicknotifyAttr !=_fc .ST_TrueFalseUnset {_acbbe ,_cddd :=_edddd .DoubleclicknotifyAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _cddd !=nil {return _cddd ;};start .Attr =append (start .Attr ,_acbbe );};if _edddd .ButtonAttr !=_fc .ST_TrueFalseUnset {_bcfca ,_cbafg :=_edddd .ButtonAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _cbafg !=nil {return _cbafg ;};start .Attr =append (start .Attr ,_bcfca );};if _ed
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Group and its children, prefixing error messages with path
|
|
|
|
func (_eaeef *CT_Group )ValidateWithPath (path string )error {if _dcceg :=_eaeef .EditasAttr .ValidateWithPath (path +"/\u0045\u0064\u0069\u0074\u0061\u0073\u0041\u0074\u0074\u0072");_dcceg !=nil {return _dcceg ;};for _gfea ,_gbga :=range _eaeef .Group {if _cfge :=_gbga .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fG\u0072\u006f\u0075\u0070\u005b\u0025\u0064\u005d",path ,_gfea ));_cfge !=nil {return _cfge ;};};for _ddgf ,_eddcb :=range _eaeef .Shape {if _edbea :=_eddcb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fS\u0068\u0061\u0070\u0065\u005b\u0025\u0064\u005d",path ,_ddgf ));_edbea !=nil {return _edbea ;};};for _fbgf ,_cebb :=range _eaeef .Shapetype {if _aebf :=_cebb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073/\u0053\u0068\u0061p\u0065\u0074\u0079\u0070\u0065\u005b\u0025\u0064\u005d",path ,_fbgf ));_aebf !=nil {return _aebf ;};};for _bedc ,_faggeb :=range _eaeef .Arc {if _fegc :=_faggeb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002f\u0041\u0072\u0063\u005b\u0025\u0064\u005d",path ,_bedc ));_fegc !=nil {return _fegc ;};};for _gafd ,_cefed :=range _eaeef .Curve {if _ggacgc :=_cefed .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fC\u0075\u0072\u0076\u0065\u005b\u0025\u0064\u005d",path ,_gafd ));_ggacgc !=nil {return _ggacgc ;};};for _caaef ,_dcfga :=range _eaeef .Image {if _gfec :=_dcfga .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fI\u006d\u0061\u0067\u0065\u005b\u0025\u0064\u005d",path ,_caaef ));_gfec !=nil {return _gfec ;};};for _ecc ,_cecf :=range _eaeef .Line {if _egede :=_cecf .ValidateWithPath (_fb .Sprintf ("%\u0073\u002f\u004c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_ecc ));_egede !=nil {return _egede ;};};for _dbdf ,_becgc :=range _eaeef .Oval {if _gbdaf :=_becgc .ValidateWithPath (_fb .Sprintf ("%\u0073\u002f\u004f\u0076\u0061\u006c\u005b\u0025\u0064\u005d",path ,_dbdf ));_gbdaf !=nil {return _gbdaf ;};};for _afafc ,_cdce :=range _eaeef .Polyline {if _daegc :=_cdce .ValidateWithPath (_fb .Sprintf ("\u0025s\u002fP\u006f\u006c\u0079\u006c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_afafc ));_daegc !=nil {return _daegc ;};};for _bbef ,_bedd :=range _eaeef .Rect {if _cegc :=_bedd .ValidateWithPath (_fb .Sprintf ("%\u0073\u002f\u0052\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_bbef ));_cegc !=nil {return _cegc ;};};for _aaac ,_eagb :=range _eaeef .Roundrect {if _bbda :=_eagb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073/\u0052\u006f\u0075n\u0064\u0072\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_aaac ));_bbda !=nil {return _bbda ;};};for _fedb ,_affd :=range _eaeef .Diagram {if _aefd :=_affd .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002f\u0044\u0069\u0061\u0067\u0072\u0061m\u005b\u0025\u0064\u005d",path ,_fedb ));_aefd !=nil {return _aefd ;};};for _fcage ,_abdg :=range _eaeef .EG_ShapeElements {if _beag :=_abdg .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fcage ));_beag !=nil {return _beag ;};};if _gccbb :=_eaeef .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_gccbb !=nil {return _gccbb ;};if _edff :=_eaeef .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_edff !=nil {return _edff ;};if _ddcf :=_eaeef .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_ddcf !=nil {return _ddcf ;};if _aabc :=_eaeef .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_aabc !=nil {return _aabc ;};if _abgdf :=_eaeef .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_abgdf !=nil {return _abgdf ;};if _egdbc :=_eaeef .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_egdbc !=nil {return _egdbc ;};if _fcad :=_eaeef .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Shapetype and its children
|
|
|
|
func (_gcbeb *CT_Shapetype )Validate ()error {return _gcbeb .ValidateWithPath ("\u0043\u0054\u005fS\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065");};func (_addgd *OfcCT_Diagram )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0064\u0069\u0061\u0067\u0072\u0061m";};if _addgd .DgmstyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_addgd .DgmstyleAttr )});};if _addgd .AutoformatAttr !=_fc .ST_TrueFalseUnset {_caea ,_fdffb :=_addgd .AutoformatAttr .MarshalXMLAttr (_c .Name {Local :"\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"});if _fdffb !=nil {return _fdffb ;};start .Attr =append (start .Attr ,_caea );};if _addgd .ReverseAttr !=_fc .ST_TrueFalseUnset {_bbag ,_dbbe :=_addgd .ReverseAttr .MarshalXMLAttr (_c .Name {Local :"\u0072e\u0076\u0065\u0072\u0073\u0065"});if _dbbe !=nil {return _dbbe ;};start .Attr =append (start .Attr ,_bbag );};if _addgd .AutolayoutAttr !=_fc .ST_TrueFalseUnset {_gagb ,_fcffd :=_addgd .AutolayoutAttr .MarshalXMLAttr (_c .Name {Local :"\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"});if _fcffd !=nil {return _fcffd ;};start .Attr =append (start .Attr ,_gagb );};if _addgd .DgmscalexAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"},Value :_fb .Sprintf ("\u0025\u0076",*_addgd .DgmscalexAttr )});};if _addgd .DgmscaleyAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"},Value :_fb .Sprintf ("\u0025\u0076",*_addgd .DgmscaleyAttr )});};if _addgd .DgmfontsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_addgd .DgmfontsizeAttr )});};if _addgd .ConstrainboundsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_addgd .ConstrainboundsAttr )});};if _addgd .DgmbasetextscaleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_addgd .DgmbasetextscaleAttr )});};if _addgd .ExtAttr !=ST_ExtUnset {_fegag ,_bfdcc :=_addgd .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _bfdcc !=nil {return _bfdcc ;};start .Attr =append (start .Attr ,_fegag );};e .EncodeToken (start );if _addgd .Relationtable !=nil {_gbdafg :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0072e\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065"}};e .EncodeElement (_addgd .Relationtable ,_gbdafg );};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};type AG_Adj struct{AdjAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Proxy and its children, prefixing error messages with path
|
|
|
|
func (_feccbc *OfcCT_Proxy )ValidateWithPath (path string )error {if _fefce :=_feccbc .StartAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0061\u0072\u0074\u0041\u0074\u0074\u0072");_fefce !=nil {return _fefce ;};if _cccce :=_feccbc .EndAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0041\u0074\u0074\u0072");_cccce !=nil {return _cccce ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_Ext and its children
|
|
|
|
func (_egdb *AG_Ext )Validate ()error {return _egdb .ValidateWithPath ("\u0041\u0047\u005f\u0045\u0078\u0074");};func (_ecdbc *Group )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ecdbc .CT_Group =*NewCT_Group ();for _ ,_abeee :=range start .Attr {if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_ecdbc .AllowincellAttr .UnmarshalXMLAttr (_abeee );continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ecdbc .BulletAttr .UnmarshalXMLAttr (_abeee );continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="\u0068\u0072"{_ecdbc .HrAttr .UnmarshalXMLAttr (_abeee );continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="\u006f\u006e\u0065\u0064"{_ecdbc .OnedAttr .UnmarshalXMLAttr (_abeee );continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_ecdbc .HralignAttr .UnmarshalXMLAttr (_abeee );continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="t\u0061\u0062\u006c\u0065\u006c\u0069\u006d\u0069\u0074\u0073"{_ffcge ,_ceeca :=_abeee .Value ,error (nil );if _ceeca !=nil {return _ceeca ;};_ecdbc .TablelimitsAttr =&_ffcge ;continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_abbeb ,_aaaab :=_f .ParseInt (_abeee .Value ,10,64);if _aaaab !=nil {return _aaaab ;};_ecdbc .RegroupidAttr =&_abbeb ;continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_bebaa ,_gbeb :=_abeee .Value ,error (nil );if _gbeb !=nil {return _gbeb ;};_ecdbc .BordertopcolorAttr =&_bebaa ;continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abeee .Name .Local =="\u0073\u0070\u0069\u0064"{_afgf ,_ebbg :=_abeee .Value ,error (nil );if _ebbg !=nil {return _ebbg ;};_ecdbc .SpidAttr =&_afgf ;continue ;};if _abeee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcShapedefaults and its children
|
|
|
|
func (_cfcgd *OfcShapedefaults )Validate ()error {return _cfcgd .ValidateWithPath ("\u004f\u0066c\u0053\u0068\u0061p\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};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 _fc .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _fc .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _fc .ST_TrueFalse ;ButtonAttr _fc .ST_TrueFalse ;UserhiddenAttr _fc .ST_TrueFalse ;BulletAttr _fc .ST_TrueFalse ;HrAttr _fc .ST_TrueFalse ;HrstdAttr _fc .ST_TrueFalse ;HrnoshadeAttr _fc .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _fc .ST_TrueFalse ;AllowoverlapAttr _fc .ST_TrueFalse ;UserdrawnAttr _fc .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;FilledAttr _fc .ST_TrueFalse ;FillcolorAttr *string ;};func (_efgd *CT_F )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0066";};if _efgd .EqnAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0065\u0071\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_efgd .EqnAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};type OfcCT_ColorMru struct{ColorsAttr *string ;ExtAttr ST_Ext ;};func NewAG_Style ()*AG_Style {_bdce :=&AG_Style {};return _bdce };func (_bdca OfcST_FillType )Validate ()error {return _bdca .ValidateWithPath ("")};func NewCT_Formulas ()*CT_Formulas {_cbdg :=&CT_Formulas {};return _cbdg };func (_ddcg *Handles )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _ddcg .CT_Handles .MarshalXML (e ,start );};func NewAG_CoreAttributes ()*AG_CoreAttributes {_cc :=&AG_CoreAttributes {};return _cc };type AG_CoreAttributes struct{HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _fc .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_ShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_adde *AG_ShapeAttributes )ValidateWithPath (path string )error {if _edf :=_adde .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_edf !=nil {return _edf ;};if _cdbf :=_adde .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_cdbf !=nil {return _cdbf ;};if _bdea :=_adde .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bdea !=nil {return _bdea ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_ColorMru and its children
|
|
|
|
func (_aeaae *OfcCT_ColorMru )Validate ()error {return _aeaae .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006co\u0072\u004d\u0072\u0075");};func (_dgfdf OfcST_ConnectorType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_ccccc :=_c .Attr {};_ccccc .Name =name ;switch _dgfdf {case OfcST_ConnectorTypeUnset :_ccccc .Value ="";case OfcST_ConnectorTypeNone :_ccccc .Value ="\u006e\u006f\u006e\u0065";case OfcST_ConnectorTypeStraight :_ccccc .Value ="\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074";case OfcST_ConnectorTypeElbow :_ccccc .Value ="\u0065\u006c\u0062o\u0077";case OfcST_ConnectorTypeCurved :_ccccc .Value ="\u0063\u0075\u0072\u0076\u0065\u0064";};return _ccccc ,nil ;};func NewCT_Shape ()*CT_Shape {_bfge :=&CT_Shape {};return _bfge };type OfcSkew struct{OfcCT_Skew };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Curve and its children, prefixing error messages with path
|
|
|
|
func (_aaccd *Curve )ValidateWithPath (path string )error {if _cfgaga :=_aaccd .CT_Curve .ValidateWithPath (path );_cfgaga !=nil {return _cfgaga ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcOLEObject and its children, prefixing error messages with path
|
|
|
|
func (_dbfef *OfcOLEObject )ValidateWithPath (path string )error {if _bacdb :=_dbfef .OfcCT_OLEObject .ValidateWithPath (path );_bacdb !=nil {return _bacdb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_IdMap and its children, prefixing error messages with path
|
|
|
|
func (_caddb *OfcCT_IdMap )ValidateWithPath (path string )error {if _cbdgd :=_caddb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_cbdgd !=nil {return _cbdgd ;};return nil ;};func NewOval ()*Oval {_gbbbc :=&Oval {};_gbbbc .CT_Oval =*NewCT_Oval ();return _gbbbc };func NewShape ()*Shape {_bedgd :=&Shape {};_bedgd .CT_Shape =*NewCT_Shape ();return _bedgd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Imagedata and its children
|
|
|
|
func (_gbbaf *Imagedata )Validate ()error {return _gbbaf .ValidateWithPath ("\u0049m\u0061\u0067\u0065\u0064\u0061\u0074a");};func NewCT_TextPath ()*CT_TextPath {_cecgd :=&CT_TextPath {};return _cecgd };func (_cbbef *Stroke )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _cbbef .CT_Stroke .MarshalXML (e ,start );};func (_gafb *OfcEquationxml )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0065\u0071\u0075\u0061\u0074\u0069\u006f\u006e\u0078\u006d\u006c";return _gafb .OfcCT_EquationXml .MarshalXML (e ,start );};func (_dfdff OfcST_ConnectType )String ()string {switch _dfdff {case 0:return "";case 1:return "\u006e\u006f\u006e\u0065";case 2:return "\u0072\u0065\u0063\u0074";case 3:return "\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073";case 4:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};func (_fgfe *AG_Path )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _fgfe .PathAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u0061\u0074\u0068"},Value :_fb .Sprintf ("\u0025\u0076",*_fgfe .PathAttr )});};return nil ;};func (_bdcc *CT_Formulas )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fadg :for {_defd ,_bdccf :=d .Token ();if _bdccf !=nil {return _bdccf ;};switch _bafa :=_defd .(type ){case _c .StartElement :switch _bafa .Name {case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066"}:_fec :=NewCT_F ();if _cddff :=d .DecodeElement (_fec ,&_bafa );_cddff !=nil {return _cddff ;};_bdcc .F =append (_bdcc .F ,_fec );default:_ac .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\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_H and its children
|
|
|
|
func (_fcda *CT_H )Validate ()error {return _fcda .ValidateWithPath ("\u0043\u0054\u005f\u0048")};func (_aagg *Group )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _aagg .CT_Group .MarshalXML (e ,start );};func (_fege *CT_Fill )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fgea :=range start .Attr {if _fgea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgea .Name .Local =="\u0064\u0065t\u0065\u0063\u0074m\u006f\u0075\u0073\u0065\u0063\u006c\u0069\u0063\u006b"{_fege .DetectmouseclickAttr .UnmarshalXMLAttr (_fgea );continue ;};if _fgea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgea .Name .Local =="\u0072\u0065\u006ci\u0064"{_caab ,_dcfc :=_fgea .Value ,error (nil );if _dcfc !=nil {return _dcfc ;};_fege .RelidAttr =&_caab ;continue ;};if _fgea .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"&&_fgea .Name .Local =="\u0069\u0064"||_fgea .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"&&_fgea .Name .Local =="\u0069\u0064"{_ffffg ,_dcca :=_fgea .Value ,error (nil );if _dcca !=nil {return _dcca ;};_fege .IdAttr =&_ffffg ;continue ;};if _fgea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgea .Name .Local =="\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u0032"{_fccg ,_cbcb :=_fgea .Value ,error (nil );if _cbcb !=nil {return _cbcb ;};_fege .Opacity2Attr =&_fccg ;continue ;};if _fgea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgea .Name .Local =="\u0074\u0069\u0074l\u0065"{_fgaf ,_debg :=_fgea .Value ,error (nil );if _debg !=nil {return _debg ;};_fege .TitleAttr =&_fgaf ;continue ;};if _fgea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgea .Name .Local =="\u0068\u0072\u0065\u0066"{_ccgc ,_gabe :=_fgea .Value ,error (nil );if _gabe !=nil {return _gabe ;};_fege .HrefAttr =&_ccgc ;continue ;};if _fgea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgea .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_daab ,_efffa :=_fgea .Value ,error (nil );if _efffa !=nil {return _efffa ;};_fege .AlthrefAttr =&_daab ;continue ;};if _fgea .Name .Local =="\u0061\u006c\u0069\u0067\u006e\u0073\u0068\u0061\u0070\u0065"{_fege .AlignshapeAttr .UnmarshalXMLAttr (_fgea );continue ;};if _fgea .Name .Local =="\u006d\u0065\u0074\u0068\u006f\u0064"{_fege .MethodAttr .UnmarshalXMLAttr (_fgea );continue ;};if _fgea .Name .Local =="\u0073\u0069\u007a\u0065"{_eagg ,_gfga :=_fgea .Value ,
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_ColorMenu and its children
|
|
|
|
func (_dceea *OfcCT_ColorMenu )Validate ()error {return _dceea .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0043\u006f\u006c\u006f\u0072\u004d\u0065\u006e\u0075");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Extrusion and its children, prefixing error messages with path
|
|
|
|
func (_aegff *OfcCT_Extrusion )ValidateWithPath (path string )error {if _dffaef :=_aegff .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_dffaef !=nil {return _dffaef ;};if _egcbe :=_aegff .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_egcbe !=nil {return _egcbe ;};if _ddafg :=_aegff .RenderAttr .ValidateWithPath (path +"/\u0052\u0065\u006e\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_ddafg !=nil {return _ddafg ;};if _dbacf :=_aegff .PlaneAttr .ValidateWithPath (path +"\u002f\u0050\u006c\u0061\u006e\u0065\u0041\u0074\u0074\u0072");_dbacf !=nil {return _dbacf ;};if _caaeg :=_aegff .LockrotationcenterAttr .ValidateWithPath (path +"\u002f\u004c\u006fck\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_caaeg !=nil {return _caaeg ;};if _bebfd :=_aegff .AutorotationcenterAttr .ValidateWithPath (path +"\u002f\u0041\u0075to\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_bebfd !=nil {return _bebfd ;};if _cggag :=_aegff .ColormodeAttr .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cggag !=nil {return _cggag ;};if _ebfge :=_aegff .MetalAttr .ValidateWithPath (path +"\u002f\u004d\u0065\u0074\u0061\u006c\u0041\u0074\u0074\u0072");_ebfge !=nil {return _ebfge ;};if _faebb :=_aegff .LightfaceAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u0067\u0068\u0074\u0066\u0061\u0063e\u0041\u0074\u0074\u0072");_faebb !=nil {return _faebb ;};if _gfcee :=_aegff .LightharshAttr .ValidateWithPath (path +"\u002fL\u0069g\u0068\u0074\u0068\u0061\u0072\u0073\u0068\u0041\u0074\u0074\u0072");_gfcee !=nil {return _gfcee ;};if _bcegc :=_aegff .Lightharsh2Attr .ValidateWithPath (path +"\u002f\u004ci\u0067\u0068\u0074h\u0061\u0072\u0073\u0068\u0032\u0041\u0074\u0074\u0072");_bcegc !=nil {return _bcegc ;};if _dgeafd :=_aegff .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_dgeafd !=nil {return _dgeafd ;};return nil ;};type Rect struct{CT_Rect };func (_ccbgf *OfcCT_Rules )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0072\u0075\u006c\u0065\u0073";};if _ccbgf .ExtAttr !=ST_ExtUnset {_acfc ,_gfcdg :=_ccbgf .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _gfcdg !=nil {return _gfcdg ;};start .Attr =append (start .Attr ,_acfc );};e .EncodeToken (start );if _ccbgf .R !=nil {_fbfbg :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0072"}};for _ ,_acgab :=range _ccbgf .R {e .EncodeElement (_acgab ,_fbfbg );};};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_eaeag *OfcCT_ShapeDefaults )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bcedc :=range start .Attr {if _bcedc .Name .Local =="\u0073p\u0069\u0064\u006d\u0061\u0078"{_deggbb ,_ecbed :=_f .ParseInt (_bcedc .Value ,10,64);if _ecbed !=nil {return _ecbed ;};_eaeag .SpidmaxAttr =&_deggbb ;continue ;};if _bcedc .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_eaeag .AllowincellAttr .UnmarshalXMLAttr (_bcedc );continue ;};if _bcedc .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_dbgee ,_cdagd :=_bcedc .Value ,error (nil );if _cdagd !=nil {return _cdagd ;};_eaeag .StrokecolorAttr =&_dbgee ;continue ;};if _bcedc .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065"{_eaeag .StrokeAttr .UnmarshalXMLAttr (_bcedc );continue ;};if _bcedc .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_beaa ,_gffge :=_bcedc .Value ,error (nil );if _gffge !=nil {return _gffge ;};_eaeag .FillcolorAttr =&_beaa ;continue ;};if _bcedc .Name .Local =="\u0066\u0069\u006c\u006c"{_eaeag .FillAttr .UnmarshalXMLAttr (_bcedc );continue ;};if _bcedc .Name .Local =="\u0073\u0074\u0079l\u0065"{_bdegf ,_cbbbb :=_bcedc .Value ,error (nil );if _cbbbb !=nil {return _cbbbb ;};_eaeag .StyleAttr =&_bdegf ;continue ;};if _bcedc .Name .Local =="\u0065\u0
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_Adj and its children, prefixing error messages with path
|
|
|
|
func (_aeg *AG_Adj )ValidateWithPath (path string )error {return nil };func (_dabcg *OfcBottom )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dabcg .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_abggf :=range start .Attr {if _abggf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abggf .Name .Local =="\u0068\u0072\u0065\u0066"{_eafda ,_gbada :=_abggf .Value ,error (nil );if _gbada !=nil {return _gbada ;};_dabcg .HrefAttr =&_eafda ;continue ;};if _abggf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abggf .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_dabcg .ForcedashAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abggf .Name .Local =="\u0074\u0069\u0074l\u0065"{_cbcaaa ,_gcggc :=_abggf .Value ,error (nil );if _gcggc !=nil {return _gcggc ;};_dabcg .TitleAttr =&_cbcaaa ;continue ;};if _abggf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abggf .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_aefga ,_ecfgb :=_abggf .Value ,error (nil );if _ecfgb !=nil {return _ecfgb ;};_dabcg .AlthrefAttr =&_aefga ;continue ;};if _abggf .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_dabcg .ImageaspectAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_dabcg .StartarrowAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_dabcg .LinestyleAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_dabcg .StartarrowwidthAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_dabcg .JoinstyleAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_dabcg .StartarrowlengthAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_efeeb ,_bcgg :=_abggf .Value ,error (nil );if _bcgg !=nil {return _bcgg ;};_dabcg .DashstyleAttr =&_efeeb ;continue ;};if _abggf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_dabcg .EndarrowAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_dabcg .FilltypeAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_dabcg .EndarrowwidthAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_ececd ,_ecfgc :=_abggf .Value ,error (nil );if _ecfgc !=nil {return _ecfgc ;};_dabcg .OpacityAttr =&_ececd ;continue ;};if _abggf .Name .Local =="\u0063\u006f\u006co\u0072"{_cdaf ,_dbeea :=_abggf .Value ,error (nil );if _dbeea !=nil {return _dbeea ;};_dabcg .ColorAttr =&_cdaf ;continue ;};if _abggf .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_dabcg .InsetpenAttr .UnmarshalXMLAttr (_abggf );continue ;};if _abggf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u006ce\u006e\u0067\u0074\u0068"{_dabcg .EndarrowlengthAttr .UnmarshalX
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Arc and its children, prefixing error messages with path
|
|
|
|
func (_bbbg *Arc )ValidateWithPath (path string )error {if _aebb :=_bbbg .CT_Arc .ValidateWithPath (path );_aebb !=nil {return _aebb ;};return nil ;};func (_ddggb *OfcCT_Callout )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fcdge :=range start .Attr {if _fcdge .Name .Local =="\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"{_ddggb .LengthspecifiedAttr .UnmarshalXMLAttr (_fcdge );continue ;};if _fcdge .Name .Local =="\u006f\u006e"{_ddggb .OnAttr .UnmarshalXMLAttr (_fcdge );continue ;};if _fcdge .Name .Local =="\u0067\u0061\u0070"{_bggddf ,_cecbd :=_fcdge .Value ,error (nil );if _cecbd !=nil {return _cecbd ;};_ddggb .GapAttr =&_bggddf ;continue ;};if _fcdge .Name .Local =="\u0061\u006e\u0067l\u0065"{_ddggb .AngleAttr .UnmarshalXMLAttr (_fcdge );continue ;};if _fcdge .Name .Local =="\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"{_ddggb .DropautoAttr .UnmarshalXMLAttr (_fcdge );continue ;};if _fcdge .Name .Local =="\u0064\u0072\u006f\u0070"{_dgcgf ,_gbbdd :=_fcdge .Value ,error (nil );if _gbbdd !=nil {return _gbbdd ;};_ddggb .DropAttr =&_dgcgf ;continue ;};if _fcdge .Name .Local =="\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"{_eacca ,_efbad :=_fcdge .Value ,error (nil );if _efbad !=nil {return _efbad ;};_ddggb .DistanceAttr =&_eacca ;continue ;};if _fcdge .Name .Local =="\u0074\u0079\u0070\u0065"{_fegeg ,_agegg :=_fcdge .Value ,error (nil );if _agegg !=nil {return _agegg ;};_ddggb .TypeAttr =&_fegeg ;continue ;};if _fcdge .Name .Local =="\u006c\u0065\u006e\u0067\u0074\u0068"{_cfebd ,_bgbea :=_fcdge .Value ,error (nil );if _bgbea !=nil {return _bgbea ;};_ddggb .LengthAttr =&_cfebd ;continue ;};if _fcdge .Name .Local =="\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"{_ddggb .AccentbarAttr .UnmarshalXMLAttr (_fcdge );continue ;};if _fcdge .Name .Local =="\u0074\u0065\u0078\u0074\u0062\u006f\u0072\u0064\u0065\u0072"{_ddggb .TextborderAttr .UnmarshalXMLAttr (_fcdge );continue ;};if _fcdge .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0078"{_ddggb .MinusxAttr .UnmarshalXMLAttr (_fcdge );continue ;};if _fcdge .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0079"{_ddggb .MinusyAttr .UnmarshalXMLAttr (_fcdge );continue ;};if _fcdge .Name .Local =="\u0065\u0078\u0074"{_ddggb .ExtAttr .UnmarshalXMLAttr (_fcdge );continue ;};};for {_edbec ,_fgdaee :=d .Token ();if _fgdaee !=nil {return _fb .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u0061l\u006c\u006f\u0075\u0074\u003a\u0020\u0025s",_fgdaee );};if _gddff ,_dgaad :=_edbec .(_c .EndElement );_dgaad &&_gddff .Name ==start .Name {break ;};};return nil ;};func (_afagc *CT_F )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fbea :=range start .Attr {if _fbea .Name .Local =="\u0065\u0071\u006e"{_dcfad ,_abac :=_fbea .Value ,error (nil );if _abac !=nil {return _abac ;};_afagc .EqnAttr =&_dcfad ;continue ;};};for {_edea ,_babg :=d .Token ();if _babg !=nil {return _fb .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u0043\u0054\u005f\u0046\u003a\u0020\u0025\u0073",_babg );};if _ebce ,_dbef :=_edea .(_c .EndElement );_dbef &&_ebce .Name ==start .Name {break ;};};return nil ;};type OfcCT_Rules struct{R []*OfcCT_R ;ExtAttr ST_Ext ;};func (_gffce OfcST_InsetMode )String ()string {switch _gffce {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};func (_eedbg ST_StrokeArrowType )ValidateWithPath (path string )error {switch _eedbg {case 0,1,2,3,4,5,6:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_eedbg ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Fill and its children
|
|
|
|
func (_bcced *Fill )Validate ()error {return _bcced .ValidateWithPath ("\u0046\u0069\u006c\u006c")};func (_fegde *Formulas )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fegde .CT_Formulas =*NewCT_Formulas ();_abdff :for {_edbb ,_defdf :=d .Token ();if _defdf !=nil {return _defdf ;};switch _fbda :=_edbb .(type ){case _c .StartElement :switch _fbda .Name {case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066"}:_ddfd :=NewCT_F ();if _ecefg :=d .DecodeElement (_ddfd ,&_fbda );_ecefg !=nil {return _ecefg ;};_fegde .F =append (_fegde .F ,_ddfd );default:_ac .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",_fbda .Name );if _faaefg :=d .Skip ();_faaefg !=nil {return _faaefg ;};};case _c .EndElement :break _abdff ;case _c .CharData :};};return nil ;};type Textbox struct{CT_Textbox };type OfcClippath struct{OfcCT_ClipPath };func (_cgefe *OfcCT_R )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0072";};start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",_cgefe .IdAttr )});if _cgefe .TypeAttr !=OfcST_RTypeUnset {_bcgfb ,_dcace :=_cgefe .TypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0079\u0070\u0065"});if _dcace !=nil {return _dcace ;};start .Attr =append (start .Attr ,_bcgfb );};if _cgefe .HowAttr !=OfcST_HowUnset {_dgdfde ,_cdbcdc :=_cgefe .HowAttr .MarshalXMLAttr (_c .Name {Local :"\u0068\u006f\u0077"});if _cdbcdc !=nil {return _cdbcdc ;};start .Attr =append (start .Attr ,_dgdfde );};if _cgefe .IdrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064\u0072e\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_cgefe .IdrefAttr )});};e .EncodeToken (start );if _cgefe .Proxy !=nil {_egegc :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0070\u0072\u006f\u0078\u0079"}};for _ ,_edafe :=range _cgefe .Proxy {e .EncodeElement (_edafe ,_egegc );};};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_dbdac ST_StrokeArrowType )String ()string {switch _dbdac {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 (_aaeb *AG_StrokeAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _aaeb .OnAttr !=_fc .ST_TrueFalseUnset {_cfbe ,_deea :=_aaeb .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _deea !=nil {return _deea ;};start .Attr =append (start .Attr ,_cfbe );};if _aaeb .WeightAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_aaeb .WeightAttr )});};if _aaeb .ColorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_aaeb .ColorAttr )});};if _aaeb .OpacityAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_fb .Sprintf ("\u0025\u0076",*_aaeb .OpacityAttr )});};if _aaeb .LinestyleAttr !=ST_StrokeLineStyleUnset {_cgb ,_gfdb :=_aaeb .LinestyleAttr .MarshalXMLAttr (_c .Name {Local :"\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"});if _gfdb !=nil {return _gfdb ;};start .Attr =append (start .Attr ,_cgb );};if _aaeb .MiterlimitAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006d\u0069\u0074\u0065\u0072\u006c\u0069\u006d\u0069\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_aaeb .MiterlimitAttr )})
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Rect and its children
|
|
|
|
func (_badbf *CT_Rect )Validate ()error {return _badbf .ValidateWithPath ("\u0043T\u005f\u0052\u0065\u0063\u0074");};func (_cgf *AG_Id )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _cgf .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_cgf .IdAttr )});};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Relation and its children, prefixing error messages with path
|
|
|
|
func (_abeaa *OfcCT_Relation )ValidateWithPath (path string )error {if _baacf :=_abeaa .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_baacf !=nil {return _baacf ;};return nil ;};func (_cge *AG_AllShapeAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _cge .OpacityAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_fb .Sprintf ("\u0025\u0076",*_cge .OpacityAttr )});};if _cge .StrokedAttr !=_fc .ST_TrueFalseUnset {_edc ,_gbf :=_cge .StrokedAttr .MarshalXMLAttr (_c .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _gbf !=nil {return _gbf ;};start .Attr =append (start .Attr ,_edc );};if _cge .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_cge .StrokecolorAttr )});};if _cge .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_cge .StrokeweightAttr )});};if _cge .InsetpenAttr !=_fc .ST_TrueFalseUnset {_bbdb ,_aab :=_cge .InsetpenAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _aab !=nil {return _aab ;};start .Attr =append (start .Attr ,_bbdb );};if _cge .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_fb .Sprintf ("\u0025\u0076",*_cge .ChromakeyAttr )});};if _cge .FilledAttr !=_fc .ST_TrueFalseUnset {_eaa ,_acc :=_cge .FilledAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _acc !=nil {return _acc ;};start .Attr =append (start .Attr ,_eaa );};if _cge .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_fb .Sprintf ("\u0025\u0076",*_cge .FillcolorAttr )});};if _cge .SptAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073p\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_cge .SptAttr )});};if _cge .ConnectortypeAttr !=OfcST_ConnectorTypeUnset {_feeag ,_gfbb :=_cge .ConnectortypeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"});if _gfbb !=nil {return _gfbb ;};start .Attr =append (start .Attr ,_feeag );};if _cge .BwmodeAttr !=OfcST_BWModeUnset {_efd ,_af :=_cge .BwmodeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _af !=nil {return _af ;};start .Attr =append (start .Attr ,_efd );};if _cge .BwpureAttr !=OfcST_BWModeUnset {_be ,_gcf :=_cge .BwpureAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u0070\u0075\u0072\u0065"});if _gcf !=nil {return _gcf ;};start .Attr =append (start .Attr ,_be );};if _cge .BwnormalAttr !=OfcST_BWModeUnset {_eae ,_cdd :=_cge .BwnormalAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _cdd !=nil {return _cdd ;};start .Attr =append (start .Attr ,_eae );};if _cge .ForcedashAttr !=_fc .ST_TrueFalseUnset {_bfd ,_ead :=_cge .ForcedashAttr .MarshalXMLAttr (_c .Name {Local :"o\u003a\u0066\u006f\u0072\u0063\u0065\u0064\u0061\u0073\u0068"});if _ead !=nil {return _ead ;};start .Attr =append (start .Attr ,_bfd );};if _cge .OleiconAttr !=_fc .ST_TrueFalseUnset {_gda ,_bgc :=_cge .OleiconAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u006f\u006c\u0065\u0069\u0063\u006fn"});if _bgc !=nil {return _bgc ;};start .Attr =append (start .Attr ,_gda );};if _cge .OleAttr !=_fc .ST_TrueFalseBlankUnset {_ffc ,_gfe :=_cge .OleAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006fl\u0065"});if _gfe !=nil {return _gfe ;};start .Attr =append (start .Attr ,_ffc );};if _cge .PreferrelativeAttr !=_fc .ST_TrueFalseUnset {_abd ,_dcd :=_cge .PreferrelativeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Background and its children, prefixing error messages with path
|
|
|
|
func (_ecgg *Background )ValidateWithPath (path string )error {if _acd :=_ecgg .CT_Background .ValidateWithPath (path );_acd !=nil {return _acd ;};return nil ;};func (_fdba *OfcCT_Ink )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0069n\u006b";};if _fdba .IAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069"},Value :_fb .Sprintf ("\u0025\u0076",*_fdba .IAttr )});};if _fdba .AnnotationAttr !=_fc .ST_TrueFalseUnset {_ebfff ,_gbcgb :=_fdba .AnnotationAttr .MarshalXMLAttr (_c .Name {Local :"\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"});if _gbcgb !=nil {return _gbcgb ;};start .Attr =append (start .Attr ,_ebfff );};if _fdba .ContentTypeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_fdba .ContentTypeAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_fea *AG_OfficeCoreAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _fea .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_fea .SpidAttr )});};if _fea .OnedAttr !=_fc .ST_TrueFalseUnset {_gacg ,_adgc :=_fea .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _adgc !=nil {return _adgc ;};start .Attr =append (start .Attr ,_gacg );};if _fea .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_fea .RegroupidAttr )});};if _fea .DoubleclicknotifyAttr !=_fc .ST_TrueFalseUnset {_bae ,_cagf :=_fea .DoubleclicknotifyAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _cagf !=nil {return _cagf ;};start .Attr =append (start .Attr ,_bae );};if _fea .ButtonAttr !=_fc .ST_TrueFalseUnset {_cea ,_ced :=_fea .ButtonAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _ced !=nil {return _ced ;};start .Attr =append (start .Attr ,_cea );};if _fea .UserhiddenAttr !=_fc .ST_TrueFalseUnset {_geec ,_ffgd :=_fea .UserhiddenAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _ffgd !=nil {return _ffgd ;};start .Attr =append (start .Attr ,_geec );};if _fea .BulletAttr !=_fc .ST_TrueFalseUnset {_aef ,_aag :=_fea .BulletAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u006c\u006c\u0065\u0074"});if _aag !=nil {return _aag ;};start .Attr =append (start .Attr ,_aef );};if _fea .HrAttr !=_fc .ST_TrueFalseUnset {_eggc ,_ccf :=_fea .HrAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0068\u0072"});if _ccf !=nil {return _ccf ;};start .Attr =append (start .Attr ,_eggc );};if _fea .HrstdAttr !=_fc .ST_TrueFalseUnset {_baeg ,_fdgb :=_fea .HrstdAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0068\u0072\u0073\u0074\u0064"});if _fdgb !=nil {return _fdgb ;};start .Attr =append (start .Attr ,_baeg );};if _fea .HrnoshadeAttr !=_fc .ST_TrueFalseUnset {_becg ,_eaag :=_fea .HrnoshadeAttr .MarshalXMLAttr (_c .Name {Local :"o\u003a\u0068\u0072\u006e\u006f\u0073\u0068\u0061\u0064\u0065"});if _eaag !=nil {return _eaag ;};start .Attr =append (start .Attr ,_becg );};if _fea .HrpctAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u0068\u0072\u0070\u0063\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_fea .HrpctAttr )});};if _fea .HralignAttr !=OfcST_HrAlignUnset {_acb ,_ede :=_fea .HralignAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0068\u0072\u0061\u006c\u0069\u0067n"});if _ede !=nil {return _ede ;};start .Attr =append (start .Attr ,_acb );};if _fea .AllowincellAttr !=_fc .ST_TrueFalseUnset {_cfa ,_add :=_fea .AllowincellAttr .MarshalXMLAttr (_c .Name {L
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Shadow and its children, prefixing error messages with path
|
|
|
|
func (_gcaad *Shadow )ValidateWithPath (path string )error {if _bbcag :=_gcaad .CT_Shadow .ValidateWithPath (path );_bbcag !=nil {return _bbcag ;};return nil ;};func NewOfcFill ()*OfcFill {_gbdad :=&OfcFill {};_gbdad .OfcCT_Fill =*NewOfcCT_Fill ();return _gbdad };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcClippath and its children
|
|
|
|
func (_cgcbg *OfcClippath )Validate ()error {return _cgcbg .ValidateWithPath ("O\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068");};func (_eega *OfcCT_SignatureLine )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065";};if _eega .IssignaturelineAttr !=_fc .ST_TrueFalseUnset {_eefed ,_cabgf :=_eega .IssignaturelineAttr .MarshalXMLAttr (_c .Name {Local :"\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"});if _cabgf !=nil {return _cabgf ;};start .Attr =append (start .Attr ,_eefed );};if _eega .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_eega .IdAttr )});};if _eega .ProvidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u0072\u006f\u0076\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_eega .ProvidAttr )});};if _eega .SigninginstructionssetAttr !=_fc .ST_TrueFalseUnset {_fabe ,_bgeba :=_eega .SigninginstructionssetAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"});if _bgeba !=nil {return _bgeba ;};start .Attr =append (start .Attr ,_fabe );};if _eega .AllowcommentsAttr !=_fc .ST_TrueFalseUnset {_ccgdf ,_ageea :=_eega .AllowcommentsAttr .MarshalXMLAttr (_c .Name {Local :"\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"});if _ageea !=nil {return _ageea ;};start .Attr =append (start .Attr ,_ccgdf );};if _eega .ShowsigndateAttr !=_fc .ST_TrueFalseUnset {_aabdgg ,_bfagd :=_eega .ShowsigndateAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"});if _bfagd !=nil {return _bfagd ;};start .Attr =append (start .Attr ,_aabdgg );};if _eega .SuggestedsignerAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_eega .SuggestedsignerAttr )});};if _eega .Suggestedsigner2Attr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"},Value :_fb .Sprintf ("\u0025\u0076",*_eega .Suggestedsigner2Attr )});};if _eega .SuggestedsigneremailAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"},Value :_fb .Sprintf ("\u0025\u0076",*_eega .SuggestedsigneremailAttr )});};if _eega .SigninginstructionsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_eega .SigninginstructionsAttr )});};if _eega .AddlxmlAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061d\u0064\u006c\u0078\u006d\u006c"},Value :_fb .Sprintf ("\u0025\u0076",*_eega .AddlxmlAttr )});};if _eega .SigprovurlAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0069\u0067\u0070\u0072\u006f\u0076\u0075\u0072\u006c"},Value :_fb .Sprintf ("\u0025\u0076",*_eega .SigprovurlAttr )});};if _eega .ExtAttr !=ST_ExtUnset {_fecde ,_bcbga :=_eega .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _bcbga !=nil {return _bcbga ;};start .Attr =append (start .Attr ,_fecde );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Diagram and its children
|
|
|
|
func (_gfgdef *OfcCT_Diagram )Validate ()error {return _gfgdef .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};func (_fbfac *CT_TextPath )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_eegbd :=range start .Attr {if _eegbd .Name .Local =="\u006f\u006e"{_fbfac .OnAttr .UnmarshalXMLAttr (_eegbd );continue ;};if _eegbd .Name .Local =="\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"{_fbfac .FitshapeAttr .UnmarshalXMLAttr (_eegbd );continue ;};if _eegbd .Name .Local =="\u0066i\u0074\u0070\u0061\u0074\u0068"{_fbfac .FitpathAttr .UnmarshalXMLAttr (_eegbd );continue ;};if _eegbd .Name .Local =="\u0074\u0072\u0069\u006d"{_fbfac .TrimAttr .UnmarshalXMLAttr (_eegbd );continue ;};if _eegbd .Name .Local =="\u0078\u0073\u0063\u0061\u006c\u0065"{_fbfac .XscaleAttr .UnmarshalXMLAttr (_eegbd );continue ;};if _eegbd .Name .Local =="\u0073\u0074\u0072\u0069\u006e\u0067"{_gbbdf ,_ccda :=_eegbd .Value ,error (nil );if _ccda !=nil {return _ccda ;};_fbfac .StringAttr =&_gbbdf ;continue ;};if _eegbd .Name .Local =="\u0069\u0064"{_fgdff ,_fecfd :=_eegbd .Value ,error (nil );if _fecfd !=nil {return _fecfd ;};_fbfac .IdAttr =&_fgdff ;continue ;};if _eegbd .Name .Local =="\u0073\u0074\u0079l\u0065"{_ecefd ,_dcfe :=_eegbd .Value ,error (nil );if _dcfe !=nil {return _dcfe ;};_fbfac .StyleAttr =&_ecefd ;continue ;};};for {_ccdeb ,_bgba :=d .Token ();if _bgba !=nil {return _fb .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_bgba );};if _ecadg ,_fabgb :=_ccdeb .(_c .EndElement );_fabgb &&_ecadg .Name ==start .Name {break ;};};return nil ;};func (_bgedd *OfcFill )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0066\u0069\u006c\u006c";return _bgedd .OfcCT_Fill .MarshalXML (e ,sta
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Oval and its children, prefixing error messages with path
|
|
|
|
func (_gfgbb *CT_Oval )ValidateWithPath (path string )error {for _dggd ,_gddb :=range _gfgbb .EG_ShapeElements {if _bcbbd :=_gddb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_dggd ));_bcbbd !=nil {return _bcbbd ;};};if _abfd :=_gfgbb .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_abfd !=nil {return _abfd ;};if _gddcg :=_gfgbb .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gddcg !=nil {return _gddcg ;};if _gaba :=_gfgbb .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_gaba !=nil {return _gaba ;};if _feba :=_gfgbb .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_feba !=nil {return _feba ;};if _bdfbfa :=_gfgbb .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bdfbfa !=nil {return _bdfbfa ;};if _fbaea :=_gfgbb .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_fbaea !=nil {return _fbaea ;};if _faad :=_gfgbb .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_faad !=nil {return _faad ;};if _deba :=_gfgbb .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_deba !=nil {return _deba ;};if _dgead :=_gfgbb .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_dgead !=nil {return _dgead ;};if _dbfce :=_gfgbb .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dbfce !=nil {return _dbfce ;};if _ccab :=_gfgbb .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_ccab !=nil {return _ccab ;};if _fgad :=_gfgbb .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_fgad !=nil {return _fgad ;};if _faeaf :=_gfgbb .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_faeaf !=nil {return _faeaf ;};if _cedf :=_gfgbb .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_cedf !=nil {return _cedf ;};if _agea :=_gfgbb .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_agea !=nil {return _agea ;};if _fbcb :=_gfgbb .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fbcb !=nil {return _fbcb ;};if _cdbec :=_gfgbb .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cdbec !=nil {return _cdbec ;};if _eaaef :=_gfgbb .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_eaaef !=nil {return _eaaef ;};if _gcacb :=_gfgbb .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gcacb !=nil {return _gcacb ;};if _fece :=_gfgbb .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_fece !=nil {return _fece ;};if _degee :=_gfgbb .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_degee !=nil {return _degee ;};if _eeae :=_gfgbb .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_eeae !=nil {return _eeae ;};if _fbcbf :=_gfgbb .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072"
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_H and its children, prefixing error messages with path
|
|
|
|
func (_agca *CT_H )ValidateWithPath (path string )error {if _bggg :=_agca .InvxAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0078\u0041\u0074\u0074r");_bggg !=nil {return _bggg ;};if _dbae :=_agca .InvyAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0079\u0041\u0074\u0074r");_dbae !=nil {return _dbae ;};if _ebgb :=_agca .SwitchAttr .ValidateWithPath (path +"/\u0053\u0077\u0069\u0074\u0063\u0068\u0041\u0074\u0074\u0072");_ebgb !=nil {return _ebgb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Rect and its children, prefixing error messages with path
|
|
|
|
func (_cebfc *CT_Rect )ValidateWithPath (path string )error {for _eagda ,_bcde :=range _cebfc .EG_ShapeElements {if _dbgce :=_bcde .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_eagda ));_dbgce !=nil {return _dbgce ;};};if _acdbb :=_cebfc .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_acdbb !=nil {return _acdbb ;};if _bfdcag :=_cebfc .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_bfdcag !=nil {return _bfdcag ;};if _eeffc :=_cebfc .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_eeffc !=nil {return _eeffc ;};if _ccggf :=_cebfc .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ccggf !=nil {return _ccggf ;};if _ecggg :=_cebfc .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_ecggg !=nil {return _ecggg ;};if _ecefe :=_cebfc .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ecefe !=nil {return _ecefe ;};if _aaea :=_cebfc .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_aaea !=nil {return _aaea ;};if _gfgde :=_cebfc .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gfgde !=nil {return _gfgde ;};if _fgdaf :=_cebfc .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fgdaf !=nil {return _fgdaf ;};if _cfafb :=_cebfc .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_cfafb !=nil {return _cfafb ;};if _cbagf :=_cebfc .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_cbagf !=nil {return _cbagf ;};if _bdag :=_cebfc .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bdag !=nil {return _bdag ;};if _gcff :=_cebfc .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_gcff !=nil {return _gcff ;};if _aeegc :=_cebfc .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_aeegc !=nil {return _aeegc ;};if _ggab :=_cebfc .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_ggab !=nil {return _ggab ;};if _ecdg :=_cebfc .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_ecdg !=nil {return _ecdg ;};if _bagf :=_cebfc .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bagf !=nil {return _bagf ;};if _baebg :=_cebfc .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_baebg !=nil {return _baebg ;};if _dcdb :=_cebfc .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_dcdb !=nil {return _dcdb ;};if _acea :=_cebfc .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_acea !=nil {return _acea ;};if _cfbgb :=_cebfc .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_cfbgb !=nil {return _cfbgb ;};if _dgdc :=_cebfc .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_dgdc !=nil {return _dgdc ;};if _gcbgd :=_cebfc .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcInk and its children, prefixing error messages with path
|
|
|
|
func (_cbffe *OfcInk )ValidateWithPath (path string )error {if _gaceb :=_cbffe .OfcCT_Ink .ValidateWithPath (path );_gaceb !=nil {return _gaceb ;};return nil ;};func NewOfcComplex ()*OfcComplex {_gbaf :=&OfcComplex {};_gbaf .OfcCT_Complex =*NewOfcCT_Complex ();return _gbaf ;};type OfcST_OLEType byte ;func (_dcaff OfcST_BWMode )String ()string {switch _dcaff {case 0:return "";case 1:return "\u0063\u006f\u006co\u0072";case 2:return "\u0061\u0075\u0074\u006f";case 3:return "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce";case 4:return "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065";case 5:return "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079";case 6:return "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065";case 7:return "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074";case 8:return "\u0062\u006c\u0061c\u006b";case 9:return "\u0077\u0068\u0069t\u0065";case 10:return "\u0068\u0069\u0064\u0065";case 11:return "\u0075n\u0064\u0072\u0061\u0077\u006e";case 12:return "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073";};return "";};func (_aafgc *Textbox )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_aafgc .CT_Textbox =*NewCT_Textbox ();for _ ,_gfecb :=range start .Attr {if _gfecb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfecb .Name .Local =="s\u0069\u006e\u0067\u006c\u0065\u0063\u006c\u0069\u0063\u006b"{_aafgc .SingleclickAttr .UnmarshalXMLAttr (_gfecb );continue ;};if _gfecb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfecb .Name .Local =="\u0069n\u0073\u0065\u0074\u006d\u006f\u0064e"{_aafgc .InsetmodeAttr .UnmarshalXMLAttr (_gfecb );continue ;};if _gfecb .Name .Local =="\u0069\u006e\u0073e\u0074"{_fbcfd ,_efecb :=_gfecb .Value ,error (nil );if _efecb !=nil {return _efecb ;};_aafgc .InsetAttr =&_fbcfd ;continue ;};if _gfecb .Name .Local =="\u0069\u0064"{_cbcedf ,_decc :=_gfecb .Value ,error (nil );if _decc !=nil {return _decc ;};_aafgc .IdAttr =&_cbcedf ;continue ;};if _gfecb .Name .Local =="\u0073\u0074\u0079l\u0065"{_dfabd ,_afbff :=_gfecb .Value ,error (nil );if _afbff !=nil {return _afbff ;};_aafgc .StyleAttr =&_dfabd ;continue ;};};_ecegdf :for {_eegbc ,_aabeg :=d .Token ();if _aabeg !=nil {return _aabeg ;};switch _cfdgd :=_eegbc .(type ){case _c .StartElement :switch _cfdgd .Name {case _c .Name {Space :"ht\u0074\u0070:\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u0077\u006f\u0072\u0064\u0070\u0072\u006f\u0063\u0065s\u0073i\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u00306\u002fm\u0061\u0069n",Local :"t\u0078\u0062\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074"},_c .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0070u\u0072\u006c\u002eoc\u006c\u0063\u002e\u006f\u0072\u0067/\u006f\u006f\u0078\u006d\u006c\u002f\u0077\u006f\u0072\u0064\u0070\u0072\u006f\u0063\u0065s\u0073\u0069\u006e\u0067\u006d\u006c\u002f\u006da\u0069\u006e",Local :"t\u0078\u0062\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074"}:_aafgc .TxbxContent =_dc .NewTxbxContent ();if _begdc :=d .DecodeElement (_aafgc .TxbxContent ,&_cfdgd );_begdc !=nil {return _begdc ;};default:if _abgeg ,_gaecd :=_a .CreateElement (_cfdgd );_gaecd !=nil {return _gaecd ;}else {if _aadaa :=d .DecodeElement (_abgeg ,&_cfdgd );_aadaa !=nil {return _aadaa ;};_aafgc .Any =_abgeg ;};};case _c .EndElement :break _ecegdf ;case _c .CharData :};};return nil ;};const (OfcST_ExtrusionRenderUnset OfcST_ExtrusionRender =0;OfcST_ExtrusionRenderSolid OfcST_ExtrusionRender =1;OfcST_ExtrusionRenderWireFrame OfcST_ExtrusionRender =2;OfcST
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_OfficeShapeAttributes and its children
|
|
|
|
func (_gagg *AG_OfficeShapeAttributes )Validate ()error {return _gagg .ValidateWithPath ("\u0041G\u005f\u004f\u0066\u0066\u0069\u0063\u0065\u0053\u0068\u0061\u0070e\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};type OfcFill struct{OfcCT_Fill };func (_fcffb ST_EditAs )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_beeae :=_c .Attr {};_beeae .Name =name ;switch _fcffb {case ST_EditAsUnset :_beeae .Value ="";case ST_EditAsCanvas :_beeae .Value ="\u0063\u0061\u006e\u0076\u0061\u0073";case ST_EditAsOrgchart :_beeae .Value ="\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074";case ST_EditAsRadial :_beeae .Value ="\u0072\u0061\u0064\u0069\u0061\u006c";case ST_EditAsCycle :_beeae .Value ="\u0063\u0079\u0063l\u0065";case ST_EditAsStacked :_beeae .Value ="\u0073t\u0061\u0063\u006b\u0065\u0064";case ST_EditAsVenn :_beeae .Value ="\u0076\u0065\u006e\u006e";case ST_EditAsBullseye :_beeae .Value ="\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065";};return _beeae ,nil ;};func (_gfefg *AG_Style )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bdbe :=range start .Attr {if _bdbe .Name .Local =="\u0073\u0074\u0079l\u0065"{_ece ,_fbge :=_bdbe .Value ,error (nil );if _fbge !=nil {return _fbge ;};_gfefg .StyleAttr =&_ece ;continue ;};};for {_cbga ,_caef :=d .Token ();if _caef !=nil {return _fb .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005fS\u0074\u0079\u006c\u0065: \u0025\u0073",_caef );};if _cdbff ,_ggac :=_cbga .(_c .EndElement );_ggac &&_cdbff .Name ==start .Name {break ;};};return nil ;};func (_bgge *CT_Curve )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076:\u0063\u0075\u0072\u0076\u0065";};if _bgge .FromAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .FromAttr )});};if _bgge .Control1Attr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006e\u0074\u0072\u006f\u006c\u0031"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .Control1Attr )});};if _bgge .Control2Attr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006e\u0074\u0072\u006f\u006c\u0032"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .Control2Attr )});};if _bgge .ToAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u006f"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .ToAttr )});};if _bgge .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .HrefAttr )});};if _bgge .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .TargetAttr )});};if _bgge .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .ClassAttr )});};if _bgge .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .TitleAttr )});};if _bgge .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .AltAttr )});};if _bgge .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .CoordsizeAttr )});};if _bgge .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .CoordoriginAttr )});};if _bgge .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_bgge .WrapcoordsAttr )});};if _bgge .Pri
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_PolyLine and its children, prefixing error messages with path
|
|
|
|
func (_afae *CT_PolyLine )ValidateWithPath (path string )error {for _aeded ,_gfgd :=range _afae .Ink {if _egdbg :=_gfgd .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_aeded ));_egdbg !=nil {return _egdbg ;};};for _acdf ,_gdba :=range _afae .EG_ShapeElements {if _febe :=_gdba .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_acdf ));_febe !=nil {return _febe ;};};if _egbba :=_afae .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_egbba !=nil {return _egbba ;};if _fdgda :=_afae .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_fdgda !=nil {return _fdgda ;};if _eccf :=_afae .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_eccf !=nil {return _eccf ;};if _fdddc :=_afae .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_fdddc !=nil {return _fdddc ;};if _gcece :=_afae .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_gcece !=nil {return _gcece ;};if _dged :=_afae .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dged !=nil {return _dged ;};if _fcffe :=_afae .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_fcffe !=nil {return _fcffe ;};if _dbfff :=_afae .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_dbfff !=nil {return _dbfff ;};if _egdbag :=_afae .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_egdbag !=nil {return _egdbag ;};if _cagbf :=_afae .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_cagbf !=nil {return _cagbf ;};if _aecce :=_afae .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_aecce !=nil {return _aecce ;};if _effdg :=_afae .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_effdg !=nil {return _effdg ;};if _ddfa :=_afae .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_ddfa !=nil {return _ddfa ;};if _agdc :=_afae .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_agdc !=nil {return _agdc ;};if _fgfag :=_afae .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_fgfag !=nil {return _fgfag ;};if _adcfb :=_afae .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_adcfb !=nil {return _adcfb ;};if _baaa :=_afae .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_baaa !=nil {return _baaa ;};if _adfg :=_afae .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_adfg !=nil {return _adfg ;};if _baffe :=_afae .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_baffe !=nil {return _baffe ;};if _abcc :=_afae .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_abcc !=nil {return _abcc ;};if _adcgd :=_afae .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_adcgd !=nil {return _adcgd ;};if _edadf :=_afae .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0
|
|
|
|
|
|
|
|
// Validate validates the Image and its children
|
|
|
|
func (_fcdd *Image )Validate ()error {return _fcdd .ValidateWithPath ("\u0049\u006d\u0061g\u0065")};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the EG_ShapeElements and its children, prefixing error messages with path
|
|
|
|
func (_cbgbc *EG_ShapeElements )ValidateWithPath (path string )error {if _cbgbc .Path !=nil {if _fgdae :=_cbgbc .Path .ValidateWithPath (path +"\u002f\u0050\u0061t\u0068");_fgdae !=nil {return _fgdae ;};};if _cbgbc .Formulas !=nil {if _cgbg :=_cbgbc .Formulas .ValidateWithPath (path +"\u002fF\u006f\u0072\u006d\u0075\u006c\u0061s");_cgbg !=nil {return _cgbg ;};};if _cbgbc .Handles !=nil {if _dgebe :=_cbgbc .Handles .ValidateWithPath (path +"\u002f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");_dgebe !=nil {return _dgebe ;};};if _cbgbc .Fill !=nil {if _bbed :=_cbgbc .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_bbed !=nil {return _bbed ;};};if _cbgbc .Stroke !=nil {if _dfadc :=_cbgbc .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_dfadc !=nil {return _dfadc ;};};if _cbgbc .Shadow !=nil {if _eagdg :=_cbgbc .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_eagdg !=nil {return _eagdg ;};};if _cbgbc .Textbox !=nil {if _adcb :=_cbgbc .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_adcb !=nil {return _adcb ;};};if _cbgbc .Textpath !=nil {if _bcff :=_cbgbc .Textpath .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0070\u0061\u0074h");_bcff !=nil {return _bcff ;};};if _cbgbc .Imagedata !=nil {if _cceea :=_cbgbc .Imagedata .ValidateWithPath (path +"\u002f\u0049\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061");_cceea !=nil {return _cceea ;};};if _cbgbc .Skew !=nil {if _ebde :=_cbgbc .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_ebde !=nil {return _ebde ;};};if _cbgbc .Extrusion !=nil {if _cgbbb :=_cbgbc .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_cgbbb !=nil {return _cgbbb ;};};if _cbgbc .Callout !=nil {if _edgb :=_cbgbc .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_edgb !=nil {return _edgb ;};};if _cbgbc .Lock !=nil {if _gceg :=_cbgbc .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_gceg !=nil {return _gceg ;};};if _cbgbc .Clippath !=nil {if _ccebca :=_cbgbc .Clippath .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0070\u0061\u0074h");_ccebca !=nil {return _ccebca ;};};if _cbgbc .Signatureline !=nil {if _bcdea :=_cbgbc .Signatureline .ValidateWithPath (path +"\u002f\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065");_bcdea !=nil {return _bcdea ;};};if _cbgbc .Wrap !=nil {if _cdcgb :=_cbgbc .Wrap .ValidateWithPath (path +"\u002f\u0057\u0072a\u0070");_cdcgb !=nil {return _cdcgb ;};};if _cbgbc .Anchorlock !=nil {if _dcac :=_cbgbc .Anchorlock .ValidateWithPath (path +"/\u0041\u006e\u0063\u0068\u006f\u0072\u006c\u006f\u0063\u006b");_dcac !=nil {return _dcac ;};};if _cbgbc .Bordertop !=nil {if _bfdddc :=_cbgbc .Bordertop .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070");_bfdddc !=nil {return _bfdddc ;};};if _cbgbc .Borderbottom !=nil {if _ccebf :=_cbgbc .Borderbottom .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0062\u006f\u0074\u0074\u006f\u006d");_ccebf !=nil {return _ccebf ;};};if _cbgbc .Borderleft !=nil {if _ecde :=_cbgbc .Borderleft .ValidateWithPath (path +"/\u0042\u006f\u0072\u0064\u0065\u0072\u006c\u0065\u0066\u0074");_ecde !=nil {return _ecde ;};};if _cbgbc .Borderright !=nil {if _afbfd :=_cbgbc .Borderright .ValidateWithPath (path +"\u002f\u0042\u006fr\u0064\u0065\u0072\u0072\u0069\u0067\u0068\u0074");_afbfd !=nil {return _afbfd ;};};if _cbgbc .ClientData !=nil {if _adcead :=_cbgbc .ClientData .ValidateWithPath (path +"/\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");_adcead !=nil {return _adcead ;};};if _cbgbc .Textdata !=nil {if _bdaga :=_cbgbc .Textdata .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0064\u0061\u0074a");_bdaga !=nil {return _bdaga ;};};return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2023-05-26 09:49:04 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMru and its children, prefixing error messages with path
|
2023-06-10 07:12:37 +00:00
|
|
|
func (_agacg *OfcCT_ColorMru )ValidateWithPath (path string )error {if _aaedd :=_agacg .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_aaedd !=nil {return _aaedd ;};return nil ;};type Imagedata struct{CT_ImageData };type OfcEquationxml struct{OfcCT_EquationXml };func (_fbafdb ST_StrokeArrowLength )String ()string {switch _fbafdb {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 "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Callout and its children
|
|
|
|
func (_bbbgg *OfcCT_Callout )Validate ()error {return _bbbgg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};func (_ddefe *Shape )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _ddefe .CT_Shape .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Ink and its children
|
|
|
|
func (_fagfc *OfcCT_Ink )Validate ()error {return _fagfc .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0049\u006ek");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcComplex and its children
|
|
|
|
func (_feebb *OfcComplex )Validate ()error {return _feebb .ValidateWithPath ("\u004f\u0066\u0063\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};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;);type ST_FillMethod byte ;func (_fdef ST_Ext )String ()string {switch _fdef {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 "";};func (_gfge *OfcCT_RelationTable )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ggdga :=range start .Attr {if _ggdga .Name .Local =="\u0065\u0078\u0074"{_gfge .ExtAttr .UnmarshalXMLAttr (_ggdga );continue ;};};_cbfe :for {_bbdf ,_addab :=d .Token ();if _addab !=nil {return _addab ;};switch _fecb :=_bbdf .(type ){case _c .StartElement :switch _fecb .Name {case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u006c"}:_bgedf :=NewOfcCT_Relation ();if _dceag :=d .DecodeElement (_bgedf ,&_fecb );_dceag !=nil {return _dceag ;};_gfge .Rel =append (_gfge .Rel ,_bgedf );default:_ac .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",_fecb .Name );if _fbcfb :=d .Skip ();_fbcfb !=nil {return _fbcfb ;};};case _c .EndElement :break _cbfe ;case _c .CharData :};};return nil ;};func (_eaeec ST_FillMethod )ValidateWithPath (path string )error {switch _eaeec {case 0,1,2,3,4,5:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_eaeec ));};return nil ;};func (_geaccb ST_StrokeArrowWidth )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_abage :=_c .Attr {};_abage .Name =name ;switch _geaccb {case ST_StrokeArrowWidthUnset :_abage .Value ="";case ST_StrokeArrowWidthNarrow :_abage .Value ="\u006e\u0061\u0072\u0072\u006f\u0077";case ST_StrokeArrowWidthMedium :_abage .Value ="\u006d\u0065\u0064\u0069\u0075\u006d";case ST_StrokeArrowWidthWide :_abage .Value ="\u0077\u0069\u0064\u0065";};return _abage ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_F and its children
|
|
|
|
func (_adef *CT_F )Validate ()error {return _adef .ValidateWithPath ("\u0043\u0054\u005f\u0046")};func (_eddgdg *OfcST_ExtrusionPlane )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_eddgdg =0;case "\u0058\u0059":*_eddgdg =1;case "\u005a\u0058":*_eddgdg =2;case "\u0059\u005a":*_eddgdg =3;};return nil ;};func (_ecbcg *Polyline )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ecbcg .CT_PolyLine =*NewCT_PolyLine ();for _ ,_cbgcab :=range start .Attr {if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_ecbcg .UserdrawnAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u0063\u006c\u0069\u0070"{_ecbcg .ClipAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_ecbcg .UserhiddenAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u0069n\u0073\u0065\u0074\u006d\u006f\u0064e"{_ecbcg .InsetmodeAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ecbcg .BulletAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_ecbcg .PreferrelativeAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u0068\u0072"{_ecbcg .HrAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_ecbcg .OleiconAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cbgcab .Name .Local =="\u0068\u0072\u0073t\u0064"{_ecbcg .HrstdAttr .UnmarshalXMLAttr (_cbgcab );continue ;};if _cbgcab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcShapelayout and its children
|
|
|
|
func (_bcedd *OfcShapelayout )Validate ()error {return _bcedd .ValidateWithPath ("\u004f\u0066\u0063\u0053\u0068\u0061\u0070\u0065\u006ca\u0079\u006f\u0075\u0074");};func (_babgb OfcST_ExtrusionPlane )Validate ()error {return _babgb .ValidateWithPath ("")};func NewOfcCT_Callout ()*OfcCT_Callout {_ecadgf :=&OfcCT_Callout {};return _ecadgf };func (_aabcg *CT_Path )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0070\u0061\u0074\u0068";};if _aabcg .VAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0076"},Value :_fb .Sprintf ("\u0025\u0076",*_aabcg .VAttr )});};if _aabcg .LimoAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006c\u0069\u006d\u006f"},Value :_fb .Sprintf ("\u0025\u0076",*_aabcg .LimoAttr )});};if _aabcg .TextboxrectAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"t\u0065\u0078\u0074\u0062\u006f\u0078\u0072\u0065\u0063\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_aabcg .TextboxrectAttr )});};if _aabcg .FillokAttr !=_fc .ST_TrueFalseUnset {_eedg ,_bacg :=_aabcg .FillokAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c\u006f\u006b"});if _bacg !=nil {return _bacg ;};start .Attr =append (start .Attr ,_eedg );};if _aabcg .StrokeokAttr !=_fc .ST_TrueFalseUnset {_acbc ,_gecf :=_aabcg .StrokeokAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"});if _gecf !=nil {return _gecf ;};start .Attr =append (start .Attr ,_acbc );};if _aabcg .ShadowokAttr !=_fc .ST_TrueFalseUnset {_cacab ,_fgdaa :=_aabcg .ShadowokAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"});if _fgdaa !=nil {return _fgdaa ;};start .Attr =append (start .Attr ,_cacab );};if _aabcg .ArrowokAttr !=_fc .ST_TrueFalseUnset {_ffadb ,_feeg :=_aabcg .ArrowokAttr .MarshalXMLAttr (_c .Name {Local :"\u0061r\u0072\u006f\u0077\u006f\u006b"});if _feeg !=nil {return _feeg ;};start .Attr =append (start .Attr ,_ffadb );};if _aabcg .GradientshapeokAttr !=_fc .ST_TrueFalseUnset {_debdc ,_caefg :=_aabcg .GradientshapeokAttr .MarshalXMLAttr (_c .Name {Local :"\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"});if _caefg !=nil {return _caefg ;};start .Attr =append (start .Attr ,_debdc );};if _aabcg .TextpathokAttr !=_fc .ST_TrueFalseUnset {_gfgga ,_gcbd :=_aabcg .TextpathokAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"});if _gcbd !=nil {return _gcbd ;};start .Attr =append (start .Attr ,_gfgga );};if _aabcg .InsetpenokAttr !=_fc .ST_TrueFalseUnset {_adbbf ,_gaefb :=_aabcg .InsetpenokAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"});if _gaefb !=nil {return _gaefb ;};start .Attr =append (start .Attr ,_adbbf );};if _aabcg .ConnecttypeAttr !=OfcST_ConnectTypeUnset {_fgfec ,_deac :=_aabcg .ConnecttypeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"});if _deac !=nil {return _deac ;};start .Attr =append (start .Attr ,_fgfec );};if _aabcg .ConnectlocsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_aabcg .ConnectlocsAttr )});};if _aabcg .ConnectanglesAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_aabcg .ConnectanglesAttr )});};if _aabcg .ExtrusionokAttr !=_fc .ST_TrueFalseUnset {_cdgaff ,_egdf :=_aabcg .ExtrusionokAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"});if _egdf !=nil {return _egdf ;};start .Attr =append (start .Attr ,_cdgaff );};if _aabcg .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_RegroupTable and its children
|
|
|
|
func (_gcdeg *OfcCT_RegroupTable )Validate ()error {return _gcdeg .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0052\u0065\u0067r\u006f\u0075p\u0054\u0061\u0062\u006c\u0065");};func NewCT_RoundRect ()*CT_RoundRect {_fddag :=&CT_RoundRect {};return _fddag };type OfcCT_Ink struct{IAttr *string ;AnnotationAttr _fc .ST_TrueFalse ;ContentTypeAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Skew and its children, prefixing error messages with path
|
|
|
|
func (_daaf *OfcCT_Skew )ValidateWithPath (path string )error {if _ffgbcc :=_daaf .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_ffgbcc !=nil {return _ffgbcc ;};if _bdcced :=_daaf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bdcced !=nil {return _bdcced ;};return nil ;};func (_bdfdb *Fill )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _bdfdb .CT_Fill .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcInk and its children
|
|
|
|
func (_bgfae *OfcInk )Validate ()error {return _bgfae .ValidateWithPath ("\u004f\u0066\u0063\u0049\u006e\u006b");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Imagedata and its children, prefixing error messages with path
|
|
|
|
func (_cbddb *Imagedata )ValidateWithPath (path string )error {if _caeb :=_cbddb .CT_ImageData .ValidateWithPath (path );_caeb !=nil {return _caeb ;};return nil ;};func (_gdfgd *Line )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gdfgd .CT_Line =*NewCT_Line ();for _ ,_dddfe :=range start .Attr {if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_gdfgd .UserdrawnAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_gdfgd .ButtonAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_gdfgd .DgmlayoutmruAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_gdfgd .UserhiddenAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_gdfgd .CliptowrapAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gdfgd .BulletAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u006f\u006c\u0065"{_gdfgd .OleAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0068\u0072"{_gdfgd .HrAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0073\u0070\u0069\u0064"{_eeadb ,_cabbc :=_dddfe .Value ,error (nil );if _cabbc !=nil {return _cabbc ;};_gdfgd .SpidAttr =&_eeadb ;continue ;};if _dddfe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dddfe .Name .Local =="\u0068\u0072\u0073t\u0064"{_gdfgd .HrstdAttr .UnmarshalXMLAttr (_dddfe );continue ;};if _dddfe .Na
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_SignatureLine and its children, prefixing error messages with path
|
|
|
|
func (_acgac *OfcCT_SignatureLine )ValidateWithPath (path string )error {if _gggg :=_acgac .IssignaturelineAttr .ValidateWithPath (path +"/\u0049s\u0073\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065At\u0074\u0072");_gggg !=nil {return _gggg ;};if _acgac .IdAttr !=nil {if !_fc .ST_GuidPatternRe .MatchString (*_acgac .IdAttr ){return _fb .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 ,_fc .ST_GuidPatternRe ,*_acgac .IdAttr );};};if _acgac .ProvidAttr !=nil {if !_fc .ST_GuidPatternRe .MatchString (*_acgac .ProvidAttr ){return _fb .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 ,_fc .ST_GuidPatternRe ,*_acgac .ProvidAttr );};};if _cafge :=_acgac .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");_cafge !=nil {return _cafge ;};if _cabaeg :=_acgac .AllowcommentsAttr .ValidateWithPath (path +"\u002fA\u006cl\u006f\u0077\u0063\u006f\u006dm\u0065\u006et\u0073\u0041\u0074\u0074\u0072");_cabaeg !=nil {return _cabaeg ;};if _gffdbf :=_acgac .ShowsigndateAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u006f\u0077\u0073\u0069\u0067\u006e\u0064\u0061\u0074e\u0041\u0074\u0074\u0072");_gffdbf !=nil {return _gffdbf ;};if _bfgbb :=_acgac .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bfgbb !=nil {return _bfgbb ;};return nil ;};func (_cbaeabg *Rect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _cbaeabg .CT_Rect .MarshalXML (e ,start );};func (_cfefb ST_ImageAspect )Validate ()error {return _cfefb .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Stroke and its children
|
|
|
|
func (_accadc *CT_Stroke )Validate ()error {return _accadc .ValidateWithPath ("\u0043T\u005f\u0053\u0074\u0072\u006f\u006be");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcLock and its children
|
|
|
|
func (_befed *OfcLock )Validate ()error {return _befed .ValidateWithPath ("\u004ff\u0063\u004c\u006f\u0063\u006b");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Complex and its children
|
|
|
|
func (_afggg *OfcCT_Complex )Validate ()error {return _afggg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};func NewOfcInk ()*OfcInk {_ccded :=&OfcInk {};_ccded .OfcCT_Ink =*NewOfcCT_Ink ();return _ccded };func (_fbcddd *ST_StrokeLineStyle )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_fbcddd =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_fbcddd =1;case "\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e":*_fbcddd =2;case "\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k":*_fbcddd =3;case "\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n":*_fbcddd =4;case "\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e":*_fbcddd =5;};return nil ;};func (_gfebgc *OfcST_ColorMode )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dfgcd ,_dcadc :=d .Token ();if _dcadc !=nil {return _dcadc ;};if _dabdc ,_fbadeb :=_dfgcd .(_c .EndElement );_fbadeb &&_dabdc .Name ==start .Name {*_gfebgc =1;return nil ;};if _edgfg ,_bbefe :=_dfgcd .(_c .CharData );!_bbefe {return _fb .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",_dfgcd );}else {switch string (_edgfg ){case "":*_gfebgc =0;case "\u0061\u0075\u0074\u006f":*_gfebgc =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_gfebgc =2;};};_dfgcd ,_dcadc =d .Token ();if _dcadc !=nil {return _dcadc ;};if _dafbg ,_bgcg :=_dfgcd .(_c .EndElement );_bgcg &&_dafbg .Name ==start .Name {return nil ;};return _fb .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",_dfgcd );};func NewCT_Handles ()*CT_Handles {_bfggc :=&CT_Handles {};return _bfggc };func (_affc ST_FillType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_affc .String (),start );};func (_dbeec ST_StrokeArrowType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_dbeec .String (),start );};func (_gfcc *AG_Type )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _gfcc .TypeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_gfcc .TypeAttr )});};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_Type and its children
|
|
|
|
func (_bcbb *AG_Type )Validate ()error {return _bcbb .ValidateWithPath ("\u0041G\u005f\u0054\u0079\u0070\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_EquationXml and its children, prefixing error messages with path
|
|
|
|
func (_agbde *OfcCT_EquationXml )ValidateWithPath (path string )error {return nil };func (_cfeba *CT_Rect )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cfbb :=range start .Attr {if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_geaec ,_aecdg :=_cfbb .Value ,error (nil );if _aecdg !=nil {return _aecdg ;};_cfeba .BordertopcolorAttr =&_geaec ;continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_cfeba .BulletAttr .UnmarshalXMLAttr (_cfbb );continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u0068\u0072"{_cfeba .HrAttr .UnmarshalXMLAttr (_cfbb );continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_cfeba .CliptowrapAttr .UnmarshalXMLAttr (_cfbb );continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u0068\u0072\u0073t\u0064"{_cfeba .HrstdAttr .UnmarshalXMLAttr (_cfbb );continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u006f\u006c\u0065"{_cfeba .OleAttr .UnmarshalXMLAttr (_cfbb );continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_cfeba .HrnoshadeAttr .UnmarshalXMLAttr (_cfbb );continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u006f\u006e\u0065\u0064"{_cfeba .OnedAttr .UnmarshalXMLAttr (_cfbb );continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u0068\u0072\u0070c\u0074"{_cadab ,_eefge :=_f .ParseFloat (_cfbb .Value ,64);if _eefge !=nil {return _eefge ;};_ecafe :=float32 (_cadab );_cfeba .HrpctAttr =&_ecafe ;continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfbb .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_cfeba .OleiconAttr .UnmarshalXMLAttr (_cfbb );continue ;};if _cfbb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcDiagram and its children, prefixing error messages with path
|
|
|
|
func (_fgaee *OfcDiagram )ValidateWithPath (path string )error {if _eaegd :=_fgaee .OfcCT_Diagram .ValidateWithPath (path );_eaegd !=nil {return _eaegd ;};return nil ;};func NewEG_ShapeElements ()*EG_ShapeElements {_eeagf :=&EG_ShapeElements {};return _eeagf };func (_fdgab *Stroke )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fdgab .CT_Stroke =*NewCT_Stroke ();for _ ,_gfgee :=range start .Attr {if _gfgee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfgee .Name .Local =="\u0072\u0065\u006ci\u0064"{_agcgc ,_cfabeb :=_gfgee .Value ,error (nil );if _cfabeb !=nil {return _cfabeb ;};_fdgab .RelidAttr =&_agcgc ;continue ;};if _gfgee .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"&&_gfgee .Name .Local =="\u0069\u0064"{_dgaaa ,_gfebg :=_gfgee .Value ,error (nil );if _gfebg !=nil {return _gfebg ;};_fdgab .RIdAttr =&_dgaaa ;continue ;};if _gfgee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfgee .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_fdgab .ForcedashAttr .UnmarshalXMLAttr (_gfgee );continue ;};if _gfgee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfgee .Name .Local =="\u0074\u0069\u0074l\u0065"{_ffcgf ,_feffd :=_gfgee .Value ,error (nil );if _feffd !=nil {return _feffd ;};_fdgab .TitleAttr =&_ffcgf ;continue ;};if _gfgee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfgee .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_abeab ,_bdbbe :=_gfgee .Value ,error (nil );if _bdbbe !=nil {return _bdbbe ;};_fdgab .AlthrefAttr =&_abeab ;continue ;};if _gfgee .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gfgee .Name .Local =="\u0068\u0072\u0065\u0066"{_gedfgg ,_egfcc :=_gfgee .Value ,error (nil );if _egfcc !=nil {return _egfcc ;};_fdgab .HrefAttr =&_gedfgg ;continue ;};if _gfgee .Name .Local =="\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"{_eeeae ,_dfbf :=_gfgee .Value ,error (nil );if _dfbf !=nil {return _dfbf ;};_fdgab .ImagesizeAttr =&_eeeae ;continue ;};if _gfgee .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_fdgab .StartarrowlengthAttr .UnmarshalXMLAttr (_gfgee );continue ;};if _gfgee .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_fdgab .JoinstyleAttr .UnmarshalXMLAttr (_gfgee );continue ;};if _gfgee .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_fdgab .EndarrowAttr .UnmarshalXMLAttr (_gfgee );continue ;};if _gfgee .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_fgaaa ,_dfggc :=_gfgee .Value ,error (nil );if _dfggc !=nil {return _dfggc ;};_fdgab .DashstyleAttr =&_fgaaa ;continue ;};if _gfgee .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_fdgab .EndarrowwidthAttr .UnmarshalXMLAttr (_gfgee );continue ;};if _gfgee .Name .Local =="\u0073\u0072\u0063"{_faacg
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_ImageAttributes and its children
|
|
|
|
func (_gedb *AG_ImageAttributes )Validate ()error {return _gedb .ValidateWithPath ("\u0041G\u005fI\u006d\u0061\u0067\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};func NewCT_Image ()*CT_Image {_ceda :=&CT_Image {};return _ceda };func (_eagec *OfcST_OLEType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fgaed ,_edafd :=d .Token ();if _edafd !=nil {return _edafd ;};if _gbeefg ,_adeae :=_fgaed .(_c .EndElement );_adeae &&_gbeefg .Name ==start .Name {*_eagec =1;return nil ;};if _ecag ,_adcbgd :=_fgaed .(_c .CharData );!_adcbgd {return _fb .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",_fgaed );}else {switch string (_ecag ){case "":*_eagec =0;case "\u0045\u006d\u0062e\u0064":*_eagec =1;case "\u004c\u0069\u006e\u006b":*_eagec =2;};};_fgaed ,_edafd =d .Token ();if _edafd !=nil {return _edafd ;};if _gdgcg ,_begbd :=_fgaed .(_c .EndElement );_begbd &&_gdgcg .Name ==start .Name {return nil ;};return _fb .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",_fgaed );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Curve and its children, prefixing error messages with path
|
|
|
|
func (_edcf *CT_Curve )ValidateWithPath (path string )error {for _bfgf ,_geb :=range _edcf .EG_ShapeElements {if _aeed :=_geb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bfgf ));_aeed !=nil {return _aeed ;};};if _dead :=_edcf .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_dead !=nil {return _dead ;};if _aedbe :=_edcf .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_aedbe !=nil {return _aedbe ;};if _aefe :=_edcf .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_aefe !=nil {return _aefe ;};if _cbbg :=_edcf .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cbbg !=nil {return _cbbg ;};if _edfca :=_edcf .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_edfca !=nil {return _edfca ;};if _bdga :=_edcf .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_bdga !=nil {return _bdga ;};if _cdge :=_edcf .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cdge !=nil {return _cdge ;};if _bcdg :=_edcf .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_bcdg !=nil {return _bcdg ;};if _edfg :=_edcf .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_edfg !=nil {return _edfg ;};if _dabe :=_edcf .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dabe !=nil {return _dabe ;};if _cbccc :=_edcf .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_cbccc !=nil {return _cbccc ;};if _bcae :=_edcf .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bcae !=nil {return _bcae ;};if _bcda :=_edcf .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_bcda !=nil {return _bcda ;};if _gdfd :=_edcf .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_gdfd !=nil {return _gdfd ;};if _fagga :=_edcf .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_fagga !=nil {return _fagga ;};if _eaec :=_edcf .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_eaec !=nil {return _eaec ;};if _ebfg :=_edcf .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_ebfg !=nil {return _ebfg ;};if _fcecd :=_edcf .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fcecd !=nil {return _fcecd ;};if _fcff :=_edcf .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_fcff !=nil {return _fcff ;};if _fbcg :=_edcf .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_fbcg !=nil {return _fbcg ;};if _dcdea :=_edcf .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_dcdea !=nil {return _dcdea ;};if _fabc :=_edcf .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_fabc !=nil {return _fabc ;};if _fgag :=_edcf .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_fgag !=nil {return _fgag ;};if _baa :=_edc
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_AllShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_bdc *AG_AllShapeAttributes )ValidateWithPath (path string )error {if _bbb :=_bdc .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bbb !=nil {return _bbb ;};if _fdg :=_bdc .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fdg !=nil {return _fdg ;};if _gge :=_bdc .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gge !=nil {return _gge ;};if _eada :=_bdc .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_eada !=nil {return _eada ;};if _fagd :=_bdc .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fagd !=nil {return _fagd ;};if _ec :=_bdc .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ec !=nil {return _ec ;};if _fcg :=_bdc .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_fcg !=nil {return _fcg ;};if _gdb :=_bdc .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_gdb !=nil {return _gdb ;};if _dca :=_bdc .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_dca !=nil {return _dca ;};if _gba :=_bdc .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_gba !=nil {return _gba ;};if _cfd :=_bdc .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_cfd !=nil {return _cfd ;};if _fed :=_bdc .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_fed !=nil {return _fed ;};if _egg :=_bdc .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_egg !=nil {return _egg ;};return nil ;};func NewOfcCT_Fill ()*OfcCT_Fill {_ggece :=&OfcCT_Fill {};return _ggece };func (_ddceg *OfcColumn )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCallout and its children
|
|
|
|
func (_cgfdg *OfcCallout )Validate ()error {return _cgfdg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Rules and its children
|
|
|
|
func (_fbdg *OfcCT_Rules )Validate ()error {return _fbdg .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0052\u0075\u006c\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Entry and its children
|
|
|
|
func (_aggg *OfcCT_Entry )Validate ()error {return _aggg .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0045\u006e\u0074\u0072\u0079");};type AG_StrokeAttributes struct{OnAttr _fc .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 _fc .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 _fc .ST_TrueFalse ;IdAttr *string ;InsetpenAttr _fc .ST_TrueFalse ;RelidAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Complex and its children, prefixing error messages with path
|
|
|
|
func (_aebac *OfcCT_Complex )ValidateWithPath (path string )error {if _fcbgd :=_aebac .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fcbgd !=nil {return _fcbgd ;};return nil ;};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcDiagram and its children
|
|
|
|
func (_cbgcd *OfcDiagram )Validate ()error {return _cbgcd .ValidateWithPath ("\u004f\u0066\u0063\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Background and its children
|
|
|
|
func (_ccgd *CT_Background )Validate ()error {return _ccgd .ValidateWithPath ("\u0043\u0054\u005f\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};func (_gedfge *ST_StrokeJoinStyle )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_gedfge =0;case "\u0072\u006f\u0075n\u0064":*_gedfge =1;case "\u0062\u0065\u0076e\u006c":*_gedfge =2;case "\u006d\u0069\u0074e\u0072":*_gedfge =3;};return nil ;};func (_dedf *OfcInk )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f\u003a\u0069n\u006b";return _dedf .OfcCT_Ink .MarshalXML (e ,start );};func (_fagbb *OfcST_ExtrusionRender )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cddbd ,_cgegb :=d .Token ();if _cgegb !=nil {return _cgegb ;};if _ebffe ,_aegffe :=_cddbd .(_c .EndElement );_aegffe &&_ebffe .Name ==start .Name {*_fagbb =1;return nil ;};if _gacgg ,_fgbgc :=_cddbd .(_c .CharData );!_fgbgc {return _fb .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",_cddbd );}else {switch string (_gacgg ){case "":*_fagbb =0;case "\u0073\u006f\u006ci\u0064":*_fagbb =1;case "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de":*_fagbb =2;case "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065":*_fagbb =3;};};_cddbd ,_cgegb =d .Token ();if _cgegb !=nil {return _cgegb ;};if _aegafc ,_bcdccf :=_cddbd .(_c .EndElement );_bcdccf &&_aegafc .Name ==start .Name {return nil ;};return _fb .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",_cddbd );};func (_babbf *CT_Shadow )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0073\u0068\u0061\u0064\u006f\u0077";};if
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Image and its children
|
|
|
|
func (_fadd *CT_Image )Validate ()error {return _fadd .ValidateWithPath ("\u0043\u0054\u005f\u0049\u006d\u0061\u0067\u0065");};func (_dgcea ST_ImageAspect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_dgcea .String (),start );};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Textbox and its children
|
|
|
|
func (_begc *CT_Textbox )Validate ()error {return _begc .ValidateWithPath ("\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Polyline and its children
|
|
|
|
func (_aegfc *Polyline )Validate ()error {return _aegfc .ValidateWithPath ("\u0050\u006f\u006c\u0079\u006c\u0069\u006e\u0065");};func NewAG_ImageAttributes ()*AG_ImageAttributes {_fge :=&AG_ImageAttributes {};return _fge };func (_abbf *OfcCT_Relation )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ccadd :=range start .Attr {if _ccadd .Name .Local =="\u0069\u0064\u0073r\u0063"{_gbacb ,_bggcb :=_ccadd .Value ,error (nil );if _bggcb !=nil {return _bggcb ;};_abbf .IdsrcAttr =&_gbacb ;continue ;};if _ccadd .Name .Local =="\u0069\u0064\u0064\u0065\u0073\u0074"{_aaef ,_dgacc :=_ccadd .Value ,error (nil );if _dgacc !=nil {return _dgacc ;};_abbf .IddestAttr =&_aaef ;continue ;};if _ccadd .Name .Local =="\u0069\u0064\u0063\u006e\u0074\u0072"{_ecdee ,_cdecd :=_ccadd .Value ,error (nil );if _cdecd !=nil {return _cdecd ;};_abbf .IdcntrAttr =&_ecdee ;continue ;};if _ccadd .Name .Local =="\u0065\u0078\u0074"{_abbf .ExtAttr .UnmarshalXMLAttr (_ccadd );continue ;};};for {_cdcfc ,_egfade :=d .Token ();if _egfade !=nil {return _fb .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",_egfade );};if _faedg ,_ffecbd :=_cdcfc .(_c .EndElement );_ffecbd &&_faedg .Name ==start .Name {break ;};};return nil ;};func (_cffbfd *ST_FillType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_afcecg ,_gbdga :=d .Token ();if _gbdga !=nil {return _gbdga ;};if _bgdfg ,_cfede :=_afcecg .(_c .EndElement );_cfede &&_bgdfg .Name ==start .Name {*_cffbfd =1;return nil ;};if _gbffa ,_daebd :=_afcecg .(_c .CharData );!_daebd {return _fb .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",_afcecg );}else {switch string (_gbffa ){case "":*_cffbfd =0;case "\u0073\u006f\u006ci\u0064":*_cffbfd =1;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_cffbfd =2;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_cffbfd =3;case "\u0074\u0069\u006c\u0065":*_cffbfd =4;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_cffbfd =5;case "\u0066\u0072\u0061m\u0065":*_cffbfd =6;};};_afcecg ,_gbdga =d .Token ();if _gbdga !=nil {return _gbdga ;};if _gacfb ,_bgcbdg :=_afcecg .(_c .EndElement );_bgcbdg &&_gacfb .Name ==start .Name {return nil ;};return _fb .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",_afcecg );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_IdMap and its children
|
|
|
|
func (_gbgcae *OfcCT_IdMap )Validate ()error {return _gbgcae .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0049\u0064\u004d\u0061\u0070");};func (_cac *AG_ImageAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cgc :=range start .Attr {if _cgc .Name .Local =="\u0073\u0072\u0063"{_agd ,_fdca :=_cgc .Value ,error (nil );if _fdca !=nil {return _fdca ;};_cac .SrcAttr =&_agd ;continue ;};if _cgc .Name .Local =="\u0063\u0072\u006f\u0070\u006c\u0065\u0066\u0074"{_edbd ,_dbfb :=_cgc .Value ,error (nil );if _dbfb !=nil {return _dbfb ;};_cac .CropleftAttr =&_edbd ;continue ;};if _cgc .Name .Local =="\u0063r\u006f\u0070\u0074\u006f\u0070"{_egec ,_eef :=_cgc .Value ,error (nil );if _eef !=nil {return _eef ;};_cac .CroptopAttr =&_egec ;continue ;};if _cgc .Name .Local =="\u0063r\u006f\u0070\u0072\u0069\u0067\u0068t"{_gca ,_fac :=_cgc .Value ,error (nil );if _fac !=nil {return _fac ;};_cac .CroprightAttr =&_gca ;continue ;};if _cgc .Name .Local =="\u0063\u0072\u006f\u0070\u0062\u006f\u0074\u0074\u006f\u006d"{_dgf ,_baf :=_cgc .Value ,error (nil );if _baf !=nil {return _baf ;};_cac .CropbottomAttr =&_dgf ;continue ;};if _cgc .Name .Local =="\u0067\u0061\u0069\u006e"{_afa ,_fagg :=_cgc .Value ,error (nil );if _fagg !=nil {return _fagg ;};_cac .GainAttr =&_afa ;continue ;};if _cgc .Name .Local =="\u0062\u006c\u0061\u0063\u006b\u006c\u0065\u0076\u0065\u006c"{_bbdbd ,_daf :=_cgc .Value ,error (nil );if _daf !=nil {return _daf ;};_cac .BlacklevelAttr =&_bbdbd ;continue ;};if _cgc .Name .Local =="\u0067\u0061\u006dm\u0061"{_bfa ,_feed :=_cgc .Value ,error (nil );if _feed !=nil {return _feed ;};_cac .GammaAttr =&_bfa ;continue ;};if _cgc .Name .Local =="\u0067r\u0061\u0079\u0073\u0063\u0061\u006ce"{_cac .GrayscaleAttr .UnmarshalXMLAttr (_cgc );continue ;};if _cgc .Name .Local =="\u0062i\u006c\u0065\u0076\u0065\u006c"{_cac .BilevelAttr .UnmarshalXMLAttr (_cgc );continue ;};};for {_fba ,_cdf :=d .Token ();if _cdf !=nil {return _fb .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",_cdf );};if _gcfd ,_ffba :=_fba .(_c .EndElement );_ffba &&_gcfd .Name ==start .Name {break ;};};return nil ;};func (_dcedaa *OfcST_FillType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_dcedaa =0;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072":*_dcedaa =1;case "\u0073\u006f\u006ci\u0064":*_dcedaa =2;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_dcedaa =3;case "\u0074\u0069\u006c\u0065":*_dcedaa =4;case "\u0066\u0072\u0061m\u0065":*_dcedaa =5;case "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064":*_dcedaa =6;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_dcedaa =7;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_dcedaa =8;case "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064":*_dcedaa =9;};return nil ;};func (_ebge OfcST_HrAlign )ValidateWithPath (path string )error {switch _ebge {case 0,1,2,3:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ebge ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Diagram and its children, prefixing error messages with path
|
|
|
|
func (_dccgf *OfcCT_Diagram )ValidateWithPath (path string )error {if _ccabe :=_dccgf .AutoformatAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u0066\u006f\u0072\u006d\u0061\u0074\u0041\u0074\u0074\u0072");_ccabe !=nil {return _ccabe ;};if _efaba :=_dccgf .ReverseAttr .ValidateWithPath (path +"\u002f\u0052\u0065v\u0065\u0072\u0073\u0065\u0041\u0074\u0074\u0072");_efaba !=nil {return _efaba ;};if _ecfac :=_dccgf .AutolayoutAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u006c\u0061\u0079\u006f\u0075\u0074\u0041\u0074\u0074\u0072");_ecfac !=nil {return _ecfac ;};if _dccgf .Relationtable !=nil {if _dcgfg :=_dccgf .Relationtable .ValidateWithPath (path +"\u002f\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006et\u0061\u0062\u006c\u0065");_dcgfg !=nil {return _dcgfg ;};};if _agcfd :=_dccgf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_agcfd !=nil {return _agcfd ;};return nil ;};type Path struct{CT_Path };func (_egfdc ST_EditAs )Validate ()error {return _egfdc .ValidateWithPath ("")};const (OfcST_OLETypeUnset OfcST_OLEType =0;OfcST_OLETypeEmbed OfcST_OLEType =1;OfcST_OLETypeLink OfcST_OLEType =2;);func (_agebg *OfcCT_ColorMru )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0063\u006f\u006c\u006f\u0072\u006d\u0072\u0075";};if _agebg .ColorsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_agebg .ColorsAttr )});};if _agebg .ExtAttr !=ST_ExtUnset {_gbbeg ,_afcb :=_agebg .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _afcb !=nil {return _afcb ;};start .Attr =append (start .Attr ,_gbbeg );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_fedac ST_ShadowType )String ()string {switch _fedac {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 "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcLeft and its children, prefixing error messages with path
|
|
|
|
func (_fdbcef *OfcLeft )ValidateWithPath (path string )error {if _dgbde :=_fdbcef .OfcCT_StrokeChild .ValidateWithPath (path );_dgbde !=nil {return _dgbde ;};return nil ;};func (_acec *AG_Path )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bfg :=range start .Attr {if _bfg .Name .Local =="\u0070\u0061\u0074\u0068"{_gdgg ,_gdbf :=_bfg .Value ,error (nil );if _gdbf !=nil {return _gdbf ;};_acec .PathAttr =&_gdgg ;continue ;};};for {_egda ,_ddbf :=d .Token ();if _ddbf !=nil {return _fb .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_ddbf );};if _efge ,_gbbe :=_egda .(_c .EndElement );_gbbe &&_efge .Name ==start .Name {break ;};};return nil ;};func (_dbdgb OfcST_ConnectType )ValidateWithPath (path string )error {switch _dbdgb {case 0,1,2,3,4:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dbdgb ));};return nil ;};func (_faddc ST_StrokeEndCap )Validate ()error {return _faddc .ValidateWithPath ("")};type ST_StrokeEndCap byte ;func (_effegf *OfcCT_Extrusion )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="o\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e";};if _effegf .OnAttr !=_fc .ST_TrueFalseUnset {_bbcgd ,_cbced :=_effegf .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _cbced !=nil {return _cbced ;};start .Attr =append (start .Attr ,_bbcgd );};if _effegf .TypeAttr !=OfcST_ExtrusionTypeUnset {_dbgbfb ,_gecaa :=_effegf .TypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0079\u0070\u0065"});if _gecaa !=nil {return _gecaa ;};start .Attr =append (start .Attr ,_dbgbfb );};if _effegf .RenderAttr !=OfcST_ExtrusionRenderUnset {_baffd ,_cfgga :=_effegf .RenderAttr .MarshalXMLAttr (_c .Name {Local :"\u0072\u0065\u006e\u0064\u0065\u0072"});if _cfgga !=nil {return _cfgga ;};start .Attr =append (start .Attr ,_baffd );};if _effegf .ViewpointoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_effegf .ViewpointoriginAttr )});};if _effegf .ViewpointAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0076i\u0065\u0077\u0070\u006f\u0069\u006et"},Value :_fb .Sprintf ("\u0025\u0076",*_effegf .ViewpointAttr )});};if _effegf .PlaneAttr !=OfcST_ExtrusionPlaneUnset {_bbfa ,_aegaf :=_effegf .PlaneAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u006c\u0061n\u0065"});if _aegaf !=nil {return _aegaf ;};start .Attr =append (start .Attr ,_bbfa );};if _effegf .SkewangleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073k\u0065\u0077\u0061\u006e\u0067\u006ce"},Value :_fb .Sprintf ("\u0025\u0076",*_effegf .SkewangleAttr )});};if _effegf .SkewamtAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073k\u0065\u0077\u0061\u006d\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_effegf .SkewamtAttr )});};if _effegf .ForedepthAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066o\u0072\u0065\u0064\u0065\u0070\u0074h"},Value :_fb .Sprintf ("\u0025\u0076",*_effegf .ForedepthAttr )});};if _effegf .BackdepthAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"},Value :_fb .Sprintf ("\u0025\u0076",*_effegf .BackdepthAttr )});};if _effegf .OrientationAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u0072\u0069\u0065\u006e\u0074\u0061\u0074\u0069\u006f\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_effegf .OrientationAttr )});};if _effegf .OrientationangleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u0072i\u0065\u006e\u0074a\u0074\u0069\u006f\u006e\u0061\u006e\u0067\u006c\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_effegf .OrientationangleAttr )});};if _effegf .Lo
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_fdbdba *Shapetype )ValidateWithPath (path string )error {if _cbdee :=_fdbdba .CT_Shapetype .ValidateWithPath (path );_cbdee !=nil {return _cbdee ;};return nil ;};func (_cfcbb *OfcCT_ColorMenu )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fbffc :=range start .Attr {if _fbffc .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_fgac ,_aeefe :=_fbffc .Value ,error (nil );if _aeefe !=nil {return _aeefe ;};_cfcbb .StrokecolorAttr =&_fgac ;continue ;};if _fbffc .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_acad ,_cefgf :=_fbffc .Value ,error (nil );if _cefgf !=nil {return _cefgf ;};_cfcbb .FillcolorAttr =&_acad ;continue ;};if _fbffc .Name .Local =="s\u0068\u0061\u0064\u006f\u0077\u0063\u006f\u006c\u006f\u0072"{_ebebf ,_bdeca :=_fbffc .Value ,error (nil );if _bdeca !=nil {return _bdeca ;};_cfcbb .ShadowcolorAttr =&_ebebf ;continue ;};if _fbffc .Name .Local =="\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006ec\u006f\u006c\u006f\u0072"{_dfafc ,_efbff :=_fbffc .Value ,error (nil );if _efbff !=nil {return _efbff ;};_cfcbb .ExtrusioncolorAttr =&_dfafc ;continue ;};if _fbffc .Name .Local =="\u0065\u0078\u0074"{_cfcbb .ExtAttr .UnmarshalXMLAttr (_fbffc );continue ;};};for {_cabgd ,_fcbbf :=d .Token ();if _fcbbf !=nil {return _fb .Errorf ("p\u0061\u0072\u0073\u0069\u006e\u0067 \u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006co\u0072\u004d\u0065n\u0075:\u0020\u0025\u0073",_fcbbf );};if _becf ,_bdgcd :=_cabgd .(_c .EndElement );_bdgcd &&_becf .Name ==start .Name {break ;};};return nil ;};func (_gfcfe *OfcCT_ClipPath )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0063\u006c\u0069\u0070\u0070\u0061\u0074\u0068";};start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0076"},Value :_fb .Sprintf ("\u0025\u0076",_gfcfe .VAttr )});e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_dbgg *ST_StrokeEndCap )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cacec ,_afacc :=d .Token ();if _afacc !=nil {return _afacc ;};if _aacbg ,_bggff :=_cacec .(_c .EndElement );_bggff &&_aacbg .Name ==start .Name {*_dbgg =1;return nil ;};if _edgea ,_bccdd :=_cacec .(_c .CharData );!_bccdd {return _fb .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",_cacec );}else {switch string (_edgea ){case "":*_dbgg =0;case "\u0066\u006c\u0061\u0074":*_dbgg =1;case "\u0073\u0071\u0075\u0061\u0072\u0065":*_dbgg =2;case "\u0072\u006f\u0075n\u0064":*_dbgg =3;};};_cacec ,_afacc =d .Token ();if _afacc !=nil {return _afacc ;};if _bgcbe ,_cefdg :=_cacec .(_c .EndElement );_cefdg &&_bgcbe .Name ==start .Name {return nil ;};return _fb .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",_cacec );};type AG_Fill struct{FilledAttr _fc .ST_TrueFalse ;FillcolorAttr *string ;};type CT_Oval struct{EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _fc .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _fc .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _fc .ST_TrueFalse ;ButtonAttr _fc .ST_TrueFalse ;UserhiddenAttr _fc .ST_TrueFalse ;BulletAttr _fc .ST_TrueFalse ;HrAttr _fc .ST_TrueFalse ;HrstdAttr _fc .ST_TrueFalse ;HrnoshadeAttr _fc .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _fc .ST_TrueFalse ;AllowoverlapAttr _fc .ST_TrueFalse ;UserdrawnAttr _fc .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Roundrect and its children
|
|
|
|
func (_cgccbc *Roundrect )Validate ()error {return _cgccbc .ValidateWithPath ("\u0052o\u0075\u006e\u0064\u0072\u0065\u0063t");};func (_efca *OfcST_ScreenSize )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bgbee ,_fedbd :=d .Token ();if _fedbd !=nil {return _fedbd ;};if _gabga ,_bdba :=_bgbee .(_c .EndElement );_bdba &&_gabga .Name ==start .Name {*_efca =1;return nil ;};if _ggdf ,_edfga :=_bgbee .(_c .CharData );!_edfga {return _fb .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",_bgbee );}else {switch string (_ggdf ){case "":*_efca =0;case "\u00354\u0034\u002c\u0033\u0037\u0036":*_efca =1;case "\u00364\u0030\u002c\u0034\u0038\u0030":*_efca =2;case "\u00372\u0030\u002c\u0035\u0031\u0032":*_efca =3;case "\u00380\u0030\u002c\u0036\u0030\u0030":*_efca =4;case "\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038":*_efca =5;case "\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032":*_efca =6;};};_bgbee ,_fedbd =d .Token ();if _fedbd !=nil {return _fedbd ;};if _fgbba ,_faeba :=_bgbee .(_c .EndElement );_faeba &&_fgbba .Name ==start .Name {return nil ;};return _fb .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",_bgbee );};func (_cagbc *OfcST_ExtrusionRender )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_cagbc =0;case "\u0073\u006f\u006ci\u0064":*_cagbc =1;case "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de":*_cagbc =2;case "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065":*_cagbc =3;};return nil ;};func (_cefgg *OfcExtrusion )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cefgg .OfcCT_Extrusion =*NewOfcCT_Extrusion ();for _ ,_adgca :=range start .Attr {if _adgca .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_cefgg .ColormodeAttr .UnmarshalXMLAttr (_adgca );continue ;};if _adgca .Name .Local =="\u0063\u006f\u006co\u0072"{_dccaf ,_dcgad :=_adgca .Value ,error (nil );if _dcgad !=nil {return _dcgad ;};_cefgg .ColorAttr =&_dccaf ;continue ;};if _adgca .Name .Local =="\u0074\u0079\u0070\u0065"{_cefgg .TypeAttr .UnmarshalXMLAttr (_adgca );continue ;};if _adgca .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_cbage ,_efdbg :=_f .ParseFloat (_adgca .Value ,64);if _efdbg !=nil {return _efdbg ;};_badbg :=float32 (_cbage );_cefgg .ShininessAttr =&_badbg ;continue ;};if _adgca .Name .Local =="\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"{_fbfcfe ,_cedcg :=_adgca .Value ,error (nil );if _cedcg !=nil {return _cedcg ;};_cefgg .ViewpointoriginAttr =&_fbfcfe ;continue ;};if _adgca .Name .Local =="s\u0070\u0065\u0063\u0075\u006c\u0061\u0072\u0069\u0074\u0079"{_dddec ,_bacbf :=_adgca .Value ,error (nil );if _bacbf !=nil {return _bacbf ;};_cefgg .SpecularityAttr =&_dddec ;continue ;};if _adgca .Name .Local =="\u0070\u006c\u0061n\u0065"{_cefgg .PlaneAttr .UnmarshalXMLAttr (_adgca );continue ;};if _adgca .Name .Local =="\u0064i\u0066\u0066\u0075\u0073\u0069\u0074y"{_fdgff ,_egdga :=_adgca .Value ,error (nil );if _egdga !=nil {return _egdga ;};_cefgg .DiffusityAttr =&_fdgff ;continue ;};if _adgca .Name .Local =="\u0073k\u0065\u0077\u0061\u006d\u0074"{_efgeg ,_ddcdf :=_adgca .Value ,error (nil );if _ddcdf !=nil {return _ddcdf ;};_cefgg .SkewamtAttr =&_efgeg ;continue ;};if _adgca .Name .Local =="\u006d\u0065\u0074a\u006c"{_cefgg .MetalAttr .UnmarshalXMLAttr (_adgca );continue ;};if _adgca .Name .Local =="\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"{_eabbd ,_cfdf :=_adgca .Value ,error (nil );if _cfdf !=nil {return _cfdf ;};_cefgg .BackdepthAttr =&_eabbd ;continue ;};if _adgca .Name .Local =="\u0065\u0064\u0067\u0065"{_eggec ,_addea :=_adgca .Value ,error (nil );if _addea !=nil {return _addea ;};_cefgg .EdgeAttr =&_eggec ;continue ;};if _adgca .Name .Local =="l\u0069\u0067\u0068\u0074\u006c\u0065\u0076\u0065\u006c\u0032"{_cffbea ,_gcbad :=_adgca .Value ,error (nil );if _gcbad !=nil {return _gcbad ;};_cef
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcEquationxml and its children, prefixing error messages with path
|
|
|
|
func (_ggcee *OfcEquationxml )ValidateWithPath (path string )error {if _ecbfe :=_ggcee .OfcCT_EquationXml .ValidateWithPath (path );_ecbfe !=nil {return _ecbfe ;};return nil ;};func (_dddeeb *Handles )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dddeeb .CT_Handles =*NewCT_Handles ();_bebgdd :for {_aadfc ,_abcf :=d .Token ();if _abcf !=nil {return _abcf ;};switch _daaeb :=_aadfc .(type ){case _c .StartElement :switch _daaeb .Name {case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0068"}:_effdf :=NewCT_H ();if _ceeg :=d .DecodeElement (_effdf ,&_daaeb );_ceeg !=nil {return _ceeg ;};_dddeeb .H =append (_dddeeb .H ,_effdf );default:_ac .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",_daaeb .Name );if _aacba :=d .Skip ();_aacba !=nil {return _aacba ;};};case _c .EndElement :break _bebgdd ;case _c .CharData :};};return nil ;};func NewOfcColumn ()*OfcColumn {_ddae :=&OfcColumn {};_ddae .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _ddae ;};func (_egcad ST_StrokeArrowLength )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_eecec :=_c .Attr {};_eecec .Name =name ;switch _egcad {case ST_StrokeArrowLengthUnset :_eecec .Value ="";case ST_StrokeArrowLengthShort :_eecec .Value ="\u0073\u0068\u006fr\u0074";case ST_StrokeArrowLengthMedium :_eecec .Value ="\u006d\u0065\u0064\u0069\u0075\u006d";case ST_StrokeArrowLengthLong :_eecec .Value ="\u006c\u006f\u006e\u0067";};return _eecec ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_SignatureLine and its children
|
|
|
|
func (_abefe *OfcCT_SignatureLine )Validate ()error {return _abefe .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u004c\u0069\u006e\u0065");};type OfcShapedefaults struct{OfcCT_ShapeDefaults };func NewLine ()*Line {_ffbed :=&Line {};_ffbed .CT_Line =*NewCT_Line ();return _ffbed };func (_fbd *AG_ShapeAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_geg :=range start .Attr {if _geg .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_cebf ,_ffff :=_geg .Value ,error (nil );if _ffff !=nil {return _ffff ;};_fbd .OpacityAttr =&_cebf ;continue ;};if _geg .Name .Local =="\u0073t\u0072\u006f\u006b\u0065\u0064"{_fbd .StrokedAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_debe ,_acbe :=_geg .Value ,error (nil );if _acbe !=nil {return _acbe ;};_fbd .StrokecolorAttr =&_debe ;continue ;};if _geg .Name .Local =="\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"{_becd ,_aec :=_geg .Value ,error (nil );if _aec !=nil {return _aec ;};_fbd .StrokeweightAttr =&_becd ;continue ;};if _geg .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_fbd .InsetpenAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Local =="\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"{_agf ,_aegb :=_geg .Value ,error (nil );if _aegb !=nil {return _aegb ;};_fbd .ChromakeyAttr =&_agf ;continue ;};if _geg .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_fbd .FilledAttr .UnmarshalXMLAttr (_geg );continue ;};if _geg .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_afd ,_gfce :=_geg .Value ,error (nil );if _gfce !=nil {return _gfce ;};_fbd .FillcolorAttr =&_afd ;continue ;};};for {_fcga ,_eba :=d .Token ();if _eba !=nil {return _fb .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",_eba );};if _bbcf ,_dbde :=_fcga .(_c .EndElement );_dbde &&_bbcf .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Polyline and its children, prefixing error messages with path
|
|
|
|
func (_dbeef *Polyline )ValidateWithPath (path string )error {if _debddd :=_dbeef .CT_PolyLine .ValidateWithPath (path );_debddd !=nil {return _debddd ;};return nil ;};func (_ggdbb ST_StrokeEndCap )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_ggdbb .String (),start );};func (_fgfde *OfcST_CalloutPlacement )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dcfba ,_beggg :=d .Token ();if _beggg !=nil {return _beggg ;};if _bfffb ,_bdbef :=_dcfba .(_c .EndElement );_bdbef &&_bfffb .Name ==start .Name {*_fgfde =1;return nil ;};if _abagb ,_agfecf :=_dcfba .(_c .CharData );!_agfecf {return _fb .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",_dcfba );}else {switch string (_abagb ){case "":*_fgfde =0;case "\u0074\u006f\u0070":*_fgfde =1;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_fgfde =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_fgfde =3;case "\u0075\u0073\u0065\u0072":*_fgfde =4;};};_dcfba ,_beggg =d .Token ();if _beggg !=nil {return _beggg ;};if _gdfdfe ,_dggfc :=_dcfba .(_c .EndElement );_dggfc &&_gdfdfe .Name ==start .Name {return nil ;};return _fb .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",_dcfba );};func (_ebgc OfcST_ExtrusionPlane )String ()string {switch _ebgc {case 0:return "";case 1:return "\u0058\u0059";case 2:return "\u005a\u0058";case 3:return "\u0059\u005a";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Fill and its children, prefixing error messages with path
|
|
|
|
func (_ebebe *Fill )ValidateWithPath (path string )error {if _gefca :=_ebebe .CT_Fill .ValidateWithPath (path );_gefca !=nil {return _gefca ;};return nil ;};func (_cabad ST_StrokeArrowLength )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_cabad .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcComplex and its children, prefixing error messages with path
|
|
|
|
func (_gcbagd *OfcComplex )ValidateWithPath (path string )error {if _facff :=_gcbagd .OfcCT_Complex .ValidateWithPath (path );_facff !=nil {return _facff ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Path and its children
|
|
|
|
func (_ggaa *CT_Path )Validate ()error {return _ggaa .ValidateWithPath ("\u0043T\u005f\u0050\u0061\u0074\u0068");};func NewOfcCT_ShapeDefaults ()*OfcCT_ShapeDefaults {_dbadd :=&OfcCT_ShapeDefaults {};return _dbadd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Relation and its children
|
|
|
|
func (_cdadd *OfcCT_Relation )Validate ()error {return _cdadd .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u006ca\u0074\u0069\u006f\u006e");};type OfcCT_Fill struct{TypeAttr OfcST_FillType ;ExtAttr ST_Ext ;};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Oval and its children
|
|
|
|
func (_edbfe *Oval )Validate ()error {return _edbfe .ValidateWithPath ("\u004f\u0076\u0061\u006c")};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Fill and its children
|
|
|
|
func (_gdad *CT_Fill )Validate ()error {return _gdad .ValidateWithPath ("\u0043T\u005f\u0046\u0069\u006c\u006c");};func (_ccbc OfcST_ExtrusionType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_ccbc .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Fill and its children
|
|
|
|
func (_fffce *OfcCT_Fill )Validate ()error {return _fffce .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0046\u0069\u006c\u006c");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcRight and its children
|
|
|
|
func (_fbdgc *OfcRight )Validate ()error {return _fbdgc .ValidateWithPath ("\u004f\u0066\u0063\u0052\u0069\u0067\u0068\u0074");};type CT_Line struct{FromAttr *string ;ToAttr *string ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _fc .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _fc .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _fc .ST_TrueFalse ;ButtonAttr _fc .ST_TrueFalse ;UserhiddenAttr _fc .ST_TrueFalse ;BulletAttr _fc .ST_TrueFalse ;HrAttr _fc .ST_TrueFalse ;HrstdAttr _fc .ST_TrueFalse ;HrnoshadeAttr _fc .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _fc .ST_TrueFalse ;AllowoverlapAttr _fc .ST_TrueFalse ;UserdrawnAttr _fc .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _fc .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _fc .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _fc .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _fc .ST_TrueFalse ;OleiconAttr _fc .ST_TrueFalse ;OleAttr _fc .ST_TrueFalseBlank ;PreferrelativeAttr _fc .ST_TrueFalse ;CliptowrapAttr _fc .ST_TrueFalse ;ClipAttr _fc .ST_TrueFalse ;};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;);func (_cecdg *OfcShapedefaults )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cecdg .OfcCT_ShapeDefaults =*NewOfcCT_ShapeDefaults ();for _ ,_fbade :=range start .Attr {if _fbade .Name .Local =="\u0073p\u0069\u0064\u006d\u0061\u0078"{_ffeaf ,_gcgda :=_f .ParseInt (_fbade .Value ,10,64);if _gcgda !=nil {return _gcgda ;};_cecdg .SpidmaxAttr =&_ffeaf ;continue ;};if _fbade .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_cecdg .AllowincellAttr .UnmarshalXMLAttr (_fbade );continue ;};if _fbade .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_bbaca ,_ecca :=_fbade .Value ,error (nil );if _ecca !=nil {return _ecca ;};_cecdg .StrokecolorAttr =&_bbaca ;continue ;};if _fbade .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065"{_cecdg .StrokeAttr .UnmarshalXMLAttr (_fbade );continue ;};if _fbade .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_gfecc ,_caaaa :=_fbade .Value ,error (nil );if _caaaa !=nil {return _caaaa ;};_cecdg .FillcolorAttr =&_gfecc ;continue ;};if _fbade .Name .Local =="\u0066\u0069\u006c\u006c"{_cecdg .FillAttr .UnmarshalXMLAttr (_fbade );continue ;};if _fbade .Name .Local =="\u0073\u0074\u0079l\u0065"{_fgced ,_baddg :=_fbade .Value ,error (nil );if _baddg !=nil {return _baddg ;};_cecdg .StyleAttr =&_fgced ;continue ;};if _fbade .Name .Local =="\u0065\u0078\u0074"{_cecdg .ExtAttr .UnmarshalXMLAttr (_fbade );continue ;};};_cgfgf :for {_debecb ,_ebac :=d .Token ();if _ebac !=nil {return _ebac ;};switch _dcgaa :=_debecb .(type ){case _c .StartElement :switch _dcgaa .Name {case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_cecdg .Fill =NewFill ();if _ecbff :=d .DecodeElement (_cecdg .Fill ,&_dcgaa );_ecbff !=nil {return _ecbff ;};case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0074\u0072\u006f\u006b\u0065"}:_cecdg .Stroke =NewStroke ();if _afecg :=d .DecodeEle
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcLock and its children, prefixing error messages with path
|
|
|
|
func (_aeeac *OfcLock )ValidateWithPath (path string )error {if _dcaefa :=_aeeac .OfcCT_Lock .ValidateWithPath (path );_dcaefa !=nil {return _dcaefa ;};return nil ;};func (_geegg ST_ShadowType )ValidateWithPath (path string )error {switch _geegg {case 0,1,2,3,4:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_geegg ));};return nil ;};type OfcST_RType byte ;func (_egfg *OfcFill )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_egfg .OfcCT_Fill =*NewOfcCT_Fill ();for _ ,_fgcba :=range start .Attr {if _fgcba .Name .Local =="\u0074\u0079\u0070\u0065"{_egfg .TypeAttr .UnmarshalXMLAttr (_fgcba );continue ;};if _fgcba .Name .Local =="\u0065\u0078\u0074"{_egfg .ExtAttr .UnmarshalXMLAttr (_fgcba );continue ;};};for {_fbbag ,_fbdaa :=d .Token ();if _fbdaa !=nil {return _fb .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0046\u0069\u006c\u006c\u003a\u0020\u0025\u0073",_fbdaa );};if _dgbec ,_cdfde :=_fbbag .(_c .EndElement );_cdfde &&_dgbec .Name ==start .Name {break ;};};return nil ;};func (_cfbdf *EG_ShapeElements )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_cacg :for {_cagea ,_fedfe :=d .Token ();if _fedfe !=nil {return _fedfe ;};switch _accbd :=_cagea .(type ){case _c .StartElement :switch _accbd .Name {case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0070\u0061\u0074\u0068"}:_cfbdf .Path =NewPath ();if _dfge :=d .DecodeElement (_cfbdf .Path ,&_accbd );_dfge !=nil {return _dfge ;};case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0073"}:_cfbdf .Formulas =NewFormulas ();if _dfadb :=d .DecodeElement (_cfbdf .Formulas ,&_accbd );_dfadb !=nil {return _dfadb ;};case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0068a\u006e\u0064\u006c\u0065\u0073"}:_cfbdf .Handles =NewHandles ();if _gdecg :=d .DecodeElement (_cfbdf .Handles ,&_accbd );_gdecg !=nil {return _gdecg ;};case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_cfbdf .Fill =NewFill ();if _cdac :=d .DecodeElement (_cfbdf .Fill ,&_accbd );_cdac !=nil {return _cdac ;};case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0074\u0072\u006f\u006b\u0065"}:_cfbdf .Stroke =NewStroke ();if _gdafe :=d .DecodeElement (_cfbdf .Stroke ,&_accbd );_gdafe !=nil {return _gdafe ;};case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0068\u0061\u0064\u006f\u0077"}:_cfbdf .Shadow =NewShadow ();if _ffffbd :=d .DecodeElement (_cfbdf .Shadow ,&_accbd );_ffffbd !=nil {return _ffffbd ;};case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0074e\u0078\u0074\u0062\u006f\u0078"}:_cfbdf .Textbox =NewTextbox ();if _cgeae :=d .DecodeElement (_cfbdf .Textbox ,&_accbd );_cgeae !=nil {return _cgeae ;};case _c .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068"}:_cfbdf .Textpath =NewTextpath ();if _aeafe :=d .DecodeEl
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Rect and its children
|
|
|
|
func (_dcfbb *Rect )Validate ()error {return _dcfbb .ValidateWithPath ("\u0052\u0065\u0063\u0074")};func (_cffa *OfcCT_IdMap )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dabcdb :=range start .Attr {if _dabcdb .Name .Local =="\u0064\u0061\u0074\u0061"{_adcde ,_aaaagb :=_dabcdb .Value ,error (nil );if _aaaagb !=nil {return _aaaagb ;};_cffa .DataAttr =&_adcde ;continue ;};if _dabcdb .Name .Local =="\u0065\u0078\u0074"{_cffa .ExtAttr .UnmarshalXMLAttr (_dabcdb );continue ;};};for {_afgcc ,_dfcba :=d .Token ();if _dfcba !=nil {return _fb .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0049\u0064\u004d\u0061\u0070\u003a\u0020\u0025\u0073",_dfcba );};if _ddfbg ,_baeffc :=_afgcc .(_c .EndElement );_baeffc &&_ddfbg .Name ==start .Name {break ;};};return nil ;};func (_aadgg ST_Ext )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gfdcfa :=_c .Attr {};_gfdcfa .Name =name ;switch _aadgg {case ST_ExtUnset :_gfdcfa .Value ="";case ST_ExtView :_gfdcfa .Value ="\u0076\u0069\u0065\u0077";case ST_ExtEdit :_gfdcfa .Value ="\u0065\u0064\u0069\u0074";case ST_ExtBackwardCompatible :_gfdcfa .Value ="\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065";};return _gfdcfa ,nil ;};func (_gacfc *Oval )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gacfc .CT_Oval =*NewCT_Oval ();for _ ,_febaf :=range start .Attr {if _febaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_febaf .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_gdagd ,_fgfaec :=_febaf .Value ,error (nil );if _fgfaec !=nil {return _fgfaec ;};_gacfc .BordertopcolorAttr =&_gdagd ;continue ;};if _febaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_febaf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gacfc .BulletAttr .UnmarshalXMLAttr (_febaf );continue ;};if _febaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_febaf .Name .Local =="\u0068\u0072"{_gacfc .HrAttr .UnmarshalXMLAttr (_febaf );continue ;};if _febaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_febaf .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_gacfc .CliptowrapAttr .UnmarshalXMLAttr (_febaf );continue ;};if _febaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_febaf .Name .Local =="\u0068\u0072\u0073t\u0064"{_gacfc .HrstdAttr .UnmarshalXMLAttr (_febaf );continue ;};if _febaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_febaf .Name .Local =="\u006f\u006c\u0065"{_gacfc .OleAttr .UnmarshalXMLAttr (_febaf );continue ;};if _febaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_febaf .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_gacfc .HrnoshadeAttr .UnmarshalXMLAttr (_febaf );continue ;};if _
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Textpath and its children
|
|
|
|
func (_gfecbb *Textpath )Validate ()error {return _gfecbb .ValidateWithPath ("\u0054\u0065\u0078\u0074\u0070\u0061\u0074\u0068");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_gaa *AG_OfficeCoreAttributes )ValidateWithPath (path string )error {if _baee :=_gaa .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_baee !=nil {return _baee ;};if _ace :=_gaa .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_ace !=nil {return _ace ;};if _gaac :=_gaa .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_gaac !=nil {return _gaac ;};if _adca :=_gaa .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_adca !=nil {return _adca ;};if _ebfc :=_gaa .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ebfc !=nil {return _ebfc ;};if _fdea :=_gaa .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_fdea !=nil {return _fdea ;};if _ccb :=_gaa .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_ccb !=nil {return _ccb ;};if _efg :=_gaa .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_efg !=nil {return _efg ;};if _cfgd :=_gaa .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_cfgd !=nil {return _cfgd ;};if _debc :=_gaa .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_debc !=nil {return _debc ;};if _gbbf :=_gaa .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_gbbf !=nil {return _gbbf ;};if _bef :=_gaa .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_bef !=nil {return _bef ;};if _ffe :=_gaa .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_ffe !=nil {return _ffe ;};if _gfg :=_gaa .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_gfg !=nil {return _gfg ;};if _dgd :=_gaa .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_dgd !=nil {return _dgd ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Arc and its children
|
|
|
|
func (_gbae *Arc )Validate ()error {return _gbae .ValidateWithPath ("\u0041\u0072\u0063")};type ST_StrokeLineStyle byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Path and its children
|
|
|
|
func (_bdaef *Path )Validate ()error {return _bdaef .ValidateWithPath ("\u0050\u0061\u0074\u0068")};func (_addae *OfcST_OLEType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_addae =0;case "\u0045\u006d\u0062e\u0064":*_addae =1;case "\u004c\u0069\u006e\u006b":*_addae =2;};return nil ;};func (_efgeec *OfcCT_Callout )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0063\u0061\u006c\u006c\u006f\u0075t";};if _efgeec .OnAttr !=_fc .ST_TrueFalseUnset {_abfcd ,_ggbeb :=_efgeec .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _ggbeb !=nil {return _ggbeb ;};start .Attr =append (start .Attr ,_abfcd );};if _efgeec .TypeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_efgeec .TypeAttr )});};if _efgeec .GapAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0067\u0061\u0070"},Value :_fb .Sprintf ("\u0025\u0076",*_efgeec .GapAttr )});};if _efgeec .AngleAttr !=OfcST_AngleUnset {_gdafge ,_eaeg :=_efgeec .AngleAttr .MarshalXMLAttr (_c .Name {Local :"\u0061\u006e\u0067l\u0065"});if _eaeg !=nil {return _eaeg ;};start .Attr =append (start .Attr ,_gdafge );};if _efgeec .DropautoAttr !=_fc .ST_TrueFalseUnset {_aecfc ,_aebga :=_efgeec .DropautoAttr .MarshalXMLAttr (_c .Name {Local :"\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"});if _aebga !=nil {return _aebga ;};start .Attr =append (start .Attr ,_aecfc );};if _efgeec .DropAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064\u0072\u006f\u0070"},Value :_fb .Sprintf ("\u0025\u0076",*_efgeec .DropAttr )});};if _efgeec .DistanceAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_efgeec .DistanceAttr )});};if _efgeec .LengthspecifiedAttr !=_fc .ST_TrueFalseUnset {_bgcd ,_beeaf :=_efgeec .LengthspecifiedAttr .MarshalXMLAttr (_c .Name {Local :"\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"});if _beeaf !=nil {return _beeaf ;};start .Attr =append (start .Attr ,_bgcd );};if _efgeec .LengthAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006c\u0065\u006e\u0067\u0074\u0068"},Value :_fb .Sprintf ("\u0025\u0076",*_efgeec .LengthAttr )});};if _efgeec .AccentbarAttr !=_fc .ST_TrueFalseUnset {_gccaf ,_cfafc :=_efgeec .AccentbarAttr .MarshalXMLAttr (_c .Name {Local :"\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"});if _cfafc !=nil {return _cfafc ;};start .Attr =append (start .Attr ,_gccaf );};if _efgeec .TextborderAttr !=_fc .ST_TrueFalseUnset {_edaa ,_dbcfc :=_efgeec .TextborderAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0065\u0078\u0074\u0062\u006f\u0072\u0064\u0065\u0072"});if _dbcfc !=nil {return _dbcfc ;};start .Attr =append (start .Attr ,_edaa );};if _efgeec .MinusxAttr !=_fc .ST_TrueFalseUnset {_egade ,_ffdb :=_efgeec .MinusxAttr .MarshalXMLAttr (_c .Name {Local :"\u006d\u0069\u006e\u0075\u0073\u0078"});if _ffdb !=nil {return _ffdb ;};start .Attr =append (start .Attr ,_egade );};if _efgeec .MinusyAttr !=_fc .ST_TrueFalseUnset {_dcbec ,_bcead :=_efgeec .MinusyAttr .MarshalXMLAttr (_c .Name {Local :"\u006d\u0069\u006e\u0075\u0073\u0079"});if _bcead !=nil {return _bcead ;};start .Attr =append (start .Attr ,_dcbec );};if _efgeec .ExtAttr !=ST_ExtUnset {_fdabe ,_febbe :=_efgeec .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _febbe !=nil {return _febbe ;};start .Attr =append (start .Attr ,_fdabe );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_aegcg *Curve )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _aegcg .CT_Curve .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Path and its children, prefixing error messages with path
|
|
|
|
func (_eggd *CT_Path )ValidateWithPath (path string )error {if _cggaa :=_eggd .FillokAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u006f\u006b\u0041\u0074\u0074\u0072");_cggaa !=nil {return _cggaa ;};if _dcfbe :=_eggd .StrokeokAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0072\u006f\u006b\u0065\u006f\u006b\u0041\u0074\u0074\u0072");_dcfbe !=nil {return _dcfbe ;};if _cabeg :=_eggd .ShadowokAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0064\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_cabeg !=nil {return _cabeg ;};if _adfac :=_eggd .ArrowokAttr .ValidateWithPath (path +"\u002f\u0041\u0072r\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_adfac !=nil {return _adfac ;};if _cccg :=_eggd .GradientshapeokAttr .ValidateWithPath (path +"/\u0047r\u0061\u0064\u0069\u0065\u006e\u0074\u0073\u0068a\u0070\u0065\u006f\u006bAt\u0074\u0072");_cccg !=nil {return _cccg ;};if _dcdfb :=_eggd .TextpathokAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0070\u0061\u0074\u0068\u006f\u006b\u0041\u0074\u0074\u0072");_dcdfb !=nil {return _dcdfb ;};if _bfdfg :=_eggd .InsetpenokAttr .ValidateWithPath (path +"\u002fI\u006es\u0065\u0074\u0070\u0065\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_bfdfg !=nil {return _bfdfg ;};if _dfab :=_eggd .ConnecttypeAttr .ValidateWithPath (path +"\u002f\u0043o\u006e\u006e\u0065c\u0074\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_dfab !=nil {return _dfab ;};if _gcbg :=_eggd .ExtrusionokAttr .ValidateWithPath (path +"\u002f\u0045x\u0074\u0072\u0075s\u0069\u006f\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_gcbg !=nil {return _gcbg ;};return nil ;};func (_ccecf *Roundrect )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ccecf .CT_RoundRect =*NewCT_RoundRect ();for _ ,_abada :=range start .Attr {if _abada .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abada .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_ccecf .UserdrawnAttr .UnmarshalXMLAttr (_abada );continue ;};if _abada .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abada .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_geba ,_ecfdfd :=_abada .Value ,error (nil );if _ecfdfd !=nil {return _ecfdfd ;};_ccecf .BordertopcolorAttr =&_geba ;continue ;};if _abada .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abada .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_ccecf .UserhiddenAttr .UnmarshalXMLAttr (_abada );continue ;};if _abada .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abada .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ccecf .BulletAttr .UnmarshalXMLAttr (_abada );continue ;};if _abada .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abada .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_ccecf .CliptowrapAttr .UnmarshalXMLAttr (_abada );continue ;};if _abada .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abada .Name .Local =="\u0068\u0072"{_ccecf .H
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMenu and its children, prefixing error messages with path
|
|
|
|
func (_ececa *OfcCT_ColorMenu )ValidateWithPath (path string )error {if _eefee :=_ececa .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_eefee !=nil {return _eefee ;};return nil ;};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;);func (_gbegf *OfcCT_Fill )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cbbgf :=range start .Attr {if _cbbgf .Name .Local =="\u0074\u0079\u0070\u0065"{_gbegf .TypeAttr .UnmarshalXMLAttr (_cbbgf );continue ;};if _cbbgf .Name .Local =="\u0065\u0078\u0074"{_gbegf .ExtAttr .UnmarshalXMLAttr (_cbbgf );continue ;};};for {_agaea ,_effdb :=d .Token ();if _effdb !=nil {return _fb .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0046\u0069\u006c\u006c\u003a\u0020%\u0073",_effdb );};if _ebdca ,_efdae :=_agaea .(_c .EndElement );_efdae &&_ebdca .Name ==start .Name {break ;};};return nil ;};type AG_ShapeAttributes struct{OpacityAttr *string ;StrokedAttr _fc .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _fc .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _fc .ST_TrueFalse ;FillcolorAttr *string ;};func (_gcccg *Formulas )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _gcccg .CT_Formulas .MarshalXML (e ,start );};func (_aaaa *AG_Ext )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {_dced ,_cfgg :=_aaaa .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0065\u0078\u0074"});if _cfgg !=nil {return _cfgg ;};start .Attr =append (start .Attr ,_dced );start .Name .Local ="\u0076\u003a\u0041\u0047\u005f\u0045\u0078\u0074";return nil ;};type ST_Ext byte ;func (_gbfabg *ST_Ext )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_gbfabg =0;case "\u0076\u0069\u0065\u0077":*_gbfabg =1;case "\u0065\u0064\u0069\u0074":*_gbfabg =2;case "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065":*_gbfabg =3;};return nil ;};func (_bfafd *OfcBottom )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCallout and its children, prefixing error messages with path
|
|
|
|
func (_agfgb *OfcCallout )ValidateWithPath (path string )error {if _aegaa :=_agfgb .OfcCT_Callout .ValidateWithPath (path );_aegaa !=nil {return _aegaa ;};return nil ;};func NewOfcEquationxml ()*OfcEquationxml {_fceaaa :=&OfcEquationxml {};_fceaaa .OfcCT_EquationXml =*NewOfcCT_EquationXml ();return _fceaaa ;};func (_ecfec ST_StrokeJoinStyle )Validate ()error {return _ecfec .ValidateWithPath ("")};func (_fcbaf OfcST_DiagramLayout )String ()string {switch _fcbaf {case 0:return "";case 1:return "\u0030";case 2:return "\u0031";case 3:return "\u0032";case 4:return "\u0033";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Textbox and its children, prefixing error messages with path
|
|
|
|
func (_fbdf *Textbox )ValidateWithPath (path string )error {if _eceag :=_fbdf .CT_Textbox .ValidateWithPath (path );_eceag !=nil {return _eceag ;};return nil ;};func (_faegb ST_ShadowType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_egddd :=_c .Attr {};_egddd .Name =name ;switch _faegb {case ST_ShadowTypeUnset :_egddd .Value ="";case ST_ShadowTypeSingle :_egddd .Value ="\u0073\u0069\u006e\u0067\u006c\u0065";case ST_ShadowTypeDouble :_egddd .Value ="\u0064\u006f\u0075\u0062\u006c\u0065";case ST_ShadowTypeEmboss :_egddd .Value ="\u0065\u006d\u0062\u006f\u0073\u0073";case ST_ShadowTypePerspective :_egddd .Value ="p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065";};return _egddd ,nil ;};type CT_F struct{EqnAttr *string ;};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;);type Group struct{CT_Group };func (_edgf *AG_AllShapeAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dcb :=range start .Attr {if _dcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcb .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"{_edgf .ConnectortypeAttr .UnmarshalXMLAttr (_dcb );continue ;};if _dcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcb .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_edgf .BwpureAttr .UnmarshalXMLAttr (_dcb );continue ;};if _dcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_edgf .CliptowrapAttr .UnmarshalXMLAttr (_dcb );continue ;};if _dcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcb .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_edgf .PreferrelativeAttr .UnmarshalXMLAttr (_dcb );continue ;};if _dcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcb .Name .Local =="\u006f\u006c\u0065"{_edgf .OleAttr .UnmarshalXMLAttr (_dcb );continue ;};if _dcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcb .Name .Local =="\u006fl\u0065\u0069\u0063\u006f\u006e"{_edgf .OleiconAttr .UnmarshalXMLAttr (_dcb );continue ;};if _dcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcb .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_edgf .ForcedashAttr .UnmarshalXMLAttr (_dcb );continue ;};if _dcb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dcb .Name .Local
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Shape and its children
|
|
|
|
func (_bfgfed *Shape )Validate ()error {return _bfgfed .ValidateWithPath ("\u0053\u0068\u0061p\u0065")};func NewAG_Type ()*AG_Type {_baeed :=&AG_Type {};return _baeed };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Shape and its children
|
|
|
|
func (_dggba *CT_Shape )Validate ()error {return _dggba .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065");};func (_fbdde *OfcCT_Rules )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_ecabe :=range start .Attr {if _ecabe .Name .Local =="\u0065\u0078\u0074"{_fbdde .ExtAttr .UnmarshalXMLAttr (_ecabe );continue ;};};_gdffd :for {_daegb ,_adaba :=d .Token ();if _adaba !=nil {return _adaba ;};switch _fegce :=_daegb .(type ){case _c .StartElement :switch _fegce .Name {case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072"}:_bedfg :=NewOfcCT_R ();if _gggff :=d .DecodeElement (_bedfg ,&_fegce );_gggff !=nil {return _gggff ;};_fbdde .R =append (_fbdde .R ,_bedfg );default:_ac .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",_fegce .Name );if _bebgdc :=d .Skip ();_bebgdc !=nil {return _bebgdc ;};};case _c .EndElement :break _gdffd ;case _c .CharData :};};return nil ;};func (_gbegfe *OfcSignatureline )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gbegfe .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();for _ ,_dcffa :=range start .Attr {if _dcffa .Name .Local =="\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"{_aafef ,_acfec :=_dcffa .Value ,error (nil );if _acfec !=nil {return _acfec ;};_gbegfe .SuggestedsignerAttr =&_aafef ;continue ;};if _dcffa .Name .Local =="\u0069\u0064"{_cffed ,_eeceg :=_dcffa .Value ,error (nil );if _eeceg !=nil {return _eeceg ;};_gbegfe .IdAttr =&_cffed ;continue ;};if _dcffa .Name .Local =="\u0070\u0072\u006f\u0076\u0069\u0064"{_ggbcc ,_gbfb :=_dcffa .Value ,error (nil );if _gbfb !=nil {return _gbfb ;};_gbegfe .ProvidAttr =&_ggbcc ;continue ;};if _dcffa .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"{_gbegfe .SigninginstructionssetAttr .UnmarshalXMLAttr (_dcffa );continue ;};if _dcffa .Name .Local =="\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"{_gbegfe .AllowcommentsAttr .UnmarshalXMLAttr (_dcffa );continue ;};if _dcffa .Name .Local =="\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"{_gbegfe .ShowsigndateAttr .UnmarshalXMLAttr (_dcffa );continue ;};if _dcffa .Name .Local =="\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"{_gbegfe .IssignaturelineAttr .UnmarshalXMLAttr (_dcffa );continue ;};if _dcffa .Name .Local =="\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"{_bgdce ,_dbfa :=_dcffa .Value ,error (nil );if _dbfa !=nil {return _dbfa ;};_gbegfe .Suggestedsigner2Attr =&_bgdce ;continue ;};if _dcffa .Name .Local =="s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"{_deecg ,_ggebb :=_dcffa .Value ,error (nil );if _ggebb !=nil {return _ggebb ;};_gbegfe .SuggestedsigneremailAttr =&_deecg ;continue ;};if _dcffa .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"{_egefb ,_cdcade :=_dcffa .Value ,error (nil );if _cdcade !=nil {return _cdcade ;};_gbegfe .SigninginstructionsAttr =&_egefb ;continue ;};if _dcffa .Name .Local =="\u0061d\u0064\u006c\u0078\u006d\u006c"{_cedcf ,_adecb :=_dcffa .Value ,error (nil );if _adecb !=nil {return _adecb ;};_gbegfe .AddlxmlAttr =&_cedcf ;continue ;};if _dcffa .Name .Local =="\u0073\u0069\u0067\u0070\u0072\u006f\u0076\u0075\u0072\u006c"{_egbbd ,_ggacdd :=_dcffa .Value ,error (nil );if _ggacdd !=nil {return _ggacdd ;};_gbegfe .SigprovurlAttr =&_egbbd ;continue ;};if _dcffa .Name .Local =="\u0065\u0078\u0074"{_gbegfe .ExtAttr .Unmarshal
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcSkew and its children, prefixing error messages with path
|
|
|
|
func (_fbdda *OfcSkew )ValidateWithPath (path string )error {if _fbgdg :=_fbdda .OfcCT_Skew .ValidateWithPath (path );_fbgdg !=nil {return _fbgdg ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Shadow and its children
|
|
|
|
func (_dgegf *Shadow )Validate ()error {return _dgegf .ValidateWithPath ("\u0053\u0068\u0061\u0064\u006f\u0077");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_OLEObject and its children, prefixing error messages with path
|
|
|
|
func (_daagg *OfcCT_OLEObject )ValidateWithPath (path string )error {if _cbcg :=_daagg .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_cbcg !=nil {return _cbcg ;};if _cfebe :=_daagg .DrawAspectAttr .ValidateWithPath (path +"\u002fD\u0072a\u0077\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_cfebe !=nil {return _cfebe ;};if _faecb :=_daagg .UpdateModeAttr .ValidateWithPath (path +"\u002fU\u0070d\u0061\u0074\u0065\u004d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_faecb !=nil {return _faecb ;};if _cbeab :=_daagg .LockedField .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064");_cbeab !=nil {return _cbeab ;};return nil ;};func (_efgge OfcST_OLEDrawAspect )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_fcafa :=_c .Attr {};_fcafa .Name =name ;switch _efgge {case OfcST_OLEDrawAspectUnset :_fcafa .Value ="";case OfcST_OLEDrawAspectContent :_fcafa .Value ="\u0043o\u006e\u0074\u0065\u006e\u0074";case OfcST_OLEDrawAspectIcon :_fcafa .Value ="\u0049\u0063\u006f\u006e";};return _fcafa ,nil ;};func (_afcec *Path )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_afcec .CT_Path =*NewCT_Path ();for _ ,_ecbg :=range start .Attr {if _ecbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecbg .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"{_afcec .ConnecttypeAttr .UnmarshalXMLAttr (_ecbg );continue ;};if _ecbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecbg .Name .Local =="e\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"{_afcec .ExtrusionokAttr .UnmarshalXMLAttr (_ecbg );continue ;};if _ecbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecbg .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"{_cdeee ,_ffgdf :=_ecbg .Value ,error (nil );if _ffgdf !=nil {return _ffgdf ;};_afcec .ConnectanglesAttr =&_cdeee ;continue ;};if _ecbg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ecbg .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"{_afbga ,_afacg :=_ecbg .Value ,error (nil );if _afacg !=nil {return _afacg ;};_afcec .ConnectlocsAttr =&_afbga ;continue ;};if _ecbg .Name .Local =="\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"{_afcec .GradientshapeokAttr .UnmarshalXMLAttr (_ecbg );continue ;};if _ecbg .Name .Local =="\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"{_afcec .ShadowokAttr .UnmarshalXMLAttr (_ecbg );continue ;};if _ecbg .Name .Local =="\u0061r\u0072\u006f\u0077\u006f\u006b"{_afcec .ArrowokAttr .UnmarshalXMLAttr (_ecbg );continue ;};if _ecbg .Name .Local =="\u0076"{_bbade ,_begab :=_ecbg .Value ,error (nil );if _begab !=nil {return _begab ;};_afcec .VAttr =&_bbade ;continue ;};if _ecbg .Name .Local =="\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"{_afcec .TextpathokAttr .UnmarshalXMLAttr (_ecbg );continue ;};if _ecbg .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"{_afcec .InsetpenokAttr .UnmarshalXMLAttr (_ecbg );continue ;};if _ecbg .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"{_afcec .StrokeokAttr .UnmarshalXMLAttr (_ecbg );continue ;};if _ecbg .Name .Local =="\u0066\u0069\u006c\u006c\u006f\u006b"{_afcec .FillokAttr .UnmarshalXMLAttr (_ecbg );continue ;}
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_EquationXml and its children
|
|
|
|
func (_baefc *OfcCT_EquationXml )Validate ()error {return _baefc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0058\u006d\u006c");};const (ST_FillTypeUnset ST_FillType =0;ST_FillTypeSolid ST_FillType =1;ST_FillTypeGradient ST_FillType =2;ST_FillTypeGradientRadial ST_FillType =3;ST_FillTypeTile ST_FillType =4;ST_FillTypePattern ST_FillType =5;ST_FillTypeFrame ST_FillType =6;);func (_ddcbb *ST_StrokeArrowWidth )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_ddcbb =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_ddcbb =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_ddcbb =2;case "\u0077\u0069\u0064\u0065":*_ddcbb =3;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Textbox and its children
|
|
|
|
func (_gdcag *Textbox )Validate ()error {return _gdcag .ValidateWithPath ("\u0054e\u0078\u0074\u0062\u006f\u0078");};type OfcST_OLEUpdateMode byte ;func NewAG_ShapeAttributes ()*AG_ShapeAttributes {_afg :=&AG_ShapeAttributes {};return _afg };func (_daecg OfcST_HrAlign )String ()string {switch _daecg {case 0:return "";case 1:return "\u006c\u0065\u0066\u0074";case 2:return "\u0072\u0069\u0067h\u0074";case 3:return "\u0063\u0065\u006e\u0074\u0065\u0072";};return "";};func (_efbdg OfcST_RType )ValidateWithPath (path string )error {switch _efbdg {case 0,1,2,3,4:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_efbdg ));};return nil ;};type Image struct{CT_Image };func (_gfgbdc ST_FillType )Validate ()error {return _gfgbdc .ValidateWithPath ("")};const (OfcST_InsetModeUnset OfcST_InsetMode =0;OfcST_InsetModeAuto OfcST_InsetMode =1;OfcST_InsetModeCustom OfcST_InsetMode =2;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_RoundRect and its children
|
|
|
|
func (_fgaga *CT_RoundRect )Validate ()error {return _fgaga .ValidateWithPath ("\u0043\u0054\u005fR\u006f\u0075\u006e\u0064\u0052\u0065\u0063\u0074");};func NewTextbox ()*Textbox {_bbbdc :=&Textbox {};_bbbdc .CT_Textbox =*NewCT_Textbox ();return _bbbdc };func (_fe *AG_AllCoreAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _fe .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .HrefAttr )});};if _fe .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .TargetAttr )});};if _fe .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .ClassAttr )});};if _fe .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .TitleAttr )});};if _fe .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .AltAttr )});};if _fe .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .CoordsizeAttr )});};if _fe .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .CoordoriginAttr )});};if _fe .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .WrapcoordsAttr )});};if _fe .PrintAttr !=_fc .ST_TrueFalseUnset {_ga ,_gde :=_fe .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _gde !=nil {return _gde ;};start .Attr =append (start .Attr ,_ga );};if _fe .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .IdAttr )});};if _fe .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .StyleAttr )});};if _fe .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .SpidAttr )});};if _fe .OnedAttr !=_fc .ST_TrueFalseUnset {_ee ,_bg :=_fe .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _bg !=nil {return _bg ;};start .Attr =append (start .Attr ,_ee );};if _fe .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_fe .RegroupidAttr )});};if _fe .DoubleclicknotifyAttr !=_fc .ST_TrueFalseUnset {_bc ,_fg :=_fe .DoubleclicknotifyAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _fg !=nil {return _fg ;};start .Attr =append (start .Attr ,_bc );};if _fe .ButtonAttr !=_fc .ST_TrueFalseUnset {_cf ,_ff :=_fe .ButtonAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _ff !=nil {return _ff ;};start .Attr =append (start .Attr ,_cf );};if _fe .UserhiddenAttr !=_fc .ST_TrueFalseUnset {_eeg ,_dbd :=_fe .UserhiddenAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _dbd !=nil {return _dbd ;};start .Attr =append (start .Attr ,_eeg );};if _fe .BulletAttr !=_fc .ST_TrueFalseUnset {_fdf ,_fcb :=_fe .BulletAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u006c\u006c\u0065\u0074"});if _fcb !=nil {return _fcb ;};start .Attr =append (start .Attr ,_fdf
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Line and its children, prefixing error messages with path
|
|
|
|
func (_cebbf *Line )ValidateWithPath (path string )error {if _aaaag :=_cebbf .CT_Line .ValidateWithPath (path );_aaaag !=nil {return _aaaag ;};return nil ;};func (_dbaab *ST_FillType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_dbaab =0;case "\u0073\u006f\u006ci\u0064":*_dbaab =1;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_dbaab =2;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_dbaab =3;case "\u0074\u0069\u006c\u0065":*_dbaab =4;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_dbaab =5;case "\u0066\u0072\u0061m\u0065":*_dbaab =6;};return nil ;};type OfcST_HrAlign byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_RelationTable and its children
|
|
|
|
func (_bdebc *OfcCT_RelationTable )Validate ()error {return _bdebc .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0054\u0061\u0062\u006c\u0065");};type CT_ImageData struct{EmbosscolorAttr *string ;RecolortargetAttr *string ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;OleidAttr *float32 ;DetectmouseclickAttr _fc .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 _fc .ST_TrueFalse ;BilevelAttr _fc .ST_TrueFalse ;ChromakeyAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-05-26 09:49:04 +00:00
|
|
|
// Validate validates the Background and its children
|
2023-06-10 07:12:37 +00:00
|
|
|
func (_gbe *Background )Validate ()error {return _gbe .ValidateWithPath ("\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};func (_ecdgb *OfcST_ScreenSize )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_ecdgb =0;case "\u00354\u0034\u002c\u0033\u0037\u0036":*_ecdgb =1;case "\u00364\u0030\u002c\u0034\u0038\u0030":*_ecdgb =2;case "\u00372\u0030\u002c\u0035\u0031\u0032":*_ecdgb =3;case "\u00380\u0030\u002c\u0036\u0030\u0030":*_ecdgb =4;case "\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038":*_ecdgb =5;case "\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032":*_ecdgb =6;};return nil ;};func (_cgcae OfcST_Angle )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_cgcae .String (),start );};type Line struct{CT_Line };func (_aagac *OfcColumn )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_aagac .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_ebbgb :=range start .Attr {if _ebbgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ebbgb .Name .Local =="\u0068\u0072\u0065\u0066"{_bbdbde ,_gdbba :=_ebbgb .Value ,error (nil );if _gdbba !=nil {return _gdbba ;};_aagac .HrefAttr =&_bbdbde ;continue ;};if _ebbgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ebbgb .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_aagac .ForcedashAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ebbgb .Name .Local =="\u0074\u0069\u0074l\u0065"{_egefc ,_cbeg :=_ebbgb .Value ,error (nil );if _cbeg !=nil {return _cbeg ;};_aagac .TitleAttr =&_egefc ;continue ;};if _ebbgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ebbgb .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_dbafb ,_bbfgc :=_ebbgb .Value ,error (nil );if _bbfgc !=nil {return _bbfgc ;};_aagac .AlthrefAttr =&_dbafb ;continue ;};if _ebbgb .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_aagac .ImageaspectAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_aagac .StartarrowAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_aagac .LinestyleAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_aagac .StartarrowwidthAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_aagac .JoinstyleAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_aagac .StartarrowlengthAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_dbfdfd ,_fbdbf :=_ebbgb .Value ,error (nil );if _fbdbf !=nil {return _fbdbf ;};_aagac .DashstyleAttr =&_dbfdfd ;continue ;};if _ebbgb .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_aagac .EndarrowAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_aagac .FilltypeAttr .UnmarshalXMLAttr (_ebbgb );continue ;};if _ebbgb .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u00
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Shape and its children, prefixing error messages with path
|
|
|
|
func (_efcge *CT_Shape )ValidateWithPath (path string )error {for _gacdc ,_ebeb :=range _efcge .Ink {if _cbed :=_ebeb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_gacdc ));_cbed !=nil {return _cbed ;};};for _bfegb ,_aefaa :=range _efcge .Iscomment {if _fabcf :=_aefaa .ValidateWithPath (_fb .Sprintf ("\u0025\u0073/\u0049\u0073\u0063o\u006d\u006d\u0065\u006e\u0074\u005b\u0025\u0064\u005d",path ,_bfegb ));_fabcf !=nil {return _fabcf ;};};for _bcbde ,_aedg :=range _efcge .Equationxml {if _dbbgd :=_aedg .ValidateWithPath (_fb .Sprintf ("\u0025s\u002fE\u0071\u0075\u0061\u0074\u0069o\u006e\u0078m\u006c\u005b\u0025\u0064\u005d",path ,_bcbde ));_dbbgd !=nil {return _dbbgd ;};};for _fgae ,_ddegb :=range _efcge .EG_ShapeElements {if _gbcbd :=_ddegb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fgae ));_gbcbd !=nil {return _gbcbd ;};};if _cgbfd :=_efcge .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_cgbfd !=nil {return _cgbfd ;};if _afgc :=_efcge .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_afgc !=nil {return _afgc ;};if _cdcad :=_efcge .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cdcad !=nil {return _cdcad ;};if _gefgf :=_efcge .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_gefgf !=nil {return _gefgf ;};if _gffac :=_efcge .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_gffac !=nil {return _gffac ;};if _gbgea :=_efcge .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_gbgea !=nil {return _gbgea ;};if _fdaba :=_efcge .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_fdaba !=nil {return _fdaba ;};if _gfcb :=_efcge .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gfcb !=nil {return _gfcb ;};if _ggga :=_efcge .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_ggga !=nil {return _ggga ;};if _bgde :=_efcge .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_bgde !=nil {return _bgde ;};if _bcecc :=_efcge .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_bcecc !=nil {return _bcecc ;};if _gfced :=_efcge .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_gfced !=nil {return _gfced ;};if _fddbc :=_efcge .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fddbc !=nil {return _fddbc ;};if _cedae :=_efcge .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_cedae !=nil {return _cedae ;};if _edeafa :=_efcge .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_edeafa !=nil {return _edeafa ;};if _begdg :=_efcge .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_begdg !=nil {return _begdg ;};if _bbgca :=_efcge .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bbgca !=nil {return _bbgca ;};if _fafgb :=_efcge .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fafgb !=nil {return _fafgb ;};if _cbcfc :=_efcge .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u00
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Lock and its children
|
|
|
|
func (_abfe *OfcCT_Lock )Validate ()error {return _abfe .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u004c\u006f\u0063\u006b");};type OfcST_ExtrusionType byte ;const (ST_EditAsUnset ST_EditAs =0;ST_EditAsCanvas ST_EditAs =1;ST_EditAsOrgchart ST_EditAs =2;ST_EditAsRadial ST_EditAs =3;ST_EditAsCycle ST_EditAs =4;ST_EditAsStacked ST_EditAs =5;ST_EditAsVenn ST_EditAs =6;ST_EditAsBullseye ST_EditAs =7;);func (_gfbc *CT_Oval )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_daedb :=range start .Attr {if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_affg ,_bcfc :=_daedb .Value ,error (nil );if _bcfc !=nil {return _bcfc ;};_gfbc .BordertopcolorAttr =&_affg ;continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gfbc .BulletAttr .UnmarshalXMLAttr (_daedb );continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u0068\u0072"{_gfbc .HrAttr .UnmarshalXMLAttr (_daedb );continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_gfbc .CliptowrapAttr .UnmarshalXMLAttr (_daedb );continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u0068\u0072\u0073t\u0064"{_gfbc .HrstdAttr .UnmarshalXMLAttr (_daedb );continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u006f\u006c\u0065"{_gfbc .OleAttr .UnmarshalXMLAttr (_daedb );continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_gfbc .HrnoshadeAttr .UnmarshalXMLAttr (_daedb );continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u006f\u006e\u0065\u0064"{_gfbc .OnedAttr .UnmarshalXMLAttr (_daedb );continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_daedb .Name .Local =="\u0068\u0072\u0070c\u0074"{_aeab ,_fbaa :=_f .ParseFloat (_daedb .Value ,64);if _fbaa !=nil {return _fbaa ;};_cfdcg :=float32 (_aeab );_gfbc .HrpctAttr =&_cfdcg ;continue ;};if _daedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_CoreAttributes and its children
|
|
|
|
func (_cceb *AG_CoreAttributes )Validate ()error {return _cceb .ValidateWithPath ("\u0041\u0047\u005f\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069b\u0075\u0074\u0065\u0073");};func (_beccgg OfcST_How )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_beccgg .String (),start );};type ST_FillType byte ;func (_dacc *OfcST_InsetMode )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_dacc =0;case "\u0061\u0075\u0074\u006f":*_dacc =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_dacc =2;};return nil ;};func (_dgbdc OfcST_OLEUpdateMode )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_dgbdc .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_OLEObject and its children
|
|
|
|
func (_cbbde *OfcCT_OLEObject )Validate ()error {return _cbbde .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u004f\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func (_efeacf *ST_FillMethod )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_efeacf =0;case "\u006e\u006f\u006e\u0065":*_efeacf =1;case "\u006c\u0069\u006e\u0065\u0061\u0072":*_efeacf =2;case "\u0073\u0069\u0067m\u0061":*_efeacf =3;case "\u0061\u006e\u0079":*_efeacf =4;case "\u006c\u0069\u006ee\u0061\u0072\u0020\u0073\u0069\u0067\u006d\u0061":*_efeacf =5;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_ImageAttributes and its children, prefixing error messages with path
|
|
|
|
func (_ebdf *AG_ImageAttributes )ValidateWithPath (path string )error {if _dec :=_ebdf .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_dec !=nil {return _dec ;};if _bec :=_ebdf .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_bec !=nil {return _bec ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RelationTable and its children, prefixing error messages with path
|
|
|
|
func (_aacec *OfcCT_RelationTable )ValidateWithPath (path string )error {for _dbbc ,_agbaf :=range _aacec .Rel {if _dfgda :=_agbaf .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002f\u0052\u0065\u006c\u005b\u0025\u0064\u005d",path ,_dbbc ));_dfgda !=nil {return _dfgda ;};};if _afgbf :=_aacec .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_afgbf !=nil {return _afgbf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Shadow and its children
|
|
|
|
func (_bfbe *CT_Shadow )Validate ()error {return _bfbe .ValidateWithPath ("\u0043T\u005f\u0053\u0068\u0061\u0064\u006fw");};func (_aegdf ST_StrokeJoinStyle )ValidateWithPath (path string )error {switch _aegdf {case 0,1,2,3:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_aegdf ));};return nil ;};func (_adbggg OfcST_Angle )ValidateWithPath (path string )error {switch _adbggg {case 0,1,2,3,4,5,6:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_adbggg ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_Skew and its children
|
|
|
|
func (_bagea *OfcCT_Skew )Validate ()error {return _bagea .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u006b\u0065\u0077");};func (_gecae *OfcST_OLEUpdateMode )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_dbfde ,_decaa :=d .Token ();if _decaa !=nil {return _decaa ;};if _ecbef ,_dadbc :=_dbfde .(_c .EndElement );_dadbc &&_ecbef .Name ==start .Name {*_gecae =1;return nil ;};if _dfbfa ,_gcefc :=_dbfde .(_c .CharData );!_gcefc {return _fb .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",_dbfde );}else {switch string (_dfbfa ){case "":*_gecae =0;case "\u0041\u006c\u0077\u0061\u0079\u0073":*_gecae =1;case "\u004f\u006e\u0043\u0061\u006c\u006c":*_gecae =2;};};_dbfde ,_decaa =d .Token ();if _decaa !=nil {return _decaa ;};if _eadfd ,_gfbe :=_dbfde .(_c .EndElement );_gfbe &&_eadfd .Name ==start .Name {return nil ;};return _fb .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",_dbfde );};func (_cedadd OfcST_OLEUpdateMode )Validate ()error {return _cedadd .ValidateWithPath ("")};func (_bdgbc OfcST_How )ValidateWithPath (path string )error {switch _bdgbc {case 0,1,2,3,4,5,6:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_bdgbc ));};return nil ;};type CT_Shadow struct{OnAttr _fc .ST_TrueFalse ;TypeAttr ST_ShadowType ;ObscuredAttr _fc .ST_TrueFalse ;ColorAttr *string ;OpacityAttr *string ;OffsetAttr *string ;Color2Attr *string ;Offset2Attr *string ;OriginAttr *string ;MatrixAttr *string ;IdAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Group and its children, prefixing error messages with path
|
|
|
|
func (_aeaa *Group )ValidateWithPath (path string )error {if _dbfge :=_aeaa .CT_Group .ValidateWithPath (path );_dbfge !=nil {return _dbfge ;};return nil ;};func (_eafdcc *OfcLeft )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_eafdcc .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_cfgde :=range start .Attr {if _cfgde .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfgde .Name .Local =="\u0068\u0072\u0065\u0066"{_gcgfe ,_aabee :=_cfgde .Value ,error (nil );if _aabee !=nil {return _aabee ;};_eafdcc .HrefAttr =&_gcgfe ;continue ;};if _cfgde .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfgde .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_eafdcc .ForcedashAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfgde .Name .Local =="\u0074\u0069\u0074l\u0065"{_ffdeg ,_ebade :=_cfgde .Value ,error (nil );if _ebade !=nil {return _ebade ;};_eafdcc .TitleAttr =&_ffdeg ;continue ;};if _cfgde .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cfgde .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_dabd ,_ffcgc :=_cfgde .Value ,error (nil );if _ffcgc !=nil {return _ffcgc ;};_eafdcc .AlthrefAttr =&_dabd ;continue ;};if _cfgde .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_eafdcc .ImageaspectAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_eafdcc .StartarrowAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_eafdcc .LinestyleAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_eafdcc .StartarrowwidthAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_eafdcc .JoinstyleAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_eafdcc .StartarrowlengthAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_ecbb ,_daee :=_cfgde .Value ,error (nil );if _daee !=nil {return _daee ;};_eafdcc .DashstyleAttr =&_ecbb ;continue ;};if _cfgde .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_eafdcc .EndarrowAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_eafdcc .FilltypeAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_eafdcc .EndarrowwidthAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_agbcaa ,_eagef :=_cfgde .Value ,error (nil );if _eagef !=nil {return _eagef ;};_eafdcc .OpacityAttr =&_agbcaa ;continue ;};if _cfgde .Name .Local =="\u0063\u006f\u006co\u0072"{_dgfeb ,_cebae :=_cfgde .Value ,error (nil );if _cebae !=nil {return _cebae ;};_eafdcc .ColorAttr =&_dgfeb ;continue ;};if _cfgde .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_eafdcc .InsetpenAttr .UnmarshalXMLAttr (_cfgde );continue ;};if _cfgde .Name .Local =="\u0065\u006e\u0064
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the EG_ShapeElements and its children
|
|
|
|
func (_gebe *EG_ShapeElements )Validate ()error {return _gebe .ValidateWithPath ("\u0045\u0047_\u0053\u0068\u0061p\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073");};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 (_gbbca *ST_StrokeArrowWidth )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bdddbd ,_adfe :=d .Token ();if _adfe !=nil {return _adfe ;};if _bdcfa ,_ccegc :=_bdddbd .(_c .EndElement );_ccegc &&_bdcfa .Name ==start .Name {*_gbbca =1;return nil ;};if _afdag ,_defee :=_bdddbd .(_c .CharData );!_defee {return _fb .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",_bdddbd );}else {switch string (_afdag ){case "":*_gbbca =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_gbbca =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_gbbca =2;case "\u0077\u0069\u0064\u0065":*_gbbca =3;};};_bdddbd ,_adfe =d .Token ();if _adfe !=nil {return _adfe ;};if _faacgf ,_bbdbca :=_bdddbd .(_c .EndElement );_bbdbca &&_faacgf .Name ==start .Name {return nil ;};return _fb .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",_bdddbd );};func (_fgefed ST_FillMethod )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_fgefed .String (),start );};func (_bebc *Shadow )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_bebc .CT_Shadow =*NewCT_Shadow ();for _ ,_dagbb :=range start .Attr {if _dagbb .Name .Local =="\u006f\u006e"{_bebc .OnAttr .UnmarshalXMLAttr (_dagbb );continue ;};if _dagbb .Name .Local =="\u0074\u0079\u0070\u0065"{_bebc .TypeAttr .UnmarshalXMLAttr (_dagbb );continue ;};if _dagbb .Name .Local =="\u006f\u0062\u0073\u0063\u0075\u0072\u0065\u0064"{_bebc .ObscuredAttr .UnmarshalXMLAttr (_dagbb );continue ;};if _dagbb .Name .Local =="\u0063\u006f\u006co\u0072"{_fgddf ,_caaged :=_dagbb .Value ,error (nil );if _caaged !=nil {return _caaged ;};_bebc .ColorAttr =&_fgddf ;continue ;};if _dagbb .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_begg ,_daeec :=_dagbb .Value ,error (nil );if _daeec !=nil {return _daeec ;};_bebc .OpacityAttr =&_begg ;continue ;};if _dagbb .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_cccdd ,_baffb :=_dagbb .Value ,error (nil );if _baffb !=nil {return _baffb ;};_bebc .OffsetAttr =&_cccdd ;continue ;};if _dagbb .Name .Local =="\u0063\u006f\u006c\u006f\u0072\u0032"{_gdfee ,_gacde :=_dagbb .Value ,error (nil );if _gacde !=nil {return _gacde ;};_bebc .Color2Attr =&_gdfee ;continue ;};if _dagbb .Name .Local =="\u006ff\u0066\u0073\u0065\u0074\u0032"{_ddeed ,_egagc :=_dagbb .Value ,error (nil );if _egagc !=nil {return _egagc ;};_bebc .Offset2Attr =&_ddeed ;continue ;};if _dagbb .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_bfadb ,_gacebe :=_dagbb .Value ,error (nil );if _gacebe !=nil {return _gacebe ;};_bebc .OriginAttr =&_bfadb ;continue ;};if _dagbb .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_eadda ,_fgbceb :=_dagbb .Value ,error (nil );if _fgbceb !=nil {return _fgbceb ;};_bebc .MatrixAttr =&_eadda ;continue ;};if _dagbb .Name .Local =="\u0069\u0064"{_dcfadd ,_bbea :=_dagbb .Value ,error (nil );if _bbea !=nil {return _bbea ;};_bebc .IdAttr =&_dcfadd ;continue ;};};for {_cegggd ,_afdeb :=d .Token ();if _afdeb !=nil {return _fb .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0053h\u0061\u0064o\u0077\u003a\u0020\u0025\u0073",_afdeb );};if _dega ,_cdaae :=_cegggd .(_c .EndElement );_cdaae &&_dega .Name ==start .Name {break ;};};return nil ;};func (_gcddg *Textpath )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gcddg .CT_TextPath =*NewCT_TextPath ();for _ ,_cbegd :=range start .Attr {if _cbegd .Name .Local =="\u006f\u006e"{_gcddg .OnAttr .UnmarshalXMLAttr (_cbegd );continue ;};if _cbegd .Name .Local =="\u0066\u0069
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Handles and its children
|
|
|
|
func (_edeaf *CT_Handles )Validate ()error {return _edeaf .ValidateWithPath ("\u0043\u0054\u005f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");};func (_cfabc OfcST_HrAlign )Validate ()error {return _cfabc .ValidateWithPath ("")};func (_adba *AG_Type )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bece :=range start .Attr {if _bece .Name .Local =="\u0074\u0079\u0070\u0065"{_ecd ,_cgee :=_bece .Value ,error (nil );if _cgee !=nil {return _cgee ;};_adba .TypeAttr =&_ecd ;continue ;};};for {_fca ,_dgdd :=d .Token ();if _dgdd !=nil {return _fb .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0054\u0079\u0070\u0065\u003a\u0020\u0025\u0073",_dgdd );};if _eeb ,_facg :=_fca .(_c .EndElement );_facg &&_eeb .Name ==start .Name {break ;};};return nil ;};func (_cfaefe OfcST_Angle )Validate ()error {return _cfaefe .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Curve and its children
|
|
|
|
func (_fef *CT_Curve )Validate ()error {return _fef .ValidateWithPath ("\u0043\u0054\u005f\u0043\u0075\u0072\u0076\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_ShapeAttributes and its children
|
|
|
|
func (_cbg *AG_ShapeAttributes )Validate ()error {return _cbg .ValidateWithPath ("\u0041G\u005fS\u0068\u0061\u0070\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};func (_efga *CT_Curve )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_affe :=range start .Attr {if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_efga .AllowoverlapAttr .UnmarshalXMLAttr (_affe );continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_dgae ,_faee :=_f .ParseInt (_affe .Value ,10,64);if _faee !=nil {return _faee ;};_efga .RegroupidAttr =&_dgae ;continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u0064g\u006d\u006c\u0061\u0079\u006f\u0075t"{_efga .DgmlayoutAttr .UnmarshalXMLAttr (_affe );continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_efga .DoubleclicknotifyAttr .UnmarshalXMLAttr (_affe );continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_efga .PreferrelativeAttr .UnmarshalXMLAttr (_affe );continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_efga .ButtonAttr .UnmarshalXMLAttr (_affe );continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u006f\u006c\u0065"{_efga .OleAttr .UnmarshalXMLAttr (_affe );continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_efga .UserhiddenAttr .UnmarshalXMLAttr (_affe );continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_efga .ForcedashAttr .UnmarshalXMLAttr (_affe );continue ;};if _affe .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_affe .Name .Lo
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_Chromakey and its children
|
|
|
|
func (_adg *AG_Chromakey )Validate ()error {return _adg .ValidateWithPath ("\u0041\u0047\u005fC\u0068\u0072\u006f\u006d\u0061\u006b\u0065\u0079");};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ClipPath and its children, prefixing error messages with path
|
|
|
|
func (_fedbb *OfcCT_ClipPath )ValidateWithPath (path string )error {return nil };func (_abcgg ST_StrokeArrowWidth )String ()string {switch _abcgg {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 "";};func NewOfcCT_StrokeChild ()*OfcCT_StrokeChild {_cgeee :=&OfcCT_StrokeChild {};return _cgeee };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcEquationxml and its children
|
|
|
|
func (_agbfd *OfcEquationxml )Validate ()error {return _agbfd .ValidateWithPath ("\u004f\u0066\u0063\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0078\u006d\u006c");};func (_adbegb *OfcCallout )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_adbegb .OfcCT_Callout =*NewOfcCT_Callout ();for _ ,_fegaf :=range start .Attr {if _fegaf .Name .Local =="\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"{_adbegb .LengthspecifiedAttr .UnmarshalXMLAttr (_fegaf );continue ;};if _fegaf .Name .Local =="\u006f\u006e"{_adbegb .OnAttr .UnmarshalXMLAttr (_fegaf );continue ;};if _fegaf .Name .Local =="\u0067\u0061\u0070"{_fadfe ,_fdfea :=_fegaf .Value ,error (nil );if _fdfea !=nil {return _fdfea ;};_adbegb .GapAttr =&_fadfe ;continue ;};if _fegaf .Name .Local =="\u0061\u006e\u0067l\u0065"{_adbegb .AngleAttr .UnmarshalXMLAttr (_fegaf );continue ;};if _fegaf .Name .Local =="\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"{_adbegb .DropautoAttr .UnmarshalXMLAttr (_fegaf );continue ;};if _fegaf .Name .Local =="\u0064\u0072\u006f\u0070"{_bccfca ,_gcfec :=_fegaf .Value ,error (nil );if _gcfec !=nil {return _gcfec ;};_adbegb .DropAttr =&_bccfca ;continue ;};if _fegaf .Name .Local =="\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"{_egead ,_fgfged :=_fegaf .Value ,error (nil );if _fgfged !=nil {return _fgfged ;};_adbegb .DistanceAttr =&_egead ;continue ;};if _fegaf .Name .Local =="\u0074\u0079\u0070\u0065"{_aedcda ,_bggf :=_fegaf .Value ,error (nil );if _bggf !=nil {return _bggf ;};_adbegb .TypeAttr =&_aedcda ;continue ;};if _fegaf .Name .Local =="\u006c\u0065\u006e\u0067\u0074\u0068"{_cacdb ,_defaga :=_fegaf .Value ,error (nil );if _defaga !=nil {return _defaga ;};_adbegb .LengthAttr =&_cacdb ;continue ;};if _fegaf .Name .Local =="\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"{_adbegb .AccentbarAttr .UnmarshalXMLAttr (_fegaf );continue ;};if _fegaf .Name .Local =="\u0074\u0065\u0078\u0074\u0062\u006f\u0072\u0064\u0065\u0072"{_adbegb .TextborderAttr .UnmarshalXMLAttr (_fegaf );continue ;};if _fegaf .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0078"{_adbegb .MinusxAttr .UnmarshalXMLAttr (_fegaf );continue ;};if _fegaf .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0079"{_adbegb .MinusyAttr .UnmarshalXMLAttr (_fegaf );continue ;};if _fegaf .Name .Local =="\u0065\u0078\u0074"{_adbegb .ExtAttr .UnmarshalXMLAttr (_fegaf );continue ;};};for {_faada ,_dgcec :=d .Token ();if _dgcec !=nil {return _fb .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u0061\u006c\u006c\u006f\u0075\u0074\u003a\u0020%\u0073",_dgcec );};if _ggfgf ,_dbgd :=_faada .(_c .EndElement );_dbgd &&_ggfgf .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_Path and its children
|
|
|
|
func (_bgef *AG_Path )Validate ()error {return _bgef .ValidateWithPath ("\u0041G\u005f\u0050\u0061\u0074\u0068");};type OfcCT_Callout struct{OnAttr _fc .ST_TrueFalse ;TypeAttr *string ;GapAttr *string ;AngleAttr OfcST_Angle ;DropautoAttr _fc .ST_TrueFalse ;DropAttr *string ;DistanceAttr *string ;LengthspecifiedAttr _fc .ST_TrueFalse ;LengthAttr *string ;AccentbarAttr _fc .ST_TrueFalse ;TextborderAttr _fc .ST_TrueFalse ;MinusxAttr _fc .ST_TrueFalse ;MinusyAttr _fc .ST_TrueFalse ;ExtAttr ST_Ext ;};func (_fegagg OfcST_ExtrusionPlane )ValidateWithPath (path string )error {switch _fegagg {case 0,1,2,3:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fegagg ));};return nil ;};func (_bbffeb OfcST_How )Validate ()error {return _bbffeb .ValidateWithPath ("")};type OfcST_ScreenSize byte ;func (_ffcgg *OfcCT_ShapeLayout )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_babba :=range start .Attr {if _babba .Name .Local =="\u0065\u0078\u0074"{_ffcgg .ExtAttr .UnmarshalXMLAttr (_babba );continue ;};};_gccca :for {_ddcgf ,_ffadd :=d .Token ();if _ffadd !=nil {return _ffadd ;};switch _eefef :=_ddcgf .(type ){case _c .StartElement :switch _eefef .Name {case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0069\u0064\u006da\u0070"}:_ffcgg .Idmap =NewOfcCT_IdMap ();if _bgged :=d .DecodeElement (_ffcgg .Idmap ,&_eefef );_bgged !=nil {return _bgged ;};case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u0067r\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065"}:_ffcgg .Regrouptable =NewOfcCT_RegroupTable ();if _afgca :=d .DecodeElement (_ffcgg .Regrouptable ,&_eefef );_afgca !=nil {return _afgca ;};case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0075\u006ce\u0073"}:_ffcgg .Rules =NewOfcCT_Rules ();if _aceca :=d .DecodeElement (_ffcgg .Rules ,&_eefef );_aceca !=nil {return _aceca ;};default:_ac .Log .Debug ("\u0073\u006bi\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073\u0075\u0070p\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004c\u0061\u0079\u006f\u0075\u0074\u0020\u0025\u0076",_eefef .Name );if _eceef :=d .Skip ();_eceef !=nil {return _eceef ;};};case _c .EndElement :break _gccca ;case _c .CharData :};};return nil ;};func NewImagedata ()*Imagedata {_abead :=&Imagedata {};_abead .CT_ImageData =*NewCT_ImageData ();return _abead ;};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 (_gefbb ST_StrokeLineStyle )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_gefbb .String (),start );};func (_afabc *OfcST_ConnectType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_fgfcg ,_bbgbg :=d .Token ();if _bbgbg !=nil {return _bbgbg ;};if _ccbca ,_afeeb :=_fgfcg .(_c .EndElement );_afeeb &&_ccbca .Name ==start .Name {*_afabc =1;return nil ;};if _fdaf ,_fafbc :=_fgfcg .(_c .CharData );!_fafbc {return _fb .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",_fgfcg );}else {switch string (_fdaf ){case "":*_afabc =0;case "\u006e\u006f\u006e\u0065":*_afabc =1;case "\u0072\u0065\u0063\u0074":*_a
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Textpath and its children, prefixing error messages with path
|
|
|
|
func (_ccfdf *Textpath )ValidateWithPath (path string )error {if _baaae :=_ccfdf .CT_TextPath .ValidateWithPath (path );_baaae !=nil {return _baaae ;};return nil ;};func (_deef *Roundrect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _deef .CT_RoundRect .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Handles and its children, prefixing error messages with path
|
|
|
|
func (_cffec *Handles )ValidateWithPath (path string )error {if _dfdag :=_cffec .CT_Handles .ValidateWithPath (path );_dfdag !=nil {return _dfdag ;};return nil ;};func (_gbeed *OfcCT_Extrusion )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_fgadg :=range start .Attr {if _fgadg .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_gbeed .ColormodeAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u0063\u006f\u006co\u0072"{_aefdc ,_cgdd :=_fgadg .Value ,error (nil );if _cgdd !=nil {return _cgdd ;};_gbeed .ColorAttr =&_aefdc ;continue ;};if _fgadg .Name .Local =="\u0074\u0079\u0070\u0065"{_gbeed .TypeAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_ceef ,_bgcag :=_f .ParseFloat (_fgadg .Value ,64);if _bgcag !=nil {return _bgcag ;};_gagbf :=float32 (_ceef );_gbeed .ShininessAttr =&_gagbf ;continue ;};if _fgadg .Name .Local =="\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"{_edgde ,_dedgb :=_fgadg .Value ,error (nil );if _dedgb !=nil {return _dedgb ;};_gbeed .ViewpointoriginAttr =&_edgde ;continue ;};if _fgadg .Name .Local =="s\u0070\u0065\u0063\u0075\u006c\u0061\u0072\u0069\u0074\u0079"{_bagfe ,_fcdgb :=_fgadg .Value ,error (nil );if _fcdgb !=nil {return _fcdgb ;};_gbeed .SpecularityAttr =&_bagfe ;continue ;};if _fgadg .Name .Local =="\u0070\u006c\u0061n\u0065"{_gbeed .PlaneAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u0064i\u0066\u0066\u0075\u0073\u0069\u0074y"{_defaa ,_dbfcf :=_fgadg .Value ,error (nil );if _dbfcf !=nil {return _dbfcf ;};_gbeed .DiffusityAttr =&_defaa ;continue ;};if _fgadg .Name .Local =="\u0073k\u0065\u0077\u0061\u006d\u0074"{_aebeb ,_cgfe :=_fgadg .Value ,error (nil );if _cgfe !=nil {return _cgfe ;};_gbeed .SkewamtAttr =&_aebeb ;continue ;};if _fgadg .Name .Local =="\u006d\u0065\u0074a\u006c"{_gbeed .MetalAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"{_acaaa ,_fegedf :=_fgadg .Value ,error (nil );if _fegedf !=nil {return _fegedf ;};_gbeed .BackdepthAttr =&_acaaa ;continue ;};if _fgadg .Name .Local =="\u0065\u0064\u0067\u0065"{_cgdc ,_cccgb :=_fgadg .Value ,error (nil );if _cccgb !=nil {return _cccgb ;};_gbeed .EdgeAttr =&_cgdc ;continue ;};if _fgadg .Name .Local =="l\u0069\u0067\u0068\u0074\u006c\u0065\u0076\u0065\u006c\u0032"{_egddf ,_afcge :=_fgadg .Value ,error (nil );if _afcge !=nil {return _afcge ;};_gbeed .Lightlevel2Attr =&_egddf ;continue ;};if _fgadg .Name .Local =="\u006f\u0072i\u0065\u006e\u0074a\u0074\u0069\u006f\u006e\u0061\u006e\u0067\u006c\u0065"{_fggb ,_ecdfe :=_f .ParseFloat (_fgadg .Value ,64);if _ecdfe !=nil {return _ecdfe ;};_bcdcd :=float32 (_fggb );_gbeed .OrientationangleAttr =&_bcdcd ;continue ;};if _fgadg .Name .Local =="\u006f\u006e"{_gbeed .OnAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u006c\u0069\u0067\u0068\u0074\u0068\u0061\u0072\u0073\u0068"{_gbeed .LightharshAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u006ci\u0067\u0068\u0074\u0066\u0061\u0063e"{_gbeed .LightfaceAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u0066o\u0072\u0065\u0064\u0065\u0070\u0074h"{_gdaga ,_gabcg :=_fgadg .Value ,error (nil );if _gabcg !=nil {return _gabcg ;};_gbeed .ForedepthAttr =&_gdaga ;continue ;};if _fgadg .Name .Local =="\u0065\u0078\u0074"{_gbeed .ExtAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u0061u\u0074o\u0072\u006f\u0074\u0061\u0074i\u006f\u006ec\u0065\u006e\u0074\u0065\u0072"{_gbeed .AutorotationcenterAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u0066\u0061\u0063e\u0074"{_afccc ,_dcfgaa :=_fgadg .Value ,error (nil );if _dcfgaa !=nil {return _dcfgaa ;};_gbeed .FacetAttr =&_afccc ;continue ;};if _fgadg .Name .Local =="\u0072\u0065\u006e\u0064\u0065\u0072"{_gbeed .RenderAttr .UnmarshalXMLAttr (_fgadg );continue ;};if _fgadg .Name .Local =="\u006c\u0069\u0067\u0068\u0074\u006c\u0065\u0076\u0065\u006c"{_bgfe ,_f
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Image and its children, prefixing error messages with path
|
|
|
|
func (_fgfg *CT_Image )ValidateWithPath (path string )error {for _feedb ,_gaacb :=range _fgfg .EG_ShapeElements {if _eeea :=_gaacb .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_feedb ));_eeea !=nil {return _eeea ;};};if _addg :=_fgfg .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_addg !=nil {return _addg ;};if _cfgeb :=_fgfg .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_cfgeb !=nil {return _cfgeb ;};if _dgbbf :=_fgfg .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_dgbbf !=nil {return _dgbbf ;};if _gcadab :=_fgfg .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_gcadab !=nil {return _gcadab ;};if _bbac :=_fgfg .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bbac !=nil {return _bbac ;};if _agdbc :=_fgfg .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_agdbc !=nil {return _agdbc ;};if _ggfc :=_fgfg .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_ggfc !=nil {return _ggfc ;};if _fefe :=_fgfg .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_fefe !=nil {return _fefe ;};if _gfbbb :=_fgfg .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_gfbbb !=nil {return _gfbbb ;};if _fabfff :=_fgfg .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fabfff !=nil {return _fabfff ;};if _debdb :=_fgfg .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_debdb !=nil {return _debdb ;};if _affdb :=_fgfg .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_affdb !=nil {return _affdb ;};if _fbac :=_fgfg .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fbac !=nil {return _fbac ;};if _aggf :=_fgfg .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_aggf !=nil {return _aggf ;};if _fgcf :=_fgfg .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_fgcf !=nil {return _fgcf ;};if _geeafg :=_fgfg .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_geeafg !=nil {return _geeafg ;};if _fdec :=_fgfg .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_fdec !=nil {return _fdec ;};if _ggeb :=_fgfg .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ggeb !=nil {return _ggeb ;};if _aegg :=_fgfg .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_aegg !=nil {return _aegg ;};if _fegfg :=_fgfg .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_fegfg !=nil {return _fegfg ;};if _caeed :=_fgfg .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_caeed !=nil {return _caeed ;};if _gbcd :=_fgfg .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_gbcd !=nil {return _gbcd ;};if _fcded :=_fgfg .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_fcded !=nil
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_ShapeDefaults and its children
|
|
|
|
func (_aefc *OfcCT_ShapeDefaults )Validate ()error {return _aefc .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0068\u0061\u0070\u0065\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcTop and its children, prefixing error messages with path
|
|
|
|
func (_bbaff *OfcTop )ValidateWithPath (path string )error {if _fdfgd :=_bbaff .OfcCT_StrokeChild .ValidateWithPath (path );_fdfgd !=nil {return _fdfgd ;};return nil ;};func NewCT_Arc ()*CT_Arc {_afb :=&CT_Arc {};return _afb };func (_gbffb *ST_EditAs )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_gbffb =0;case "\u0063\u0061\u006e\u0076\u0061\u0073":*_gbffb =1;case "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074":*_gbffb =2;case "\u0072\u0061\u0064\u0069\u0061\u006c":*_gbffb =3;case "\u0063\u0079\u0063l\u0065":*_gbffb =4;case "\u0073t\u0061\u0063\u006b\u0065\u0064":*_gbffb =5;case "\u0076\u0065\u006e\u006e":*_gbffb =6;case "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065":*_gbffb =7;};return nil ;};func (_afdcg *OfcCT_RegroupTable )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_cgged :=range start .Attr {if _cgged .Name .Local =="\u0065\u0078\u0074"{_afdcg .ExtAttr .UnmarshalXMLAttr (_cgged );continue ;};};_fcdce :for {_babac ,_egeac :=d .Token ();if _egeac !=nil {return _egeac ;};switch _fabcd :=_babac .(type ){case _c .StartElement :switch _fabcd .Name {case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0065\u006e\u0074r\u0079"}:_ffdgb :=NewOfcCT_Entry ();if _badff :=d .DecodeElement (_ffdgb ,&_fabcd );_badff !=nil {return _badff ;};_afdcg .Entry =append (_afdcg .Entry ,_ffdgb );default:_ac .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",_fabcd .Name );if _bcbaac :=d .Skip ();_bcbaac !=nil {return _bcbaac ;};};case _c .EndElement :break _fcdce ;case _c .CharData :};};return nil ;};func NewAG_AllShapeAttributes ()*AG_AllShapeAttributes {_gfb :=&AG_AllShapeAttributes {};return _gfb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcShapedefaults and its children, prefixing error messages with path
|
|
|
|
func (_dcdbbe *OfcShapedefaults )ValidateWithPath (path string )error {if _ggbef :=_dcdbbe .OfcCT_ShapeDefaults .ValidateWithPath (path );_ggbef !=nil {return _ggbef ;};return nil ;};func (_abcge *OfcOLEObject )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_abcge .OfcCT_OLEObject =*NewOfcCT_OLEObject ();for _ ,_cfdcb :=range start .Attr {if _cfdcb .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"&&_cfdcb .Name .Local =="\u0069\u0064"||_cfdcb .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"&&_cfdcb .Name .Local =="\u0069\u0064"{_ccge ,_dfddb :=_cfdcb .Value ,error (nil );if _dfddb !=nil {return _dfddb ;};_abcge .IdAttr =&_ccge ;continue ;};if _cfdcb .Name .Local =="\u0054\u0079\u0070\u0065"{_abcge .TypeAttr .UnmarshalXMLAttr (_cfdcb );continue ;};if _cfdcb .Name .Local =="\u0050\u0072\u006f\u0067\u0049\u0044"{_fdbed ,_cgdbf :=_cfdcb .Value ,error (nil );if _cgdbf !=nil {return _cgdbf ;};_abcge .ProgIDAttr =&_fdbed ;continue ;};if _cfdcb .Name .Local =="\u0053h\u0061\u0070\u0065\u0049\u0044"{_cbggg ,_baefd :=_cfdcb .Value ,error (nil );if _baefd !=nil {return _baefd ;};_abcge .ShapeIDAttr =&_cbggg ;continue ;};if _cfdcb .Name .Local =="\u0044\u0072\u0061\u0077\u0041\u0073\u0070\u0065\u0063\u0074"{_abcge .DrawAspectAttr .UnmarshalXMLAttr (_cfdcb );continue ;};if _cfdcb .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0049\u0044"{_dbbag ,_agaeg :=_cfdcb .Value ,error (nil );if _agaeg !=nil {return _agaeg ;};_abcge .ObjectIDAttr =&_dbbag ;continue ;};if _cfdcb .Name .Local =="\u0055\u0070\u0064\u0061\u0074\u0065\u004d\u006f\u0064\u0065"{_abcge .UpdateModeAttr .UnmarshalXMLAttr (_cfdcb );continue ;};};_ccbge :for {_afegb ,_fcfec :=d .Token ();if _fcfec !=nil {return _fcfec ;};switch _dadcfd :=_afegb .(type ){case _c .StartElement :switch _dadcfd .Name {case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u004c\u0069\u006e\u006b\u0054\u0079\u0070\u0065"}:_abcge .LinkType =new (string );if _gadafd :=d .DecodeElement (_abcge .LinkType ,&_dadcfd );_gadafd !=nil {return _gadafd ;};case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"L\u006f\u0063\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064"}:_abcge .LockedField =_fc .ST_TrueFalseBlankUnset ;if _gbcgf :=d .DecodeElement (&_abcge .LockedField ,&_dadcfd );_gbcgf !=nil {return _gbcgf ;};case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0046\u0069\u0065\u006c\u0064\u0043\u006f\u0064\u0065\u0073"}:_abcge .FieldCodes =new (string );if _eggdeg :=d .DecodeElement (_abcge .FieldCodes ,&_dadcfd );_eggdeg !=nil {return _eggdeg ;};default:_ac .Log .Debug ("s\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075n\u0073\u0075\u0070\u0070\u006f\u0072\u0074ed\u0020\u0065\u006c\u0065m\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066cO\u004c\u0045O\u0062\u006a\u0065\u0063\u0074\u0020\u0025\u0076",_dadcfd .Name );if _cdffd :=d .Skip ();_cdffd !=nil {return _cdffd ;};};case _c .EndElement :brea
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Curve and its children
|
|
|
|
func (_bfgd *Curve )Validate ()error {return _bfgd .ValidateWithPath ("\u0043\u0075\u0072v\u0065")};func (_dgcgfd OfcST_FillType )String ()string {switch _dgcgfd {case 0:return "";case 1:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072";case 2:return "\u0073\u006f\u006ci\u0064";case 3:return "\u0070a\u0074\u0074\u0065\u0072\u006e";case 4:return "\u0074\u0069\u006c\u0065";case 5:return "\u0066\u0072\u0061m\u0065";case 6:return "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064";case 7:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case 8:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case 9:return "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";};return "";};func (_cebfe *OfcCT_ShapeLayout )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0073\u0068\u0061\u0070\u0065\u006c\u0061\u0079\u006f\u0075\u0074";};if _cebfe .ExtAttr !=ST_ExtUnset {_gefdb ,_dagac :=_cebfe .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dagac !=nil {return _dagac ;};start .Attr =append (start .Attr ,_gefdb );};e .EncodeToken (start );if _cebfe .Idmap !=nil {_gdeff :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0069\u0064\u006d\u0061\u0070"}};e .EncodeElement (_cebfe .Idmap ,_gdeff );};if _cebfe .Regrouptable !=nil {_fdddb :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070t\u0061\u0062\u006c\u0065"}};e .EncodeElement (_cebfe .Regrouptable ,_fdddb );};if _cebfe .Rules !=nil {_cbggc :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0072\u0075\u006c\u0065\u0073"}};e .EncodeElement (_cebfe .Rules ,_cbggc );};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};type OfcST_BWMode byte ;func (_afbgb *OfcCT_Entry )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0065\u006e\u0074\u0072\u0079";};if _afbgb .NewAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006e\u0065\u0077"},Value :_fb .Sprintf ("\u0025\u0076",*_afbgb .NewAttr )});};if _afbgb .OldAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u006c\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_afbgb .OldAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcLeft and its children
|
|
|
|
func (_ebedeg *OfcLeft )Validate ()error {return _ebedeg .ValidateWithPath ("\u004ff\u0063\u004c\u0065\u0066\u0074");};type OfcST_FillType byte ;type Shapetype struct{CT_Shapetype };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Line and its children, prefixing error messages with path
|
|
|
|
func (_abec *CT_Line )ValidateWithPath (path string )error {for _bggdg ,_agae :=range _abec .EG_ShapeElements {if _gbcg :=_agae .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bggdg ));_gbcg !=nil {return _gbcg ;};};if _eddgc :=_abec .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_eddgc !=nil {return _eddgc ;};if _afgac :=_abec .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_afgac !=nil {return _afgac ;};if _aebbc :=_abec .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_aebbc !=nil {return _aebbc ;};if _ffbe :=_abec .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ffbe !=nil {return _ffbe ;};if _edad :=_abec .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_edad !=nil {return _edad ;};if _ffffe :=_abec .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ffffe !=nil {return _ffffe ;};if _fdaab :=_abec .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_fdaab !=nil {return _fdaab ;};if _gbgca :=_abec .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gbgca !=nil {return _gbgca ;};if _gedd :=_abec .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_gedd !=nil {return _gedd ;};if _bdddef :=_abec .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_bdddef !=nil {return _bdddef ;};if _dgbf :=_abec .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_dgbf !=nil {return _dgbf ;};if _dfdbd :=_abec .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_dfdbd !=nil {return _dfdbd ;};if _bfdb :=_abec .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_bfdb !=nil {return _bfdb ;};if _gcda :=_abec .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_gcda !=nil {return _gcda ;};if _edbf :=_abec .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_edbf !=nil {return _edbf ;};if _afda :=_abec .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_afda !=nil {return _afda ;};if _fcfac :=_abec .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_fcfac !=nil {return _fcfac ;};if _ecea :=_abec .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ecea !=nil {return _ecea ;};if _bbgg :=_abec .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bbgg !=nil {return _bbgg ;};if _caed :=_abec .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_caed !=nil {return _caed ;};if _egac :=_abec .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_egac !=nil {return _egac ;};if _ggde :=_abec .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ggde !=nil {return _ggde ;};if _abdc :=_abec .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_abdc !=nil {return _abdc ;}
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_TextPath and its children, prefixing error messages with path
|
|
|
|
func (_fbag *CT_TextPath )ValidateWithPath (path string )error {if _dbfee :=_fbag .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_dbfee !=nil {return _dbfee ;};if _bbcfa :=_fbag .FitshapeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u0074\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_bbcfa !=nil {return _bbcfa ;};if _bdad :=_fbag .FitpathAttr .ValidateWithPath (path +"\u002f\u0046\u0069t\u0070\u0061\u0074\u0068\u0041\u0074\u0074\u0072");_bdad !=nil {return _bdad ;};if _cagd :=_fbag .TrimAttr .ValidateWithPath (path +"\u002fT\u0072\u0069\u006d\u0041\u0074\u0074r");_cagd !=nil {return _cagd ;};if _eebgb :=_fbag .XscaleAttr .ValidateWithPath (path +"/\u0058\u0073\u0063\u0061\u006c\u0065\u0041\u0074\u0074\u0072");_eebgb !=nil {return _eebgb ;};return nil ;};func (_eed *AG_CoreAttributes )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _eed .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .HrefAttr )});};if _eed .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .TargetAttr )});};if _eed .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .ClassAttr )});};if _eed .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .TitleAttr )});};if _eed .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .AltAttr )});};if _eed .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .CoordsizeAttr )});};if _eed .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .CoordoriginAttr )});};if _eed .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .WrapcoordsAttr )});};if _eed .PrintAttr !=_fc .ST_TrueFalseUnset {_dacd ,_dff :=_eed .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _dff !=nil {return _dff ;};start .Attr =append (start .Attr ,_dacd );};if _eed .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .IdAttr )});};if _eed .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_eed .StyleAttr )});};return nil ;};func (_cgeca OfcST_ExtrusionRender )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_egfec :=_c .Attr {};_egfec .Name =name ;switch _cgeca {case OfcST_ExtrusionRenderUnset :_egfec .Value ="";case OfcST_ExtrusionRenderSolid :_egfec .Value ="\u0073\u006f\u006ci\u0064";case OfcST_ExtrusionRenderWireFrame :_egfec .Value ="\u0077i\u0072\u0065\u0046\u0072\u0061\u006de";case OfcST_ExtrusionRenderBoundingCube :_egfec .Value ="\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065";};return _egfec ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Stroke and its children, prefixing error messages with path
|
|
|
|
func (_gadafb *Stroke )ValidateWithPath (path string )error {if _fbdbfa :=_gadafb .CT_Stroke .ValidateWithPath (path );_fbdbfa !=nil {return _fbdbfa ;};return nil ;};func NewOfcCT_OLEObject ()*OfcCT_OLEObject {_befac :=&OfcCT_OLEObject {};return _befac };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_StrokeChild and its children, prefixing error messages with path
|
|
|
|
func (_acaae *OfcCT_StrokeChild )ValidateWithPath (path string )error {if _fadca :=_acaae .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_fadca !=nil {return _fadca ;};if _accae :=_acaae .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_accae !=nil {return _accae ;};if _eaabdb :=_acaae .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_eaabdb !=nil {return _eaabdb ;};if _cagce :=_acaae .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_cagce !=nil {return _cagce ;};if _acgde :=_acaae .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_acgde !=nil {return _acgde ;};if _gbeac :=_acaae .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_gbeac !=nil {return _gbeac ;};if _edddba :=_acaae .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_edddba !=nil {return _edddba ;};if _edbaa :=_acaae .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_edbaa !=nil {return _edbaa ;};if _gecc :=_acaae .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_gecc !=nil {return _gecc ;};if _abgef :=_acaae .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_abgef !=nil {return _abgef ;};if _beedg :=_acaae .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_beedg !=nil {return _beedg ;};if _bbefbe :=_acaae .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_bbefbe !=nil {return _bbefbe ;};if _gbdafgg :=_acaae .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_gbdafgg !=nil {return _gbdafgg ;};if _fbfbc :=_acaae .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_fbfbc !=nil {return _fbfbc ;};if _bfff :=_acaae .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_bfff !=nil {return _bfff ;};if _aafea :=_acaae .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_aafea !=nil {return _aafea ;};return nil ;};func NewOfcOLEObject ()*OfcOLEObject {_aegcgg :=&OfcOLEObject {};_aegcgg .OfcCT_OLEObject =*NewOfcCT_OLEObject ();return _aegcgg ;};func (_bbdea OfcST_ScreenSize )Validate ()error {return _bbdea .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Callout and its children, prefixing error messages with path
|
|
|
|
func (_bfafb *OfcCT_Callout )ValidateWithPath (path string )error {if _geebf :=_bfafb .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_geebf !=nil {return _geebf ;};if _cfceb :=_bfafb .AngleAttr .ValidateWithPath (path +"\u002f\u0041\u006e\u0067\u006c\u0065\u0041\u0074\u0074\u0072");_cfceb !=nil {return _cfceb ;};if _gafga :=_bfafb .DropautoAttr .ValidateWithPath (path +"\u002f\u0044\u0072\u006f\u0070\u0061\u0075\u0074\u006f\u0041\u0074\u0074\u0072");_gafga !=nil {return _gafga ;};if _gbfe :=_bfafb .LengthspecifiedAttr .ValidateWithPath (path +"/\u004ce\u006e\u0067\u0074\u0068\u0073\u0070\u0065\u0063i\u0066\u0069\u0065\u0064At\u0074\u0072");_gbfe !=nil {return _gbfe ;};if _edged :=_bfafb .AccentbarAttr .ValidateWithPath (path +"\u002f\u0041\u0063\u0063\u0065\u006e\u0074\u0062\u0061r\u0041\u0074\u0074\u0072");_edged !=nil {return _edged ;};if _gaaac :=_bfafb .TextborderAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0062\u006f\u0072\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_gaaac !=nil {return _gaaac ;};if _bbgcc :=_bfafb .MinusxAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0078\u0041\u0074\u0074\u0072");_bbgcc !=nil {return _bbgcc ;};if _cefc :=_bfafb .MinusyAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0079\u0041\u0074\u0074\u0072");_cefc !=nil {return _cefc ;};if _gbcga :=_bfafb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gbcga !=nil {return _gbcga ;};return nil ;};func (_egcc *CT_Background )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0062a\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";};if _egcc .BwmodeAttr !=OfcST_BWModeUnset {_dfaeg ,_egad :=_egcc .BwmodeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _egad !=nil {return _egad ;};start .Attr =append (start .Attr ,_dfaeg );};if _egcc .BwpureAttr !=OfcST_BWModeUnset {_cebc ,_ebcd :=_egcc .BwpureAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u0070\u0075\u0072\u0065"});if _ebcd !=nil {return _ebcd ;};start .Attr =append (start .Attr ,_cebc );};if _egcc .BwnormalAttr !=OfcST_BWModeUnset {_fdcga ,_bcac :=_egcc .BwnormalAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _bcac !=nil {return _bcac ;};start .Attr =append (start .Attr ,_fdcga );};if _egcc .TargetscreensizeAttr !=OfcST_ScreenSizeUnset {_dfaa ,_fcef :=_egcc .TargetscreensizeAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0074a\u0072\u0067\u0065\u0074\u0073c\u0072\u0065e\u006e\u0073\u0069\u007a\u0065"});if _fcef !=nil {return _fcef ;};start .Attr =append (start .Attr ,_dfaa );};if _egcc .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_egcc .IdAttr )});};if _egcc .FilledAttr !=_fc .ST_TrueFalseUnset {_fceda ,_efaa :=_egcc .FilledAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _efaa !=nil {return _efaa ;};start .Attr =append (start .Attr ,_fceda );};if _egcc .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_fb .Sprintf ("\u0025\u0076",*_egcc .FillcolorAttr )});};e .EncodeToken (start );if _egcc .Fill !=nil {_abef :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_egcc .Fill ,_abef );};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func NewOfcShapelayout ()*OfcShapelayout {_dgedc :=&OfcShapelayout {};_dgedc .OfcCT_ShapeLayout =*NewOfcCT_ShapeLayout ();return _dgedc ;};func (_egaga *CT_Textbox )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx";};if _egaga .InsetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u006e\u0073e\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_egaga .In
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_RoundRect and its children, prefixing error messages with path
|
|
|
|
func (_ffce *CT_RoundRect )ValidateWithPath (path string )error {for _ecgf ,_beba :=range _ffce .EG_ShapeElements {if _ecfb :=_beba .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_ecgf ));_ecfb !=nil {return _ecfb ;};};if _cfdbe :=_ffce .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_cfdbe !=nil {return _cfdbe ;};if _agafdc :=_ffce .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_agafdc !=nil {return _agafdc ;};if _acgea :=_ffce .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_acgea !=nil {return _acgea ;};if _ccgdg :=_ffce .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ccgdg !=nil {return _ccgdg ;};if _cdfg :=_ffce .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_cdfg !=nil {return _cdfg ;};if _bddge :=_ffce .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_bddge !=nil {return _bddge ;};if _bcbg :=_ffce .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_bcbg !=nil {return _bcbg ;};if _ccfed :=_ffce .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_ccfed !=nil {return _ccfed ;};if _agfe :=_ffce .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_agfe !=nil {return _agfe ;};if _fgaad :=_ffce .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fgaad !=nil {return _fgaad ;};if _cefbb :=_ffce .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_cefbb !=nil {return _cefbb ;};if _aafa :=_ffce .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_aafa !=nil {return _aafa ;};if _gddeg :=_ffce .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_gddeg !=nil {return _gddeg ;};if _dgeg :=_ffce .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_dgeg !=nil {return _dgeg ;};if _fffbd :=_ffce .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_fffbd !=nil {return _fffbd ;};if _aface :=_ffce .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_aface !=nil {return _aface ;};if _acab :=_ffce .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_acab !=nil {return _acab ;};if _gedf :=_ffce .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_gedf !=nil {return _gedf ;};if _cfceg :=_ffce .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_cfceg !=nil {return _cfceg ;};if _affab :=_ffce .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_affab !=nil {return _affab ;};if _bgda :=_ffce .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bgda !=nil {return _bgda ;};if _cgafe :=_ffce .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_cgafe !=nil {return _cgafe ;};if _geebc :=_ffce .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_geebc !=
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_Adj and its children
|
|
|
|
func (_gd *AG_Adj )Validate ()error {return _gd .ValidateWithPath ("\u0041\u0047\u005f\u0041\u0064\u006a");};func NewFormulas ()*Formulas {_gcffe :=&Formulas {};_gcffe .CT_Formulas =*NewCT_Formulas ();return _gcffe ;};func (_ageaa *OfcST_ConnectType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_ageaa =0;case "\u006e\u006f\u006e\u0065":*_ageaa =1;case "\u0072\u0065\u0063\u0074":*_ageaa =2;case "\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073":*_ageaa =3;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_ageaa =4;};return nil ;};func (_eefdc OfcST_ScreenSize )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_eefdc .String (),start );};func (_bbgbd *OfcCT_OLEObject )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="o\u003a\u006f\u006c\u0065\u006f\u0062\u006a\u0065\u0063\u0074";};if _bbgbd .TypeAttr !=OfcST_OLETypeUnset {_fbfeg ,_agcac :=_bbgbd .TypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0054\u0079\u0070\u0065"});if _agcac !=nil {return _agcac ;};start .Attr =append (start .Attr ,_fbfeg );};if _bbgbd .ProgIDAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0050\u0072\u006f\u0067\u0049\u0044"},Value :_fb .Sprintf ("\u0025\u0076",*_bbgbd .ProgIDAttr )});};if _bbgbd .ShapeIDAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0053h\u0061\u0070\u0065\u0049\u0044"},Value :_fb .Sprintf ("\u0025\u0076",*_bbgbd .ShapeIDAttr )});};if _bbgbd .DrawAspectAttr !=OfcST_OLEDrawAspectUnset {_dbgfa ,_aaebc :=_bbgbd .DrawAspectAttr .MarshalXMLAttr (_c .Name {Local :"\u0044\u0072\u0061\u0077\u0041\u0073\u0070\u0065\u0063\u0074"});if _aaebc !=nil {return _aaebc ;};start .Attr =append (start .Attr ,_dbgfa );};if _bbgbd .ObjectIDAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u004f\u0062\u006a\u0065\u0063\u0074\u0049\u0044"},Value :_fb .Sprintf ("\u0025\u0076",*_bbgbd .ObjectIDAttr )});};if _bbgbd .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_bbgbd .IdAttr )});};if _bbgbd .UpdateModeAttr !=OfcST_OLEUpdateModeUnset {_ccbfc ,_gedfc :=_bbgbd .UpdateModeAttr .MarshalXMLAttr (_c .Name {Local :"\u0055\u0070\u0064\u0061\u0074\u0065\u004d\u006f\u0064\u0065"});if _gedfc !=nil {return _gedfc ;};start .Attr =append (start .Attr ,_ccbfc );};e .EncodeToken (start );if _bbgbd .LinkType !=nil {_aecfad :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u004c\u0069\u006e\u006b\u0054\u0079\u0070\u0065"}};_a .AddPreserveSpaceAttr (&_aecfad ,*_bbgbd .LinkType );e .EncodeElement (_bbgbd .LinkType ,_aecfad );};if _bbgbd .LockedField !=_fc .ST_TrueFalseBlankUnset {_ccdfe :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u004c\u006f\u0063\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064"}};e .EncodeElement (_bbgbd .LockedField ,_ccdfe );};if _bbgbd .FieldCodes !=nil {_affebd :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0046i\u0065\u006c\u0064\u0043\u006f\u0064\u0065\u0073"}};_a .AddPreserveSpaceAttr (&_affebd ,*_bbgbd .FieldCodes );e .EncodeElement (_bbgbd .FieldCodes ,_affebd );};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_gabff *ST_StrokeArrowType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_gabff =0;case "\u006e\u006f\u006e\u0065":*_gabff =1;case "\u0062\u006c\u006fc\u006b":*_gabff =2;case "\u0063l\u0061\u0073\u0073\u0069\u0063":*_gabff =3;case "\u006f\u0076\u0061\u006c":*_gabff =4;case "\u0064i\u0061\u006d\u006f\u006e\u0064":*_gabff =5;case "\u006f\u0070\u0065\u006e":*_gabff =6;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Image and its children, prefixing error messages with path
|
|
|
|
func (_eabb *Image )ValidateWithPath (path string )error {if _gbaega :=_eabb .CT_Image .ValidateWithPath (path );_gbaega !=nil {return _gbaega ;};return nil ;};func (_face *OfcST_ExtrusionPlane )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_aacaa ,_baffg :=d .Token ();if _baffg !=nil {return _baffg ;};if _deegg ,_beafe :=_aacaa .(_c .EndElement );_beafe &&_deegg .Name ==start .Name {*_face =1;return nil ;};if _daagbb ,_ebdgf :=_aacaa .(_c .CharData );!_ebdgf {return _fb .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",_aacaa );}else {switch string (_daagbb ){case "":*_face =0;case "\u0058\u0059":*_face =1;case "\u005a\u0058":*_face =2;case "\u0059\u005a":*_face =3;};};_aacaa ,_baffg =d .Token ();if _baffg !=nil {return _baffg ;};if _cfcebc ,_gcecde :=_aacaa .(_c .EndElement );_gcecde &&_cfcebc .Name ==start .Name {return nil ;};return _fb .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",_aacaa );};type OfcST_InsetMode byte ;func (_eegba *ST_ShadowType )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_eegba =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_eegba =1;case "\u0064\u006f\u0075\u0062\u006c\u0065":*_eegba =2;case "\u0065\u006d\u0062\u006f\u0073\u0073":*_eegba =3;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_eegba =4;};return nil ;};func (_fcfff ST_EditAs )String ()string {switch _fcfff {case 0:return "";case 1:return "\u0063\u0061\u006e\u0076\u0061\u0073";case 2:return "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074";case 3:return "\u0072\u0061\u0064\u0069\u0061\u006c";case 4:return "\u0063\u0079\u0063l\u0065";case 5:return "\u0073t\u0061\u0063\u006b\u0065\u0064";case 6:return "\u0076\u0065\u006e\u006e";case 7:return "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065";};return "";};
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_Fill and its children
|
|
|
|
func (_bbc *AG_Fill )Validate ()error {return _bbc .ValidateWithPath ("\u0041G\u005f\u0046\u0069\u006c\u006c");};func (_dadfe *ST_StrokeArrowLength )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_dadfe =0;case "\u0073\u0068\u006fr\u0074":*_dadfe =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_dadfe =2;case "\u006c\u006f\u006e\u0067":*_dadfe =3;};return nil ;};func (_bdead *OfcCT_StrokeChild )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0073\u0074\u0072\u006f\u006b\u0065\u0063\u0068\u0069\u006c\u0064";};if _bdead .OnAttr !=_fc .ST_TrueFalseUnset {_egaac ,_afcgf :=_bdead .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _afcgf !=nil {return _afcgf ;};start .Attr =append (start .Attr ,_egaac );};if _bdead .WeightAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_bdead .WeightAttr )});};if _bdead .ColorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_bdead .ColorAttr )});};if _bdead .Color2Attr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0032"},Value :_fb .Sprintf ("\u0025\u0076",*_bdead .Color2Attr )});};if _bdead .OpacityAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_fb .Sprintf ("\u0025\u0076",*_bdead .OpacityAttr )});};if _bdead .LinestyleAttr !=ST_StrokeLineStyleUnset {_befdg ,_ebebfc :=_bdead .LinestyleAttr .MarshalXMLAttr (_c .Name {Local :"v\u003a\u006c\u0069\u006e\u0065\u0073\u0074\u0079\u006c\u0065"});if _ebebfc !=nil {return _ebebfc ;};start .Attr =append (start .Attr ,_befdg );};if _bdead .MiterlimitAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006d\u0069\u0074\u0065\u0072\u006c\u0069\u006d\u0069\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_bdead .MiterlimitAttr )});};if _bdead .JoinstyleAttr !=ST_StrokeJoinStyleUnset {_aggaa ,_cgdeb :=_bdead .JoinstyleAttr .MarshalXMLAttr (_c .Name {Local :"v\u003a\u006a\u006f\u0069\u006e\u0073\u0074\u0079\u006c\u0065"});if _cgdeb !=nil {return _cgdeb ;};start .Attr =append (start .Attr ,_aggaa );};if _bdead .EndcapAttr !=ST_StrokeEndCapUnset {_bbcfb ,_cgbfa :=_bdead .EndcapAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065\u006e\u0064\u0063\u0061\u0070"});if _cgbfa !=nil {return _cgbfa ;};start .Attr =append (start .Attr ,_bbcfb );};if _bdead .DashstyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"},Value :_fb .Sprintf ("\u0025\u0076",*_bdead .DashstyleAttr )});};if _bdead .InsetpenAttr !=_fc .ST_TrueFalseUnset {_eddge ,_eaabae :=_bdead .InsetpenAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _eaabae !=nil {return _eaabae ;};start .Attr =append (start .Attr ,_eddge );};if _bdead .FilltypeAttr !=ST_FillTypeUnset {_gagdc ,_bgcdc :=_bdead .FilltypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"});if _bgcdc !=nil {return _bgcdc ;};start .Attr =append (start .Attr ,_gagdc );};if _bdead .SrcAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0072\u0063"},Value :_fb .Sprintf ("\u0025\u0076",*_bdead .SrcAttr )});};if _bdead .ImageaspectAttr !=ST_ImageAspectUnset {_gdgedf ,_baaga :=_bdead .ImageaspectAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0069\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"});if _baaga !=nil {return _baaga ;};start .Attr =append (start .Attr ,_gdgedf );};if _bdead .ImagesizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"},Value :_fb .Sprintf ("\u0025\u0076",*_bdead .ImagesizeAttr )});};if _bdead .ImagealignshapeAttr !=_fc .ST_TrueFalseUnset {_ffdgfe ,_fgg
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Formulas and its children
|
|
|
|
func (_ebaf *Formulas )Validate ()error {return _ebaf .ValidateWithPath ("\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_Ext and its children, prefixing error messages with path
|
|
|
|
func (_gbd *AG_Ext )ValidateWithPath (path string )error {if _gbd .ExtAttr ==ST_ExtUnset {return _fb .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 _bdb :=_gbd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bdb !=nil {return _bdb ;};return nil ;};func (_aeede OfcST_DiagramLayout )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_aeede .String (),start );};func (_cccbf OfcST_DiagramLayout )Validate ()error {return _cccbf .ValidateWithPath ("")};func (_fefc *CT_ImageData )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_abcd :=range start .Attr {if _abcd .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"&&_abcd .Name .Local =="\u0070\u0069\u0063\u0074"||_abcd .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"&&_abcd .Name .Local =="\u0070\u0069\u0063\u0074"{_defb ,_faeg :=_abcd .Value ,error (nil );if _faeg !=nil {return _faeg ;};_fefc .PictAttr =&_defb ;continue ;};if _abcd .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"&&_abcd .Name .Local =="\u0068\u0072\u0065\u0066"||_abcd .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"&&_abcd .Name .Local =="\u0068\u0072\u0065\u0066"{_eaga ,_gadg :=_abcd .Value ,error (nil );if _gadg !=nil {return _gadg ;};_fefc .RHrefAttr =&_eaga ;continue ;};if _abcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abcd .Name .Local =="\u0068\u0072\u0065\u0066"{_bbge ,_gegf :=_abcd .Value ,error (nil );if _gegf !=nil {return _gegf ;};_fefc .HrefAttr =&_bbge ;continue ;};if _abcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abcd .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_efcb ,_edae :=_abcd .Value ,error (nil );if _edae !=nil {return _edae ;};_fefc .AlthrefAttr =&_efcb ;continue ;};if _abcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abcd .Name .Local =="\u0074\u0069\u0074l\u0065"{_fefg ,_gdgf :=_abcd .Value ,error (nil );if _gdgf !=nil {return _gdgf ;};_fefc .TitleAttr =&_fefg ;continue ;};if _abcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006f
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_AllShapeAttributes and its children
|
|
|
|
func (_fbc *AG_AllShapeAttributes )Validate ()error {return _fbc .ValidateWithPath ("A\u0047\u005f\u0041\u006clS\u0068a\u0070\u0065\u0041\u0074\u0074r\u0069\u0062\u0075\u0074\u0065\u0073");};func (_acfdb OfcST_BWMode )ValidateWithPath (path string )error {switch _acfdb {case 0,1,2,3,4,5,6,7,8,9,10,11,12:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_acfdb ));};return nil ;};func (_ggafbc *Shape )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ggafbc .CT_Shape =*NewCT_Shape ();for _ ,_bafea :=range start .Attr {if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_eccge ,_ecdec :=_f .ParseInt (_bafea .Value ,10,64);if _ecdec !=nil {return _ecdec ;};_ggafbc .RegroupidAttr =&_eccge ;continue ;};if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_ggafbc .DoubleclicknotifyAttr .UnmarshalXMLAttr (_bafea );continue ;};if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u0063\u006c\u0069\u0070"{_ggafbc .ClipAttr .UnmarshalXMLAttr (_bafea );continue ;};if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_ggafbc .ButtonAttr .UnmarshalXMLAttr (_bafea );continue ;};if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_ggafbc .UserhiddenAttr .UnmarshalXMLAttr (_bafea );continue ;};if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ggafbc .BulletAttr .UnmarshalXMLAttr (_bafea );continue ;};if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u0067f\u0078\u0064\u0061\u0074\u0061"{_cccba ,_fdgbg :=_bafea .Value ,error (nil );if _fdgbg !=nil {return _fdgbg ;};_ggafbc .GfxdataAttr =&_cccba ;continue ;};if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u0068\u0072"{_ggafbc .HrAttr .UnmarshalXMLAttr (_bafea );continue ;};if _bafea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bafea .Name .Local =="\u006f\u006c\u0065"{_ggaf
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Formulas and its children, prefixing error messages with path
|
|
|
|
func (_fgaec *Formulas )ValidateWithPath (path string )error {if _eefff :=_fgaec .CT_Formulas .ValidateWithPath (path );_eefff !=nil {return _eefff ;};return nil ;};func (_efebb *CT_Shapetype )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="v\u003a\u0073\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065";};if _efebb .MasterAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u006d\u0061\u0073\u0074\u0065\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .MasterAttr )});};if _efebb .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .HrefAttr )});};if _efebb .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .TargetAttr )});};if _efebb .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .ClassAttr )});};if _efebb .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .TitleAttr )});};if _efebb .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .AltAttr )});};if _efebb .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .CoordsizeAttr )});};if _efebb .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .CoordoriginAttr )});};if _efebb .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .WrapcoordsAttr )});};if _efebb .PrintAttr !=_fc .ST_TrueFalseUnset {_ecdga ,_bdfdg :=_efebb .PrintAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u0072\u0069n\u0074"});if _bdfdg !=nil {return _bdfdg ;};start .Attr =append (start .Attr ,_ecdga );};if _efebb .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .IdAttr )});};if _efebb .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .StyleAttr )});};if _efebb .SpidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .SpidAttr )});};if _efebb .OnedAttr !=_fc .ST_TrueFalseUnset {_bfbad ,_gbdd :=_efebb .OnedAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _gbdd !=nil {return _gbdd ;};start .Attr =append (start .Attr ,_bfbad );};if _efebb .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_efebb .RegroupidAttr )});};if _efebb .DoubleclicknotifyAttr !=_fc .ST_TrueFalseUnset {_eeab ,_acegf :=_efebb .DoubleclicknotifyAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _acegf !=nil {return _acegf ;};start .Attr =append (start .Attr ,_eeab );};if _efebb .ButtonAttr !=_fc .ST_TrueFalseUnset {_acgcb ,_bdde :=_efebb .ButtonAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _bdde !=nil {return _bdde ;};start .Attr =append (start .Attr ,_acgcb );};if _efebb .UserhiddenAttr !=_fc .ST_TrueFalseUnset {_aebfd ,_adbbba :=_efebb .UserhiddenAttr .MarshalXMLAttr (_c .
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_Id and its children, prefixing error messages with path
|
|
|
|
func (_aee *AG_Id )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Group and its children
|
|
|
|
func (_cgbc *CT_Group )Validate ()error {return _cgbc .ValidateWithPath ("\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070");};func NewShadow ()*Shadow {_egabdg :=&Shadow {};_egabdg .CT_Shadow =*NewCT_Shadow ();return _egabdg };func (_efade *OfcTop )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_efade .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_aabaf :=range start .Attr {if _aabaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabaf .Name .Local =="\u0068\u0072\u0065\u0066"{_facgd ,_bcfdd :=_aabaf .Value ,error (nil );if _bcfdd !=nil {return _bcfdd ;};_efade .HrefAttr =&_facgd ;continue ;};if _aabaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabaf .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_efade .ForcedashAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabaf .Name .Local =="\u0074\u0069\u0074l\u0065"{_cefbc ,_afbeed :=_aabaf .Value ,error (nil );if _afbeed !=nil {return _afbeed ;};_efade .TitleAttr =&_cefbc ;continue ;};if _aabaf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aabaf .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_cdgbfc ,_ccgeb :=_aabaf .Value ,error (nil );if _ccgeb !=nil {return _ccgeb ;};_efade .AlthrefAttr =&_cdgbfc ;continue ;};if _aabaf .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_efade .ImageaspectAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_efade .StartarrowAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_efade .LinestyleAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_efade .StartarrowwidthAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_efade .JoinstyleAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_efade .StartarrowlengthAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_gbbde ,_dffcc :=_aabaf .Value ,error (nil );if _dffcc !=nil {return _dffcc ;};_efade .DashstyleAttr =&_gbbde ;continue ;};if _aabaf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_efade .EndarrowAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_efade .FilltypeAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_efade .EndarrowwidthAttr .UnmarshalXMLAttr (_aabaf );continue ;};if _aabaf .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_efdc ,_aafgd :=_aabaf .Value ,error (nil );if _aafgd !=nil {return _aafgd ;};_efade .OpacityAttr =&_efdc ;continue ;};if _aabaf .Name .Local =="\u0063\u006f\u006co\u0072"{_gaeff ,_fgeda :=_aabaf .Value ,error (nil );if _fgeda !=nil {return _fgeda ;};_efade .ColorAttr =&_gaeff ;continue ;};if _aabaf .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_efade .InsetpenAttr .UnmarshalXMLAttr (_aabaf
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_Chromakey and its children, prefixing error messages with path
|
|
|
|
func (_eee *AG_Chromakey )ValidateWithPath (path string )error {return nil };func (_egdae OfcST_CalloutPlacement )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_egdae .String (),start );};func (_fffceg ST_StrokeLineStyle )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_baadb :=_c .Attr {};_baadb .Name =name ;switch _fffceg {case ST_StrokeLineStyleUnset :_baadb .Value ="";case ST_StrokeLineStyleSingle :_baadb .Value ="\u0073\u0069\u006e\u0067\u006c\u0065";case ST_StrokeLineStyleThinThin :_baadb .Value ="\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e";case ST_StrokeLineStyleThinThick :_baadb .Value ="\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k";case ST_StrokeLineStyleThickThin :_baadb .Value ="\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n";case ST_StrokeLineStyleThickBetweenThin :_baadb .Value ="\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e";};return _baadb ,nil ;};func (_adcgdd *CT_Shapetype )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_agbfc :=range start .Attr {if _agbfc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbfc .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_agdca ,_bfddd :=_agbfc .Value ,error (nil );if _bfddd !=nil {return _bfddd ;};_adcgdd .BordertopcolorAttr =&_agdca ;continue ;};if _agbfc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbfc .Name .Local =="\u006d\u0061\u0073\u0074\u0065\u0072"{_fcfceb ,_efcfg :=_agbfc .Value ,error (nil );if _efcfg !=nil {return _efcfg ;};_adcgdd .MasterAttr =&_fcfceb ;continue ;};if _agbfc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbfc .Name .Local =="\u0062o\u0072d\u0065\u0072\u006c\u0065\u0066\u0074\u0063\u006f\u006c\u006f\u0072"{_dagdc ,_fecca :=_agbfc .Value ,error (nil );if _fecca !=nil {return _fecca ;};_adcgdd .BorderleftcolorAttr =&_dagdc ;continue ;};if _agbfc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbfc .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_adcgdd .BulletAttr .UnmarshalXMLAttr (_agbfc );continue ;};if _agbfc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbfc .Name .Local =="\u0068\u0072"{_adcgdd .HrAttr .UnmarshalXMLAttr (_agbfc );continue ;};if _agbfc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbfc .Name .Local =="\u0063\u006c\u0069\u0070"{_adcgdd .ClipAttr .UnmarshalXMLAttr (_agbfc );continue ;};if _agbfc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_agbfc .Name .Local =="\u0068\u0072\u0073t\u0064"{_adcgdd .HrstdAttr .UnmarshalXMLAttr (_agbfc );continue ;};if _agbfc .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcColumn and its children, prefixing error messages with path
|
|
|
|
func (_ddbgaa *OfcColumn )ValidateWithPath (path string )error {if _cfedc :=_ddbgaa .OfcCT_StrokeChild .ValidateWithPath (path );_cfedc !=nil {return _cfedc ;};return nil ;};func (_aadc *AG_StrokeAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dbcf :=range start .Attr {if _dbcf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dbcf .Name .Local =="\u0072\u0065\u006ci\u0064"{_gedc ,_ddg :=_dbcf .Value ,error (nil );if _ddg !=nil {return _ddg ;};_aadc .RelidAttr =&_gedc ;continue ;};if _dbcf .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"&&_dbcf .Name .Local =="\u0069\u0064"{_bfc ,_addf :=_dbcf .Value ,error (nil );if _addf !=nil {return _addf ;};_aadc .IdAttr =&_bfc ;continue ;};if _dbcf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dbcf .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_aadc .ForcedashAttr .UnmarshalXMLAttr (_dbcf );continue ;};if _dbcf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dbcf .Name .Local =="\u0074\u0069\u0074l\u0065"{_bff ,_bgg :=_dbcf .Value ,error (nil );if _bgg !=nil {return _bgg ;};_aadc .TitleAttr =&_bff ;continue ;};if _dbcf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dbcf .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_gfdc ,_fcbda :=_dbcf .Value ,error (nil );if _fcbda !=nil {return _fcbda ;};_aadc .AlthrefAttr =&_gfdc ;continue ;};if _dbcf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dbcf .Name .Local =="\u0068\u0072\u0065\u0066"{_cae ,_eaeea :=_dbcf .Value ,error (nil );if _eaeea !=nil {return _eaeea ;};_aadc .HrefAttr =&_cae ;continue ;};if _dbcf .Name .Local =="\u006f\u006e"{_aadc .OnAttr .UnmarshalXMLAttr (_dbcf );continue ;};if _dbcf .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_aadc .StartarrowlengthAttr .UnmarshalXMLAttr (_dbcf );continue ;};if _dbcf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_aadc .EndarrowAttr .UnmarshalXMLAttr (_dbcf );continue ;};if _dbcf .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_cabae ,_gdag :=_dbcf .Value ,error (nil );if _gdag !=nil {return _gdag ;};_aadc .DashstyleAttr =&_cabae ;continue ;};if _dbcf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_aadc .EndarrowwidthAttr .UnmarshalXMLAttr (_dbcf );continue ;};if _dbcf .Name .Local =="\u0073\u0072\u0063"{_cada ,_dagg :=_dbcf .Value ,error (nil );if _dagg !=nil {return _dagg ;};_aadc .SrcAttr =&_cada ;continue ;};if _dbcf .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u006ce\u006e\u0067\u0074\u0068"{_aadc .EndarrowlengthAttr .UnmarshalXMLAttr (_dbcf );continue ;};if _dbcf .Name .Local =="\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"{_cadag ,_cbf :=_dbcf .Value ,error (nil );if _cbf !=nil {return _cbf ;};_aadc
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Textbox and its children, prefixing error messages with path
|
|
|
|
func (_aagfe *CT_Textbox )ValidateWithPath (path string )error {if _bagfa :=_aagfe .SingleclickAttr .ValidateWithPath (path +"\u002f\u0053i\u006e\u0067\u006ce\u0063\u006c\u0069\u0063\u006b\u0041\u0074\u0074\u0072");_bagfa !=nil {return _bagfa ;};if _eccfg :=_aagfe .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_eccfg !=nil {return _eccfg ;};if _aagfe .TxbxContent !=nil {if _bdbeb :=_aagfe .TxbxContent .ValidateWithPath (path +"\u002f\u0054\u0078b\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074");_bdbeb !=nil {return _bdbeb ;};};return nil ;};func NewCT_H ()*CT_H {_dgcd :=&CT_H {};return _dgcd };func init (){_a .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 );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043\u0054\u005fS\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065",NewCT_Shapetype );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070",NewCT_Group );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043\u0054\u005f\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064",NewCT_Background );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043T\u005f\u0046\u0069\u006c\u006c",NewCT_Fill );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","C\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073",NewCT_Formulas );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043\u0054\u005f\u0046",NewCT_F );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043\u0054\u005f\u0048\u0061\u006e\u0064\u006c\u0065\u0073",NewCT_Handles );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043\u0054\u005f\u0048",NewCT_H );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043\u0054\u005fI\u006d\u0061\u0067\u0065\u0044\u0061\u0074\u0061",NewCT_ImageData );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043T\u005f\u0050\u0061\u0074\u0068",NewCT_Path );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043T\u005f\u0053\u0068\u0061\u0064\u006fw",NewCT_Shadow );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c","\u0043T\u005f\u0053\u0074\u0072\u006f\u006be",NewCT_Stroke );_a .RegisterConstructor ("\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcRight and its children, prefixing error messages with path
|
|
|
|
func (_bcbfe *OfcRight )ValidateWithPath (path string )error {if _ecfce :=_bcbfe .OfcCT_StrokeChild .ValidateWithPath (path );_ecfce !=nil {return _ecfce ;};return nil ;};func (_bbggbd *OfcCT_RegroupTable )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070t\u0061\u0062\u006c\u0065";};if _bbggbd .ExtAttr !=ST_ExtUnset {_dbgcb ,_egff :=_bbggbd .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _egff !=nil {return _egff ;};start .Attr =append (start .Attr ,_dbgcb );};e .EncodeToken (start );if _bbggbd .Entry !=nil {_bcgba :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0065\u006e\u0074\u0072\u0079"}};for _ ,_dffdgd :=range _bbggbd .Entry {e .EncodeElement (_dffdgd ,_bcgba );};};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_befcb OfcST_OLEType )ValidateWithPath (path string )error {switch _befcb {case 0,1,2:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_befcb ));};return nil ;};func NewAG_StrokeAttributes ()*AG_StrokeAttributes {_dgdf :=&AG_StrokeAttributes {};return _dgdf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_AllCoreAttributes and its children
|
|
|
|
func (_fcbd *AG_AllCoreAttributes )Validate ()error {return _fcbd .ValidateWithPath ("A\u0047_\u0041\u006c\u006c\u0043\u006f\u0072\u0065\u0041t\u0074\u0072\u0069\u0062ut\u0065\u0073");};type CT_Formulas struct{F []*CT_F ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_R and its children
|
|
|
|
func (_bcgda *OfcCT_R )Validate ()error {return _bcgda .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0052");};func NewPolyline ()*Polyline {_cgcgcf :=&Polyline {};_cgcgcf .CT_PolyLine =*NewCT_PolyLine ();return _cgcgcf ;};func (_aabda *OfcCT_Diagram )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_bcefe :=range start .Attr {if _bcefe .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_fagdb ,_defag :=_f .ParseInt (_bcefe .Value ,10,64);if _defag !=nil {return _defag ;};_aabda .DgmstyleAttr =&_fagdb ;continue ;};if _bcefe .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_aabda .AutoformatAttr .UnmarshalXMLAttr (_bcefe );continue ;};if _bcefe .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_aabda .ReverseAttr .UnmarshalXMLAttr (_bcefe );continue ;};if _bcefe .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_aabda .AutolayoutAttr .UnmarshalXMLAttr (_bcefe );continue ;};if _bcefe .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_gbbff ,_acbgb :=_f .ParseInt (_bcefe .Value ,10,64);if _acbgb !=nil {return _acbgb ;};_aabda .DgmscalexAttr =&_gbbff ;continue ;};if _bcefe .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_dgafc ,_dggbe :=_f .ParseInt (_bcefe .Value ,10,64);if _dggbe !=nil {return _dggbe ;};_aabda .DgmscaleyAttr =&_dgafc ;continue ;};if _bcefe .Name .Local =="d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"{_ffgbc ,_abbab :=_f .ParseInt (_bcefe .Value ,10,64);if _abbab !=nil {return _abbab ;};_aabda .DgmfontsizeAttr =&_ffgbc ;continue ;};if _bcefe .Name .Local =="\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"{_dafga ,_afdec :=_bcefe .Value ,error (nil );if _afdec !=nil {return _afdec ;};_aabda .ConstrainboundsAttr =&_dafga ;continue ;};if _bcefe .Name .Local =="\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"{_ffcdea ,_acded :=_f .ParseInt (_bcefe .Value ,10,64);if _acded !=nil {return _acded ;};_aabda .DgmbasetextscaleAttr =&_ffcdea ;continue ;};if _bcefe .Name .Local =="\u0065\u0078\u0074"{_aabda .ExtAttr .UnmarshalXMLAttr (_bcefe );continue ;};};_ebffgf :for {_cffbd ,_aadfb :=d .Token ();if _aadfb !=nil {return _aadfb ;};switch _cgce :=_cffbd .(type ){case _c .StartElement :switch _cgce .Name {case _c .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065"}:_aabda .Relationtable =NewOfcCT_RelationTable ();if _defcg :=d .DecodeElement (_aabda .Relationtable ,&_cgce );_defcg !=nil {return _defcg ;};default:_ac .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073up\u0070\u006f\u0072\u0074\u0065\u0064 \u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043T\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006d \u0025\u0076",_cgce .Name );if _dabce :=d .Skip ();_dabce !=nil {return _dabce ;};};case _c .EndElement :break _ebffgf ;case _c .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcExtrusion and its children, prefixing error messages with path
|
|
|
|
func (_cgcd *OfcExtrusion )ValidateWithPath (path string )error {if _cdfcg :=_cgcd .OfcCT_Extrusion .ValidateWithPath (path );_cdfcg !=nil {return _cdfcg ;};return nil ;};func (_gdda *OfcExtrusion )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _gdda .OfcCT_Extrusion .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Path and its children, prefixing error messages with path
|
|
|
|
func (_dfgf *Path )ValidateWithPath (path string )error {if _dbcfa :=_dfgf .CT_Path .ValidateWithPath (path );_dbcfa !=nil {return _dbcfa ;};return nil ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the AG_StrokeAttributes and its children
|
|
|
|
func (_cdag *AG_StrokeAttributes )Validate ()error {return _cdag .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
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcFill and its children
|
|
|
|
func (_ebbe *OfcFill )Validate ()error {return _ebbe .ValidateWithPath ("\u004ff\u0063\u0046\u0069\u006c\u006c");};func (_bggae *OfcCT_IdMap )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0069\u0064\u006d\u0061\u0070";};if _bggae .DataAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0064\u0061\u0074\u0061"},Value :_fb .Sprintf ("\u0025\u0076",*_bggae .DataAttr )});};if _bggae .ExtAttr !=ST_ExtUnset {_fdgcf ,_cacde :=_bggae .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _cacde !=nil {return _cacde ;};start .Attr =append (start .Attr ,_fdgcf );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func NewOfcCT_Lock ()*OfcCT_Lock {_afagg :=&OfcCT_Lock {};return _afagg };func (_afegg OfcST_HrAlign )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_cagcd :=_c .Attr {};_cagcd .Name =name ;switch _afegg {case OfcST_HrAlignUnset :_cagcd .Value ="";case OfcST_HrAlignLeft :_cagcd .Value ="\u006c\u0065\u0066\u0074";case OfcST_HrAlignRight :_cagcd .Value ="\u0072\u0069\u0067h\u0074";case OfcST_HrAlignCenter :_cagcd .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";};return _cagcd ,nil ;};type ST_StrokeArrowWidth byte ;func NewOfcExtrusion ()*OfcExtrusion {_bacdec :=&OfcExtrusion {};_bacdec .OfcCT_Extrusion =*NewOfcCT_Extrusion ();return _bacdec ;};func NewOfcCT_Diagram ()*OfcCT_Diagram {_ddcfb :=&OfcCT_Diagram {};return _ddcfb };func (_gfa *AG_OfficeShapeAttributes )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_dgab :=range start .Attr {if _dgab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dgab .Name .Local =="\u0073\u0070\u0074"{_gbfa ,_bgcbd :=_f .ParseFloat (_dgab .Value ,64);if _bgcbd !=nil {return _bgcbd ;};_ecfg :=float32 (_gbfa );_gfa .SptAttr =&_ecfg ;continue ;};if _dgab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dgab .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"{_gfa .ConnectortypeAttr .UnmarshalXMLAttr (_dgab );continue ;};if _dgab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dgab .Name .Local =="\u0062\u0077\u006d\u006f\u0064\u0065"{_gfa .BwmodeAttr .UnmarshalXMLAttr (_dgab );continue ;};if _dgab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dgab .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_gfa .BwpureAttr .UnmarshalXMLAttr (_dgab );continue ;};if _dgab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dgab .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_gfa .BwnormalAttr .UnmarshalXMLAttr (_dgab );continue ;};if _dgab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dgab .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_gfa .ForcedashAttr .UnmarshalXMLAttr (_dgab );continue ;};if _dgab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcFill and its children, prefixing error messages with path
|
|
|
|
func (_egfda *OfcFill )ValidateWithPath (path string )error {if _cfcbbb :=_egfda .OfcCT_Fill .ValidateWithPath (path );_cfcbbb !=nil {return _cfcbbb ;};return nil ;};func (_gdbbb *OfcCT_Proxy )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_acabb :=range start .Attr {if _acabb .Name .Local =="\u0073\u0074\u0061r\u0074"{_gdbbb .StartAttr .UnmarshalXMLAttr (_acabb );continue ;};if _acabb .Name .Local =="\u0065\u006e\u0064"{_gdbbb .EndAttr .UnmarshalXMLAttr (_acabb );continue ;};if _acabb .Name .Local =="\u0069\u0064\u0072e\u0066"{_gffdb ,_gafad :=_acabb .Value ,error (nil );if _gafad !=nil {return _gafad ;};_gdbbb .IdrefAttr =&_gffdb ;continue ;};if _acabb .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063"{_abdb ,_geddge :=_f .ParseInt (_acabb .Value ,10,32);if _geddge !=nil {return _geddge ;};_gabag :=int32 (_abdb );_gdbbb .ConnectlocAttr =&_gabag ;continue ;};};for {_ggff ,_acaef :=d .Token ();if _acaef !=nil {return _fb .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0050\u0072\u006f\u0078\u0079\u003a\u0020\u0025\u0073",_acaef );};if _gefda ,_beaf :=_ggff .(_c .EndElement );_beaf &&_gefda .Name ==start .Name {break ;};};return nil ;};func (_cbedf *OfcST_ConnectorType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_edbeaa ,_bcecgb :=d .Token ();if _bcecgb !=nil {return _bcecgb ;};if _bacag ,_bgcae :=_edbeaa .(_c .EndElement );_bgcae &&_bacag .Name ==start .Name {*_cbedf =1;return nil ;};if _daagge ,_eafeg :=_edbeaa .(_c .CharData );!_eafeg {return _fb .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",_edbeaa );}else {switch string (_daagge ){case "":*_cbedf =0;case "\u006e\u006f\u006e\u0065":*_cbedf =1;case "\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074":*_cbedf =2;case "\u0065\u006c\u0062o\u0077":*_cbedf =3;case "\u0063\u0075\u0072\u0076\u0065\u0064":*_cbedf =4;};};_edbeaa ,_bcecgb =d .Token ();if _bcecgb !=nil {return _bcecgb ;};if _ebgab ,_bbdag :=_edbeaa .(_c .EndElement );_bbdag &&_ebgab .Name ==start .Name {return nil ;};return _fb .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",_edbeaa );};type OfcLock struct{OfcCT_Lock };func (_eegac OfcST_OLEDrawAspect )Validate ()error {return _eegac .ValidateWithPath ("")};type CT_Textbox struct{InsetAttr *string ;SingleclickAttr _fc .ST_TrueFalse ;InsetmodeAttr OfcST_InsetMode ;TxbxContent *_dc .TxbxContent ;Any _a .Any ;IdAttr *string ;StyleAttr *string ;};
|
2022-12-06 11:56:49 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Stroke and its children
|
|
|
|
func (_agbba *Stroke )Validate ()error {return _agbba .ValidateWithPath ("\u0053\u0074\u0072\u006f\u006b\u0065");};func (_gfagd ST_StrokeEndCap )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_eaaca :=_c .Attr {};_eaaca .Name =name ;switch _gfagd {case ST_StrokeEndCapUnset :_eaaca .Value ="";case ST_StrokeEndCapFlat :_eaaca .Value ="\u0066\u006c\u0061\u0074";case ST_StrokeEndCapSquare :_eaaca .Value ="\u0073\u0071\u0075\u0061\u0072\u0065";case ST_StrokeEndCapRound :_eaaca .Value ="\u0072\u006f\u0075n\u0064";};return _eaaca ,nil ;};func NewOfcCT_Complex ()*OfcCT_Complex {_cfbbd :=&OfcCT_Complex {};return _cfbbd };func (_cgg *CT_H )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0068";};if _cgg .PositionAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"},Value :_fb .Sprintf ("\u0025\u0076",*_cgg .PositionAttr )});};if _cgg .PolarAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0070\u006f\u006ca\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_cgg .PolarAttr )});};if _cgg .MapAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006d\u0061\u0070"},Value :_fb .Sprintf ("\u0025\u0076",*_cgg .MapAttr )});};if _cgg .InvxAttr !=_fc .ST_TrueFalseUnset {_fabf ,_fbde :=_cgg .InvxAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0076\u0078"});if _fbde !=nil {return _fbde ;};start .Attr =append (start .Attr ,_fabf );};if _cgg .InvyAttr !=_fc .ST_TrueFalseUnset {_gbc ,_eggg :=_cgg .InvyAttr .MarshalXMLAttr (_c .Name {Local :"\u0069\u006e\u0076\u0079"});if _eggg !=nil {return _eggg ;};start .Attr =append (start .Attr ,_gbc );};if _cgg .SwitchAttr !=_fc .ST_TrueFalseBlankUnset {_fggef ,_gdbb :=_cgg .SwitchAttr .MarshalXMLAttr (_c .Name {Local :"\u0073\u0077\u0069\u0074\u0063\u0068"});if _gdbb !=nil {return _gdbb ;};start .Attr =append (start .Attr ,_fggef );};if _cgg .XrangeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u0072\u0061\u006e\u0067\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_cgg .XrangeAttr )});};if _cgg .YrangeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0079\u0072\u0061\u006e\u0067\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_cgg .YrangeAttr )});};if _cgg .RadiusrangeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"r\u0061\u0064\u0069\u0075\u0073\u0072\u0061\u006e\u0067\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_cgg .RadiusrangeAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_ccgce *OfcST_CalloutPlacement )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_ccgce =0;case "\u0074\u006f\u0070":*_ccgce =1;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_ccgce =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_ccgce =3;case "\u0075\u0073\u0065\u0072":*_ccgce =4;};return nil ;};func (_cbgc *OfcClippath )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066
|
2022-12-06 11:56:49 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_Fill and its children, prefixing error messages with path
|
|
|
|
func (_bfde *AG_Fill )ValidateWithPath (path string )error {if _eac :=_bfde .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_eac !=nil {return _eac ;};return nil ;};func (_bbba *CT_Arc )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_aedb :=range start .Attr {if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_bbba .UserdrawnAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_bbba .ButtonAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_bbba .DgmlayoutmruAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_bbba .UserhiddenAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_bbba .CliptowrapAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_bbba .BulletAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u006f\u006c\u0065"{_bbba .OleAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0068\u0072"{_bbba .HrAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0073\u0070\u0069\u0064"{_bfbd ,_acgf :=_aedb .Value ,error (nil );if _acgf !=nil {return _acgf ;};_bbba .SpidAttr =&_bfbd ;continue ;};if _aedb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_aedb .Name .Local =="\u0068\u0072\u0073t\u0064"{_bbba .HrstdAttr .UnmarshalXMLAttr (_aedb );continue ;};if _aedb .Name .Space =="\u0075\u00
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_fggg *CT_Fill )ValidateWithPath (path string )error {if _ebgg :=_fggg .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_ebgg !=nil {return _ebgg ;};if _bcee :=_fggg .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_bcee !=nil {return _bcee ;};if _bddfe :=_fggg .AspectAttr .ValidateWithPath (path +"/\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_bddfe !=nil {return _bddfe ;};if _bacc :=_fggg .AlignshapeAttr .ValidateWithPath (path +"\u002fA\u006ci\u0067\u006e\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_bacc !=nil {return _bacc ;};if _dbegc :=_fggg .MethodAttr .ValidateWithPath (path +"/\u004d\u0065\u0074\u0068\u006f\u0064\u0041\u0074\u0074\u0072");_dbegc !=nil {return _dbegc ;};if _ceec :=_fggg .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_ceec !=nil {return _ceec ;};if _agbc :=_fggg .RecolorAttr .ValidateWithPath (path +"\u002f\u0052\u0065c\u006f\u006c\u006f\u0072\u0041\u0074\u0074\u0072");_agbc !=nil {return _agbc ;};if _daecc :=_fggg .RotateAttr .ValidateWithPath (path +"/\u0052\u006f\u0074\u0061\u0074\u0065\u0041\u0074\u0074\u0072");_daecc !=nil {return _daecc ;};if _fggg .Fill !=nil {if _gcgd :=_fggg .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_gcgd !=nil {return _gcgd ;};};return nil ;};type AG_ImageAttributes struct{SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _fc .ST_TrueFalse ;BilevelAttr _fc .ST_TrueFalse ;};func NewCT_Line ()*CT_Line {_cfegd :=&CT_Line {};return _cfegd };func NewOfcCT_Skew ()*OfcCT_Skew {_egbbc :=&OfcCT_Skew {};return _egbbc };func (_ddbc *OfcLock )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _ddbc .OfcCT_Lock .MarshalXML (e ,start );};type OfcExtrusion struct{OfcCT_Extrusion };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Rules and its children, prefixing error messages with path
|
|
|
|
func (_dabga *OfcCT_Rules )ValidateWithPath (path string )error {for _ebbaa ,_fbggf :=range _dabga .R {if _dccfg :=_fbggf .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002f\u0052\u005b\u0025\u0064\u005d",path ,_ebbaa ));_dccfg !=nil {return _dccfg ;};};if _adbfa :=_dabga .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_adbfa !=nil {return _adbfa ;};return nil ;};func (_cdfbe OfcST_ExtrusionRender )ValidateWithPath (path string )error {switch _cdfbe {case 0,1,2,3:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_cdfbe ));};return nil ;};func NewOfcCT_ClipPath ()*OfcCT_ClipPath {_dgeca :=&OfcCT_ClipPath {};return _dgeca };func NewOfcCT_Rules ()*OfcCT_Rules {_bbbba :=&OfcCT_Rules {};return _bbbba };func NewOfcCT_SignatureLine ()*OfcCT_SignatureLine {_gdcef :=&OfcCT_SignatureLine {};return _gdcef };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Rect and its children, prefixing error messages with path
|
|
|
|
func (_gggd *Rect )ValidateWithPath (path string )error {if _cbeaa :=_gggd .CT_Rect .ValidateWithPath (path );_cbeaa !=nil {return _cbeaa ;};return nil ;};func (_dfgdb *OfcST_RType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ffeac ,_fffbg :=d .Token ();if _fffbg !=nil {return _fffbg ;};if _becgg ,_feafa :=_ffeac .(_c .EndElement );_feafa &&_becgg .Name ==start .Name {*_dfgdb =1;return nil ;};if _affea ,_efeca :=_ffeac .(_c .CharData );!_efeca {return _fb .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",_ffeac );}else {switch string (_affea ){case "":*_dfgdb =0;case "\u0061\u0072\u0063":*_dfgdb =1;case "\u0063a\u006c\u006c\u006f\u0075\u0074":*_dfgdb =2;case "\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr":*_dfgdb =3;case "\u0061\u006c\u0069g\u006e":*_dfgdb =4;};};_ffeac ,_fffbg =d .Token ();if _fffbg !=nil {return _fffbg ;};if _gdccg ,_dgedf :=_ffeac .(_c .EndElement );_dgedf &&_gdccg .Name ==start .Name {return nil ;};return _fb .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",_ffeac );};
|
|
|
|
|
|
|
|
// Validate validates the OfcExtrusion and its children
|
|
|
|
func (_feab *OfcExtrusion )Validate ()error {return _feab .ValidateWithPath ("\u004f\u0066\u0063E\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};func NewAG_AllCoreAttributes ()*AG_AllCoreAttributes {_ge :=&AG_AllCoreAttributes {};return _ge };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-05-26 09:49:04 +00:00
|
|
|
// Validate validates the CT_Line and its children
|
2023-06-10 07:12:37 +00:00
|
|
|
func (_dffe *CT_Line )Validate ()error {return _dffe .ValidateWithPath ("\u0043T\u005f\u004c\u0069\u006e\u0065");};func (_addag *OfcDiagram )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u006f:\u0064\u0069\u0061\u0067\u0072\u0061m";return _addag .OfcCT_Diagram .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_cccdfb *OfcCT_Fill )ValidateWithPath (path string )error {if _cadd :=_cccdfb .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_cadd !=nil {return _cadd ;};if _bdagcd :=_cccdfb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bdagcd !=nil {return _bdagcd ;};return nil ;};type OfcCT_OLEObject struct{TypeAttr OfcST_OLEType ;ProgIDAttr *string ;ShapeIDAttr *string ;DrawAspectAttr OfcST_OLEDrawAspect ;ObjectIDAttr *string ;IdAttr *string ;UpdateModeAttr OfcST_OLEUpdateMode ;LinkType *string ;LockedField _fc .ST_TrueFalseBlank ;FieldCodes *string ;};type AG_Chromakey struct{ChromakeyAttr *string ;};func NewOfcCT_ShapeLayout ()*OfcCT_ShapeLayout {_addcg :=&OfcCT_ShapeLayout {};return _addcg };func (_fadga *OfcST_OLEUpdateMode )UnmarshalXMLAttr (attr _c .Attr )error {switch attr .Value {case "":*_fadga =0;case "\u0041\u006c\u0077\u0061\u0079\u0073":*_fadga =1;case "\u004f\u006e\u0043\u0061\u006c\u006c":*_fadga =2;};return nil ;};func (_cdebf *CT_Stroke )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_caede :=range start .Attr {if _caede .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_caede .Name .Local =="\u0072\u0065\u006ci\u0064"{_egdbcg ,_bggeg :=_caede .Value ,error (nil );if _bggeg !=nil {return _bggeg ;};_cdebf .RelidAttr =&_egdbcg ;continue ;};if _caede .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"&&_caede .Name .Local =="\u0069\u0064"{_effeg ,_bbffe :=_caede .Value ,error (nil );if _bbffe !=nil {return _bbffe ;};_cdebf .RIdAttr =&_effeg ;continue ;};if _caede .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_caede .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_cdebf .ForcedashAttr .UnmarshalXMLAttr (_caede );continue ;};if _caede .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_caede .Name .Local =="\u0074\u0069\u0074l\u0065"{_cccga ,_babcd :=_caede .Value ,error (nil );if _babcd !=nil {return _babcd ;};_cdebf .TitleAttr =&_cccga ;continue ;};if _caede .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_caede .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_ggbag ,_fbafa :=_caede .Value ,error (nil );if _fbafa !=nil {return _fbafa ;};_cdebf .AlthrefAttr =&_ggbag ;continue ;};if _caede .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_caede .Name .Local =="\u0068\u0072\u0065\u0066"{_fgee ,_faebg :=_caede .Value ,error (nil );if _faebg !=nil {return _faebg ;};_cdebf .HrefAttr =&_fgee ;continue ;};if _caede .Name .Local =="\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"{_caeee ,_baac :=_caede .Value ,error (nil );if _baac !=nil {return _baac ;};_cdebf .ImagesizeAttr =&_caeee ;continue ;};if _caede .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_cdebf .StartarrowlengthAttr .UnmarshalXMLAtt
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcOLEObject and its children
|
|
|
|
func (_dfdab *OfcOLEObject )Validate ()error {return _dfdab .ValidateWithPath ("\u004f\u0066\u0063O\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func (_dagaef ST_Ext )ValidateWithPath (path string )error {switch _dagaef {case 0,1,2,3:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_dagaef ));};return nil ;};func (_gaccb OfcST_OLEDrawAspect )String ()string {switch _gaccb {case 0:return "";case 1:return "\u0043o\u006e\u0074\u0065\u006e\u0074";case 2:return "\u0049\u0063\u006f\u006e";};return "";};func (_aefbe ST_StrokeJoinStyle )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_deabf :=_c .Attr {};_deabf .Name =name ;switch _aefbe {case ST_StrokeJoinStyleUnset :_deabf .Value ="";case ST_StrokeJoinStyleRound :_deabf .Value ="\u0072\u006f\u0075n\u0064";case ST_StrokeJoinStyleBevel :_deabf .Value ="\u0062\u0065\u0076e\u006c";case ST_StrokeJoinStyleMiter :_deabf .Value ="\u006d\u0069\u0074e\u0072";};return _deabf ,nil ;};func (_baaeg *CT_H )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {for _ ,_gbcb :=range start .Attr {if _gbcb .Name .Local =="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"{_gdfdf ,_ddbagf :=_gbcb .Value ,error (nil );if _ddbagf !=nil {return _ddbagf ;};_baaeg .PositionAttr =&_gdfdf ;continue ;};if _gbcb .Name .Local =="\u0070\u006f\u006ca\u0072"{_ddcbe ,_cfgge :=_gbcb .Value ,error (nil );if _cfgge !=nil {return _cfgge ;};_baaeg .PolarAttr =&_ddcbe ;continue ;};if _gbcb .Name .Local =="\u006d\u0061\u0070"{_fdfd ,_debb :=_gbcb .Value ,error (nil );if _debb !=nil {return _debb ;};_baaeg .MapAttr =&_fdfd ;continue ;};if _gbcb .Name .Local =="\u0069\u006e\u0076\u0078"{_baaeg .InvxAttr .UnmarshalXMLAttr (_gbcb );continue ;};if _gbcb .Name .Local =="\u0069\u006e\u0076\u0079"{_baaeg .InvyAttr .UnmarshalXMLAttr (_gbcb );continue ;};if _gbcb .Name .Local =="\u0073\u0077\u0069\u0074\u0063\u0068"{_baaeg .SwitchAttr .UnmarshalXMLAttr (_gbcb );continue ;};if _gbcb .Name .Local =="\u0078\u0072\u0061\u006e\u0067\u0065"{_aefg ,_bebgd :=_gbcb .Value ,error (nil );if _bebgd !=nil {return _bebgd ;};_baaeg .XrangeAttr =&_aefg ;continue ;};if _gbcb .Name .Local =="\u0079\u0072\u0061\u006e\u0067\u0065"{_bfgfg ,_bcdb :=_gbcb .Value ,error (nil );if _bcdb !=nil {return _bcdb ;};_baaeg .YrangeAttr =&_bfgfg ;continue ;};if _gbcb .Name .Local =="r\u0061\u0064\u0069\u0075\u0073\u0072\u0061\u006e\u0067\u0065"{_baad ,_aaab :=_gbcb .Value ,error (nil );if _aaab !=nil {return _aaab ;};_baaeg .RadiusrangeAttr =&_baad ;continue ;};};for {_abgg ,_abba :=d .Token ();if _abba !=nil {return _fb .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u0043\u0054\u005f\u0048\u003a\u0020\u0025\u0073",_abba );};if _gbgc ,_ebggg :=_abgg .(_c .EndElement );_ebggg &&_gbgc .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_Style and its children, prefixing error messages with path
|
|
|
|
func (_ffcd *AG_Style )ValidateWithPath (path string )error {return nil };func (_agbegf OfcST_InsetMode )ValidateWithPath (path string )error {switch _agbegf {case 0,1,2:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_agbegf ));};return nil ;};func (_becaa ST_ShadowType )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_becaa .String (),start );};func NewCT_Textbox ()*CT_Textbox {_abbdd :=&CT_Textbox {};return _abbdd };func NewOfcCT_ColorMenu ()*OfcCT_ColorMenu {_eedea :=&OfcCT_ColorMenu {};return _eedea };func NewOfcLeft ()*OfcLeft {_bbedb :=&OfcLeft {};_bbedb .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _bbedb ;};func (_befgc ST_ImageAspect )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_eggeb :=_c .Attr {};_eggeb .Name =name ;switch _befgc {case ST_ImageAspectUnset :_eggeb .Value ="";case ST_ImageAspectIgnore :_eggeb .Value ="\u0069\u0067\u006e\u006f\u0072\u0065";case ST_ImageAspectAtMost :_eggeb .Value ="\u0061\u0074\u004d\u006f\u0073\u0074";case ST_ImageAspectAtLeast :_eggeb .Value ="\u0061t\u004c\u0065\u0061\u0073\u0074";};return _eggeb ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcBottom and its children
|
|
|
|
func (_fagba *OfcBottom )Validate ()error {return _fagba .ValidateWithPath ("\u004ff\u0063\u0042\u006f\u0074\u0074\u006fm");};type Shadow struct{CT_Shadow };func (_gaegcc OfcST_ConnectType )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_dbbfd :=_c .Attr {};_dbbfd .Name =name ;switch _gaegcc {case OfcST_ConnectTypeUnset :_dbbfd .Value ="";case OfcST_ConnectTypeNone :_dbbfd .Value ="\u006e\u006f\u006e\u0065";case OfcST_ConnectTypeRect :_dbbfd .Value ="\u0072\u0065\u0063\u0074";case OfcST_ConnectTypeSegments :_dbbfd .Value ="\u0073\u0065\u0067\u006d\u0065\u006e\u0074\u0073";case OfcST_ConnectTypeCustom :_dbbfd .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _dbbfd ,nil ;};type OfcST_ConnectType byte ;func (_fbaeg *Textpath )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _fbaeg .CT_TextPath .MarshalXML (e ,start );};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Handles and its children
|
|
|
|
func (_cggbf *Handles )Validate ()error {return _cggbf .ValidateWithPath ("\u0048a\u006e\u0064\u006c\u0065\u0073");};func (_gfffb OfcST_CalloutPlacement )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_gcbcd :=_c .Attr {};_gcbcd .Name =name ;switch _gfffb {case OfcST_CalloutPlacementUnset :_gcbcd .Value ="";case OfcST_CalloutPlacementTop :_gcbcd .Value ="\u0074\u006f\u0070";case OfcST_CalloutPlacementCenter :_gcbcd .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";case OfcST_CalloutPlacementBottom :_gcbcd .Value ="\u0062\u006f\u0074\u0074\u006f\u006d";case OfcST_CalloutPlacementUser :_gcbcd .Value ="\u0075\u0073\u0065\u0072";};return _gcbcd ,nil ;};type ST_StrokeArrowType byte ;func (_gadfb *OfcST_ExtrusionType )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gdfadf ,_gfcgb :=d .Token ();if _gfcgb !=nil {return _gfcgb ;};if _ecdae ,_dfcaf :=_gdfadf .(_c .EndElement );_dfcaf &&_ecdae .Name ==start .Name {*_gadfb =1;return nil ;};if _defcf ,_adcag :=_gdfadf .(_c .CharData );!_adcag {return _fb .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",_gdfadf );}else {switch string (_defcf ){case "":*_gadfb =0;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_gadfb =1;case "\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c":*_gadfb =2;};};_gdfadf ,_gfcgb =d .Token ();if _gfcgb !=nil {return _gfcgb ;};if _fafgf ,_fdfeff :=_gdfadf .(_c .EndElement );_fdfeff &&_fafgf .Name ==start .Name {return nil ;};return _fb .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",_gdfadf );};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_TextPath and its children
|
|
|
|
func (_edcd *CT_TextPath )Validate ()error {return _edcd .ValidateWithPath ("C\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068");};func (_adged *OfcST_BWMode )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_acbea ,_gcbgce :=d .Token ();if _gcbgce !=nil {return _gcbgce ;};if _eedag ,_eeada :=_acbea .(_c .EndElement );_eeada &&_eedag .Name ==start .Name {*_adged =1;return nil ;};if _feefc ,_abaec :=_acbea .(_c .CharData );!_abaec {return _fb .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",_acbea );}else {switch string (_feefc ){case "":*_adged =0;case "\u0063\u006f\u006co\u0072":*_adged =1;case "\u0061\u0075\u0074\u006f":*_adged =2;case "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce":*_adged =3;case "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065":*_adged =4;case "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079":*_adged =5;case "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065":*_adged =6;case "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074":*_adged =7;case "\u0062\u006c\u0061c\u006b":*_adged =8;case "\u0077\u0068\u0069t\u0065":*_adged =9;case "\u0068\u0069\u0064\u0065":*_adged =10;case "\u0075n\u0064\u0072\u0061\u0077\u006e":*_adged =11;case "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073":*_adged =12;};};_acbea ,_gcbgce =d .Token ();if _gcbgce !=nil {return _gcbgce ;};if _ggadb ,_edgfc :=_acbea .(_c .EndElement );_edgfc &&_ggadb .Name ==start .Name {return nil ;};return _fb .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",_acbea );};type OfcCT_StrokeChild struct{OnAttr _fc .ST_TrueFalse ;WeightAttr *string ;ColorAttr *string ;Color2Attr *string ;OpacityAttr *string ;LinestyleAttr ST_StrokeLineStyle ;MiterlimitAttr *float64 ;JoinstyleAttr ST_StrokeJoinStyle ;EndcapAttr ST_StrokeEndCap ;DashstyleAttr *string ;InsetpenAttr _fc .ST_TrueFalse ;FilltypeAttr ST_FillType ;SrcAttr *string ;ImageaspectAttr ST_ImageAspect ;ImagesizeAttr *string ;ImagealignshapeAttr _fc .ST_TrueFalse ;StartarrowAttr ST_StrokeArrowType ;StartarrowwidthAttr ST_StrokeArrowWidth ;StartarrowlengthAttr ST_StrokeArrowLength ;EndarrowAttr ST_StrokeArrowType ;EndarrowwidthAttr ST_StrokeArrowWidth ;EndarrowlengthAttr ST_StrokeArrowLength ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;ForcedashAttr _fc .ST_TrueFalse ;ExtAttr ST_Ext ;};func NewOfcCallout ()*OfcCallout {_cbcdf :=&OfcCallout {};_cbcdf .OfcCT_Callout =*NewOfcCT_Callout ();return _cbcdf ;};type OfcCT_ShapeLayout struct{Idmap *OfcCT_IdMap ;Regrouptable *OfcCT_RegroupTable ;Rules *OfcCT_Rules ;ExtAttr ST_Ext ;};type ST_StrokeJoinStyle byte ;func (_fbcad *CT_Rect )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0072\u0065\u0063\u0074";};if _fbcad .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_fbcad .HrefAttr )});};if _fbcad .TargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_fbcad .TargetAttr )});};if _fbcad .ClassAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_fb .Sprintf ("\u0025\u0076",*_fbcad .ClassAttr )});};if _fbcad .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_fbcad .TitleAttr )});};if _fbcad .AltAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0061\u006c\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_fbcad .AltAttr )});};if _fbcad .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the CT_Formulas and its children
|
|
|
|
func (_fgce *CT_Formulas )Validate ()error {return _fgce .ValidateWithPath ("C\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};type OfcST_OLEDrawAspect byte ;func (_eefgb *CT_TextPath )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076\u003a\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068";};if _eefgb .OnAttr !=_fc .ST_TrueFalseUnset {_ggdbe ,_gfcca :=_eefgb .OnAttr .MarshalXMLAttr (_c .Name {Local :"\u006f\u006e"});if _gfcca !=nil {return _gfcca ;};start .Attr =append (start .Attr ,_ggdbe );};if _eefgb .FitshapeAttr !=_fc .ST_TrueFalseUnset {_bbbaf ,_fgbg :=_eefgb .FitshapeAttr .MarshalXMLAttr (_c .Name {Local :"\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"});if _fgbg !=nil {return _fgbg ;};start .Attr =append (start .Attr ,_bbbaf );};if _eefgb .FitpathAttr !=_fc .ST_TrueFalseUnset {_aafe ,_ddgg :=_eefgb .FitpathAttr .MarshalXMLAttr (_c .Name {Local :"\u0066i\u0074\u0070\u0061\u0074\u0068"});if _ddgg !=nil {return _ddgg ;};start .Attr =append (start .Attr ,_aafe );};if _eefgb .TrimAttr !=_fc .ST_TrueFalseUnset {_aedbc ,_dbfe :=_eefgb .TrimAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0072\u0069\u006d"});if _dbfe !=nil {return _dbfe ;};start .Attr =append (start .Attr ,_aedbc );};if _eefgb .XscaleAttr !=_fc .ST_TrueFalseUnset {_bcceb ,_gbgb :=_eefgb .XscaleAttr .MarshalXMLAttr (_c .Name {Local :"\u0078\u0073\u0063\u0061\u006c\u0065"});if _gbgb !=nil {return _gbgb ;};start .Attr =append (start .Attr ,_bcceb );};if _eefgb .StringAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0072\u0069\u006e\u0067"},Value :_fb .Sprintf ("\u0025\u0076",*_eefgb .StringAttr )});};if _eefgb .IdAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_eefgb .IdAttr )});};if _eefgb .StyleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_eefgb .StyleAttr )});};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_afggd *Shapetype )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return _afggd .CT_Shapetype .MarshalXML (e ,start );};func (_cggdfd *OfcCT_Lock )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u006c\u006f\u0063\u006b";};if _cggdfd .PositionAttr !=_fc .ST_TrueFalseUnset {_dcaa ,_bdgbf :=_cggdfd .PositionAttr .MarshalXMLAttr (_c .Name {Local :"\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"});if _bdgbf !=nil {return _bdgbf ;};start .Attr =append (start .Attr ,_dcaa );};if _cggdfd .SelectionAttr !=_fc .ST_TrueFalseUnset {_gebb ,_dcbdb :=_cggdfd .SelectionAttr .MarshalXMLAttr (_c .Name {Local :"\u0073e\u006c\u0065\u0063\u0074\u0069\u006fn"});if _dcbdb !=nil {return _dcbdb ;};start .Attr =append (start .Attr ,_gebb );};if _cggdfd .GroupingAttr !=_fc .ST_TrueFalseUnset {_cgcb ,_fcbgg :=_cggdfd .GroupingAttr .MarshalXMLAttr (_c .Name {Local :"\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"});if _fcbgg !=nil {return _fcbgg ;};start .Attr =append (start .Attr ,_cgcb );};if _cggdfd .UngroupingAttr !=_fc .ST_TrueFalseUnset {_ggdgg ,_cacbe :=_cggdfd .UngroupingAttr .MarshalXMLAttr (_c .Name {Local :"\u0075\u006e\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"});if _cacbe !=nil {return _cacbe ;};start .Attr =append (start .Attr ,_ggdgg );};if _cggdfd .RotationAttr !=_fc .ST_TrueFalseUnset {_abcca ,_bedcb :=_cggdfd .RotationAttr .MarshalXMLAttr (_c .Name {Local :"\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e"});if _bedcb !=nil {return _bedcb ;};start .Attr =append (start .Attr ,_abcca );};if _cggdfd .CroppingAttr !=_fc .ST_TrueFalseUnset {_agefb ,_becgcd :=_cggdfd .CroppingAttr .MarshalXMLAttr (_c .Name {Local :"\u0063\u0072\u006f\u0070\u0070\u0069\u006e\u0067"});if _becgcd !=nil {return _becgcd ;};start .Attr =append (start .Attr ,_agefb );};if _cggdfd .VerticiesAttr !=_fc .ST_TrueFalseUnset {_gadad ,_begbf :=
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Lock and its children, prefixing error messages with path
|
|
|
|
func (_abgc *OfcCT_Lock )ValidateWithPath (path string )error {if _dgcdf :=_abgc .PositionAttr .ValidateWithPath (path +"\u002f\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_dgcdf !=nil {return _dgcdf ;};if _cfcebb :=_abgc .SelectionAttr .ValidateWithPath (path +"\u002f\u0053\u0065\u006c\u0065\u0063\u0074\u0069\u006fn\u0041\u0074\u0074\u0072");_cfcebb !=nil {return _cfcebb ;};if _dfeafe :=_abgc .GroupingAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_dfeafe !=nil {return _dfeafe ;};if _ccceb :=_abgc .UngroupingAttr .ValidateWithPath (path +"\u002fU\u006eg\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_ccceb !=nil {return _ccceb ;};if _ebgff :=_abgc .RotationAttr .ValidateWithPath (path +"\u002f\u0052\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_ebgff !=nil {return _ebgff ;};if _ffga :=_abgc .CroppingAttr .ValidateWithPath (path +"\u002f\u0043\u0072\u006f\u0070\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_ffga !=nil {return _ffga ;};if _afge :=_abgc .VerticiesAttr .ValidateWithPath (path +"\u002f\u0056\u0065\u0072\u0074\u0069\u0063\u0069\u0065s\u0041\u0074\u0074\u0072");_afge !=nil {return _afge ;};if _aacag :=_abgc .AdjusthandlesAttr .ValidateWithPath (path +"\u002fA\u0064j\u0075\u0073\u0074\u0068\u0061n\u0064\u006ce\u0073\u0041\u0074\u0074\u0072");_aacag !=nil {return _aacag ;};if _badce :=_abgc .TextAttr .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0041\u0074\u0074r");_badce !=nil {return _badce ;};if _eaacd :=_abgc .AspectratioAttr .ValidateWithPath (path +"\u002f\u0041s\u0070\u0065\u0063t\u0072\u0061\u0074\u0069\u006f\u0041\u0074\u0074\u0072");_eaacd !=nil {return _eaacd ;};if _fged :=_abgc .ShapetypeAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0070\u0065\u0074\u0079\u0070e\u0041\u0074\u0074\u0072");_fged !=nil {return _fged ;};if _efgc :=_abgc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_efgc !=nil {return _efgc ;};return nil ;};func (_gfccf OfcST_ExtrusionRender )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {return e .EncodeElement (_gfccf .String (),start );};
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the CT_Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_ccfd *CT_Shapetype )ValidateWithPath (path string )error {for _gaacg ,_dbab :=range _ccfd .EG_ShapeElements {if _edca :=_dbab .ValidateWithPath (_fb .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_gaacg ));_edca !=nil {return _edca ;};};if _ccfd .Complex !=nil {if _agacd :=_ccfd .Complex .ValidateWithPath (path +"\u002f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");_agacd !=nil {return _agacd ;};};if _gcgea :=_ccfd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_gcgea !=nil {return _gcgea ;};if _dcbag :=_ccfd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_dcbag !=nil {return _dcbag ;};if _gbfab :=_ccfd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_gbfab !=nil {return _gbfab ;};if _fbff :=_ccfd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_fbff !=nil {return _fbff ;};if _bbad :=_ccfd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bbad !=nil {return _bbad ;};if _addcb :=_ccfd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_addcb !=nil {return _addcb ;};if _gdfa :=_ccfd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_gdfa !=nil {return _gdfa ;};if _eeegg :=_ccfd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_eeegg !=nil {return _eeegg ;};if _edadg :=_ccfd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_edadg !=nil {return _edadg ;};if _fcdeb :=_ccfd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fcdeb !=nil {return _fcdeb ;};if _affdc :=_ccfd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_affdc !=nil {return _affdc ;};if _eeef :=_ccfd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_eeef !=nil {return _eeef ;};if _aebbd :=_ccfd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_aebbd !=nil {return _aebbd ;};if _cbbge :=_ccfd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_cbbge !=nil {return _cbbge ;};if _ccafg :=_ccfd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_ccafg !=nil {return _ccafg ;};if _aded :=_ccfd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_aded !=nil {return _aded ;};if _geddg :=_ccfd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_geddg !=nil {return _geddg ;};if _bgggd :=_ccfd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_bgggd !=nil {return _bgggd ;};if _feaeb :=_ccfd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_feaeb !=nil {return _feaeb ;};if _aade :=_ccfd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_aade !=nil {return _aade ;};if _ggdd :=_ccfd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ggdd !=nil {return _ggdd ;};if _fdeeg :=_ccfd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_fdeeg !=nil {r
|
2022-06-27 19:44:23 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_AllCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_dag *AG_AllCoreAttributes )ValidateWithPath (path string )error {if _fdff :=_dag .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fdff !=nil {return _fdff ;};if _feg :=_dag .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_feg !=nil {return _feg ;};if _cde :=_dag .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cde !=nil {return _cde ;};if _feea :=_dag .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_feea !=nil {return _feea ;};if _eege :=_dag .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_eege !=nil {return _eege ;};if _dbb :=_dag .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dbb !=nil {return _dbb ;};if _fagc :=_dag .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_fagc !=nil {return _fagc ;};if _gfc :=_dag .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gfc !=nil {return _gfc ;};if _dee :=_dag .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_dee !=nil {return _dee ;};if _bded :=_dag .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_bded !=nil {return _bded ;};if _cag :=_dag .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_cag !=nil {return _cag ;};if _gdg :=_dag .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_gdg !=nil {return _gdg ;};if _cab :=_dag .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_cab !=nil {return _cab ;};if _dad :=_dag .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_dad !=nil {return _dad ;};if _gcd :=_dag .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_gcd !=nil {return _gcd ;};if _ddc :=_dag .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_ddc !=nil {return _ddc ;};return nil ;};
|
2022-06-27 19:44:23 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Ink and its children, prefixing error messages with path
|
|
|
|
func (_cbgbd *OfcCT_Ink )ValidateWithPath (path string )error {if _caggb :=_cbgbd .AnnotationAttr .ValidateWithPath (path +"\u002fA\u006en\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_caggb !=nil {return _caggb ;};return nil ;};func (_eebgg *CT_Handles )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u0076:\u0068\u0061\u006e\u0064\u006c\u0065s";};e .EncodeToken (start );if _eebgg .H !=nil {_afadf :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0068"}};for _ ,_edeaa :=range _eebgg .H {e .EncodeElement (_edeaa ,_afadf );};};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};
|
2022-09-02 11:46:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_bdda *AG_OfficeShapeAttributes )ValidateWithPath (path string )error {if _aca :=_bdda .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_aca !=nil {return _aca ;};if _fgg :=_bdda .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fgg !=nil {return _fgg ;};if _gdff :=_bdda .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_gdff !=nil {return _gdff ;};if _daa :=_bdda .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_daa !=nil {return _daa ;};if _gbfg :=_bdda .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_gbfg !=nil {return _gbfg ;};if _eafb :=_bdda .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_eafb !=nil {return _eafb ;};if _eab :=_bdda .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_eab !=nil {return _eab ;};if _aced :=_bdda .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_aced !=nil {return _aced ;};if _ggdc :=_bdda .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_ggdc !=nil {return _ggdc ;};if _fagfg :=_bdda .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_fagfg !=nil {return _fagfg ;};return nil ;};func (_adcd *OfcCT_Fill )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f\u003a\u0066\u0069\u006c\u006c";};if _adcd .TypeAttr !=OfcST_FillTypeUnset {_bgebe ,_bdae :=_adcd .TypeAttr .MarshalXMLAttr (_c .Name {Local :"\u0074\u0079\u0070\u0065"});if _bdae !=nil {return _bdae ;};start .Attr =append (start .Attr ,_bgebe );};if _adcd .ExtAttr !=ST_ExtUnset {_bfccgf ,_dcbef :=_adcd .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dcbef !=nil {return _dcbef ;};start .Attr =append (start .Attr ,_bfccgf );};e .EncodeToken (start );e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};func (_deacc *ST_ImageAspect )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_ceffa ,_edbce :=d .Token ();if _edbce !=nil {return _edbce ;};if _fecdabc ,_fbaaf :=_ceffa .(_c .EndElement );_fbaaf &&_fecdabc .Name ==start .Name {*_deacc =1;return nil ;};if _fcffg ,_eegcg :=_ceffa .(_c .CharData );!_eegcg {return _fb .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",_ceffa );}else {switch string (_fcffg ){case "":*_deacc =0;case "\u0069\u0067\u006e\u006f\u0072\u0065":*_deacc =1;case "\u0061\u0074\u004d\u006f\u0073\u0074":*_deacc =2;case "\u0061t\u004c\u0065\u0061\u0073\u0074":*_deacc =3;};};_ceffa ,_edbce =d .Token ();if _edbce !=nil {return _edbce ;};if _egbf ,_adddb :=_ceffa .(_c .EndElement );_adddb &&_egbf .Name ==start .Name {return nil ;};return _fb .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",_ceffa );};func (_gaecf *OfcClippath )UnmarshalXML (d *_c .Decoder ,start _c .StartElement )error {_gaecf .OfcCT_ClipPath =*NewOfcCT_ClipPath ();for _ ,_egdab :=range start .Attr {if _egdab .Name .Local =="\u0076"{_aceag ,_afeee :=_egdab .Value ,error (nil );if _afeee !=nil {return _afeee ;};_gaecf .VAttr =_aceag ;continue ;};};for {_cbcbe ,_befg :=d .Token ();if _befg !=nil {return _fb .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_befg );};if _egedf ,_dcbgf :=_cbcbe .(_c .EndElement );_dcbgf &&_egedf .Name ==start .Name {break ;};};return nil ;};func NewAG_Fill ()*AG_Fill {_
|
2022-09-02 11:46:53 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the Roundrect and its children, prefixing error messages with path
|
|
|
|
func (_gabad *Roundrect )ValidateWithPath (path string )error {if _ggcbc :=_gabad .CT_RoundRect .ValidateWithPath (path );_ggcbc !=nil {return _ggcbc ;};return nil ;};func (_dabaag OfcST_BWMode )Validate ()error {return _dabaag .ValidateWithPath ("")};
|
2023-05-26 09:49:04 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the OfcCT_ShapeLayout and its children
|
|
|
|
func (_cddda *OfcCT_ShapeLayout )Validate ()error {return _cddda .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004ca\u0079\u006f\u0075\u0074");};
|
2023-05-26 09:49:04 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// Validate validates the Shapetype and its children
|
|
|
|
func (_fdgbd *Shapetype )Validate ()error {return _fdgbd .ValidateWithPath ("\u0053h\u0061\u0070\u0065\u0074\u0079\u0070e");};func (_cacd *EG_ShapeElements )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if _cacd .Path !=nil {_ebfe :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0070\u0061\u0074\u0068"}};e .EncodeElement (_cacd .Path ,_ebfe );};if _cacd .Formulas !=nil {_dabeb :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0073"}};e .EncodeElement (_cacd .Formulas ,_dabeb );};if _cacd .Handles !=nil {_dcdbb :=_c .StartElement {Name :_c .Name {Local :"\u0076:\u0068\u0061\u006e\u0064\u006c\u0065s"}};e .EncodeElement (_cacd .Handles ,_dcdbb );};if _cacd .Fill !=nil {_cagbb :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_cacd .Fill ,_cagbb );};if _cacd .Stroke !=nil {_dbac :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0073\u0074\u0072\u006f\u006b\u0065"}};e .EncodeElement (_cacd .Stroke ,_dbac );};if _cacd .Shadow !=nil {_edfcb :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0073\u0068\u0061\u0064\u006f\u0077"}};e .EncodeElement (_cacd .Shadow ,_edfcb );};if _cacd .Textbox !=nil {_aegag :=_c .StartElement {Name :_c .Name {Local :"\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx"}};e .EncodeElement (_cacd .Textbox ,_aegag );};if _cacd .Textpath !=nil {_cacf :=_c .StartElement {Name :_c .Name {Local :"\u0076\u003a\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068"}};e .EncodeElement (_cacd .Textpath ,_cacf );};if _cacd .Imagedata !=nil {_ceede :=_c .StartElement {Name :_c .Name {Local :"v\u003a\u0069\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061"}};e .EncodeElement (_cacd .Imagedata ,_ceede );};if _cacd .Skew !=nil {_bagga :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0073\u006b\u0065\u0077"}};e .EncodeElement (_cacd .Skew ,_bagga );};if _cacd .Extrusion !=nil {_cgec :=_c .StartElement {Name :_c .Name {Local :"o\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e"}};e .EncodeElement (_cacd .Extrusion ,_cgec );};if _cacd .Callout !=nil {_bfbdg :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0063\u0061\u006c\u006c\u006f\u0075t"}};e .EncodeElement (_cacd .Callout ,_bfbdg );};if _cacd .Lock !=nil {_gdfec :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u006c\u006f\u0063\u006b"}};e .EncodeElement (_cacd .Lock ,_gdfec );};if _cacd .Clippath !=nil {_eggge :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0063\u006c\u0069\u0070\u0070\u0061\u0074\u0068"}};e .EncodeElement (_cacd .Clippath ,_eggge );};if _cacd .Signatureline !=nil {_ebcea :=_c .StartElement {Name :_c .Name {Local :"\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"}};e .EncodeElement (_cacd .Signatureline ,_ebcea );};if _cacd .Wrap !=nil {_bdedc :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072\u006e\u003a\u0077\u0072\u0061\u0070"}};e .EncodeElement (_cacd .Wrap ,_bdedc );};if _cacd .Anchorlock !=nil {_gcgab :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072\u006e\u003a\u0061\u006e\u0063\u0068\u006fr\u006c\u006f\u0063\u006b"}};e .EncodeElement (_cacd .Anchorlock ,_gcgab );};if _cacd .Bordertop !=nil {_aecfa :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072\u006e\u003a\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070"}};e .EncodeElement (_cacd .Bordertop ,_aecfa );};if _cacd .Borderbottom !=nil {_aadfff :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072n\u003a\u0062\u006fr\u0064\u0065\u0072\u0062\u006f\u0074\u0074\u006f\u006d"}};e .EncodeElement (_cacd .Borderbottom ,_aadfff );};if _cacd .Borderleft !=nil {_aaadb :=_c .StartElement {Name :_c .Name {Local :"\u0075\u0072\u006e\u003a\u0062\u006f\u0072\u0064\u0065r\u006c\u0065\u0066\u0074"}};e .EncodeElement (_cacd .Borderleft ,_aaadb );};if _cacd .Borderright !=nil {_aece :=_c .StartElement {Name :_c .Name {Local :"\u0075r\u006e:\u0062\u006f\u0072\u0064\u0065\u0072\u0072\u0069\u0067\u0068\u0074"}};e .EncodeElement (_cacd .Borderright ,_aece );};if _cacd .ClientData !=nil {_gda
|
2023-05-26 09:49:04 +00:00
|
|
|
|
2023-06-10 07:12:37 +00:00
|
|
|
// ValidateWithPath validates the AG_Type and its children, prefixing error messages with path
|
|
|
|
func (_gbg *AG_Type )ValidateWithPath (path string )error {return nil };
|
|
|
|
|
|
|
|
// Validate validates the AG_Style and its children
|
|
|
|
func (_dae *AG_Style )Validate ()error {return _dae .ValidateWithPath ("\u0041\u0047\u005f\u0053\u0074\u0079\u006c\u0065");};func (_aabba OfcST_OLEUpdateMode )ValidateWithPath (path string )error {switch _aabba {case 0,1,2:default:return _fb .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_aabba ));};return nil ;};func (_bgbgc OfcST_Angle )MarshalXMLAttr (name _c .Name )(_c .Attr ,error ){_dbaaba :=_c .Attr {};_dbaaba .Name =name ;switch _bgbgc {case OfcST_AngleUnset :_dbaaba .Value ="";case OfcST_AngleAny :_dbaaba .Value ="\u0061\u006e\u0079";case OfcST_Angle30 :_dbaaba .Value ="\u0033\u0030";case OfcST_Angle45 :_dbaaba .Value ="\u0034\u0035";case OfcST_Angle60 :_dbaaba .Value ="\u0036\u0030";case OfcST_Angle90 :_dbaaba .Value ="\u0039\u0030";case OfcST_AngleAuto :_dbaaba .Value ="\u0061\u0075\u0074\u006f";};return _dbaaba ,nil ;};func NewCT_Oval ()*CT_Oval {_eead :=&CT_Oval {};return _eead };func (_defcb OfcST_OLEUpdateMode )String ()string {switch _defcb {case 0:return "";case 1:return "\u0041\u006c\u0077\u0061\u0079\u0073";case 2:return "\u004f\u006e\u0043\u0061\u006c\u006c";};return "";};func NewTextpath ()*Textpath {_gbfef :=&Textpath {};_gbfef .CT_TextPath =*NewCT_TextPath ();return _gbfef ;};func (_gdcgf *OfcCT_RelationTable )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="\u006f:\u0072e\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065";};if _gdcgf .ExtAttr !=ST_ExtUnset {_afca ,_gaacgf :=_gdcgf .ExtAttr .MarshalXMLAttr (_c .Name {Local :"\u0076\u003a\u0065x\u0074"});if _gaacgf !=nil {return _gaacgf ;};start .Attr =append (start .Attr ,_afca );};e .EncodeToken (start );if _gdcgf .Rel !=nil {_fadbb :=_c .StartElement {Name :_c .Name {Local :"\u006f\u003a\u0072e\u006c"}};for _ ,_cefab :=range _gdcgf .Rel {e .EncodeElement (_cefab ,_fadbb );};};e .EncodeToken (_c .EndElement {Name :start .Name });return nil ;};type OfcST_DiagramLayout byte ;func (_eccd *CT_ImageData )MarshalXML (e *_c .Encoder ,start _c .StartElement )error {if (start .Name ==_c .Name {}){start .Name .Local ="v\u003a\u0069\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061";};if _eccd .EmbosscolorAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"e\u006d\u0062\u006f\u0073\u0073\u0063\u006f\u006c\u006f\u0072"},Value :_fb .Sprintf ("\u0025\u0076",*_eccd .EmbosscolorAttr )});};if _eccd .RecolortargetAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u0072\u0065\u0063\u006f\u006c\u006f\u0072\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_fb .Sprintf ("\u0025\u0076",*_eccd .RecolortargetAttr )});};if _eccd .HrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f\u003a\u0068\u0072\u0065\u0066"},Value :_fb .Sprintf ("\u0025\u0076",*_eccd .HrefAttr )});};if _eccd .AlthrefAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u0061\u006c\u0074\u0068\u0072\u0065f"},Value :_fb .Sprintf ("\u0025\u0076",*_eccd .AlthrefAttr )});};if _eccd .TitleAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u0074\u0069\u0074\u006c\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_eccd .TitleAttr )});};if _eccd .OleidAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u006f\u006c\u0065\u0069\u0064"},Value :_fb .Sprintf ("\u0025\u0076",*_eccd .OleidAttr )});};if _eccd .DetectmouseclickAttr !=_fc .ST_TrueFalseUnset {_afaa ,_dbcag :=_eccd .DetectmouseclickAttr .MarshalXMLAttr (_c .Name {Local :"\u006f:\u0064e\u0074\u0065\u0063\u0074\u006do\u0075\u0073e\u0063\u006c\u0069\u0063\u006b"});if _dbcag !=nil {return _dbcag ;};start .Attr =append (start .Attr ,_afaa );};if _eccd .MovieAttr !=nil {start .Attr =append (start .Attr ,_c .Attr {Name :_c .Name {Local :"\u006f:\u006d\u006f\u0076\u0069\u0065"},Value :_fb .Sprintf ("\u0025\u0076",*_eccd .MovieAttr )});};if _eccd .RelidAttr !=nil {start .Attr =append (start .Attr ,_c .At
|