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/
package activeX ;import (_f "encoding/xml";_d "fmt";_a "github.com/unidoc/unioffice";);type CT_OcxPr struct{NameAttr string ;ValueAttr *string ;Choice *CT_OcxPrChoice ;};type CT_Picture struct{IdAttr *string ;};func (_dab *CT_OcxPrChoice )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {if _dab .Font !=nil {_bed :=_f .StartElement {Name :_f .Name {Local :"\u0061x\u003a\u0066\u006f\u006e\u0074"}};e .EncodeElement (_dab .Font ,_bed );};if _dab .Picture !=nil {_gb :=_f .StartElement {Name :_f .Name {Local :"\u0061\u0078\u003a\u0070\u0069\u0063\u0074\u0075\u0072\u0065"}};e .EncodeElement (_dab .Picture ,_gb );};return nil ;};func (_aec ST_Persistence )ValidateWithPath (path string )error {switch _aec {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 (_aec ));};return nil ;};
// ValidateWithPath validates the CT_Ocx and its children, prefixing error messages with path
func (_bd *CT_Ocx )ValidateWithPath (path string )error {if _bd .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 _gf :=_bd .PersistenceAttr .ValidateWithPath (path +"\u002f\u0050e\u0072\u0073\u0069s\u0074\u0065\u006e\u0063\u0065\u0041\u0074\u0074\u0072");_gf !=nil {return _gf ;};for _ddb ,_fg :=range _bd .OcxPr {if _ga :=_fg .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002fO\u0063\u0078\u0050\u0072\u005b\u0025\u0064\u005d",path ,_ddb ));_ga !=nil {return _ga ;};};return nil ;};
// Validate validates the CT_Ocx and its children
func (_ae *CT_Ocx )Validate ()error {return _ae .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078");};
// Validate validates the Ocx and its children
func (_eef *Ocx )Validate ()error {return _eef .ValidateWithPath ("\u004f\u0063\u0078")};func (_cac *CT_Ocx )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_cac .PersistenceAttr =ST_Persistence (1);for _ ,_dfg :=range start .Attr {if _dfg .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"&&_dfg .Name .Local =="\u0069\u0064"||_dfg .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"&&_dfg .Name .Local =="\u0069\u0064"{_fde ,_egd :=_dfg .Value ,error (nil );if _egd !=nil {return _egd ;};_cac .IdAttr =&_fde ;continue ;};if _dfg .Name .Local =="\u0063l\u0061\u0073\u0073\u0069\u0064"{_adg ,_fcd :=_dfg .Value ,error (nil );if _fcd !=nil {return _fcd ;};_cac .ClassidAttr =_adg ;continue ;};if _dfg .Name .Local =="\u006ci\u0063\u0065\u006e\u0073\u0065"{_abg ,_da :=_dfg .Value ,error (nil );if _da !=nil {return _da ;};_cac .LicenseAttr =&_abg ;continue ;};if _dfg .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_cac .PersistenceAttr .UnmarshalXMLAttr (_dfg );continue ;};};_efc :for {_ee ,_bc :=d .Token ();if _bc !=nil {return _bc ;};switch _gge :=_ee .(type ){case _f .StartElement :switch _gge .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"}:_gd :=NewCT_OcxPr ();if _cga :=d .DecodeElement (_gd ,&_gge );_cga !=nil {return _cga ;};_cac .OcxPr =append (_cac .OcxPr ,_gd );default:_a .Log ("\u0073\u006b\u0069\u0070\u0070i\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065d\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u004f\u0063\u0078\u0020\u0025\u0076",_gge .Name );if _ec :=d .Skip ();_ec !=nil {return _ec ;};};case _f .EndElement :break _efc ;case _f .CharData :};};return nil ;};
// Validate validates the CT_OcxPr and its children
func (_dcg *CT_OcxPr )Validate ()error {return _dcg .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072");};func (_abf ST_Persistence )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {return e .EncodeElement (_abf .String (),start );};func NewCT_OcxPrChoice ()*CT_OcxPrChoice {_ed :=&CT_OcxPrChoice {};return _ed };func (_ge ST_Persistence )Validate ()error {return _ge .ValidateWithPath ("")};func (_ebd *CT_OcxPrChoice )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_ege :for {_gcb ,_bg :=d .Token ();if _bg !=nil {return _bg ;};switch _bgc :=_gcb .(type ){case _f .StartElement :switch _bgc .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"}:_ebd .Font =NewCT_Font ();if _bba :=d .DecodeElement (_ebd .Font ,&_bgc );_bba !=nil {return _bba ;};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"}:_ebd .Picture =NewCT_Picture ();if _gaf :=d .DecodeElement (_ebd .Picture ,&_bgc );_gaf !=nil {return _gaf ;};default:_a .Log ("\u0073\u006b\u0069\u0070\u0070\u0069n\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006et\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072\u0043\u0068o\u0069c\u0065\u0020\u0025\u0076",_bgc .Name );if _ega :=d .Skip ();_ega !=nil {return _ega ;};};case _f .EndElement :break _ege ;case _f .CharData :};};return nil ;};type Ocx struct{CT_Ocx };
// Validate validates the CT_Picture and its children
func (_ba *CT_Picture )Validate ()error {return _ba .ValidateWithPath ("\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");};
// ValidateWithPath validates the CT_Picture and its children, prefixing error messages with path
func (_ade *CT_Picture )ValidateWithPath (path string )error {return nil };type CT_Font struct{PersistenceAttr ST_Persistence ;IdAttr *string ;OcxPr []*CT_OcxPr ;};func (_fead *CT_Picture )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {if _fead .IdAttr !=nil {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_d .Sprintf ("\u0025\u0076",*_fead .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};type CT_OcxPrChoice struct{Font *CT_Font ;Picture *CT_Picture ;};func (_efa *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",_efa .ClassidAttr )});if _efa .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",*_efa .LicenseAttr )});};if _efa .IdAttr !=nil {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_d .Sprintf ("\u0025\u0076",*_efa .IdAttr )});};_efb ,_egbd :=_efa .PersistenceAttr .MarshalXMLAttr (_f .Name {Local :"\u0061\u0078\u003a\u0070\u0065\u0072\u0073\u0069\u0073t\u0065\u006e\u0063\u0065"});if _egbd !=nil {return _egbd ;};start .Attr =append (start .Attr ,_efb );e .EncodeToken (start );if _efa .OcxPr !=nil {_cg :=_f .StartElement {Name :_f .Name {Local :"\u0061\u0078\u003a\u006f\u0063\u0078\u0050\u0072"}};for _ ,_gg :=range _efa .OcxPr {e .EncodeElement (_gg ,_cg );};};e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_fc *CT_Font )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for _ ,_gc :=range start .Attr {if _gc .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"&&_gc .Name .Local =="\u0069\u0064"||_gc .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"&&_gc .Name .Local =="\u0069\u0064"{_af ,_ca :=_gc .Value ,error (nil );if _ca !=nil {return _ca ;};_fc .IdAttr =&_af ;continue ;};if _gc .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_fc .PersistenceAttr .UnmarshalXMLAttr (_gc );continue ;};};_adc :for {_aa ,_cb :=d .Token ();if _cb !=nil {return _cb ;};switch _be :=_aa .(type ){case _f .StartElement :switch _be .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"}:_afe :=NewCT_OcxPr ();if _ac :=d .DecodeElement (_afe ,&_be );_ac !=nil {return _ac ;};_fc .OcxPr =append (_fc .OcxPr ,_afe );default:_a .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",_be .Name );if _dd :=d .Skip ();_dd !=nil {return _dd ;};};case _f .EndElement :break _adc ;case _f .CharData :};};return nil ;};func NewOcx ()*Ocx {_fdg :=&Ocx {};_fdg .CT_Ocx =*NewCT_Ocx ();return _fdg };
// Validate validates the CT_Font and its children
func (_ab *CT_Font )Validate ()error {return _ab .ValidateWithPath ("\u0043T\u005f\u0046\u006f\u006e\u0074");};func NewCT_Font ()*CT_Font {_b :=&CT_Font {};return _b };func (_fce *CT_Picture )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for _ ,_fge :=range start .Attr {if _fge .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"&&_fge .Name .Local =="\u0069\u0064"||_fge .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"&&_fge .Name .Local =="\u0069\u0064"{_cbd ,_acg :=_fge .Value ,error (nil );if _acg !=nil {return _acg ;};_fce .IdAttr =&_cbd ;continue ;};};for {_bf ,_fged :=d .Token ();if _fged !=nil {return _d .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065\u003a\u0020%\u0073",_fged );};if _ecf ,_ebb :=_bf .(_f .EndElement );_ebb &&_ecf .Name ==start .Name {break ;};};return nil ;};func (_eeg *ST_Persistence )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_fec ,_gaae :=d .Token ();if _gaae !=nil {return _gaae ;};if _feb ,_bgca :=_fec .(_f .EndElement );_bgca &&_feb .Name ==start .Name {*_eeg =1;return nil ;};if _dfd ,_eda :=_fec .(_f .CharData );!_eda {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",_fec );}else {switch string (_dfd ){case "":*_eeg =0;case "\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067":*_eeg =1;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d":*_eeg =2;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074":*_eeg =3;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065":*_eeg =4;};};_fec ,_gaae =d .Token ();if _gaae !=nil {return _gaae ;};if _bbg ,_cbc :=_fec .(_f .EndElement );_cbc &&_bbg .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",_fec );};type ST_Persistence byte ;func NewCT_Ocx ()*CT_Ocx {_de :=&CT_Ocx {};_de .PersistenceAttr =ST_Persistence (1);return _de };func (_cgaf ST_Persistence )MarshalXMLAttr (name _f .Name )(_f .Attr ,error ){_eed :=_f .Attr {};_eed .Name =name ;switch _cgaf {case ST_PersistenceUnset :_eed .Value ="";case ST_PersistencePersistPropertyBag :_eed .Value ="\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067";case ST_PersistencePersistStream :_eed .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d";case ST_PersistencePersistStreamInit :_eed .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074";case ST_PersistencePersistStorage :_eed .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065";};return _eed ,nil ;};type CT_Ocx struct{ClassidAttr string ;LicenseAttr *string ;IdAttr *string ;PersistenceAttr ST_Persistence ;OcxPr []*CT_OcxPr ;};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;);
// ValidateWithPath validates the CT_OcxPr and its children, prefixing error messages with path
func (_bdd *CT_OcxPr )ValidateWithPath (path string )error {if _bdd .Choice !=nil {if _dae :=_bdd .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_dae !=nil {return _dae ;};};return nil ;};
// Validate validates the CT_OcxPrChoice and its children
func (_fa *CT_OcxPrChoice )Validate ()error {return _fa .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072\u0043h\u006f\u0069\u0063\u0065");};func (_eaac ST_Persistence )String ()string {switch _eaac {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 "";};func (_ad *CT_Font )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {if _ad .PersistenceAttr !=ST_PersistenceUnset {_eg ,_c :=_ad .PersistenceAttr .MarshalXMLAttr (_f .Name {Local :"\u0061\u0078\u003a\u0070\u0065\u0072\u0073\u0069\u0073t\u0065\u006e\u0063\u0065"});if _c !=nil {return _c ;};start .Attr =append (start .Attr ,_eg );};if _ad .IdAttr !=nil {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_d .Sprintf ("\u0025\u0076",*_ad .IdAttr )});};e .EncodeToken (start );if _ad .OcxPr !=nil {_egb :=_f .StartElement {Name :_f .Name {Local :"\u0061\u0078\u003a\u006f\u0063\u0078\u0050\u0072"}};for _ ,_ag :=range _ad .OcxPr {e .EncodeElement (_ag ,_egb );};};e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};
// ValidateWithPath validates the CT_Font and its children, prefixing error messages with path
func (_dc *CT_Font )ValidateWithPath (path string )error {if _ef :=_dc .PersistenceAttr .ValidateWithPath (path +"\u002f\u0050e\u0072\u0073\u0069s\u0074\u0065\u006e\u0063\u0065\u0041\u0074\u0074\u0072");_ef !=nil {return _ef ;};for _eb ,_cc :=range _dc .OcxPr {if _db :=_cc .ValidateWithPath (_d .Sprintf ("\u0025\u0073\u002fO\u0063\u0078\u0050\u0072\u005b\u0025\u0064\u005d",path ,_eb ));_db !=nil {return _db ;};};return nil ;};func (_aga *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 _aga .CT_Ocx .MarshalXML (e ,start );};func NewCT_OcxPr ()*CT_OcxPr {_ebf :=&CT_OcxPr {};return _ebf };
// ValidateWithPath validates the Ocx and its children, prefixing error messages with path
func (_ebg *Ocx )ValidateWithPath (path string )error {if _fed :=_ebg .CT_Ocx .ValidateWithPath (path );_fed !=nil {return _fed ;};return nil ;};
// ValidateWithPath validates the CT_OcxPrChoice and its children, prefixing error messages with path
func (_dfe *CT_OcxPrChoice )ValidateWithPath (path string )error {if _dfe .Font !=nil {if _cgf :=_dfe .Font .ValidateWithPath (path +"\u002f\u0046\u006fn\u0074");_cgf !=nil {return _cgf ;};};if _dfe .Picture !=nil {if _bgg :=_dfe .Picture .ValidateWithPath (path +"\u002f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");_bgg !=nil {return _bgg ;};};return nil ;};func (_gba *ST_Persistence )UnmarshalXMLAttr (attr _f .Attr )error {switch attr .Value {case "":*_gba =0;case "\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067":*_gba =1;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d":*_gba =2;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074":*_gba =3;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065":*_gba =4;};return nil ;};func (_afa *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",_afa .NameAttr )});if _afa .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",*_afa .ValueAttr )});};e .EncodeToken (start );if _afa .Choice !=nil {_afa .Choice .MarshalXML (e ,_f .StartElement {});};e .EncodeToken (_f .EndElement {Name :start .Name });return nil ;};func (_agb *Ocx )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_agb .CT_Ocx =*NewCT_Ocx ();for _ ,_fcdg :=range start .Attr {if _fcdg .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"&&_fcdg .Name .Local =="\u0069\u0064"||_fcdg .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"&&_fcdg .Name .Local =="\u0069\u0064"{_edc ,_aaf :=_fcdg .Value ,error (nil );if _aaf !=nil {return _aaf ;};_agb .IdAttr =&_edc ;continue ;};if _fcdg .Name .Local =="\u0063l\u0061\u0073\u0073\u0069\u0064"{_fdc ,_bce :=_fcdg .Value ,error (nil );if _bce !=nil {return _bce ;};_agb .ClassidAttr =_fdc ;continue ;};if _fcdg .Name .Local =="\u006ci\u0063\u0065\u006e\u0073\u0065"{_eafg ,_bca :=_fcdg .Value ,error (nil );if _bca !=nil {return _bca ;};_agb .LicenseAttr =&_eafg ;continue ;};if _fcdg .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_agb .PersistenceAttr .UnmarshalXMLAttr (_fcdg );continue ;};};_ecfa :for {_gaa ,_gcg :=d .Token ();if _gcg !=nil {return _gcg ;};switch _dg :=_gaa .(type ){case _f .StartElement :switch _dg .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"}:_afd :=NewCT_OcxPr ();if _gda :=d .DecodeElement (_afd ,&_dg );_gda !=nil {return _gda ;};_agb .OcxPr =append (_agb .OcxPr ,_afd );default:_a .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",_dg .Name );if _efe :=d .Skip ();_efe !=nil {return _efe ;};};case _f .EndElement :break _ecfa ;case _f .CharData :};};return nil ;};func (_bbe *CT_OcxPr )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {for _ ,_ggb :=range start .Attr