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-04-09 14:27:46 +00:00
|
|
|
package chartDrawing ;import (_b "encoding/xml";_be "fmt";_ac "github.com/unidoc/unioffice";_c "github.com/unidoc/unioffice/common/logger";_f "github.com/unidoc/unioffice/schema/soo/dml";_d "strconv";);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_ConnectorNonVisual and its children
|
|
|
|
func (_cbac *CT_ConnectorNonVisual )Validate ()error {return _cbac .ValidateWithPath ("C\u0054\u005f\u0043\u006fnn\u0065c\u0074\u006f\u0072\u004e\u006fn\u0056\u0069\u0073\u0075\u0061\u006c");};type CT_ShapeNonVisual struct{CNvPr *_f .CT_NonVisualDrawingProps ;CNvSpPr *_f .CT_NonVisualDrawingShapeProps ;};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_GraphicFrameNonVisual and its children
|
2022-04-09 14:27:46 +00:00
|
|
|
func (_fbg *CT_GraphicFrameNonVisual )Validate ()error {return _fbg .ValidateWithPath ("\u0043T\u005f\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061m\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c");};func (_cbafb *CT_Picture )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _cbafb .MacroAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u006d\u0061\u0063r\u006f"},Value :_be .Sprintf ("\u0025\u0076",*_cbafb .MacroAttr )});};if _cbafb .FPublishedAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"},Value :_be .Sprintf ("\u0025\u0064",_dfee (*_cbafb .FPublishedAttr ))});};e .EncodeToken (start );_cbae :=_b .StartElement {Name :_b .Name {Local :"\u006ev\u0050\u0069\u0063\u0050\u0072"}};e .EncodeElement (_cbafb .NvPicPr ,_cbae );_beb :=_b .StartElement {Name :_b .Name {Local :"\u0062\u006c\u0069\u0070\u0046\u0069\u006c\u006c"}};e .EncodeElement (_cbafb .BlipFill ,_beb );_adg :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0070\u0050\u0072"}};e .EncodeElement (_cbafb .SpPr ,_adg );if _cbafb .Style !=nil {_fcaf :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0074\u0079l\u0065"}};e .EncodeElement (_cbafb .Style ,_fcaf );};e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_RelSizeAnchor and its children
|
|
|
|
func (_dba *CT_RelSizeAnchor )Validate ()error {return _dba .ValidateWithPath ("\u0043\u0054_\u0052\u0065\u006cS\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072");};func (_faa *CT_Shape )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _faa .MacroAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u006d\u0061\u0063r\u006f"},Value :_be .Sprintf ("\u0025\u0076",*_faa .MacroAttr )});};if _faa .TextlinkAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u0074\u0065\u0078\u0074\u006c\u0069\u006e\u006b"},Value :_be .Sprintf ("\u0025\u0076",*_faa .TextlinkAttr )});};if _faa .FLocksTextAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u0066\u004c\u006f\u0063\u006b\u0073\u0054\u0065\u0078\u0074"},Value :_be .Sprintf ("\u0025\u0064",_dfee (*_faa .FLocksTextAttr ))});};if _faa .FPublishedAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"},Value :_be .Sprintf ("\u0025\u0064",_dfee (*_faa .FPublishedAttr ))});};e .EncodeToken (start );_bace :=_b .StartElement {Name :_b .Name {Local :"\u006e\u0076\u0053\u0070\u0050\u0072"}};e .EncodeElement (_faa .NvSpPr ,_bace );_eddf :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0070\u0050\u0072"}};e .EncodeElement (_faa .SpPr ,_eddf );if _faa .Style !=nil {_aaf :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0074\u0079l\u0065"}};e .EncodeElement (_faa .Style ,_aaf );};if _faa .TxBody !=nil {_ffc :=_b .StartElement {Name :_b .Name {Local :"\u0074\u0078\u0042\u006f\u0064\u0079"}};e .EncodeElement (_faa .TxBody ,_ffc );};e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};func (_bcb *EG_ObjectChoices )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_abeb :for {_gdg ,_cafd :=d .Token ();if _cafd !=nil {return _cafd ;};switch _abb :=_gdg .(type ){case _b .StartElement :switch _abb .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"}:_bcb .Choice =NewEG_ObjectChoicesChoice ();if _gbec :=d .DecodeElement (&_bcb .Choice .Sp ,&_abb );_gbec !=nil {return _gbec ;};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"}:_bcb .Choice =NewEG_ObjectChoicesChoice ();if _feba :=d .DecodeElement (&_bcb .Choice .GrpSp ,&_abb );_feba !=nil {return _feba ;};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"}:_bcb .Choice =NewEG_ObjectChoicesChoice ();if _dgce :=d .DecodeElement (&_bcb .Choice .GraphicFrame ,&_abb );_dgce !=nil {return _dgce ;};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"}:_bcb .Choice =NewEG_ObjectChoicesChoice ();if _gf :=d .DecodeElement (&_bcb .Choice .CxnS
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_AbsSizeAnchor and its children, prefixing error messages with path
|
|
|
|
func (_ff *CT_AbsSizeAnchor )ValidateWithPath (path string )error {if _df :=_ff .From .ValidateWithPath (path +"\u002f\u0046\u0072o\u006d");_df !=nil {return _df ;};if _gcd :=_ff .Ext .ValidateWithPath (path +"\u002f\u0045\u0078\u0074");_gcd !=nil {return _gcd ;};if _ff .Choice !=nil {if _de :=_ff .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_de !=nil {return _de ;};};return nil ;};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_RelSizeAnchor and its children, prefixing error messages with path
|
|
|
|
func (_fac *CT_RelSizeAnchor )ValidateWithPath (path string )error {if _ddb :=_fac .From .ValidateWithPath (path +"\u002f\u0046\u0072o\u006d");_ddb !=nil {return _ddb ;};if _bdf :=_fac .To .ValidateWithPath (path +"\u002f\u0054\u006f");_bdf !=nil {return _bdf ;};if _fac .Choice !=nil {if _fgde :=_fac .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_fgde !=nil {return _fgde ;};};return nil ;};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_Drawing and its children, prefixing error messages with path
|
|
|
|
func (_feb *CT_Drawing )ValidateWithPath (path string )error {for _ecc ,_acb :=range _feb .EG_Anchor {if _dgca :=_acb .ValidateWithPath (_be .Sprintf ("\u0025\u0073/\u0045\u0047\u005fA\u006e\u0063\u0068\u006f\u0072\u005b\u0025\u0064\u005d",path ,_ecc ));_dgca !=nil {return _dgca ;};};return nil ;};
|
|
|
|
|
|
|
|
// Validate validates the CT_Drawing and its children
|
|
|
|
func (_ge *CT_Drawing )Validate ()error {return _ge .ValidateWithPath ("\u0043\u0054\u005f\u0044\u0072\u0061\u0077\u0069\u006e\u0067");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_GroupShapeNonVisual and its children
|
2022-04-09 14:27:46 +00:00
|
|
|
func (_dccd *CT_GroupShapeNonVisual )Validate ()error {return _dccd .ValidateWithPath ("\u0043\u0054\u005f\u0047ro\u0075\u0070\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075a\u006c");};func NewEG_ObjectChoices ()*EG_ObjectChoices {_cdfc :=&EG_ObjectChoices {};return _cdfc };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_GraphicFrameNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_dcd *CT_GraphicFrameNonVisual )ValidateWithPath (path string )error {if _agg :=_dcd .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_agg !=nil {return _agg ;};if _bbda :=_dcd .CNvGraphicFramePr .ValidateWithPath (path +"\u002fC\u004ev\u0047\u0072\u0061\u0070\u0068i\u0063\u0046r\u0061\u006d\u0065\u0050\u0072");_bbda !=nil {return _bbda ;};return nil ;};func (_edaa *CT_GraphicFrame )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _edaa .MacroAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u006d\u0061\u0063r\u006f"},Value :_be .Sprintf ("\u0025\u0076",*_edaa .MacroAttr )});};if _edaa .FPublishedAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"},Value :_be .Sprintf ("\u0025\u0064",_dfee (*_edaa .FPublishedAttr ))});};e .EncodeToken (start );_aa :=_b .StartElement {Name :_b .Name {Local :"\u006e\u0076G\u0072\u0061\u0070h\u0069\u0063\u0046\u0072\u0061\u006d\u0065\u0050\u0072"}};e .EncodeElement (_edaa .NvGraphicFramePr ,_aa );_dac :=_b .StartElement {Name :_b .Name {Local :"\u0078\u0066\u0072\u006d"}};e .EncodeElement (_edaa .Xfrm ,_dac );_agd :=_b .StartElement {Name :_b .Name {Local :"\u0061:\u0067\u0072\u0061\u0070\u0068\u0069c"}};_agd .Attr =append (_agd .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 (_edaa .Graphic ,_agd );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_Connector and its children, prefixing error messages with path
|
|
|
|
func (_ad *CT_Connector )ValidateWithPath (path string )error {if _cdf :=_ad .NvCxnSpPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072");_cdf !=nil {return _cdf ;};if _agb :=_ad .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_agb !=nil {return _agb ;};if _ad .Style !=nil {if _eda :=_ad .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_eda !=nil {return _eda ;};};return nil ;};type CT_GroupShapeNonVisual struct{CNvPr *_f .CT_NonVisualDrawingProps ;CNvGrpSpPr *_f .CT_NonVisualGroupDrawingShapeProps ;};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_Shape and its children, prefixing error messages with path
|
|
|
|
func (_fff *CT_Shape )ValidateWithPath (path string )error {if _ggga :=_fff .NvSpPr .ValidateWithPath (path +"\u002fN\u0076\u0053\u0070\u0050\u0072");_ggga !=nil {return _ggga ;};if _eagb :=_fff .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_eagb !=nil {return _eagb ;};if _fff .Style !=nil {if _afee :=_fff .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_afee !=nil {return _afee ;};};if _fff .TxBody !=nil {if _fgfd :=_fff .TxBody .ValidateWithPath (path +"\u002fT\u0078\u0042\u006f\u0064\u0079");_fgfd !=nil {return _fgfd ;};};return nil ;};func (_gbe *CT_GroupShapeNonVisual )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_gbe .CNvPr =_f .NewCT_NonVisualDrawingProps ();_gbe .CNvGrpSpPr =_f .NewCT_NonVisualGroupDrawingShapeProps ();_dda :for {_ccef ,_dce :=d .Token ();if _dce !=nil {return _dce ;};switch _ebc :=_ccef .(type ){case _b .StartElement :switch _ebc .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 _dfg :=d .DecodeElement (_gbe .CNvPr ,&_ebc );_dfg !=nil {return _dfg ;};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 _afgg :=d .DecodeElement (_gbe .CNvGrpSpPr ,&_ebc );_afgg !=nil {return _afgg ;};default:_c .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",_ebc .Name );if _bge :=d .Skip ();_bge !=nil {return _bge ;};};case _b .EndElement :break _dda ;case _b .CharData :};};return nil ;};func (_bgd *CT_Shape )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_bgd .NvSpPr =NewCT_ShapeNonVisual ();_bgd .SpPr =_f .NewCT_ShapeProperties ();for _ ,_egb :=range start .Attr {if _egb .Name .Local =="\u006d\u0061\u0063r\u006f"{_bcg ,_eeb :=_egb .Value ,error (nil );if _eeb !=nil {return _eeb ;};_bgd .MacroAttr =&_bcg ;continue ;};if _egb .Name .Local =="\u0074\u0065\u0078\u0074\u006c\u0069\u006e\u006b"{_cbf ,_eef :=_egb .Value ,error (nil );if _eef !=nil {return _eef ;};_bgd .TextlinkAttr =&_cbf ;continue ;};if _egb .Name .Local =="\u0066\u004c\u006f\u0063\u006b\u0073\u0054\u0065\u0078\u0074"{_cda ,_fbfd :=_d .ParseBool (_egb .Value );if _fbfd !=nil {return _fbfd ;};_bgd .FLocksTextAttr =&_cda ;continue ;};if _egb .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_ggg ,_cgg :=_d .ParseBool (_egb .Value );if _cgg !=nil {return _cgg ;};_bgd .FPublishedAttr =&_ggg ;continue ;};};_bda :for {_abd ,_accb :=d .Token ();if _accb !=nil {return _accb ;};switch _fcd :=_abd .(type ){case _b .StartElement :switch _fcd .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 _efc :=d .DecodeElement (_bgd .NvSpPr ,&_fcd );_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
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the EG_Anchor and its children
|
|
|
|
func (_defb *EG_Anchor )Validate ()error {return _defb .ValidateWithPath ("\u0045G\u005f\u0041\u006e\u0063\u0068\u006fr");};func NewCT_GraphicFrameNonVisual ()*CT_GraphicFrameNonVisual {_cdc :=&CT_GraphicFrameNonVisual {};_cdc .CNvPr =_f .NewCT_NonVisualDrawingProps ();_cdc .CNvGraphicFramePr =_f .NewCT_NonVisualGraphicFrameProperties ();return _cdc ;};func (_efg *CT_RelSizeAnchor )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_efg .From =NewCT_Marker ();_efg .To =NewCT_Marker ();_fdgf :for {_cad ,_agag :=d .Token ();if _agag !=nil {return _agag ;};switch _gcda :=_cad .(type ){case _b .StartElement :switch _gcda .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 _ega :=d .DecodeElement (_efg .From ,&_gcda );_ega !=nil {return _ega ;};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 _gee :=d .DecodeElement (_efg .To ,&_gcda );_gee !=nil {return _gee ;};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"}:_efg .Choice =NewEG_ObjectChoicesChoice ();if _dec :=d .DecodeElement (&_efg .Choice .Sp ,&_gcda );_dec !=nil {return _dec ;};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"}:_efg .Choice =NewEG_ObjectChoicesChoice ();if _dagf :=d .DecodeElement (&_efg .Choice .GrpSp ,&_gcda );_dagf !=nil {return _dagf ;};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"}:_efg .Choice =NewEG_ObjectChoicesChoice ();if _cbb :=d .DecodeElement (&_efg .Choice .GraphicFrame ,&_gcda );_cbb !=nil {return _cbb ;};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"}:_efg .Choice =NewEG_ObjectChoicesChoice ();if _efff :=d .DecodeElement (&_efg .Choice .CxnSp ,&_gcda );_efff !=nil {return _efff ;};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\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the EG_ObjectChoicesChoice and its children
|
|
|
|
func (_gcfe *EG_ObjectChoicesChoice )Validate ()error {return _gcfe .ValidateWithPath ("\u0045\u0047\u005f\u004fbj\u0065\u0063\u0074\u0043\u0068\u006f\u0069\u0063\u0065\u0073\u0043\u0068\u006f\u0069c\u0065");};func (_ae *CT_ConnectorNonVisual )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_ae .CNvPr =_f .NewCT_NonVisualDrawingProps ();_ae .CNvCxnSpPr =_f .NewCT_NonVisualConnectorProperties ();_fed :for {_bbc ,_fd :=d .Token ();if _fd !=nil {return _fd ;};switch _bbb :=_bbc .(type ){case _b .StartElement :switch _bbb .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 _af :=d .DecodeElement (_ae .CNvPr ,&_bbb );_af !=nil {return _af ;};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 _dcc :=d .DecodeElement (_ae .CNvCxnSpPr ,&_bbb );_dcc !=nil {return _dcc ;};default:_c .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",_bbb .Name );if _baa :=d .Skip ();_baa !=nil {return _baa ;};};case _b .EndElement :break _fed ;case _b .CharData :};};return nil ;};type CT_Connector struct{MacroAttr *string ;FPublishedAttr *bool ;NvCxnSpPr *CT_ConnectorNonVisual ;SpPr *_f .CT_ShapeProperties ;Style *_f .CT_ShapeStyle ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_PictureNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_fcb *CT_PictureNonVisual )ValidateWithPath (path string )error {if _dbf :=_fcb .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_dbf !=nil {return _dbf ;};if _bbgd :=_fcb .CNvPicPr .ValidateWithPath (path +"\u002fC\u004e\u0076\u0050\u0069\u0063\u0050r");_bbgd !=nil {return _bbgd ;};return nil ;};type CT_GraphicFrame struct{MacroAttr *string ;FPublishedAttr *bool ;NvGraphicFramePr *CT_GraphicFrameNonVisual ;Xfrm *_f .CT_Transform2D ;Graphic *_f .Graphic ;};func (_bdb *CT_RelSizeAnchor )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_ggab :=_b .StartElement {Name :_b .Name {Local :"\u0066\u0072\u006f\u006d"}};e .EncodeElement (_bdb .From ,_ggab );_adf :=_b .StartElement {Name :_b .Name {Local :"\u0074\u006f"}};e .EncodeElement (_bdb .To ,_adf );if _bdb .Choice !=nil {_bdb .Choice .MarshalXML (e ,_b .StartElement {});};e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_GroupShapeChoice and its children, prefixing error messages with path
|
|
|
|
func (_ddg *CT_GroupShapeChoice )ValidateWithPath (path string )error {for _afc ,_aadf :=range _ddg .Sp {if _cbc :=_aadf .ValidateWithPath (_be .Sprintf ("\u0025s\u002f\u0053\u0070\u005b\u0025\u0064]",path ,_afc ));_cbc !=nil {return _cbc ;};};for _dae ,_dbe :=range _ddg .GrpSp {if _bba :=_dbe .ValidateWithPath (_be .Sprintf ("\u0025\u0073\u002fG\u0072\u0070\u0053\u0070\u005b\u0025\u0064\u005d",path ,_dae ));_bba !=nil {return _bba ;};};for _dgcg ,_ccae :=range _ddg .GraphicFrame {if _agac :=_ccae .ValidateWithPath (_be .Sprintf ("\u0025\u0073\u002f\u0047ra\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065\u005b\u0025\u0064\u005d",path ,_dgcg ));_agac !=nil {return _agac ;};};for _gbgb ,_ege :=range _ddg .CxnSp {if _bag :=_ege .ValidateWithPath (_be .Sprintf ("\u0025\u0073\u002fC\u0078\u006e\u0053\u0070\u005b\u0025\u0064\u005d",path ,_gbgb ));_bag !=nil {return _bag ;};};for _bd ,_bce :=range _ddg .Pic {if _edf :=_bce .ValidateWithPath (_be .Sprintf ("\u0025\u0073\u002f\u0050\u0069\u0063\u005b\u0025\u0064\u005d",path ,_bd ));_edf !=nil {return _edf ;};};return nil ;};type CT_Shape struct{MacroAttr *string ;TextlinkAttr *string ;FLocksTextAttr *bool ;FPublishedAttr *bool ;NvSpPr *CT_ShapeNonVisual ;SpPr *_f .CT_ShapeProperties ;Style *_f .CT_ShapeStyle ;TxBody *_f .CT_TextBody ;};type CT_AbsSizeAnchor struct{From *CT_Marker ;Ext *_f .CT_PositiveSize2D ;Choice *EG_ObjectChoicesChoice ;};type EG_ObjectChoicesChoice struct{Sp *CT_Shape ;GrpSp *CT_GroupShape ;GraphicFrame *CT_GraphicFrame ;CxnSp *CT_Connector ;Pic *CT_Picture ;};func (_dbgf *CT_Marker )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_gdb :=_b .StartElement {Name :_b .Name {Local :"\u0078"}};e .EncodeElement (_dbgf .X ,_gdb );_bdc :=_b .StartElement {Name :_b .Name {Local :"\u0079"}};e .EncodeElement (_dbgf .Y ,_bdc );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};
|
|
|
|
|
|
|
|
// Validate validates the CT_Marker and its children
|
|
|
|
func (_baga *CT_Marker )Validate ()error {return _baga .ValidateWithPath ("\u0043T\u005f\u004d\u0061\u0072\u006b\u0065r");};func NewCT_GraphicFrame ()*CT_GraphicFrame {_fa :=&CT_GraphicFrame {};_fa .NvGraphicFramePr =NewCT_GraphicFrameNonVisual ();_fa .Xfrm =_f .NewCT_Transform2D ();_fa .Graphic =_f .NewGraphic ();return _fa ;};func (_ebca *CT_Picture )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_ebca .NvPicPr =NewCT_PictureNonVisual ();_ebca .BlipFill =_f .NewCT_BlipFillProperties ();_ebca .SpPr =_f .NewCT_ShapeProperties ();for _ ,_gcb :=range start .Attr {if _gcb .Name .Local =="\u006d\u0061\u0063r\u006f"{_adcd ,_ccab :=_gcb .Value ,error (nil );if _ccab !=nil {return _ccab ;};_ebca .MacroAttr =&_adcd ;continue ;};if _gcb .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_abed ,_feff :=_d .ParseBool (_gcb .Value );if _feff !=nil {return _feff ;};_ebca .FPublishedAttr =&_abed ;continue ;};};_fgf :for {_daea ,_feec :=d .Token ();if _feec !=nil {return _feec ;};switch _fdf :=_daea .(type ){case _b .StartElement :switch _fdf .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 _fbggf :=d .DecodeElement (_ebca .NvPicPr ,&_fdf );_fbggf !=nil {return _fbggf ;};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 _adgf :=d .DecodeElement (_ebca .BlipFill ,&_fdf );_adgf !=nil {return _adgf ;};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 _gbgg :=d .DecodeElement (_ebca .SpPr ,&_fdf );_gbgg !=nil {return _gbgg ;};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"}:_ebca .Style =_f .NewCT_ShapeStyle ();if _ce :=d .DecodeElement (_ebca .Style ,&_fdf );_ce !=nil {return _ce ;};default:_c .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",_fdf .Name );if _accd :=d .Skip ();_accd !=nil {return _accd ;};};case _b .EndElement :break _fgf ;case _b .CharData :};};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-04-09 14:27:46 +00:00
|
|
|
func (_fggg *CT_GroupShapeChoice )Validate ()error {return _fggg .ValidateWithPath ("\u0043\u0054\u005f\u0047ro\u0075\u0070\u0053\u0068\u0061\u0070\u0065\u0043\u0068\u006f\u0069\u0063\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_Shape and its children
|
|
|
|
func (_gcg *CT_Shape )Validate ()error {return _gcg .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065");};func NewCT_Drawing ()*CT_Drawing {_ab :=&CT_Drawing {};return _ab };
|
2022-02-25 19:20:45 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_GroupShape and its children
|
|
|
|
func (_egf *CT_GroupShape )Validate ()error {return _egf .ValidateWithPath ("\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070\u0053\u0068\u0061\u0070\u0065");};func (_bgg *CT_Connector )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _bgg .MacroAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u006d\u0061\u0063r\u006f"},Value :_be .Sprintf ("\u0025\u0076",*_bgg .MacroAttr )});};if _bgg .FPublishedAttr !=nil {start .Attr =append (start .Attr ,_b .Attr {Name :_b .Name {Local :"\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"},Value :_be .Sprintf ("\u0025\u0064",_dfee (*_bgg .FPublishedAttr ))});};e .EncodeToken (start );_fcf :=_b .StartElement {Name :_b .Name {Local :"\u006ev\u0043\u0078\u006e\u0053\u0070\u0050r"}};e .EncodeElement (_bgg .NvCxnSpPr ,_fcf );_dfa :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0070\u0050\u0072"}};e .EncodeElement (_bgg .SpPr ,_dfa );if _bgg .Style !=nil {_da :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0074\u0079l\u0065"}};e .EncodeElement (_bgg .Style ,_da );};e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};type CT_Picture struct{MacroAttr *string ;FPublishedAttr *bool ;NvPicPr *CT_PictureNonVisual ;BlipFill *_f .CT_BlipFillProperties ;SpPr *_f .CT_ShapeProperties ;Style *_f .CT_ShapeStyle ;};func NewEG_ObjectChoicesChoice ()*EG_ObjectChoicesChoice {_afb :=&EG_ObjectChoicesChoice {};return _afb ;};func (_afgga *CT_ShapeNonVisual )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_acec :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_afgga .CNvPr ,_acec );_ddbf :=_b .StartElement {Name :_b .Name {Local :"\u0063N\u0076\u0053\u0070\u0050\u0072"}};e .EncodeElement (_afgga .CNvSpPr ,_ddbf );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};func (_fge *CT_Drawing )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_ca :for {_caf ,_ggb :=d .Token ();if _ggb !=nil {return _ggb ;};switch _cddd :=_caf .(type ){case _b .StartElement :switch _cddd .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"}:_egg :=NewEG_Anchor ();_egg .RelSizeAnchor =NewCT_RelSizeAnchor ();if _cc :=d .DecodeElement (_egg .RelSizeAnchor ,&_cddd );_cc !=nil {return _cc ;};_fge .EG_Anchor =append (_fge .EG_Anchor ,_egg );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 _cbaf :=d .DecodeElement (_cdg .AbsSizeAnchor ,&_cddd );_cbaf !=nil {return _cbaf ;};_fge .EG_Anchor =append (_fge .EG_Anchor ,_cdg );default:_c .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",_cddd .Name );if _fee :=d .Skip ();_fee !=nil {return _fee ;};};case _b .EndElement :break _ca ;case _b .CharData :};};return nil ;};type CT_GroupShape struct{NvGrpSpPr *CT_GroupShapeNonVisual ;GrpSpPr *_f .CT_GroupShapeProperties ;Choice []*CT_GroupShapeChoice ;};func (_ggbb *CT_GroupShapeChoice )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_gbg :for {_cff ,_dgcc :=d .Token ();if _dgcc !=nil {return
|
2022-02-25 19:20:45 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_GroupShape and its children, prefixing error messages with path
|
|
|
|
func (_abe *CT_GroupShape )ValidateWithPath (path string )error {if _daa :=_abe .NvGrpSpPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_daa !=nil {return _daa ;};if _cge :=_abe .GrpSpPr .ValidateWithPath (path +"\u002f\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_cge !=nil {return _cge ;};for _febc ,_geg :=range _abe .Choice {if _bff :=_geg .ValidateWithPath (_be .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_febc ));_bff !=nil {return _bff ;};};return nil ;};type CT_RelSizeAnchor struct{From *CT_Marker ;To *CT_Marker ;Choice *EG_ObjectChoicesChoice ;};func (_bde *CT_GroupShapeNonVisual )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_gbf :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_bde .CNvPr ,_gbf );_ccf :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072"}};e .EncodeElement (_bde .CNvGrpSpPr ,_ccf );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};func (_fgag *CT_Marker )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_fgag .X =0.0;_fgag .Y =0.0;_cga :for {_fcfc ,_fgec :=d .Token ();if _fgec !=nil {return _fgec ;};switch _bbbg :=_fcfc .(type ){case _b .StartElement :switch _bbbg .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 _dgf :=d .DecodeElement (&_fgag .X ,&_bbbg );_dgf !=nil {return _dgf ;};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 _afe :=d .DecodeElement (&_fgag .Y ,&_bbbg );_afe !=nil {return _afe ;};default:_c .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",_bbbg .Name );if _cgb :=d .Skip ();_cgb !=nil {return _cgb ;};};case _b .EndElement :break _cga ;case _b .CharData :};};return nil ;};func (_eag *CT_Connector )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_eag .NvCxnSpPr =NewCT_ConnectorNonVisual ();_eag .SpPr =_f .NewCT_ShapeProperties ();for _ ,_eg :=range start .Attr {if _eg .Name .Local =="\u006d\u0061\u0063r\u006f"{_gcf ,_dg :=_eg .Value ,error (nil );if _dg !=nil {return _dg ;};_eag .MacroAttr =&_gcf ;continue ;};if _eg .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_cd ,_fg :=_d .ParseBool (_eg .Value );if _fg !=nil {return _fg ;};_eag .FPublishedAttr =&_cd ;continue ;};};_eba :for {_ef ,_dga :=d .Token ();if _dga !=nil {return _dga ;};switch _dgc :=_ef .(type ){case _b .StartElement :switch _dgc .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\u0043\u0078\u006e\u0053\u0070\u0050r"}:if _fe :=d .DecodeElement (_eag .NvCxnSpPr ,&_dgc );_fe !=nil {return _fe ;};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\u0
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_GraphicFrame and its children, prefixing error messages with path
|
|
|
|
func (_bbcf *CT_GraphicFrame )ValidateWithPath (path string )error {if _cbe :=_bbcf .NvGraphicFramePr .ValidateWithPath (path +"\u002f\u004e\u0076\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072a\u006d\u0065\u0050\u0072");_cbe !=nil {return _cbe ;};if _egga :=_bbcf .Xfrm .ValidateWithPath (path +"\u002f\u0058\u0066r\u006d");_egga !=nil {return _egga ;};if _ede :=_bbcf .Graphic .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0070\u0068\u0069\u0063");_ede !=nil {return _ede ;};return nil ;};func (_baaf *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 _baaf .EG_Anchor !=nil {for _ ,_eab :=range _baaf .EG_Anchor {_eab .MarshalXML (e ,_b .StartElement {});};};e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the EG_ObjectChoices and its children, prefixing error messages with path
|
|
|
|
func (_cef *EG_ObjectChoices )ValidateWithPath (path string )error {if _cef .Choice !=nil {if _aeb :=_cef .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_aeb !=nil {return _aeb ;};};return nil ;};func NewCT_GroupShape ()*CT_GroupShape {_fdg :=&CT_GroupShape {};_fdg .NvGrpSpPr =NewCT_GroupShapeNonVisual ();_fdg .GrpSpPr =_f .NewCT_GroupShapeProperties ();return _fdg ;};type CT_PictureNonVisual struct{CNvPr *_f .CT_NonVisualDrawingProps ;CNvPicPr *_f .CT_NonVisualPictureProperties ;};func (_dbb *CT_PictureNonVisual )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_gdfa :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_dbb .CNvPr ,_gdfa );_fea :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076\u0050\u0069\u0063\u0050\u0072"}};e .EncodeElement (_dbb .CNvPicPr ,_fea );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};func NewCT_PictureNonVisual ()*CT_PictureNonVisual {_ddaf :=&CT_PictureNonVisual {};_ddaf .CNvPr =_f .NewCT_NonVisualDrawingProps ();_ddaf .CNvPicPr =_f .NewCT_NonVisualPictureProperties ();return _ddaf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_GraphicFrame and its children
|
|
|
|
func (_cdb *CT_GraphicFrame )Validate ()error {return _cdb .ValidateWithPath ("\u0043T\u005fG\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065");};func NewCT_GroupShapeNonVisual ()*CT_GroupShapeNonVisual {_gde :=&CT_GroupShapeNonVisual {};_gde .CNvPr =_f .NewCT_NonVisualDrawingProps ();_gde .CNvGrpSpPr =_f .NewCT_NonVisualGroupDrawingShapeProps ();return _gde ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_ConnectorNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_bbd *CT_ConnectorNonVisual )ValidateWithPath (path string )error {if _gg :=_bbd .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_gg !=nil {return _gg ;};if _fec :=_bbd .CNvCxnSpPr .ValidateWithPath (path +"/\u0043\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072");_fec !=nil {return _fec ;};return nil ;};func (_gbeb *EG_ObjectChoicesChoice )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _gbeb .Sp !=nil {_deg :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0070"}};e .EncodeElement (_gbeb .Sp ,_deg );};if _gbeb .GrpSp !=nil {_cea :=_b .StartElement {Name :_b .Name {Local :"\u0067\u0072\u0070S\u0070"}};e .EncodeElement (_gbeb .GrpSp ,_cea );};if _gbeb .GraphicFrame !=nil {_bbdb :=_b .StartElement {Name :_b .Name {Local :"\u0067\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065"}};e .EncodeElement (_gbeb .GraphicFrame ,_bbdb );};if _gbeb .CxnSp !=nil {_ebg :=_b .StartElement {Name :_b .Name {Local :"\u0063\u0078\u006eS\u0070"}};e .EncodeElement (_gbeb .CxnSp ,_ebg );};if _gbeb .Pic !=nil {_efdf :=_b .StartElement {Name :_b .Name {Local :"\u0070\u0069\u0063"}};e .EncodeElement (_gbeb .Pic ,_efdf );};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2022-02-25 19:20:45 +00:00
|
|
|
// Validate validates the CT_ShapeNonVisual and its children
|
2022-04-09 14:27:46 +00:00
|
|
|
func (_cbg *CT_ShapeNonVisual )Validate ()error {return _cbg .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056i\u0073\u0075\u0061\u006c");};func (_cdcb *EG_ObjectChoices )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _cdcb .Choice !=nil {_cdcb .Choice .MarshalXML (e ,_b .StartElement {});};return nil ;};func NewCT_ShapeNonVisual ()*CT_ShapeNonVisual {_cee :=&CT_ShapeNonVisual {};_cee .CNvPr =_f .NewCT_NonVisualDrawingProps ();_cee .CNvSpPr =_f .NewCT_NonVisualDrawingShapeProps ();return _cee ;};func NewCT_RelSizeAnchor ()*CT_RelSizeAnchor {_cbcg :=&CT_RelSizeAnchor {};_cbcg .From =NewCT_Marker ();_cbcg .To =NewCT_Marker ();return _cbcg ;};func NewCT_GroupShapeChoice ()*CT_GroupShapeChoice {_bbgc :=&CT_GroupShapeChoice {};return _bbgc };
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_Marker and its children, prefixing error messages with path
|
|
|
|
func (_fca *CT_Marker )ValidateWithPath (path string )error {if _fca .X < 0.0{return _be .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 ,_fca .X );};if _fca .X > 1.0{return _be .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 ,_fca .X );};if _fca .Y < 0.0{return _be .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 ,_fca .Y );};if _fca .Y > 1.0{return _be .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 ,_fca .Y );};return nil ;};type EG_ObjectChoices struct{Choice *EG_ObjectChoicesChoice ;};func (_ced *CT_PictureNonVisual )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_ced .CNvPr =_f .NewCT_NonVisualDrawingProps ();_ced .CNvPicPr =_f .NewCT_NonVisualPictureProperties ();_ead :for {_efd ,_eddc :=d .Token ();if _eddc !=nil {return _eddc ;};switch _cgd :=_efd .(type ){case _b .StartElement :switch _cgd .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 _fcg :=d .DecodeElement (_ced .CNvPr ,&_cgd );_fcg !=nil {return _fcg ;};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\u0050\u0069\u0063\u0050\u0072"}:if _aef :=d .DecodeElement (_ced .CNvPicPr ,&_cgd );_aef !=nil {return _aef ;};default:_c .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\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065No\u006e\u0056\u0069\u0073\u0075\u0061\u006c\u0020\u0025\u0076",_cgd .Name );if _bgaf :=d .Skip ();_bgaf !=nil {return _bgaf ;};};case _b .EndElement :break _ead ;case _b .CharData :};};return nil ;};func _dfee (_bfge bool )uint8 {if _bfge {return 1;};return 0;};func (_acgb *CT_GroupShape )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_acgb .NvGrpSpPr =NewCT_GroupShapeNonVisual ();_acgb .GrpSpPr =_f .NewCT_GroupShapeProperties ();_bee :for {_edg ,_aeg :=d .Token ();if _aeg !=nil {return _aeg ;};switch _bfc :=_edg .(type ){case _b .StartElement :switch _bfc .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\u0047\u0072\u0070\u0053\u0070\u0050r"}:if _bc :=d .DecodeElement (_acgb .NvGrpSpPr ,&_bfc );_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\u0044\u0072\u0061\u0077\u0069\u006e\u0067",Local
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_ShapeNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_gac *CT_ShapeNonVisual )ValidateWithPath (path string )error {if _dgac :=_gac .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_dgac !=nil {return _dgac ;};if _cedd :=_gac .CNvSpPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0053\u0070\u0050\u0072");_cedd !=nil {return _cedd ;};return nil ;};func (_db *CT_GraphicFrameNonVisual )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_db .CNvPr =_f .NewCT_NonVisualDrawingProps ();_db .CNvGraphicFramePr =_f .NewCT_NonVisualGraphicFrameProperties ();_dd :for {_egge ,_dbg :=d .Token ();if _dbg !=nil {return _dbg ;};switch _ggf :=_egge .(type ){case _b .StartElement :switch _ggf .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 _bad :=d .DecodeElement (_db .CNvPr ,&_ggf );_bad !=nil {return _bad ;};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\u0061\u0070\u0068\u0069\u0063\u0046\u0072a\u006d\u0065\u0050\u0072"}:if _cbd :=d .DecodeElement (_db .CNvGraphicFramePr ,&_ggf );_cbd !=nil {return _cbd ;};default:_c .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064 \u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065\u004e\u006f\u006e\u0056i\u0073\u0075\u0061\u006c\u0020%\u0076",_ggf .Name );if _dbd :=d .Skip ();_dbd !=nil {return _dbd ;};};case _b .EndElement :break _dd ;case _b .CharData :};};return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_Picture and its children
|
|
|
|
func (_dbdg *CT_Picture )Validate ()error {return _dbdg .ValidateWithPath ("\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_AbsSizeAnchor and its children
|
|
|
|
func (_ea *CT_AbsSizeAnchor )Validate ()error {return _ea .ValidateWithPath ("\u0043\u0054_\u0041\u0062\u0073S\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072");};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_Connector and its children
|
|
|
|
func (_ecb *CT_Connector )Validate ()error {return _ecb .ValidateWithPath ("\u0043\u0054\u005fC\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072");};func (_bffb *EG_Anchor )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _bffb .RelSizeAnchor !=nil {_ddae :=_b .StartElement {Name :_b .Name {Local :"\u0072\u0065\u006c\u0053\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072"}};e .EncodeElement (_bffb .RelSizeAnchor ,_ddae );};if _bffb .AbsSizeAnchor !=nil {_beg :=_b .StartElement {Name :_b .Name {Local :"\u0061\u0062\u0073\u0053\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072"}};e .EncodeElement (_bffb .AbsSizeAnchor ,_beg );};return nil ;};func NewCT_Picture ()*CT_Picture {_ada :=&CT_Picture {};_ada .NvPicPr =NewCT_PictureNonVisual ();_ada .BlipFill =_f .NewCT_BlipFillProperties ();_ada .SpPr =_f .NewCT_ShapeProperties ();return _ada ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the EG_ObjectChoices and its children
|
|
|
|
func (_ecba *EG_ObjectChoices )Validate ()error {return _ecba .ValidateWithPath ("\u0045\u0047_\u004f\u0062\u006ae\u0063\u0074\u0043\u0068\u006f\u0069\u0063\u0065\u0073");};type CT_ConnectorNonVisual struct{CNvPr *_f .CT_NonVisualDrawingProps ;CNvCxnSpPr *_f .CT_NonVisualConnectorProperties ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the EG_Anchor and its children, prefixing error messages with path
|
|
|
|
func (_dge *EG_Anchor )ValidateWithPath (path string )error {if _dge .RelSizeAnchor !=nil {if _dee :=_dge .RelSizeAnchor .ValidateWithPath (path +"\u002f\u0052\u0065\u006c\u0053\u0069\u007a\u0065\u0041n\u0063\u0068\u006f\u0072");_dee !=nil {return _dee ;};};if _dge .AbsSizeAnchor !=nil {if _aee :=_dge .AbsSizeAnchor .ValidateWithPath (path +"\u002f\u0041\u0062\u0073\u0053\u0069\u007a\u0065\u0041n\u0063\u0068\u006f\u0072");_aee !=nil {return _aee ;};};return nil ;};func NewCT_AbsSizeAnchor ()*CT_AbsSizeAnchor {_e :=&CT_AbsSizeAnchor {};_e .From =NewCT_Marker ();_e .Ext =_f .NewCT_PositiveSize2D ();return _e ;};type CT_GraphicFrameNonVisual struct{CNvPr *_f .CT_NonVisualDrawingProps ;CNvGraphicFramePr *_f .CT_NonVisualGraphicFrameProperties ;};
|
2022-01-15 21:17:38 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_GroupShapeNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_ccag *CT_GroupShapeNonVisual )ValidateWithPath (path string )error {if _fece :=_ccag .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_fece !=nil {return _fece ;};if _cac :=_ccag .CNvGrpSpPr .ValidateWithPath (path +"/\u0043\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_cac !=nil {return _cac ;};return nil ;};func (_agfc *CT_GroupShapeChoice )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {if _agfc .Sp !=nil {_fgg :=_b .StartElement {Name :_b .Name {Local :"\u0073\u0070"}};for _ ,_aabb :=range _agfc .Sp {e .EncodeElement (_aabb ,_fgg );};};if _agfc .GrpSp !=nil {_beef :=_b .StartElement {Name :_b .Name {Local :"\u0067\u0072\u0070S\u0070"}};for _ ,_eff :=range _agfc .GrpSp {e .EncodeElement (_eff ,_beef );};};if _agfc .GraphicFrame !=nil {_geb :=_b .StartElement {Name :_b .Name {Local :"\u0067\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065"}};for _ ,_fga :=range _agfc .GraphicFrame {e .EncodeElement (_fga ,_geb );};};if _agfc .CxnSp !=nil {_afg :=_b .StartElement {Name :_b .Name {Local :"\u0063\u0078\u006eS\u0070"}};for _ ,_fged :=range _agfc .CxnSp {e .EncodeElement (_fged ,_afg );};};if _agfc .Pic !=nil {_eec :=_b .StartElement {Name :_b .Name {Local :"\u0070\u0069\u0063"}};for _ ,_edbg :=range _agfc .Pic {e .EncodeElement (_edbg ,_eec );};};return nil ;};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the CT_Picture and its children, prefixing error messages with path
|
|
|
|
func (_gcdg *CT_Picture )ValidateWithPath (path string )error {if _dbeb :=_gcdg .NvPicPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0050\u0069\u0063\u0050\u0072");_dbeb !=nil {return _dbeb ;};if _cgbe :=_gcdg .BlipFill .ValidateWithPath (path +"\u002fB\u006c\u0069\u0070\u0046\u0069\u006cl");_cgbe !=nil {return _cgbe ;};if _cdca :=_gcdg .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_cdca !=nil {return _cdca ;};if _gcdg .Style !=nil {if _fdfa :=_gcdg .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_fdfa !=nil {return _fdfa ;};};return nil ;};func (_g *CT_AbsSizeAnchor )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_g .From =NewCT_Marker ();_g .Ext =_f .NewCT_PositiveSize2D ();_aga :for {_bg ,_bga :=d .Token ();if _bga !=nil {return _bga ;};switch _eb :=_bg .(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 _cf :=d .DecodeElement (_g .From ,&_eb );_cf !=nil {return _cf ;};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 _cb :=d .DecodeElement (_g .Ext ,&_eb );_cb !=nil {return _cb ;};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"}:_g .Choice =NewEG_ObjectChoicesChoice ();if _gc :=d .DecodeElement (&_g .Choice .Sp ,&_eb );_gc !=nil {return _gc ;};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"}:_g .Choice =NewEG_ObjectChoicesChoice ();if _cba :=d .DecodeElement (&_g .Choice .GrpSp ,&_eb );_cba !=nil {return _cba ;};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"}:_g .Choice =NewEG_ObjectChoicesChoice ();if _ed :=d .DecodeElement (&_g .Choice .GraphicFrame ,&_eb );_ed !=nil {return _ed ;};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"}:_g .Choice =NewEG_ObjectChoicesChoice ();if _cfc :=d .DecodeElement (&_g .Choice .CxnSp ,&_eb );_cfc !=nil {return _cfc ;};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\u
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// Validate validates the CT_PictureNonVisual and its children
|
|
|
|
func (_bfe *CT_PictureNonVisual )Validate ()error {return _bfe .ValidateWithPath ("\u0043\u0054\u005f\u0050ic\u0074\u0075\u0072\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c");};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2022-04-09 14:27:46 +00:00
|
|
|
// ValidateWithPath validates the EG_ObjectChoicesChoice and its children, prefixing error messages with path
|
|
|
|
func (_ccbc *EG_ObjectChoicesChoice )ValidateWithPath (path string )error {if _ccbc .Sp !=nil {if _eabf :=_ccbc .Sp .ValidateWithPath (path +"\u002f\u0053\u0070");_eabf !=nil {return _eabf ;};};if _ccbc .GrpSp !=nil {if _cbgg :=_ccbc .GrpSp .ValidateWithPath (path +"\u002f\u0047\u0072\u0070\u0053\u0070");_cbgg !=nil {return _cbgg ;};};if _ccbc .GraphicFrame !=nil {if _gab :=_ccbc .GraphicFrame .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065");_gab !=nil {return _gab ;};};if _ccbc .CxnSp !=nil {if _abg :=_ccbc .CxnSp .ValidateWithPath (path +"\u002f\u0043\u0078\u006e\u0053\u0070");_abg !=nil {return _abg ;};};if _ccbc .Pic !=nil {if _aaa :=_ccbc .Pic .ValidateWithPath (path +"\u002f\u0050\u0069\u0063");_aaa !=nil {return _aaa ;};};return nil ;};func NewEG_Anchor ()*EG_Anchor {_add :=&EG_Anchor {};return _add };func (_gd *CT_ConnectorNonVisual )MarshalXML (e *_b .Encoder ,start _b .StartElement )error {e .EncodeToken (start );_cde :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_gd .CNvPr ,_cde );_cdd :=_b .StartElement {Name :_b .Name {Local :"\u0063\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072"}};e .EncodeElement (_gd .CNvCxnSpPr ,_cdd );e .EncodeToken (_b .EndElement {Name :start .Name });return nil ;};func (_dgaa *EG_ObjectChoicesChoice )UnmarshalXML (d *_b .Decoder ,start _b .StartElement )error {_fcfb :for {_gfg ,_ggaf :=d .Token ();if _ggaf !=nil {return _ggaf ;};switch _bec :=_gfg .(type ){case _b .StartElement :switch _bec .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"}:_dgaa .Sp =NewCT_Shape ();if _dbbc :=d .DecodeElement (_dgaa .Sp ,&_bec );_dbbc !=nil {return _dbbc ;};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"}:_dgaa .GrpSp =NewCT_GroupShape ();if _eae :=d .DecodeElement (_dgaa .GrpSp ,&_bec );_eae !=nil {return _eae ;};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"}:_dgaa .GraphicFrame =NewCT_GraphicFrame ();if _deef :=d .DecodeElement (_dgaa .GraphicFrame ,&_bec );_deef !=nil {return _deef ;};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"}:_dgaa .CxnSp =NewCT_Connector ();if _fege :=d .DecodeElement (_dgaa .CxnSp ,&_bec );_fege !=nil {return _fege ;};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"}:_dgaa .Pic =NewCT_Picture ();if _acg
|