24 lines
84 KiB
Go
Raw Normal View History

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/
2021-01-04 16:11:39 +00:00
package excel ;import (_e "encoding/xml";_g "fmt";_c "github.com/unidoc/unioffice";_a "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";);func NewCT_ClientData ()*CT_ClientData {_d :=&CT_ClientData {};_d .ObjectTypeAttr =ST_ObjectType (1);return _d ;};func (_cfd *CT_ClientData )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cfd .ObjectTypeAttr =ST_ObjectType (1);for _ ,_aacg :=range start .Attr {if _aacg .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"{_cfd .ObjectTypeAttr .UnmarshalXMLAttr (_aacg );continue ;};};_ccc :for {_abg ,_dca :=d .Token ();if _dca !=nil {return _dca ;};switch _afg :=_abg .(type ){case _e .StartElement :switch _afg .Name {case _e .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"}:_cfd .MoveWithCells =_a .ST_TrueFalseBlankUnset ;if _eg :=d .DecodeElement (&_cfd .MoveWithCells ,&_afg );_eg !=nil {return _eg ;};case _e .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"}:_cfd .SizeWithCells =_a .ST_TrueFalseBlankUnset ;if _gg :=d .DecodeElement (&_cfd .SizeWithCells ,&_afg );_gg !=nil {return _gg ;};case _e .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"}:_cfd .Anchor =new (string );if _abfe :=d .DecodeElement (_cfd .Anchor ,&_afg );_abfe !=nil {return _abfe ;};case _e .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"}:_cfd .Locked =_a .ST_TrueFalseBlankUnset ;if _bfd :=d .DecodeElement (&_cfd .Locked ,&_afg );_bfd !=nil {return _bfd ;};case _e .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"}:_cfd .DefaultSize =_a .ST_TrueFalseBlankUnset ;if _acf :=d .DecodeElement (&_cfd .DefaultSize ,&_afg );_acf !=nil {return _acf ;};case _e .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"}:_cfd .PrintObject =_a .ST_TrueFalseBlankUnset ;if _gfa :=d .DecodeElement (&_cfd .PrintObject ,&_afg );_gfa !=nil {return _gfa ;};case _e .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"}:_cfd .Disabled =_a .ST_TrueFalseBlankUnset ;if _abd :=d .DecodeElement (&_cfd .Disabled ,&_afg );_abd !=nil {return _abd ;};case _e .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"}:_cfd .AutoFill =_a .ST_TrueFalseBlankUnset ;if _gda :=d .DecodeElement (&_cfd
2020-10-12 13:59:12 +00:00
2020-11-09 01:00:18 +00:00
// Validate validates the ClientData and its children
2021-01-04 16:11:39 +00:00
func (_cdbb *ClientData )Validate ()error {return _cdbb .ValidateWithPath ("\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};func (_cfb *ClientData )UnmarshalXML (d *_e .Decoder ,start _e .StartElement )error {_cfb .CT_ClientData =*NewCT_ClientData ();for _ ,_bga :=range start .Attr {if _bga .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"{_cfb .ObjectTypeAttr .UnmarshalXMLAttr (_bga );continue ;};};_caa :for {_ded ,_cfbg :=d .Token ();if _cfbg !=nil {return _cfbg ;};switch _bege :=_ded .(type ){case _e .StartElement :switch _bege .Name {case _e .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"}:_cfb .MoveWithCells =_a .ST_TrueFalseBlankUnset ;if _cge :=d .DecodeElement (&_cfb .MoveWithCells ,&_bege );_cge !=nil {return _cge ;};case _e .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"}:_cfb .SizeWithCells =_a .ST_TrueFalseBlankUnset ;if _bgab :=d .DecodeElement (&_cfb .SizeWithCells ,&_bege );_bgab !=nil {return _bgab ;};case _e .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"}:_cfb .Anchor =new (string );if _eaag :=d .DecodeElement (_cfb .Anchor ,&_bege );_eaag !=nil {return _eaag ;};case _e .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"}:_cfb .Locked =_a .ST_TrueFalseBlankUnset ;if _eefg :=d .DecodeElement (&_cfb .Locked ,&_bege );_eefg !=nil {return _eefg ;};case _e .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"}:_cfb .DefaultSize =_a .ST_TrueFalseBlankUnset ;if _eebb :=d .DecodeElement (&_cfb .DefaultSize ,&_bege );_eebb !=nil {return _eebb ;};case _e .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"}:_cfb .PrintObject =_a .ST_TrueFalseBlankUnset ;if _agd :=d .DecodeElement (&_cfb .PrintObject ,&_bege );_agd !=nil {return _agd ;};case _e .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"}:_cfb .Disabled =_a .ST_TrueFalseBlankUnset ;if _gcg :=d .DecodeElement (&_cfb .Disabled ,&_bege );_gcg !=nil {return _gcg ;};case _e .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"}:_cfb .AutoFill =_a .ST_TrueFalseBlankUnset ;if _efb :=d .DecodeElement (&_cfb .AutoFill ,&_bege );_efb !=nil {return _efb ;};case _e .Name {Space :"\u0075\u0072\u006e\u003a
2020-08-31 22:58:25 +00:00
// Validate validates the CT_ClientData and its children
2021-01-04 16:11:39 +00:00
func (_gea *CT_ClientData )Validate ()error {return _gea .ValidateWithPath ("\u0043\u0054\u005f\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};
// ValidateWithPath validates the CT_ClientData and its children, prefixing error messages with path
func (_aef *CT_ClientData )ValidateWithPath (path string )error {if _aef .ObjectTypeAttr ==ST_ObjectTypeUnset {return _g .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 _gadd :=_aef .ObjectTypeAttr .ValidateWithPath (path +"\u002fO\u0062j\u0065\u0063\u0074\u0054\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_gadd !=nil {return _gadd ;};if _dcae :=_aef .MoveWithCells .ValidateWithPath (path +"\u002f\u004d\u006f\u0076\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_dcae !=nil {return _dcae ;};if _gag :=_aef .SizeWithCells .ValidateWithPath (path +"\u002f\u0053\u0069\u007a\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_gag !=nil {return _gag ;};if _ggd :=_aef .Locked .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0065\u0064");_ggd !=nil {return _ggd ;};if _cde :=_aef .DefaultSize .ValidateWithPath (path +"\u002f\u0044\u0065f\u0061\u0075\u006c\u0074\u0053\u0069\u007a\u0065");_cde !=nil {return _cde ;};if _fega :=_aef .PrintObject .ValidateWithPath (path +"\u002f\u0050\u0072i\u006e\u0074\u004f\u0062\u006a\u0065\u0063\u0074");_fega !=nil {return _fega ;};if _feb :=_aef .Disabled .ValidateWithPath (path +"\u002fD\u0069\u0073\u0061\u0062\u006c\u0065d");_feb !=nil {return _feb ;};if _degg :=_aef .AutoFill .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0046\u0069\u006cl");_degg !=nil {return _degg ;};if _agb :=_aef .AutoLine .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u004c\u0069\u006ee");_agb !=nil {return _agb ;};if _bae :=_aef .AutoPict .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0050\u0069\u0063t");_bae !=nil {return _bae ;};if _fda :=_aef .LockText .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0054\u0065\u0078t");_fda !=nil {return _fda ;};if _afa :=_aef .JustLastX .ValidateWithPath (path +"\u002f\u004a\u0075\u0073\u0074\u004c\u0061\u0073\u0074\u0058");_afa !=nil {return _afa ;};if _gge :=_aef .SecretEdit .ValidateWithPath (path +"/\u0053\u0065\u0063\u0072\u0065\u0074\u0045\u0064\u0069\u0074");_gge !=nil {return _gge ;};if _dfgc :=_aef .Default .ValidateWithPath (path +"\u002f\u0044\u0065\u0066\u0061\u0075\u006c\u0074");_dfgc !=nil {return _dfgc ;};if _aff :=_aef .Help .ValidateWithPath (path +"\u002f\u0048\u0065l\u0070");_aff !=nil {return _aff ;};if _aab :=_aef .Cancel .ValidateWithPath (path +"\u002fC\u0061\u006e\u0063\u0065\u006c");_aab !=nil {return _aab ;};if _aaca :=_aef .Dismiss .ValidateWithPath (path +"\u002f\u0044\u0069\u0073\u006d\u0069\u0073\u0073");_aaca !=nil {return _aaca ;};if _afdd :=_aef .Visible .ValidateWithPath (path +"\u002f\u0056\u0069\u0073\u0069\u0062\u006c\u0065");_afdd !=nil {return _afdd ;};if _egd :=_aef .RowHidden .ValidateWithPath (path +"\u002f\u0052\u006f\u0077\u0048\u0069\u0064\u0064\u0065\u006e");_egd !=nil {return _egd ;};if _beab :=_aef .ColHidden .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u0048\u0069\u0064\u0064\u0065\u006e");_beab !=nil {return _beab ;};if _edge :=_aef .MultiLine .ValidateWithPath (path +"\u002f\u004d\u0075\u006c\u0074\u0069\u004c\u0069\u006e\u0065");_edge !=nil {return _edge ;};if _cdb :=_aef .VScroll .ValidateWithPath (path +"\u002f\u0056\u0053\u0063\u0072\u006f\u006c\u006c");_cdb !=nil {return _cdb ;};if _ead :=_aef .ValidIds .ValidateWithPath (path +"\u002fV\u0061\u006c\u0069\u0064\u0049\u0064s");_ead !=nil {return _ead ;};if _gcf :=_aef .NoThreeD2 .ValidateWithPath (path +"\u002f\u004e\u006f\u0054\u0068\u0072\u0065\u0065\u0044\u0032");_gcf !=nil {return _gcf ;};if _aag :=_aef .Colored .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u0065\u0064");_aag !=nil {return _aag ;};if _ddb :=_aef .NoThreeD .ValidateWithPath (path +"\u002fN\u006f\u0054\u0068\u0072\u0065\u0065D");_ddb !=nil {return _ddb ;};if _fbg :=_aef .FirstButton .ValidateWithPath (path +"\u002f\u0046\u0069r\u0073\u0074\u0042\u0075\u0074\u0074\u006f\u006e");_fbg !=nil {return _fbg ;};if _ecc :=_aef .Horiz .ValidateWithPath (path +"\u002f\u0048
2020-11-09 01:00:18 +00:00
2020-12-17 22:07:08 +00:00
// ValidateWithPath validates the ClientData and its children, prefixing error messages with path
2021-01-04 16:11:39 +00:00
func (_gcgb *ClientData )ValidateWithPath (path string )error {if _cff :=_gcgb .CT_ClientData .ValidateWithPath (path );_cff !=nil {return _cff ;};return nil ;};func init (){_c .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 );_c .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 );};