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/
|
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
package chartDrawing ;import (_a "encoding/xml";_e "fmt";_cc "github.com/unidoc/unioffice";_g "github.com/unidoc/unioffice/schema/soo/dml";_d "strconv";);func (_dbge *CT_GroupShapeChoice )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _dbge .Sp !=nil {_bdc :=_a .StartElement {Name :_a .Name {Local :"\u0073\u0070"}};for _ ,_ffd :=range _dbge .Sp {e .EncodeElement (_ffd ,_bdc );};};if _dbge .GrpSp !=nil {_gcb :=_a .StartElement {Name :_a .Name {Local :"\u0067\u0072\u0070S\u0070"}};for _ ,_cec :=range _dbge .GrpSp {e .EncodeElement (_cec ,_gcb );};};if _dbge .GraphicFrame !=nil {_acg :=_a .StartElement {Name :_a .Name {Local :"\u0067\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065"}};for _ ,_fga :=range _dbge .GraphicFrame {e .EncodeElement (_fga ,_acg );};};if _dbge .CxnSp !=nil {_aad :=_a .StartElement {Name :_a .Name {Local :"\u0063\u0078\u006eS\u0070"}};for _ ,_edf :=range _dbge .CxnSp {e .EncodeElement (_edf ,_aad );};};if _dbge .Pic !=nil {_cgad :=_a .StartElement {Name :_a .Name {Local :"\u0070\u0069\u0063"}};for _ ,_ffdf :=range _dbge .Pic {e .EncodeElement (_ffdf ,_cgad );};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_GraphicFrameNonVisual and its children
|
|
|
|
func (_abd *CT_GraphicFrameNonVisual )Validate ()error {return _abd .ValidateWithPath ("\u0043T\u005f\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061m\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c");};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_Drawing and its children
|
|
|
|
func (_cee *CT_Drawing )Validate ()error {return _cee .ValidateWithPath ("\u0043\u0054\u005f\u0044\u0072\u0061\u0077\u0069\u006e\u0067");};func (_cedg *CT_Shape )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cedg .NvSpPr =NewCT_ShapeNonVisual ();_cedg .SpPr =_g .NewCT_ShapeProperties ();for _ ,_agf :=range start .Attr {if _agf .Name .Local =="\u006d\u0061\u0063r\u006f"{_afa ,_dggg :=_agf .Value ,error (nil );if _dggg !=nil {return _dggg ;};_cedg .MacroAttr =&_afa ;continue ;};if _agf .Name .Local =="\u0074\u0065\u0078\u0074\u006c\u0069\u006e\u006b"{_gga ,_def :=_agf .Value ,error (nil );if _def !=nil {return _def ;};_cedg .TextlinkAttr =&_gga ;continue ;};if _agf .Name .Local =="\u0066\u004c\u006f\u0063\u006b\u0073\u0054\u0065\u0078\u0074"{_baaf ,_ege :=_d .ParseBool (_agf .Value );if _ege !=nil {return _ege ;};_cedg .FLocksTextAttr =&_baaf ;continue ;};if _agf .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_ggd ,_fdea :=_d .ParseBool (_agf .Value );if _fdea !=nil {return _fdea ;};_cedg .FPublishedAttr =&_ggd ;continue ;};};_fdff :for {_cabb ,_fgge :=d .Token ();if _fgge !=nil {return _fgge ;};switch _afe :=_cabb .(type ){case _a .StartElement :switch _afe .Name {case _a .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 _aaf :=d .DecodeElement (_cedg .NvSpPr ,&_afe );_aaf !=nil {return _aaf ;};case _a .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 _dedb :=d .DecodeElement (_cedg .SpPr ,&_afe );_dedb !=nil {return _dedb ;};case _a .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"}:_cedg .Style =_g .NewCT_ShapeStyle ();if _edff :=d .DecodeElement (_cedg .Style ,&_afe );_edff !=nil {return _edff ;};case _a .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"}:_cedg .TxBody =_g .NewCT_TextBody ();if _cfdd :=d .DecodeElement (_cedg .TxBody ,&_afe );_cfdd !=nil {return _cfdd ;};default:_cc .Log ("\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",_afe .Name );if _gggb :=d .Skip ();_gggb !=nil {return _gggb ;};};case _a .EndElement :break _fdff ;case _a .CharData :};};return nil ;};type CT_GraphicFrameNonVisual struct{CNvPr *_g .CT_NonVisualDrawingProps ;CNvGraphicFramePr *_g .CT_NonVisualGraphicFrameProperties ;};func (_bde *CT_ShapeNonVisual )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {e .EncodeToken (start );_fcea :=_a .StartElement {Name :_a .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_bde .CNvPr ,_fcea );_dbgg :=_a .StartElement {Name :_a .Name {Local :"\u0063N\u0076\u0053\u0070\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_GroupShape and its children
|
|
|
|
func (_gfce *CT_GroupShape )Validate ()error {return _gfce .ValidateWithPath ("\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070\u0053\u0068\u0061\u0070\u0065");};func NewCT_Shape ()*CT_Shape {_abe :=&CT_Shape {};_abe .NvSpPr =NewCT_ShapeNonVisual ();_abe .SpPr =_g .NewCT_ShapeProperties ();return _abe ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +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-07-30 17:03:26 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_PictureNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_aae *CT_PictureNonVisual )ValidateWithPath (path string )error {if _fee :=_aae .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_fee !=nil {return _fee ;};if _bad :=_aae .CNvPicPr .ValidateWithPath (path +"\u002fC\u004e\u0076\u0050\u0069\u0063\u0050r");_bad !=nil {return _bad ;};return nil ;};func NewCT_GroupShapeNonVisual ()*CT_GroupShapeNonVisual {_aac :=&CT_GroupShapeNonVisual {};_aac .CNvPr =_g .NewCT_NonVisualDrawingProps ();_aac .CNvGrpSpPr =_g .NewCT_NonVisualGroupDrawingShapeProps ();return _aac ;};func (_afd *CT_GroupShape )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {e .EncodeToken (start );_bce :=_a .StartElement {Name :_a .Name {Local :"\u006ev\u0047\u0072\u0070\u0053\u0070\u0050r"}};e .EncodeElement (_afd .NvGrpSpPr ,_bce );_gdg :=_a .StartElement {Name :_a .Name {Local :"\u0067r\u0070\u0053\u0070\u0050\u0072"}};e .EncodeElement (_afd .GrpSpPr ,_gdg );if _afd .Choice !=nil {for _ ,_bbg :=range _afd .Choice {_bbg .MarshalXML (e ,_a .StartElement {});};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_acegg *EG_ObjectChoicesChoice )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _acegg .Sp !=nil {_baaff :=_a .StartElement {Name :_a .Name {Local :"\u0073\u0070"}};e .EncodeElement (_acegg .Sp ,_baaff );};if _acegg .GrpSp !=nil {_acbg :=_a .StartElement {Name :_a .Name {Local :"\u0067\u0072\u0070S\u0070"}};e .EncodeElement (_acegg .GrpSp ,_acbg );};if _acegg .GraphicFrame !=nil {_cff :=_a .StartElement {Name :_a .Name {Local :"\u0067\u0072\u0061p\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065"}};e .EncodeElement (_acegg .GraphicFrame ,_cff );};if _acegg .CxnSp !=nil {_ead :=_a .StartElement {Name :_a .Name {Local :"\u0063\u0078\u006eS\u0070"}};e .EncodeElement (_acegg .CxnSp ,_ead );};if _acegg .Pic !=nil {_afc :=_a .StartElement {Name :_a .Name {Local :"\u0070\u0069\u0063"}};e .EncodeElement (_acegg .Pic ,_afc );};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_Shape and its children
|
|
|
|
func (_aabc *CT_Shape )Validate ()error {return _aabc .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065");};type CT_GroupShapeChoice struct{Sp []*CT_Shape ;GrpSp []*CT_GroupShape ;GraphicFrame []*CT_GraphicFrame ;CxnSp []*CT_Connector ;Pic []*CT_Picture ;};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the EG_Anchor and its children, prefixing error messages with path
|
|
|
|
func (_ecff *EG_Anchor )ValidateWithPath (path string )error {if _ecff .RelSizeAnchor !=nil {if _dac :=_ecff .RelSizeAnchor .ValidateWithPath (path +"\u002f\u0052\u0065\u006c\u0053\u0069\u007a\u0065\u0041n\u0063\u0068\u006f\u0072");_dac !=nil {return _dac ;};};if _ecff .AbsSizeAnchor !=nil {if _dgf :=_ecff .AbsSizeAnchor .ValidateWithPath (path +"\u002f\u0041\u0062\u0073\u0053\u0069\u007a\u0065\u0041n\u0063\u0068\u006f\u0072");_dgf !=nil {return _dgf ;};};return nil ;};func (_da *CT_Connector )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _da .MacroAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006d\u0061\u0063r\u006f"},Value :_e .Sprintf ("\u0025\u0076",*_da .MacroAttr )});};if _da .FPublishedAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"},Value :_e .Sprintf ("\u0025\u0064",_dgd (*_da .FPublishedAttr ))});};e .EncodeToken (start );_cba :=_a .StartElement {Name :_a .Name {Local :"\u006ev\u0043\u0078\u006e\u0053\u0070\u0050r"}};e .EncodeElement (_da .NvCxnSpPr ,_cba );_af :=_a .StartElement {Name :_a .Name {Local :"\u0073\u0070\u0050\u0072"}};e .EncodeElement (_da .SpPr ,_af );if _da .Style !=nil {_dc :=_a .StartElement {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"}};e .EncodeElement (_da .Style ,_dc );};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewCT_PictureNonVisual ()*CT_PictureNonVisual {_daf :=&CT_PictureNonVisual {};_daf .CNvPr =_g .NewCT_NonVisualDrawingProps ();_daf .CNvPicPr =_g .NewCT_NonVisualPictureProperties ();return _daf ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_ConnectorNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_deb *CT_ConnectorNonVisual )ValidateWithPath (path string )error {if _aea :=_deb .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_aea !=nil {return _aea ;};if _eaf :=_deb .CNvCxnSpPr .ValidateWithPath (path +"/\u0043\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072");_eaf !=nil {return _eaf ;};return nil ;};func (_cgd *CT_RelSizeAnchor )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cgd .From =NewCT_Marker ();_cgd .To =NewCT_Marker ();_debd :for {_bdg ,_cfcc :=d .Token ();if _cfcc !=nil {return _cfcc ;};switch _bea :=_bdg .(type ){case _a .StartElement :switch _bea .Name {case _a .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 _caeb :=d .DecodeElement (_cgd .From ,&_bea );_caeb !=nil {return _caeb ;};case _a .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 _dfb :=d .DecodeElement (_cgd .To ,&_bea );_dfb !=nil {return _dfb ;};case _a .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"}:_cgd .Choice =NewEG_ObjectChoicesChoice ();if _deea :=d .DecodeElement (&_cgd .Choice .Sp ,&_bea );_deea !=nil {return _deea ;};case _a .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"}:_cgd .Choice =NewEG_ObjectChoicesChoice ();if _cfa :=d .DecodeElement (&_cgd .Choice .GrpSp ,&_bea );_cfa !=nil {return _cfa ;};case _a .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"}:_cgd .Choice =NewEG_ObjectChoicesChoice ();if _gbd :=d .DecodeElement (&_cgd .Choice .GraphicFrame ,&_bea );_gbd !=nil {return _gbd ;};case _a .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"}:_cgd .Choice =NewEG_ObjectChoicesChoice ();if _aacc :=d .DecodeElement (&_cgd .Choice .CxnSp ,&_bea );_aacc !=nil {return _aacc ;};case _a .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"
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the EG_ObjectChoicesChoice and its children, prefixing error messages with path
|
|
|
|
func (_gce *EG_ObjectChoicesChoice )ValidateWithPath (path string )error {if _gce .Sp !=nil {if _eebc :=_gce .Sp .ValidateWithPath (path +"\u002f\u0053\u0070");_eebc !=nil {return _eebc ;};};if _gce .GrpSp !=nil {if _efcf :=_gce .GrpSp .ValidateWithPath (path +"\u002f\u0047\u0072\u0070\u0053\u0070");_efcf !=nil {return _efcf ;};};if _gce .GraphicFrame !=nil {if _gegg :=_gce .GraphicFrame .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065");_gegg !=nil {return _gegg ;};};if _gce .CxnSp !=nil {if _afaf :=_gce .CxnSp .ValidateWithPath (path +"\u002f\u0043\u0078\u006e\u0053\u0070");_afaf !=nil {return _afaf ;};};if _gce .Pic !=nil {if _acfb :=_gce .Pic .ValidateWithPath (path +"\u002f\u0050\u0069\u0063");_acfb !=nil {return _acfb ;};};return nil ;};func (_faa *CT_GraphicFrameNonVisual )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {e .EncodeToken (start );_deaa :=_a .StartElement {Name :_a .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_faa .CNvPr ,_deaa );_dda :=_a .StartElement {Name :_a .Name {Local :"\u0063\u004e\u0076\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072a\u006d\u0065\u0050\u0072"}};e .EncodeElement (_faa .CNvGraphicFramePr ,_dda );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewCT_RelSizeAnchor ()*CT_RelSizeAnchor {_bac :=&CT_RelSizeAnchor {};_bac .From =NewCT_Marker ();_bac .To =NewCT_Marker ();return _bac ;};func NewEG_ObjectChoices ()*EG_ObjectChoices {_dbd :=&EG_ObjectChoices {};return _dbd };func NewCT_GraphicFrameNonVisual ()*CT_GraphicFrameNonVisual {_ddb :=&CT_GraphicFrameNonVisual {};_ddb .CNvPr =_g .NewCT_NonVisualDrawingProps ();_ddb .CNvGraphicFramePr =_g .NewCT_NonVisualGraphicFrameProperties ();return _ddb ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the EG_ObjectChoicesChoice and its children
|
|
|
|
func (_gefc *EG_ObjectChoicesChoice )Validate ()error {return _gefc .ValidateWithPath ("\u0045\u0047\u005f\u004fbj\u0065\u0063\u0074\u0043\u0068\u006f\u0069\u0063\u0065\u0073\u0043\u0068\u006f\u0069c\u0065");};type CT_PictureNonVisual struct{CNvPr *_g .CT_NonVisualDrawingProps ;CNvPicPr *_g .CT_NonVisualPictureProperties ;};type CT_Marker struct{X float64 ;Y float64 ;};type CT_Shape struct{MacroAttr *string ;TextlinkAttr *string ;FLocksTextAttr *bool ;FPublishedAttr *bool ;NvSpPr *CT_ShapeNonVisual ;SpPr *_g .CT_ShapeProperties ;Style *_g .CT_ShapeStyle ;TxBody *_g .CT_TextBody ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_Marker and its children
|
|
|
|
func (_edbg *CT_Marker )Validate ()error {return _edbg .ValidateWithPath ("\u0043T\u005f\u004d\u0061\u0072\u006b\u0065r");};func NewCT_Picture ()*CT_Picture {_ffb :=&CT_Picture {};_ffb .NvPicPr =NewCT_PictureNonVisual ();_ffb .BlipFill =_g .NewCT_BlipFillProperties ();_ffb .SpPr =_g .NewCT_ShapeProperties ();return _ffb ;};type CT_ShapeNonVisual struct{CNvPr *_g .CT_NonVisualDrawingProps ;CNvSpPr *_g .CT_NonVisualDrawingShapeProps ;};func NewCT_ConnectorNonVisual ()*CT_ConnectorNonVisual {_gc :=&CT_ConnectorNonVisual {};_gc .CNvPr =_g .NewCT_NonVisualDrawingProps ();_gc .CNvCxnSpPr =_g .NewCT_NonVisualConnectorProperties ();return _gc ;};func (_fde *CT_Marker )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fde .X =0.0;_fde .Y =0.0;_deae :for {_bbgd ,_gaea :=d .Token ();if _gaea !=nil {return _gaea ;};switch _ebeg :=_bbgd .(type ){case _a .StartElement :switch _ebeg .Name {case _a .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 _cd :=d .DecodeElement (&_fde .X ,&_ebeg );_cd !=nil {return _cd ;};case _a .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 _gge :=d .DecodeElement (&_fde .Y ,&_ebeg );_gge !=nil {return _gge ;};default:_cc .Log ("\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",_ebeg .Name );if _cfc :=d .Skip ();_cfc !=nil {return _cfc ;};};case _a .EndElement :break _deae ;case _a .CharData :};};return nil ;};type CT_GroupShapeNonVisual struct{CNvPr *_g .CT_NonVisualDrawingProps ;CNvGrpSpPr *_g .CT_NonVisualGroupDrawingShapeProps ;};func (_fab *CT_Picture )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fab .NvPicPr =NewCT_PictureNonVisual ();_fab .BlipFill =_g .NewCT_BlipFillProperties ();_fab .SpPr =_g .NewCT_ShapeProperties ();for _ ,_dgg :=range start .Attr {if _dgg .Name .Local =="\u006d\u0061\u0063r\u006f"{_bcea ,_fdba :=_dgg .Value ,error (nil );if _fdba !=nil {return _fdba ;};_fab .MacroAttr =&_bcea ;continue ;};if _dgg .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_dgaa ,_ced :=_d .ParseBool (_dgg .Value );if _ced !=nil {return _ced ;};_fab .FPublishedAttr =&_dgaa ;continue ;};};_cbb :for {_aeafe ,_gfae :=d .Token ();if _gfae !=nil {return _gfae ;};switch _edbd :=_aeafe .(type ){case _a .StartElement :switch _edbd .Name {case _a .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 _baf :=d .DecodeElement (_fab .NvPicPr ,&_edbd );_baf !=nil {return _baf ;};case _a .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 _eaad :=d .DecodeElement (_fab .BlipFill ,&_edbd );_eaad !=nil {return _eaad ;};case _a .Name {Space :"h\u0074
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_Drawing and its children, prefixing error messages with path
|
|
|
|
func (_dea *CT_Drawing )ValidateWithPath (path string )error {for _fa ,_fdg :=range _dea .EG_Anchor {if _ffc :=_fdg .ValidateWithPath (_e .Sprintf ("\u0025\u0073/\u0045\u0047\u005fA\u006e\u0063\u0068\u006f\u0072\u005b\u0025\u0064\u005d",path ,_fa ));_ffc !=nil {return _ffc ;};};return nil ;};func (_dbg *CT_Connector )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_dbg .NvCxnSpPr =NewCT_ConnectorNonVisual ();_dbg .SpPr =_g .NewCT_ShapeProperties ();for _ ,_ebe :=range start .Attr {if _ebe .Name .Local =="\u006d\u0061\u0063r\u006f"{_ef ,_bc :=_ebe .Value ,error (nil );if _bc !=nil {return _bc ;};_dbg .MacroAttr =&_ef ;continue ;};if _ebe .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_daa ,_bb :=_d .ParseBool (_ebe .Value );if _bb !=nil {return _bb ;};_dbg .FPublishedAttr =&_daa ;continue ;};};_cg :for {_fg ,_de :=d .Token ();if _de !=nil {return _de ;};switch _ce :=_fg .(type ){case _a .StartElement :switch _ce .Name {case _a .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 (_dbg .NvCxnSpPr ,&_ce );_fe !=nil {return _fe ;};case _a .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 _eab :=d .DecodeElement (_dbg .SpPr ,&_ce );_eab !=nil {return _eab ;};case _a .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"}:_dbg .Style =_g .NewCT_ShapeStyle ();if _bf :=d .DecodeElement (_dbg .Style ,&_ce );_bf !=nil {return _bf ;};default:_cc .Log ("s\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075n\u0073\u0075\u0070\u0070\u006f\u0072\u0074ed\u0020\u0065\u006c\u0065m\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054_C\u006f\u006en\u0065\u0063\u0074\u006f\u0072\u0020\u0025\u0076",_ce .Name );if _bg :=d .Skip ();_bg !=nil {return _bg ;};};case _a .EndElement :break _cg ;case _a .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_GraphicFrame and its children
|
|
|
|
func (_bfe *CT_GraphicFrame )Validate ()error {return _bfe .ValidateWithPath ("\u0043T\u005fG\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065");};func NewCT_GroupShape ()*CT_GroupShape {_gdea :=&CT_GroupShape {};_gdea .NvGrpSpPr =NewCT_GroupShapeNonVisual ();_gdea .GrpSpPr =_g .NewCT_GroupShapeProperties ();return _gdea ;};func NewCT_Connector ()*CT_Connector {_gda :=&CT_Connector {};_gda .NvCxnSpPr =NewCT_ConnectorNonVisual ();_gda .SpPr =_g .NewCT_ShapeProperties ();return _gda ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_AbsSizeAnchor and its children, prefixing error messages with path
|
|
|
|
func (_db *CT_AbsSizeAnchor )ValidateWithPath (path string )error {if _ed :=_db .From .ValidateWithPath (path +"\u002f\u0046\u0072o\u006d");_ed !=nil {return _ed ;};if _gae :=_db .Ext .ValidateWithPath (path +"\u002f\u0045\u0078\u0074");_gae !=nil {return _gae ;};if _db .Choice !=nil {if _gd :=_db .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_gd !=nil {return _gd ;};};return nil ;};func (_f *CT_AbsSizeAnchor )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {e .EncodeToken (start );_eb :=_a .StartElement {Name :_a .Name {Local :"\u0066\u0072\u006f\u006d"}};e .EncodeElement (_f .From ,_eb );_gf :=_a .StartElement {Name :_a .Name {Local :"\u0065\u0078\u0074"}};e .EncodeElement (_f .Ext ,_gf );if _f .Choice !=nil {_f .Choice .MarshalXML (e ,_a .StartElement {});};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewCT_GraphicFrame ()*CT_GraphicFrame {_abc :=&CT_GraphicFrame {};_abc .NvGraphicFramePr =NewCT_GraphicFrameNonVisual ();_abc .Xfrm =_g .NewCT_Transform2D ();_abc .Graphic =_g .NewGraphic ();return _abc ;};func NewCT_GroupShapeChoice ()*CT_GroupShapeChoice {_gg :=&CT_GroupShapeChoice {};return _gg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_Picture and its children, prefixing error messages with path
|
|
|
|
func (_bge *CT_Picture )ValidateWithPath (path string )error {if _cgb :=_bge .NvPicPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0050\u0069\u0063\u0050\u0072");_cgb !=nil {return _cgb ;};if _aabg :=_bge .BlipFill .ValidateWithPath (path +"\u002fB\u006c\u0069\u0070\u0046\u0069\u006cl");_aabg !=nil {return _aabg ;};if _cad :=_bge .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_cad !=nil {return _cad ;};if _bge .Style !=nil {if _ega :=_bge .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_ega !=nil {return _ega ;};};return nil ;};func (_afed *CT_ShapeNonVisual )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_afed .CNvPr =_g .NewCT_NonVisualDrawingProps ();_afed .CNvSpPr =_g .NewCT_NonVisualDrawingShapeProps ();_fdfc :for {_ffg ,_dgab :=d .Token ();if _dgab !=nil {return _dgab ;};switch _fae :=_ffg .(type ){case _a .StartElement :switch _fae .Name {case _a .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 _efg :=d .DecodeElement (_afed .CNvPr ,&_fae );_efg !=nil {return _efg ;};case _a .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 _cac :=d .DecodeElement (_afed .CNvSpPr ,&_fae );_cac !=nil {return _cac ;};default:_cc .Log ("\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",_fae .Name );if _ffbe :=d .Skip ();_ffbe !=nil {return _ffbe ;};};case _a .EndElement :break _fdfc ;case _a .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_ShapeNonVisual and its children
|
|
|
|
func (_fbfa *CT_ShapeNonVisual )Validate ()error {return _fbfa .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056i\u0073\u0075\u0061\u006c");};func (_fecc *CT_PictureNonVisual )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_fecc .CNvPr =_g .NewCT_NonVisualDrawingProps ();_fecc .CNvPicPr =_g .NewCT_NonVisualPictureProperties ();_aagd :for {_gaf ,_bgb :=d .Token ();if _bgb !=nil {return _bgb ;};switch _cfg :=_gaf .(type ){case _a .StartElement :switch _cfg .Name {case _a .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 _bfg :=d .DecodeElement (_fecc .CNvPr ,&_cfg );_bfg !=nil {return _bfg ;};case _a .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 _dbf :=d .DecodeElement (_fecc .CNvPicPr ,&_cfg );_dbf !=nil {return _dbf ;};default:_cc .Log ("\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",_cfg .Name );if _decb :=d .Skip ();_decb !=nil {return _decb ;};};case _a .EndElement :break _aagd ;case _a .CharData :};};return nil ;};func (_dbe *CT_GraphicFrame )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_dbe .NvGraphicFramePr =NewCT_GraphicFrameNonVisual ();_dbe .Xfrm =_g .NewCT_Transform2D ();_dbe .Graphic =_g .NewGraphic ();for _ ,_fdb :=range start .Attr {if _fdb .Name .Local =="\u006d\u0061\u0063r\u006f"{_ac ,_dcf :=_fdb .Value ,error (nil );if _dcf !=nil {return _dcf ;};_dbe .MacroAttr =&_ac ;continue ;};if _fdb .Name .Local =="\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"{_efa ,_gdf :=_d .ParseBool (_fdb .Value );if _gdf !=nil {return _gdf ;};_dbe .FPublishedAttr =&_efa ;continue ;};};_bcc :for {_acf ,_ee :=d .Token ();if _ee !=nil {return _ee ;};switch _eea :=_acf .(type ){case _a .StartElement :switch _eea .Name {case _a .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 _edd :=d .DecodeElement (_dbe .NvGraphicFramePr ,&_eea );_edd !=nil {return _edd ;};case _a .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 _cea :=d .DecodeElement (_dbe .Xfrm ,&_eea );_cea !=nil {return _cea ;};case _a .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\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-07-30 17:03:26 +00:00
|
|
|
// Validate validates the CT_Connector and its children
|
2021-08-23 20:44:48 +00:00
|
|
|
func (_fgg *CT_Connector )Validate ()error {return _fgg .ValidateWithPath ("\u0043\u0054\u005fC\u006f\u006e\u006e\u0065\u0063\u0074\u006f\u0072");};func (_ebb *CT_GroupShapeNonVisual )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {e .EncodeToken (start );_dcc :=_a .StartElement {Name :_a .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_ebb .CNvPr ,_dcc );_eee :=_a .StartElement {Name :_a .Name {Local :"\u0063\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072"}};e .EncodeElement (_ebb .CNvGrpSpPr ,_eee );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type CT_GraphicFrame struct{MacroAttr *string ;FPublishedAttr *bool ;NvGraphicFramePr *CT_GraphicFrameNonVisual ;Xfrm *_g .CT_Transform2D ;Graphic *_g .Graphic ;};func NewCT_Marker ()*CT_Marker {_cag :=&CT_Marker {};_cag .X =0.0;_cag .Y =0.0;return _cag };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_GroupShape and its children, prefixing error messages with path
|
|
|
|
func (_aeaf *CT_GroupShape )ValidateWithPath (path string )error {if _bbgc :=_aeaf .NvGrpSpPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_bbgc !=nil {return _bbgc ;};if _abdb :=_aeaf .GrpSpPr .ValidateWithPath (path +"\u002f\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_abdb !=nil {return _abdb ;};for _ebde ,_dga :=range _aeaf .Choice {if _eec :=_dga .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0043\u0068\u006f\u0069\u0063\u0065\u005b\u0025\u0064\u005d",path ,_ebde ));_eec !=nil {return _eec ;};};return nil ;};func NewCT_Drawing ()*CT_Drawing {_egf :=&CT_Drawing {};return _egf };func (_ddf *CT_GroupShapeNonVisual )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ddf .CNvPr =_g .NewCT_NonVisualDrawingProps ();_ddf .CNvGrpSpPr =_g .NewCT_NonVisualGroupDrawingShapeProps ();_ade :for {_agea ,_gfe :=d .Token ();if _gfe !=nil {return _gfe ;};switch _edbe :=_agea .(type ){case _a .StartElement :switch _edbe .Name {case _a .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 _dgb :=d .DecodeElement (_ddf .CNvPr ,&_edbe );_dgb !=nil {return _dgb ;};case _a .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 _fc :=d .DecodeElement (_ddf .CNvGrpSpPr ,&_edbe );_fc !=nil {return _fc ;};default:_cc .Log ("\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",_edbe .Name );if _dcfe :=d .Skip ();_dcfe !=nil {return _dcfe ;};};case _a .EndElement :break _ade ;case _a .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_GraphicFrameNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_ca *CT_GraphicFrameNonVisual )ValidateWithPath (path string )error {if _aab :=_ca .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_aab !=nil {return _aab ;};if _egc :=_ca .CNvGraphicFramePr .ValidateWithPath (path +"\u002fC\u004ev\u0047\u0072\u0061\u0070\u0068i\u0063\u0046r\u0061\u006d\u0065\u0050\u0072");_egc !=nil {return _egc ;};return nil ;};func (_cgf *CT_GroupShape )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_cgf .NvGrpSpPr =NewCT_GroupShapeNonVisual ();_cgf .GrpSpPr =_g .NewCT_GroupShapeProperties ();_cfe :for {_faf ,_fdf :=d .Token ();if _fdf !=nil {return _fdf ;};switch _afgc :=_faf .(type ){case _a .StartElement :switch _afgc .Name {case _a .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 _gfc :=d .DecodeElement (_cgf .NvGrpSpPr ,&_afgc );_gfc !=nil {return _gfc ;};case _a .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 :"\u0067r\u0070\u0053\u0070\u0050\u0072"}:if _dde :=d .DecodeElement (_cgf .GrpSpPr ,&_afgc );_dde !=nil {return _dde ;};case _a .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"}:_ece :=NewCT_GroupShapeChoice ();if _abbb :=d .DecodeElement (&_ece .Sp ,&_afgc );_abbb !=nil {return _abbb ;};_cgf .Choice =append (_cgf .Choice ,_ece );case _a .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"}:_bd :=NewCT_GroupShapeChoice ();if _fbf :=d .DecodeElement (&_bd .GrpSp ,&_afgc );_fbf !=nil {return _fbf ;};_cgf .Choice =append (_cgf .Choice ,_bd );case _a .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"}:_aggg :=NewCT_GroupShapeChoice ();if _ebf :=d .DecodeElement (&_aggg .GraphicFrame ,&_afgc );_ebf !=nil {return _ebf ;};_cgf .Choice =append (_cgf .Choice ,_aggg );case _a .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"}:_debf :=NewCT_GroupShapeChoice ();if _ebd :=d .DecodeElement (&_debf .CxnSp ,&_afgc );_ebd !=nil {return _ebd ;};_cgf .Choice =append (_cgf .Choice ,_debf );case _a .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_GroupShapeChoice and its children
|
|
|
|
func (_dbc *CT_GroupShapeChoice )Validate ()error {return _dbc .ValidateWithPath ("\u0043\u0054\u005f\u0047ro\u0075\u0070\u0053\u0068\u0061\u0070\u0065\u0043\u0068\u006f\u0069\u0063\u0065");};
|
|
|
|
|
|
|
|
// Validate validates the EG_Anchor and its children
|
|
|
|
func (_cdf *EG_Anchor )Validate ()error {return _cdf .ValidateWithPath ("\u0045G\u005f\u0041\u006e\u0063\u0068\u006fr");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-07-30 17:03:26 +00:00
|
|
|
// ValidateWithPath validates the CT_GroupShapeChoice and its children, prefixing error messages with path
|
2021-08-23 20:44:48 +00:00
|
|
|
func (_cae *CT_GroupShapeChoice )ValidateWithPath (path string )error {for _ggg ,_ada :=range _cae .Sp {if _gdfc :=_ada .ValidateWithPath (_e .Sprintf ("\u0025s\u002f\u0053\u0070\u005b\u0025\u0064]",path ,_ggg ));_gdfc !=nil {return _gdfc ;};};for _ede ,_gba :=range _cae .GrpSp {if _feg :=_gba .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fG\u0072\u0070\u0053\u0070\u005b\u0025\u0064\u005d",path ,_ede ));_feg !=nil {return _feg ;};};for _ccfa ,_ebgb :=range _cae .GraphicFrame {if _gfa :=_ebgb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0047ra\u0070\u0068\u0069\u0063\u0046\u0072\u0061\u006d\u0065\u005b\u0025\u0064\u005d",path ,_ccfa ));_gfa !=nil {return _gfa ;};};for _fec ,_acfe :=range _cae .CxnSp {if _dbgd :=_acfe .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fC\u0078\u006e\u0053\u0070\u005b\u0025\u0064\u005d",path ,_fec ));_dbgd !=nil {return _dbgd ;};};for _aff ,_dge :=range _cae .Pic {if _cce :=_dge .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0050\u0069\u0063\u005b\u0025\u0064\u005d",path ,_aff ));_cce !=nil {return _cce ;};};return nil ;};func (_dfc *CT_Picture )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _dfc .MacroAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006d\u0061\u0063r\u006f"},Value :_e .Sprintf ("\u0025\u0076",*_dfc .MacroAttr )});};if _dfc .FPublishedAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"},Value :_e .Sprintf ("\u0025\u0064",_dgd (*_dfc .FPublishedAttr ))});};e .EncodeToken (start );_fbfc :=_a .StartElement {Name :_a .Name {Local :"\u006ev\u0050\u0069\u0063\u0050\u0072"}};e .EncodeElement (_dfc .NvPicPr ,_fbfc );_bca :=_a .StartElement {Name :_a .Name {Local :"\u0062\u006c\u0069\u0070\u0046\u0069\u006c\u006c"}};e .EncodeElement (_dfc .BlipFill ,_bca );_aeb :=_a .StartElement {Name :_a .Name {Local :"\u0073\u0070\u0050\u0072"}};e .EncodeElement (_dfc .SpPr ,_aeb );if _dfc .Style !=nil {_gff :=_a .StartElement {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"}};e .EncodeElement (_dfc .Style ,_gff );};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewEG_Anchor ()*EG_Anchor {_fgf :=&EG_Anchor {};return _fgf };func (_dae *CT_Marker )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {e .EncodeToken (start );_afge :=_a .StartElement {Name :_a .Name {Local :"\u0078"}};e .EncodeElement (_dae .X ,_afge );_abg :=_a .StartElement {Name :_a .Name {Local :"\u0079"}};e .EncodeElement (_dae .Y ,_abg );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_ae *CT_AbsSizeAnchor )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ae .From =NewCT_Marker ();_ae .Ext =_g .NewCT_PositiveSize2D ();_ad :for {_age ,_cb :=d .Token ();if _cb !=nil {return _cb ;};switch _aa :=_age .(type ){case _a .StartElement :switch _aa .Name {case _a .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 _ccf :=d .DecodeElement (_ae .From ,&_aa );_ccf !=nil {return _ccf ;};case _a .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 _eg :=d .DecodeElement (_ae .Ext ,&_aa );_eg !=nil {return _eg ;};case _a .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
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_GraphicFrame and its children, prefixing error messages with path
|
|
|
|
func (_fb *CT_GraphicFrame )ValidateWithPath (path string )error {if _bfa :=_fb .NvGraphicFramePr .ValidateWithPath (path +"\u002f\u004e\u0076\u0047\u0072\u0061\u0070\u0068\u0069\u0063\u0046\u0072a\u006d\u0065\u0050\u0072");_bfa !=nil {return _bfa ;};if _ged :=_fb .Xfrm .ValidateWithPath (path +"\u002f\u0058\u0066r\u006d");_ged !=nil {return _ged ;};if _eeac :=_fb .Graphic .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0070\u0068\u0069\u0063");_eeac !=nil {return _eeac ;};return nil ;};func (_ebc *CT_Drawing )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Name .Local ="\u0043\u0054\u005f\u0044\u0072\u0061\u0077\u0069\u006e\u0067";e .EncodeToken (start );if _ebc .EG_Anchor !=nil {for _ ,_gag :=range _ebc .EG_Anchor {_gag .MarshalXML (e ,_a .StartElement {});};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_ConnectorNonVisual and its children
|
|
|
|
func (_gde *CT_ConnectorNonVisual )Validate ()error {return _gde .ValidateWithPath ("C\u0054\u005f\u0043\u006fnn\u0065c\u0074\u006f\u0072\u004e\u006fn\u0056\u0069\u0073\u0075\u0061\u006c");};func NewCT_ShapeNonVisual ()*CT_ShapeNonVisual {_ceae :=&CT_ShapeNonVisual {};_ceae .CNvPr =_g .NewCT_NonVisualDrawingProps ();_ceae .CNvSpPr =_g .NewCT_NonVisualDrawingShapeProps ();return _ceae ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_RelSizeAnchor and its children, prefixing error messages with path
|
|
|
|
func (_ffe *CT_RelSizeAnchor )ValidateWithPath (path string )error {if _efcd :=_ffe .From .ValidateWithPath (path +"\u002f\u0046\u0072o\u006d");_efcd !=nil {return _efcd ;};if _acc :=_ffe .To .ValidateWithPath (path +"\u002f\u0054\u006f");_acc !=nil {return _acc ;};if _ffe .Choice !=nil {if _ccg :=_ffe .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_ccg !=nil {return _ccg ;};};return nil ;};type CT_Connector struct{MacroAttr *string ;FPublishedAttr *bool ;NvCxnSpPr *CT_ConnectorNonVisual ;SpPr *_g .CT_ShapeProperties ;Style *_g .CT_ShapeStyle ;};func (_eeb *CT_Shape )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _eeb .MacroAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u006d\u0061\u0063r\u006f"},Value :_e .Sprintf ("\u0025\u0076",*_eeb .MacroAttr )});};if _eeb .TextlinkAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0074\u0065\u0078\u0074\u006c\u0069\u006e\u006b"},Value :_e .Sprintf ("\u0025\u0076",*_eeb .TextlinkAttr )});};if _eeb .FLocksTextAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066\u004c\u006f\u0063\u006b\u0073\u0054\u0065\u0078\u0074"},Value :_e .Sprintf ("\u0025\u0064",_dgd (*_eeb .FLocksTextAttr ))});};if _eeb .FPublishedAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0066\u0050\u0075\u0062\u006c\u0069\u0073\u0068\u0065\u0064"},Value :_e .Sprintf ("\u0025\u0064",_dgd (*_eeb .FPublishedAttr ))});};e .EncodeToken (start );_ceaa :=_a .StartElement {Name :_a .Name {Local :"\u006e\u0076\u0053\u0070\u0050\u0072"}};e .EncodeElement (_eeb .NvSpPr ,_ceaa );_gcc :=_a .StartElement {Name :_a .Name {Local :"\u0073\u0070\u0050\u0072"}};e .EncodeElement (_eeb .SpPr ,_gcc );if _eeb .Style !=nil {_gfeg :=_a .StartElement {Name :_a .Name {Local :"\u0073\u0074\u0079l\u0065"}};e .EncodeElement (_eeb .Style ,_gfeg );};if _eeb .TxBody !=nil {_aed :=_a .StartElement {Name :_a .Name {Local :"\u0074\u0078\u0042\u006f\u0064\u0079"}};e .EncodeElement (_eeb .TxBody ,_aed );};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func (_fgga *CT_ConnectorNonVisual )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {e .EncodeToken (start );_cef :=_a .StartElement {Name :_a .Name {Local :"\u0063\u004e\u0076P\u0072"}};e .EncodeElement (_fgga .CNvPr ,_cef );_fggd :=_a .StartElement {Name :_a .Name {Local :"\u0063\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072"}};e .EncodeElement (_fgga .CNvCxnSpPr ,_fggd );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type EG_Anchor struct{RelSizeAnchor *CT_RelSizeAnchor ;AbsSizeAnchor *CT_AbsSizeAnchor ;};func (_cfddg *EG_ObjectChoices )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_abbe :for {_agec ,_gdd :=d .Token ();if _gdd !=nil {return _gdd ;};switch _ceg :=_agec .(type ){case _a .StartElement :switch _ceg .Name {case _a .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"}:_cfddg .Choice =NewEG_ObjectChoicesChoice ();if _agfb :=d .DecodeElement (&_cfddg .Choice .Sp ,&_ceg );_agfb !=nil {return _agfb ;};case _a .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"}:_cfddg .Choice =NewEG_ObjectChoicesChoice ();if _gfcf :=d .DecodeElement (&_cfddg .Choice .GrpSp ,&_ceg );_gfcf !=nil {return _gfcf ;};case _a .Name {Space :"h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_PictureNonVisual and its children
|
|
|
|
func (_ecfc *CT_PictureNonVisual )Validate ()error {return _ecfc .ValidateWithPath ("\u0043\u0054\u005f\u0050ic\u0074\u0075\u0072\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c");};func NewCT_AbsSizeAnchor ()*CT_AbsSizeAnchor {_ag :=&CT_AbsSizeAnchor {};_ag .From =NewCT_Marker ();_ag .Ext =_g .NewCT_PositiveSize2D ();return _ag ;};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_GroupShapeNonVisual and its children
|
|
|
|
func (_eecf *CT_GroupShapeNonVisual )Validate ()error {return _eecf .ValidateWithPath ("\u0043\u0054\u005f\u0047ro\u0075\u0070\u0053\u0068\u0061\u0070\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075a\u006c");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_Picture and its children
|
|
|
|
func (_gbb *CT_Picture )Validate ()error {return _gbb .ValidateWithPath ("\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");};type EG_ObjectChoices struct{Choice *EG_ObjectChoicesChoice ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_ShapeNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_aee *CT_ShapeNonVisual )ValidateWithPath (path string )error {if _accc :=_aee .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_accc !=nil {return _accc ;};if _gcbc :=_aee .CNvSpPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0053\u0070\u0050\u0072");_gcbc !=nil {return _gcbc ;};return nil ;};func (_caed *EG_Anchor )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_adaa :for {_aca ,_ecc :=d .Token ();if _ecc !=nil {return _ecc ;};switch _cefg :=_aca .(type ){case _a .StartElement :switch _cefg .Name {case _a .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"}:_caed .RelSizeAnchor =NewCT_RelSizeAnchor ();if _fdee :=d .DecodeElement (_caed .RelSizeAnchor ,&_cefg );_fdee !=nil {return _fdee ;};case _a .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"}:_caed .AbsSizeAnchor =NewCT_AbsSizeAnchor ();if _ffgd :=d .DecodeElement (_caed .AbsSizeAnchor ,&_cefg );_ffgd !=nil {return _ffgd ;};default:_cc .Log ("\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",_cefg .Name );if _bdd :=d .Skip ();_bdd !=nil {return _bdd ;};};case _a .EndElement :break _adaa ;case _a .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the EG_ObjectChoices and its children
|
|
|
|
func (_bbf *EG_ObjectChoices )Validate ()error {return _bbf .ValidateWithPath ("\u0045\u0047_\u004f\u0062\u006ae\u0063\u0074\u0043\u0068\u006f\u0069\u0063\u0065\u0073");};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_GroupShapeNonVisual and its children, prefixing error messages with path
|
|
|
|
func (_bdb *CT_GroupShapeNonVisual )ValidateWithPath (path string )error {if _eggc :=_bdb .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_eggc !=nil {return _eggc ;};if _fad :=_bdb .CNvGrpSpPr .ValidateWithPath (path +"/\u0043\u004e\u0076\u0047\u0072\u0070\u0053\u0070\u0050\u0072");_fad !=nil {return _fad ;};return nil ;};type CT_Picture struct{MacroAttr *string ;FPublishedAttr *bool ;NvPicPr *CT_PictureNonVisual ;BlipFill *_g .CT_BlipFillProperties ;SpPr *_g .CT_ShapeProperties ;Style *_g .CT_ShapeStyle ;};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the EG_ObjectChoices and its children, prefixing error messages with path
|
|
|
|
func (_bfgc *EG_ObjectChoices )ValidateWithPath (path string )error {if _bfgc .Choice !=nil {if _eece :=_bfgc .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_eece !=nil {return _eece ;};};return nil ;};func (_dbcb *CT_RelSizeAnchor )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {e .EncodeToken (start );_aceg :=_a .StartElement {Name :_a .Name {Local :"\u0066\u0072\u006f\u006d"}};e .EncodeElement (_dbcb .From ,_aceg );_dee :=_a .StartElement {Name :_a .Name {Local :"\u0074\u006f"}};e .EncodeElement (_dbcb .To ,_dee );if _dbcb .Choice !=nil {_dbcb .Choice .MarshalXML (e ,_a .StartElement {});};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// Validate validates the CT_RelSizeAnchor and its children
|
|
|
|
func (_bfed *CT_RelSizeAnchor )Validate ()error {return _bfed .ValidateWithPath ("\u0043\u0054_\u0052\u0065\u006cS\u0069\u007a\u0065\u0041\u006e\u0063\u0068\u006f\u0072");};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_Marker and its children, prefixing error messages with path
|
|
|
|
func (_eabb *CT_Marker )ValidateWithPath (path string )error {if _eabb .X < 0.0{return _e .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 ,_eabb .X );};if _eabb .X > 1.0{return _e .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 ,_eabb .X );};if _eabb .Y < 0.0{return _e .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 ,_eabb .Y );};if _eabb .Y > 1.0{return _e .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 ,_eabb .Y );};return nil ;};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_Connector and its children, prefixing error messages with path
|
|
|
|
func (_be *CT_Connector )ValidateWithPath (path string )error {if _aef :=_be .NvCxnSpPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0043\u0078\u006e\u0053\u0070\u0050\u0072");_aef !=nil {return _aef ;};if _fgb :=_be .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_fgb !=nil {return _fgb ;};if _be .Style !=nil {if _egg :=_be .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_egg !=nil {return _egg ;};};return nil ;};func _dgd (_ebgg bool )uint8 {if _ebgg {return 1;};return 0;};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-08-23 20:44:48 +00:00
|
|
|
// ValidateWithPath validates the CT_Shape and its children, prefixing error messages with path
|
|
|
|
func (_cadf *CT_Shape )ValidateWithPath (path string )error {if _decd :=_cadf .NvSpPr .ValidateWithPath (path +"\u002fN\u0076\u0053\u0070\u0050\u0072");_decd !=nil {return _decd ;};if _afb :=_cadf .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_afb !=nil {return _afb ;};if _cadf .Style !=nil {if _ddag :=_cadf .Style .ValidateWithPath (path +"\u002f\u0053\u0074\u0079\u006c\u0065");_ddag !=nil {return _ddag ;};};if _cadf .TxBody !=nil {if _gcd :=_cadf .TxBody .ValidateWithPath (path +"\u002fT\u0078\u0042\u006f\u0064\u0079");_gcd !=nil {return _gcd ;};};return nil ;};func (_cga *CT_Drawing )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ceff :for {_gb ,_gfgg :=d .Token ();if _gfgg !=nil {return _gfgg ;};switch _ab :=_gb .(type ){case _a .StartElement :switch _ab .Name {case _a .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"}:_cf :=NewEG_Anchor ();_cf .RelSizeAnchor =NewCT_RelSizeAnchor ();if _aag :=d .DecodeElement (_cf .RelSizeAnchor ,&_ab );_aag !=nil {return _aag ;};_cga .EG_Anchor =append (_cga .EG_Anchor ,_cf );case _a .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"}:_fef :=NewEG_Anchor ();_fef .AbsSizeAnchor =NewCT_AbsSizeAnchor ();if _edb :=d .DecodeElement (_fef .AbsSizeAnchor ,&_ab );_edb !=nil {return _edb ;};_cga .EG_Anchor =append (_cga .EG_Anchor ,_fef );default:_cc .Log ("\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",_ab .Name );if _bec :=d .Skip ();_bec !=nil {return _bec ;};};case _a .EndElement :break _ceff ;case _a .CharData :};};return nil ;};func init (){_cc .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 );_cc .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 );_cc .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 );_cc .RegisterConstructor ("h\u0074\u0074\u0070\u003a\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u
|