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/
|
|
|
|
|
2022-01-15 21:17:38 +00:00
|
|
|
package excel ;import (_d "encoding/xml";_b "fmt";_e "github.com/unidoc/unioffice";_c "github.com/unidoc/unioffice/common/logger";_ce "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";);func (_edfc *ClientData )MarshalXML (e *_d .Encoder ,start _d .StartElement )error {start .Attr =append (start .Attr ,_d .Attr {Name :_d .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 ,_d .Attr {Name :_d .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 ,_d .Attr {Name :_d .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 _edfc .CT_ClientData .MarshalXML (e ,start );};func (_agd ST_ObjectType )ValidateWithPath (path string )error {switch _agd {case 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19:default:return _b .Errorf ("\u0025s\u003a\u0020\u006f\u0075t\u0020\u006f\u0066\u0020\u0072a\u006eg\u0065 \u0076\u0061\u006c\u0075\u0065\u0020\u0025d",path ,int (_agd ));};return nil ;};func (_fea *ClientData )UnmarshalXML (d *_d .Decoder ,start _d .StartElement )error {_fea .CT_ClientData =*NewCT_ClientData ();for _ ,_dgb :=range start .Attr {if _dgb .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0054\u0079\u0070\u0065"{_fea .ObjectTypeAttr .UnmarshalXMLAttr (_dgb );continue ;};};_gcd :for {_cge ,_cca :=d .Token ();if _cca !=nil {return _cca ;};switch _dab :=_cge .(type ){case _d .StartElement :switch _dab .Name {case _d .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"}:_fea .MoveWithCells =_ce .ST_TrueFalseBlankUnset ;if _bbad :=d .DecodeElement (&_fea .MoveWithCells ,&_dab );_bbad !=nil {return _bbad ;};case _d .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"}:_fea .SizeWithCells =_ce .ST_TrueFalseBlankUnset ;if _geba :=d .DecodeElement (&_fea .SizeWithCells ,&_dab );_geba !=nil {return _geba ;};case _d .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"}:_fea .Anchor =new (string );if _bgd :=d .DecodeElement (_fea .Anchor ,&_dab );_bgd !=nil {return _bgd ;};case _d .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"}:_fea .Locked =_ce .ST_TrueFalseBlankUnset ;if _dc :=d .DecodeElement (&_fea .Locked ,&_dab );_dc !=nil {return _dc ;};case _d .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\u
|
2021-11-10 11:45:21 +00:00
|
|
|
|
|
|
|
// Validate validates the CT_ClientData and its children
|
2022-01-15 21:17:38 +00:00
|
|
|
func (_cab *CT_ClientData )Validate ()error {return _cab .ValidateWithPath ("\u0043\u0054\u005f\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
|
|
|
// ValidateWithPath validates the CT_ClientData and its children, prefixing error messages with path
|
2022-01-15 21:17:38 +00:00
|
|
|
func (_fcg *CT_ClientData )ValidateWithPath (path string )error {if _fcg .ObjectTypeAttr ==ST_ObjectTypeUnset {return _b .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 _acd :=_fcg .ObjectTypeAttr .ValidateWithPath (path +"\u002fO\u0062j\u0065\u0063\u0074\u0054\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_acd !=nil {return _acd ;};if _ebb :=_fcg .MoveWithCells .ValidateWithPath (path +"\u002f\u004d\u006f\u0076\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_ebb !=nil {return _ebb ;};if _dfd :=_fcg .SizeWithCells .ValidateWithPath (path +"\u002f\u0053\u0069\u007a\u0065\u0057\u0069\u0074\u0068C\u0065\u006c\u006c\u0073");_dfd !=nil {return _dfd ;};if _fe :=_fcg .Locked .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0065\u0064");_fe !=nil {return _fe ;};if _aa :=_fcg .DefaultSize .ValidateWithPath (path +"\u002f\u0044\u0065f\u0061\u0075\u006c\u0074\u0053\u0069\u007a\u0065");_aa !=nil {return _aa ;};if _cbb :=_fcg .PrintObject .ValidateWithPath (path +"\u002f\u0050\u0072i\u006e\u0074\u004f\u0062\u006a\u0065\u0063\u0074");_cbb !=nil {return _cbb ;};if _gga :=_fcg .Disabled .ValidateWithPath (path +"\u002fD\u0069\u0073\u0061\u0062\u006c\u0065d");_gga !=nil {return _gga ;};if _dfca :=_fcg .AutoFill .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0046\u0069\u006cl");_dfca !=nil {return _dfca ;};if _fed :=_fcg .AutoLine .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u004c\u0069\u006ee");_fed !=nil {return _fed ;};if _aaf :=_fcg .AutoPict .ValidateWithPath (path +"\u002fA\u0075\u0074\u006f\u0050\u0069\u0063t");_aaf !=nil {return _aaf ;};if _ecc :=_fcg .LockText .ValidateWithPath (path +"\u002fL\u006f\u0063\u006b\u0054\u0065\u0078t");_ecc !=nil {return _ecc ;};if _bdb :=_fcg .JustLastX .ValidateWithPath (path +"\u002f\u004a\u0075\u0073\u0074\u004c\u0061\u0073\u0074\u0058");_bdb !=nil {return _bdb ;};if _eee :=_fcg .SecretEdit .ValidateWithPath (path +"/\u0053\u0065\u0063\u0072\u0065\u0074\u0045\u0064\u0069\u0074");_eee !=nil {return _eee ;};if _gedg :=_fcg .Default .ValidateWithPath (path +"\u002f\u0044\u0065\u0066\u0061\u0075\u006c\u0074");_gedg !=nil {return _gedg ;};if _gcc :=_fcg .Help .ValidateWithPath (path +"\u002f\u0048\u0065l\u0070");_gcc !=nil {return _gcc ;};if _fab :=_fcg .Cancel .ValidateWithPath (path +"\u002fC\u0061\u006e\u0063\u0065\u006c");_fab !=nil {return _fab ;};if _fce :=_fcg .Dismiss .ValidateWithPath (path +"\u002f\u0044\u0069\u0073\u006d\u0069\u0073\u0073");_fce !=nil {return _fce ;};if _bcf :=_fcg .Visible .ValidateWithPath (path +"\u002f\u0056\u0069\u0073\u0069\u0062\u006c\u0065");_bcf !=nil {return _bcf ;};if _ef :=_fcg .RowHidden .ValidateWithPath (path +"\u002f\u0052\u006f\u0077\u0048\u0069\u0064\u0064\u0065\u006e");_ef !=nil {return _ef ;};if _aafg :=_fcg .ColHidden .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u0048\u0069\u0064\u0064\u0065\u006e");_aafg !=nil {return _aafg ;};if _dfa :=_fcg .MultiLine .ValidateWithPath (path +"\u002f\u004d\u0075\u006c\u0074\u0069\u004c\u0069\u006e\u0065");_dfa !=nil {return _dfa ;};if _accd :=_fcg .VScroll .ValidateWithPath (path +"\u002f\u0056\u0053\u0063\u0072\u006f\u006c\u006c");_accd !=nil {return _accd ;};if _gedf :=_fcg .ValidIds .ValidateWithPath (path +"\u002fV\u0061\u006c\u0069\u0064\u0049\u0064s");_gedf !=nil {return _gedf ;};if _agc :=_fcg .NoThreeD2 .ValidateWithPath (path +"\u002f\u004e\u006f\u0054\u0068\u0072\u0065\u0065\u0044\u0032");_agc !=nil {return _agc ;};if _egac :=_fcg .Colored .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u0065\u0064");_egac !=nil {return _egac ;};if _afd :=_fcg .NoThreeD .ValidateWithPath (path +"\u002fN\u006f\u0054\u0068\u0072\u0065\u0065D");_afd !=nil {return _afd ;};if _ebf :=_fcg .FirstButton .ValidateWithPath (path +"\u002f\u0046\u0069r\u0073\u0074\u0042\u0075\u0074\u0074\u006f\u006e");_ebf !=nil {return _ebf ;};if _dbb :=_fcg .Horiz .ValidateWithPath (path +"\u002f\u0048\u006f\u0072\u0069
|
|
|
|
|
|
|
|
// Validate validates the ClientData and its children
|
|
|
|
func (_dag *ClientData )Validate ()error {return _dag .ValidateWithPath ("\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");};func (_begb ST_ObjectType )MarshalXMLAttr (name _d .Name )(_d .Attr ,error ){_egd :=_d .Attr {};_egd .Name =name ;switch _begb {case ST_ObjectTypeUnset :_egd .Value ="";case ST_ObjectTypeButton :_egd .Value ="\u0042\u0075\u0074\u0074\u006f\u006e";case ST_ObjectTypeCheckbox :_egd .Value ="\u0043\u0068\u0065\u0063\u006b\u0062\u006f\u0078";case ST_ObjectTypeDialog :_egd .Value ="\u0044\u0069\u0061\u006c\u006f\u0067";case ST_ObjectTypeDrop :_egd .Value ="\u0044\u0072\u006f\u0070";case ST_ObjectTypeEdit :_egd .Value ="\u0045\u0064\u0069\u0074";case ST_ObjectTypeGBox :_egd .Value ="\u0047\u0042\u006f\u0078";case ST_ObjectTypeLabel :_egd .Value ="\u004c\u0061\u0062e\u006c";case ST_ObjectTypeLineA :_egd .Value ="\u004c\u0069\u006ee\u0041";case ST_ObjectTypeList :_egd .Value ="\u004c\u0069\u0073\u0074";case ST_ObjectTypeMovie :_egd .Value ="\u004d\u006f\u0076i\u0065";case ST_ObjectTypeNote :_egd .Value ="\u004e\u006f\u0074\u0065";case ST_ObjectTypePict :_egd .Value ="\u0050\u0069\u0063\u0074";case ST_ObjectTypeRadio :_egd .Value ="\u0052\u0061\u0064i\u006f";case ST_ObjectTypeRectA :_egd .Value ="\u0052\u0065\u0063t\u0041";case ST_ObjectTypeScroll :_egd .Value ="\u0053\u0063\u0072\u006f\u006c\u006c";case ST_ObjectTypeSpin :_egd .Value ="\u0053\u0070\u0069\u006e";case ST_ObjectTypeShape :_egd .Value ="\u0053\u0068\u0061p\u0065";case ST_ObjectTypeGroup :_egd .Value ="\u0047\u0072\u006fu\u0070";case ST_ObjectTypeRect :_egd .Value ="\u0052\u0065\u0063\u0074";};return _egd ,nil ;};func (_eadg *ST_ObjectType )UnmarshalXML (d *_d .Decoder ,start _d .StartElement )error {_cdc ,_agaa :=d .Token ();if _agaa !=nil {return _agaa ;};if _cbg ,_bbab :=_cdc .(_d .EndElement );_bbab &&_cbg .Name ==start .Name {*_eadg =1;return nil ;};if _fge ,_fgbb :=_cdc .(_d .CharData );!_fgbb {return _b .Errorf ("\u0065\u0078\u0070\u0065\u0063\u0074\u0065\u0064\u0020\u0063\u0068a\u0072\u0020\u0064\u0061\u0074\u0061\u002c\u0020\u0067\u006ft\u0020\u0025\u0054",_cdc );}else {switch string (_fge ){case "":*_eadg =0;case "\u0042\u0075\u0074\u0074\u006f\u006e":*_eadg =1;case "\u0043\u0068\u0065\u0063\u006b\u0062\u006f\u0078":*_eadg =2;case "\u0044\u0069\u0061\u006c\u006f\u0067":*_eadg =3;case "\u0044\u0072\u006f\u0070":*_eadg =4;case "\u0045\u0064\u0069\u0074":*_eadg =5;case "\u0047\u0042\u006f\u0078":*_eadg =6;case "\u004c\u0061\u0062e\u006c":*_eadg =7;case "\u004c\u0069\u006ee\u0041":*_eadg =8;case "\u004c\u0069\u0073\u0074":*_eadg =9;case "\u004d\u006f\u0076i\u0065":*_eadg =10;case "\u004e\u006f\u0074\u0065":*_eadg =11;case "\u0050\u0069\u0063\u0074":*_eadg =12;case "\u0052\u0061\u0064i\u006f":*_eadg =13;case "\u0052\u0065\u0063t\u0041":*_eadg =14;case "\u0053\u0063\u0072\u006f\u006c\u006c":*_eadg =15;case "\u0053\u0070\u0069\u006e":*_eadg =16;case "\u0053\u0068\u0061p\u0065":*_eadg =17;case "\u0047\u0072\u006fu\u0070":*_eadg =18;case "\u0052\u0065\u0063\u0074":*_eadg =19;};};_cdc ,_agaa =d .Token ();if _agaa !=nil {return _agaa ;};if _dage ,_bfg :=_cdc .(_d .EndElement );_bfg &&_dage .Name ==start .Name {return nil ;};return _b .Errorf ("\u0065\u0078\u0070\u0065c\u0074\u0065\u0064\u0020\u0065\u006e\u0064\u0020\u0065\u006ce\u006de\u006e\u0074\u002c\u0020\u0067\u006f\u0074 \u0025\u0076",_cdc );};func NewClientData ()*ClientData {_dga :=&ClientData {};_dga .CT_ClientData =*NewCT_ClientData ();return _dga ;};func (_dgfa ST_ObjectType )MarshalXML (e *_d .Encoder ,start _d .StartElement )error {return e .EncodeElement (_dgfa .String (),start );};
|
|
|
|
|
|
|
|
// ValidateWithPath validates the ClientData and its children, prefixing error messages with path
|
|
|
|
func (_cga *ClientData )ValidateWithPath (path string )error {if _dbfc :=_cga .CT_ClientData .ValidateWithPath (path );_dbfc !=nil {return _dbfc ;};return nil ;};func (_cbec *ST_ObjectType )UnmarshalXMLAttr (attr _d .Attr )error {switch attr .Value {case "":*_cbec =0;case "\u0042\u0075\u0074\u0074\u006f\u006e":*_cbec =1;case "\u0043\u0068\u0065\u0063\u006b\u0062\u006f\u0078":*_cbec =2;case "\u0044\u0069\u0061\u006c\u006f\u0067":*_cbec =3;case "\u0044\u0072\u006f\u0070":*_cbec =4;case "\u0045\u0064\u0069\u0074":*_cbec =5;case "\u0047\u0042\u006f\u0078":*_cbec =6;case "\u004c\u0061\u0062e\u006c":*_cbec =7;case "\u004c\u0069\u006ee\u0041":*_cbec =8;case "\u004c\u0069\u0073\u0074":*_cbec =9;case "\u004d\u006f\u0076i\u0065":*_cbec =10;case "\u004e\u006f\u0074\u0065":*_cbec =11;case "\u0050\u0069\u0063\u0074":*_cbec =12;case "\u0052\u0061\u0064i\u006f":*_cbec =13;case "\u0052\u0065\u0063t\u0041":*_cbec =14;case "\u0053\u0063\u0072\u006f\u006c\u006c":*_cbec =15;case "\u0053\u0070\u0069\u006e":*_cbec =16;case "\u0053\u0068\u0061p\u0065":*_cbec =17;case "\u0047\u0072\u006fu\u0070":*_cbec =18;case "\u0052\u0065\u0063\u0074":*_cbec =19;};return nil ;};func (_bege ST_ObjectType )String ()string {switch _bege {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 NewCT_ClientData ()*CT_ClientData {_df :=&CT_ClientData {};_df .ObjectTypeAttr =ST_ObjectType (1);return _df ;};const (ST_ObjectTypeUnset ST_ObjectType =0;ST_ObjectTypeButton ST_ObjectType =1;ST_ObjectTypeCheckbox ST_ObjectType =2;ST_ObjectTypeDialog ST_ObjectType =3;ST_ObjectTypeDrop ST_ObjectType =4;ST_ObjectTypeEdit ST_ObjectType =5;ST_ObjectTypeGBox ST_ObjectType =6;ST_ObjectTypeLabel ST_ObjectType =7;ST_ObjectTypeLineA ST_ObjectType =8;ST_ObjectTypeList ST_ObjectType =9;ST_ObjectTypeMovie ST_ObjectType =10;ST_ObjectTypeNote ST_ObjectType =11;ST_ObjectTypePict ST_ObjectType =12;ST_ObjectTypeRadio ST_ObjectType =13;ST_ObjectTypeRectA ST_ObjectType =14;ST_ObjectTypeScroll ST_ObjectType =15;ST_ObjectTypeSpin ST_ObjectType =16;ST_ObjectTypeShape ST_ObjectType =17;ST_ObjectTypeGroup ST_ObjectType =18;ST_ObjectTypeRect ST_ObjectType =19;);func init (){_e .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 );_e .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 );};
|