mirror of
https://github.com/unidoc/unioffice.git
synced 2025-04-25 13:48:53 +08:00
36 lines
7.5 KiB
Go
36 lines
7.5 KiB
Go
//
|
|
// 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/
|
|
|
|
package powerpoint ;import (_g "encoding/xml";_gd "fmt";_f "github.com/unidoc/unioffice";);func NewCT_Rel ()*CT_Rel {_ab :=&CT_Rel {};return _ab };type CT_Empty struct{};
|
|
|
|
// Validate validates the CT_Empty and its children
|
|
func (_a *CT_Empty )Validate ()error {return _a .ValidateWithPath ("\u0043\u0054\u005f\u0045\u006d\u0070\u0074\u0079");};type Textdata struct{CT_Rel };
|
|
|
|
// ValidateWithPath validates the Iscomment and its children, prefixing error messages with path
|
|
func (_fce *Iscomment )ValidateWithPath (path string )error {if _dd :=_fce .CT_Empty .ValidateWithPath (path );_dd !=nil {return _dd ;};return nil ;};func NewTextdata ()*Textdata {_bcg :=&Textdata {};_bcg .CT_Rel =*NewCT_Rel ();return _bcg };
|
|
|
|
// ValidateWithPath validates the CT_Rel and its children, prefixing error messages with path
|
|
func (_aed *CT_Rel )ValidateWithPath (path string )error {return nil };type CT_Rel struct{IdAttr *string ;};func (_bd *Iscomment )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_bd .CT_Empty =*NewCT_Empty ();for {_aeb ,_cd :=d .Token ();if _cd !=nil {return _gd .Errorf ("p\u0061\u0072\u0073\u0069ng\u0020I\u0073\u0063\u006f\u006d\u006de\u006e\u0074\u003a\u0020\u0025\u0073",_cd );};if _gde ,_bcb :=_aeb .(_g .EndElement );_bcb &&_gde .Name ==start .Name {break ;};};return nil ;};
|
|
|
|
// ValidateWithPath validates the Textdata and its children, prefixing error messages with path
|
|
func (_fde *Textdata )ValidateWithPath (path string )error {if _ddd :=_fde .CT_Rel .ValidateWithPath (path );_ddd !=nil {return _ddd ;};return nil ;};
|
|
|
|
// Validate validates the Iscomment and its children
|
|
func (_ge *Iscomment )Validate ()error {return _ge .ValidateWithPath ("\u0049s\u0063\u006f\u006d\u006d\u0065\u006et");};
|
|
|
|
// ValidateWithPath validates the CT_Empty and its children, prefixing error messages with path
|
|
func (_de *CT_Empty )ValidateWithPath (path string )error {return nil };func (_e *CT_Empty )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for {_bf ,_fc :=d .Token ();if _fc !=nil {return _gd .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0043\u0054\u005fE\u006d\u0070\u0074\u0079: \u0025\u0073",_fc );};if _c ,_fe :=_bf .(_g .EndElement );_fe &&_c .Name ==start .Name {break ;};};return nil ;};func (_ec *CT_Rel )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {for _ ,_ac :=range start .Attr {if _ac .Name .Local =="\u0069\u0064"{_bc ,_deg :=_ac .Value ,error (nil );if _deg !=nil {return _deg ;};_ec .IdAttr =&_bc ;continue ;};};for {_dgc ,_fd :=d .Token ();if _fd !=nil {return _gd .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0043T\u005f\u0052e\u006c\u003a\u0020\u0025\u0073",_fd );};if _ae ,_ed :=_dgc .(_g .EndElement );_ed &&_ae .Name ==start .Name {break ;};};return nil ;};type Iscomment struct{CT_Empty };func NewIscomment ()*Iscomment {_gg :=&Iscomment {};_gg .CT_Empty =*NewCT_Empty ();return _gg };func (_ad *CT_Rel )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {if _ad .IdAttr !=nil {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0069\u0064"},Value :_gd .Sprintf ("\u0025\u0076",*_ad .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func NewCT_Empty ()*CT_Empty {_fa :=&CT_Empty {};return _fa };func (_bb *Textdata )UnmarshalXML (d *_g .Decoder ,start _g .StartElement )error {_bb .CT_Rel =*NewCT_Rel ();for _ ,_ba :=range start .Attr {if _ba .Name .Local =="\u0069\u0064"{_fec ,_ga :=_ba .Value ,error (nil );if _ga !=nil {return _ga ;};_bb .IdAttr =&_fec ;continue ;};};for {_gdc ,_gb :=d .Token ();if _gb !=nil {return _gd .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0054\u0065\u0078t\u0064\u0061\u0074\u0061: \u0025\u0073",_gb );};if _gdg ,_ef :=_gdc .(_g .EndElement );_ef &&_gdg .Name ==start .Name {break ;};};return nil ;};
|
|
|
|
// Validate validates the Textdata and its children
|
|
func (_dc *Textdata )Validate ()error {return _dc .ValidateWithPath ("\u0054\u0065\u0078\u0074\u0064\u0061\u0074\u0061");};func (_af *Iscomment )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068e\u006d\u0061\u0073-\u006d\u0069\u0063\u0072o\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u0070\u006f\u0077\u0065\u0072\u0070\u006f\u0069\u006e\u0074"});start .Attr =append (start .Attr ,_g .Attr {Name :_g .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 ="\u0069s\u0063\u006f\u006d\u006d\u0065\u006et";return _af .CT_Empty .MarshalXML (e ,start );};
|
|
|
|
// Validate validates the CT_Rel and its children
|
|
func (_df *CT_Rel )Validate ()error {return _df .ValidateWithPath ("\u0043\u0054\u005f\u0052\u0065\u006c");};func (_d *CT_Empty )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {e .EncodeToken (start );e .EncodeToken (_g .EndElement {Name :start .Name });return nil ;};func (_ggb *Textdata )MarshalXML (e *_g .Encoder ,start _g .StartElement )error {start .Attr =append (start .Attr ,_g .Attr {Name :_g .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068e\u006d\u0061\u0073-\u006d\u0069\u0063\u0072o\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u0070\u006f\u0077\u0065\u0072\u0070\u006f\u0069\u006e\u0074"});start .Attr =append (start .Attr ,_g .Attr {Name :_g .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 ="\u0074\u0065\u0078\u0074\u0064\u0061\u0074\u0061";return _ggb .CT_Rel .MarshalXML (e ,start );};func init (){_f .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068e\u006d\u0061\u0073-\u006d\u0069\u0063\u0072o\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u0070\u006f\u0077\u0065\u0072\u0070\u006f\u0069\u006e\u0074","\u0043\u0054\u005f\u0045\u006d\u0070\u0074\u0079",NewCT_Empty );_f .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068e\u006d\u0061\u0073-\u006d\u0069\u0063\u0072o\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u0070\u006f\u0077\u0065\u0072\u0070\u006f\u0069\u006e\u0074","\u0043\u0054\u005f\u0052\u0065\u006c",NewCT_Rel );_f .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068e\u006d\u0061\u0073-\u006d\u0069\u0063\u0072o\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u0070\u006f\u0077\u0065\u0072\u0070\u006f\u0069\u006e\u0074","\u0069s\u0063\u006f\u006d\u006d\u0065\u006et",NewIscomment );_f .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068e\u006d\u0061\u0073-\u006d\u0069\u0063\u0072o\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u0070\u006f\u0077\u0065\u0072\u0070\u006f\u0069\u006e\u0074","\u0074\u0065\u0078\u0074\u0064\u0061\u0074\u0061",NewTextdata );}; |