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-04-23 20:00:00 +00:00
|
|
|
package activeX ;import (_a "encoding/xml";_ae "fmt";_fb "github.com/unidoc/unioffice";);func (_eee ST_Persistence )Validate ()error {return _eee .ValidateWithPath ("")};func (_cc *CT_Ocx )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u0078\u003a\u0063\u006c\u0061\u0073\u0073\u0069\u0064"},Value :_ae .Sprintf ("\u0025\u0076",_cc .ClassidAttr )});if _cc .LicenseAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u0078\u003a\u006c\u0069\u0063\u0065\u006e\u0073\u0065"},Value :_ae .Sprintf ("\u0025\u0076",*_cc .LicenseAttr )});};if _cc .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_ae .Sprintf ("\u0025\u0076",*_cc .IdAttr )});};_fg ,_ca :=_cc .PersistenceAttr .MarshalXMLAttr (_a .Name {Local :"\u0061\u0078\u003a\u0070\u0065\u0072\u0073\u0069\u0073t\u0065\u006e\u0063\u0065"});if _ca !=nil {return _ca ;};start .Attr =append (start .Attr ,_fg );e .EncodeToken (start );if _cc .OcxPr !=nil {_ad :=_a .StartElement {Name :_a .Name {Local :"\u0061\u0078\u003a\u006f\u0063\u0078\u0050\u0072"}};for _ ,_gb :=range _cc .OcxPr {e .EncodeElement (_gb ,_ad );};};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};func NewCT_Ocx ()*CT_Ocx {_afg :=&CT_Ocx {};_afg .PersistenceAttr =ST_Persistence (1);return _afg };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the CT_Font and its children, prefixing error messages with path
|
|
|
|
func (_fc *CT_Font )ValidateWithPath (path string )error {if _geb :=_fc .PersistenceAttr .ValidateWithPath (path +"\u002f\u0050e\u0072\u0073\u0069s\u0074\u0065\u006e\u0063\u0065\u0041\u0074\u0074\u0072");_geb !=nil {return _geb ;};for _ag ,_db :=range _fc .OcxPr {if _fbg :=_db .ValidateWithPath (_ae .Sprintf ("\u0025\u0073\u002fO\u0063\u0078\u0050\u0072\u005b\u0025\u0064\u005d",path ,_ag ));_fbg !=nil {return _fbg ;};};return nil ;};type ST_Persistence byte ;func (_daa ST_Persistence )MarshalXMLAttr (name _a .Name )(_a .Attr ,error ){_deb :=_a .Attr {};_deb .Name =name ;switch _daa {case ST_PersistenceUnset :_deb .Value ="";case ST_PersistencePersistPropertyBag :_deb .Value ="\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067";case ST_PersistencePersistStream :_deb .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d";case ST_PersistencePersistStreamInit :_deb .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074";case ST_PersistencePersistStorage :_deb .Value ="\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065";};return _deb ,nil ;};func (_ccc *CT_Ocx )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ccc .PersistenceAttr =ST_Persistence (1);for _ ,_ac :=range start .Attr {if _ac .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"&&_ac .Name .Local =="\u0069\u0064"||_ac .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"&&_ac .Name .Local =="\u0069\u0064"{_bd ,_aba :=_ac .Value ,error (nil );if _aba !=nil {return _aba ;};_ccc .IdAttr =&_bd ;continue ;};if _ac .Name .Local =="\u0063l\u0061\u0073\u0073\u0069\u0064"{_dda ,_ea :=_ac .Value ,error (nil );if _ea !=nil {return _ea ;};_ccc .ClassidAttr =_dda ;continue ;};if _ac .Name .Local =="\u006ci\u0063\u0065\u006e\u0073\u0065"{_efe ,_efc :=_ac .Value ,error (nil );if _efc !=nil {return _efc ;};_ccc .LicenseAttr =&_efe ;continue ;};if _ac .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_ccc .PersistenceAttr .UnmarshalXMLAttr (_ac );continue ;};};_be :for {_gbb ,_ce :=d .Token ();if _ce !=nil {return _ce ;};switch _cea :=_gbb .(type ){case _a .StartElement :switch _cea .Name {case _a .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"}:_gf :=NewCT_OcxPr ();if _gfe :=d .DecodeElement (_gf ,&_cea );_gfe !=nil {return _gfe ;};_ccc .OcxPr =append (_ccc .OcxPr ,_gf );default:_fb .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",_cea .Name );if _gc :=d .Skip ();_gc !=nil {return _gc ;};};case _a .EndElement :break _be ;case _a .CharData :};};return nil ;};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_OcxPrChoice and its children, prefixing error messages with path
|
|
|
|
func (_aec *CT_OcxPrChoice )ValidateWithPath (path string )error {if _aec .Font !=nil {if _cgg :=_aec .Font .ValidateWithPath (path +"\u002f\u0046\u006fn\u0074");_cgg !=nil {return _cgg ;};};if _aec .Picture !=nil {if _gfda :=_aec .Picture .ValidateWithPath (path +"\u002f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");_gfda !=nil {return _gfda ;};};return nil ;};func (_cecg ST_Persistence )String ()string {switch _cecg {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 "";};type CT_Picture struct{IdAttr *string ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
|
|
|
// Validate validates the CT_Ocx and its children
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_ecb *CT_Ocx )Validate ()error {return _ecb .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078");};func NewOcx ()*Ocx {_dfd :=&Ocx {};_dfd .CT_Ocx =*NewCT_Ocx ();return _dfd };func (_efec *Ocx )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 ,_a .Attr {Name :_a .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 _efec .CT_Ocx .MarshalXML (e ,start );};func (_abc *CT_OcxPrChoice )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_afgg :for {_ddb ,_gfd :=d .Token ();if _gfd !=nil {return _gfd ;};switch _efg :=_ddb .(type ){case _a .StartElement :switch _efg .Name {case _a .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"}:_abc .Font =NewCT_Font ();if _dbgd :=d .DecodeElement (_abc .Font ,&_efg );_dbgd !=nil {return _dbgd ;};case _a .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"}:_abc .Picture =NewCT_Picture ();if _bge :=d .DecodeElement (_abc .Picture ,&_efg );_bge !=nil {return _bge ;};default:_fb .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",_efg .Name );if _edc :=d .Skip ();_edc !=nil {return _edc ;};};case _a .EndElement :break _afgg ;case _a .CharData :};};return nil ;};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_OcxPr and its children, prefixing error messages with path
|
|
|
|
func (_eda *CT_OcxPr )ValidateWithPath (path string )error {if _eda .Choice !=nil {if _cab :=_eda .Choice .ValidateWithPath (path +"\u002fC\u0068\u006f\u0069\u0063\u0065");_cab !=nil {return _cab ;};};return nil ;};func NewCT_OcxPr ()*CT_OcxPr {_bea :=&CT_OcxPr {};return _bea };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
|
|
|
// Validate validates the Ocx and its children
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_cac *Ocx )Validate ()error {return _cac .ValidateWithPath ("\u004f\u0063\u0078")};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the CT_Font and its children
|
|
|
|
func (_dd *CT_Font )Validate ()error {return _dd .ValidateWithPath ("\u0043T\u005f\u0046\u006f\u006e\u0074");};type CT_OcxPrChoice struct{Font *CT_Font ;Picture *CT_Picture ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the CT_OcxPrChoice and its children
|
|
|
|
func (_bba *CT_OcxPrChoice )Validate ()error {return _bba .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072\u0043h\u006f\u0069\u0063\u0065");};func (_ebd ST_Persistence )ValidateWithPath (path string )error {switch _ebd {case 0,1,2,3,4:default:return _ae .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_ebd ));};return nil ;};func (_fge *CT_OcxPrChoice )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _fge .Font !=nil {_ebg :=_a .StartElement {Name :_a .Name {Local :"\u0061x\u003a\u0066\u006f\u006e\u0074"}};e .EncodeElement (_fge .Font ,_ebg );};if _fge .Picture !=nil {_ebgf :=_a .StartElement {Name :_a .Name {Local :"\u0061\u0078\u003a\u0070\u0069\u0063\u0074\u0075\u0072\u0065"}};e .EncodeElement (_fge .Picture ,_ebgf );};return nil ;};func (_def ST_Persistence )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {return e .EncodeElement (_def .String (),start );};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;);type Ocx struct{CT_Ocx };func (_efa *ST_Persistence )UnmarshalXMLAttr (attr _a .Attr )error {switch attr .Value {case "":*_efa =0;case "\u0070e\u0072s\u0069\u0073\u0074\u0050\u0072o\u0070\u0065r\u0074\u0079\u0042\u0061\u0067":*_efa =1;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061\u006d":*_efa =2;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074\u0072\u0065\u0061m\u0049\u006e\u0069\u0074":*_efa =3;case "\u0070\u0065\u0072\u0073\u0069\u0073\u0074\u0053\u0074o\u0072\u0061\u0067\u0065":*_efa =4;};return nil ;};func (_dg *CT_Picture )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_fbgf :=range start .Attr {if _fbgf .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"&&_fbgf .Name .Local =="\u0069\u0064"||_fbgf .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"&&_fbgf .Name .Local =="\u0069\u0064"{_bdg ,_gef :=_fbgf .Value ,error (nil );if _gef !=nil {return _gef ;};_dg .IdAttr =&_bdg ;continue ;};};for {_gfec ,_cad :=d .Token ();if _cad !=nil {return _ae .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065\u003a\u0020%\u0073",_cad );};if _gcg ,_df :=_gfec .(_a .EndElement );_df &&_gcg .Name ==start .Name {break ;};};return nil ;};func NewCT_Font ()*CT_Font {_g :=&CT_Font {};return _g };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_Picture and its children, prefixing error messages with path
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_ffe *CT_Picture )ValidateWithPath (path string )error {return nil };func (_bdb *CT_Picture )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {if _bdb .IdAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0072\u003a\u0069\u0064"},Value :_ae .Sprintf ("\u0025\u0076",*_bdb .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};type CT_Font struct{PersistenceAttr ST_Persistence ;IdAttr *string ;OcxPr []*CT_OcxPr ;};func (_ga *CT_OcxPr )MarshalXML (e *_a .Encoder ,start _a .StartElement )error {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061x\u003a\u006e\u0061\u006d\u0065"},Value :_ae .Sprintf ("\u0025\u0076",_ga .NameAttr )});if _ga .ValueAttr !=nil {start .Attr =append (start .Attr ,_a .Attr {Name :_a .Name {Local :"\u0061\u0078\u003a\u0076\u0061\u006c\u0075\u0065"},Value :_ae .Sprintf ("\u0025\u0076",*_ga .ValueAttr )});};e .EncodeToken (start );if _ga .Choice !=nil {_ga .Choice .MarshalXML (e ,_a .StartElement {});};e .EncodeToken (_a .EndElement {Name :start .Name });return nil ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// ValidateWithPath validates the CT_Ocx and its children, prefixing error messages with path
|
|
|
|
func (_ba *CT_Ocx )ValidateWithPath (path string )error {if _ba .PersistenceAttr ==ST_PersistenceUnset {return _ae .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 _bbc :=_ba .PersistenceAttr .ValidateWithPath (path +"\u002f\u0050e\u0072\u0073\u0069s\u0074\u0065\u006e\u0063\u0065\u0041\u0074\u0074\u0072");_bbc !=nil {return _bbc ;};for _edd ,_bg :=range _ba .OcxPr {if _dbe :=_bg .ValidateWithPath (_ae .Sprintf ("\u0025\u0073\u002fO\u0063\u0078\u0050\u0072\u005b\u0025\u0064\u005d",path ,_edd ));_dbe !=nil {return _dbe ;};};return nil ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the CT_OcxPr and its children
|
|
|
|
func (_bbb *CT_OcxPr )Validate ()error {return _bbb .ValidateWithPath ("\u0043\u0054\u005f\u004f\u0063\u0078\u0050\u0072");};func NewCT_OcxPrChoice ()*CT_OcxPrChoice {_fec :=&CT_OcxPrChoice {};return _fec };type CT_OcxPr struct{NameAttr string ;ValueAttr *string ;Choice *CT_OcxPrChoice ;};func (_cg *CT_OcxPr )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_cgb :=range start .Attr {if _cgb .Name .Local =="\u006e\u0061\u006d\u0065"{_dc ,_fdb :=_cgb .Value ,error (nil );if _fdb !=nil {return _fdb ;};_cg .NameAttr =_dc ;continue ;};if _cgb .Name .Local =="\u0076\u0061\u006cu\u0065"{_fe ,_fff :=_cgb .Value ,error (nil );if _fff !=nil {return _fff ;};_cg .ValueAttr =&_fe ;continue ;};};_fee :for {_gfg ,_eb :=d .Token ();if _eb !=nil {return _eb ;};switch _gg :=_gfg .(type ){case _a .StartElement :switch _gg .Name {case _a .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"}:_cg .Choice =NewCT_OcxPrChoice ();if _efcd :=d .DecodeElement (&_cg .Choice .Font ,&_gg );_efcd !=nil {return _efcd ;};case _a .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"}:_cg .Choice =NewCT_OcxPrChoice ();if _gac :=d .DecodeElement (&_cg .Choice .Picture ,&_gg );_gac !=nil {return _gac ;};default:_fb .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",_gg .Name );if _aea :=d .Skip ();_aea !=nil {return _aea ;};};case _a .EndElement :break _fee ;case _a .CharData :};};return nil ;};func (_ee *Ocx )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {_ee .CT_Ocx =*NewCT_Ocx ();for _ ,_fgb :=range start .Attr {if _fgb .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"&&_fgb .Name .Local =="\u0069\u0064"||_fgb .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"&&_fgb .Name .Local =="\u0069\u0064"{_bf ,_gag :=_fgb .Value ,error (nil );if _gag !=nil {return _gag ;};_ee .IdAttr =&_bf ;continue ;};if _fgb .Name .Local =="\u0063l\u0061\u0073\u0073\u0069\u0064"{_cd ,_edb :=_fgb .Value ,error (nil );if _edb !=nil {return _edb ;};_ee .ClassidAttr =_cd ;continue ;};if _fgb .Name .Local =="\u006ci\u0063\u0065\u006e\u0073\u0065"{_fgbb ,_bfc :=_fgb .Value ,error (nil );if _bfc !=nil {return _bfc ;};_ee .LicenseAttr =&_fgbb ;continue ;};if _fgb .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_ee .PersistenceAttr .UnmarshalXMLAttr (_fgb );continue ;};};_aebd :for {_fgd ,_dab :=d .Token ();if _dab !=nil {return _dab ;};switch _dbb :=_fgd .(type ){case _a .StartElement :switch _dbb .Name {case _a .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"}:_bda :=New
|
2021-03-16 20:51:18 +00:00
|
|
|
|
|
|
|
// ValidateWithPath validates the Ocx and its children, prefixing error messages with path
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_bac *Ocx )ValidateWithPath (path string )error {if _dbge :=_bac .CT_Ocx .ValidateWithPath (path );_dbge !=nil {return _dbge ;};return nil ;};type CT_Ocx struct{ClassidAttr string ;LicenseAttr *string ;IdAttr *string ;PersistenceAttr ST_Persistence ;OcxPr []*CT_OcxPr ;};func (_d *CT_Font )UnmarshalXML (d *_a .Decoder ,start _a .StartElement )error {for _ ,_ef :=range start .Attr {if _ef .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"&&_ef .Name .Local =="\u0069\u0064"||_ef .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"&&_ef .Name .Local =="\u0069\u0064"{_ed ,_bb :=_ef .Value ,error (nil );if _bb !=nil {return _bb ;};_d .IdAttr =&_ed ;continue ;};if _ef .Name .Local =="p\u0065\u0072\u0073\u0069\u0073\u0074\u0065\u006e\u0063\u0065"{_d .PersistenceAttr .UnmarshalXMLAttr (_ef );continue ;};};_fd :for {_da ,_af :=d .Token ();if _af !=nil {return _af ;};switch _aeb :=_da .(type ){case _a .StartElement :switch _aeb .Name {case _a .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"}:_ge :=NewCT_OcxPr ();if _bc :=d .DecodeElement (_ge ,&_aeb );_bc !=nil {return _bc ;};_d .OcxPr =append (_d .OcxPr ,_ge );default:_fb .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",_aeb .Name );if _bbf :=d .Skip ();_bbf !=nil {return _bbf ;};};case _a .EndElement :break _fd ;case _a .CharData :};};return nil ;};
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2021-04-23 20:00:00 +00:00
|
|
|
// Validate validates the CT_Picture and its children
|
|
|
|
func (_cec *CT_Picture )Validate ()error {return _cec .ValidateWithPath ("\u0043\u0054\u005f\u0050\u0069\u0063\u0074\u0075\u0072\u0065");};func init (){_fb .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 );_fb .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 );_fb .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 );_fb .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 );_fb .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 );};
|