24 lines
85 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-05-31 16:22:30 +00:00
package excel ;import (_fc "encoding/xml";_e "fmt";_g "github.com/unidoc/unioffice";_c "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";);func NewCT_ClientData ()*CT_ClientData {_b :=&CT_ClientData {};_b .ObjectTypeAttr =ST_ObjectType (1);return _b ;};func (_abg ST_ObjectType )MarshalXMLAttr (name _fc .Name )(_fc .Attr ,error ){_cge :=_fc .Attr {};_cge .Name =name ;switch _abg {case ST_ObjectTypeUnset :_cge .Value ="";case ST_ObjectTypeButton :_cge .Value ="\u0042\u0075\u0074\u0074\u006f\u006e";case ST_ObjectTypeCheckbox :_cge .Value ="\u0043\u0068\u0065\u0063\u006b\u0062\u006f\u0078";case ST_ObjectTypeDialog :_cge .Value ="\u0044\u0069\u0061\u006c\u006f\u0067";case ST_ObjectTypeDrop :_cge .Value ="\u0044\u0072\u006f\u0070";case ST_ObjectTypeEdit :_cge .Value ="\u0045\u0064\u0069\u0074";case ST_ObjectTypeGBox :_cge .Value ="\u0047\u0042\u006f\u0078";case ST_ObjectTypeLabel :_cge .Value ="\u004c\u0061\u0062e\u006c";case ST_ObjectTypeLineA :_cge .Value ="\u004c\u0069\u006ee\u0041";case ST_ObjectTypeList :_cge .Value ="\u004c\u0069\u0073\u0074";case ST_ObjectTypeMovie :_cge .Value ="\u004d\u006f\u0076i\u0065";case ST_ObjectTypeNote :_cge .Value ="\u004e\u006f\u0074\u0065";case ST_ObjectTypePict :_cge .Value ="\u0050\u0069\u0063\u0074";case ST_ObjectTypeRadio :_cge .Value ="\u0052\u0061\u0064i\u006f";case ST_ObjectTypeRectA :_cge .Value ="\u0052\u0065\u0063t\u0041";case ST_ObjectTypeScroll :_cge .Value ="\u0053\u0063\u0072\u006f\u006c\u006c";case ST_ObjectTypeSpin :_cge .Value ="\u0053\u0070\u0069\u006e";case ST_ObjectTypeShape :_cge .Value ="\u0053\u0068\u0061p\u0065";case ST_ObjectTypeGroup :_cge .Value ="\u0047\u0072\u006fu\u0070";case ST_ObjectTypeRect :_cge .Value ="\u0052\u0065\u0063\u0074";};return _cge ,nil ;};func (_faa ST_ObjectType )ValidateWithPath (path string )error {switch _faa {case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19:default:return _e .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_faa ));};return nil ;};func (_dda ST_ObjectType )MarshalXML (e *_fc .Encoder ,start _fc .StartElement )error {return e .EncodeElement (_dda .String (),start );};func (_eebfd *ST_ObjectType )UnmarshalXMLAttr (attr _fc .Attr )error {switch attr .Value {case "":*_eebfd =0;case "\u0042\u0075\u0074\u0074\u006f\u006e":*_eebfd =1;case "\u0043\u0068\u0065\u0063\u006b\u0062\u006f\u0078":*_eebfd =2;case "\u0044\u0069\u0061\u006c\u006f\u0067":*_eebfd =3;case "\u0044\u0072\u006f\u0070":*_eebfd =4;case "\u0045\u0064\u0069\u0074":*_eebfd =5;case "\u0047\u0042\u006f\u0078":*_eebfd =6;case "\u004c\u0061\u0062e\u006c":*_eebfd =7;case "\u004c\u0069\u006ee\u0041":*_eebfd =8;case "\u004c\u0069\u0073\u0074":*_eebfd =9;case "\u004d\u006f\u0076i\u0065":*_eebfd =10;case "\u004e\u006f\u0074\u0065":*_eebfd =11;case "\u0050\u0069\u0063\u0074":*_eebfd =12;case "\u0052\u0061\u0064i\u006f":*_eebfd =13;case "\u0052\u0065\u0063t\u0041":*_eebfd =14;case "\u0053\u0063\u0072\u006f\u006c\u006c":*_eebfd =15;case "\u0053\u0070\u0069\u006e":*_eebfd =16;case "\u0053\u0068\u0061p\u0065":*_eebfd =17;case "\u0047\u0072\u006fu\u0070":*_eebfd =18;case "\u0052\u0065\u0063\u0074":*_eebfd =19;};return nil ;};func (_bd *CT_ClientData )MarshalXML (e *_fc .Encoder ,start _fc .StartElement )error {_ca ,_ce :=_bd .ObjectTypeAttr .MarshalXMLAttr (_fc .Name {Local :"\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"});if _ce !=nil {return _ce ;};start .Attr =append (start .Attr ,_ca );e .EncodeToken (start );if _bd .MoveWithCells !=_c .ST_TrueFalseBlankUnset {_ec :=_fc .StartElement {Name :_fc .Name {Local :"\u0078:\u004do\u0076\u0065\u0057\u0069\u0074\u0068\u0043\u0065\u006c\u006c\u0073"}};e .EncodeElement (_bd .MoveWithCells ,_ec );};if _bd .SizeWithCells !=_c .ST_TrueFalseBlankUnset {_cec :=_fc .StartElement {Name :_fc .Name {Local :"\u0078:\u0053i\u007a\u0065\u0057\u0069\u0074\u0068\u0043\u0065\u006c\u006c\u0073"}};e .EncodeElement (_bd .SizeWithCells ,_cec );};if _bd .Anchor !=nil {_bdb :=_fc .StartElement {Name :_fc .Name {Local :"\u0078\u003a\u0041\u
2021-03-16 20:51:18 +00:00
2021-05-31 16:22:30 +00:00
// Validate validates the CT_ClientData and its children
func (_gabb *CT_ClientData )Validate ()error {return _gabb .ValidateWithPath ("\u0043\u0054\u005f\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};func (_bfdg ST_ObjectType )String ()string {switch _bfdg {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 "";};
2020-10-12 13:59:12 +00:00
2021-05-31 16:22:30 +00:00
// ValidateWithPath validates the ClientData and its children, prefixing error messages with path
func (_cccg *ClientData )ValidateWithPath (path string )error {if _adec :=_cccg .CT_ClientData .ValidateWithPath (path );_adec !=nil {return _adec ;};return nil ;};func (_aec ST_ObjectType )Validate ()error {return _aec .ValidateWithPath ("")};func (_eab *ClientData )UnmarshalXML (d *_fc .Decoder ,start _fc .StartElement )error {_eab .CT_ClientData =*NewCT_ClientData ();for _ ,_cbb :=range start .Attr {if _cbb .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"{_eab .ObjectTypeAttr .UnmarshalXMLAttr (_cbb );continue ;};};_bbce :for {_ggfad ,_fgg :=d .Token ();if _fgg !=nil {return _fgg ;};switch _abc :=_ggfad .(type ){case _fc .StartElement :switch _abc .Name {case _fc .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"}:_eab .MoveWithCells =_c .ST_TrueFalseBlankUnset ;if _cfc :=d .DecodeElement (&_eab .MoveWithCells ,&_abc );_cfc !=nil {return _cfc ;};case _fc .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"}:_eab .SizeWithCells =_c .ST_TrueFalseBlankUnset ;if _cgd :=d .DecodeElement (&_eab .SizeWithCells ,&_abc );_cgd !=nil {return _cgd ;};case _fc .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"}:_eab .Anchor =new (string );if _dbba :=d .DecodeElement (_eab .Anchor ,&_abc );_dbba !=nil {return _dbba ;};case _fc .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"}:_eab .Locked =_c .ST_TrueFalseBlankUnset ;if _egf :=d .DecodeElement (&_eab .Locked ,&_abc );_egf !=nil {return _egf ;};case _fc .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"}:_eab .DefaultSize =_c .ST_TrueFalseBlankUnset ;if _fgf :=d .DecodeElement (&_eab .DefaultSize ,&_abc );_fgf !=nil {return _fgf ;};case _fc .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"}:_eab .PrintObject =_c .ST_TrueFalseBlankUnset ;if _dge :=d .DecodeElement (&_eab .PrintObject ,&_abc );_dge !=nil {return _dge ;};case _fc .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"}:_eab .Disabled =_c .ST_TrueFalseBlankUnset ;if _ggc :=d .DecodeElement (&_eab .Disabled ,&_abc );_ggc !=nil {return _ggc ;};case _fc .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"}:_eab .AutoFill =_c .ST_TrueFalseBlankUnset ;if _feac :=d .DecodeElement (&
2021-01-04 16:11:39 +00:00
// ValidateWithPath validates the CT_ClientData and its children, prefixing error messages with path
2021-05-31 16:22:30 +00:00
func (_bcg *CT_ClientData )ValidateWithPath (path string )error {if _bcg .ObjectTypeAttr ==ST_ObjectTypeUnset {return _e .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 _ebf :=_bcg .ObjectTypeAttr .ValidateWithPath (path +"\u002fO\u0062j\u0065\u0063\u0074\u0054\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_ebf !=nil {return _ebf ;};if _eace :=_bcg .MoveWithCells .ValidateWithPath (path +"\u002f\u004d\u006f\u0076\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_eace !=nil {return _eace ;};if _dd :=_bcg .SizeWithCells .ValidateWithPath (path +"\u002f\u0053\u0069\u007a\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_dd !=nil {return _dd ;};if _ffe :=_bcg .Locked .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0065\u0064");_ffe !=nil {return _ffe ;};if _ebed :=_bcg .DefaultSize .ValidateWithPath (path +"\u002f\u0044\u0065f\u0061\u0075\u006c\u0074\u0053\u0069\u007a\u0065");_ebed !=nil {return _ebed ;};if _baf :=_bcg .PrintObject .ValidateWithPath (path +"\u002f\u0050\u0072i\u006e\u0074\u004f\u0062\u006a\u0065\u0063\u0074");_baf !=nil {return _baf ;};if _cceb :=_bcg .Disabled .ValidateWithPath (path +"\u002fD\u0069\u0073\u0061\u0062\u006c\u0065d");_cceb !=nil {return _cceb ;};if _dbcf :=_bcg .AutoFill .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0046\u0069\u006cl");_dbcf !=nil {return _dbcf ;};if _ebeb :=_bcg .AutoLine .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u004c\u0069\u006ee");_ebeb !=nil {return _ebeb ;};if _efg :=_bcg .AutoPict .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0050\u0069\u0063t");_efg !=nil {return _efg ;};if _dcf :=_bcg .LockText .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0054\u0065\u0078t");_dcf !=nil {return _dcf ;};if _bada :=_bcg .JustLastX .ValidateWithPath (path +"\u002f\u004a\u0075\u0073\u0074\u004c\u0061\u0073\u0074\u0058");_bada !=nil {return _bada ;};if _fcd :=_bcg .SecretEdit .ValidateWithPath (path +"/\u0053\u0065\u0063\u0072\u0065\u0074\u0045\u0064\u0069\u0074");_fcd !=nil {return _fcd ;};if _aab :=_bcg .Default .ValidateWithPath (path +"\u002f\u0044\u0065\u0066\u0061\u0075\u006c\u0074");_aab !=nil {return _aab ;};if _eagb :=_bcg .Help .ValidateWithPath (path +"\u002f\u0048\u0065l\u0070");_eagb !=nil {return _eagb ;};if _cee :=_bcg .Cancel .ValidateWithPath (path +"\u002fC\u0061\u006e\u0063\u0065\u006c");_cee !=nil {return _cee ;};if _ebecd :=_bcg .Dismiss .ValidateWithPath (path +"\u002f\u0044\u0069\u0073\u006d\u0069\u0073\u0073");_ebecd !=nil {return _ebecd ;};if _ag :=_bcg .Visible .ValidateWithPath (path +"\u002f\u0056\u0069\u0073\u0069\u0062\u006c\u0065");_ag !=nil {return _ag ;};if _bdbe :=_bcg .RowHidden .ValidateWithPath (path +"\u002f\u0052\u006f\u0077\u0048\u0069\u0064\u0064\u0065\u006e");_bdbe !=nil {return _bdbe ;};if _cg :=_bcg .ColHidden .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u0048\u0069\u0064\u0064\u0065\u006e");_cg !=nil {return _cg ;};if _fcg :=_bcg .MultiLine .ValidateWithPath (path +"\u002f\u004d\u0075\u006c\u0074\u0069\u004c\u0069\u006e\u0065");_fcg !=nil {return _fcg ;};if _cdf :=_bcg .VScroll .ValidateWithPath (path +"\u002f\u0056\u0053\u0063\u0072\u006f\u006c\u006c");_cdf !=nil {return _cdf ;};if _ggfa :=_bcg .ValidIds .ValidateWithPath (path +"\u002fV\u0061\u006c\u0069\u0064\u0049\u0064s");_ggfa !=nil {return _ggfa ;};if _dcc :=_bcg .NoThreeD2 .ValidateWithPath (path +"\u002f\u004e\u006f\u0054\u0068\u0072\u0065\u0065\u0044\u0032");_dcc !=nil {return _dcc ;};if _bgba :=_bcg .Colored .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u0065\u0064");_bgba !=nil {return _bgba ;};if _dea :=_bcg .NoThreeD .ValidateWithPath (path +"\u002fN\u006f\u0054\u0068\u0072\u0065\u0065D");_dea !=nil {return _dea ;};if _dbe :=_bcg .FirstButton .ValidateWithPath (path +"\u002f\u0046\u0069r\u0073\u0074\u0042\u0075\u0074\u0074\u006f\u006e");_dbe !=nil {return _dbe ;};if _gba :=_bcg .Horiz .ValidateWithPath (path +"\u002f\u0048
2021-04-23 20:00:00 +00:00
2021-05-31 16:22:30 +00:00
// Validate validates the ClientData and its children
func (_acbf *ClientData )Validate ()error {return _acbf .ValidateWithPath ("\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};func init (){_g .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 );_g .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 );};