2020-08-23 14:15:53 +00:00
|
|
|
//
|
|
|
|
// Copyright 2020 FoxyUtils ehf. All rights reserved.
|
|
|
|
//
|
|
|
|
// This is a commercial product and requires a license to operate.
|
|
|
|
// A trial license can be obtained at https://unidoc.io
|
|
|
|
//
|
|
|
|
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by the UniDoc End User License Agreement
|
|
|
|
// terms that can be accessed at https://unidoc.io/eula/
|
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
package chartDrawing ;import (_b "encoding/xml";_d "fmt";_g "github.com/unidoc/unioffice";_e "github.com/unidoc/unioffice/common/logger";_ac "github.com/unidoc/unioffice/schema/soo/dml";_a "strconv";);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_GroupShapeChoice and its children, prefixing error messages with path
|
|
|
|
func (_bed *CT_GroupShapeChoice )ValidateWithPath (path string )error {for _dgeb ,_efg :=range _bed .Sp {if _bee :=_efg .ValidateWithPath (_d .Sprintf ("\u0025s\u002f\u0053\u0070\u005b\u0025\u0064]",path ,_dgeb ));_bee !=nil {return _bee ;};};for _abd ,_cb :=range _bed .GrpSp {if _gag :=_cb .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002fG\u0072\u0070\u0053\u0070\u005b\u0025\u0064\u005d",path ,_abd ));_gag !=nil {return _gag ;};};for _abgg ,_cde :=range _bed .GraphicFrame {if _adfe :=_cde .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002f\u0047ra\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065\u005b\u0025\u0064\u005d",path ,_abgg ));_adfe !=nil {return _adfe ;};};for _dca ,_ggd :=range _bed .CxnSp {if _afcg :=_ggd .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002fC\u0078\u006e\u0053\u0070\u005b\u0025\u0064\u005d",path ,_dca ));_afcg !=nil {return _afcg ;};};for _cda ,_gba :=range _bed .Pic {if _cdaf :=_gba .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002f\u0050\u0069\u0063\u005b\u0025\u0064\u005d",path ,_cda ));_cdaf !=nil {return _cdaf ;};};return nil ;};func NewCT_GroupShapeChoice ()*CT_GroupShapeChoice {_dab :=&CT_GroupShapeChoice {};return _dab };func (_ebe *CT_RelSizeAnchor )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_ccb :=_b .StartElement {Name :_b .Name {Local :"\u0066\u0072\u006f\u006d"}};e .EncodeElement (_ebe .From ,_ccb );_ddge :=_b .StartElement {Name :_b .Name {Local :"\u0074\u006f"}};e .EncodeElement (_ebe .To ,_ddge );if _ebe .Choice !=nil {_ebe .Choice .MarshalXML (e ,_b .StartElement {});};e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};type CT_AbsSizeAnchor struct{From *CT_Marker ;Ext *_ac .CT_PositiveSize2D ;Choice *EG_ObjectChoicesChoice ;};func (_acfd *CT_GroupShapeNonVisual )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_aeab :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_acfd .CNvPr ,_aeab );_dcee :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072"}};e .EncodeElement (_acfd .CNvGrpSpPr ,_dcee );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// ValidateWithPath validates the CT_GraphicFrame and its children, prefixing error messages with path
|
2022-02-25 19:20:45 +00:00
|
|
|
func (_dae *CT_GraphicFrame )ValidateWithPath (path string )error {if _dge :=_dae .NvGraphicFramePr .ValidateWithPath (path +"\u002f\u004e\u0076\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072a\u006d\u0065\u0050\u0072");_dge !=nil {return _dge ;};if _fdc :=_dae .Xfrm .ValidateWithPath (path +"\u002f\u0058\u0066r\u006d");_fdc !=nil {return _fdc ;};if _dff :=_dae .Graphic .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0070\u0068\u0069\u0063");_dff !=nil {return _dff ;};return nil ;};func (_fgb *EG_Anchor )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_agcg :for {_fed ,_geb :=d .Token ();if _geb !=nil {return _geb ;};switch _cgga :=_fed .(type ){case _b .StartElement :switch _cgga .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0072\u0065\u006c\u0053\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072"}:_fgb .RelSizeAnchor =NewCT_RelSizeAnchor ();if _gecf :=d .DecodeElement (_fgb .RelSizeAnchor ,&_cgga );_gecf !=nil {return _gecf ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0061\u0062\u0073\u0053\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072"}:_fgb .AbsSizeAnchor =NewCT_AbsSizeAnchor ();if _baad :=d .DecodeElement (_fgb .AbsSizeAnchor ,&_cgga );_baad !=nil {return _baad ;};default:_e .Log .Debug ("\u0073k\u0069\u0070p\u0069\u006e\u0067\u0020u\u006e\u0073\u0075p\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006cem\u0065\u006e\u0074 \u006f\u006e \u0045\u0047\u005f\u0041\u006e\u0063h\u006f\u0072 \u0025\u0076",_cgga .Name );if _fbd :=d .Skip ();_fbd !=nil {return _fbd ;};};case _b .EndElement :break _agcg ;case _b .CharData :};};return nil ;};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_GraphicFrameNonVisual and its children
|
|
|
|
func (_dcf *CT_GraphicFrameNonVisual )Validate ()error {return _dcf .ValidateWithPath ("\u0043T\u005f\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061m\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c");};type CT_GroupShapeNonVisual struct{CNvPr *_ac .CT_NonVisualDrawingProps ;CNvGrpSpPr *_ac .CT_NonVisualGroupDrawingShapeProps ;};func (_ag *CT_GraphicFrame )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _ag .MacroAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u006d\u0061\u0063r\u006f"},Value :_d .Sprintf ("\u0025\u0076",*_ag .MacroAttr )});};if _ag .FPublishedAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"},Value :_d .Sprintf ("\u0025\u0064",_dgaff (*_ag .FPublishedAttr ))});};e .EncodeToken (start );_bec :=_b .StartElement {Name :_b .Name {Local :"\u006e\u0076G\u0072\u0061\u0070h\u0069\u0063\u0046\u0072\u0061\u006d\u0065\u0050\u0072"}};e .EncodeElement (_ag .NvGraphicFramePr ,_bec );_ca :=_b .StartElement {Name :_b .Name {Local :"\u0078\u0066\u0072\u006d"}};e .EncodeElement (_ag .Xfrm ,_ca );_fad :=_b .StartElement {Name :_b .Name {Local :"\u0061:\u0067\u0072\u0061\u0070\u0068\u0069c"}};_fad .Attr =append (_fad .Attr ,_b .Attr {Name :_b .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0061"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065m\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078m\u006cf\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067m\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u006d\u0061\u0069\u006e"});e .EncodeElement (_ag .Graphic ,_fad );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};func NewCT_Marker ()*CT_Marker {_cad :=&CT_Marker {};_cad .X =0.0;_cad .Y =0.0;return _cad };type CT_RelSizeAnchor struct{From *CT_Marker ;To *CT_Marker ;Choice *EG_ObjectChoicesChoice ;};func _dgaff (_dbda bool )uint8 {if _dbda {return 1;};return 0;};func NewCT_GroupShape ()*CT_GroupShape {_dcg :=&CT_GroupShape {};_dcg .NvGrpSpPr =NewCT_GroupShapeNonVisual ();_dcg .GrpSpPr =_ac .NewCT_GroupShapeProperties ();return _dcg ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_Picture and its children
|
|
|
|
func (_ddc *CT_Picture )Validate ()error {return _ddc .ValidateWithPath ("\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_Shape and its children, prefixing error messages with path
|
|
|
|
func (_cbg *CT_Shape )ValidateWithPath (path string )error {if _gge :=_cbg .NvSpPr .ValidateWithPath (path +"\u002fN\u0076\u0053\u0070\u0050\u0072");_gge !=nil {return _gge ;};if _fdf :=_cbg .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_fdf !=nil {return _fdf ;};if _cbg .Style !=nil {if _gdbf :=_cbg .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_gdbf !=nil {return _gdbf ;};};if _cbg .TxBody !=nil {if _fbba :=_cbg .TxBody .ValidateWithPath (path +"\u002fT\u0078\u0042\u006f\u0064\u0079");_fbba !=nil {return _fbba ;};};return nil ;};func (_acf *CT_GraphicFrameNonVisual )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_dgaf :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_acf .CNvPr ,_dgaf );_fcde :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072a\u006d\u0065\u0050\u0072"}};e .EncodeElement (_acf .CNvGraphicFramePr ,_fcde );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};func NewCT_GroupShapeNonVisual ()*CT_GroupShapeNonVisual {_cgg :=&CT_GroupShapeNonVisual {};_cgg .CNvPr =_ac .NewCT_NonVisualDrawingProps ();_cgg .CNvGrpSpPr =_ac .NewCT_NonVisualGroupDrawingShapeProps ();return _cgg ;};func (_eda *EG_ObjectChoices )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_geee :for {_ffgf ,_gcc :=d .Token ();if _gcc !=nil {return _gcc ;};switch _gafa :=_ffgf .(type ){case _b .StartElement :switch _gafa .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0073\u0070"}:_eda .Choice =NewEG_ObjectChoicesChoice ();if _bgfg :=d .DecodeElement (&_eda .Choice .Sp ,&_gafa );_bgfg !=nil {return _bgfg ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0067\u0072\u0070S\u0070"}:_eda .Choice =NewEG_ObjectChoicesChoice ();if _cee :=d .DecodeElement (&_eda .Choice .GrpSp ,&_gafa );_cee !=nil {return _cee ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0067\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065"}:_eda .Choice =NewEG_ObjectChoicesChoice ();if _baab :=d .DecodeElement (&_eda .Choice .GraphicFrame ,&_gafa );_baab !=nil {return _baab ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063\u0078\u006eS\u0070"}:_eda .Choice =NewEG_ObjectChoicesChoice ();if _dafa :=d .DecodeElement (&_eda .Choice .CxnSp ,&_gafa );_dafa !=nil {return _dafa ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0070\u0069\u0063
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_PictureNonVisual and its children
|
|
|
|
func (_aafg *CT_PictureNonVisual )Validate ()error {return _aafg .ValidateWithPath ("\u0043\u0054\u005f\u0050ic\u0074\u0075\u0072\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c");};func NewCT_Drawing ()*CT_Drawing {_edb :=&CT_Drawing {};return _edb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_GroupShapeNonVisual and its children
|
|
|
|
func (_fcdg *CT_GroupShapeNonVisual )Validate ()error {return _fcdg .ValidateWithPath ("\u0043\u0054\u005f\u0047ro\u0075\u0070\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075a\u006c");};func (_eccf *CT_Drawing )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {start .Name .Local ="\u0043\u0054\u005f\u0044\u0072\u0061\u0077\u0069\u006e\u0067";e .EncodeToken (start );if _eccf .EG_Anchor !=nil {for _ ,_aeg :=range _eccf .EG_Anchor {_aeg .MarshalXML (e ,_b .StartElement {});};};e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};func (_faf *CT_Picture )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_faf .NvPicPr =NewCT_PictureNonVisual ();_faf .BlipFill =_ac .NewCT_BlipFillProperties ();_faf .SpPr =_ac .NewCT_ShapeProperties ();for _ ,_fcfe :=range start .Attr {if _fcfe .Name .Local =="\u006d\u0061\u0063r\u006f"{_adb ,_egc :=_fcfe .Value ,error (nil );if _egc !=nil {return _egc ;};_faf .MacroAttr =&_adb ;continue ;};if _fcfe .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_gada ,_fcg :=_a .ParseBool (_fcfe .Value );if _fcg !=nil {return _fcg ;};_faf .FPublishedAttr =&_gada ;continue ;};};_gbac :for {_aeee ,_beec :=d .Token ();if _beec !=nil {return _beec ;};switch _bbf :=_aeee .(type ){case _b .StartElement :switch _bbf .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u006ev\u0050\u0069\u0063\u0050\u0072"}:if _gfa :=d .DecodeElement (_faf .NvPicPr ,&_bbf );_gfa !=nil {return _gfa ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0062\u006c\u0069\u0070\u0046\u0069\u006c\u006c"}:if _agf :=d .DecodeElement (_faf .BlipFill ,&_bbf );_agf !=nil {return _agf ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0073\u0070\u0050\u0072"}:if _efc :=d .DecodeElement (_faf .SpPr ,&_bbf );_efc !=nil {return _efc ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0073\u0074\u0079l\u0065"}:_faf .Style =_ac .NewCT_ShapeStyle ();if _aebc :=d .DecodeElement (_faf .Style ,&_bbf );_aebc !=nil {return _aebc ;};default:_e .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\u005fP\u0069\u0063\u0074\u0075\u0072\u0065\u0020\u0025\u0076",_bbf .Name );if _bcb :=d .Skip ();_bcb !=nil {return _bcb ;};};case _b .EndElement :break _gbac ;case _b .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_GraphicFrame and its children
|
|
|
|
func (_gec *CT_GraphicFrame )Validate ()error {return _gec .ValidateWithPath ("\u0043T\u005fG\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_Shape and its children
|
|
|
|
func (_cafc *CT_Shape )Validate ()error {return _cafc .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065");};type CT_Shape struct{MacroAttr *string ;TextlinkAttr *string ;FLocksTextAttr *bool ;FPublishedAttr *bool ;NvSpPr *CT_ShapeNonVisual ;SpPr *_ac .CT_ShapeProperties ;Style *_ac .CT_ShapeStyle ;TxBody *_ac .CT_TextBody ;};func NewEG_Anchor ()*EG_Anchor {_cadc :=&EG_Anchor {};return _cadc };
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the EG_Anchor and its children, prefixing error messages with path
|
|
|
|
func (_fffc *EG_Anchor )ValidateWithPath (path string )error {if _fffc .RelSizeAnchor !=nil {if _efgg :=_fffc .RelSizeAnchor .ValidateWithPath (path +"\u002f\u0052\u0065\u006c\u0053\u0069\u007a\u0065\u0041n\u0063\u0068\u006f\u0072");_efgg !=nil {return _efgg ;};};if _fffc .AbsSizeAnchor !=nil {if _gega :=_fffc .AbsSizeAnchor .ValidateWithPath (path +"\u002f\u0041\u0062\u0073\u0053\u0069\u007a\u0065\u0041n\u0063\u0068\u006f\u0072");_gega !=nil {return _gega ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_Connector and its children
|
|
|
|
func (_gc *CT_Connector )Validate ()error {return _gc .ValidateWithPath ("\u0043\u0054\u005fC\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072");};func NewCT_ShapeNonVisual ()*CT_ShapeNonVisual {_aba :=&CT_ShapeNonVisual {};_aba .CNvPr =_ac .NewCT_NonVisualDrawingProps ();_aba .CNvSpPr =_ac .NewCT_NonVisualDrawingShapeProps ();return _aba ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_Marker and its children, prefixing error messages with path
|
|
|
|
func (_eag *CT_Marker )ValidateWithPath (path string )error {if _eag .X < 0.0{return _d .Errorf ("\u0025\u0073\u002fm\u002e\u0058\u0020\u006du\u0073\u0074\u0020\u0062\u0065\u0020\u003e=\u0020\u0030\u002e\u0030\u0020\u0028\u0068\u0061\u0076\u0065\u0020\u0025\u0076\u0029",path ,_eag .X );};if _eag .X > 1.0{return _d .Errorf ("\u0025\u0073\u002fm\u002e\u0058\u0020\u006du\u0073\u0074\u0020\u0062\u0065\u0020\u003c=\u0020\u0031\u002e\u0030\u0020\u0028\u0068\u0061\u0076\u0065\u0020\u0025\u0076\u0029",path ,_eag .X );};if _eag .Y < 0.0{return _d .Errorf ("\u0025\u0073\u002fm\u002e\u0059\u0020\u006du\u0073\u0074\u0020\u0062\u0065\u0020\u003e=\u0020\u0030\u002e\u0030\u0020\u0028\u0068\u0061\u0076\u0065\u0020\u0025\u0076\u0029",path ,_eag .Y );};if _eag .Y > 1.0{return _d .Errorf ("\u0025\u0073\u002fm\u002e\u0059\u0020\u006du\u0073\u0074\u0020\u0062\u0065\u0020\u003c=\u0020\u0031\u002e\u0030\u0020\u0028\u0068\u0061\u0076\u0065\u0020\u0025\u0076\u0029",path ,_eag .Y );};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_Picture and its children, prefixing error messages with path
|
|
|
|
func (_bdfb *CT_Picture )ValidateWithPath (path string )error {if _dgf :=_bdfb .NvPicPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0050\u0069\u0063\u0050\u0072");_dgf !=nil {return _dgf ;};if _cab :=_bdfb .BlipFill .ValidateWithPath (path +"\u002fB\u006c\u0069\u0070\u0046\u0069\u006cl");_cab !=nil {return _cab ;};if _gaac :=_bdfb .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_gaac !=nil {return _gaac ;};if _bdfb .Style !=nil {if _acb :=_bdfb .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_acb !=nil {return _acb ;};};return nil ;};func (_ega *CT_Marker )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_ega .X =0.0;_ega .Y =0.0;_gbe :for {_aecg ,_baa :=d .Token ();if _baa !=nil {return _baa ;};switch _eee :=_aecg .(type ){case _b .StartElement :switch _eee .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0078"}:if _fbb :=d .DecodeElement (&_ega .X ,&_eee );_fbb !=nil {return _fbb ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0079"}:if _abcf :=d .DecodeElement (&_ega .Y ,&_eee );_abcf !=nil {return _abcf ;};default:_e .Log .Debug ("\u0073k\u0069\u0070p\u0069\u006e\u0067\u0020u\u006e\u0073\u0075p\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006cem\u0065\u006e\u0074 \u006f\u006e \u0043\u0054\u005f\u004d\u0061\u0072k\u0065\u0072 \u0025\u0076",_eee .Name );if _ege :=d .Skip ();_ege !=nil {return _ege ;};};case _b .EndElement :break _gbe ;case _b .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_GraphicFrameNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_dgc *CT_GraphicFrameNonVisual )ValidateWithPath (path string )error {if _db :=_dgc .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_db !=nil {return _db ;};if _dce :=_dgc .CNvGraphicFramePr .ValidateWithPath (path +"\u002fC\u004ev\u0047\u0072\u0061\u0070\u0068i\u0063\u0046r\u0061\u006d\u0065\u0050\u0072");_dce !=nil {return _dce ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// Validate validates the CT_GroupShapeChoice and its children
|
2022-02-25 19:20:45 +00:00
|
|
|
func (_cgb *CT_GroupShapeChoice )Validate ()error {return _cgb .ValidateWithPath ("\u0043\u0054\u005f\u0047ro\u0075\u0070\u0053\u0068\u0061\u0070\u0065\u0043\u0068\u006f\u0069\u0063\u0065");};func (_fg *CT_ConnectorNonVisual )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_fg .CNvPr =_ac .NewCT_NonVisualDrawingProps ();_fg .CNvCxnSpPr =_ac .NewCT_NonVisualConnectorProperties ();_aec :for {_fcd ,_dc :=d .Token ();if _dc !=nil {return _dc ;};switch _ff :=_fcd .(type ){case _b .StartElement :switch _ff .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063\u004e\u0076P\u0072"}:if _ecc :=d .DecodeElement (_fg .CNvPr ,&_ff );_ecc !=nil {return _ecc ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072"}:if _afg :=d .DecodeElement (_fg .CNvCxnSpPr ,&_ff );_afg !=nil {return _afg ;};default:_e .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069n\u0067\u0020\u0075n\u0073\u0075\u0070p\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006de\u006e\u0074\u0020\u006f\u006e C\u0054\u005f\u0043\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c\u0020\u0025\u0076",_ff .Name );if _cfg :=d .Skip ();_cfg !=nil {return _cfg ;};};case _b .EndElement :break _aec ;case _b .CharData :};};return nil ;};func NewCT_RelSizeAnchor ()*CT_RelSizeAnchor {_cfgf :=&CT_RelSizeAnchor {};_cfgf .From =NewCT_Marker ();_cfgf .To =NewCT_Marker ();return _cfgf ;};type CT_GroupShape struct{NvGrpSpPr *CT_GroupShapeNonVisual ;GrpSpPr *_ac .CT_GroupShapeProperties ;Choice []*CT_GroupShapeChoice ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_AbsSizeAnchor and its children
|
|
|
|
func (_aaf *CT_AbsSizeAnchor )Validate ()error {return _aaf .ValidateWithPath ("\u0043\u0054_\u0041\u0062\u0073S\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072");};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_GroupShapeNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_aeb *CT_GroupShapeNonVisual )ValidateWithPath (path string )error {if _cbd :=_aeb .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_cbd !=nil {return _cbd ;};if _abc :=_aeb .CNvGrpSpPr .ValidateWithPath (path +"/\u0043\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_abc !=nil {return _abc ;};return nil ;};
|
|
|
|
|
|
|
|
// Validate validates the CT_Drawing and its children
|
|
|
|
func (_cfb *CT_Drawing )Validate ()error {return _cfb .ValidateWithPath ("\u0043\u0054\u005f\u0044\u0072\u0061\u0077\u0069\u006e\u0067");};func (_ecce *CT_GraphicFrame )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_ecce .NvGraphicFramePr =NewCT_GraphicFrameNonVisual ();_ecce .Xfrm =_ac .NewCT_Transform2D ();_ecce .Graphic =_ac .NewGraphic ();for _ ,_age :=range start .Attr {if _age .Name .Local =="\u006d\u0061\u0063r\u006f"{_fbc ,_feg :=_age .Value ,error (nil );if _feg !=nil {return _feg ;};_ecce .MacroAttr =&_fbc ;continue ;};if _age .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_gb ,_bbb :=_a .ParseBool (_age .Value );if _bbb !=nil {return _bbb ;};_ecce .FPublishedAttr =&_gb ;continue ;};};_bge :for {_aad ,_gcd :=d .Token ();if _gcd !=nil {return _gcd ;};switch _aea :=_aad .(type ){case _b .StartElement :switch _aea .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u006e\u0076G\u0072\u0061\u0070h\u0069\u0063\u0046\u0072\u0061\u006d\u0065\u0050\u0072"}:if _aeae :=d .DecodeElement (_ecce .NvGraphicFramePr ,&_aea );_aeae !=nil {return _aeae ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0078\u0066\u0072\u006d"}:if _bcfg :=d .DecodeElement (_ecce .Xfrm ,&_aea );_bcfg !=nil {return _bcfg ;};case _b .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065m\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078m\u006cf\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067m\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u006d\u0061\u0069\u006e",Local :"\u0067r\u0061\u0070\u0068\u0069\u0063"},_b .Name {Space :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0070\u0075\u0072\u006c\u002e\u006f\u0063\u006c\u0063\u002e\u006f\u0072g\u002f\u006f\u006f\u0078\u006d\u006c\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u006d\u0061\u0069\u006e",Local :"\u0067r\u0061\u0070\u0068\u0069\u0063"}:if _dcd :=d .DecodeElement (_ecce .Graphic ,&_aea );_dcd !=nil {return _dcd ;};default:_e .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074e\u0064\u0020\u0065\u006c\u0065\u006d\u0065n\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u0047\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065\u0020\u0025\u0076",_aea .Name );if _cgd :=d .Skip ();_cgd !=nil {return _cgd ;};};case _b .EndElement :break _bge ;case _b .CharData :};};return nil ;};func (_gg *CT_Connector )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_gg .NvCxnSpPr =NewCT_ConnectorNonVisual ();_gg .SpPr =_ac .NewCT_ShapeProperties ();for _ ,_cg :=range start .Attr {if _cg .Name .Local =="\u006d\u0061\u0063r\u006f"{_fb ,_ee :=_cg .Value ,error (nil );if _ee !=nil {return _ee ;};_gg .MacroAttr =&_fb ;continue ;};if _cg .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_gaf ,_cf :=_a .ParseBool (_cg .Value );if _cf !=nil {return _cf ;};_gg .FPublishedAttr =&_gaf ;continue ;};};_bdf :for {_ge ,_dd :=d .Token ();if _dd !=nil {return _dd ;};switch _gdg :=_ge .(type ){case _b .StartElement :switch _gdg .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-02-05 13:05:36 +00:00
|
|
|
// ValidateWithPath validates the CT_ShapeNonVisual and its children, prefixing error messages with path
|
2022-02-25 19:20:45 +00:00
|
|
|
func (_cded *CT_ShapeNonVisual )ValidateWithPath (path string )error {if _cbeag :=_cded .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_cbeag !=nil {return _cbeag ;};if _egg :=_cded .CNvSpPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0053\u0070\u0050\u0072");_egg !=nil {return _egg ;};return nil ;};func NewCT_Picture ()*CT_Picture {_acg :=&CT_Picture {};_acg .NvPicPr =NewCT_PictureNonVisual ();_acg .BlipFill =_ac .NewCT_BlipFillProperties ();_acg .SpPr =_ac .NewCT_ShapeProperties ();return _acg ;};func (_gfg *CT_Shape )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_gfg .NvSpPr =NewCT_ShapeNonVisual ();_gfg .SpPr =_ac .NewCT_ShapeProperties ();for _ ,_fgdg :=range start .Attr {if _fgdg .Name .Local =="\u006d\u0061\u0063r\u006f"{_fggf ,_fbcg :=_fgdg .Value ,error (nil );if _fbcg !=nil {return _fbcg ;};_gfg .MacroAttr =&_fggf ;continue ;};if _fgdg .Name .Local =="\u0074\u0065\u0078\u0074\u006c\u0069\u006e\u006b"{_cba ,_fggd :=_fgdg .Value ,error (nil );if _fggd !=nil {return _fggd ;};_gfg .TextlinkAttr =&_cba ;continue ;};if _fgdg .Name .Local =="\u0066\u004c\u006f\u0063\u006b\u0073\u0054\u0065\u0078\u0074"{_edc ,_caa :=_a .ParseBool (_fgdg .Value );if _caa !=nil {return _caa ;};_gfg .FLocksTextAttr =&_edc ;continue ;};if _fgdg .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_befe ,_agc :=_a .ParseBool (_fgdg .Value );if _agc !=nil {return _agc ;};_gfg .FPublishedAttr =&_befe ;continue ;};};_cebc :for {_fbg ,_eeae :=d .Token ();if _eeae !=nil {return _eeae ;};switch _ade :=_fbg .(type ){case _b .StartElement :switch _ade .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u006e\u0076\u0053\u0070\u0050\u0072"}:if _gcbe :=d .DecodeElement (_gfg .NvSpPr ,&_ade );_gcbe !=nil {return _gcbe ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0073\u0070\u0050\u0072"}:if _bffd :=d .DecodeElement (_gfg .SpPr ,&_ade );_bffd !=nil {return _bffd ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0073\u0074\u0079l\u0065"}:_gfg .Style =_ac .NewCT_ShapeStyle ();if _adda :=d .DecodeElement (_gfg .Style ,&_ade );_adda !=nil {return _adda ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0074\u0078\u0042\u006f\u0064\u0079"}:_gfg .TxBody =_ac .NewCT_TextBody ();if _cff :=d .DecodeElement (_gfg .TxBody ,&_ade );_cff !=nil {return _cff ;};default:_e .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\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u0020\u0025\u0076",_ade .Name );if _beda :=d .Skip ();_beda !=nil {return _beda ;};};case _b .EndElement :break _cebc ;case _b .CharData :};};return nil ;};func NewEG_ObjectChoicesChoice ()*EG_Obj
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_ConnectorNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_ddg *CT_ConnectorNonVisual )ValidateWithPath (path string )error {if _aafa :=_ddg .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_aafa !=nil {return _aafa ;};if _bca :=_ddg .CNvCxnSpPr .ValidateWithPath (path +"/\u0043\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072");_bca !=nil {return _bca ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_Connector and its children, prefixing error messages with path
|
|
|
|
func (_fba *CT_Connector )ValidateWithPath (path string )error {if _ed :=_fba .NvCxnSpPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072");_ed !=nil {return _ed ;};if _ab :=_fba .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_ab !=nil {return _ab ;};if _fba .Style !=nil {if _ggb :=_fba .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_ggb !=nil {return _ggb ;};};return nil ;};func NewCT_GraphicFrameNonVisual ()*CT_GraphicFrameNonVisual {_bde :=&CT_GraphicFrameNonVisual {};_bde .CNvPr =_ac .NewCT_NonVisualDrawingProps ();_bde .CNvGraphicFramePr =_ac .NewCT_NonVisualGraphicFrameProperties ();return _bde ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_PictureNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_bdd *CT_PictureNonVisual )ValidateWithPath (path string )error {if _bbe :=_bdd .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_bbe !=nil {return _bbe ;};if _eadb :=_bdd .CNvPicPr .ValidateWithPath (path +"\u002fC\u004e\u0076\u0050\u0069\u0063\u0050r");_eadb !=nil {return _eadb ;};return nil ;};func NewCT_ConnectorNonVisual ()*CT_ConnectorNonVisual {_af :=&CT_ConnectorNonVisual {};_af .CNvPr =_ac .NewCT_NonVisualDrawingProps ();_af .CNvCxnSpPr =_ac .NewCT_NonVisualConnectorProperties ();return _af ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_ShapeNonVisual and its children
|
|
|
|
func (_gcaa *CT_ShapeNonVisual )Validate ()error {return _gcaa .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056i\u0073\u0075\u0061\u006c");};func (_bdfbe *CT_RelSizeAnchor )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_bdfbe .From =NewCT_Marker ();_bdfbe .To =NewCT_Marker ();_aaeg :for {_ebdd ,_fcb :=d .Token ();if _fcb !=nil {return _fcb ;};switch _cdcc :=_ebdd .(type ){case _b .StartElement :switch _cdcc .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0066\u0072\u006f\u006d"}:if _dea :=d .DecodeElement (_bdfbe .From ,&_cdcc );_dea !=nil {return _dea ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0074\u006f"}:if _cdce :=d .DecodeElement (_bdfbe .To ,&_cdcc );_cdce !=nil {return _cdce ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0073\u0070"}:_bdfbe .Choice =NewEG_ObjectChoicesChoice ();if _fbf :=d .DecodeElement (&_bdfbe .Choice .Sp ,&_cdcc );_fbf !=nil {return _fbf ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0067\u0072\u0070S\u0070"}:_bdfbe .Choice =NewEG_ObjectChoicesChoice ();if _dged :=d .DecodeElement (&_bdfbe .Choice .GrpSp ,&_cdcc );_dged !=nil {return _dged ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0067\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065"}:_bdfbe .Choice =NewEG_ObjectChoicesChoice ();if _gecb :=d .DecodeElement (&_bdfbe .Choice .GraphicFrame ,&_cdcc );_gecb !=nil {return _gecb ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063\u0078\u006eS\u0070"}:_bdfbe .Choice =NewEG_ObjectChoicesChoice ();if _cca :=d .DecodeElement (&_bdfbe .Choice .CxnSp ,&_cdcc );_cca !=nil {return _cca ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0070\u0069\u0063"}:_bdfbe .Choice =NewEG_ObjectChoicesChoice ();if _aadb :=d .DecodeElement (&_bdfbe .Choice .Pic ,&
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the EG_ObjectChoicesChoice and its children
|
|
|
|
func (_cabe *EG_ObjectChoicesChoice )Validate ()error {return _cabe .ValidateWithPath ("\u0045\u0047\u005f\u004fbj\u0065\u0063\u0074\u0043\u0068\u006f\u0069\u0063\u0065\u0073\u0043\u0068\u006f\u0069c\u0065");};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_Marker and its children
|
|
|
|
func (_abf *CT_Marker )Validate ()error {return _abf .ValidateWithPath ("\u0043T\u005f\u004d\u0061\u0072\u006b\u0065r");};func (_aae *CT_GroupShapeChoice )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _aae .Sp !=nil {_fgdc :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0070"}};for _ ,_aegd :=range _aae .Sp {e .EncodeElement (_aegd ,_fgdc );};};if _aae .GrpSp !=nil {_eg :=_b .StartElement {Name :_b .Name {Local :"\u0067\u0072\u0070S\u0070"}};for _ ,_geg :=range _aae .GrpSp {e .EncodeElement (_geg ,_eg );};};if _aae .GraphicFrame !=nil {_ceb :=_b .StartElement {Name :_b .Name {Local :"\u0067\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065"}};for _ ,_eef :=range _aae .GraphicFrame {e .EncodeElement (_eef ,_ceb );};};if _aae .CxnSp !=nil {_ffe :=_b .StartElement {Name :_b .Name {Local :"\u0063\u0078\u006eS\u0070"}};for _ ,_bce :=range _aae .CxnSp {e .EncodeElement (_bce ,_ffe );};};if _aae .Pic !=nil {_aga :=_b .StartElement {Name :_b .Name {Local :"\u0070\u0069\u0063"}};for _ ,_dag :=range _aae .Pic {e .EncodeElement (_dag ,_aga );};};return nil ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_Drawing and its children, prefixing error messages with path
|
|
|
|
func (_de *CT_Drawing )ValidateWithPath (path string )error {for _abg ,_fce :=range _de .EG_Anchor {if _bff :=_fce .ValidateWithPath (_d .Sprintf ("\u0025\u0073/\u0045\u0047\u005fA\u006e\u0063\u0068\u006f\u0072\u005b\u0025\u0064\u005d",path ,_abg ));_bff !=nil {return _bff ;};};return nil ;};type CT_ShapeNonVisual struct{CNvPr *_ac .CT_NonVisualDrawingProps ;CNvSpPr *_ac .CT_NonVisualDrawingShapeProps ;};func (_da *CT_AbsSizeAnchor )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_da .From =NewCT_Marker ();_da .Ext =_ac .NewCT_PositiveSize2D ();_ea :for {_fd ,_fc :=d .Token ();if _fc !=nil {return _fc ;};switch _eb :=_fd .(type ){case _b .StartElement :switch _eb .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0066\u0072\u006f\u006d"}:if _bgd :=d .DecodeElement (_da .From ,&_eb );_bgd !=nil {return _bgd ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0065\u0078\u0074"}:if _fdb :=d .DecodeElement (_da .Ext ,&_eb );_fdb !=nil {return _fdb ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0073\u0070"}:_da .Choice =NewEG_ObjectChoicesChoice ();if _aca :=d .DecodeElement (&_da .Choice .Sp ,&_eb );_aca !=nil {return _aca ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0067\u0072\u0070S\u0070"}:_da .Choice =NewEG_ObjectChoicesChoice ();if _acd :=d .DecodeElement (&_da .Choice .GrpSp ,&_eb );_acd !=nil {return _acd ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0067\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065"}:_da .Choice =NewEG_ObjectChoicesChoice ();if _ec :=d .DecodeElement (&_da .Choice .GraphicFrame ,&_eb );_ec !=nil {return _ec ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063\u0078\u006eS\u0070"}:_da .Choice =NewEG_ObjectChoicesChoice ();if _bc :=d .DecodeElement (&_da .Choice .CxnSp ,&_eb );_bc !=nil {return _bc ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u004
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_GroupShape and its children, prefixing error messages with path
|
|
|
|
func (_bgee *CT_GroupShape )ValidateWithPath (path string )error {if _dcc :=_bgee .NvGrpSpPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_dcc !=nil {return _dcc ;};if _ad :=_bgee .GrpSpPr .ValidateWithPath (path +"\u002f\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_ad !=nil {return _ad ;};for _adf ,_gaa :=range _bgee .Choice {if _bcc :=_gaa .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_adf ));_bcc !=nil {return _bcc ;};};return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the EG_ObjectChoicesChoice and its children, prefixing error messages with path
|
|
|
|
func (_gdbfe *EG_ObjectChoicesChoice )ValidateWithPath (path string )error {if _gdbfe .Sp !=nil {if _efga :=_gdbfe .Sp .ValidateWithPath (path +"\u002f\u0053\u0070");_efga !=nil {return _efga ;};};if _gdbfe .GrpSp !=nil {if _aaea :=_gdbfe .GrpSp .ValidateWithPath (path +"\u002f\u0047\u0072\u0070\u0053\u0070");_aaea !=nil {return _aaea ;};};if _gdbfe .GraphicFrame !=nil {if _bcbd :=_gdbfe .GraphicFrame .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065");_bcbd !=nil {return _bcbd ;};};if _gdbfe .CxnSp !=nil {if _fafaf :=_gdbfe .CxnSp .ValidateWithPath (path +"\u002f\u0043\u0078\u006e\u0053\u0070");_fafaf !=nil {return _fafaf ;};};if _gdbfe .Pic !=nil {if _agcgf :=_gdbfe .Pic .ValidateWithPath (path +"\u002f\u0050\u0069\u0063");_agcgf !=nil {return _agcgf ;};};return nil ;};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_GroupShape and its children
|
|
|
|
func (_eaf *CT_GroupShape )Validate ()error {return _eaf .ValidateWithPath ("\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070\u0053\u0068\u0061\u0070\u0065");};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the EG_ObjectChoices and its children, prefixing error messages with path
|
|
|
|
func (_eba *EG_ObjectChoices )ValidateWithPath (path string )error {if _eba .Choice !=nil {if _ebg :=_eba .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_ebg !=nil {return _ebg ;};};return nil ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_RelSizeAnchor and its children
|
|
|
|
func (_bcbc *CT_RelSizeAnchor )Validate ()error {return _bcbc .ValidateWithPath ("\u0043\u0054_\u0052\u0065\u006cS\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072");};func (_dcce *CT_GroupShapeNonVisual )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_dcce .CNvPr =_ac .NewCT_NonVisualDrawingProps ();_dcce .CNvGrpSpPr =_ac .NewCT_NonVisualGroupDrawingShapeProps ();_beca :for {_ffc ,_dbe :=d .Token ();if _dbe !=nil {return _dbe ;};switch _cbe :=_ffc .(type ){case _b .StartElement :switch _cbe .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063\u004e\u0076P\u0072"}:if _adfa :=d .DecodeElement (_dcce .CNvPr ,&_cbe );_adfa !=nil {return _adfa ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072"}:if _ccf :=d .DecodeElement (_dcce .CNvGrpSpPr ,&_cbe );_ccf !=nil {return _ccf ;};default:_e .Log .Debug ("\u0073\u006b\u0069\u0070p\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070p\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043T\u005f\u0047\u0072\u006f\u0075p\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c\u0020\u0025\u0076",_cbe .Name );if _agaf :=d .Skip ();_agaf !=nil {return _agaf ;};};case _b .EndElement :break _beca ;case _b .CharData :};};return nil ;};func (_ba *CT_Drawing )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_bgf :for {_dga ,_ef :=d .Token ();if _ef !=nil {return _ef ;};switch _df :=_dga .(type ){case _b .StartElement :switch _df .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0072\u0065\u006c\u0053\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072"}:_daf :=NewEG_Anchor ();_daf .RelSizeAnchor =NewCT_RelSizeAnchor ();if _fe :=d .DecodeElement (_daf .RelSizeAnchor ,&_df );_fe !=nil {return _fe ;};_ba .EG_Anchor =append (_ba .EG_Anchor ,_daf );case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0061\u0062\u0073\u0053\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072"}:_cdg :=NewEG_Anchor ();_cdg .AbsSizeAnchor =NewCT_AbsSizeAnchor ();if _bab :=d .DecodeElement (_cdg .AbsSizeAnchor ,&_df );_bab !=nil {return _bab ;};_ba .EG_Anchor =append (_ba .EG_Anchor ,_cdg );default:_e .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\u005fD\u0072\u0061\u0077\u0069\u006e\u0067\u0020\u0025\u0076",_df .Name );if _eac :=d .Skip ();_eac !=nil {return _eac ;};};case _b .EndElement :break _bgf ;case _b .CharData :};};return nil ;};type CT_Marker struct{X float64 ;Y float64 ;};func (_deg *CT_GraphicFrameNonVisual )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_deg .CNvPr =_ac .NewCT_N
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_RelSizeAnchor and its children, prefixing error messages with path
|
|
|
|
func (_dead *CT_RelSizeAnchor )ValidateWithPath (path string )error {if _gee :=_dead .From .ValidateWithPath (path +"\u002f\u0046\u0072o\u006d");_gee !=nil {return _gee ;};if _gga :=_dead .To .ValidateWithPath (path +"\u002f\u0054\u006f");_gga !=nil {return _gga ;};if _dead .Choice !=nil {if _gddd :=_dead .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_gddd !=nil {return _gddd ;};};return nil ;};func (_dec *CT_ShapeNonVisual )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_dec .CNvPr =_ac .NewCT_NonVisualDrawingProps ();_dec .CNvSpPr =_ac .NewCT_NonVisualDrawingShapeProps ();_fafa :for {_cbaf ,_cbeb :=d .Token ();if _cbeb !=nil {return _cbeb ;};switch _dbd :=_cbaf .(type ){case _b .StartElement :switch _dbd .Name {case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063\u004e\u0076P\u0072"}:if _cdd :=d .DecodeElement (_dec .CNvPr ,&_dbd );_cdd !=nil {return _cdd ;};case _b .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local :"\u0063N\u0076\u0053\u0070\u0050\u0072"}:if _acga :=d .DecodeElement (_dec .CNvSpPr ,&_dbd );_acga !=nil {return _acga ;};default:_e .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\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c\u0020\u0025\u0076",_dbd .Name );if _aceg :=d .Skip ();_aceg !=nil {return _aceg ;};};case _b .EndElement :break _fafa ;case _b .CharData :};};return nil ;};func NewCT_PictureNonVisual ()*CT_PictureNonVisual {_eea :=&CT_PictureNonVisual {};_eea .CNvPr =_ac .NewCT_NonVisualDrawingProps ();_eea .CNvPicPr =_ac .NewCT_NonVisualPictureProperties ();return _eea ;};type CT_GraphicFrame struct{MacroAttr *string ;FPublishedAttr *bool ;NvGraphicFramePr *CT_GraphicFrameNonVisual ;Xfrm *_ac .CT_Transform2D ;Graphic *_ac .Graphic ;};func (_gca *CT_GroupShape )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_aeeg :=_b .StartElement {Name :_b .Name {Local :"\u006ev\u0047\u0072\u0070\u0053\u0070\u0050r"}};e .EncodeElement (_gca .NvGrpSpPr ,_aeeg );_gdge :=_b .StartElement {Name :_b .Name {Local :"\u0067r\u0070\u0053\u0070\u0050\u0072"}};e .EncodeElement (_gca .GrpSpPr ,_gdge );if _gca .Choice !=nil {for _ ,_dba :=range _gca .Choice {_dba .MarshalXML (e ,_b .StartElement {});};};e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};
|
2022-01-15 21:17:38 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_ConnectorNonVisual and its children
|
|
|
|
func (_gce *CT_ConnectorNonVisual )Validate ()error {return _gce .ValidateWithPath ("C\u0054\u005f\u0043\u006fnn\u0065c\u0074\u006f\u0072\u004e\u006fn\u0056\u0069\u0073\u0075\u0061\u006c");};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the EG_Anchor and its children
|
|
|
|
func (_dafc *EG_Anchor )Validate ()error {return _dafc .ValidateWithPath ("\u0045G\u005f\u0041\u006e\u0063\u0068\u006fr");};type CT_Picture struct{MacroAttr *string ;FPublishedAttr *bool ;NvPicPr *CT_PictureNonVisual ;BlipFill *_ac .CT_BlipFillProperties ;SpPr *_ac .CT_ShapeProperties ;Style *_ac .CT_ShapeStyle ;};func NewCT_Shape ()*CT_Shape {_aeaa :=&CT_Shape {};_aeaa .NvSpPr =NewCT_ShapeNonVisual ();_aeaa .SpPr =_ac .NewCT_ShapeProperties ();return _aeaa ;};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// ValidateWithPath validates the CT_AbsSizeAnchor and its children, prefixing error messages with path
|
|
|
|
func (_fcf *CT_AbsSizeAnchor )ValidateWithPath (path string )error {if _gae :=_fcf .From .ValidateWithPath (path +"\u002f\u0046\u0072o\u006d");_gae !=nil {return _gae ;};if _dg :=_fcf .Ext .ValidateWithPath (path +"\u002f\u0045\u0078\u0074");_dg !=nil {return _dg ;};if _fcf .Choice !=nil {if _bb :=_fcf .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_bb !=nil {return _bb ;};};return nil ;};type EG_ObjectChoices struct{Choice *EG_ObjectChoicesChoice ;};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the EG_ObjectChoices and its children
|
|
|
|
func (_ggba *EG_ObjectChoices )Validate ()error {return _ggba .ValidateWithPath ("\u0045\u0047_\u004f\u0062\u006ae\u0063\u0074\u0043\u0068\u006f\u0069\u0063\u0065\u0073");};type CT_GraphicFrameNonVisual struct{CNvPr *_ac .CT_NonVisualDrawingProps ;CNvGraphicFramePr *_ac .CT_NonVisualGraphicFrameProperties ;};type CT_GroupShapeChoice struct{Sp []*CT_Shape ;GrpSp []*CT_GroupShape ;GraphicFrame []*CT_GraphicFrame ;CxnSp []*CT_Connector ;Pic []*CT_Picture ;};type CT_Drawing struct{EG_Anchor []*EG_Anchor ;};func NewCT_AbsSizeAnchor ()*CT_AbsSizeAnchor {_acc :=&CT_AbsSizeAnchor {};_acc .From =NewCT_Marker ();_acc .Ext =_ac .NewCT_PositiveSize2D ();return _acc ;};func init (){_g .RegisterConstructor ("h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067","\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056i\u0073\u0075\u0061\u006c",NewCT_ShapeNonVisual );_g .RegisterConstructor ("h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067","\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065",NewCT_Shape );_g .RegisterConstructor ("h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067","C\u0054\u005f\u0043\u006fnn\u0065c\u0074\u006f\u0072\u004e\u006fn\u0056\u0069\u0073\u0075\u0061\u006c",NewCT_ConnectorNonVisual );_g .RegisterConstructor ("h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067","\u0043\u0054\u005fC\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072",NewCT_Connector );_g .RegisterConstructor ("h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067","\u0043\u0054\u005f\u0050ic\u0074\u0075\u0072\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c",NewCT_PictureNonVisual );_g .RegisterConstructor ("h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067","\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065",NewCT_Picture );_g .RegisterConstructor ("h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061t\u0073.\u006f\u0072\u0067\u002fd\u0072\u0061w\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0063\u0068\u0061\u0072\u0074\u0044\u0072\u0061\u0077\u0069\u006e\u0067","\u0043T\u005f\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061m\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c",NewCT_GraphicFrameNonVisual );_g .RegisterConstructor ("h\u0074\u0074\u0070\u00
|