48 lines
27 KiB
Go
Raw Normal View History

2021-03-16 20:51:18 +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-06-16 07:10:52 +00:00
package activeX ;import (_f "encoding/xml";_d "fmt";_g "github.com/unidoc/unioffice";);func (_eg *CT_OcxPr )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0061x\u003a\u006e\u0061\u006d\u0065"},Value :_d .Sprintf ("\u0025\u0076",_eg .NameAttr )});if _eg .ValueAttr !=nil {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0061\u0078\u003a\u0076\u0061\u006c\u0075\u0065"},Value :_d .Sprintf ("\u0025\u0076",*_eg .ValueAttr )});};e .EncodeToken (start );if _eg .Choice !=nil {_eg .Choice .MarshalXML (e ,_f .StartElement {});};e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_gcdg ST_Persistence )ValidateWithPath (path string )error {switch _gcdg {case 0,1,2,3,4:default:return _d .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_gcdg ));};return nil ;};type CT_Font struct{PersistenceAttr ST_Persistence ;IdAttr *string ;OcxPr []*CT_OcxPr ;};func (_gg *CT_Font )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for _ ,_aa :=range start .Attr {if _aa .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_aa .Name .Local =="\u0069\u0064"||_aa .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_aa .Name .Local =="\u0069\u0064"{_dd ,_ee :=_aa .Value ,error (nil );if _ee !=nil {return _ee ;};_gg .IdAttr =&_dd ;continue ;};if _aa .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_gg .PersistenceAttr .UnmarshalXMLAttr (_aa );continue ;};};_cb :for {_fbc ,_cd :=d .Token ();if _cd !=nil {return _cd ;};switch _ea :=_fbc .(type ){case _f .StartElement :switch _ea .Name {case _f .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058",Local :"\u006f\u0063\u0078P\u0072"}:_fa :=NewCT_OcxPr ();if _gd :=d .DecodeElement (_fa ,&_ea );_gd !=nil {return _gd ;};_gg .OcxPr =append (_gg .OcxPr ,_fa );default:_g .Log ("\u0073\u006b\u0069p\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043T\u005f\u0046\u006f\u006e\u0074\u0020\u0025\u0076",_ea .Name );if _ef :=d .Skip ();_ef !=nil {return _ef ;};};case _f .EndElement :break _cb ;case _f .CharData :};};return nil ;};func (_eea *CT_OcxPrChoice )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_dg :for {_cca ,_fca :=d .Token ();if _fca !=nil {return _fca ;};switch _de :=_cca .(type ){case _f .StartElement :switch _de .Name {case _f .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058",Local :"\u0066\u006f\u006e\u0074"}:_eea .Font =NewCT_Font ();if _eb :=d .DecodeElement (_eea .Font ,&_de );_eb !=nil {return _eb ;};case _f .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058",Local :"\u0070i\
2021-04-23 20:00:00 +00:00
2021-06-16 07:10:52 +00:00
// Validate validates the CT_OcxPr and its children
func (_ggb *CT_OcxPr )Validate ()error {return _ggb .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072");};
2021-04-23 20:00:00 +00:00
2021-06-16 07:10:52 +00:00
// ValidateWithPath validates the CT_OcxPrChoice and its children, prefixing error messages with path
func (_dc *CT_OcxPrChoice )ValidateWithPath (path string )error {if _dc .Font !=nil {if _db :=_dc .Font .ValidateWithPath (path +"\u002f\u0046\u006fn\u0074");_db !=nil {return _db ;};};if _dc .Picture !=nil {if _befd :=_dc .Picture .ValidateWithPath (path +"\u002f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");_befd !=nil {return _befd ;};};return nil ;};func NewOcx ()*Ocx {_fcbb :=&Ocx {};_fcbb .CT_Ocx =*NewCT_Ocx ();return _fcbb };func (_ggg *CT_Ocx )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0061\u0078\u003a\u0063\u006c\u0061\u0073\u0073\u0069\u0064"},Value :_d .Sprintf ("\u0025\u0076",_ggg .ClassidAttr )});if _ggg .LicenseAttr !=nil {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0061\u0078\u003a\u006c\u0069\u0063\u0065\u006e\u0073\u0065"},Value :_d .Sprintf ("\u0025\u0076",*_ggg .LicenseAttr )});};if _ggg .IdAttr !=nil {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_d .Sprintf ("\u0025\u0076",*_ggg .IdAttr )});};_ab ,_ba :=_ggg .PersistenceAttr .MarshalXMLAttr (_f .Name {Local :"\u0061\u0078\u003a\u0070\u0065\u0072\u0073\u0069\u0073t\u0065\u006e\u0063\u0065"});if _ba !=nil {return _ba ;};start .Attr =append (start .Attr ,_ab );e .EncodeToken (start );if _ggg .OcxPr !=nil {_cgd :=_f .StartElement {Name :_f .Name {Local :"\u0061\u0078\u003a\u006f\u0063\u0078\u0050\u0072"}};for _ ,_ac :=range _ggg .OcxPr {e .EncodeElement (_ac ,_cgd );};};e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func NewCT_Font ()*CT_Font {_ce :=&CT_Font {};return _ce };func (_bgc ST_Persistence )Validate ()error {return _bgc .ValidateWithPath ("")};func (_cfe ST_Persistence )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {return e .EncodeElement (_cfe .String (),start );};func (_afe *CT_Ocx )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_afe .PersistenceAttr =ST_Persistence (1);for _ ,_fbg :=range start .Attr {if _fbg .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_fbg .Name .Local =="\u0069\u0064"||_fbg .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_fbg .Name .Local =="\u0069\u0064"{_gb ,_cec :=_fbg .Value ,error (nil );if _cec !=nil {return _cec ;};_afe .IdAttr =&_gb ;continue ;};if _fbg .Name .Local =="\u0063l\u0061\u0073\u0073\u0069\u0064"{_cge ,_bca :=_fbg .Value ,error (nil );if _bca !=nil {return _bca ;};_afe .ClassidAttr =_cge ;continue ;};if _fbg .Name .Local =="\u006ci\u0063\u0065\u006e\u0073\u0065"{_ed ,_abc :=_fbg .Value ,error (nil );if _abc !=nil {return _abc ;};_afe .LicenseAttr =&_ed ;continue ;};if _fbg .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_afe .PersistenceAttr .UnmarshalXMLAttr (_fbg );continue ;};};_ag :for {_acd ,_be :=d .Token ();if _be !=nil {return _be ;};switch _bd :=_acd .(type ){case _f .StartElement :switch _bd .Name {case _f .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058",Local :"\u006f\u0063\u0078P\u0072"}:_bfa :=NewCT_OcxPr ();if _bed :=d .DecodeElement (_bfa ,&_bd );_bed !=nil {return _bed ;};_afe .OcxPr =append (_afe .OcxPr ,_bfa );default:_g .Log ("\u0073\u006b\u0069\u0070\u0070i\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u007
2021-03-16 20:51:18 +00:00
2021-06-16 07:10:52 +00:00
// ValidateWithPath validates the Ocx and its children, prefixing error messages with path
func (_bac *Ocx )ValidateWithPath (path string )error {if _dcg :=_bac .CT_Ocx .ValidateWithPath (path );_dcg !=nil {return _dcg ;};return nil ;};
2021-03-16 20:51:18 +00:00
2021-05-31 16:22:30 +00:00
// Validate validates the Ocx and its children
2021-06-16 07:10:52 +00:00
func (_faa *Ocx )Validate ()error {return _faa .ValidateWithPath ("\u004f\u0063\u0078")};
2021-03-16 20:51:18 +00:00
2021-06-16 07:10:52 +00:00
// Validate validates the CT_OcxPrChoice and its children
func (_geg *CT_OcxPrChoice )Validate ()error {return _geg .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072\u0043h\u006f\u0069\u0063\u0065");};
2021-03-16 20:51:18 +00:00
2021-06-16 07:10:52 +00:00
// ValidateWithPath validates the CT_OcxPr and its children, prefixing error messages with path
func (_eeg *CT_OcxPr )ValidateWithPath (path string )error {if _eeg .Choice !=nil {if _cce :=_eeg .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_cce !=nil {return _cce ;};};return nil ;};
2021-03-16 20:51:18 +00:00
2021-06-16 07:10:52 +00:00
// ValidateWithPath validates the CT_Picture and its children, prefixing error messages with path
func (_acca *CT_Picture )ValidateWithPath (path string )error {return nil };func (_gae *ST_Persistence )UnmarshalXMLAttr (attr _f .Attr )error {switch attr .Value {case "":*_gae =0;case "\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067":*_gae =1;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d":*_gae =2;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074":*_gae =3;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065":*_gae =4;};return nil ;};func (_ebca ST_Persistence )String ()string {switch _ebca {case 0:return "";case 1:return "\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067";case 2:return "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d";case 3:return "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074";case 4:return "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065";};return "";};
2021-03-16 20:51:18 +00:00
2021-06-16 07:10:52 +00:00
// Validate validates the CT_Picture and its children
func (_eef *CT_Picture )Validate ()error {return _eef .ValidateWithPath ("\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");};func (_fdg *ST_Persistence )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_aaed ,_abb :=d .Token ();if _abb !=nil {return _abb ;};if _feg ,_dbe :=_aaed .(_f .EndElement );_dbe &&_feg .Name ==start .Name {*_fdg =1;return nil ;};if _aeg ,_bfad :=_aaed .(_f .CharData );!_bfad {return _d .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_aaed );}else {switch string (_aeg ){case "":*_fdg =0;case "\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067":*_fdg =1;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d":*_fdg =2;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074":*_fdg =3;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065":*_fdg =4;};};_aaed ,_abb =d .Token ();if _abb !=nil {return _abb ;};if _ddf ,_ffa :=_aaed .(_f .EndElement );_ffa &&_ddf .Name ==start .Name {return nil ;};return _d .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_aaed );};func (_gec *Ocx )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_gec .CT_Ocx =*NewCT_Ocx ();for _ ,_ebc :=range start .Attr {if _ebc .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_ebc .Name .Local =="\u0069\u0064"||_ebc .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_ebc .Name .Local =="\u0069\u0064"{_acf ,_baf :=_ebc .Value ,error (nil );if _baf !=nil {return _baf ;};_gec .IdAttr =&_acf ;continue ;};if _ebc .Name .Local =="\u0063l\u0061\u0073\u0073\u0069\u0064"{_ddc ,_ddd :=_ebc .Value ,error (nil );if _ddd !=nil {return _ddd ;};_gec .ClassidAttr =_ddc ;continue ;};if _ebc .Name .Local =="\u006ci\u0063\u0065\u006e\u0073\u0065"{_cgc ,_fad :=_ebc .Value ,error (nil );if _fad !=nil {return _fad ;};_gec .LicenseAttr =&_cgc ;continue ;};if _ebc .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_gec .PersistenceAttr .UnmarshalXMLAttr (_ebc );continue ;};};_acfb :for {_beb ,_ad :=d .Token ();if _ad !=nil {return _ad ;};switch _fg :=_beb .(type ){case _f .StartElement :switch _fg .Name {case _f .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058",Local :"\u006f\u0063\u0078P\u0072"}:_ceg :=NewCT_OcxPr ();if _bad :=d .DecodeElement (_ceg ,&_fg );_bad !=nil {return _bad ;};_gec .OcxPr =append (_gec .OcxPr ,_ceg );default:_g .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\u004fc\u0078\u0020\u0025\u0076",_fg .Name );if _cbd :=d .Skip ();_cbd !=nil {return _cbd ;};};case _f .EndElement :break _acfb ;case _f .CharData :};};return nil ;};
2021-03-16 20:51:18 +00:00
2021-06-16 07:10:52 +00:00
// Validate validates the CT_Ocx and its children
func (_dfd *CT_Ocx )Validate ()error {return _dfd .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078");};type CT_Ocx struct{ClassidAttr string ;LicenseAttr *string ;IdAttr *string ;PersistenceAttr ST_Persistence ;OcxPr []*CT_OcxPr ;};
2021-05-31 16:22:30 +00:00
// ValidateWithPath validates the CT_Ocx and its children, prefixing error messages with path
2021-06-16 07:10:52 +00:00
func (_ge *CT_Ocx )ValidateWithPath (path string )error {if _ge .PersistenceAttr ==ST_PersistenceUnset {return _d .Errorf ("\u0025\u0073\u002f\u0050\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063e\u0041\u0074\u0074\u0072\u0020\u0069s\u0020\u0061\u0020\u006d\u0061\u006e\u0064\u0061\u0074\u006f\u0072\u0079\u0020f\u0069\u0065\u006c\u0064",path );};if _cgee :=_ge .PersistenceAttr .ValidateWithPath (path +"\u002f\u0050e\u0072\u0073\u0069s\u0074\u0065\u006e\u0063\u0065\u0041\u0074\u0074\u0072");_cgee !=nil {return _cgee ;};for _gc ,_ca :=range _ge .OcxPr {if _bef :=_ca .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002fO\u0063\u0078\u0050\u0072\u005b\u0025\u0064\u005d",path ,_gc ));_bef !=nil {return _bef ;};};return nil ;};func (_gcbe *Ocx )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058"});start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0078\u006d\u006c\u006e\u0073\u003a\u0061\u0078"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058"});start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078\u006dl"},Value :"\u0068\u0074tp\u003a\u002f\u002fw\u0077\u0077\u002e\u00773.o\u0072g/\u0058\u004d\u004c\u002f\u0031\u0039\u00398/\u006e\u0061\u006d\u0065\u0073\u0070\u0061c\u0065"});start .Name .Local ="\u0061\u0078\u003a\u006f\u0063\u0078";return _gcbe .CT_Ocx .MarshalXML (e ,start );};type Ocx struct{CT_Ocx };func NewCT_OcxPrChoice ()*CT_OcxPrChoice {_aae :=&CT_OcxPrChoice {};return _aae };
2021-05-31 16:22:30 +00:00
// ValidateWithPath validates the CT_Font and its children, prefixing error messages with path
2021-06-16 07:10:52 +00:00
func (_aaf *CT_Font )ValidateWithPath (path string )error {if _bc :=_aaf .PersistenceAttr .ValidateWithPath (path +"\u002f\u0050e\u0072\u0073\u0069s\u0074\u0065\u006e\u0063\u0065\u0041\u0074\u0074\u0072");_bc !=nil {return _bc ;};for _cg ,_gdf :=range _aaf .OcxPr {if _df :=_gdf .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002fO\u0063\u0078\u0050\u0072\u005b\u0025\u0064\u005d",path ,_cg ));_df !=nil {return _df ;};};return nil ;};
// Validate validates the CT_Font and its children
func (_af *CT_Font )Validate ()error {return _af .ValidateWithPath ("\u0043T\u005f\u0046\u006f\u006e\u0074");};type CT_OcxPr struct{NameAttr string ;ValueAttr *string ;Choice *CT_OcxPrChoice ;};func NewCT_Picture ()*CT_Picture {_fcb :=&CT_Picture {};return _fcb };type CT_Picture struct{IdAttr *string ;};func (_fdd ST_Persistence )MarshalXMLAttr (name _f .Name )(_f .Attr ,error ){_bce :=_f .Attr {};_bce .Name =name ;switch _fdd {case ST_PersistenceUnset :_bce .Value ="";case ST_PersistencePersistPropertyBag :_bce .Value ="\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067";case ST_PersistencePersistStream :_bce .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d";case ST_PersistencePersistStreamInit :_bce .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074";case ST_PersistencePersistStorage :_bce .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065";};return _bce ,nil ;};func (_cf *CT_Picture )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {if _cf .IdAttr !=nil {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_d .Sprintf ("\u0025\u0076",*_cf .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_efb *CT_OcxPrChoice )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {if _efb .Font !=nil {_gdg :=_f .StartElement {Name :_f .Name {Local :"\u0061x\u003a\u0066\u006f\u006e\u0074"}};e .EncodeElement (_efb .Font ,_gdg );};if _efb .Picture !=nil {_fe :=_f .StartElement {Name :_f .Name {Local :"\u0061\u0078\u003a\u0070\u0069\u0063\u0074\u0075\u0072\u0065"}};e .EncodeElement (_efb .Picture ,_fe );};return nil ;};type ST_Persistence byte ;const (ST_PersistenceUnset ST_Persistence =0;ST_PersistencePersistPropertyBag ST_Persistence =1;ST_PersistencePersistStream ST_Persistence =2;ST_PersistencePersistStreamInit ST_Persistence =3;ST_PersistencePersistStorage ST_Persistence =4;);func NewCT_Ocx ()*CT_Ocx {_gdd :=&CT_Ocx {};_gdd .PersistenceAttr =ST_Persistence (1);return _gdd };func NewCT_OcxPr ()*CT_OcxPr {_ae :=&CT_OcxPr {};return _ae };func (_ga *CT_OcxPr )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for _ ,_bfb :=range start .Attr {if _bfb .Name .Local =="\u006e\u0061\u006d\u0065"{_gaf ,_agd :=_bfb .Value ,error (nil );if _agd !=nil {return _agd ;};_ga .NameAttr =_gaf ;continue ;};if _bfb .Name .Local =="\u0076\u0061\u006cu\u0065"{_fd ,_fc :=_bfb .Value ,error (nil );if _fc !=nil {return _fc ;};_ga .ValueAttr =&_fd ;continue ;};};_fcd :for {_egd ,_egdb :=d .Token ();if _egdb !=nil {return _egdb ;};switch _agf :=_egd .(type ){case _f .StartElement :switch _agf .Name {case _f .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058",Local :"\u0066\u006f\u006e\u0074"}:_ga .Choice =NewCT_OcxPrChoice ();if _bg :=d .DecodeElement (&_ga .Choice .Font ,&_agf );_bg !=nil {return _bg ;};case _f .Name {Space :"\u0068\u0074\u0074\u0070\u003a\u002f\u002f\u0073c\u0068\u0065\u006das\u002e\u006d\u0069\u0063\u0072\u006fs\u006f\u0066\u0074\u002e\u0063\u006f\u006d\u002f\u006f\u0066\u0066\u0069\u0063\u0065\u002f2\u0030\u0030\u0036\u002f\u0061\u0063\u0074\u0069v\u0065\u0058",Local :"\u0070i\u0063\u0074\u0075\u0072\u0065"}:_ga .Choice =NewCT_OcxPrChoice ();if _cea :=d .DecodeElement (&_ga .Choice .Picture ,&_agf );_cea !=nil {return _cea ;};default:_g .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\u004f\u0063\u0078\u0050\u0072\u0020\u0025\u0076",_agf .Name );if _eaa :=d .Skip ();_eaa !=nil {return _eaa ;};};case _f .EndElement :break _fcd ;case _f .CharData :};};return nil ;};func init