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-07-30 17:03:26 +00:00
package activeX ;import (_g "encoding/xml";_c "fmt";_b "github.com/unidoc/unioffice";);func (_dab *CT_OcxPrChoice )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_geb :for {_adge ,_babb :=d .Token ();if _babb !=nil {return _babb ;};switch _gb :=_adge .(type ){case _g .StartElement :switch _gb .Name {case _g .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"}:_dab .Font =NewCT_Font ();if _cdg :=d .DecodeElement (_dab .Font ,&_gb );_cdg !=nil {return _cdg ;};case _g .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"}:_dab .Picture =NewCT_Picture ();if _fae :=d .DecodeElement (_dab .Picture ,&_gb );_fae !=nil {return _fae ;};default:_b .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",_gb .Name );if _fc :=d .Skip ();_fc !=nil {return _fc ;};};case _g .EndElement :break _geb ;case _g .CharData :};};return nil ;};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;);
2021-04-23 20:00:00 +00:00
2021-07-30 17:03:26 +00:00
// ValidateWithPath validates the CT_Font and its children, prefixing error messages with path
func (_ge *CT_Font )ValidateWithPath (path string )error {if _ba :=_ge .PersistenceAttr .ValidateWithPath (path +"\u002f\u0050e\u0072\u0073\u0069s\u0074\u0065\u006e\u0063\u0065\u0041\u0074\u0074\u0072");_ba !=nil {return _ba ;};for _ce ,_fb :=range _ge .OcxPr {if _cf :=_fb .ValidateWithPath (_c .Sprintf ("\u0025\u0073\u002fO\u0063\u0078\u0050\u0072\u005b\u0025\u0064\u005d",path ,_ce ));_cf !=nil {return _cf ;};};return nil ;};func (_dc *CT_OcxPr )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for _ ,_bag :=range start .Attr {if _bag .Name .Local =="\u006e\u0061\u006d\u0065"{_bcf ,_ga :=_bag .Value ,error (nil );if _ga !=nil {return _ga ;};_dc .NameAttr =_bcf ;continue ;};if _bag .Name .Local =="\u0076\u0061\u006cu\u0065"{_afg ,_dd :=_bag .Value ,error (nil );if _dd !=nil {return _dd ;};_dc .ValueAttr =&_afg ;continue ;};};_bce :for {_afgc ,_cea :=d .Token ();if _cea !=nil {return _cea ;};switch _ab :=_afgc .(type ){case _g .StartElement :switch _ab .Name {case _g .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"}:_dc .Choice =NewCT_OcxPrChoice ();if _ee :=d .DecodeElement (&_dc .Choice .Font ,&_ab );_ee !=nil {return _ee ;};case _g .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"}:_dc .Choice =NewCT_OcxPrChoice ();if _abg :=d .DecodeElement (&_dc .Choice .Picture ,&_ab );_abg !=nil {return _abg ;};default:_b .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",_ab .Name );if _bcff :=d .Skip ();_bcff !=nil {return _bcff ;};};case _g .EndElement :break _bce ;case _g .CharData :};};return nil ;};func (_fbd ST_Persistence )MarshalXMLAttr (name _g .Name )(_g .Attr ,error ){_fe :=_g .Attr {};_fe .Name =name ;switch _fbd {case ST_PersistenceUnset :_fe .Value ="";case ST_PersistencePersistPropertyBag :_fe .Value ="\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067";case ST_PersistencePersistStream :_fe .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d";case ST_PersistencePersistStreamInit :_fe .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074";case ST_PersistencePersistStorage :_fe .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065";};return _fe ,nil ;};func (_dca *CT_Picture )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for _ ,_ece :=range start .Attr {if _ece .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"&&_ece .Name .Local =="\u0069\u0064"||_ece .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"&&_ece .Name .Local =="\u0069\u0064"{_ddb ,_faf :=_ece .Value ,error (nil );if _faf !=nil {return _faf ;};_dca .IdAttr =&_ddb ;continue ;};};for {_aggc ,_caaf :=d .Token ();if _caaf !=nil {return _c .Errorf ("\u0070\u0061\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
2021-07-30 17:03:26 +00:00
func (_fab *Ocx )ValidateWithPath (path string )error {if _geg :=_fab .CT_Ocx .ValidateWithPath (path );_geg !=nil {return _geg ;};return nil ;};func NewCT_Font ()*CT_Font {_a :=&CT_Font {};return _a };func (_afa *CT_OcxPrChoice )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {if _afa .Font !=nil {_bagd :=_g .StartElement {Name :_g .Name {Local :"\u0061x\u003a\u0066\u006f\u006e\u0074"}};e .EncodeElement (_afa .Font ,_bagd );};if _afa .Picture !=nil {_gce :=_g .StartElement {Name :_g .Name {Local :"\u0061\u0078\u003a\u0070\u0069\u0063\u0074\u0075\u0072\u0065"}};e .EncodeElement (_afa .Picture ,_gce );};return nil ;};
2021-03-16 20:51:18 +00:00
2021-07-30 17:03:26 +00:00
// Validate validates the CT_Font and its children
func (_gg *CT_Font )Validate ()error {return _gg .ValidateWithPath ("\u0043T\u005f\u0046\u006f\u006e\u0074");};func (_gbg *Ocx )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_gbg .CT_Ocx =*NewCT_Ocx ();for _ ,_bde :=range start .Attr {if _bde .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"&&_bde .Name .Local =="\u0069\u0064"||_bde .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"&&_bde .Name .Local =="\u0069\u0064"{_dcd ,_aed :=_bde .Value ,error (nil );if _aed !=nil {return _aed ;};_gbg .IdAttr =&_dcd ;continue ;};if _bde .Name .Local =="\u0063l\u0061\u0073\u0073\u0069\u0064"{_fd ,_cfc :=_bde .Value ,error (nil );if _cfc !=nil {return _cfc ;};_gbg .ClassidAttr =_fd ;continue ;};if _bde .Name .Local =="\u006ci\u0063\u0065\u006e\u0073\u0065"{_edga ,_egf :=_bde .Value ,error (nil );if _egf !=nil {return _egf ;};_gbg .LicenseAttr =&_edga ;continue ;};if _bde .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_gbg .PersistenceAttr .UnmarshalXMLAttr (_bde );continue ;};};_gd :for {_abac ,_db :=d .Token ();if _db !=nil {return _db ;};switch _fgb :=_abac .(type ){case _g .StartElement :switch _fgb .Name {case _g .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"}:_egc :=NewCT_OcxPr ();if _gff :=d .DecodeElement (_egc ,&_fgb );_gff !=nil {return _gff ;};_gbg .OcxPr =append (_gbg .OcxPr ,_egc );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\u004fc\u0078\u0020\u0025\u0076",_fgb .Name );if _edf :=d .Skip ();_edf !=nil {return _edf ;};};case _g .EndElement :break _gd ;case _g .CharData :};};return nil ;};func (_afe ST_Persistence )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {return e .EncodeElement (_afe .String (),start );};func (_fce ST_Persistence )String ()string {switch _fce {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-07-30 17:03:26 +00:00
// ValidateWithPath validates the CT_Picture and its children, prefixing error messages with path
func (_ccfe *CT_Picture )ValidateWithPath (path string )error {return nil };
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
2021-07-30 17:03:26 +00:00
func (_cfb *CT_OcxPr )ValidateWithPath (path string )error {if _cfb .Choice !=nil {if _faa :=_cfb .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_faa !=nil {return _faa ;};};return nil ;};func (_eg *CT_Picture )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {if _eg .IdAttr !=nil {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_c .Sprintf ("\u0025\u0076",*_eg .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func (_gef ST_Persistence )Validate ()error {return _gef .ValidateWithPath ("")};func (_ecf *CT_Ocx )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_ecf .PersistenceAttr =ST_Persistence (1);for _ ,_agbc :=range start .Attr {if _agbc .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"&&_agbc .Name .Local =="\u0069\u0064"||_agbc .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"&&_agbc .Name .Local =="\u0069\u0064"{_agg ,_deg :=_agbc .Value ,error (nil );if _deg !=nil {return _deg ;};_ecf .IdAttr =&_agg ;continue ;};if _agbc .Name .Local =="\u0063l\u0061\u0073\u0073\u0069\u0064"{_fa ,_gea :=_agbc .Value ,error (nil );if _gea !=nil {return _gea ;};_ecf .ClassidAttr =_fa ;continue ;};if _agbc .Name .Local =="\u006ci\u0063\u0065\u006e\u0073\u0065"{_bef ,_da :=_agbc .Value ,error (nil );if _da !=nil {return _da ;};_ecf .LicenseAttr =&_bef ;continue ;};if _agbc .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_ecf .PersistenceAttr .UnmarshalXMLAttr (_agbc );continue ;};};_cg :for {_bd ,_acd :=d .Token ();if _acd !=nil {return _acd ;};switch _bae :=_bd .(type ){case _g .StartElement :switch _bae .Name {case _g .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"}:_bab :=NewCT_OcxPr ();if _ded :=d .DecodeElement (_bab ,&_bae );_ded !=nil {return _ded ;};_ecf .OcxPr =append (_ecf .OcxPr ,_bab );default:_b .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",_bae .Name );if _cd :=d .Skip ();_cd !=nil {return _cd ;};};case _g .EndElement :break _cg ;case _g .CharData :};};return nil ;};func NewOcx ()*Ocx {_eab :=&Ocx {};_eab .CT_Ocx =*NewCT_Ocx ();return _eab };func (_fbc ST_Persistence )ValidateWithPath (path string )error {switch _fbc {case 0,1,2,3,4:default:return _c .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_fbc ));};return nil ;};func NewCT_OcxPrChoice ()*CT_OcxPrChoice {_fac :=&CT_OcxPrChoice {};return _fac };func (_gfg *ST_Persistence )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_bgf ,_gdg :=d .Token ();if _gdg !=nil {return _gdg ;};if _ef ,_dbd :=_bgf .(_g .EndElement );_dbd &&_ef .Name ==start .Name {*_gfg =1;return nil ;};if _dg ,_dec :=_bgf .(_g .CharData );!_dec {return _c .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",_bgf );}else {switch string (_dg ){case "":*_gfg =0;case "\u00
2021-03-16 20:51:18 +00:00
2021-07-30 17:03:26 +00:00
// Validate validates the CT_OcxPr and its children
func (_ecfc *CT_OcxPr )Validate ()error {return _ecfc .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072");};type CT_OcxPrChoice struct{Font *CT_Font ;Picture *CT_Picture ;};func (_aba *Ocx )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Attr =append (start .Attr ,_g .Attr {Name :_g .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 ,_g .Attr {Name :_g .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 ,_g .Attr {Name :_g .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 ,_g .Attr {Name :_g .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 _aba .CT_Ocx .MarshalXML (e ,start );};func (_cbf *CT_OcxPr )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0061x\u003a\u006e\u0061\u006d\u0065"},Value :_c .Sprintf ("\u0025\u0076",_cbf .NameAttr )});if _cbf .ValueAttr !=nil {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0061\u0078\u003a\u0076\u0061\u006c\u0075\u0065"},Value :_c .Sprintf ("\u0025\u0076",*_cbf .ValueAttr )});};e .EncodeToken (start );if _cbf .Choice !=nil {_cbf .Choice .MarshalXML (e ,_g .StartElement {});};e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func (_bebd *ST_Persistence )UnmarshalXMLAttr (attr _g .Attr )error {switch attr .Value {case "":*_bebd =0;case "\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067":*_bebd =1;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d":*_bebd =2;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074":*_bebd =3;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065":*_bebd =4;};return nil ;};type ST_Persistence byte ;
2021-03-16 20:51:18 +00:00
2021-06-16 07:10:52 +00:00
// Validate validates the CT_Ocx and its children
2021-07-30 17:03:26 +00:00
func (_fge *CT_Ocx )Validate ()error {return _fge .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078");};type CT_Ocx struct{ClassidAttr string ;LicenseAttr *string ;IdAttr *string ;PersistenceAttr ST_Persistence ;OcxPr []*CT_OcxPr ;};
// Validate validates the CT_Picture and its children
func (_ddbb *CT_Picture )Validate ()error {return _ddbb .ValidateWithPath ("\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");};
2021-05-31 16:22:30 +00:00
// ValidateWithPath validates the CT_Ocx and its children, prefixing error messages with path
2021-07-30 17:03:26 +00:00
func (_ff *CT_Ocx )ValidateWithPath (path string )error {if _ff .PersistenceAttr ==ST_PersistenceUnset {return _c .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 _ccf :=_ff .PersistenceAttr .ValidateWithPath (path +"\u002f\u0050e\u0072\u0073\u0069s\u0074\u0065\u006e\u0063\u0065\u0041\u0074\u0074\u0072");_ccf !=nil {return _ccf ;};for _gfc ,_aa :=range _ff .OcxPr {if _adg :=_aa .ValidateWithPath (_c .Sprintf ("\u0025\u0073\u002fO\u0063\u0078\u0050\u0072\u005b\u0025\u0064\u005d",path ,_gfc ));_adg !=nil {return _adg ;};};return nil ;};type CT_Picture struct{IdAttr *string ;};type Ocx struct{CT_Ocx };func NewCT_Picture ()*CT_Picture {_ceb :=&CT_Picture {};return _ceb };func (_agb *CT_Font )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for _ ,_bc :=range start .Attr {if _bc .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"&&_bc .Name .Local =="\u0069\u0064"||_bc .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"&&_bc .Name .Local =="\u0069\u0064"{_ad ,_cc :=_bc .Value ,error (nil );if _cc !=nil {return _cc ;};_agb .IdAttr =&_ad ;continue ;};if _bc .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_agb .PersistenceAttr .UnmarshalXMLAttr (_bc );continue ;};};_cb :for {_be ,_ac :=d .Token ();if _ac !=nil {return _ac ;};switch _af :=_be .(type ){case _g .StartElement :switch _af .Name {case _g .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"}:_ed :=NewCT_OcxPr ();if _gf :=d .DecodeElement (_ed ,&_af );_gf !=nil {return _gf ;};_agb .OcxPr =append (_agb .OcxPr ,_ed );default:_b .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",_af .Name );if _bg :=d .Skip ();_bg !=nil {return _bg ;};};case _g .EndElement :break _cb ;case _g .CharData :};};return nil ;};func (_ea *CT_Ocx )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0061\u0078\u003a\u0063\u006c\u0061\u0073\u0073\u0069\u0064"},Value :_c .Sprintf ("\u0025\u0076",_ea .ClassidAttr )});if _ea .LicenseAttr !=nil {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0061\u0078\u003a\u006c\u0069\u0063\u0065\u006e\u0073\u0065"},Value :_c .Sprintf ("\u0025\u0076",*_ea .LicenseAttr )});};if _ea .IdAttr !=nil {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_c .Sprintf ("\u0025\u0076",*_ea .IdAttr )});};_ged ,_edg :=_ea .PersistenceAttr .MarshalXMLAttr (_g .Name {Local :"\u0061\u0078\u003a\u0070\u0065\u0072\u0073\u0069\u0073t\u0065\u006e\u0063\u0065"});if _edg !=nil {return _edg ;};start .Attr =append (start .Attr ,_ged );e .EncodeToken (start );if _ea .OcxPr !=nil {_bcc :=_g .StartElement {Name :_g .Name {Local :"\u0061\u0078\u003a\u006f\u0063\u0078\u0050\u0072"}};for _ ,_agc :=range _ea .OcxPr {e .EncodeElement (_agc ,_bcc );};};e .EncodeToken (_g .EndElement {Name
2021-05-31 16:22:30 +00:00
2021-07-30 17:03:26 +00:00
// ValidateWithPath validates the CT_OcxPrChoice and its children, prefixing error messages with path
func (_bf *CT_OcxPrChoice )ValidateWithPath (path string )error {if _bf .Font !=nil {if _cab :=_bf .Font .ValidateWithPath (path +"\u002f\u0046\u006fn\u0074");_cab !=nil {return _cab ;};};if _bf .Picture !=nil {if _ecff :=_bf .Picture .ValidateWithPath (path +"\u002f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");_ecff !=nil {return _ecff ;};};return nil ;};
2021-06-16 07:10:52 +00:00
2021-07-30 17:03:26 +00:00
// Validate validates the CT_OcxPrChoice and its children
func (_ae *CT_OcxPrChoice )Validate ()error {return _ae .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072\u0043h\u006f\u0069\u0063\u0065");};
// Validate validates the Ocx and its children
func (_eef *Ocx )Validate ()error {return _eef .ValidateWithPath ("\u004f\u0063\u0078")};func init (){_b .RegisterConstructor ("\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","\u0043\u0054\u005f\u004f\u0063\u0078",NewCT_Ocx );_b .RegisterConstructor ("\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","\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072",NewCT_OcxPr );_b .RegisterConstructor ("\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","\u0043T\u005f\u0046\u006f\u006e\u0074",NewCT_Font );_b .RegisterConstructor ("\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","\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065",NewCT_Picture );_b .RegisterConstructor ("\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","\u006f\u0063\u0078",NewOcx );};