2020-08-23 14:15:53 +00:00
|
|
|
//
|
|
|
|
// Copyright 2020 FoxyUtils ehf. All rights reserved.
|
|
|
|
//
|
|
|
|
// This is a commercial product and requires a license to operate.
|
|
|
|
// A trial license can be obtained at https://unidoc.io
|
|
|
|
//
|
|
|
|
// DO NOT EDIT: generated by unitwist Go source code obfuscator.
|
|
|
|
//
|
|
|
|
// Use of this source code is governed by the UniDoc End User License Agreement
|
|
|
|
// terms that can be accessed at https://unidoc.io/eula/
|
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
package excel ;import (_f "encoding/xml";_d "fmt";_fe "github.com/unidoc/unioffice";_c "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";);func (_cfcg ST_ObjectType )String ()string {switch _cfcg {case 0:return "";case 1:return "\u0042\u0075\u0074\u0074\u006f\u006e";case 2:return "\u0043\u0068\u0065\u0063\u006b\u0062\u006f\u0078";case 3:return "\u0044\u0069\u0061\u006c\u006f\u0067";case 4:return "\u0044\u0072\u006f\u0070";case 5:return "\u0045\u0064\u0069\u0074";case 6:return "\u0047\u0042\u006f\u0078";case 7:return "\u004c\u0061\u0062e\u006c";case 8:return "\u004c\u0069\u006ee\u0041";case 9:return "\u004c\u0069\u0073\u0074";case 10:return "\u004d\u006f\u0076i\u0065";case 11:return "\u004e\u006f\u0074\u0065";case 12:return "\u0050\u0069\u0063\u0074";case 13:return "\u0052\u0061\u0064i\u006f";case 14:return "\u0052\u0065\u0063t\u0041";case 15:return "\u0053\u0063\u0072\u006f\u006c\u006c";case 16:return "\u0053\u0070\u0069\u006e";case 17:return "\u0053\u0068\u0061p\u0065";case 18:return "\u0047\u0072\u006fu\u0070";case 19:return "\u0052\u0065\u0063\u0074";};return "";};func (_cgd *ClientData )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c"});start .Attr =append (start .Attr ,_f .Attr {Name :_f .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0078"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c"});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 ="\u0078\u003a\u0043l\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061";return _cgd .CT_ClientData .MarshalXML (e ,start );};type ClientData struct{CT_ClientData };func (_beg *ClientData )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_beg .CT_ClientData =*NewCT_ClientData ();for _ ,_acbe :=range start .Attr {if _acbe .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"{_beg .ObjectTypeAttr .UnmarshalXMLAttr (_acbe );continue ;};};_faa :for {_bca ,_afb :=d .Token ();if _afb !=nil {return _afb ;};switch _fda :=_bca .(type ){case _f .StartElement :switch _fda .Name {case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u004d\u006f\u0076\u0065\u0057\u0069\u0074\u0068\u0043\u0065\u006c\u006c\u0073"}:_beg .MoveWithCells =_c .ST_TrueFalseBlankUnset ;if _fgd :=d .DecodeElement (&_beg .MoveWithCells ,&_fda );_fgd !=nil {return _fgd ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u0053\u0069\u007a\u0065\u0057\u0069\u0074\u0068\u0043\u0065\u006c\u006c\u0073"}:_beg .SizeWithCells =_c .ST_TrueFalseBlankUnset ;if _cde :=d .DecodeElement (&_beg .SizeWithCells ,&_fda );_cde !=nil {return _cde ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u0041\u006e\u0063\u0068\u006f\u0072"}:_beg .Anchor =new (string );if _gea :=d .DecodeElement (_beg .Anchor ,&_fda );_gea !=nil {return _gea ;};case _f .Name {Space :"\u0075\u0072\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// Validate validates the ClientData and its children
|
|
|
|
func (_eee *ClientData )Validate ()error {return _eee .ValidateWithPath ("\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_ClientData and its children, prefixing error messages with path
|
2020-08-31 22:58:25 +00:00
|
|
|
func (_ddbb *CT_ClientData )ValidateWithPath (path string )error {if _ddbb .ObjectTypeAttr ==ST_ObjectTypeUnset {return _d .Errorf ("\u0025\u0073\u002f\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065\u0041\u0074\u0074\u0072\u0020\u0069\u0073\u0020\u0061\u0020\u006da\u006e\u0064\u0061\u0074\u006fr\u0079\u0020f\u0069\u0065\u006c\u0064",path );};if _gcb :=_ddbb .ObjectTypeAttr .ValidateWithPath (path +"\u002fO\u0062j\u0065\u0063\u0074\u0054\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_gcb !=nil {return _gcb ;};if _dbc :=_ddbb .MoveWithCells .ValidateWithPath (path +"\u002f\u004d\u006f\u0076\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_dbc !=nil {return _dbc ;};if _agc :=_ddbb .SizeWithCells .ValidateWithPath (path +"\u002f\u0053\u0069\u007a\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_agc !=nil {return _agc ;};if _gbd :=_ddbb .Locked .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0065\u0064");_gbd !=nil {return _gbd ;};if _acf :=_ddbb .DefaultSize .ValidateWithPath (path +"\u002f\u0044\u0065f\u0061\u0075\u006c\u0074\u0053\u0069\u007a\u0065");_acf !=nil {return _acf ;};if _baa :=_ddbb .PrintObject .ValidateWithPath (path +"\u002f\u0050\u0072i\u006e\u0074\u004f\u0062\u006a\u0065\u0063\u0074");_baa !=nil {return _baa ;};if _cacd :=_ddbb .Disabled .ValidateWithPath (path +"\u002fD\u0069\u0073\u0061\u0062\u006c\u0065d");_cacd !=nil {return _cacd ;};if _acfc :=_ddbb .AutoFill .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0046\u0069\u006cl");_acfc !=nil {return _acfc ;};if _fcfg :=_ddbb .AutoLine .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u004c\u0069\u006ee");_fcfg !=nil {return _fcfg ;};if _faf :=_ddbb .AutoPict .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0050\u0069\u0063t");_faf !=nil {return _faf ;};if _adg :=_ddbb .LockText .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0054\u0065\u0078t");_adg !=nil {return _adg ;};if _fdgf :=_ddbb .JustLastX .ValidateWithPath (path +"\u002f\u004a\u0075\u0073\u0074\u004c\u0061\u0073\u0074\u0058");_fdgf !=nil {return _fdgf ;};if _dbe :=_ddbb .SecretEdit .ValidateWithPath (path +"/\u0053\u0065\u0063\u0072\u0065\u0074\u0045\u0064\u0069\u0074");_dbe !=nil {return _dbe ;};if _cgbc :=_ddbb .Default .ValidateWithPath (path +"\u002f\u0044\u0065\u0066\u0061\u0075\u006c\u0074");_cgbc !=nil {return _cgbc ;};if _bab :=_ddbb .Help .ValidateWithPath (path +"\u002f\u0048\u0065l\u0070");_bab !=nil {return _bab ;};if _feaa :=_ddbb .Cancel .ValidateWithPath (path +"\u002fC\u0061\u006e\u0063\u0065\u006c");_feaa !=nil {return _feaa ;};if _cfd :=_ddbb .Dismiss .ValidateWithPath (path +"\u002f\u0044\u0069\u0073\u006d\u0069\u0073\u0073");_cfd !=nil {return _cfd ;};if _ffg :=_ddbb .Visible .ValidateWithPath (path +"\u002f\u0056\u0069\u0073\u0069\u0062\u006c\u0065");_ffg !=nil {return _ffg ;};if _gacb :=_ddbb .RowHidden .ValidateWithPath (path +"\u002f\u0052\u006f\u0077\u0048\u0069\u0064\u0064\u0065\u006e");_gacb !=nil {return _gacb ;};if _bce :=_ddbb .ColHidden .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u0048\u0069\u0064\u0064\u0065\u006e");_bce !=nil {return _bce ;};if _bcec :=_ddbb .MultiLine .ValidateWithPath (path +"\u002f\u004d\u0075\u006c\u0074\u0069\u004c\u0069\u006e\u0065");_bcec !=nil {return _bcec ;};if _cce :=_ddbb .VScroll .ValidateWithPath (path +"\u002f\u0056\u0053\u0063\u0072\u006f\u006c\u006c");_cce !=nil {return _cce ;};if _cfdf :=_ddbb .ValidIds .ValidateWithPath (path +"\u002fV\u0061\u006c\u0069\u0064\u0049\u0064s");_cfdf !=nil {return _cfdf ;};if _fge :=_ddbb .NoThreeD2 .ValidateWithPath (path +"\u002f\u004e\u006f\u0054\u0068\u0072\u0065\u0065\u0044\u0032");_fge !=nil {return _fge ;};if _fee :=_ddbb .Colored .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u0065\u0064");_fee !=nil {return _fee ;};if _dde :=_ddbb .NoThreeD .ValidateWithPath (path +"\u002fN\u006f\u0054\u0068\u0072\u0065\u0065D");_dde !=nil {return _dde ;};if _gbe :=_ddbb .FirstButton .ValidateWithPath (path +"\u002f\u0046\u0069r\u0073\u0074\u0042\u0075\u0074\u0074\u006f\u006e");_gbe !=nil {return _gbe ;};if _afc :=_ddbb .Horiz .Validat
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2020-08-31 22:58:25 +00:00
|
|
|
// ValidateWithPath validates the ClientData and its children, prefixing error messages with path
|
|
|
|
func (_dac *ClientData )ValidateWithPath (path string )error {if _cacdc :=_dac .CT_ClientData .ValidateWithPath (path );_cacdc !=nil {return _cacdc ;};return nil ;};func (_ebdg *CT_ClientData )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_ebdg .ObjectTypeAttr =ST_ObjectType (1);for _ ,_bbe :=range start .Attr {if _bbe .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"{_ebdg .ObjectTypeAttr .UnmarshalXMLAttr (_bbe );continue ;};};_gb :for {_bbf ,_cgb :=d .Token ();if _cgb !=nil {return _cgb ;};switch _cadb :=_bbf .(type ){case _f .StartElement :switch _cadb .Name {case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u004d\u006f\u0076\u0065\u0057\u0069\u0074\u0068\u0043\u0065\u006c\u006c\u0073"}:_ebdg .MoveWithCells =_c .ST_TrueFalseBlankUnset ;if _dee :=d .DecodeElement (&_ebdg .MoveWithCells ,&_cadb );_dee !=nil {return _dee ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u0053\u0069\u007a\u0065\u0057\u0069\u0074\u0068\u0043\u0065\u006c\u006c\u0073"}:_ebdg .SizeWithCells =_c .ST_TrueFalseBlankUnset ;if _cecd :=d .DecodeElement (&_ebdg .SizeWithCells ,&_cadb );_cecd !=nil {return _cecd ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u0041\u006e\u0063\u0068\u006f\u0072"}:_ebdg .Anchor =new (string );if _edf :=d .DecodeElement (_ebdg .Anchor ,&_cadb );_edf !=nil {return _edf ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u004c\u006f\u0063\u006b\u0065\u0064"}:_ebdg .Locked =_c .ST_TrueFalseBlankUnset ;if _deda :=d .DecodeElement (&_ebdg .Locked ,&_cadb );_deda !=nil {return _deda ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"D\u0065\u0066\u0061\u0075\u006c\u0074\u0053\u0069\u007a\u0065"}:_ebdg .DefaultSize =_c .ST_TrueFalseBlankUnset ;if _ag :=d .DecodeElement (&_ebdg .DefaultSize ,&_cadb );_ag !=nil {return _ag ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"P\u0072\u0069\u006e\u0074\u004f\u0062\u006a\u0065\u0063\u0074"}:_ebdg .PrintObject =_c .ST_TrueFalseBlankUnset ;if _fcf :=d .DecodeElement (&_ebdg .PrintObject ,&_cadb );_fcf !=nil {return _fcf ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u0044\u0069\u0073\u0061\u0062\u006c\u0065\u0064"}:_ebdg .Disabled =_c .ST_TrueFalseBlankUnset ;if _fec :=d .DecodeElement (&_ebdg .Disabled ,&_cadb );_fec !=nil {return _fec ;};case _f .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c",Local :"\u0041\u0075\u0074\u006f\u0046\u0069\u006c\u006c"}:_ebdg .AutoFill =_c .ST_TrueFalseBlankUnset ;if _caf :=d .DecodeElement (&_ebdg .AutoFill ,&_cadb );_caf !=nil {return _caf ;};case _f .Name {S
|
|
|
|
|
|
|
|
// Validate validates the CT_ClientData and its children
|
|
|
|
func (_ddba *CT_ClientData )Validate ()error {return _ddba .ValidateWithPath ("\u0043\u0054\u005f\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};func (_eeg ST_ObjectType )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {return e .EncodeElement (_eeg .String (),start );};func init (){_fe .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c","\u0043\u0054\u005f\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061",NewCT_ClientData );_fe .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006fm\u003a\u006f\u0066\u0066\u0069c\u0065\u003ae\u0078\u0063\u0065\u006c","\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061",NewClientData );};
|