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-04-23 20:00:00 +00:00
|
|
|
package excel ;import (_f "encoding/xml";_g "fmt";_db "github.com/unidoc/unioffice";_a "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";);func (_cbef ST_ObjectType )Validate ()error {return _cbef .ValidateWithPath ("")};func (_faee *ClientData )UnmarshalXML (d *_f .Decoder ,start _f .StartElement )error {_faee .CT_ClientData =*NewCT_ClientData ();for _ ,_egf :=range start .Attr {if _egf .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"{_faee .ObjectTypeAttr .UnmarshalXMLAttr (_egf );continue ;};};_fbf :for {_egbd ,_cca :=d .Token ();if _cca !=nil {return _cca ;};switch _eeb :=_egbd .(type ){case _f .StartElement :switch _eeb .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"}:_faee .MoveWithCells =_a .ST_TrueFalseBlankUnset ;if _cbe :=d .DecodeElement (&_faee .MoveWithCells ,&_eeb );_cbe !=nil {return _cbe ;};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"}:_faee .SizeWithCells =_a .ST_TrueFalseBlankUnset ;if _bde :=d .DecodeElement (&_faee .SizeWithCells ,&_eeb );_bde !=nil {return _bde ;};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"}:_faee .Anchor =new (string );if _cfb :=d .DecodeElement (_faee .Anchor ,&_eeb );_cfb !=nil {return _cfb ;};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"}:_faee .Locked =_a .ST_TrueFalseBlankUnset ;if _aacf :=d .DecodeElement (&_faee .Locked ,&_eeb );_aacf !=nil {return _aacf ;};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"}:_faee .DefaultSize =_a .ST_TrueFalseBlankUnset ;if _adf :=d .DecodeElement (&_faee .DefaultSize ,&_eeb );_adf !=nil {return _adf ;};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"}:_faee .PrintObject =_a .ST_TrueFalseBlankUnset ;if _fdad :=d .DecodeElement (&_faee .PrintObject ,&_eeb );_fdad !=nil {return _fdad ;};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"}:_faee .Disabled =_a .ST_TrueFalseBlankUnset ;if _fbcd :=d .DecodeElement (&_faee .Disabled ,&_eeb );_fbcd !=nil {return _fbcd ;};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"}:_faee .AutoFill =_a .ST_TrueFalseBlankUnset ;if _def :=d .DecodeElement (&_faee .
|
2021-03-16 20:51:18 +00:00
|
|
|
|
|
|
|
// ValidateWithPath validates the ClientData and its children, prefixing error messages with path
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_dcc *ClientData )ValidateWithPath (path string )error {if _bcec :=_dcc .CT_ClientData .ValidateWithPath (path );_bcec !=nil {return _bcec ;};return nil ;};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2020-11-09 01:00:18 +00:00
|
|
|
// Validate validates the ClientData and its children
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_fab *ClientData )Validate ()error {return _fab .ValidateWithPath ("\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};func (_agb ST_ObjectType )MarshalXMLAttr (name _f .Name )(_f .Attr ,error ){_ccf :=_f .Attr {};_ccf .Name =name ;switch _agb {case ST_ObjectTypeUnset :_ccf .Value ="";case ST_ObjectTypeButton :_ccf .Value ="\u0042\u0075\u0074\u0074\u006f\u006e";case ST_ObjectTypeCheckbox :_ccf .Value ="\u0043\u0068\u0065\u0063\u006b\u0062\u006f\u0078";case ST_ObjectTypeDialog :_ccf .Value ="\u0044\u0069\u0061\u006c\u006f\u0067";case ST_ObjectTypeDrop :_ccf .Value ="\u0044\u0072\u006f\u0070";case ST_ObjectTypeEdit :_ccf .Value ="\u0045\u0064\u0069\u0074";case ST_ObjectTypeGBox :_ccf .Value ="\u0047\u0042\u006f\u0078";case ST_ObjectTypeLabel :_ccf .Value ="\u004c\u0061\u0062e\u006c";case ST_ObjectTypeLineA :_ccf .Value ="\u004c\u0069\u006ee\u0041";case ST_ObjectTypeList :_ccf .Value ="\u004c\u0069\u0073\u0074";case ST_ObjectTypeMovie :_ccf .Value ="\u004d\u006f\u0076i\u0065";case ST_ObjectTypeNote :_ccf .Value ="\u004e\u006f\u0074\u0065";case ST_ObjectTypePict :_ccf .Value ="\u0050\u0069\u0063\u0074";case ST_ObjectTypeRadio :_ccf .Value ="\u0052\u0061\u0064i\u006f";case ST_ObjectTypeRectA :_ccf .Value ="\u0052\u0065\u0063t\u0041";case ST_ObjectTypeScroll :_ccf .Value ="\u0053\u0063\u0072\u006f\u006c\u006c";case ST_ObjectTypeSpin :_ccf .Value ="\u0053\u0070\u0069\u006e";case ST_ObjectTypeShape :_ccf .Value ="\u0053\u0068\u0061p\u0065";case ST_ObjectTypeGroup :_ccf .Value ="\u0047\u0072\u006fu\u0070";case ST_ObjectTypeRect :_ccf .Value ="\u0052\u0065\u0063\u0074";};return _ccf ,nil ;};
|
2021-01-04 16:11:39 +00:00
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_ClientData and its children, prefixing error messages with path
|
2021-04-23 20:00:00 +00:00
|
|
|
func (_afg *CT_ClientData )ValidateWithPath (path string )error {if _afg .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 _bbf :=_afg .ObjectTypeAttr .ValidateWithPath (path +"\u002fO\u0062j\u0065\u0063\u0074\u0054\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_bbf !=nil {return _bbf ;};if _ecc :=_afg .MoveWithCells .ValidateWithPath (path +"\u002f\u004d\u006f\u0076\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_ecc !=nil {return _ecc ;};if _bcc :=_afg .SizeWithCells .ValidateWithPath (path +"\u002f\u0053\u0069\u007a\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_bcc !=nil {return _bcc ;};if _agd :=_afg .Locked .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0065\u0064");_agd !=nil {return _agd ;};if _beg :=_afg .DefaultSize .ValidateWithPath (path +"\u002f\u0044\u0065f\u0061\u0075\u006c\u0074\u0053\u0069\u007a\u0065");_beg !=nil {return _beg ;};if _gcg :=_afg .PrintObject .ValidateWithPath (path +"\u002f\u0050\u0072i\u006e\u0074\u004f\u0062\u006a\u0065\u0063\u0074");_gcg !=nil {return _gcg ;};if _cab :=_afg .Disabled .ValidateWithPath (path +"\u002fD\u0069\u0073\u0061\u0062\u006c\u0065d");_cab !=nil {return _cab ;};if _ffc :=_afg .AutoFill .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0046\u0069\u006cl");_ffc !=nil {return _ffc ;};if _adbc :=_afg .AutoLine .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u004c\u0069\u006ee");_adbc !=nil {return _adbc ;};if _bfge :=_afg .AutoPict .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0050\u0069\u0063t");_bfge !=nil {return _bfge ;};if _dac :=_afg .LockText .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0054\u0065\u0078t");_dac !=nil {return _dac ;};if _faeb :=_afg .JustLastX .ValidateWithPath (path +"\u002f\u004a\u0075\u0073\u0074\u004c\u0061\u0073\u0074\u0058");_faeb !=nil {return _faeb ;};if _baad :=_afg .SecretEdit .ValidateWithPath (path +"/\u0053\u0065\u0063\u0072\u0065\u0074\u0045\u0064\u0069\u0074");_baad !=nil {return _baad ;};if _fba :=_afg .Default .ValidateWithPath (path +"\u002f\u0044\u0065\u0066\u0061\u0075\u006c\u0074");_fba !=nil {return _fba ;};if _dad :=_afg .Help .ValidateWithPath (path +"\u002f\u0048\u0065l\u0070");_dad !=nil {return _dad ;};if _gadf :=_afg .Cancel .ValidateWithPath (path +"\u002fC\u0061\u006e\u0063\u0065\u006c");_gadf !=nil {return _gadf ;};if _bad :=_afg .Dismiss .ValidateWithPath (path +"\u002f\u0044\u0069\u0073\u006d\u0069\u0073\u0073");_bad !=nil {return _bad ;};if _ggf :=_afg .Visible .ValidateWithPath (path +"\u002f\u0056\u0069\u0073\u0069\u0062\u006c\u0065");_ggf !=nil {return _ggf ;};if _bgg :=_afg .RowHidden .ValidateWithPath (path +"\u002f\u0052\u006f\u0077\u0048\u0069\u0064\u0064\u0065\u006e");_bgg !=nil {return _bgg ;};if _bce :=_afg .ColHidden .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u0048\u0069\u0064\u0064\u0065\u006e");_bce !=nil {return _bce ;};if _abf :=_afg .MultiLine .ValidateWithPath (path +"\u002f\u004d\u0075\u006c\u0074\u0069\u004c\u0069\u006e\u0065");_abf !=nil {return _abf ;};if _gdfa :=_afg .VScroll .ValidateWithPath (path +"\u002f\u0056\u0053\u0063\u0072\u006f\u006c\u006c");_gdfa !=nil {return _gdfa ;};if _fbe :=_afg .ValidIds .ValidateWithPath (path +"\u002fV\u0061\u006c\u0069\u0064\u0049\u0064s");_fbe !=nil {return _fbe ;};if _edde :=_afg .NoThreeD2 .ValidateWithPath (path +"\u002f\u004e\u006f\u0054\u0068\u0072\u0065\u0065\u0044\u0032");_edde !=nil {return _edde ;};if _aab :=_afg .Colored .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u0065\u0064");_aab !=nil {return _aab ;};if _gec :=_afg .NoThreeD .ValidateWithPath (path +"\u002fN\u006f\u0054\u0068\u0072\u0065\u0065D");_gec !=nil {return _gec ;};if _fdb :=_afg .FirstButton .ValidateWithPath (path +"\u002f\u0046\u0069r\u0073\u0074\u0042\u0075\u0074\u0074\u006f\u006e");_fdb !=nil {return _fdb ;};if _aacd :=_afg .Horiz .ValidateWithPath (path +"\u002f\u0048\u006
|
|
|
|
|
|
|
|
// Validate validates the CT_ClientData and its children
|
|
|
|
func (_cadf *CT_ClientData )Validate ()error {return _cadf .ValidateWithPath ("\u0043\u0054\u005f\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};type CT_ClientData struct{ObjectTypeAttr ST_ObjectType ;MoveWithCells _a .ST_TrueFalseBlank ;SizeWithCells _a .ST_TrueFalseBlank ;Anchor *string ;Locked _a .ST_TrueFalseBlank ;DefaultSize _a .ST_TrueFalseBlank ;PrintObject _a .ST_TrueFalseBlank ;Disabled _a .ST_TrueFalseBlank ;AutoFill _a .ST_TrueFalseBlank ;AutoLine _a .ST_TrueFalseBlank ;AutoPict _a .ST_TrueFalseBlank ;FmlaMacro *string ;TextHAlign *string ;TextVAlign *string ;LockText _a .ST_TrueFalseBlank ;JustLastX _a .ST_TrueFalseBlank ;SecretEdit _a .ST_TrueFalseBlank ;Default _a .ST_TrueFalseBlank ;Help _a .ST_TrueFalseBlank ;Cancel _a .ST_TrueFalseBlank ;Dismiss _a .ST_TrueFalseBlank ;Accel *int64 ;Accel2 *int64 ;Row *int64 ;Column *int64 ;Visible _a .ST_TrueFalseBlank ;RowHidden _a .ST_TrueFalseBlank ;ColHidden _a .ST_TrueFalseBlank ;VTEdit *int64 ;MultiLine _a .ST_TrueFalseBlank ;VScroll _a .ST_TrueFalseBlank ;ValidIds _a .ST_TrueFalseBlank ;FmlaRange *string ;WidthMin *int64 ;Sel *int64 ;NoThreeD2 _a .ST_TrueFalseBlank ;SelType *string ;MultiSel *string ;LCT *string ;ListItem *string ;DropStyle *string ;Colored _a .ST_TrueFalseBlank ;DropLines *int64 ;Checked *int64 ;FmlaLink *string ;FmlaPict *string ;NoThreeD _a .ST_TrueFalseBlank ;FirstButton _a .ST_TrueFalseBlank ;FmlaGroup *string ;Val *int64 ;Min *int64 ;Max *int64 ;Inc *int64 ;Page *int64 ;Horiz _a .ST_TrueFalseBlank ;Dx *int64 ;MapOCX _a .ST_TrueFalseBlank ;CF []string ;Camera _a .ST_TrueFalseBlank ;RecalcAlways _a .ST_TrueFalseBlank ;AutoScale _a .ST_TrueFalseBlank ;DDE _a .ST_TrueFalseBlank ;UIObj _a .ST_TrueFalseBlank ;ScriptText *string ;ScriptExtended *string ;ScriptLanguage *uint32 ;ScriptLocation *uint32 ;FmlaTxbx *string ;};func (_gd *CT_ClientData )MarshalXML (e *_f .Encoder ,start _f .StartElement )error {_fe ,_e :=_gd .ObjectTypeAttr .MarshalXMLAttr (_f .Name {Local :"\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"});if _e !=nil {return _e ;};start .Attr =append (start .Attr ,_fe );e .EncodeToken (start );if _gd .MoveWithCells !=_a .ST_TrueFalseBlankUnset {_fa :=_f .StartElement {Name :_f .Name {Local :"\u0078:\u004do\u0076\u0065\u0057\u0069\u0074\u0068\u0043\u0065\u006c\u006c\u0073"}};e .EncodeElement (_gd .MoveWithCells ,_fa );};if _gd .SizeWithCells !=_a .ST_TrueFalseBlankUnset {_ab :=_f .StartElement {Name :_f .Name {Local :"\u0078:\u0053i\u007a\u0065\u0057\u0069\u0074\u0068\u0043\u0065\u006c\u006c\u0073"}};e .EncodeElement (_gd .SizeWithCells ,_ab );};if _gd .Anchor !=nil {_eg :=_f .StartElement {Name :_f .Name {Local :"\u0078\u003a\u0041\u006e\u0063\u0068\u006f\u0072"}};_db .AddPreserveSpaceAttr (&_eg ,*_gd .Anchor );e .EncodeElement (_gd .Anchor ,_eg );};if _gd .Locked !=_a .ST_TrueFalseBlankUnset {_be :=_f .StartElement {Name :_f .Name {Local :"\u0078\u003a\u004c\u006f\u0063\u006b\u0065\u0064"}};e .EncodeElement (_gd .Locked ,_be );};if _gd .DefaultSize !=_a .ST_TrueFalseBlankUnset {_df :=_f .StartElement {Name :_f .Name {Local :"\u0078\u003a\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0053\u0069\u007a\u0065"}};e .EncodeElement (_gd .DefaultSize ,_df );};if _gd .PrintObject !=_a .ST_TrueFalseBlankUnset {_dff :=_f .StartElement {Name :_f .Name {Local :"\u0078\u003a\u0050\u0072\u0069\u006e\u0074\u004f\u0062\u006a\u0065\u0063\u0074"}};e .EncodeElement (_gd .PrintObject ,_dff );};if _gd .Disabled !=_a .ST_TrueFalseBlankUnset {_fd :=_f .StartElement {Name :_f .Name {Local :"\u0078\u003a\u0044\u0069\u0073\u0061\u0062\u006c\u0065\u0064"}};e .EncodeElement (_gd .Disabled ,_fd );};if _gd .AutoFill !=_a .ST_TrueFalseBlankUnset {_ee :=_f .StartElement {Name :_f .Name {Local :"\u0078\u003a\u0041\u0075\u0074\u006f\u0046\u0069\u006c\u006c"}};e .EncodeElement (_gd .AutoFill ,_ee );};if _gd .AutoLine !=_a .ST_TrueFalseBlankUnset {_c :=_f .StartElement {Name :_f .Name {Local :"\u0078\u003a\u0041\u0075\u0074\u006f\u004c\u0069\u006e\u0065"}};e .EncodeElement (_gd .AutoLine ,_c );};if _gd .AutoPict !=_a .ST_TrueFalseBlankUnset {_
|