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 picture ;import (_ec "encoding/xml";_b "github.com/unidoc/unioffice";_f "github.com/unidoc/unioffice/schema/soo/dml";);
|
2021-07-30 17:03:26 +00:00
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_PictureNonVisual and its children, prefixing error messages with path
|
2021-08-23 20:44:48 +00:00
|
|
|
func (_ged *CT_PictureNonVisual )ValidateWithPath (path string )error {if _bb :=_ged .CNvPr .ValidateWithPath (path +"\u002f\u0043\u004e\u0076\u0050\u0072");_bb !=nil {return _bb ;};if _gc :=_ged .CNvPicPr .ValidateWithPath (path +"\u002fC\u004e\u0076\u0050\u0069\u0063\u0050r");_gc !=nil {return _gc ;};return nil ;};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2021-07-30 17:03:26 +00:00
|
|
|
// ValidateWithPath validates the CT_Picture and its children, prefixing error messages with path
|
2021-08-23 20:44:48 +00:00
|
|
|
func (_ece *CT_Picture )ValidateWithPath (path string )error {if _fdb :=_ece .NvPicPr .ValidateWithPath (path +"\u002f\u004e\u0076\u0050\u0069\u0063\u0050\u0072");_fdb !=nil {return _fdb ;};if _ad :=_ece .BlipFill .ValidateWithPath (path +"\u002fB\u006c\u0069\u0070\u0046\u0069\u006cl");_ad !=nil {return _ad ;};if _cf :=_ece .SpPr .ValidateWithPath (path +"\u002f\u0053\u0070P\u0072");_cf !=nil {return _cf ;};return nil ;};
|
|
|
|
|
|
|
|
// Validate validates the CT_PictureNonVisual and its children
|
|
|
|
func (_bf *CT_PictureNonVisual )Validate ()error {return _bf .ValidateWithPath ("\u0043\u0054\u005f\u0050ic\u0074\u0075\u0072\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c");};func (_fb *CT_PictureNonVisual )MarshalXML (e *_ec .Encoder ,start _ec .StartElement )error {e .EncodeToken (start );_bg :=_ec .StartElement {Name :_ec .Name {Local :"\u0070i\u0063\u003a\u0063\u004e\u0076\u0050r"}};e .EncodeElement (_fb .CNvPr ,_bg );_df :=_ec .StartElement {Name :_ec .Name {Local :"\u0070\u0069\u0063:\u0063\u004e\u0076\u0050\u0069\u0063\u0050\u0072"}};e .EncodeElement (_fb .CNvPicPr ,_df );e .EncodeToken (_ec .EndElement {Name :start .Name });return nil ;};func NewPic ()*Pic {_ca :=&Pic {};_ca .CT_Picture =*NewCT_Picture ();return _ca };type CT_Picture struct{NvPicPr *CT_PictureNonVisual ;BlipFill *_f .CT_BlipFillProperties ;SpPr *_f .CT_ShapeProperties ;};
|
2021-07-30 17:03:26 +00:00
|
|
|
|
|
|
|
// Validate validates the Pic and its children
|
2021-08-23 20:44:48 +00:00
|
|
|
func (_acg *Pic )Validate ()error {return _acg .ValidateWithPath ("\u0050\u0069\u0063")};func (_ga *CT_Picture )UnmarshalXML (d *_ec .Decoder ,start _ec .StartElement )error {_ga .NvPicPr =NewCT_PictureNonVisual ();_ga .BlipFill =_f .NewCT_BlipFillProperties ();_ga .SpPr =_f .NewCT_ShapeProperties ();_fd :for {_be ,_dd :=d .Token ();if _dd !=nil {return _dd ;};switch _ed :=_be .(type ){case _ec .StartElement :switch _ed .Name {case _ec .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065",Local :"\u006ev\u0050\u0069\u0063\u0050\u0072"},_ec .Name {Space :"\u0068t\u0074\u0070:\u002f\u002f\u0070\u0075r\u006c\u002e\u006fc\u006c\u0063\u002e\u006f\u0072\u0067\u002f\u006f\u006fxm\u006c\u002f\u0064r\u0061\u0077i\u006e\u0067\u006d\u006c\u002f\u0070i\u0063\u0074u\u0072\u0065",Local :"\u006ev\u0050\u0069\u0063\u0050\u0072"}:if _beb :=d .DecodeElement (_ga .NvPicPr ,&_ed );_beb !=nil {return _beb ;};case _ec .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065",Local :"\u0062\u006c\u0069\u0070\u0046\u0069\u006c\u006c"},_ec .Name {Space :"\u0068t\u0074\u0070:\u002f\u002f\u0070\u0075r\u006c\u002e\u006fc\u006c\u0063\u002e\u006f\u0072\u0067\u002f\u006f\u006fxm\u006c\u002f\u0064r\u0061\u0077i\u006e\u0067\u006d\u006c\u002f\u0070i\u0063\u0074u\u0072\u0065",Local :"\u0062\u006c\u0069\u0070\u0046\u0069\u006c\u006c"}:if _eg :=d .DecodeElement (_ga .BlipFill ,&_ed );_eg !=nil {return _eg ;};case _ec .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065",Local :"\u0073\u0070\u0050\u0072"},_ec .Name {Space :"\u0068t\u0074\u0070:\u002f\u002f\u0070\u0075r\u006c\u002e\u006fc\u006c\u0063\u002e\u006f\u0072\u0067\u002f\u006f\u006fxm\u006c\u002f\u0064r\u0061\u0077i\u006e\u0067\u006d\u006c\u002f\u0070i\u0063\u0074u\u0072\u0065",Local :"\u0073\u0070\u0050\u0072"}:if _fc :=d .DecodeElement (_ga .SpPr ,&_ed );_fc !=nil {return _fc ;};default:_b .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\u005fP\u0069\u0063\u0074\u0075\u0072\u0065\u0020\u0025\u0076",_ed .Name );if _ge :=d .Skip ();_ge !=nil {return _ge ;};};case _ec .EndElement :break _fd ;case _ec .CharData :};};return nil ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
|
|
|
// Validate validates the CT_Picture and its children
|
2021-08-23 20:44:48 +00:00
|
|
|
func (_cc *CT_Picture )Validate ()error {return _cc .ValidateWithPath ("\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");};func (_ac *Pic )UnmarshalXML (d *_ec .Decoder ,start _ec .StartElement )error {_ac .CT_Picture =*NewCT_Picture ();_eb :for {_aa ,_eda :=d .Token ();if _eda !=nil {return _eda ;};switch _db :=_aa .(type ){case _ec .StartElement :switch _db .Name {case _ec .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065",Local :"\u006ev\u0050\u0069\u0063\u0050\u0072"},_ec .Name {Space :"\u0068t\u0074\u0070:\u002f\u002f\u0070\u0075r\u006c\u002e\u006fc\u006c\u0063\u002e\u006f\u0072\u0067\u002f\u006f\u006fxm\u006c\u002f\u0064r\u0061\u0077i\u006e\u0067\u006d\u006c\u002f\u0070i\u0063\u0074u\u0072\u0065",Local :"\u006ev\u0050\u0069\u0063\u0050\u0072"}:if _gg :=d .DecodeElement (_ac .NvPicPr ,&_db );_gg !=nil {return _gg ;};case _ec .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065",Local :"\u0062\u006c\u0069\u0070\u0046\u0069\u006c\u006c"},_ec .Name {Space :"\u0068t\u0074\u0070:\u002f\u002f\u0070\u0075r\u006c\u002e\u006fc\u006c\u0063\u002e\u006f\u0072\u0067\u002f\u006f\u006fxm\u006c\u002f\u0064r\u0061\u0077i\u006e\u0067\u006d\u006c\u002f\u0070i\u0063\u0074u\u0072\u0065",Local :"\u0062\u006c\u0069\u0070\u0046\u0069\u006c\u006c"}:if _fdcd :=d .DecodeElement (_ac .BlipFill ,&_db );_fdcd !=nil {return _fdcd ;};case _ec .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065",Local :"\u0073\u0070\u0050\u0072"},_ec .Name {Space :"\u0068t\u0074\u0070:\u002f\u002f\u0070\u0075r\u006c\u002e\u006fc\u006c\u0063\u002e\u006f\u0072\u0067\u002f\u006f\u006fxm\u006c\u002f\u0064r\u0061\u0077i\u006e\u0067\u006d\u006c\u002f\u0070i\u0063\u0074u\u0072\u0065",Local :"\u0073\u0070\u0050\u0072"}:if _af :=d .DecodeElement (_ac .SpPr ,&_db );_af !=nil {return _af ;};default:_b .Log ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065m\u0065\u006e\u0074\u0020\u006fn\u0020\u0050i\u0063\u0020\u0025\u0076",_db .Name );if _edg :=d .Skip ();_edg !=nil {return _edg ;};};case _ec .EndElement :break _eb ;case _ec .CharData :};};return nil ;};type CT_PictureNonVisual struct{CNvPr *_f .CT_NonVisualDrawingProps ;CNvPicPr *_f .CT_NonVisualPictureProperties ;};func (_g *CT_Picture )MarshalXML (e *_ec .Encoder ,start _ec .StartElement )error {e .EncodeToken (start );_a :=_ec .StartElement {Name :_ec .Name {Local :"p\u0069\u0063\u003a\u006e\u0076\u0050\u0069\u0063\u0050\u0072"}};e .EncodeElement (_g .NvPicPr ,_a );_c :=_ec .StartElement {Name :_ec .Name {Local :"\u0070\u0069\u0063:\u0062\u006c\u0069\u0070\u0046\u0069\u006c\u006c"}};e .EncodeElement (_g .BlipFill ,_c );_cd :=_ec .StartElement {Name :_ec .Name {Local :"\u0070\u0069\u0063\u003a\u0073\u0070\u0050\u0072"}};e .EncodeElement (_g .SpPr ,_cd );e .EncodeToken (_ec .EndElement {Name :start .Name });return nil ;};func NewCT_Picture ()*CT_Picture {_d :=&CT_Picture {};_d .NvPicPr =NewCT_PictureNonVisual ();_d .BlipFill =_f .NewCT_BlipFillProperties ();_d .SpPr =_f .NewCT_ShapeProperties ();return _d ;};func (_fea *Pic )MarshalXML (e *_ec .Encoder ,start _ec .StartElement )error {start .Attr =append (start .Attr ,_ec .Attr {Name :_ec .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0068\u0074\u0074\u0070\u003
|
|
|
|
|
|
|
|
// ValidateWithPath validates the Pic and its children, prefixing error messages with path
|
|
|
|
func (_fa *Pic )ValidateWithPath (path string )error {if _adf :=_fa .CT_Picture .ValidateWithPath (path );_adf !=nil {return _adf ;};return nil ;};func init (){_b .RegisterConstructor ("\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065","\u0043\u0054\u005f\u0050ic\u0074\u0075\u0072\u0065\u004e\u006f\u006e\u0056\u0069\u0073\u0075\u0061\u006c",NewCT_PictureNonVisual );_b .RegisterConstructor ("\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065","\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065",NewCT_Picture );_b .RegisterConstructor ("\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068e\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006frg\u002f\u0064\u0072\u0061\u0077\u0069\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u0030\u0036\u002f\u0070\u0069\u0063\u0074\u0075\u0072\u0065","\u0070\u0069\u0063",NewPic );};
|