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/
|
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
package vml ;import (_ae "encoding/xml";_e "fmt";_c "github.com/unidoc/unioffice";_bb "github.com/unidoc/unioffice/common/logger";_ee "github.com/unidoc/unioffice/schema/soo/ofc/sharedTypes";_ab "github.com/unidoc/unioffice/schema/soo/wml";_d "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/excel";_b "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/powerpoint";_dg "github.com/unidoc/unioffice/schema/urn/schemas_microsoft_com/office/word";_aa "strconv";);func (_bfa *AG_Fill )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_bdee :=range start .Attr {if _bdee .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_bfa .FilledAttr .UnmarshalXMLAttr (_bdee );continue ;};if _bdee .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_gdc ,_geeg :=_bdee .Value ,error (nil );if _geeg !=nil {return _geeg ;};_bfa .FillcolorAttr =&_gdc ;continue ;};};for {_bdb ,_ffd :=d .Token ();if _ffd !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0046\u0069\u006c\u006c\u003a\u0020\u0025\u0073",_ffd );};if _ecdf ,_beab :=_bdb .(_ae .EndElement );_beab &&_ecdf .Name ==start .Name {break ;};};return nil ;};func (_bfgbe OfcST_CalloutPlacement )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_ccegf :=_ae .Attr {};_ccegf .Name =name ;switch _bfgbe {case OfcST_CalloutPlacementUnset :_ccegf .Value ="";case OfcST_CalloutPlacementTop :_ccegf .Value ="\u0074\u006f\u0070";case OfcST_CalloutPlacementCenter :_ccegf .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";case OfcST_CalloutPlacementBottom :_ccegf .Value ="\u0062\u006f\u0074\u0074\u006f\u006d";case OfcST_CalloutPlacementUser :_ccegf .Value ="\u0075\u0073\u0065\u0072";};return _ccegf ,nil ;};type OfcCT_StrokeChild struct{OnAttr _ee .ST_TrueFalse ;WeightAttr *string ;ColorAttr *string ;Color2Attr *string ;OpacityAttr *string ;LinestyleAttr ST_StrokeLineStyle ;MiterlimitAttr *float64 ;JoinstyleAttr ST_StrokeJoinStyle ;EndcapAttr ST_StrokeEndCap ;DashstyleAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;FilltypeAttr ST_FillType ;SrcAttr *string ;ImageaspectAttr ST_ImageAspect ;ImagesizeAttr *string ;ImagealignshapeAttr _ee .ST_TrueFalse ;StartarrowAttr ST_StrokeArrowType ;StartarrowwidthAttr ST_StrokeArrowWidth ;StartarrowlengthAttr ST_StrokeArrowLength ;EndarrowAttr ST_StrokeArrowType ;EndarrowwidthAttr ST_StrokeArrowWidth ;EndarrowlengthAttr ST_StrokeArrowLength ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;ForcedashAttr _ee .ST_TrueFalse ;ExtAttr ST_Ext ;};func (_cdaec OfcST_InsetMode )String ()string {switch _cdaec {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};type OfcCT_Fill struct{TypeAttr OfcST_FillType ;ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Complex and its children, prefixing error messages with path
|
|
|
|
func (_ddcgg *OfcCT_Complex )ValidateWithPath (path string )error {if _ccfd :=_ddcgg .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ccfd !=nil {return _ccfd ;};return nil ;};func (_cggded ST_StrokeLineStyle )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_eceed :=_ae .Attr {};_eceed .Name =name ;switch _cggded {case ST_StrokeLineStyleUnset :_eceed .Value ="";case ST_StrokeLineStyleSingle :_eceed .Value ="\u0073\u0069\u006e\u0067\u006c\u0065";case ST_StrokeLineStyleThinThin :_eceed .Value ="\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e";case ST_StrokeLineStyleThinThick :_eceed .Value ="\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k";case ST_StrokeLineStyleThickThin :_eceed .Value ="\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n";case ST_StrokeLineStyleThickBetweenThin :_eceed .Value ="\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e";};return _eceed ,nil ;};func (_dfcccb OfcST_ExtrusionPlane )String ()string {switch _dfcccb {case 0:return "";case 1:return "\u0058\u0059";case 2:return "\u005a\u0058";case 3:return "\u0059\u005a";};return "";};func (_fbgecg OfcST_OLEDrawAspect )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_fbgecg .String (),start );};func (_ggea *CT_Path )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_abac :=range start .Attr {if _abac .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abac .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"{_ggea .ConnecttypeAttr .UnmarshalXMLAttr (_abac );continue ;};if _abac .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abac .Name .Local =="e\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"{_ggea .ExtrusionokAttr .UnmarshalXMLAttr (_abac );continue ;};if _abac .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abac .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"{_cbff ,_fbcd :=_abac .Value ,error (nil );if _fbcd !=nil {return _fbcd ;};_ggea .ConnectanglesAttr =&_cbff ;continue ;};if _abac .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_abac .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"{_fccb ,_ebge :=_abac .Value ,error (nil );if _ebge !=nil {return _ebge ;};_ggea .ConnectlocsAttr =&_fccb ;continue ;};if _abac .Name .Local =="\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"{_ggea .GradientshapeokAttr .UnmarshalXMLAttr (_abac );continue ;};if _abac .Name .Local =="\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"{_ggea .ShadowokAttr .UnmarshalXMLAttr (_abac );continue ;};if _abac .Name .Local =="\u0061r\u0072\u006f\u0077\u006f\u006b"{_ggea .ArrowokAttr .UnmarshalXMLAttr (_abac );continue ;};if _abac .Name .Local =="\u0076"{_bgea ,_dbfc :=_abac .Value ,error (nil );if _dbfc !=nil {return _dbfc ;};_ggea .VAttr =&_bgea ;continue ;};if _abac .Name .Local =="\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"{_ggea .TextpathokAttr .UnmarshalXMLAttr (_abac );continue ;};if _abac .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"{_ggea .InsetpenokAttr .UnmarshalXMLAttr (_abac );continue ;};if _abac .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"{_ggea .StrokeokAttr .UnmarshalXMLAttr (_
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Textbox and its children
|
|
|
|
func (_cddcge *Textbox )Validate ()error {return _cddcge .ValidateWithPath ("\u0054e\u0078\u0074\u0062\u006f\u0078");};type AG_Fill struct{FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;};func (_abdfe *ST_ShadowType )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_abdfe =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_abdfe =1;case "\u0064\u006f\u0075\u0062\u006c\u0065":*_abdfe =2;case "\u0065\u006d\u0062\u006f\u0073\u0073":*_abdfe =3;case "p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065":*_abdfe =4;};return nil ;};func (_eadgb *OfcBottom )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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 ="\u006f\u003a\u0062\u006f\u0074\u0074\u006f\u006d";return _eadgb .OfcCT_StrokeChild .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Stroke and its children, prefixing error messages with path
|
|
|
|
func (_deaa *CT_Stroke )ValidateWithPath (path string )error {if _deaa .Left !=nil {if _gbabf :=_deaa .Left .ValidateWithPath (path +"\u002f\u004c\u0065f\u0074");_gbabf !=nil {return _gbabf ;};};if _deaa .Top !=nil {if _cfefd :=_deaa .Top .ValidateWithPath (path +"\u002f\u0054\u006f\u0070");_cfefd !=nil {return _cfefd ;};};if _deaa .Right !=nil {if _ddaf :=_deaa .Right .ValidateWithPath (path +"\u002f\u0052\u0069\u0067\u0068\u0074");_ddaf !=nil {return _ddaf ;};};if _deaa .Bottom !=nil {if _gfbgb :=_deaa .Bottom .ValidateWithPath (path +"\u002fB\u006f\u0074\u0074\u006f\u006d");_gfbgb !=nil {return _gfbgb ;};};if _deaa .Column !=nil {if _geag :=_deaa .Column .ValidateWithPath (path +"\u002fC\u006f\u006c\u0075\u006d\u006e");_geag !=nil {return _geag ;};};if _abaf :=_deaa .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_abaf !=nil {return _abaf ;};if _bcdfa :=_deaa .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_bcdfa !=nil {return _bcdfa ;};if _ffbbb :=_deaa .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_ffbbb !=nil {return _ffbbb ;};if _dgdaeb :=_deaa .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_dgdaeb !=nil {return _dgdaeb ;};if _bfbcdc :=_deaa .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_bfbcdc !=nil {return _bfbcdc ;};if _bfcc :=_deaa .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_bfcc !=nil {return _bfcc ;};if _babcb :=_deaa .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_babcb !=nil {return _babcb ;};if _bcfd :=_deaa .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_bcfd !=nil {return _bcfd ;};if _cgbfg :=_deaa .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_cgbfg !=nil {return _cgbfg ;};if _fafbd :=_deaa .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_fafbd !=nil {return _fafbd ;};if _effg :=_deaa .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_effg !=nil {return _effg ;};if _ecegb :=_deaa .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_ecegb !=nil {return _ecegb ;};if _cfdga :=_deaa .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_cfdga !=nil {return _cfdga ;};if _dccdc :=_deaa .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_dccdc !=nil {return _dccdc ;};if _cabfb :=_deaa .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_cabfb !=nil {return _cabfb ;};return nil ;};func NewCT_H ()*CT_H {_ggbb :=&CT_H {};return _ggbb };func (_fbgede ST_ImageAspect )ValidateWithPath (path string )error {switch _fbgede {case 0,1,2,3: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 (_fbgede ));};return nil ;};func (_badf *Arc )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _badf .CT_Arc .MarshalXML (e ,start );};func (_agaf *AG_CoreAttributes )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_acbb :=range start .Attr {if _acbb .Name .Local =="\u0068\u0072\u0065\u0066"{_agfc ,_efe :=_acbb .Value ,error (nil );if _efe
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Shapetype and its children
|
|
|
|
func (_eggab *CT_Shapetype )Validate ()error {return _eggab .ValidateWithPath ("\u0043\u0054\u005fS\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065");};func (_eeeecb *OfcCT_Proxy )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0070\u0072\u006f\u0078\u0079";};if _eeeecb .StartAttr !=_ee .ST_TrueFalseBlankUnset {_affgg ,_bggba :=_eeeecb .StartAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073\u0074\u0061r\u0074"});if _bggba !=nil {return _bggba ;};start .Attr =append (start .Attr ,_affgg );};if _eeeecb .EndAttr !=_ee .ST_TrueFalseBlankUnset {_addae ,_bbbed :=_eeeecb .EndAttr .MarshalXMLAttr (_ae .Name {Local :"\u0065\u006e\u0064"});if _bbbed !=nil {return _bbbed ;};start .Attr =append (start .Attr ,_addae );};if _eeeecb .IdrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064\u0072e\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_eeeecb .IdrefAttr )});};if _eeeecb .ConnectlocAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063"},Value :_e .Sprintf ("\u0025\u0076",*_eeeecb .ConnectlocAttr )});};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_gcaabd *Fill )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_gcaabd .CT_Fill =*NewCT_Fill ();for _ ,_baage :=range start .Attr {if _baage .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_baage .Name .Local =="\u0064\u0065t\u0065\u0063\u0074m\u006f\u0075\u0073\u0065\u0063\u006c\u0069\u0063\u006b"{_gcaabd .DetectmouseclickAttr .UnmarshalXMLAttr (_baage );continue ;};if _baage .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_baage .Name .Local =="\u0072\u0065\u006ci\u0064"{_ddeg ,_eecga :=_baage .Value ,error (nil );if _eecga !=nil {return _eecga ;};_gcaabd .RelidAttr =&_ddeg ;continue ;};if _baage .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_baage .Name .Local =="\u0069\u0064"||_baage .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_baage .Name .Local =="\u0069\u0064"{_bddec ,_aggb :=_baage .Value ,error (nil );if _aggb !=nil {return _aggb ;};_gcaabd .IdAttr =&_bddec ;continue ;};if _baage .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_baage .Name .Local =="\u006f\u0070\u0061\u0063\u0069\u0074\u0079\u0032"{_ccbaa ,_afbg :=_baage .Value ,error (nil );if _afbg !=nil {return _afbg ;};_gcaabd .Opacity2Attr =&_ccbaa ;continue ;};if _baage .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_baage .Name .Local =="\u0074\u0069\u0074l\u0065"{_fefeg ,_adega :=_baage .Value ,error (nil );if _adega !=nil {return _adega ;};_gcaabd .TitleAttr =&_fefeg ;continue ;};if _baage .Name .Space =="\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeLayout and its children, prefixing error messages with path
|
|
|
|
func (_bgcdf *OfcCT_ShapeLayout )ValidateWithPath (path string )error {if _bgcdf .Idmap !=nil {if _fagcaf :=_bgcdf .Idmap .ValidateWithPath (path +"\u002f\u0049\u0064\u006d\u0061\u0070");_fagcaf !=nil {return _fagcaf ;};};if _bgcdf .Regrouptable !=nil {if _aefef :=_bgcdf .Regrouptable .ValidateWithPath (path +"\u002f\u0052\u0065\u0067\u0072\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065");_aefef !=nil {return _aefef ;};};if _bgcdf .Rules !=nil {if _fbgac :=_bgcdf .Rules .ValidateWithPath (path +"\u002f\u0052\u0075\u006c\u0065\u0073");_fbgac !=nil {return _fbgac ;};};if _ecbb :=_bgcdf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ecbb !=nil {return _ecbb ;};return nil ;};func (_fcdbe *OfcDiagram )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_fcdbe .OfcCT_Diagram =*NewOfcCT_Diagram ();for _ ,_eacbb :=range start .Attr {if _eacbb .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_ecage ,_gccd :=_aa .ParseInt (_eacbb .Value ,10,64);if _gccd !=nil {return _gccd ;};_fcdbe .DgmstyleAttr =&_ecage ;continue ;};if _eacbb .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_fcdbe .AutoformatAttr .UnmarshalXMLAttr (_eacbb );continue ;};if _eacbb .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_fcdbe .ReverseAttr .UnmarshalXMLAttr (_eacbb );continue ;};if _eacbb .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_fcdbe .AutolayoutAttr .UnmarshalXMLAttr (_eacbb );continue ;};if _eacbb .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_deeceg ,_bgafca :=_aa .ParseInt (_eacbb .Value ,10,64);if _bgafca !=nil {return _bgafca ;};_fcdbe .DgmscalexAttr =&_deeceg ;continue ;};if _eacbb .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_bafbdc ,_geddg :=_aa .ParseInt (_eacbb .Value ,10,64);if _geddg !=nil {return _geddg ;};_fcdbe .DgmscaleyAttr =&_bafbdc ;continue ;};if _eacbb .Name .Local =="d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"{_gdfdbc ,_febcc :=_aa .ParseInt (_eacbb .Value ,10,64);if _febcc !=nil {return _febcc ;};_fcdbe .DgmfontsizeAttr =&_gdfdbc ;continue ;};if _eacbb .Name .Local =="\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"{_gafff ,_fccgbg :=_eacbb .Value ,error (nil );if _fccgbg !=nil {return _fccgbg ;};_fcdbe .ConstrainboundsAttr =&_gafff ;continue ;};if _eacbb .Name .Local =="\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"{_ffabg ,_debge :=_aa .ParseInt (_eacbb .Value ,10,64);if _debge !=nil {return _debge ;};_fcdbe .DgmbasetextscaleAttr =&_ffabg ;continue ;};if _eacbb .Name .Local =="\u0065\u0078\u0074"{_fcdbe .ExtAttr .UnmarshalXMLAttr (_eacbb );continue ;};};_cfcccb :for {_cbfdcg ,_gbeg :=d .Token ();if _gbeg !=nil {return _gbeg ;};switch _cagfed :=_cbfdcg .(type ){case _ae .StartElement :switch _cagfed .Name {case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065"}:_fcdbe .Relationtable =NewOfcCT_RelationTable ();if _feegg :=d .DecodeElement (_fcdbe .Relationtable ,&_cagfed );_feegg !=nil {return _feegg ;};default:_bb .Log .Debug ("\u0073k\u0069\u0070p\u0069\u006e\u0067 \u0075\u006e\u0073\u0075\u0070\u0070\u006fr\u0074\u0065\u0064\u0020\u0065\u006ce\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063D\u0069\u0061\u0067\u0072\u0061\u006d\u0020\u0025\u0076",_cagfed .Name );if _bgde :=d .Skip ();_bgde !=nil {return _bgde ;};};case _ae .EndElement :break _cfcccb ;case _ae .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Rect and its children, prefixing error messages with path
|
|
|
|
func (_babf *CT_Rect )ValidateWithPath (path string )error {for _bccbc ,_bggab :=range _babf .EG_ShapeElements {if _gacg :=_bggab .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_bccbc ));_gacg !=nil {return _gacg ;};};if _fgga :=_babf .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fgga !=nil {return _fgga ;};if _efdc :=_babf .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_efdc !=nil {return _efdc ;};if _gdfda :=_babf .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_gdfda !=nil {return _gdfda ;};if _feed :=_babf .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_feed !=nil {return _feed ;};if _gebc :=_babf .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_gebc !=nil {return _gebc ;};if _dcaba :=_babf .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_dcaba !=nil {return _dcaba ;};if _ecfce :=_babf .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_ecfce !=nil {return _ecfce ;};if _edbf :=_babf .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_edbf !=nil {return _edbf ;};if _eccbf :=_babf .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_eccbf !=nil {return _eccbf ;};if _ebfc :=_babf .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ebfc !=nil {return _ebfc ;};if _gaaff :=_babf .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gaaff !=nil {return _gaaff ;};if _cdgaa :=_babf .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_cdgaa !=nil {return _cdgaa ;};if _abdgg :=_babf .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_abdgg !=nil {return _abdgg ;};if _cedefg :=_babf .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_cedefg !=nil {return _cedefg ;};if _bfac :=_babf .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bfac !=nil {return _bfac ;};if _fecd :=_babf .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fecd !=nil {return _fecd ;};if _bead :=_babf .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bead !=nil {return _bead ;};if _edeg :=_babf .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_edeg !=nil {return _edeg ;};if _afafa :=_babf .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_afafa !=nil {return _afafa ;};if _cafd :=_babf .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_cafd !=nil {return _cafd ;};if _ebba :=_babf .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ebba !=nil {return _ebba ;};if _dcga :=_babf .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_dcga !=nil {return _dcga ;};if _gccef :=_babf .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_gccef !=nil {return _gcce
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_bgcfc *OfcCT_Fill )ValidateWithPath (path string )error {if _gbdbb :=_bgcfc .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_gbdbb !=nil {return _gbdbb ;};if _fegea :=_bgcfc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fegea !=nil {return _fegea ;};return nil ;};func (_dabbc *ST_StrokeArrowType )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_adbcf ,_bbfccc :=d .Token ();if _bbfccc !=nil {return _bbfccc ;};if _dedf ,_bdgge :=_adbcf .(_ae .EndElement );_bdgge &&_dedf .Name ==start .Name {*_dabbc =1;return nil ;};if _ebcbg ,_ecbbb :=_adbcf .(_ae .CharData );!_ecbbb {return _e .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",_adbcf );}else {switch string (_ebcbg ){case "":*_dabbc =0;case "\u006e\u006f\u006e\u0065":*_dabbc =1;case "\u0062\u006c\u006fc\u006b":*_dabbc =2;case "\u0063l\u0061\u0073\u0073\u0069\u0063":*_dabbc =3;case "\u006f\u0076\u0061\u006c":*_dabbc =4;case "\u0064i\u0061\u006d\u006f\u006e\u0064":*_dabbc =5;case "\u006f\u0070\u0065\u006e":*_dabbc =6;};};_adbcf ,_bbfccc =d .Token ();if _bbfccc !=nil {return _bbfccc ;};if _gceeb ,_gcccee :=_adbcf .(_ae .EndElement );_gcccee &&_gceeb .Name ==start .Name {return nil ;};return _e .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",_adbcf );};func (_afgdg OfcST_ConnectorType )ValidateWithPath (path string )error {switch _afgdg {case 0,1,2,3,4: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 (_afgdg ));};return nil ;};type Polyline struct{CT_PolyLine };func NewFormulas ()*Formulas {_fgea :=&Formulas {};_fgea .CT_Formulas =*NewCT_Formulas ();return _fgea ;};func (_ecgge *OfcBottom )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_ecgge .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_gdaae :=range start .Attr {if _gdaae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdaae .Name .Local =="\u0068\u0072\u0065\u0066"{_cfdag ,_dedde :=_gdaae .Value ,error (nil );if _dedde !=nil {return _dedde ;};_ecgge .HrefAttr =&_cfdag ;continue ;};if _gdaae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdaae .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_ecgge .ForcedashAttr .UnmarshalXMLAttr (_gdaae );continue ;};if _gdaae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdaae .Name .Local =="\u0074\u0069\u0074l\u0065"{_gcceg ,_gdea :=_gdaae .Value ,error (nil );if _gdea !=nil {return _gdea ;};_ecgge .TitleAttr =&_gcceg ;continue ;};if _gdaae .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdaae .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_bcfed ,_gfdaf :=_gdaae .Value ,error (nil );if _gfdaf !=nil {return _gfdaf ;};_ecgge .AlthrefAttr =&_bcfed ;continue ;};if _gdaae .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_ecgge .ImageaspectAttr .UnmarshalXMLAttr (_gdaae );continue ;};if _gdaae .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_ecgge .StartarrowAttr .UnmarshalXMLAttr (_gdaae );continue ;};if _gdaae .Nam
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_StrokeAttributes and its children
|
|
|
|
func (_ggeg *AG_StrokeAttributes )Validate ()error {return _ggeg .ValidateWithPath ("\u0041\u0047\u005f\u0053tr\u006f\u006b\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};func (_gcea *OfcCT_Ink )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0069n\u006b";};if _gcea .IAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069"},Value :_e .Sprintf ("\u0025\u0076",*_gcea .IAttr )});};if _gcea .AnnotationAttr !=_ee .ST_TrueFalseUnset {_agaeg ,_fddaee :=_gcea .AnnotationAttr .MarshalXMLAttr (_ae .Name {Local :"\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"});if _fddaee !=nil {return _fddaee ;};start .Attr =append (start .Attr ,_agaeg );};if _gcea .ContentTypeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_gcea .ContentTypeAttr )});};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_cbag *AG_StrokeAttributes )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _cbag .OnAttr !=_ee .ST_TrueFalseUnset {_deea ,_bcb :=_cbag .OnAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u006e"});if _bcb !=nil {return _bcb ;};start .Attr =append (start .Attr ,_deea );};if _cbag .WeightAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cbag .WeightAttr )});};if _cbag .ColorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_cbag .ColorAttr )});};if _cbag .OpacityAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_e .Sprintf ("\u0025\u0076",*_cbag .OpacityAttr )});};if _cbag .LinestyleAttr !=ST_StrokeLineStyleUnset {_acf ,_ddae :=_cbag .LinestyleAttr .MarshalXMLAttr (_ae .Name {Local :"\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"});if _ddae !=nil {return _ddae ;};start .Attr =append (start .Attr ,_acf );};if _cbag .MiterlimitAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006d\u0069\u0074\u0065\u0072\u006c\u0069\u006d\u0069\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cbag .MiterlimitAttr )});};if _cbag .JoinstyleAttr !=ST_StrokeJoinStyleUnset {_eca ,_gbef :=_cbag .JoinstyleAttr .MarshalXMLAttr (_ae .Name {Local :"\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"});if _gbef !=nil {return _gbef ;};start .Attr =append (start .Attr ,_eca );};if _cbag .EndcapAttr !=ST_StrokeEndCapUnset {_bdaf ,_dgcg :=_cbag .EndcapAttr .MarshalXMLAttr (_ae .Name {Local :"\u0065\u006e\u0064\u0063\u0061\u0070"});if _dgcg !=nil {return _dgcg ;};start .Attr =append (start .Attr ,_bdaf );};if _cbag .DashstyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"},Value :_e .Sprintf ("\u0025\u0076",*_cbag .DashstyleAttr )});};if _cbag .FilltypeAttr !=ST_FillTypeUnset {_ggb ,_afcd :=_cbag .FilltypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"});if _afcd !=nil {return _afcd ;};start .Attr =append (start .Attr ,_ggb );};if _cbag .SrcAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0072\u0063"},Value :_e .Sprintf ("\u0025\u0076",*_cbag .SrcAttr )});};if _cbag .ImageaspectAttr !=ST_ImageAspectUnset {_gbgca ,_faad :=_cbag .ImageaspectAttr .MarshalXMLAttr (_ae .Name {Local :"i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"});if _faad !=nil {return _faad ;};start .Attr =append (start .Attr ,_gbgca );};if _cbag .ImagesizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_cbag .ImagesizeAttr )});};if _cbag .ImagealignshapeAttr !=_ee .ST_TrueFalseUnset {_c
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Line and its children
|
|
|
|
func (_ddefd *Line )Validate ()error {return _ddefd .ValidateWithPath ("\u004c\u0069\u006e\u0065")};func (_bbgcbe *ST_ImageAspect )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_bbgcbe =0;case "\u0069\u0067\u006e\u006f\u0072\u0065":*_bbgcbe =1;case "\u0061\u0074\u004d\u006f\u0073\u0074":*_bbgcbe =2;case "\u0061t\u004c\u0065\u0061\u0073\u0074":*_bbgcbe =3;};return nil ;};func NewTextpath ()*Textpath {_cdacd :=&Textpath {};_cdacd .CT_TextPath =*NewCT_TextPath ();return _cdacd ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_Chromakey and its children
|
|
|
|
func (_dae *AG_Chromakey )Validate ()error {return _dae .ValidateWithPath ("\u0041\u0047\u005fC\u0068\u0072\u006f\u006d\u0061\u006b\u0065\u0079");};func (_efce ST_StrokeArrowLength )ValidateWithPath (path string )error {switch _efce {case 0,1,2,3: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 (_efce ));};return nil ;};func (_gcff ST_StrokeArrowLength )String ()string {switch _gcff {case 0:return "";case 1:return "\u0073\u0068\u006fr\u0074";case 2:return "\u006d\u0065\u0064\u0069\u0075\u006d";case 3:return "\u006c\u006f\u006e\u0067";};return "";};type OfcST_BWMode byte ;func (_ad *AG_AllCoreAttributes )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_eg :=range start .Attr {if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eg .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ad .BulletAttr .UnmarshalXMLAttr (_eg );continue ;};if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eg .Name .Local =="\u006f\u006e\u0065\u0064"{_ad .OnedAttr .UnmarshalXMLAttr (_eg );continue ;};if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eg .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_ad .AllowincellAttr .UnmarshalXMLAttr (_eg );continue ;};if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eg .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_gbd ,_fcd :=_aa .ParseInt (_eg .Value ,10,64);if _fcd !=nil {return _fcd ;};_ad .RegroupidAttr =&_gbd ;continue ;};if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eg .Name .Local =="d\u0067\u006d\u006e\u006f\u0064\u0065\u006b\u0069\u006e\u0064"{_fcf ,_gae :=_aa .ParseInt (_eg .Value ,10,64);if _gae !=nil {return _gae ;};_ad .DgmnodekindAttr =&_fcf ;continue ;};if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eg .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_ad .DoubleclicknotifyAttr .UnmarshalXMLAttr (_eg );continue ;};if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eg .Name .Local =="\u0062\u006fr\u0064\u0065\u0072r\u0069\u0067\u0068\u0074\u0063\u006f\u006c\u006f\u0072"{_dcd ,_gfc :=_eg .Value ,error (nil );if _gfc !=nil {return _gfc ;};_ad .BorderrightcolorAttr =&_dcd ;continue ;};if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eg .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_ad .ButtonAttr .UnmarshalXMLAttr (_eg );continue ;};if _eg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Skew and its children, prefixing error messages with path
|
|
|
|
func (_acdgdd *OfcCT_Skew )ValidateWithPath (path string )error {if _fcgdd :=_acdgdd .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_fcgdd !=nil {return _fcgdd ;};if _gedf :=_acdgdd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gedf !=nil {return _gedf ;};return nil ;};func NewGroup ()*Group {_feba :=&Group {};_feba .CT_Group =*NewCT_Group ();return _feba };type CT_Fill struct{TypeAttr ST_FillType ;OnAttr _ee .ST_TrueFalse ;ColorAttr *string ;OpacityAttr *string ;Color2Attr *string ;SrcAttr *string ;HrefAttr *string ;AlthrefAttr *string ;SizeAttr *string ;OriginAttr *string ;PositionAttr *string ;AspectAttr ST_ImageAspect ;ColorsAttr *string ;AngleAttr *float64 ;AlignshapeAttr _ee .ST_TrueFalse ;FocusAttr *string ;FocussizeAttr *string ;FocuspositionAttr *string ;MethodAttr ST_FillMethod ;DetectmouseclickAttr _ee .ST_TrueFalse ;TitleAttr *string ;Opacity2Attr *string ;RecolorAttr _ee .ST_TrueFalse ;RotateAttr _ee .ST_TrueFalse ;IdAttr *string ;RelidAttr *string ;Fill *OfcFill ;SIdAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the EG_ShapeElements and its children, prefixing error messages with path
|
|
|
|
func (_dcaea *EG_ShapeElements )ValidateWithPath (path string )error {if _dcaea .Path !=nil {if _fgcd :=_dcaea .Path .ValidateWithPath (path +"\u002f\u0050\u0061t\u0068");_fgcd !=nil {return _fgcd ;};};if _dcaea .Formulas !=nil {if _cdbgde :=_dcaea .Formulas .ValidateWithPath (path +"\u002fF\u006f\u0072\u006d\u0075\u006c\u0061s");_cdbgde !=nil {return _cdbgde ;};};if _dcaea .Handles !=nil {if _ggfaa :=_dcaea .Handles .ValidateWithPath (path +"\u002f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");_ggfaa !=nil {return _ggfaa ;};};if _dcaea .Fill !=nil {if _feec :=_dcaea .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_feec !=nil {return _feec ;};};if _dcaea .Stroke !=nil {if _cadagb :=_dcaea .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_cadagb !=nil {return _cadagb ;};};if _dcaea .Shadow !=nil {if _ceaec :=_dcaea .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_ceaec !=nil {return _ceaec ;};};if _dcaea .Textbox !=nil {if _edfbe :=_dcaea .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_edfbe !=nil {return _edfbe ;};};if _dcaea .Textpath !=nil {if _cdbfef :=_dcaea .Textpath .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0070\u0061\u0074h");_cdbfef !=nil {return _cdbfef ;};};if _dcaea .Imagedata !=nil {if _dgcf :=_dcaea .Imagedata .ValidateWithPath (path +"\u002f\u0049\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061");_dgcf !=nil {return _dgcf ;};};if _dcaea .Skew !=nil {if _gggbc :=_dcaea .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_gggbc !=nil {return _gggbc ;};};if _dcaea .Extrusion !=nil {if _gefeag :=_dcaea .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_gefeag !=nil {return _gefeag ;};};if _dcaea .Callout !=nil {if _fabde :=_dcaea .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_fabde !=nil {return _fabde ;};};if _dcaea .Lock !=nil {if _fbfabe :=_dcaea .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_fbfabe !=nil {return _fbfabe ;};};if _dcaea .Clippath !=nil {if _cbade :=_dcaea .Clippath .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0070\u0061\u0074h");_cbade !=nil {return _cbade ;};};if _dcaea .Signatureline !=nil {if _eaecg :=_dcaea .Signatureline .ValidateWithPath (path +"\u002f\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065");_eaecg !=nil {return _eaecg ;};};if _dcaea .Wrap !=nil {if _bcfc :=_dcaea .Wrap .ValidateWithPath (path +"\u002f\u0057\u0072a\u0070");_bcfc !=nil {return _bcfc ;};};if _dcaea .Anchorlock !=nil {if _ebbcd :=_dcaea .Anchorlock .ValidateWithPath (path +"/\u0041\u006e\u0063\u0068\u006f\u0072\u006c\u006f\u0063\u006b");_ebbcd !=nil {return _ebbcd ;};};if _dcaea .Bordertop !=nil {if _beabd :=_dcaea .Bordertop .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070");_beabd !=nil {return _beabd ;};};if _dcaea .Borderbottom !=nil {if _gdbe :=_dcaea .Borderbottom .ValidateWithPath (path +"\u002f\u0042\u006f\u0072\u0064\u0065\u0072\u0062\u006f\u0074\u0074\u006f\u006d");_gdbe !=nil {return _gdbe ;};};if _dcaea .Borderleft !=nil {if _ccgc :=_dcaea .Borderleft .ValidateWithPath (path +"/\u0042\u006f\u0072\u0064\u0065\u0072\u006c\u0065\u0066\u0074");_ccgc !=nil {return _ccgc ;};};if _dcaea .Borderright !=nil {if _cdcfd :=_dcaea .Borderright .ValidateWithPath (path +"\u002f\u0042\u006fr\u0064\u0065\u0072\u0072\u0069\u0067\u0068\u0074");_cdcfd !=nil {return _cdcfd ;};};if _dcaea .ClientData !=nil {if _cgeeg :=_dcaea .ClientData .ValidateWithPath (path +"/\u0043\u006c\u0069\u0065\u006e\u0074\u0044\u0061\u0074\u0061");_cgeeg !=nil {return _cgeeg ;};};if _dcaea .Textdata !=nil {if _caec :=_dcaea .Textdata .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0064\u0061\u0074a");_caec !=nil {return _caec ;};};return nil ;};type ST_StrokeArrowWidth byte ;func (_aecec *OfcST_DiagramLayout )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_bebdb ,_ebcga :=d .Token ();if _ebcga !=nil {return _ebcga ;};if _bbcaa ,_gceec
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Proxy and its children, prefixing error messages with path
|
|
|
|
func (_acad *OfcCT_Proxy )ValidateWithPath (path string )error {if _eeaee :=_acad .StartAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0061\u0072\u0074\u0041\u0074\u0074\u0072");_eeaee !=nil {return _eeaee ;};if _gdefd :=_acad .EndAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0041\u0074\u0074\u0072");_gdefd !=nil {return _gdefd ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Curve and its children, prefixing error messages with path
|
|
|
|
func (_aefe *CT_Curve )ValidateWithPath (path string )error {for _fcde ,_dcceb :=range _aefe .EG_ShapeElements {if _acef :=_dcceb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fcde ));_acef !=nil {return _acef ;};};if _caaa :=_aefe .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_caaa !=nil {return _caaa ;};if _gdbd :=_aefe .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gdbd !=nil {return _gdbd ;};if _fadg :=_aefe .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_fadg !=nil {return _fadg ;};if _ecdde :=_aefe .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ecdde !=nil {return _ecdde ;};if _gggg :=_aefe .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_gggg !=nil {return _gggg ;};if _bbe :=_aefe .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_bbe !=nil {return _bbe ;};if _caff :=_aefe .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_caff !=nil {return _caff ;};if _ade :=_aefe .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_ade !=nil {return _ade ;};if _egad :=_aefe .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_egad !=nil {return _egad ;};if _fefd :=_aefe .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fefd !=nil {return _fefd ;};if _dcdcb :=_aefe .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_dcdcb !=nil {return _dcdcb ;};if _cdce :=_aefe .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_cdce !=nil {return _cdce ;};if _acg :=_aefe .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_acg !=nil {return _acg ;};if _abfa :=_aefe .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_abfa !=nil {return _abfa ;};if _afbf :=_aefe .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_afbf !=nil {return _afbf ;};if _aabge :=_aefe .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_aabge !=nil {return _aabge ;};if _bdga :=_aefe .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bdga !=nil {return _bdga ;};if _egag :=_aefe .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_egag !=nil {return _egag ;};if _edbee :=_aefe .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_edbee !=nil {return _edbee ;};if _daga :=_aefe .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_daga !=nil {return _daga ;};if _cfbdb :=_aefe .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_cfbdb !=nil {return _cfbdb ;};if _bfcg :=_aefe .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_bfcg !=nil {return _bfcg ;};if _efab :=_aefe .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_efab !=nil {return _efab ;};if _dacae :=_aefe .Forc
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Entry and its children, prefixing error messages with path
|
|
|
|
func (_efggd *OfcCT_Entry )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Extrusion and its children, prefixing error messages with path
|
|
|
|
func (_cedcb *OfcCT_Extrusion )ValidateWithPath (path string )error {if _fede :=_cedcb .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_fede !=nil {return _fede ;};if _ddgga :=_cedcb .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_ddgga !=nil {return _ddgga ;};if _dggca :=_cedcb .RenderAttr .ValidateWithPath (path +"/\u0052\u0065\u006e\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_dggca !=nil {return _dggca ;};if _caeg :=_cedcb .PlaneAttr .ValidateWithPath (path +"\u002f\u0050\u006c\u0061\u006e\u0065\u0041\u0074\u0074\u0072");_caeg !=nil {return _caeg ;};if _fcbed :=_cedcb .LockrotationcenterAttr .ValidateWithPath (path +"\u002f\u004c\u006fck\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_fcbed !=nil {return _fcbed ;};if _gcfbf :=_cedcb .AutorotationcenterAttr .ValidateWithPath (path +"\u002f\u0041\u0075to\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0063\u0065\u006e\u0074\u0065\u0072\u0041\u0074\u0074\u0072");_gcfbf !=nil {return _gcfbf ;};if _geacee :=_cedcb .ColormodeAttr .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_geacee !=nil {return _geacee ;};if _ddfcg :=_cedcb .MetalAttr .ValidateWithPath (path +"\u002f\u004d\u0065\u0074\u0061\u006c\u0041\u0074\u0074\u0072");_ddfcg !=nil {return _ddfcg ;};if _fdacb :=_cedcb .LightfaceAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u0067\u0068\u0074\u0066\u0061\u0063e\u0041\u0074\u0074\u0072");_fdacb !=nil {return _fdacb ;};if _cbegc :=_cedcb .LightharshAttr .ValidateWithPath (path +"\u002fL\u0069g\u0068\u0074\u0068\u0061\u0072\u0073\u0068\u0041\u0074\u0074\u0072");_cbegc !=nil {return _cbegc ;};if _ddeae :=_cedcb .Lightharsh2Attr .ValidateWithPath (path +"\u002f\u004ci\u0067\u0068\u0074h\u0061\u0072\u0073\u0068\u0032\u0041\u0074\u0074\u0072");_ddeae !=nil {return _ddeae ;};if _bcacb :=_cedcb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bcacb !=nil {return _bcacb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Line and its children, prefixing error messages with path
|
|
|
|
func (_gcafe *Line )ValidateWithPath (path string )error {if _cgad :=_gcafe .CT_Line .ValidateWithPath (path );_cgad !=nil {return _cgad ;};return nil ;};func (_cfagc *OfcST_BWMode )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_cfagc =0;case "\u0063\u006f\u006co\u0072":*_cfagc =1;case "\u0061\u0075\u0074\u006f":*_cfagc =2;case "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce":*_cfagc =3;case "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065":*_cfagc =4;case "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079":*_cfagc =5;case "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065":*_cfagc =6;case "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074":*_cfagc =7;case "\u0062\u006c\u0061c\u006b":*_cfagc =8;case "\u0077\u0068\u0069t\u0065":*_cfagc =9;case "\u0068\u0069\u0064\u0065":*_cfagc =10;case "\u0075n\u0064\u0072\u0061\u0077\u006e":*_cfagc =11;case "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073":*_cfagc =12;};return nil ;};func NewArc ()*Arc {_effee :=&Arc {};_effee .CT_Arc =*NewCT_Arc ();return _effee };func NewOfcCT_Relation ()*OfcCT_Relation {_befc :=&OfcCT_Relation {};return _befc };func (_fag *AG_Ext )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_fag .ExtAttr =ST_Ext (1);for _ ,_bcfb :=range start .Attr {if _bcfb .Name .Local =="\u0065\u0078\u0074"{_fag .ExtAttr .UnmarshalXMLAttr (_bcfb );continue ;};};for {_bagf ,_dgde :=d .Token ();if _dgde !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0041G\u005f\u0045x\u0074\u003a\u0020\u0025\u0073",_dgde );};if _aedc ,_fbc :=_bagf .(_ae .EndElement );_fbc &&_aedc .Name ==start .Name {break ;};};return nil ;};func NewBackground ()*Background {_fdbd :=&Background {};_fdbd .CT_Background =*NewCT_Background ();return _fdbd ;};func (_gbcff *ST_Ext )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_cgdac ,_gebed :=d .Token ();if _gebed !=nil {return _gebed ;};if _fggdd ,_bgadc :=_cgdac .(_ae .EndElement );_bgadc &&_fggdd .Name ==start .Name {*_gbcff =1;return nil ;};if _fggbg ,_badcg :=_cgdac .(_ae .CharData );!_badcg {return _e .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",_cgdac );}else {switch string (_fggbg ){case "":*_gbcff =0;case "\u0076\u0069\u0065\u0077":*_gbcff =1;case "\u0065\u0064\u0069\u0074":*_gbcff =2;case "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065":*_gbcff =3;};};_cgdac ,_gebed =d .Token ();if _gebed !=nil {return _gebed ;};if _ffefe ,_baff :=_cgdac .(_ae .EndElement );_baff &&_ffefe .Name ==start .Name {return nil ;};return _e .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",_cgdac );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Oval and its children, prefixing error messages with path
|
|
|
|
func (_dbedcf *Oval )ValidateWithPath (path string )error {if _agbbf :=_dbedcf .CT_Oval .ValidateWithPath (path );_agbbf !=nil {return _agbbf ;};return nil ;};func (_eged *AG_ShapeAttributes )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _eged .OpacityAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_e .Sprintf ("\u0025\u0076",*_eged .OpacityAttr )});};if _eged .StrokedAttr !=_ee .ST_TrueFalseUnset {_bfbd ,_dedc :=_eged .StrokedAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _dedc !=nil {return _dedc ;};start .Attr =append (start .Attr ,_bfbd );};if _eged .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_eged .StrokecolorAttr )});};if _eged .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_eged .StrokeweightAttr )});};if _eged .InsetpenAttr !=_ee .ST_TrueFalseUnset {_agef ,_gdbg :=_eged .InsetpenAttr .MarshalXMLAttr (_ae .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _gdbg !=nil {return _gdbg ;};start .Attr =append (start .Attr ,_agef );};if _eged .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_e .Sprintf ("\u0025\u0076",*_eged .ChromakeyAttr )});};if _eged .FilledAttr !=_ee .ST_TrueFalseUnset {_gec ,_cca :=_eged .FilledAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _cca !=nil {return _cca ;};start .Attr =append (start .Attr ,_gec );};if _eged .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_eged .FillcolorAttr )});};return nil ;};type OfcST_ExtrusionType byte ;func (_gbbca OfcST_InsetMode )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_fdecff :=_ae .Attr {};_fdecff .Name =name ;switch _gbbca {case OfcST_InsetModeUnset :_fdecff .Value ="";case OfcST_InsetModeAuto :_fdecff .Value ="\u0061\u0075\u0074\u006f";case OfcST_InsetModeCustom :_fdecff .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _fdecff ,nil ;};func (_dbfb *AG_OfficeShapeAttributes )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _dbfb .SptAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003a\u0073p\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dbfb .SptAttr )});};if _dbfb .ConnectortypeAttr !=OfcST_ConnectorTypeUnset {_agcea ,_ceb :=_dbfb .ConnectortypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"});if _ceb !=nil {return _ceb ;};start .Attr =append (start .Attr ,_agcea );};if _dbfb .BwmodeAttr !=OfcST_BWModeUnset {_baad ,_cge :=_dbfb .BwmodeAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _cge !=nil {return _cge ;};start .Attr =append (start .Attr ,_baad );};if _dbfb .BwpureAttr !=OfcST_BWModeUnset {_addf ,_cbcc :=_dbfb .BwpureAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u0070\u0075\u0072\u0065"});if _cbcc !=nil {return _cbcc ;};start .Attr =append (start .Attr ,_addf );};if _dbfb .BwnormalAttr !=OfcST_BWModeUnset {_fbb ,_gaf :=_dbfb .BwnormalAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _gaf !=nil {return _gaf ;};start .Attr =append (start .Attr ,_fbb );};if _dbfb .ForcedashAttr !=_ee .ST_TrueFalseUnset {_gffa ,_cdb :=_dbfb .ForcedashAttr .MarshalXMLAttr (_ae .Name {Local :"o\u003a\u0066\u006f\u0072\u0063\u0065\u0064\u0061\u0073\u0068"});if _cdb !=nil {return _cdb ;};start .Attr =append (start .Attr ,_gffa );};if _dbfb .OleiconAttr !=_ee .ST_TrueFalseUnset {_gcfb ,_cefa :=_dbfb .Ole
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_baba *AG_OfficeShapeAttributes )ValidateWithPath (path string )error {if _dcdf :=_baba .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_dcdf !=nil {return _dcdf ;};if _effe :=_baba .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_effe !=nil {return _effe ;};if _babbe :=_baba .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_babbe !=nil {return _babbe ;};if _bfee :=_baba .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_bfee !=nil {return _bfee ;};if _fdd :=_baba .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_fdd !=nil {return _fdd ;};if _fgd :=_baba .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_fgd !=nil {return _fgd ;};if _addc :=_baba .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_addc !=nil {return _addc ;};if _ffggd :=_baba .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_ffggd !=nil {return _ffggd ;};if _cfc :=_baba .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_cfc !=nil {return _cfc ;};if _fecf :=_baba .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_fecf !=nil {return _fecf ;};return nil ;};type OfcST_ExtrusionRender byte ;type CT_Line struct{FromAttr *string ;ToAttr *string ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _ee .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _ee .ST_TrueFalse ;ButtonAttr _ee .ST_TrueFalse ;UserhiddenAttr _ee .ST_TrueFalse ;BulletAttr _ee .ST_TrueFalse ;HrAttr _ee .ST_TrueFalse ;HrstdAttr _ee .ST_TrueFalse ;HrnoshadeAttr _ee .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _ee .ST_TrueFalse ;AllowoverlapAttr _ee .ST_TrueFalse ;UserdrawnAttr _ee .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _ee .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _ee .ST_TrueFalse ;OleiconAttr _ee .ST_TrueFalse ;OleAttr _ee .ST_TrueFalseBlank ;PreferrelativeAttr _ee .ST_TrueFalse ;CliptowrapAttr _ee .ST_TrueFalse ;ClipAttr _ee .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Arc and its children
|
|
|
|
func (_eafe *Arc )Validate ()error {return _eafe .ValidateWithPath ("\u0041\u0072\u0063")};func (_dfgeb *OfcST_OLEType )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_ecabg ,_dcfef :=d .Token ();if _dcfef !=nil {return _dcfef ;};if _dgeba ,_ebbcge :=_ecabg .(_ae .EndElement );_ebbcge &&_dgeba .Name ==start .Name {*_dfgeb =1;return nil ;};if _dbdec ,_ceffaa :=_ecabg .(_ae .CharData );!_ceffaa {return _e .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",_ecabg );}else {switch string (_dbdec ){case "":*_dfgeb =0;case "\u0045\u006d\u0062e\u0064":*_dfgeb =1;case "\u004c\u0069\u006e\u006b":*_dfgeb =2;};};_ecabg ,_dcfef =d .Token ();if _dcfef !=nil {return _dcfef ;};if _cgedf ,_gcabd :=_ecabg .(_ae .EndElement );_gcabd &&_cgedf .Name ==start .Name {return nil ;};return _e .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",_ecabg );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_Id and its children, prefixing error messages with path
|
|
|
|
func (_cba *AG_Id )ValidateWithPath (path string )error {return nil };func (_gfafee OfcST_BWMode )String ()string {switch _gfafee {case 0:return "";case 1:return "\u0063\u006f\u006co\u0072";case 2:return "\u0061\u0075\u0074\u006f";case 3:return "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce";case 4:return "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065";case 5:return "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079";case 6:return "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065";case 7:return "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074";case 8:return "\u0062\u006c\u0061c\u006b";case 9:return "\u0077\u0068\u0069t\u0065";case 10:return "\u0068\u0069\u0064\u0065";case 11:return "\u0075n\u0064\u0072\u0061\u0077\u006e";case 12:return "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcRight and its children
|
|
|
|
func (_ecbc *OfcRight )Validate ()error {return _ecbc .ValidateWithPath ("\u004f\u0066\u0063\u0052\u0069\u0067\u0068\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcLeft and its children
|
|
|
|
func (_acgbe *OfcLeft )Validate ()error {return _acgbe .ValidateWithPath ("\u004ff\u0063\u004c\u0065\u0066\u0074");};func (_bfeff *CT_Stroke )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u0073\u0074\u0072\u006f\u006b\u0065";};if _bfeff .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .IdAttr )});};if _bfeff .OnAttr !=_ee .ST_TrueFalseUnset {_efbde ,_daabg :=_bfeff .OnAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u006e"});if _daabg !=nil {return _daabg ;};start .Attr =append (start .Attr ,_efbde );};if _bfeff .WeightAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .WeightAttr )});};if _bfeff .ColorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .ColorAttr )});};if _bfeff .OpacityAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .OpacityAttr )});};if _bfeff .LinestyleAttr !=ST_StrokeLineStyleUnset {_debce ,_edcee :=_bfeff .LinestyleAttr .MarshalXMLAttr (_ae .Name {Local :"\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"});if _edcee !=nil {return _edcee ;};start .Attr =append (start .Attr ,_debce );};if _bfeff .MiterlimitAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006d\u0069\u0074\u0065\u0072\u006c\u0069\u006d\u0069\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .MiterlimitAttr )});};if _bfeff .JoinstyleAttr !=ST_StrokeJoinStyleUnset {_eedfgb ,_dgeea :=_bfeff .JoinstyleAttr .MarshalXMLAttr (_ae .Name {Local :"\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"});if _dgeea !=nil {return _dgeea ;};start .Attr =append (start .Attr ,_eedfgb );};if _bfeff .EndcapAttr !=ST_StrokeEndCapUnset {_aabbf ,_ffaca :=_bfeff .EndcapAttr .MarshalXMLAttr (_ae .Name {Local :"\u0065\u006e\u0064\u0063\u0061\u0070"});if _ffaca !=nil {return _ffaca ;};start .Attr =append (start .Attr ,_aabbf );};if _bfeff .DashstyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .DashstyleAttr )});};if _bfeff .FilltypeAttr !=ST_FillTypeUnset {_abaad ,_fbccbe :=_bfeff .FilltypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"});if _fbccbe !=nil {return _fbccbe ;};start .Attr =append (start .Attr ,_abaad );};if _bfeff .SrcAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0072\u0063"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .SrcAttr )});};if _bfeff .ImageaspectAttr !=ST_ImageAspectUnset {_edfgf ,_bfde :=_bfeff .ImageaspectAttr .MarshalXMLAttr (_ae .Name {Local :"i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"});if _bfde !=nil {return _bfde ;};start .Attr =append (start .Attr ,_edfgf );};if _bfeff .ImagesizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .ImagesizeAttr )});};if _bfeff .ImagealignshapeAttr !=_ee .ST_TrueFalseUnset {_bace ,_bffgg :=_bfeff .ImagealignshapeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0069m\u0061g\u0065\u0061\u006c\u0069\u0067\u006e\u0073\u0068\u0061\u0070\u0065"});if _bffgg !=nil {return _bffgg ;};start .Attr =append (start .Attr ,_bace );};if _bfeff .Color2Attr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0032"},Value :_e .Sprintf ("\u0025\u0076",*_bfeff .Color2Attr )});};if _bfeff .StartarrowAttr !=ST_StrokeArrowTypeUnset {_gded ,_dcde :=_bfeff .StartarrowAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"});if _dcde !=nil {return _dcde ;};start
|
2021-07-30 17:03:26 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_IdMap and its children, prefixing error messages with path
|
|
|
|
func (_efdcd *OfcCT_IdMap )ValidateWithPath (path string )error {if _ebgcf :=_efdcd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ebgcf !=nil {return _ebgcf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Fill and its children, prefixing error messages with path
|
|
|
|
func (_efd *CT_Fill )ValidateWithPath (path string )error {if _eecb :=_efd .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_eecb !=nil {return _eecb ;};if _dcceg :=_efd .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_dcceg !=nil {return _dcceg ;};if _dccegd :=_efd .AspectAttr .ValidateWithPath (path +"/\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_dccegd !=nil {return _dccegd ;};if _gafda :=_efd .AlignshapeAttr .ValidateWithPath (path +"\u002fA\u006ci\u0067\u006e\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_gafda !=nil {return _gafda ;};if _aebd :=_efd .MethodAttr .ValidateWithPath (path +"/\u004d\u0065\u0074\u0068\u006f\u0064\u0041\u0074\u0074\u0072");_aebd !=nil {return _aebd ;};if _bfecg :=_efd .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_bfecg !=nil {return _bfecg ;};if _dadd :=_efd .RecolorAttr .ValidateWithPath (path +"\u002f\u0052\u0065c\u006f\u006c\u006f\u0072\u0041\u0074\u0074\u0072");_dadd !=nil {return _dadd ;};if _aade :=_efd .RotateAttr .ValidateWithPath (path +"/\u0052\u006f\u0074\u0061\u0074\u0065\u0041\u0074\u0074\u0072");_aade !=nil {return _aade ;};if _efd .Fill !=nil {if _bcdg :=_efd .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_bcdg !=nil {return _bcdg ;};};return nil ;};func (_afgcd ST_FillMethod )Validate ()error {return _afgcd .ValidateWithPath ("")};func (_deef *CT_TextPath )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068";};if _deef .OnAttr !=_ee .ST_TrueFalseUnset {_bged ,_acee :=_deef .OnAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u006e"});if _acee !=nil {return _acee ;};start .Attr =append (start .Attr ,_bged );};if _deef .FitshapeAttr !=_ee .ST_TrueFalseUnset {_cfefag ,_egef :=_deef .FitshapeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"});if _egef !=nil {return _egef ;};start .Attr =append (start .Attr ,_cfefag );};if _deef .FitpathAttr !=_ee .ST_TrueFalseUnset {_bbcadd ,_deeadd :=_deef .FitpathAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066i\u0074\u0070\u0061\u0074\u0068"});if _deeadd !=nil {return _deeadd ;};start .Attr =append (start .Attr ,_bbcadd );};if _deef .TrimAttr !=_ee .ST_TrueFalseUnset {_bfafe ,_afdge :=_deef .TrimAttr .MarshalXMLAttr (_ae .Name {Local :"\u0074\u0072\u0069\u006d"});if _afdge !=nil {return _afdge ;};start .Attr =append (start .Attr ,_bfafe );};if _deef .XscaleAttr !=_ee .ST_TrueFalseUnset {_fedga ,_decfa :=_deef .XscaleAttr .MarshalXMLAttr (_ae .Name {Local :"\u0078\u0073\u0063\u0061\u006c\u0065"});if _decfa !=nil {return _decfa ;};start .Attr =append (start .Attr ,_fedga );};if _deef .StringAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0072\u0069\u006e\u0067"},Value :_e .Sprintf ("\u0025\u0076",*_deef .StringAttr )});};if _deef .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_deef .IdAttr )});};if _deef .StyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_deef .StyleAttr )});};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_gedb *AG_OfficeCoreAttributes )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_dbag :=range start .Attr {if _dbag .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_dbag .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_gedb .HralignAttr .UnmarshalXMLAttr (_dbag );continue ;};if _dbag .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Rules and its children, prefixing error messages with path
|
|
|
|
func (_abgdc *OfcCT_Rules )ValidateWithPath (path string )error {for _dbbfdg ,_cabec :=range _abgdc .R {if _adedg :=_cabec .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0052\u005b\u0025\u0064\u005d",path ,_dbbfdg ));_adedg !=nil {return _adedg ;};};if _fdbca :=_abgdc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fdbca !=nil {return _fdbca ;};return nil ;};type OfcBottom struct{OfcCT_StrokeChild };func (_dccg *AG_Path )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_abedg :=range start .Attr {if _abedg .Name .Local =="\u0070\u0061\u0074\u0068"{_caeb ,_fbfa :=_abedg .Value ,error (nil );if _fbfa !=nil {return _fbfa ;};_dccg .PathAttr =&_caeb ;continue ;};};for {_cdbg ,_fdf :=d .Token ();if _fdf !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0050\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_fdf );};if _gaec ,_cbd :=_cdbg .(_ae .EndElement );_cbd &&_gaec .Name ==start .Name {break ;};};return nil ;};func (_fcaac OfcST_DiagramLayout )Validate ()error {return _fcaac .ValidateWithPath ("")};func (_ggfaf OfcST_ExtrusionPlane )Validate ()error {return _ggfaf .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Textpath and its children
|
|
|
|
func (_bgbdc *Textpath )Validate ()error {return _bgbdc .ValidateWithPath ("\u0054\u0065\u0078\u0074\u0070\u0061\u0074\u0068");};func (_abg *AG_Adj )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_gf :=range start .Attr {if _gf .Name .Local =="\u0061\u0064\u006a"{_eed ,_gb :=_gf .Value ,error (nil );if _gb !=nil {return _gb ;};_abg .AdjAttr =&_eed ;continue ;};};for {_dgd ,_de :=d .Token ();if _de !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u0041G\u005f\u0041d\u006a\u003a\u0020\u0025\u0073",_de );};if _ca ,_eb :=_dgd .(_ae .EndElement );_eb &&_ca .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Extrusion and its children
|
|
|
|
func (_bfcb *OfcCT_Extrusion )Validate ()error {return _bfcb .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};type CT_Shape struct{GfxdataAttr *string ;EquationxmlAttr *string ;Ink []*OfcInk ;Iscomment []*_b .Iscomment ;Equationxml []*OfcEquationxml ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _ee .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _ee .ST_TrueFalse ;ButtonAttr _ee .ST_TrueFalse ;UserhiddenAttr _ee .ST_TrueFalse ;BulletAttr _ee .ST_TrueFalse ;HrAttr _ee .ST_TrueFalse ;HrstdAttr _ee .ST_TrueFalse ;HrnoshadeAttr _ee .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _ee .ST_TrueFalse ;AllowoverlapAttr _ee .ST_TrueFalse ;UserdrawnAttr _ee .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _ee .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _ee .ST_TrueFalse ;OleiconAttr _ee .ST_TrueFalse ;OleAttr _ee .ST_TrueFalseBlank ;PreferrelativeAttr _ee .ST_TrueFalse ;CliptowrapAttr _ee .ST_TrueFalse ;ClipAttr _ee .ST_TrueFalse ;TypeAttr *string ;AdjAttr *string ;PathAttr *string ;};const (OfcST_ConnectorTypeUnset OfcST_ConnectorType =0;OfcST_ConnectorTypeNone OfcST_ConnectorType =1;OfcST_ConnectorTypeStraight OfcST_ConnectorType =2;OfcST_ConnectorTypeElbow OfcST_ConnectorType =3;OfcST_ConnectorTypeCurved OfcST_ConnectorType =4;);func (_degea *OfcCT_Extrusion )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="o\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e";};if _degea .OnAttr !=_ee .ST_TrueFalseUnset {_gadbc ,_ddedg :=_degea .OnAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u006e"});if _ddedg !=nil {return _ddedg ;};start .Attr =append (start .Attr ,_gadbc );};if _degea .TypeAttr !=OfcST_ExtrusionTypeUnset {_fbgeb ,_edffc :=_degea .TypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0074\u0079\u0070\u0065"});if _edffc !=nil {return _edffc ;};start .Attr =append (start .Attr ,_fbgeb );};if _degea .RenderAttr !=OfcST_ExtrusionRenderUnset {_aacd ,_gaafc :=_degea .RenderAttr .MarshalXMLAttr (_ae .Name {Local :"\u0072\u0065\u006e\u0064\u0065\u0072"});if _gaafc !=nil {return _gaafc ;};start .Attr =append (start .Attr ,_aacd );};if _degea .ViewpointoriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_degea .ViewpointoriginAttr )});};if _degea .ViewpointAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0076i\u0065\u0077\u0070\u006f\u0069\u006et"},Value :_e .Sprintf ("\u0025\u0076",*_degea .ViewpointAttr )});};if _degea .PlaneAttr !=OfcST_ExtrusionPlaneUnset {_baeaa ,_gdeaf :=_degea .PlaneAttr .MarshalXMLAttr (_ae .Name {Local :"\u0070\u006c\u0061n\u0065"});if _gdeaf !=nil {return _gdeaf ;};start .Attr =append (start .Attr ,_baeaa );};if _degea .SkewangleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073k\u0065\u0077\u0061\u006e\u0067\u006ce"},Value :_e .Sprintf ("\u0025\u0076",*_degea .SkewangleAttr )});};if _degea .SkewamtAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073k\u0065\u0077\u0061\u006d\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_degea .Sk
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Line and its children
|
|
|
|
func (_defa *CT_Line )Validate ()error {return _defa .ValidateWithPath ("\u0043T\u005f\u004c\u0069\u006e\u0065");};const (OfcST_RTypeUnset OfcST_RType =0;OfcST_RTypeArc OfcST_RType =1;OfcST_RTypeCallout OfcST_RType =2;OfcST_RTypeConnector OfcST_RType =3;OfcST_RTypeAlign OfcST_RType =4;);func (_bffcd OfcST_OLEType )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_bffcd .String (),start );};func (_dcbec ST_StrokeArrowType )String ()string {switch _dcbec {case 0:return "";case 1:return "\u006e\u006f\u006e\u0065";case 2:return "\u0062\u006c\u006fc\u006b";case 3:return "\u0063l\u0061\u0073\u0073\u0069\u0063";case 4:return "\u006f\u0076\u0061\u006c";case 5:return "\u0064i\u0061\u006d\u006f\u006e\u0064";case 6:return "\u006f\u0070\u0065\u006e";};return "";};func (_bgg *AG_Type )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_ecge :=range start .Attr {if _ecge .Name .Local =="\u0074\u0079\u0070\u0065"{_fgdf ,_cebb :=_ecge .Value ,error (nil );if _cebb !=nil {return _cebb ;};_bgg .TypeAttr =&_fgdf ;continue ;};};for {_daed ,_ccfb :=d .Token ();if _ccfb !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u0041\u0047\u005f\u0054\u0079\u0070\u0065\u003a\u0020\u0025\u0073",_ccfb );};if _cdbf ,_gag :=_daed .(_ae .EndElement );_gag &&_cdbf .Name ==start .Name {break ;};};return nil ;};func NewCT_F ()*CT_F {_fadc :=&CT_F {};return _fadc };type EG_ShapeElements struct{Path *Path ;Formulas *Formulas ;Handles *Handles ;Fill *Fill ;Stroke *Stroke ;Shadow *Shadow ;Textbox *Textbox ;Textpath *Textpath ;Imagedata *Imagedata ;Skew *OfcSkew ;Extrusion *OfcExtrusion ;Callout *OfcCallout ;Lock *OfcLock ;Clippath *OfcClippath ;Signatureline *OfcSignatureline ;Wrap *_dg .Wrap ;Anchorlock *_dg .Anchorlock ;Bordertop *_dg .Bordertop ;Borderbottom *_dg .Borderbottom ;Borderleft *_dg .Borderleft ;Borderright *_dg .Borderright ;ClientData *_d .ClientData ;Textdata *_b .Textdata ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_Adj and its children, prefixing error messages with path
|
|
|
|
func (_abd *AG_Adj )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_ImageData and its children
|
|
|
|
func (_cebe *CT_ImageData )Validate ()error {return _cebe .ValidateWithPath ("\u0043\u0054\u005fI\u006d\u0061\u0067\u0065\u0044\u0061\u0074\u0061");};
|
2022-02-25 19:20:45 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_Adj and its children
|
|
|
|
func (_ga *AG_Adj )Validate ()error {return _ga .ValidateWithPath ("\u0041\u0047\u005f\u0041\u0064\u006a");};func (_ccagce *ST_StrokeArrowWidth )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_ccagce =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_ccagce =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_ccagce =2;case "\u0077\u0069\u0064\u0065":*_ccagce =3;};return nil ;};type OfcOLEObject struct{OfcCT_OLEObject };func NewOfcCT_Diagram ()*OfcCT_Diagram {_cead :=&OfcCT_Diagram {};return _cead };func (_acffec OfcST_ExtrusionType )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_acffec .String (),start );};
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcSkew and its children, prefixing error messages with path
|
|
|
|
func (_abcgc *OfcSkew )ValidateWithPath (path string )error {if _gcbfd :=_abcgc .OfcCT_Skew .ValidateWithPath (path );_gcbfd !=nil {return _gcbfd ;};return nil ;};func (_cdfeb *CT_ImageData )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_fgbea :=range start .Attr {if _fgbea .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_fgbea .Name .Local =="\u0070\u0069\u0063\u0074"||_fgbea .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_fgbea .Name .Local =="\u0070\u0069\u0063\u0074"{_cgce ,_dbgaa :=_fgbea .Value ,error (nil );if _dbgaa !=nil {return _dbgaa ;};_cdfeb .PictAttr =&_cgce ;continue ;};if _fgbea .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_fgbea .Name .Local =="\u0068\u0072\u0065\u0066"||_fgbea .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_fgbea .Name .Local =="\u0068\u0072\u0065\u0066"{_fade ,_bbdaa :=_fgbea .Value ,error (nil );if _bbdaa !=nil {return _bbdaa ;};_cdfeb .RHrefAttr =&_fade ;continue ;};if _fgbea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgbea .Name .Local =="\u0068\u0072\u0065\u0066"{_fccag ,_eadgg :=_fgbea .Value ,error (nil );if _eadgg !=nil {return _eadgg ;};_cdfeb .HrefAttr =&_fccag ;continue ;};if _fgbea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgbea .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_gfaa ,_dcbeb :=_fgbea .Value ,error (nil );if _dcbeb !=nil {return _dcbeb ;};_cdfeb .AlthrefAttr =&_gfaa ;continue ;};if _fgbea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgbea .Name .Local =="\u0074\u0069\u0074l\u0065"{_dffb ,_ggbg :=_fgbea .Value ,error (nil );if _ggbg !=nil {return _ggbg ;};_cdfeb .TitleAttr =&_dffb ;continue ;};if _fgbea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgbea .Name .Local =="\u006f\u006c\u0065i\u0064"{_adag ,_fagf :=_aa .ParseFloat (_fgbea .Value ,64);if _fagf !=nil {return _fagf ;};_dgggb :=float32 (_adag );_cdfeb .OleidAttr =&_dgggb ;continue ;};if _fgbea .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u006
|
2020-10-12 13:59:12 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcShapelayout and its children, prefixing error messages with path
|
|
|
|
func (_edbgg *OfcShapelayout )ValidateWithPath (path string )error {if _faedf :=_edbgg .OfcCT_ShapeLayout .ValidateWithPath (path );_faedf !=nil {return _faedf ;};return nil ;};func (_dfaed OfcST_Angle )String ()string {switch _dfaed {case 0:return "";case 1:return "\u0061\u006e\u0079";case 2:return "\u0033\u0030";case 3:return "\u0034\u0035";case 4:return "\u0036\u0030";case 5:return "\u0039\u0030";case 6:return "\u0061\u0075\u0074\u006f";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_OLEObject and its children
|
|
|
|
func (_ffaec *OfcCT_OLEObject )Validate ()error {return _ffaec .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u004f\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func (_gdadd ST_ShadowType )ValidateWithPath (path string )error {switch _gdadd {case 0,1,2,3,4: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 (_gdadd ));};return nil ;};func (_gcgf ST_Ext )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_gcgf .String (),start );};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_R and its children
|
|
|
|
func (_dgddc *OfcCT_R )Validate ()error {return _dgddc .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0052");};const (OfcST_BWModeUnset OfcST_BWMode =0;OfcST_BWModeColor OfcST_BWMode =1;OfcST_BWModeAuto OfcST_BWMode =2;OfcST_BWModeGrayScale OfcST_BWMode =3;OfcST_BWModeLightGrayscale OfcST_BWMode =4;OfcST_BWModeInverseGray OfcST_BWMode =5;OfcST_BWModeGrayOutline OfcST_BWMode =6;OfcST_BWModeHighContrast OfcST_BWMode =7;OfcST_BWModeBlack OfcST_BWMode =8;OfcST_BWModeWhite OfcST_BWMode =9;OfcST_BWModeHide OfcST_BWMode =10;OfcST_BWModeUndrawn OfcST_BWMode =11;OfcST_BWModeBlackTextAndLines OfcST_BWMode =12;);type OfcCT_OLEObject struct{TypeAttr OfcST_OLEType ;ProgIDAttr *string ;ShapeIDAttr *string ;DrawAspectAttr OfcST_OLEDrawAspect ;ObjectIDAttr *string ;IdAttr *string ;UpdateModeAttr OfcST_OLEUpdateMode ;LinkType *string ;LockedField _ee .ST_TrueFalseBlank ;FieldCodes *string ;};func (_bcee *AG_Fill )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _bcee .FilledAttr !=_ee .ST_TrueFalseUnset {_eaf ,_bad :=_bcee .FilledAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _bad !=nil {return _bad ;};start .Attr =append (start .Attr ,_eaf );};if _bcee .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_bcee .FillcolorAttr )});};return nil ;};func (_eec *AG_Ext )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {_eba ,_ecg :=_eec .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0065\u0078\u0074"});if _ecg !=nil {return _ecg ;};start .Attr =append (start .Attr ,_eba );start .Name .Local ="\u0076\u003a\u0041\u0047\u005f\u0045\u0078\u0074";return nil ;};type OfcST_ColorMode byte ;func NewCT_TextPath ()*CT_TextPath {_cabfe :=&CT_TextPath {};return _cabfe };func (_fdeee *OfcSignatureline )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_fdeee .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();for _ ,_agdaae :=range start .Attr {if _agdaae .Name .Local =="\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"{_aacgb ,_cebab :=_agdaae .Value ,error (nil );if _cebab !=nil {return _cebab ;};_fdeee .SuggestedsignerAttr =&_aacgb ;continue ;};if _agdaae .Name .Local =="\u0069\u0064"{_bebba ,_cdafa :=_agdaae .Value ,error (nil );if _cdafa !=nil {return _cdafa ;};_fdeee .IdAttr =&_bebba ;continue ;};if _agdaae .Name .Local =="\u0070\u0072\u006f\u0076\u0069\u0064"{_dbebb ,_afcce :=_agdaae .Value ,error (nil );if _afcce !=nil {return _afcce ;};_fdeee .ProvidAttr =&_dbebb ;continue ;};if _agdaae .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"{_fdeee .SigninginstructionssetAttr .UnmarshalXMLAttr (_agdaae );continue ;};if _agdaae .Name .Local =="\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"{_fdeee .AllowcommentsAttr .UnmarshalXMLAttr (_agdaae );continue ;};if _agdaae .Name .Local =="\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"{_fdeee .ShowsigndateAttr .UnmarshalXMLAttr (_agdaae );continue ;};if _agdaae .Name .Local =="\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"{_fdeee .IssignaturelineAttr .UnmarshalXMLAttr (_agdaae );continue ;};if _agdaae .Name .Local =="\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"{_aaaca ,_bdeb :=_agdaae .Value ,error (nil );if _bdeb !=nil {return _bdeb ;};_fdeee .Suggestedsigner2Attr =&_aaaca ;continue ;};if _agdaae .Name .Local =="s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"{_dagfc ,_ecada :=_agdaae .Value ,error (nil );if _ecada !=nil {return _ecada ;};_fdeee .SuggestedsigneremailAttr =&_dagfc ;continue ;};if _agdaae .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"{_cgbgd ,_gccfb :=_agdaae .Value ,error (nil );if _gccfb !=nil {return _gccfb ;};_fdeee .Signinginst
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcClippath and its children
|
|
|
|
func (_bdfgg *OfcClippath )Validate ()error {return _bdfgg .ValidateWithPath ("O\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068");};func (_cfbd *AG_Chromakey )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _cfbd .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_e .Sprintf ("\u0025\u0076",*_cfbd .ChromakeyAttr )});};return nil ;};type OfcCT_Extrusion struct{OnAttr _ee .ST_TrueFalse ;TypeAttr OfcST_ExtrusionType ;RenderAttr OfcST_ExtrusionRender ;ViewpointoriginAttr *string ;ViewpointAttr *string ;PlaneAttr OfcST_ExtrusionPlane ;SkewangleAttr *float32 ;SkewamtAttr *string ;ForedepthAttr *string ;BackdepthAttr *string ;OrientationAttr *string ;OrientationangleAttr *float32 ;LockrotationcenterAttr _ee .ST_TrueFalse ;AutorotationcenterAttr _ee .ST_TrueFalse ;RotationcenterAttr *string ;RotationangleAttr *string ;ColormodeAttr OfcST_ColorMode ;ColorAttr *string ;ShininessAttr *float32 ;SpecularityAttr *string ;DiffusityAttr *string ;MetalAttr _ee .ST_TrueFalse ;EdgeAttr *string ;FacetAttr *string ;LightfaceAttr _ee .ST_TrueFalse ;BrightnessAttr *string ;LightpositionAttr *string ;LightlevelAttr *string ;LightharshAttr _ee .ST_TrueFalse ;Lightposition2Attr *string ;Lightlevel2Attr *string ;Lightharsh2Attr _ee .ST_TrueFalse ;ExtAttr ST_Ext ;};func NewOfcCT_ShapeDefaults ()*OfcCT_ShapeDefaults {_ecbg :=&OfcCT_ShapeDefaults {};return _ecbg };func NewOfcCT_ColorMru ()*OfcCT_ColorMru {_gfff :=&OfcCT_ColorMru {};return _gfff };type OfcST_DiagramLayout byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Roundrect and its children
|
|
|
|
func (_fecad *Roundrect )Validate ()error {return _fecad .ValidateWithPath ("\u0052o\u0075\u006e\u0064\u0072\u0065\u0063t");};func NewAG_Path ()*AG_Path {_cgaf :=&AG_Path {};return _cgaf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Lock and its children, prefixing error messages with path
|
|
|
|
func (_aebde *OfcCT_Lock )ValidateWithPath (path string )error {if _fdab :=_aebde .PositionAttr .ValidateWithPath (path +"\u002f\u0050\u006f\u0073\u0069\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_fdab !=nil {return _fdab ;};if _bffeb :=_aebde .SelectionAttr .ValidateWithPath (path +"\u002f\u0053\u0065\u006c\u0065\u0063\u0074\u0069\u006fn\u0041\u0074\u0074\u0072");_bffeb !=nil {return _bffeb ;};if _ccecf :=_aebde .GroupingAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_ccecf !=nil {return _ccecf ;};if _fcbcgb :=_aebde .UngroupingAttr .ValidateWithPath (path +"\u002fU\u006eg\u0072\u006f\u0075\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_fcbcgb !=nil {return _fcbcgb ;};if _egggc :=_aebde .RotationAttr .ValidateWithPath (path +"\u002f\u0052\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_egggc !=nil {return _egggc ;};if _agaba :=_aebde .CroppingAttr .ValidateWithPath (path +"\u002f\u0043\u0072\u006f\u0070\u0070\u0069\u006e\u0067\u0041\u0074\u0074\u0072");_agaba !=nil {return _agaba ;};if _bdgeac :=_aebde .VerticiesAttr .ValidateWithPath (path +"\u002f\u0056\u0065\u0072\u0074\u0069\u0063\u0069\u0065s\u0041\u0074\u0074\u0072");_bdgeac !=nil {return _bdgeac ;};if _ggede :=_aebde .AdjusthandlesAttr .ValidateWithPath (path +"\u002fA\u0064j\u0075\u0073\u0074\u0068\u0061n\u0064\u006ce\u0073\u0041\u0074\u0074\u0072");_ggede !=nil {return _ggede ;};if _fgef :=_aebde .TextAttr .ValidateWithPath (path +"\u002fT\u0065\u0078\u0074\u0041\u0074\u0074r");_fgef !=nil {return _fgef ;};if _eggbg :=_aebde .AspectratioAttr .ValidateWithPath (path +"\u002f\u0041s\u0070\u0065\u0063t\u0072\u0061\u0074\u0069\u006f\u0041\u0074\u0074\u0072");_eggbg !=nil {return _eggbg ;};if _bdbf :=_aebde .ShapetypeAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0070\u0065\u0074\u0079\u0070e\u0041\u0074\u0074\u0072");_bdbf !=nil {return _bdbf ;};if _eagb :=_aebde .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_eagb !=nil {return _eagb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_ImageData and its children, prefixing error messages with path
|
|
|
|
func (_ecgef *CT_ImageData )ValidateWithPath (path string )error {if _dacg :=_ecgef .DetectmouseclickAttr .ValidateWithPath (path +"/\u0044\u0065\u0074\u0065ct\u006do\u0075\u0073\u0065\u0063\u006ci\u0063\u006b\u0041\u0074\u0074\u0072");_dacg !=nil {return _dacg ;};if _gaddc :=_ecgef .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_gaddc !=nil {return _gaddc ;};if _ggde :=_ecgef .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_ggde !=nil {return _ggde ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcShapedefaults and its children
|
|
|
|
func (_bbegd *OfcShapedefaults )Validate ()error {return _bbegd .ValidateWithPath ("\u004f\u0066c\u0053\u0068\u0061p\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};func NewOfcDiagram ()*OfcDiagram {_cffgb :=&OfcDiagram {};_cffgb .OfcCT_Diagram =*NewOfcCT_Diagram ();return _cffgb ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Fill and its children
|
|
|
|
func (_fecff *Fill )Validate ()error {return _fecff .ValidateWithPath ("\u0046\u0069\u006c\u006c")};func NewOfcLock ()*OfcLock {_bfbef :=&OfcLock {};_bfbef .OfcCT_Lock =*NewOfcCT_Lock ();return _bfbef };func (_egbgb OfcST_ConnectType )Validate ()error {return _egbgb .ValidateWithPath ("")};func (_ffaaag *OfcClippath )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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 ="\u006f\u003a\u0063\u006c\u0069\u0070\u0070\u0061\u0074\u0068";return _ffaaag .OfcCT_ClipPath .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Ink and its children, prefixing error messages with path
|
|
|
|
func (_cfccef *OfcCT_Ink )ValidateWithPath (path string )error {if _aebg :=_cfccef .AnnotationAttr .ValidateWithPath (path +"\u002fA\u006en\u006f\u0074\u0061\u0074\u0069\u006f\u006e\u0041\u0074\u0074\u0072");_aebg !=nil {return _aebg ;};return nil ;};type OfcCallout struct{OfcCT_Callout };func (_efadff OfcST_OLEDrawAspect )Validate ()error {return _efadff .ValidateWithPath ("")};func (_fgcf OfcST_OLEUpdateMode )ValidateWithPath (path string )error {switch _fgcf {case 0,1,2: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 (_fgcf ));};return nil ;};func (_efee *AG_ImageAttributes )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _efee .SrcAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0072\u0063"},Value :_e .Sprintf ("\u0025\u0076",*_efee .SrcAttr )});};if _efee .CropleftAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u0072\u006f\u0070\u006c\u0065\u0066\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_efee .CropleftAttr )});};if _efee .CroptopAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063r\u006f\u0070\u0074\u006f\u0070"},Value :_e .Sprintf ("\u0025\u0076",*_efee .CroptopAttr )});};if _efee .CroprightAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063r\u006f\u0070\u0072\u0069\u0067\u0068t"},Value :_e .Sprintf ("\u0025\u0076",*_efee .CroprightAttr )});};if _efee .CropbottomAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u0072\u006f\u0070\u0062\u006f\u0074\u0074\u006f\u006d"},Value :_e .Sprintf ("\u0025\u0076",*_efee .CropbottomAttr )});};if _efee .GainAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0067\u0061\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_efee .GainAttr )});};if _efee .BlacklevelAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0062\u006c\u0061\u0063\u006b\u006c\u0065\u0076\u0065\u006c"},Value :_e .Sprintf ("\u0025\u0076",*_efee .BlacklevelAttr )});};if _efee .GammaAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0067\u0061\u006dm\u0061"},Value :_e .Sprintf ("\u0025\u0076",*_efee .GammaAttr )});};if _efee .GrayscaleAttr !=_ee .ST_TrueFalseUnset {_bfga ,_acbce :=_efee .GrayscaleAttr .MarshalXMLAttr (_ae .Name {Local :"\u0067r\u0061\u0079\u0073\u0063\u0061\u006ce"});if _acbce !=nil {return _acbce ;};start .Attr =append (start .Attr ,_bfga );};if _efee .BilevelAttr !=_ee .ST_TrueFalseUnset {_gbe ,_feb :=_efee .BilevelAttr .MarshalXMLAttr (_ae .Name {Local :"\u0062i\u006c\u0065\u0076\u0065\u006c"});if _feb !=nil {return _feb ;};start .Attr =append (start .Attr ,_gbe );};return nil ;};type OfcShapelayout struct{OfcCT_ShapeLayout };func (_fabddb OfcST_How )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_abag :=_ae .Attr {};_abag .Name =name ;switch _fabddb {case OfcST_HowUnset :_abag .Value ="";case OfcST_HowTop :_abag .Value ="\u0074\u006f\u0070";case OfcST_HowMiddle :_abag .Value ="\u006d\u0069\u0064\u0064\u006c\u0065";case OfcST_HowBottom :_abag .Value ="\u0062\u006f\u0074\u0074\u006f\u006d";case OfcST_HowLeft :_abag .Value ="\u006c\u0065\u0066\u0074";case OfcST_HowCenter :_abag .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";case OfcST_HowRight :_abag .Value ="\u0072\u0069\u0067h\u0074";};return _abag ,nil ;};type ST_ShadowType byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Arc and its children
|
|
|
|
func (_bcc *CT_Arc )Validate ()error {return _bcc .ValidateWithPath ("\u0043\u0054\u005f\u0041\u0072\u0063");};func (_bfbad *Line )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _bfbad .CT_Line .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcDiagram and its children, prefixing error messages with path
|
|
|
|
func (_edaca *OfcDiagram )ValidateWithPath (path string )error {if _gfaff :=_edaca .OfcCT_Diagram .ValidateWithPath (path );_gfaff !=nil {return _gfaff ;};return nil ;};type OfcCT_EquationXml struct{ContentTypeAttr *string ;Any _c .Any ;};func (_eeegcf OfcST_ScreenSize )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_cfbad :=_ae .Attr {};_cfbad .Name =name ;switch _eeegcf {case OfcST_ScreenSizeUnset :_cfbad .Value ="";case OfcST_ScreenSize544x376 :_cfbad .Value ="\u00354\u0034\u002c\u0033\u0037\u0036";case OfcST_ScreenSize640x480 :_cfbad .Value ="\u00364\u0030\u002c\u0034\u0038\u0030";case OfcST_ScreenSize720x512 :_cfbad .Value ="\u00372\u0030\u002c\u0035\u0031\u0032";case OfcST_ScreenSize800x600 :_cfbad .Value ="\u00380\u0030\u002c\u0036\u0030\u0030";case OfcST_ScreenSize1024x768 :_cfbad .Value ="\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038";case OfcST_ScreenSize1152x862 :_cfbad .Value ="\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032";};return _cfbad ,nil ;};func (_debfa *Shapetype )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_debfa .CT_Shapetype =*NewCT_Shapetype ();for _ ,_fdbdb :=range start .Attr {if _fdbdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdbdb .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_cdeccd ,_bcbfg :=_fdbdb .Value ,error (nil );if _bcbfg !=nil {return _bcbfg ;};_debfa .BordertopcolorAttr =&_cdeccd ;continue ;};if _fdbdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdbdb .Name .Local =="\u006d\u0061\u0073\u0074\u0065\u0072"{_dgcbd ,_ddgbd :=_fdbdb .Value ,error (nil );if _ddgbd !=nil {return _ddgbd ;};_debfa .MasterAttr =&_dgcbd ;continue ;};if _fdbdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdbdb .Name .Local =="\u0062o\u0072d\u0065\u0072\u006c\u0065\u0066\u0074\u0063\u006f\u006c\u006f\u0072"{_bgeb ,_eedce :=_fdbdb .Value ,error (nil );if _eedce !=nil {return _eedce ;};_debfa .BorderleftcolorAttr =&_bgeb ;continue ;};if _fdbdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdbdb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_debfa .BulletAttr .UnmarshalXMLAttr (_fdbdb );continue ;};if _fdbdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdbdb .Name .Local =="\u0068\u0072"{_debfa .HrAttr .UnmarshalXMLAttr (_fdbdb );continue ;};if _fdbdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdbdb .Name .Local =="\u0063\u006c\u0069\u0070"{_debfa .ClipAttr .UnmarshalXMLAttr (_fdbdb );continue ;};if _fdbdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fdbdb .Name .Local =="\u0068\u0072\u0073t\u0064"{_debfa .HrstdAttr .UnmarshalXMLAttr (_fdbdb );continue ;};if _fdbdb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Shadow and its children
|
|
|
|
func (_dcdgb *CT_Shadow )Validate ()error {return _dcdgb .ValidateWithPath ("\u0043T\u005f\u0053\u0068\u0061\u0064\u006fw");};func (_caeed *OfcCT_SignatureLine )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065";};if _caeed .IssignaturelineAttr !=_ee .ST_TrueFalseUnset {_acefg ,_dafa :=_caeed .IssignaturelineAttr .MarshalXMLAttr (_ae .Name {Local :"\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"});if _dafa !=nil {return _dafa ;};start .Attr =append (start .Attr ,_acefg );};if _caeed .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_caeed .IdAttr )});};if _caeed .ProvidAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0070\u0072\u006f\u0076\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_caeed .ProvidAttr )});};if _caeed .SigninginstructionssetAttr !=_ee .ST_TrueFalseUnset {_bbeec ,_ccfdf :=_caeed .SigninginstructionssetAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"});if _ccfdf !=nil {return _ccfdf ;};start .Attr =append (start .Attr ,_bbeec );};if _caeed .AllowcommentsAttr !=_ee .ST_TrueFalseUnset {_bccc ,_bbge :=_caeed .AllowcommentsAttr .MarshalXMLAttr (_ae .Name {Local :"\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"});if _bbge !=nil {return _bbge ;};start .Attr =append (start .Attr ,_bccc );};if _caeed .ShowsigndateAttr !=_ee .ST_TrueFalseUnset {_dedbe ,_dggeg :=_caeed .ShowsigndateAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"});if _dggeg !=nil {return _dggeg ;};start .Attr =append (start .Attr ,_dedbe );};if _caeed .SuggestedsignerAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_caeed .SuggestedsignerAttr )});};if _caeed .Suggestedsigner2Attr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"},Value :_e .Sprintf ("\u0025\u0076",*_caeed .Suggestedsigner2Attr )});};if _caeed .SuggestedsigneremailAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"},Value :_e .Sprintf ("\u0025\u0076",*_caeed .SuggestedsigneremailAttr )});};if _caeed .SigninginstructionsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_caeed .SigninginstructionsAttr )});};if _caeed .AddlxmlAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061d\u0064\u006c\u0078\u006d\u006c"},Value :_e .Sprintf ("\u0025\u0076",*_caeed .AddlxmlAttr )});};if _caeed .SigprovurlAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0069\u0067\u0070\u0072\u006f\u0076\u0075\u0072\u006c"},Value :_e .Sprintf ("\u0025\u0076",*_caeed .SigprovurlAttr )});};if _caeed .ExtAttr !=ST_ExtUnset {_cagdc ,_dfccd :=_caeed .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dfccd !=nil {return _dfccd ;};start .Attr =append (start .Attr ,_cagdc );};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func NewCT_PolyLine ()*CT_PolyLine {_dgcd :=&CT_PolyLine {};return _dgcd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Group and its children, prefixing error messages with path
|
|
|
|
func (_fddae *Group )ValidateWithPath (path string )error {if _dded :=_fddae .CT_Group .ValidateWithPath (path );_dded !=nil {return _dded ;};return nil ;};func NewCT_RoundRect ()*CT_RoundRect {_fdgfa :=&CT_RoundRect {};return _fdgfa };func (_ecdcg *OfcST_OLEUpdateMode )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_ecdcg =0;case "\u0041\u006c\u0077\u0061\u0079\u0073":*_ecdcg =1;case "\u004f\u006e\u0043\u0061\u006c\u006c":*_ecdcg =2;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_PolyLine and its children, prefixing error messages with path
|
|
|
|
func (_geffa *CT_PolyLine )ValidateWithPath (path string )error {for _dbdf ,_gcgc :=range _geffa .Ink {if _gegag :=_gcgc .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_dbdf ));_gegag !=nil {return _gegag ;};};for _addgf ,_cgead :=range _geffa .EG_ShapeElements {if _afgg :=_cgead .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_addgf ));_afgg !=nil {return _afgg ;};};if _eafac :=_geffa .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_eafac !=nil {return _eafac ;};if _dfge :=_geffa .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_dfge !=nil {return _dfge ;};if _gfagf :=_geffa .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_gfagf !=nil {return _gfagf ;};if _ecfgc :=_geffa .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ecfgc !=nil {return _ecfgc ;};if _dedda :=_geffa .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_dedda !=nil {return _dedda ;};if _baeca :=_geffa .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_baeca !=nil {return _baeca ;};if _eeedd :=_geffa .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_eeedd !=nil {return _eeedd ;};if _cade :=_geffa .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_cade !=nil {return _cade ;};if _cecf :=_geffa .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cecf !=nil {return _cecf ;};if _adebc :=_geffa .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_adebc !=nil {return _adebc ;};if _gaac :=_geffa .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gaac !=nil {return _gaac ;};if _bbgcg :=_geffa .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bbgcg !=nil {return _bbgcg ;};if _agacg :=_geffa .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_agacg !=nil {return _agacg ;};if _cgdef :=_geffa .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_cgdef !=nil {return _cgdef ;};if _edbg :=_geffa .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_edbg !=nil {return _edbg ;};if _cfddf :=_geffa .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cfddf !=nil {return _cfddf ;};if _bafe :=_geffa .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bafe !=nil {return _bafe ;};if _bfeb :=_geffa .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_bfeb !=nil {return _bfeb ;};if _fagbf :=_geffa .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_fagbf !=nil {return _fagbf ;};if _becf :=_geffa .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_becf !=nil {return _becf ;};if _beee :=_geffa .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_beee !=nil {return _beee ;};if _dcad :=_geffa .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcBottom and its children, prefixing error messages with path
|
|
|
|
func (_ecafe *OfcBottom )ValidateWithPath (path string )error {if _ccagc :=_ecafe .OfcCT_StrokeChild .ValidateWithPath (path );_ccagc !=nil {return _ccagc ;};return nil ;};func (_ffbbga OfcST_RType )Validate ()error {return _ffbbga .ValidateWithPath ("")};func NewFill ()*Fill {_ffacd :=&Fill {};_ffacd .CT_Fill =*NewCT_Fill ();return _ffacd };type AG_ShapeAttributes struct{OpacityAttr *string ;StrokedAttr _ee .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;};func (_cefg *CT_Line )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_gdfgb :=range start .Attr {if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_cefg .UserdrawnAttr .UnmarshalXMLAttr (_gdfgb );continue ;};if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_cefg .ButtonAttr .UnmarshalXMLAttr (_gdfgb );continue ;};if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_cefg .DgmlayoutmruAttr .UnmarshalXMLAttr (_gdfgb );continue ;};if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_cefg .UserhiddenAttr .UnmarshalXMLAttr (_gdfgb );continue ;};if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_cefg .CliptowrapAttr .UnmarshalXMLAttr (_gdfgb );continue ;};if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_cefg .BulletAttr .UnmarshalXMLAttr (_gdfgb );continue ;};if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u006f\u006c\u0065"{_cefg .OleAttr .UnmarshalXMLAttr (_gdfgb );continue ;};if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u0068\u0072"{_cefg .HrAttr .UnmarshalXMLAttr (_gdfgb );continue ;};if _gdfgb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdfgb .Name .Local =="\u0073\u0070\u0069\u0064"{_fecc ,_cedgb :=_gdfgb .Value ,error (nil );if _cedgb !=nil {return _cedgb ;};_cefg .SpidAttr =&_fe
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Polyline and its children, prefixing error messages with path
|
|
|
|
func (_ddfce *Polyline )ValidateWithPath (path string )error {if _adbbcg :=_ddfce .CT_PolyLine .ValidateWithPath (path );_adbbcg !=nil {return _adbbcg ;};return nil ;};func (_fagddf ST_Ext )Validate ()error {return _fagddf .ValidateWithPath ("")};func NewAG_Id ()*AG_Id {_aabbb :=&AG_Id {};return _aabbb };type Fill struct{CT_Fill };type CT_Rect struct{EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _ee .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _ee .ST_TrueFalse ;ButtonAttr _ee .ST_TrueFalse ;UserhiddenAttr _ee .ST_TrueFalse ;BulletAttr _ee .ST_TrueFalse ;HrAttr _ee .ST_TrueFalse ;HrstdAttr _ee .ST_TrueFalse ;HrnoshadeAttr _ee .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _ee .ST_TrueFalse ;AllowoverlapAttr _ee .ST_TrueFalse ;UserdrawnAttr _ee .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _ee .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _ee .ST_TrueFalse ;OleiconAttr _ee .ST_TrueFalse ;OleAttr _ee .ST_TrueFalseBlank ;PreferrelativeAttr _ee .ST_TrueFalse ;CliptowrapAttr _ee .ST_TrueFalse ;ClipAttr _ee .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcOLEObject and its children
|
|
|
|
func (_gacb *OfcOLEObject )Validate ()error {return _gacb .ValidateWithPath ("\u004f\u0066\u0063O\u004c\u0045\u004f\u0062\u006a\u0065\u0063\u0074");};func NewCT_Oval ()*CT_Oval {_eddb :=&CT_Oval {};return _eddb };func (_cdaea *EG_ShapeElements )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _cdaea .Path !=nil {_gaffd :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0070\u0061\u0074\u0068"}};e .EncodeElement (_cdaea .Path ,_gaffd );};if _cdaea .Formulas !=nil {_ffaaa :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0073"}};e .EncodeElement (_cdaea .Formulas ,_ffaaa );};if _cdaea .Handles !=nil {_eacga :=_ae .StartElement {Name :_ae .Name {Local :"\u0076:\u0068\u0061\u006e\u0064\u006c\u0065s"}};e .EncodeElement (_cdaea .Handles ,_eacga );};if _cdaea .Fill !=nil {_eeaeb :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_cdaea .Fill ,_eeaeb );};if _cdaea .Stroke !=nil {_dcef :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0073\u0074\u0072\u006f\u006b\u0065"}};e .EncodeElement (_cdaea .Stroke ,_dcef );};if _cdaea .Shadow !=nil {_dfadb :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0073\u0068\u0061\u0064\u006f\u0077"}};e .EncodeElement (_cdaea .Shadow ,_dfadb );};if _cdaea .Textbox !=nil {_bcdgb :=_ae .StartElement {Name :_ae .Name {Local :"\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx"}};e .EncodeElement (_cdaea .Textbox ,_bcdgb );};if _cdaea .Textpath !=nil {_fbgbd :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068"}};e .EncodeElement (_cdaea .Textpath ,_fbgbd );};if _cdaea .Imagedata !=nil {_bffce :=_ae .StartElement {Name :_ae .Name {Local :"v\u003a\u0069\u006d\u0061\u0067\u0065\u0064\u0061\u0074\u0061"}};e .EncodeElement (_cdaea .Imagedata ,_bffce );};if _cdaea .Skew !=nil {_eefa :=_ae .StartElement {Name :_ae .Name {Local :"\u006f\u003a\u0073\u006b\u0065\u0077"}};e .EncodeElement (_cdaea .Skew ,_eefa );};if _cdaea .Extrusion !=nil {_bgcdc :=_ae .StartElement {Name :_ae .Name {Local :"o\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e"}};e .EncodeElement (_cdaea .Extrusion ,_bgcdc );};if _cdaea .Callout !=nil {_abbfa :=_ae .StartElement {Name :_ae .Name {Local :"\u006f:\u0063\u0061\u006c\u006c\u006f\u0075t"}};e .EncodeElement (_cdaea .Callout ,_abbfa );};if _cdaea .Lock !=nil {_fdgbc :=_ae .StartElement {Name :_ae .Name {Local :"\u006f\u003a\u006c\u006f\u0063\u006b"}};e .EncodeElement (_cdaea .Lock ,_fdgbc );};if _cdaea .Clippath !=nil {_dbgde :=_ae .StartElement {Name :_ae .Name {Local :"\u006f\u003a\u0063\u006c\u0069\u0070\u0070\u0061\u0074\u0068"}};e .EncodeElement (_cdaea .Clippath ,_dbgde );};if _cdaea .Signatureline !=nil {_gcgdc :=_ae .StartElement {Name :_ae .Name {Local :"\u006f:\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"}};e .EncodeElement (_cdaea .Signatureline ,_gcgdc );};if _cdaea .Wrap !=nil {_cadcb :=_ae .StartElement {Name :_ae .Name {Local :"\u0075\u0072\u006e\u003a\u0077\u0072\u0061\u0070"}};e .EncodeElement (_cdaea .Wrap ,_cadcb );};if _cdaea .Anchorlock !=nil {_dbcgf :=_ae .StartElement {Name :_ae .Name {Local :"\u0075\u0072\u006e\u003a\u0061\u006e\u0063\u0068\u006fr\u006c\u006f\u0063\u006b"}};e .EncodeElement (_cdaea .Anchorlock ,_dbcgf );};if _cdaea .Bordertop !=nil {_bgcdgd :=_ae .StartElement {Name :_ae .Name {Local :"\u0075\u0072\u006e\u003a\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070"}};e .EncodeElement (_cdaea .Bordertop ,_bgcdgd );};if _cdaea .Borderbottom !=nil {_egegec :=_ae .StartElement {Name :_ae .Name {Local :"\u0075\u0072n\u003a\u0062\u006fr\u0064\u0065\u0072\u0062\u006f\u0074\u0074\u006f\u006d"}};e .EncodeElement (_cdaea .Borderbottom ,_egegec );};if _cdaea .Borderleft !=nil {_dgcdf :=_ae .StartElement {Name :_ae .Name {Local :"\u0075\u0072\u006e\u003a\u0062\u006f\u0072\u0064\u0065r\u006c\u0065\u0066\u0074"}};e .EncodeElement (_cdaea .Borderleft ,_dgcdf );};if _cdaea .Borderright !=nil {_fbfec :=_ae .StartElement {Name :_ae
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_AllCoreAttributes and its children
|
|
|
|
func (_dee *AG_AllCoreAttributes )Validate ()error {return _dee .ValidateWithPath ("A\u0047_\u0041\u006c\u006c\u0043\u006f\u0072\u0065\u0041t\u0074\u0072\u0069\u0062ut\u0065\u0073");};func NewOfcCT_Proxy ()*OfcCT_Proxy {_bbcdg :=&OfcCT_Proxy {};return _bbcdg };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_ClipPath and its children
|
|
|
|
func (_gffcg *OfcCT_ClipPath )Validate ()error {return _gffcg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006c\u0069p\u0050\u0061\u0074\u0068");};func NewEG_ShapeElements ()*EG_ShapeElements {_gbebe :=&EG_ShapeElements {};return _gbebe };func (_bdcdb OfcST_FillType )ValidateWithPath (path string )error {switch _bdcdb {case 0,1,2,3,4,5,6,7,8,9: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 (_bdcdb ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Arc and its children, prefixing error messages with path
|
|
|
|
func (_bdef *Arc )ValidateWithPath (path string )error {if _cfgb :=_bdef .CT_Arc .ValidateWithPath (path );_cfgb !=nil {return _cfgb ;};return nil ;};func (_cafccd OfcST_OLEDrawAspect )String ()string {switch _cafccd {case 0:return "";case 1:return "\u0043o\u006e\u0074\u0065\u006e\u0074";case 2:return "\u0049\u0063\u006f\u006e";};return "";};func NewCT_Arc ()*CT_Arc {_bgcb :=&CT_Arc {};return _bgcb };type OfcCT_ColorMenu struct{StrokecolorAttr *string ;FillcolorAttr *string ;ShadowcolorAttr *string ;ExtrusioncolorAttr *string ;ExtAttr ST_Ext ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_OLEObject and its children, prefixing error messages with path
|
|
|
|
func (_dgdge *OfcCT_OLEObject )ValidateWithPath (path string )error {if _dagaba :=_dgdge .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_dagaba !=nil {return _dagaba ;};if _bcca :=_dgdge .DrawAspectAttr .ValidateWithPath (path +"\u002fD\u0072a\u0077\u0041\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_bcca !=nil {return _bcca ;};if _bcbfb :=_dgdge .UpdateModeAttr .ValidateWithPath (path +"\u002fU\u0070d\u0061\u0074\u0065\u004d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bcbfb !=nil {return _bcbfb ;};if _begg :=_dgdge .LockedField .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b\u0065\u0064\u0046\u0069\u0065\u006c\u0064");_begg !=nil {return _begg ;};return nil ;};type Textpath struct{CT_TextPath };func (_gbaac *OfcCT_RegroupTable )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070t\u0061\u0062\u006c\u0065";};if _gbaac .ExtAttr !=ST_ExtUnset {_bggdg ,_gfdda :=_gbaac .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _gfdda !=nil {return _gfdda ;};start .Attr =append (start .Attr ,_bggdg );};e .EncodeToken (start );if _gbaac .Entry !=nil {_bagcc :=_ae .StartElement {Name :_ae .Name {Local :"\u006f:\u0065\u006e\u0074\u0072\u0079"}};for _ ,_fbebcg :=range _gbaac .Entry {e .EncodeElement (_fbebcg ,_bagcc );};};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_acbca *OfcColumn )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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 ="\u006f\u003a\u0063\u006f\u006c\u0075\u006d\u006e";return _acbca .OfcCT_StrokeChild .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Path and its children, prefixing error messages with path
|
|
|
|
func (_cbfbd *Path )ValidateWithPath (path string )error {if _acgbac :=_cbfbd .CT_Path .ValidateWithPath (path );_acgbac !=nil {return _acgbac ;};return nil ;};func (_cgacb *OfcCT_StrokeChild )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0073\u0074\u0072\u006f\u006b\u0065\u0063\u0068\u0069\u006c\u0064";};if _cgacb .OnAttr !=_ee .ST_TrueFalseUnset {_bddee ,_bbdgf :=_cgacb .OnAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u006e"});if _bbdgf !=nil {return _bbdgf ;};start .Attr =append (start .Attr ,_bddee );};if _cgacb .WeightAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cgacb .WeightAttr )});};if _cgacb .ColorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_cgacb .ColorAttr )});};if _cgacb .Color2Attr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0032"},Value :_e .Sprintf ("\u0025\u0076",*_cgacb .Color2Attr )});};if _cgacb .OpacityAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_e .Sprintf ("\u0025\u0076",*_cgacb .OpacityAttr )});};if _cgacb .LinestyleAttr !=ST_StrokeLineStyleUnset {_dfeaa ,_beggg :=_cgacb .LinestyleAttr .MarshalXMLAttr (_ae .Name {Local :"v\u003a\u006c\u0069\u006e\u0065\u0073\u0074\u0079\u006c\u0065"});if _beggg !=nil {return _beggg ;};start .Attr =append (start .Attr ,_dfeaa );};if _cgacb .MiterlimitAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006d\u0069\u0074\u0065\u0072\u006c\u0069\u006d\u0069\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cgacb .MiterlimitAttr )});};if _cgacb .JoinstyleAttr !=ST_StrokeJoinStyleUnset {_addgd ,_bgda :=_cgacb .JoinstyleAttr .MarshalXMLAttr (_ae .Name {Local :"v\u003a\u006a\u006f\u0069\u006e\u0073\u0074\u0079\u006c\u0065"});if _bgda !=nil {return _bgda ;};start .Attr =append (start .Attr ,_addgd );};if _cgacb .EndcapAttr !=ST_StrokeEndCapUnset {_ffddcd ,_bfcdf :=_cgacb .EndcapAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065\u006e\u0064\u0063\u0061\u0070"});if _bfcdf !=nil {return _bfcdf ;};start .Attr =append (start .Attr ,_ffddcd );};if _cgacb .DashstyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"},Value :_e .Sprintf ("\u0025\u0076",*_cgacb .DashstyleAttr )});};if _cgacb .InsetpenAttr !=_ee .ST_TrueFalseUnset {_deebc ,_gbecda :=_cgacb .InsetpenAttr .MarshalXMLAttr (_ae .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _gbecda !=nil {return _gbecda ;};start .Attr =append (start .Attr ,_deebc );};if _cgacb .FilltypeAttr !=ST_FillTypeUnset {_gaafb ,_acdbgd :=_cgacb .FilltypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"});if _acdbgd !=nil {return _acdbgd ;};start .Attr =append (start .Attr ,_gaafb );};if _cgacb .SrcAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0072\u0063"},Value :_e .Sprintf ("\u0025\u0076",*_cgacb .SrcAttr )});};if _cgacb .ImageaspectAttr !=ST_ImageAspectUnset {_ebbadb ,_acaaf :=_cgacb .ImageaspectAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0069\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"});if _acaaf !=nil {return _acaaf ;};start .Attr =append (start .Attr ,_ebbadb );};if _cgacb .ImagesizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069m\u0061\u0067\u0065\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_cgacb .ImagesizeAttr )});};if _cgacb .ImagealignshapeAttr !=_ee .ST_TrueFalseUnset {_fagdd ,_gdfee :=_cgacb .ImagealignshapeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0069m\u0061g\u0065\u0061\u006c\u0069\u0067\u006e\u0073\u0068\u0061\u0070\u0065"});if _gdfee !=nil {return _gdfee ;};start .Attr =append (st
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ShapeDefaults and its children, prefixing error messages with path
|
|
|
|
func (_abdb *OfcCT_ShapeDefaults )ValidateWithPath (path string )error {if _bcedcb :=_abdb .FillAttr .ValidateWithPath (path +"\u002fF\u0069\u006c\u006c\u0041\u0074\u0074r");_bcedcb !=nil {return _bcedcb ;};if _gdca :=_abdb .StrokeAttr .ValidateWithPath (path +"/\u0053\u0074\u0072\u006f\u006b\u0065\u0041\u0074\u0074\u0072");_gdca !=nil {return _gdca ;};if _daffc :=_abdb .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_daffc !=nil {return _daffc ;};if _abdb .Fill !=nil {if _ecgggc :=_abdb .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_ecgggc !=nil {return _ecgggc ;};};if _abdb .Stroke !=nil {if _dbbdb :=_abdb .Stroke .ValidateWithPath (path +"\u002fS\u0074\u0072\u006f\u006b\u0065");_dbbdb !=nil {return _dbbdb ;};};if _abdb .Textbox !=nil {if _cbcag :=_abdb .Textbox .ValidateWithPath (path +"\u002f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");_cbcag !=nil {return _cbcag ;};};if _abdb .Shadow !=nil {if _ccdfd :=_abdb .Shadow .ValidateWithPath (path +"\u002fS\u0068\u0061\u0064\u006f\u0077");_ccdfd !=nil {return _ccdfd ;};};if _abdb .Skew !=nil {if _dcecc :=_abdb .Skew .ValidateWithPath (path +"\u002f\u0053\u006be\u0077");_dcecc !=nil {return _dcecc ;};};if _abdb .Extrusion !=nil {if _acfbf :=_abdb .Extrusion .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");_acfbf !=nil {return _acfbf ;};};if _abdb .Callout !=nil {if _egbac :=_abdb .Callout .ValidateWithPath (path +"\u002f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");_egbac !=nil {return _egbac ;};};if _abdb .Lock !=nil {if _dbge :=_abdb .Lock .ValidateWithPath (path +"\u002f\u004c\u006fc\u006b");_dbge !=nil {return _dbge ;};};if _abdb .Colormru !=nil {if _efgd :=_abdb .Colormru .ValidateWithPath (path +"\u002fC\u006f\u006c\u006f\u0072\u006d\u0072u");_efgd !=nil {return _efgd ;};};if _abdb .Colormenu !=nil {if _gfgeb :=_abdb .Colormenu .ValidateWithPath (path +"\u002f\u0043\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075");_gfgeb !=nil {return _gfgeb ;};};if _cdbea :=_abdb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_cdbea !=nil {return _cdbea ;};return nil ;};func (_bbgdf *OfcLeft )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Ink and its children
|
|
|
|
func (_cedf *OfcCT_Ink )Validate ()error {return _cedf .ValidateWithPath ("\u004ff\u0063\u0043\u0054\u005f\u0049\u006ek");};func (_gaeed *OfcCT_Entry )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0065\u006e\u0074\u0072\u0079";};if _gaeed .NewAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006e\u0065\u0077"},Value :_e .Sprintf ("\u0025\u0076",*_gaeed .NewAttr )});};if _gaeed .OldAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u006c\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_gaeed .OldAttr )});};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Background and its children
|
|
|
|
func (_caa *Background )Validate ()error {return _caa .ValidateWithPath ("\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};type OfcColumn struct{OfcCT_StrokeChild };type Line struct{CT_Line };func (_bbgb *ST_StrokeLineStyle )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_bbgb =0;case "\u0073\u0069\u006e\u0067\u006c\u0065":*_bbgb =1;case "\u0074\u0068\u0069\u006e\u0054\u0068\u0069\u006e":*_bbgb =2;case "\u0074h\u0069\u006e\u0054\u0068\u0069\u0063k":*_bbgb =3;case "\u0074h\u0069\u0063\u006b\u0054\u0068\u0069n":*_bbgb =4;case "\u0074\u0068i\u0063\u006b\u0042e\u0074\u0077\u0065\u0065\u006e\u0054\u0068\u0069\u006e":*_bbgb =5;};return nil ;};type Curve struct{CT_Curve };func (_bdffg *Path )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _bdffg .CT_Path .MarshalXML (e ,start );};func NewAG_OfficeCoreAttributes ()*AG_OfficeCoreAttributes {_fae :=&AG_OfficeCoreAttributes {};return _fae ;};func (_gaebc *OfcST_OLEType )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_gaebc =0;case "\u0045\u006d\u0062e\u0064":*_gaebc =1;case "\u004c\u0069\u006e\u006b":*_gaebc =2;};return nil ;};func (_ebdfa OfcST_RType )ValidateWithPath (path string )error {switch _ebdfa {case 0,1,2,3,4: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 (_ebdfa ));};return nil ;};type OfcTop struct{OfcCT_StrokeChild };func NewOfcCT_RegroupTable ()*OfcCT_RegroupTable {_efdea :=&OfcCT_RegroupTable {};return _efdea };type OfcCT_Lock struct{PositionAttr _ee .ST_TrueFalse ;SelectionAttr _ee .ST_TrueFalse ;GroupingAttr _ee .ST_TrueFalse ;UngroupingAttr _ee .ST_TrueFalse ;RotationAttr _ee .ST_TrueFalse ;CroppingAttr _ee .ST_TrueFalse ;VerticiesAttr _ee .ST_TrueFalse ;AdjusthandlesAttr _ee .ST_TrueFalse ;TextAttr _ee .ST_TrueFalse ;AspectratioAttr _ee .ST_TrueFalse ;ShapetypeAttr _ee .ST_TrueFalse ;ExtAttr ST_Ext ;};type AG_Id struct{IdAttr *string ;};func (_cf *AG_AllCoreAttributes )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _cf .HrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_cf .HrefAttr )});};if _cf .TargetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cf .TargetAttr )});};if _cf .ClassAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cf .ClassAttr )});};if _cf .TitleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cf .TitleAttr )});};if _cf .AltAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cf .AltAttr )});};if _cf .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_cf .CoordsizeAttr )});};if _cf .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_cf .CoordoriginAttr )});};if _cf .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cf .WrapcoordsAttr )});};if _cf .PrintAttr !=_ee .ST_TrueFalseUnset {_ef ,_f :=_cf .PrintAttr .MarshalXMLAttr (_ae .Name {Local :"\u0070\u0072\u0069n\u0074"});if _f !=nil {return _f ;};start .Attr =append (start .Attr ,_ef );};if _cf .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_cf .IdAttr )});};if _cf .StyleAttr !=nil {start .Attr =append (start .Attr
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_Id and its children
|
|
|
|
func (_fbd *AG_Id )Validate ()error {return _fbd .ValidateWithPath ("\u0041\u0047\u005fI\u0064")};func NewOfcCT_RelationTable ()*OfcCT_RelationTable {_gadbcd :=&OfcCT_RelationTable {};return _gadbcd };func NewCT_Formulas ()*CT_Formulas {_eccb :=&CT_Formulas {};return _eccb };type OfcSkew struct{OfcCT_Skew };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Image and its children
|
|
|
|
func (_aebffa *Image )Validate ()error {return _aebffa .ValidateWithPath ("\u0049\u006d\u0061g\u0065")};func (_egbfb ST_StrokeArrowType )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_cdede :=_ae .Attr {};_cdede .Name =name ;switch _egbfb {case ST_StrokeArrowTypeUnset :_cdede .Value ="";case ST_StrokeArrowTypeNone :_cdede .Value ="\u006e\u006f\u006e\u0065";case ST_StrokeArrowTypeBlock :_cdede .Value ="\u0062\u006c\u006fc\u006b";case ST_StrokeArrowTypeClassic :_cdede .Value ="\u0063l\u0061\u0073\u0073\u0069\u0063";case ST_StrokeArrowTypeOval :_cdede .Value ="\u006f\u0076\u0061\u006c";case ST_StrokeArrowTypeDiamond :_cdede .Value ="\u0064i\u0061\u006d\u006f\u006e\u0064";case ST_StrokeArrowTypeOpen :_cdede .Value ="\u006f\u0070\u0065\u006e";};return _cdede ,nil ;};func (_dfcf *Background )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006c\u006e\u0073\u003a\u0075\u0072"},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 ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0075\u0072n"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068e\u006d\u0061s\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006ff\u0074\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065:\u0077\u006f\u0072\u0064"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0077"},Value :"ht\u0074\u0070:\u002f\u002f\u0073\u0063\u0068\u0065\u006d\u0061\u0073.\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u0077\u006f\u0072\u0064\u0070\u0072\u006f\u0063\u0065s\u0073i\u006e\u0067\u006d\u006c\u002f\u0032\u0030\u00306\u002fm\u0061\u0069n"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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\u007
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Oval and its children, prefixing error messages with path
|
|
|
|
func (_gbag *CT_Oval )ValidateWithPath (path string )error {for _gdbf ,_gead :=range _gbag .EG_ShapeElements {if _bdgb :=_gead .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_gdbf ));_bdgb !=nil {return _bdgb ;};};if _abbgf :=_gbag .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_abbgf !=nil {return _abbgf ;};if _gfdab :=_gbag .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_gfdab !=nil {return _gfdab ;};if _bcdba :=_gbag .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bcdba !=nil {return _bcdba ;};if _afee :=_gbag .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_afee !=nil {return _afee ;};if _ceac :=_gbag .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_ceac !=nil {return _ceac ;};if _ddcd :=_gbag .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ddcd !=nil {return _ddcd ;};if _bafdc :=_gbag .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_bafdc !=nil {return _bafdc ;};if _acfdd :=_gbag .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_acfdd !=nil {return _acfdd ;};if _cggg :=_gbag .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cggg !=nil {return _cggg ;};if _edfg :=_gbag .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_edfg !=nil {return _edfg ;};if _cbcgb :=_gbag .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_cbcgb !=nil {return _cbcgb ;};if _cdedf :=_gbag .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_cdedf !=nil {return _cdedf ;};if _ceabb :=_gbag .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_ceabb !=nil {return _ceabb ;};if _bfbgc :=_gbag .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_bfbgc !=nil {return _bfbgc ;};if _eaaf :=_gbag .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_eaaf !=nil {return _eaaf ;};if _bfgd :=_gbag .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_bfgd !=nil {return _bfgd ;};if _bcddg :=_gbag .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bcddg !=nil {return _bcddg ;};if _dcgc :=_gbag .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_dcgc !=nil {return _dcgc ;};if _bfaa :=_gbag .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_bfaa !=nil {return _bfaa ;};if _edcdf :=_gbag .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_edcdf !=nil {return _edcdf ;};if _fcddb :=_gbag .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_fcddb !=nil {return _fcddb ;};if _gbfcd :=_gbag .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_gbfcd !=nil {return _gbfcd ;};if _gafa :=_gbag .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_gafa !=nil {return _g
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the EG_ShapeElements and its children
|
|
|
|
func (_dfbac *EG_ShapeElements )Validate ()error {return _dfbac .ValidateWithPath ("\u0045\u0047_\u0053\u0068\u0061p\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_SignatureLine and its children, prefixing error messages with path
|
|
|
|
func (_fedfa *OfcCT_SignatureLine )ValidateWithPath (path string )error {if _dbfag :=_fedfa .IssignaturelineAttr .ValidateWithPath (path +"/\u0049s\u0073\u0069\u0067\u006e\u0061\u0074\u0075\u0072e\u006c\u0069\u006e\u0065At\u0074\u0072");_dbfag !=nil {return _dbfag ;};if _fedfa .IdAttr !=nil {if !_ee .ST_GuidPatternRe .MatchString (*_fedfa .IdAttr ){return _e .Errorf ("\u0025\u0073/\u006d\u002e\u0049\u0064A\u0074\u0074r\u0020\u006d\u0075\u0073\u0074\u0020\u006d\u0061t\u0063\u0068\u0020\u0027\u0025\u0073\u0027\u0020\u0028\u0068\u0061\u0076e\u0020\u0025\u0076\u0029",path ,_ee .ST_GuidPatternRe ,*_fedfa .IdAttr );};};if _fedfa .ProvidAttr !=nil {if !_ee .ST_GuidPatternRe .MatchString (*_fedfa .ProvidAttr ){return _e .Errorf ("\u0025\u0073\u002f\u006d\u002eP\u0072\u006f\u0076\u0069\u0064\u0041\u0074\u0074\u0072\u0020\u006d\u0075\u0073t\u0020\u006d\u0061\u0074\u0063\u0068\u0020\u0027\u0025\u0073\u0027\u0020\u0028\u0068\u0061\u0076\u0065\u0020\u0025\u0076\u0029",path ,_ee .ST_GuidPatternRe ,*_fedfa .ProvidAttr );};};if _feebb :=_fedfa .SigninginstructionssetAttr .ValidateWithPath (path +"/\u0053\u0069\u0067\u006e\u0069\u006eg\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069o\u006e\u0073\u0073e\u0074A\u0074\u0074\u0072");_feebb !=nil {return _feebb ;};if _ccddg :=_fedfa .AllowcommentsAttr .ValidateWithPath (path +"\u002fA\u006cl\u006f\u0077\u0063\u006f\u006dm\u0065\u006et\u0073\u0041\u0074\u0074\u0072");_ccddg !=nil {return _ccddg ;};if _cgaaad :=_fedfa .ShowsigndateAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u006f\u0077\u0073\u0069\u0067\u006e\u0064\u0061\u0074e\u0041\u0074\u0074\u0072");_cgaaad !=nil {return _cgaaad ;};if _gfffb :=_fedfa .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gfffb !=nil {return _gfffb ;};return nil ;};func (_gegb *OfcInk )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Callout and its children
|
|
|
|
func (_dcecg *OfcCT_Callout )Validate ()error {return _dcecg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Handles and its children, prefixing error messages with path
|
|
|
|
func (_dabc *CT_Handles )ValidateWithPath (path string )error {for _gdfa ,_eeea :=range _dabc .H {if _cfga :=_eeea .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0048\u005b\u0025\u0064\u005d",path ,_gdfa ));_cfga !=nil {return _cfga ;};};return nil ;};func (_ecc *CT_Curve )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_edcd :=range start .Attr {if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_ecc .AllowoverlapAttr .UnmarshalXMLAttr (_edcd );continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_cfcb ,_dfgf :=_aa .ParseInt (_edcd .Value ,10,64);if _dfgf !=nil {return _dfgf ;};_ecc .RegroupidAttr =&_cfcb ;continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u0064g\u006d\u006c\u0061\u0079\u006f\u0075t"{_ecc .DgmlayoutAttr .UnmarshalXMLAttr (_edcd );continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_ecc .DoubleclicknotifyAttr .UnmarshalXMLAttr (_edcd );continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_ecc .PreferrelativeAttr .UnmarshalXMLAttr (_edcd );continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_ecc .ButtonAttr .UnmarshalXMLAttr (_edcd );continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u006f\u006c\u0065"{_ecc .OleAttr .UnmarshalXMLAttr (_edcd );continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_ecc .UserhiddenAttr .UnmarshalXMLAttr (_edcd );continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_edcd .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_ecc .ForcedashAttr .UnmarshalXMLAttr (_edcd );continue ;};if _edcd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcLock and its children, prefixing error messages with path
|
|
|
|
func (_accdg *OfcLock )ValidateWithPath (path string )error {if _gedfc :=_accdg .OfcCT_Lock .ValidateWithPath (path );_gedfc !=nil {return _gedfc ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_F and its children, prefixing error messages with path
|
|
|
|
func (_ebabe *CT_F )ValidateWithPath (path string )error {return nil };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcEquationxml and its children, prefixing error messages with path
|
|
|
|
func (_deggf *OfcEquationxml )ValidateWithPath (path string )error {if _gbff :=_deggf .OfcCT_EquationXml .ValidateWithPath (path );_gbff !=nil {return _gbff ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Rect and its children
|
|
|
|
func (_fccff *Rect )Validate ()error {return _fccff .ValidateWithPath ("\u0052\u0065\u0063\u0074")};func (_bdcag *OfcCT_SignatureLine )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_egbdd :=range start .Attr {if _egbdd .Name .Local =="\u0073u\u0067g\u0065\u0073\u0074\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072"{_dbbfc ,_dcafg :=_egbdd .Value ,error (nil );if _dcafg !=nil {return _dcafg ;};_bdcag .SuggestedsignerAttr =&_dbbfc ;continue ;};if _egbdd .Name .Local =="\u0069\u0064"{_egfgag ,_ddceee :=_egbdd .Value ,error (nil );if _ddceee !=nil {return _ddceee ;};_bdcag .IdAttr =&_egfgag ;continue ;};if _egbdd .Name .Local =="\u0070\u0072\u006f\u0076\u0069\u0064"{_fecee ,_ffdfcg :=_egbdd .Value ,error (nil );if _ffdfcg !=nil {return _ffdfcg ;};_bdcag .ProvidAttr =&_fecee ;continue ;};if _egbdd .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073\u0073e\u0074"{_bdcag .SigninginstructionssetAttr .UnmarshalXMLAttr (_egbdd );continue ;};if _egbdd .Name .Local =="\u0061\u006c\u006c\u006f\u0077\u0063\u006f\u006d\u006d\u0065\u006e\u0074\u0073"{_bdcag .AllowcommentsAttr .UnmarshalXMLAttr (_egbdd );continue ;};if _egbdd .Name .Local =="\u0073\u0068\u006fw\u0073\u0069\u0067\u006e\u0064\u0061\u0074\u0065"{_bdcag .ShowsigndateAttr .UnmarshalXMLAttr (_egbdd );continue ;};if _egbdd .Name .Local =="\u0069s\u0073i\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065"{_bdcag .IssignaturelineAttr .UnmarshalXMLAttr (_egbdd );continue ;};if _egbdd .Name .Local =="\u0073\u0075g\u0067\u0065\u0073t\u0065\u0064\u0073\u0069\u0067\u006e\u0065\u0072\u0032"{_cabgg ,_ddffc :=_egbdd .Value ,error (nil );if _ddffc !=nil {return _ddffc ;};_bdcag .Suggestedsigner2Attr =&_cabgg ;continue ;};if _egbdd .Name .Local =="s\u0075g\u0067\u0065\u0073\u0074\u0065\u0064\u0073\u0069g\u006e\u0065\u0072\u0065ma\u0069\u006c"{_cbdge ,_dfcdb :=_egbdd .Value ,error (nil );if _dfcdb !=nil {return _dfcdb ;};_bdcag .SuggestedsigneremailAttr =&_cbdge ;continue ;};if _egbdd .Name .Local =="\u0073\u0069\u0067\u006ein\u0067\u0069\u006e\u0073\u0074\u0072\u0075\u0063\u0074\u0069\u006f\u006e\u0073"{_bcag ,_dcdcgd :=_egbdd .Value ,error (nil );if _dcdcgd !=nil {return _dcdcgd ;};_bdcag .SigninginstructionsAttr =&_bcag ;continue ;};if _egbdd .Name .Local =="\u0061d\u0064\u006c\u0078\u006d\u006c"{_fccgbb ,_ddfgf :=_egbdd .Value ,error (nil );if _ddfgf !=nil {return _ddfgf ;};_bdcag .AddlxmlAttr =&_fccgbb ;continue ;};if _egbdd .Name .Local =="\u0073\u0069\u0067\u0070\u0072\u006f\u0076\u0075\u0072\u006c"{_dcfbf ,_cedcbb :=_egbdd .Value ,error (nil );if _cedcbb !=nil {return _cedcbb ;};_bdcag .SigprovurlAttr =&_dcfbf ;continue ;};if _egbdd .Name .Local =="\u0065\u0078\u0074"{_bdcag .ExtAttr .UnmarshalXMLAttr (_egbdd );continue ;};};for {_agdba ,_fbaef :=d .Token ();if _fbaef !=nil {return _e .Errorf ("\u0070\u0061\u0072s\u0069\u006e\u0067\u0020O\u0066\u0063\u0043\u0054\u005f\u0053\u0069g\u006e\u0061\u0074\u0075\u0072\u0065\u004c\u0069\u006e\u0065\u003a\u0020\u0025\u0073",_fbaef );};if _egagg ,_daaeb :=_agdba .(_ae .EndElement );_daaeb &&_egagg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCallout and its children
|
|
|
|
func (_abcc *OfcCallout )Validate ()error {return _abcc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0061\u006c\u006c\u006f\u0075\u0074");};func NewAG_AllShapeAttributes ()*AG_AllShapeAttributes {_dbd :=&AG_AllShapeAttributes {};return _dbd };func NewAG_Ext ()*AG_Ext {_abfb :=&AG_Ext {};_abfb .ExtAttr =ST_Ext (1);return _abfb };func NewImage ()*Image {_fgdfc :=&Image {};_fgdfc .CT_Image =*NewCT_Image ();return _fgdfc };func (_adecf *OfcCT_Rules )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0072\u0075\u006c\u0065\u0073";};if _adecf .ExtAttr !=ST_ExtUnset {_efda ,_ebbcg :=_adecf .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _ebbcg !=nil {return _ebbcg ;};start .Attr =append (start .Attr ,_efda );};e .EncodeToken (start );if _adecf .R !=nil {_fbbd :=_ae .StartElement {Name :_ae .Name {Local :"\u006f\u003a\u0072"}};for _ ,_gbfbb :=range _adecf .R {e .EncodeElement (_gbfbb ,_fbbd );};};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_cffg *CT_Formulas )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_dfca :for {_dcedb ,_fbce :=d .Token ();if _fbce !=nil {return _fbce ;};switch _fffg :=_dcedb .(type ){case _ae .StartElement :switch _fffg .Name {case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066"}:_ffbc :=NewCT_F ();if _cdfg :=d .DecodeElement (_ffbc ,&_fffg );_cdfg !=nil {return _cdfg ;};_cffg .F =append (_cffg .F ,_ffbc );default:_bb .Log .Debug ("\u0073\u006bi\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073\u0020\u0025\u0076",_fffg .Name );if _dcdga :=d .Skip ();_dcdga !=nil {return _dcdga ;};};case _ae .EndElement :break _dfca ;case _ae .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_Path and its children
|
|
|
|
func (_adfc *AG_Path )Validate ()error {return _adfc .ValidateWithPath ("\u0041G\u005f\u0050\u0061\u0074\u0068");};func (_afaac ST_Ext )ValidateWithPath (path string )error {switch _afaac {case 0,1,2,3: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 (_afaac ));};return nil ;};func (_gfdfa OfcST_ExtrusionType )Validate ()error {return _gfdfa .ValidateWithPath ("")};func (_adba *CT_Background )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_ddbdg :=range start .Attr {if _ddbdg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ddbdg .Name .Local =="\u0062\u0077\u006d\u006f\u0064\u0065"{_adba .BwmodeAttr .UnmarshalXMLAttr (_ddbdg );continue ;};if _ddbdg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ddbdg .Name .Local =="\u0062\u0077\u0070\u0075\u0072\u0065"{_adba .BwpureAttr .UnmarshalXMLAttr (_ddbdg );continue ;};if _ddbdg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ddbdg .Name .Local =="\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"{_adba .BwnormalAttr .UnmarshalXMLAttr (_ddbdg );continue ;};if _ddbdg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ddbdg .Name .Local =="\u0074\u0061r\u0067\u0065\u0074s\u0063\u0072\u0065\u0065\u006e\u0073\u0069\u007a\u0065"{_adba .TargetscreensizeAttr .UnmarshalXMLAttr (_ddbdg );continue ;};if _ddbdg .Name .Local =="\u0069\u0064"{_dgbc ,_bgbf :=_ddbdg .Value ,error (nil );if _bgbf !=nil {return _bgbf ;};_adba .IdAttr =&_dgbc ;continue ;};if _ddbdg .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_adba .FilledAttr .UnmarshalXMLAttr (_ddbdg );continue ;};if _ddbdg .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_gef ,_efacb :=_ddbdg .Value ,error (nil );if _efacb !=nil {return _efacb ;};_adba .FillcolorAttr =&_gef ;continue ;};};_egeg :for {_dgff ,_edbd :=d .Token ();if _edbd !=nil {return _edbd ;};switch _ebcf :=_dgff .(type ){case _ae .StartElement :switch _ebcf .Name {case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_adba .Fill =NewFill ();if _gab :=d .DecodeElement (_adba .Fill ,&_ebcf );_gab !=nil {return _gab ;};default:_bb .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073up\u0070\u006f\u0072\u0074\u0065\u0064 \u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005f\u0042a\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064 \u0025\u0076",_ebcf .Name );if _efff :=d .Skip ();_efff !=nil {return _efff ;};};case _ae .EndElement :break _egeg ;case _ae .CharData :};};return nil ;};type OfcCT_SignatureLine struct{IssignaturelineAttr _ee .ST_TrueFalse ;IdAttr *string ;ProvidAttr *string ;SigninginstructionssetAttr _ee .ST_TrueFalse ;AllowcommentsAttr _ee .ST_TrueFalse ;ShowsigndateAttr _ee .ST_TrueFalse ;SuggestedsignerAttr *string ;Suggestedsigner2Attr *string ;SuggestedsigneremailAttr *string ;SigninginstructionsAttr *string ;AddlxmlAttr *string ;SigprovurlAttr *string ;ExtAttr ST_Ext ;};func (_gfeda *OfcCT_R )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_bcffg :=range start .Attr {if _bcffg .Name .Local =="\u0069\u0064"{_ddgce ,_edccdf
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcInk and its children, prefixing error messages with path
|
|
|
|
func (_deeaa *OfcInk )ValidateWithPath (path string )error {if _edadc :=_deeaa .OfcCT_Ink .ValidateWithPath (path );_edadc !=nil {return _edadc ;};return nil ;};type OfcST_OLEUpdateMode byte ;func (_dbdgf *ST_StrokeArrowType )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_dbdgf =0;case "\u006e\u006f\u006e\u0065":*_dbdgf =1;case "\u0062\u006c\u006fc\u006b":*_dbdgf =2;case "\u0063l\u0061\u0073\u0073\u0069\u0063":*_dbdgf =3;case "\u006f\u0076\u0061\u006c":*_dbdgf =4;case "\u0064i\u0061\u006d\u006f\u006e\u0064":*_dbdgf =5;case "\u006f\u0070\u0065\u006e":*_dbdgf =6;};return nil ;};func NewOfcCT_Skew ()*OfcCT_Skew {_dbgb :=&OfcCT_Skew {};return _dbgb };func (_bgaed OfcST_CalloutPlacement )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_bgaed .String (),start );};func (_baagga ST_FillMethod )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_baagga .String (),start );};func (_acgba *OfcCT_Complex )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0063\u006f\u006d\u0070\u006c\u0065x";};if _acgba .ExtAttr !=ST_ExtUnset {_aegdg ,_dcefg :=_acgba .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _dcefg !=nil {return _dcefg ;};start .Attr =append (start .Attr ,_aegdg );};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_cddea *OfcST_HrAlign )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_ebfee ,_fabea :=d .Token ();if _fabea !=nil {return _fabea ;};if _fbdfg ,_affbg :=_ebfee .(_ae .EndElement );_affbg &&_fbdfg .Name ==start .Name {*_cddea =1;return nil ;};if _bgeabf ,_feecgg :=_ebfee .(_ae .CharData );!_feecgg {return _e .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",_ebfee );}else {switch string (_bgeabf ){case "":*_cddea =0;case "\u006c\u0065\u0066\u0074":*_cddea =1;case "\u0072\u0069\u0067h\u0074":*_cddea =2;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_cddea =3;};};_ebfee ,_fabea =d .Token ();if _fabea !=nil {return _fabea ;};if _gfedg ,_bgbca :=_ebfee .(_ae .EndElement );_bgbca &&_gfedg .Name ==start .Name {return nil ;};return _e .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",_ebfee );};type Shape struct{CT_Shape };func (_abfae *OfcCT_RegroupTable )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_aeff :=range start .Attr {if _aeff .Name .Local =="\u0065\u0078\u0074"{_abfae .ExtAttr .UnmarshalXMLAttr (_aeff );continue ;};};_faccc :for {_afacc ,_aedgf :=d .Token ();if _aedgf !=nil {return _aedgf ;};switch _dfebf :=_afacc .(type ){case _ae .StartElement :switch _dfebf .Name {case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0065\u006e\u0074r\u0079"}:_bdfbd :=NewOfcCT_Entry ();if _cageab :=d .DecodeElement (_bdfbd ,&_dfebf );_cageab !=nil {return _cageab ;};_abfae .Entry =append (_abfae .Entry ,_bdfbd );default:_bb .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006es\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064 \u0065l\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u0067r\u006f\u0075\u0070\u0054\u0061\u0062\u006c\u0065\u0020\u0025\u0076",_dfebf .Name );if _bggaa :=d .Skip ();_bggaa !=nil {return _bggaa ;};};case _ae .EndElement :break _faccc ;case _ae .CharData :};};return nil ;};func (_gbcc OfcST_How )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_gbcc .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcEquationxml and its children
|
|
|
|
func (_fdaea *OfcEquationxml )Validate ()error {return _fdaea .ValidateWithPath ("\u004f\u0066\u0063\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0078\u006d\u006c");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Handles and its children
|
|
|
|
func (_bdabb *CT_Handles )Validate ()error {return _bdabb .ValidateWithPath ("\u0043\u0054\u005f\u0048\u0061\u006e\u0064\u006c\u0065\u0073");};func (_edfcc *ST_StrokeArrowWidth )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_baagd ,_cbfff :=d .Token ();if _cbfff !=nil {return _cbfff ;};if _bcfacd ,_ecgbbg :=_baagd .(_ae .EndElement );_ecgbbg &&_bcfacd .Name ==start .Name {*_edfcc =1;return nil ;};if _ggbde ,_adddfg :=_baagd .(_ae .CharData );!_adddfg {return _e .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",_baagd );}else {switch string (_ggbde ){case "":*_edfcc =0;case "\u006e\u0061\u0072\u0072\u006f\u0077":*_edfcc =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_edfcc =2;case "\u0077\u0069\u0064\u0065":*_edfcc =3;};};_baagd ,_cbfff =d .Token ();if _cbfff !=nil {return _cbfff ;};if _dcacgg ,_agbfb :=_baagd .(_ae .EndElement );_agbfb &&_dcacgg .Name ==start .Name {return nil ;};return _e .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",_baagd );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Polyline and its children
|
|
|
|
func (_afbcd *Polyline )Validate ()error {return _afbcd .ValidateWithPath ("\u0050\u006f\u006c\u0079\u006c\u0069\u006e\u0065");};func (_cfgc *OfcColumn )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_cfgc .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_cgdfa :=range start .Attr {if _cgdfa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgdfa .Name .Local =="\u0068\u0072\u0065\u0066"{_bgbab ,_dafe :=_cgdfa .Value ,error (nil );if _dafe !=nil {return _dafe ;};_cfgc .HrefAttr =&_bgbab ;continue ;};if _cgdfa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgdfa .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_cfgc .ForcedashAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgdfa .Name .Local =="\u0074\u0069\u0074l\u0065"{_gbeac ,_cdegb :=_cgdfa .Value ,error (nil );if _cdegb !=nil {return _cdegb ;};_cfgc .TitleAttr =&_gbeac ;continue ;};if _cgdfa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgdfa .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_fbcbf ,_dccfd :=_cgdfa .Value ,error (nil );if _dccfd !=nil {return _dccfd ;};_cfgc .AlthrefAttr =&_fbcbf ;continue ;};if _cgdfa .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_cfgc .ImageaspectAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_cfgc .StartarrowAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_cfgc .LinestyleAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_cfgc .StartarrowwidthAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_cfgc .JoinstyleAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_cfgc .StartarrowlengthAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_dcgff ,_bacfb :=_cgdfa .Value ,error (nil );if _bacfb !=nil {return _bacfb ;};_cfgc .DashstyleAttr =&_dcgff ;continue ;};if _cgdfa .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_cfgc .EndarrowAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_cfgc .FilltypeAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_cfgc .EndarrowwidthAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_ffgaa ,_fead :=_cgdfa .Value ,error (nil );if _fead !=nil {return _fead ;};_cfgc .OpacityAttr =&_ffgaa ;continue ;};if _cgdfa .Name .Local =="\u0063\u006f\u006co\u0072"{_acgda ,_dbcf :=_cgdfa .Value ,error (nil );if _dbcf !=nil {return _dbcf ;};_cfgc .ColorAttr =&_acgda ;continue ;};if _cgdfa .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_cfgc .InsetpenAttr .UnmarshalXMLAttr (_cgdfa );continue ;};if _cgdfa .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u006ce\u006e\u0067\u0074\u0068"{_cf
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_ShapeAttributes and its children
|
|
|
|
func (_agfg *AG_ShapeAttributes )Validate ()error {return _agfg .ValidateWithPath ("\u0041G\u005fS\u0068\u0061\u0070\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};func (_fcbfd *Roundrect )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _fcbfd .CT_RoundRect .MarshalXML (e ,start );};func (_dgabb ST_StrokeJoinStyle )Validate ()error {return _dgabb .ValidateWithPath ("")};func NewAG_Chromakey ()*AG_Chromakey {_cae :=&AG_Chromakey {};return _cae };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Complex and its children
|
|
|
|
func (_ebbdbd *OfcCT_Complex )Validate ()error {return _ebbdbd .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};func (_eabgb *ST_FillType )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_eabgb =0;case "\u0073\u006f\u006ci\u0064":*_eabgb =1;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_eabgb =2;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_eabgb =3;case "\u0074\u0069\u006c\u0065":*_eabgb =4;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_eabgb =5;case "\u0066\u0072\u0061m\u0065":*_eabgb =6;};return nil ;};func (_debcd *OfcST_RType )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_acegc ,_fadcf :=d .Token ();if _fadcf !=nil {return _fadcf ;};if _cdbae ,_fcgff :=_acegc .(_ae .EndElement );_fcgff &&_cdbae .Name ==start .Name {*_debcd =1;return nil ;};if _acbff ,_fgfed :=_acegc .(_ae .CharData );!_fgfed {return _e .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",_acegc );}else {switch string (_acbff ){case "":*_debcd =0;case "\u0061\u0072\u0063":*_debcd =1;case "\u0063a\u006c\u006c\u006f\u0075\u0074":*_debcd =2;case "\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr":*_debcd =3;case "\u0061\u006c\u0069g\u006e":*_debcd =4;};};_acegc ,_fadcf =d .Token ();if _fadcf !=nil {return _fadcf ;};if _gfdae ,_gcaed :=_acegc .(_ae .EndElement );_gcaed &&_gfdae .Name ==start .Name {return nil ;};return _e .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",_acegc );};const (OfcST_CalloutPlacementUnset OfcST_CalloutPlacement =0;OfcST_CalloutPlacementTop OfcST_CalloutPlacement =1;OfcST_CalloutPlacementCenter OfcST_CalloutPlacement =2;OfcST_CalloutPlacementBottom OfcST_CalloutPlacement =3;OfcST_CalloutPlacementUser OfcST_CalloutPlacement =4;);func NewLine ()*Line {_dddgaf :=&Line {};_dddgaf .CT_Line =*NewCT_Line ();return _dddgaf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_Path and its children, prefixing error messages with path
|
|
|
|
func (_cage *AG_Path )ValidateWithPath (path string )error {return nil };func (_eecdbf *OfcSkew )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _eecdbf .OfcCT_Skew .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RelationTable and its children, prefixing error messages with path
|
|
|
|
func (_gfafa *OfcCT_RelationTable )ValidateWithPath (path string )error {for _ebef ,_ccggd :=range _gfafa .Rel {if _cbgg :=_ccggd .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0052\u0065\u006c\u005b\u0025\u0064\u005d",path ,_ebef ));_cbgg !=nil {return _cbgg ;};};if _gfge :=_gfafa .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_gfge !=nil {return _gfge ;};return nil ;};func (_agcfa *OfcLock )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_agcfa .OfcCT_Lock =*NewOfcCT_Lock ();for _ ,_agaaf :=range start .Attr {if _agaaf .Name .Local =="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"{_agcfa .PositionAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0073e\u006c\u0065\u0063\u0074\u0069\u006fn"{_agcfa .SelectionAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"{_agcfa .GroupingAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0075\u006e\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"{_agcfa .UngroupingAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_agcfa .RotationAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0063\u0072\u006f\u0070\u0070\u0069\u006e\u0067"{_agcfa .CroppingAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0076e\u0072\u0074\u0069\u0063\u0069\u0065s"{_agcfa .VerticiesAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0061\u0064\u006a\u0075\u0073\u0074\u0068\u0061\u006e\u0064\u006c\u0065\u0073"{_agcfa .AdjusthandlesAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0074\u0065\u0078\u0074"{_agcfa .TextAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="a\u0073\u0070\u0065\u0063\u0074\u0072\u0061\u0074\u0069\u006f"{_agcfa .AspectratioAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0073h\u0061\u0070\u0065\u0074\u0079\u0070e"{_agcfa .ShapetypeAttr .UnmarshalXMLAttr (_agaaf );continue ;};if _agaaf .Name .Local =="\u0065\u0078\u0074"{_agcfa .ExtAttr .UnmarshalXMLAttr (_agaaf );continue ;};};for {_debae ,_ffabc :=d .Token ();if _ffabc !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u004c\u006f\u0063\u006b\u003a\u0020\u0025\u0073",_ffabc );};if _befcg ,_gefeb :=_debae .(_ae .EndElement );_gefeb &&_befcg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Proxy and its children
|
|
|
|
func (_eccfd *OfcCT_Proxy )Validate ()error {return _eccfd .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0050\u0072\u006f\u0078\u0079");};func (_dgb *AG_OfficeCoreAttributes )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _dgb .SpidAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dgb .SpidAttr )});};if _dgb .OnedAttr !=_ee .ST_TrueFalseUnset {_baa ,_baf :=_dgb .OnedAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _baf !=nil {return _baf ;};start .Attr =append (start .Attr ,_baa );};if _dgb .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dgb .RegroupidAttr )});};if _dgb .DoubleclicknotifyAttr !=_ee .ST_TrueFalseUnset {_dbf ,_ggf :=_dgb .DoubleclicknotifyAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _ggf !=nil {return _ggf ;};start .Attr =append (start .Attr ,_dbf );};if _dgb .ButtonAttr !=_ee .ST_TrueFalseUnset {_ffb ,_ffbd :=_dgb .ButtonAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _ffbd !=nil {return _ffbd ;};start .Attr =append (start .Attr ,_ffb );};if _dgb .UserhiddenAttr !=_ee .ST_TrueFalseUnset {_gdeb ,_fdae :=_dgb .UserhiddenAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _fdae !=nil {return _fdae ;};start .Attr =append (start .Attr ,_gdeb );};if _dgb .BulletAttr !=_ee .ST_TrueFalseUnset {_bagd ,_gbgc :=_dgb .BulletAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0075\u006c\u006c\u0065\u0074"});if _gbgc !=nil {return _gbgc ;};start .Attr =append (start .Attr ,_bagd );};if _dgb .HrAttr !=_ee .ST_TrueFalseUnset {_aeg ,_deba :=_dgb .HrAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0068\u0072"});if _deba !=nil {return _deba ;};start .Attr =append (start .Attr ,_aeg );};if _dgb .HrstdAttr !=_ee .ST_TrueFalseUnset {_efa ,_cdeb :=_dgb .HrstdAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f:\u0068\u0072\u0073\u0074\u0064"});if _cdeb !=nil {return _cdeb ;};start .Attr =append (start .Attr ,_efa );};if _dgb .HrnoshadeAttr !=_ee .ST_TrueFalseUnset {_ccf ,_decb :=_dgb .HrnoshadeAttr .MarshalXMLAttr (_ae .Name {Local :"o\u003a\u0068\u0072\u006e\u006f\u0073\u0068\u0061\u0064\u0065"});if _decb !=nil {return _decb ;};start .Attr =append (start .Attr ,_ccf );};if _dgb .HrpctAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f:\u0068\u0072\u0070\u0063\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dgb .HrpctAttr )});};if _dgb .HralignAttr !=OfcST_HrAlignUnset {_ebad ,_afb :=_dgb .HralignAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f:\u0068\u0072\u0061\u006c\u0069\u0067n"});if _afb !=nil {return _afb ;};start .Attr =append (start .Attr ,_ebad );};if _dgb .AllowincellAttr !=_ee .ST_TrueFalseUnset {_caed ,_badb :=_dgb .AllowincellAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0061\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"});if _badb !=nil {return _badb ;};start .Attr =append (start .Attr ,_caed );};if _dgb .AllowoverlapAttr !=_ee .ST_TrueFalseUnset {_fcc ,_bee :=_dgb .AllowoverlapAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0061\u006c\u006c\u006f\u0077\u006f\u0076e\u0072\u006c\u0061\u0070"});if _bee !=nil {return _bee ;};start .Attr =append (start .Attr ,_fcc );};if _dgb .UserdrawnAttr !=_ee .ST_TrueFalseUnset {_ebg ,_cdcf :=_dgb .UserdrawnAttr .MarshalXMLAttr (_ae .Name {Local :"o\u003a\u0075\u0073\u0065\u0072\u0064\u0072\u0061\u0077\u006e"});if _cdcf !=nil {return _cdcf ;};start .Attr =append (start .Attr ,_ebg );};if _dgb .BordertopcolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003ab\u006f\u0072\u0064e\u0072\u0074\u006f\u0070\u0063\u006f\u006c\u006f\u0072"},Value :_e .S
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCallout and its children, prefixing error messages with path
|
|
|
|
func (_egdfa *OfcCallout )ValidateWithPath (path string )error {if _eadbf :=_egdfa .OfcCT_Callout .ValidateWithPath (path );_eadbf !=nil {return _eadbf ;};return nil ;};type CT_PolyLine struct{PointsAttr *string ;Ink []*OfcInk ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _ee .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _ee .ST_TrueFalse ;ButtonAttr _ee .ST_TrueFalse ;UserhiddenAttr _ee .ST_TrueFalse ;BulletAttr _ee .ST_TrueFalse ;HrAttr _ee .ST_TrueFalse ;HrstdAttr _ee .ST_TrueFalse ;HrnoshadeAttr _ee .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _ee .ST_TrueFalse ;AllowoverlapAttr _ee .ST_TrueFalse ;UserdrawnAttr _ee .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _ee .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _ee .ST_TrueFalse ;OleiconAttr _ee .ST_TrueFalse ;OleAttr _ee .ST_TrueFalseBlank ;PreferrelativeAttr _ee .ST_TrueFalse ;CliptowrapAttr _ee .ST_TrueFalse ;ClipAttr _ee .ST_TrueFalse ;};type OfcCT_RegroupTable struct{Entry []*OfcCT_Entry ;ExtAttr ST_Ext ;};const (ST_FillMethodUnset ST_FillMethod =0;ST_FillMethodNone ST_FillMethod =1;ST_FillMethodLinear ST_FillMethod =2;ST_FillMethodSigma ST_FillMethod =3;ST_FillMethodAny ST_FillMethod =4;ST_FillMethodLinearSigma ST_FillMethod =5;);type OfcCT_ShapeLayout struct{Idmap *OfcCT_IdMap ;Regrouptable *OfcCT_RegroupTable ;Rules *OfcCT_Rules ;ExtAttr ST_Ext ;};func (_adggc *Shadow )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _adggc .CT_Shadow .MarshalXML (e ,start );};
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Line and its children, prefixing error messages with path
|
|
|
|
func (_bcfa *CT_Line )ValidateWithPath (path string )error {for _afdg ,_dfdbf :=range _bcfa .EG_ShapeElements {if _cgeg :=_dfdbf .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_afdg ));_cgeg !=nil {return _cgeg ;};};if _gfbb :=_bcfa .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_gfbb !=nil {return _gfbb ;};if _ecfg :=_bcfa .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ecfg !=nil {return _ecfg ;};if _efcc :=_bcfa .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_efcc !=nil {return _efcc ;};if _bfbe :=_bcfa .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_bfbe !=nil {return _bfbe ;};if _bfeac :=_bcfa .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bfeac !=nil {return _bfeac ;};if _gfef :=_bcfa .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_gfef !=nil {return _gfef ;};if _eefdf :=_bcfa .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_eefdf !=nil {return _eefdf ;};if _adadc :=_bcfa .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_adadc !=nil {return _adadc ;};if _edgc :=_bcfa .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_edgc !=nil {return _edgc ;};if _efccg :=_bcfa .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_efccg !=nil {return _efccg ;};if _gaeb :=_bcfa .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gaeb !=nil {return _gaeb ;};if _ggae :=_bcfa .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_ggae !=nil {return _ggae ;};if _eaaga :=_bcfa .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_eaaga !=nil {return _eaaga ;};if _eeeeb :=_bcfa .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_eeeeb !=nil {return _eeeeb ;};if _cagcg :=_bcfa .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_cagcg !=nil {return _cagcg ;};if _gcac :=_bcfa .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gcac !=nil {return _gcac ;};if _bbcg :=_bcfa .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_bbcg !=nil {return _bbcg ;};if _fdcag :=_bcfa .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fdcag !=nil {return _fdcag ;};if _fffdf :=_bcfa .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_fffdf !=nil {return _fffdf ;};if _effcf :=_bcfa .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_effcf !=nil {return _effcf ;};if _abbaa :=_bcfa .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_abbaa !=nil {return _abbaa ;};if _cgee :=_bcfa .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_cgee !=nil {return _cgee ;};if _cgde :=_bcfa .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_cgde !=nil {return _cgde
|
2020-12-17 22:07:08 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_StrokeChild and its children, prefixing error messages with path
|
|
|
|
func (_gabdb *OfcCT_StrokeChild )ValidateWithPath (path string )error {if _cfcgc :=_gabdb .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_cfcgc !=nil {return _cfcgc ;};if _cdeef :=_gabdb .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_cdeef !=nil {return _cdeef ;};if _agge :=_gabdb .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_agge !=nil {return _agge ;};if _ddbbf :=_gabdb .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_ddbbf !=nil {return _ddbbf ;};if _dgdad :=_gabdb .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_dgdad !=nil {return _dgdad ;};if _fccfb :=_gabdb .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_fccfb !=nil {return _fccfb ;};if _efccgb :=_gabdb .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_efccgb !=nil {return _efccgb ;};if _faabb :=_gabdb .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_faabb !=nil {return _faabb ;};if _dfdcbf :=_gabdb .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_dfdcbf !=nil {return _dfdcbf ;};if _edabc :=_gabdb .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_edabc !=nil {return _edabc ;};if _bfecd :=_gabdb .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_bfecd !=nil {return _bfecd ;};if _bbec :=_gabdb .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_bbec !=nil {return _bbec ;};if _geecd :=_gabdb .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_geecd !=nil {return _geecd ;};if _dgegdg :=_gabdb .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_dgegdg !=nil {return _dgegdg ;};if _fccabb :=_gabdb .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_fccabb !=nil {return _fccabb ;};if _fdce :=_gabdb .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_fdce !=nil {return _fdce ;};return nil ;};func (_dafc *CT_Line )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u006c\u0069\u006e\u0065";};if _dafc .FromAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0066\u0072\u006f\u006d"},Value :_e .Sprintf ("\u0025\u0076",*_dafc .FromAttr )});};if _dafc .ToAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u006f"},Value :_e .Sprintf ("\u0025\u0076",*_dafc .ToAttr )});};if _dafc .HrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_dafc .HrefAttr )});};if _dafc .TargetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dafc .TargetAttr )});};if _dafc .ClassAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_dafc .ClassAttr )});};if _dafc .TitleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprin
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_CoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_bdac *AG_CoreAttributes )ValidateWithPath (path string )error {if _dbad :=_bdac .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_dbad !=nil {return _dbad ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-03-01 18:42:44 +00:00
|
|
|
// ValidateWithPath validates the OfcFill and its children, prefixing error messages with path
|
2023-04-15 17:27:31 +00:00
|
|
|
func (_begee *OfcFill )ValidateWithPath (path string )error {if _bgcdcg :=_begee .OfcCT_Fill .ValidateWithPath (path );_bgcdcg !=nil {return _bgcdcg ;};return nil ;};func NewOfcCT_R ()*OfcCT_R {_edcgg :=&OfcCT_R {};return _edcgg };func (_fbgbc *OfcCT_R )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0072";};start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",_fbgbc .IdAttr )});if _fbgbc .TypeAttr !=OfcST_RTypeUnset {_bggg ,_acaf :=_fbgbc .TypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0074\u0079\u0070\u0065"});if _acaf !=nil {return _acaf ;};start .Attr =append (start .Attr ,_bggg );};if _fbgbc .HowAttr !=OfcST_HowUnset {_bbggf ,_gbecd :=_fbgbc .HowAttr .MarshalXMLAttr (_ae .Name {Local :"\u0068\u006f\u0077"});if _gbecd !=nil {return _gbecd ;};start .Attr =append (start .Attr ,_bbggf );};if _fbgbc .IdrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064\u0072e\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_fbgbc .IdrefAttr )});};e .EncodeToken (start );if _fbgbc .Proxy !=nil {_dcegb :=_ae .StartElement {Name :_ae .Name {Local :"\u006f:\u0070\u0072\u006f\u0078\u0079"}};for _ ,_fcabe :=range _fbgbc .Proxy {e .EncodeElement (_fcabe ,_dcegb );};};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func NewShape ()*Shape {_fgcgga :=&Shape {};_fgcgga .CT_Shape =*NewCT_Shape ();return _fgcgga };func (_cefacd ST_FillType )ValidateWithPath (path string )error {switch _cefacd {case 0,1,2,3,4,5,6: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 (_cefacd ));};return nil ;};type Handles struct{CT_Handles };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcClippath and its children, prefixing error messages with path
|
|
|
|
func (_gcae *OfcClippath )ValidateWithPath (path string )error {if _dbce :=_gcae .OfcCT_ClipPath .ValidateWithPath (path );_dbce !=nil {return _dbce ;};return nil ;};func (_fefea *Shape )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_fefea .CT_Shape =*NewCT_Shape ();for _ ,_bdbeg :=range start .Attr {if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_gffdg ,_bcbg :=_aa .ParseInt (_bdbeg .Value ,10,64);if _bcbg !=nil {return _bcbg ;};_fefea .RegroupidAttr =&_gffdg ;continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_fefea .DoubleclicknotifyAttr .UnmarshalXMLAttr (_bdbeg );continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u0063\u006c\u0069\u0070"{_fefea .ClipAttr .UnmarshalXMLAttr (_bdbeg );continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_fefea .ButtonAttr .UnmarshalXMLAttr (_bdbeg );continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_fefea .UserhiddenAttr .UnmarshalXMLAttr (_bdbeg );continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_fefea .BulletAttr .UnmarshalXMLAttr (_bdbeg );continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u0067f\u0078\u0064\u0061\u0074\u0061"{_dgcb ,_fefce :=_bdbeg .Value ,error (nil );if _fefce !=nil {return _fefce ;};_fefea .GfxdataAttr =&_dgcb ;continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u0068\u0072"{_fefea .HrAttr .UnmarshalXMLAttr (_bdbeg );continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="\u006f\u006c\u0065"{_fefea .OleAttr .UnmarshalXMLAttr (_bdbeg );continue ;};if _bdbeg .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bdbeg .Name .Local =="a\u006c\u006c\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_PolyLine and its children
|
|
|
|
func (_dfbgg *CT_PolyLine )Validate ()error {return _dfbgg .ValidateWithPath ("C\u0054\u005f\u0050\u006f\u006c\u0079\u004c\u0069\u006e\u0065");};type ST_StrokeEndCap byte ;func (_gecee *ST_StrokeArrowLength )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_ddadff ,_aaegg :=d .Token ();if _aaegg !=nil {return _aaegg ;};if _fdecf ,_dgcde :=_ddadff .(_ae .EndElement );_dgcde &&_fdecf .Name ==start .Name {*_gecee =1;return nil ;};if _baacd ,_adged :=_ddadff .(_ae .CharData );!_adged {return _e .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",_ddadff );}else {switch string (_baacd ){case "":*_gecee =0;case "\u0073\u0068\u006fr\u0074":*_gecee =1;case "\u006d\u0065\u0064\u0069\u0075\u006d":*_gecee =2;case "\u006c\u006f\u006e\u0067":*_gecee =3;};};_ddadff ,_aaegg =d .Token ();if _aaegg !=nil {return _aaegg ;};if _dgafa ,_bebge :=_ddadff .(_ae .EndElement );_bebge &&_dgafa .Name ==start .Name {return nil ;};return _e .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",_ddadff );};func NewOfcBottom ()*OfcBottom {_bcede :=&OfcBottom {};_bcede .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _bcede ;};func (_fadfe OfcST_OLEUpdateMode )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_fadfe .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Fill and its children
|
|
|
|
func (_cfaa *OfcCT_Fill )Validate ()error {return _cfaa .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0046\u0069\u006c\u006c");};func (_gcagf *OfcST_BWMode )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_dagca ,_cabda :=d .Token ();if _cabda !=nil {return _cabda ;};if _badcc ,_gcffa :=_dagca .(_ae .EndElement );_gcffa &&_badcc .Name ==start .Name {*_gcagf =1;return nil ;};if _dedfd ,_fgad :=_dagca .(_ae .CharData );!_fgad {return _e .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",_dagca );}else {switch string (_dedfd ){case "":*_gcagf =0;case "\u0063\u006f\u006co\u0072":*_gcagf =1;case "\u0061\u0075\u0074\u006f":*_gcagf =2;case "\u0067r\u0061\u0079\u0053\u0063\u0061\u006ce":*_gcagf =3;case "\u006c\u0069\u0067\u0068\u0074\u0047\u0072\u0061\u0079s\u0063\u0061\u006c\u0065":*_gcagf =4;case "i\u006e\u0076\u0065\u0072\u0073\u0065\u0047\u0072\u0061\u0079":*_gcagf =5;case "g\u0072\u0061\u0079\u004f\u0075\u0074\u006c\u0069\u006e\u0065":*_gcagf =6;case "\u0068\u0069\u0067h\u0043\u006f\u006e\u0074\u0072\u0061\u0073\u0074":*_gcagf =7;case "\u0062\u006c\u0061c\u006b":*_gcagf =8;case "\u0077\u0068\u0069t\u0065":*_gcagf =9;case "\u0068\u0069\u0064\u0065":*_gcagf =10;case "\u0075n\u0064\u0072\u0061\u0077\u006e":*_gcagf =11;case "\u0062\u006c\u0061\u0063\u006b\u0054\u0065\u0078\u0074\u0041\u006e\u0064L\u0069\u006e\u0065\u0073":*_gcagf =12;};};_dagca ,_cabda =d .Token ();if _cabda !=nil {return _cabda ;};if _ggacb ,_dcfagd :=_dagca .(_ae .EndElement );_dcfagd &&_ggacb .Name ==start .Name {return nil ;};return _e .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",_dagca );};type Rect struct{CT_Rect };func (_gcbag OfcST_How )String ()string {switch _gcbag {case 0:return "";case 1:return "\u0074\u006f\u0070";case 2:return "\u006d\u0069\u0064\u0064\u006c\u0065";case 3:return "\u0062\u006f\u0074\u0074\u006f\u006d";case 4:return "\u006c\u0065\u0066\u0074";case 5:return "\u0063\u0065\u006e\u0074\u0065\u0072";case 6:return "\u0072\u0069\u0067h\u0074";};return "";};func (_baeba *EG_ShapeElements )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_cadabde :for {_bfaff ,_eecd :=d .Token ();if _eecd !=nil {return _eecd ;};switch _aaaa :=_bfaff .(type ){case _ae .StartElement :switch _aaaa .Name {case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0070\u0061\u0074\u0068"}:_baeba .Path =NewPath ();if _egec :=d .DecodeElement (_baeba .Path ,&_aaaa );_egec !=nil {return _egec ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0073"}:_baeba .Formulas =NewFormulas ();if _dcbaa :=d .DecodeElement (_baeba .Formulas ,&_aaaa );_dcbaa !=nil {return _dcbaa ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0068a\u006e\u0064\u006c\u0065\u0073"}:_baeba .Handles =NewHandles ();if _edbba :=d .DecodeElement (_baeba .Handles ,&_aaaa );_edbba !=nil {return _edbba ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_baeba .Fill =NewFill ();if _bfgda :=d .DecodeElement (_baeba .Fill ,&_aaaa );_bfgda !=nil {return _bfgda ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0074\u0072\u006f\u006b\u0065"}:_baeba .Stroke =NewStroke
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_cbgd *CT_Shapetype )ValidateWithPath (path string )error {for _effcb ,_aacec :=range _cbgd .EG_ShapeElements {if _ccea :=_aacec .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_effcb ));_ccea !=nil {return _ccea ;};};if _cbgd .Complex !=nil {if _bgae :=_cbgd .Complex .ValidateWithPath (path +"\u002f\u0043\u006f\u006d\u0070\u006c\u0065\u0078");_bgae !=nil {return _bgae ;};};if _dgeed :=_cbgd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_dgeed !=nil {return _dgeed ;};if _eaegg :=_cbgd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_eaegg !=nil {return _eaegg ;};if _aeab :=_cbgd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_aeab !=nil {return _aeab ;};if _geae :=_cbgd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_geae !=nil {return _geae ;};if _ebfcb :=_cbgd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_ebfcb !=nil {return _ebfcb ;};if _beeee :=_cbgd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_beeee !=nil {return _beeee ;};if _cfec :=_cbgd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_cfec !=nil {return _cfec ;};if _gfgga :=_cbgd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gfgga !=nil {return _gfgga ;};if _edddc :=_cbgd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_edddc !=nil {return _edddc ;};if _aafcg :=_cbgd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_aafcg !=nil {return _aafcg ;};if _bbeda :=_cbgd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_bbeda !=nil {return _bbeda ;};if _fccdg :=_cbgd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_fccdg !=nil {return _fccdg ;};if _acgg :=_cbgd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_acgg !=nil {return _acgg ;};if _dfgge :=_cbgd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_dfgge !=nil {return _dfgge ;};if _cfdeb :=_cbgd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_cfdeb !=nil {return _cfdeb ;};if _fadgb :=_cbgd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_fadgb !=nil {return _fadgb ;};if _gegcf :=_cbgd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_gegcf !=nil {return _gegcf ;};if _ffdab :=_cbgd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ffdab !=nil {return _ffdab ;};if _abbab :=_cbgd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_abbab !=nil {return _abbab ;};if _cddb :=_cbgd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_cddb !=nil {return _cddb ;};if _bcbda :=_cbgd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_bcbda !=nil {return _bcbda ;};if _fbfb :=_cbgd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_fbfb !=nil
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcLock and its children
|
|
|
|
func (_fbbdd *OfcLock )Validate ()error {return _fbbdd .ValidateWithPath ("\u004ff\u0063\u004c\u006f\u0063\u006b");};func (_cedad OfcST_InsetMode )Validate ()error {return _cedad .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Relation and its children, prefixing error messages with path
|
|
|
|
func (_dfcg *OfcCT_Relation )ValidateWithPath (path string )error {if _ebfa :=_dfcg .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ebfa !=nil {return _ebfa ;};return nil ;};func (_ccaac ST_EditAs )Validate ()error {return _ccaac .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_Chromakey and its children, prefixing error messages with path
|
|
|
|
func (_gge *AG_Chromakey )ValidateWithPath (path string )error {return nil };func NewShadow ()*Shadow {_fdedd :=&Shadow {};_fdedd .CT_Shadow =*NewCT_Shadow ();return _fdedd };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Image and its children
|
|
|
|
func (_fdbb *CT_Image )Validate ()error {return _fdbb .ValidateWithPath ("\u0043\u0054\u005f\u0049\u006d\u0061\u0067\u0065");};func (_eeddc ST_Ext )String ()string {switch _eeddc {case 0:return "";case 1:return "\u0076\u0069\u0065\u0077";case 2:return "\u0065\u0064\u0069\u0074";case 3:return "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_EquationXml and its children
|
|
|
|
func (_gace *OfcCT_EquationXml )Validate ()error {return _gace .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0045\u0071\u0075\u0061\u0074\u0069o\u006e\u0058\u006d\u006c");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Image and its children, prefixing error messages with path
|
|
|
|
func (_becdd *CT_Image )ValidateWithPath (path string )error {for _fbebb ,_geeb :=range _becdd .EG_ShapeElements {if _eedf :=_geeb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fbebb ));_eedf !=nil {return _eedf ;};};if _ggaac :=_becdd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ggaac !=nil {return _ggaac ;};if _ggcd :=_becdd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ggcd !=nil {return _ggcd ;};if _bgbe :=_becdd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bgbe !=nil {return _bgbe ;};if _fbgdeb :=_becdd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_fbgdeb !=nil {return _fbgdeb ;};if _addac :=_becdd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_addac !=nil {return _addac ;};if _cbbb :=_becdd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_cbbb !=nil {return _cbbb ;};if _fgcc :=_becdd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_fgcc !=nil {return _fgcc ;};if _eebaf :=_becdd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_eebaf !=nil {return _eebaf ;};if _cdbe :=_becdd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_cdbe !=nil {return _cdbe ;};if _dbdb :=_becdd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_dbdb !=nil {return _dbdb ;};if _gaedd :=_becdd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_gaedd !=nil {return _gaedd ;};if _debd :=_becdd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_debd !=nil {return _debd ;};if _ggbbf :=_becdd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_ggbbf !=nil {return _ggbbf ;};if _gdag :=_becdd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_gdag !=nil {return _gdag ;};if _fcgd :=_becdd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_fcgd !=nil {return _fcgd ;};if _gabg :=_becdd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gabg !=nil {return _gabg ;};if _beeb :=_becdd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_beeb !=nil {return _beeb ;};if _afbfc :=_becdd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_afbfc !=nil {return _afbfc ;};if _cced :=_becdd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_cced !=nil {return _cced ;};if _agfed :=_becdd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_agfed !=nil {return _agfed ;};if _geaca :=_becdd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_geaca !=nil {return _geaca ;};if _agdc :=_becdd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_agdc !=nil {return _agdc ;};if _baaa :=_becdd .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_ba
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_ColorMenu and its children
|
|
|
|
func (_cggda *OfcCT_ColorMenu )Validate ()error {return _cggda .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0043\u006f\u006c\u006f\u0072\u004d\u0065\u006e\u0075");};type CT_Curve struct{FromAttr *string ;Control1Attr *string ;Control2Attr *string ;ToAttr *string ;EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _ee .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _ee .ST_TrueFalse ;ButtonAttr _ee .ST_TrueFalse ;UserhiddenAttr _ee .ST_TrueFalse ;BulletAttr _ee .ST_TrueFalse ;HrAttr _ee .ST_TrueFalse ;HrstdAttr _ee .ST_TrueFalse ;HrnoshadeAttr _ee .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _ee .ST_TrueFalse ;AllowoverlapAttr _ee .ST_TrueFalse ;UserdrawnAttr _ee .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _ee .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _ee .ST_TrueFalse ;OleiconAttr _ee .ST_TrueFalse ;OleAttr _ee .ST_TrueFalseBlank ;PreferrelativeAttr _ee .ST_TrueFalse ;CliptowrapAttr _ee .ST_TrueFalse ;ClipAttr _ee .ST_TrueFalse ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_AllCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_bg *AG_AllCoreAttributes )ValidateWithPath (path string )error {if _af :=_bg .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_af !=nil {return _af ;};if _aeb :=_bg .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_aeb !=nil {return _aeb ;};if _bec :=_bg .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_bec !=nil {return _bec ;};if _deec :=_bg .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_deec !=nil {return _deec ;};if _fbg :=_bg .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_fbg !=nil {return _fbg ;};if _ba :=_bg .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ba !=nil {return _ba ;};if _bgd :=_bg .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_bgd !=nil {return _bgd ;};if _gee :=_bg .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_gee !=nil {return _gee ;};if _ded :=_bg .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_ded !=nil {return _ded ;};if _fgfe :=_bg .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_fgfe !=nil {return _fgfe ;};if _eea :=_bg .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_eea !=nil {return _eea ;};if _bfc :=_bg .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bfc !=nil {return _bfc ;};if _fd :=_bg .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_fd !=nil {return _fd ;};if _caf :=_bg .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_caf !=nil {return _caf ;};if _bda :=_bg .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_bda !=nil {return _bda ;};if _gcbe :=_bg .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_gcbe !=nil {return _gcbe ;};return nil ;};func (_ecaga *Shapetype )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _ecaga .CT_Shapetype .MarshalXML (e ,start );};func (_daec *CT_Shapetype )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="v\u003a\u0073\u0068\u0061\u0070\u0065\u0074\u0079\u0070\u0065";};if _daec .MasterAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003a\u006d\u0061\u0073\u0074\u0065\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_daec .MasterAttr )});};if _daec .HrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_daec .HrefAttr )});};if _daec .TargetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_daec .TargetAttr )});};if _daec .ClassAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_daec .ClassAttr )});};if _daec .TitleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_daec .TitleAttr )});};if _daec .AltAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_daec .AltAttr )});};if _
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_RoundRect and its children
|
|
|
|
func (_cdff *CT_RoundRect )Validate ()error {return _cdff .ValidateWithPath ("\u0043\u0054\u005fR\u006f\u0075\u006e\u0064\u0052\u0065\u0063\u0074");};func (_dfeb *OfcCT_Lock )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u006c\u006f\u0063\u006b";};if _dfeb .PositionAttr !=_ee .ST_TrueFalseUnset {_ggefe ,_gadaf :=_dfeb .PositionAttr .MarshalXMLAttr (_ae .Name {Local :"\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"});if _gadaf !=nil {return _gadaf ;};start .Attr =append (start .Attr ,_ggefe );};if _dfeb .SelectionAttr !=_ee .ST_TrueFalseUnset {_eceee ,_efcada :=_dfeb .SelectionAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073e\u006c\u0065\u0063\u0074\u0069\u006fn"});if _efcada !=nil {return _efcada ;};start .Attr =append (start .Attr ,_eceee );};if _dfeb .GroupingAttr !=_ee .ST_TrueFalseUnset {_gfcaf ,_ffbdf :=_dfeb .GroupingAttr .MarshalXMLAttr (_ae .Name {Local :"\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"});if _ffbdf !=nil {return _ffbdf ;};start .Attr =append (start .Attr ,_gfcaf );};if _dfeb .UngroupingAttr !=_ee .ST_TrueFalseUnset {_eggbc ,_gfddfd :=_dfeb .UngroupingAttr .MarshalXMLAttr (_ae .Name {Local :"\u0075\u006e\u0067\u0072\u006f\u0075\u0070\u0069\u006e\u0067"});if _gfddfd !=nil {return _gfddfd ;};start .Attr =append (start .Attr ,_eggbc );};if _dfeb .RotationAttr !=_ee .ST_TrueFalseUnset {_adffb ,_ggdf :=_dfeb .RotationAttr .MarshalXMLAttr (_ae .Name {Local :"\u0072\u006f\u0074\u0061\u0074\u0069\u006f\u006e"});if _ggdf !=nil {return _ggdf ;};start .Attr =append (start .Attr ,_adffb );};if _dfeb .CroppingAttr !=_ee .ST_TrueFalseUnset {_eecbcc ,_fegeaa :=_dfeb .CroppingAttr .MarshalXMLAttr (_ae .Name {Local :"\u0063\u0072\u006f\u0070\u0070\u0069\u006e\u0067"});if _fegeaa !=nil {return _fegeaa ;};start .Attr =append (start .Attr ,_eecbcc );};if _dfeb .VerticiesAttr !=_ee .ST_TrueFalseUnset {_eeggef ,_caaae :=_dfeb .VerticiesAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076e\u0072\u0074\u0069\u0063\u0069\u0065s"});if _caaae !=nil {return _caaae ;};start .Attr =append (start .Attr ,_eeggef );};if _dfeb .AdjusthandlesAttr !=_ee .ST_TrueFalseUnset {_fefdf ,_fecb :=_dfeb .AdjusthandlesAttr .MarshalXMLAttr (_ae .Name {Local :"\u0061\u0064\u006a\u0075\u0073\u0074\u0068\u0061\u006e\u0064\u006c\u0065\u0073"});if _fecb !=nil {return _fecb ;};start .Attr =append (start .Attr ,_fefdf );};if _dfeb .TextAttr !=_ee .ST_TrueFalseUnset {_dbbfd ,_geceg :=_dfeb .TextAttr .MarshalXMLAttr (_ae .Name {Local :"\u0074\u0065\u0078\u0074"});if _geceg !=nil {return _geceg ;};start .Attr =append (start .Attr ,_dbbfd );};if _dfeb .AspectratioAttr !=_ee .ST_TrueFalseUnset {_fecba ,_egbga :=_dfeb .AspectratioAttr .MarshalXMLAttr (_ae .Name {Local :"a\u0073\u0070\u0065\u0063\u0074\u0072\u0061\u0074\u0069\u006f"});if _egbga !=nil {return _egbga ;};start .Attr =append (start .Attr ,_fecba );};if _dfeb .ShapetypeAttr !=_ee .ST_TrueFalseUnset {_begac ,_ebbaf :=_dfeb .ShapetypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073h\u0061\u0070\u0065\u0074\u0079\u0070e"});if _ebbaf !=nil {return _ebbaf ;};start .Attr =append (start .Attr ,_begac );};if _dfeb .ExtAttr !=ST_ExtUnset {_afefa ,_egaab :=_dfeb .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _egaab !=nil {return _egaab ;};start .Attr =append (start .Attr ,_afefa );};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_cbgdg *Textbox )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _cbgdg .CT_Textbox .MarshalXML (e ,start );};func (_eaecb *Textpath )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_eaecb .CT_TextPath =*NewCT_TextPath ();for _ ,_fdbdfd :=range start .Attr {if _fdbdfd .Name .Local =="\u006f\u006e"{_eaecb .OnAttr .UnmarshalXMLAttr (_fdbdfd );continue ;};if _fdbdfd .Name .Local =="\u0066\u0069\u0074\u0073\u0068\u0061\u0070\u0065"{_eaecb .FitshapeAttr .UnmarshalXMLAttr (_fdbdfd );continue ;};if _fdbdfd .Name .Local =="\u0066i\u0074\u0070\u0061\u0074\u0068"{_eaecb .FitpathAttr .UnmarshalXMLAttr
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Rect and its children
|
|
|
|
func (_gfbaf *CT_Rect )Validate ()error {return _gfbaf .ValidateWithPath ("\u0043T\u005f\u0052\u0065\u0063\u0074");};func NewOfcCT_Complex ()*OfcCT_Complex {_gbgcf :=&OfcCT_Complex {};return _gbgcf };func NewOfcShapelayout ()*OfcShapelayout {_ddddec :=&OfcShapelayout {};_ddddec .OfcCT_ShapeLayout =*NewOfcCT_ShapeLayout ();return _ddddec ;};type AG_AllCoreAttributes struct{HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _ee .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _ee .ST_TrueFalse ;ButtonAttr _ee .ST_TrueFalse ;UserhiddenAttr _ee .ST_TrueFalse ;BulletAttr _ee .ST_TrueFalse ;HrAttr _ee .ST_TrueFalse ;HrstdAttr _ee .ST_TrueFalse ;HrnoshadeAttr _ee .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _ee .ST_TrueFalse ;AllowoverlapAttr _ee .ST_TrueFalse ;UserdrawnAttr _ee .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;};func NewCT_Shape ()*CT_Shape {_geeda :=&CT_Shape {};return _geeda };func (_eebgd *OfcComplex )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_eebgd .OfcCT_Complex =*NewOfcCT_Complex ();for _ ,_aggea :=range start .Attr {if _aggea .Name .Local =="\u0065\u0078\u0074"{_eebgd .ExtAttr .UnmarshalXMLAttr (_aggea );continue ;};};for {_abgcaf ,_fgbbb :=d .Token ();if _fgbbb !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u006f\u006d\u0070\u006c\u0065\u0078\u003a\u0020%\u0073",_fgbbb );};if _dcgbf ,_fagbfa :=_abgcaf .(_ae .EndElement );_fagbfa &&_dcgbf .Name ==start .Name {break ;};};return nil ;};func (_bfcga *OfcOLEObject )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_bfcga .OfcCT_OLEObject =*NewOfcCT_OLEObject ();for _ ,_beffc :=range start .Attr {if _beffc .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_beffc .Name .Local =="\u0069\u0064"||_beffc .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u006cc\u002e\u006fr\u0067\u002f\u006f\u006f\u0078\u006dl\u002fof\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073\u0068\u0069\u0070\u0073"&&_beffc .Name .Local =="\u0069\u0064"{_ddebc ,_bcagg :=_beffc .Value ,error (nil );if _bcagg !=nil {return _bcagg ;};_bfcga .IdAttr =&_ddebc ;continue ;};if _beffc .Name .Local =="\u0054\u0079\u0070\u0065"{_bfcga .TypeAttr .UnmarshalXMLAttr (_beffc );continue ;};if _beffc .Name .Local =="\u0050\u0072\u006f\u0067\u0049\u0044"{_fcbeca ,_cbcfa :=_beffc .Value ,error (nil );if _cbcfa !=nil {return _cbcfa ;};_bfcga .ProgIDAttr =&_fcbeca ;continue ;};if _beffc .Name .Local =="\u0053h\u0061\u0070\u0065\u0049\u0044"{_dacbcd ,_eagfc :=_beffc .Value ,error (nil );if _eagfc !=nil {return _eagfc ;};_bfcga .ShapeIDAttr =&_dacbcd ;continue ;};if _beffc .Name .Local =="\u0044\u0072\u0061\u0077\u0041\u0073\u0070\u0065\u0063\u0074"{_bfcga .DrawAspectAttr .UnmarshalXMLAttr (_beffc );continue ;};if _beffc .Name .Local =="\u004f\u0062\u006a\u0065\u0063\u0074\u0049\u0044"{_efbece ,_dbabd :=_beffc .Value ,error (nil );if _dbabd !=nil {return _dbabd ;};_bfcga .ObjectIDAttr =&_efbece ;continue ;};if _beffc .Name .Local =="\u0055\u0070\u0064\u0061\u0074\u0065\u004d\u006f\u0064\u0065"{_bfcga .UpdateModeAttr .UnmarshalXMLAttr (_beffc );continue ;};};_cbged :for {_bbdgb ,_ffecc :=d .Token ();if _ffecc !=nil {return _ffecc ;};sw
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Formulas and its children, prefixing error messages with path
|
|
|
|
func (_gcbc *CT_Formulas )ValidateWithPath (path string )error {for _efbe ,_eagf :=range _gcbc .F {if _ffga :=_eagf .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0046\u005b\u0025\u0064\u005d",path ,_efbe ));_ffga !=nil {return _ffga ;};};return nil ;};func NewOfcShapedefaults ()*OfcShapedefaults {_bcae :=&OfcShapedefaults {};_bcae .OfcCT_ShapeDefaults =*NewOfcCT_ShapeDefaults ();return _bcae ;};func (_gbabd *OfcShapelayout )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_gbabd .OfcCT_ShapeLayout =*NewOfcCT_ShapeLayout ();for _ ,_dgbce :=range start .Attr {if _dgbce .Name .Local =="\u0065\u0078\u0074"{_gbabd .ExtAttr .UnmarshalXMLAttr (_dgbce );continue ;};};_feefa :for {_cdegf ,_efdef :=d .Token ();if _efdef !=nil {return _efdef ;};switch _feega :=_cdegf .(type ){case _ae .StartElement :switch _feega .Name {case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0069\u0064\u006da\u0070"}:_gbabd .Idmap =NewOfcCT_IdMap ();if _fedee :=d .DecodeElement (_gbabd .Idmap ,&_feega );_fedee !=nil {return _fedee ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u0067r\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065"}:_gbabd .Regrouptable =NewOfcCT_RegroupTable ();if _egcba :=d .DecodeElement (_gbabd .Regrouptable ,&_feega );_egcba !=nil {return _egcba ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0075\u006ce\u0073"}:_gbabd .Rules =NewOfcCT_Rules ();if _dbaac :=d .DecodeElement (_gbabd .Rules ,&_feega );_dbaac !=nil {return _dbaac ;};default:_bb .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069n\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006et\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0053\u0068\u0061\u0070\u0065\u006c\u0061y\u006fu\u0074\u0020\u0025\u0076",_feega .Name );if _gdfc :=d .Skip ();_gdfc !=nil {return _gdfc ;};};case _ae .EndElement :break _feefa ;case _ae .CharData :};};return nil ;};func (_edcf *OfcCT_RelationTable )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_edgcc :=range start .Attr {if _edgcc .Name .Local =="\u0065\u0078\u0074"{_edcf .ExtAttr .UnmarshalXMLAttr (_edgcc );continue ;};};_cecgb :for {_egfee ,_eefad :=d .Token ();if _eefad !=nil {return _eefad ;};switch _dcafd :=_egfee .(type ){case _ae .StartElement :switch _dcafd .Name {case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u006c"}:_ffgd :=NewOfcCT_Relation ();if _afdbgb :=d .DecodeElement (_ffgd ,&_dcafd );_afdbgb !=nil {return _afdbgb ;};_edcf .Rel =append (_edcf .Rel ,_ffgd );default:_bb .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070o\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020o\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u006c\u0061ti\u006f\u006e\u0054\u0061\u0062\u006c\u0065\u0020\u0025\u0076",_dcafd .Name );if _bbafg :=d .Skip ();_bbafg !=nil {return _bbafg ;};};case _ae .EndElement :break _cecgb ;case _ae .CharData :};};return nil ;};type Shadow struct{CT_Shadow };func (_edbgc OfcST_OLEType )String ()string {switch _edbgc {case 0:return "";case 1:return "\u0045\u006d\u0062e\u0064";case 2:return "\u004c\u0069\u006e\u006b";};return "";};func (_cga *AG_Chromakey )UnmarshalXML (d *_ae .Deco
|
2020-11-09 01:00:18 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcSkew and its children
|
|
|
|
func (_dbdag *OfcSkew )Validate ()error {return _dbdag .ValidateWithPath ("\u004ff\u0063\u0053\u006b\u0065\u0077");};type CT_Textbox struct{InsetAttr *string ;SingleclickAttr _ee .ST_TrueFalse ;InsetmodeAttr OfcST_InsetMode ;TxbxContent *_ab .TxbxContent ;Any _c .Any ;IdAttr *string ;StyleAttr *string ;};func (_bfgad OfcST_DiagramLayout )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_fdbba :=_ae .Attr {};_fdbba .Name =name ;switch _bfgad {case OfcST_DiagramLayoutUnset :_fdbba .Value ="";case OfcST_DiagramLayout0 :_fdbba .Value ="\u0030";case OfcST_DiagramLayout1 :_fdbba .Value ="\u0031";case OfcST_DiagramLayout2 :_fdbba .Value ="\u0032";case OfcST_DiagramLayout3 :_fdbba .Value ="\u0033";};return _fdbba ,nil ;};func NewImagedata ()*Imagedata {_feffd :=&Imagedata {};_feffd .CT_ImageData =*NewCT_ImageData ();return _feffd ;};func (_aefbc *OfcShapedefaults )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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 ="\u006f:\u0073h\u0061\u0070\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073";return _aefbc .OfcCT_ShapeDefaults .MarshalXML (e ,start );};func (_adffc *OfcST_HrAlign )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_adffc =0;case "\u006c\u0065\u0066\u0074":*_adffc =1;case "\u0072\u0069\u0067h\u0074":*_adffc =2;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_adffc =3;};return nil ;};func (_dfgbb *OfcExtrusion )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _dfgbb .OfcCT_Extrusion .MarshalXML (e ,start );};func (_gdbbb ST_StrokeArrowType )ValidateWithPath (path string )error {switch _gdbbb {case 0,1,2,3,4,5,6: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 (_gdbbb ));};return nil ;};func (_fffdb OfcST_BWMode )MarshalXML (e *_ae .Encoder ,start _ae .StartElem
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_OfficeShapeAttributes and its children
|
|
|
|
func (_dad *AG_OfficeShapeAttributes )Validate ()error {return _dad .ValidateWithPath ("\u0041G\u005f\u004f\u0066\u0066\u0069\u0063\u0065\u0053\u0068\u0061\u0070e\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcExtrusion and its children, prefixing error messages with path
|
|
|
|
func (_ccage *OfcExtrusion )ValidateWithPath (path string )error {if _gggeag :=_ccage .OfcCT_Extrusion .ValidateWithPath (path );_gggeag !=nil {return _gggeag ;};return nil ;};func (_ccaee *OfcCT_Diagram )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0064\u0069\u0061\u0067\u0072\u0061m";};if _ccaee .DgmstyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ccaee .DgmstyleAttr )});};if _ccaee .AutoformatAttr !=_ee .ST_TrueFalseUnset {_fcfga ,_dagcf :=_ccaee .AutoformatAttr .MarshalXMLAttr (_ae .Name {Local :"\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"});if _dagcf !=nil {return _dagcf ;};start .Attr =append (start .Attr ,_fcfga );};if _ccaee .ReverseAttr !=_ee .ST_TrueFalseUnset {_ddgcb ,_gdcdb :=_ccaee .ReverseAttr .MarshalXMLAttr (_ae .Name {Local :"\u0072e\u0076\u0065\u0072\u0073\u0065"});if _gdcdb !=nil {return _gdcdb ;};start .Attr =append (start .Attr ,_ddgcb );};if _ccaee .AutolayoutAttr !=_ee .ST_TrueFalseUnset {_bfcae ,_ffeg :=_ccaee .AutolayoutAttr .MarshalXMLAttr (_ae .Name {Local :"\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"});if _ffeg !=nil {return _ffeg ;};start .Attr =append (start .Attr ,_bfcae );};if _ccaee .DgmscalexAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"},Value :_e .Sprintf ("\u0025\u0076",*_ccaee .DgmscalexAttr )});};if _ccaee .DgmscaleyAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"},Value :_e .Sprintf ("\u0025\u0076",*_ccaee .DgmscaleyAttr )});};if _ccaee .DgmfontsizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ccaee .DgmfontsizeAttr )});};if _ccaee .ConstrainboundsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_ccaee .ConstrainboundsAttr )});};if _ccaee .DgmbasetextscaleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ccaee .DgmbasetextscaleAttr )});};if _ccaee .ExtAttr !=ST_ExtUnset {_cgccb ,_bgge :=_ccaee .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _bgge !=nil {return _bgge ;};start .Attr =append (start .Attr ,_cgccb );};e .EncodeToken (start );if _ccaee .Relationtable !=nil {_dcgde :=_ae .StartElement {Name :_ae .Name {Local :"\u006f:\u0072e\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065"}};e .EncodeElement (_ccaee .Relationtable ,_dcgde );};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};type ST_FillMethod byte ;func (_eeaa *Arc )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_eeaa .CT_Arc =*NewCT_Arc ();for _ ,_ddfa :=range start .Attr {if _ddfa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ddfa .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_eeaa .UserdrawnAttr .UnmarshalXMLAttr (_ddfa );continue ;};if _ddfa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ddfa .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_eeaa .ButtonAttr .UnmarshalXMLAttr (_ddfa );continue ;};if _ddfa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_Fill and its children, prefixing error messages with path
|
|
|
|
func (_dbbd *AG_Fill )ValidateWithPath (path string )error {if _gfe :=_dbbd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_gfe !=nil {return _gfe ;};return nil ;};func (_cebcc ST_ShadowType )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_efgdc :=_ae .Attr {};_efgdc .Name =name ;switch _cebcc {case ST_ShadowTypeUnset :_efgdc .Value ="";case ST_ShadowTypeSingle :_efgdc .Value ="\u0073\u0069\u006e\u0067\u006c\u0065";case ST_ShadowTypeDouble :_efgdc .Value ="\u0064\u006f\u0075\u0062\u006c\u0065";case ST_ShadowTypeEmboss :_efgdc .Value ="\u0065\u006d\u0062\u006f\u0073\u0073";case ST_ShadowTypePerspective :_efgdc .Value ="p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065";};return _efgdc ,nil ;};func (_cfcge OfcST_How )ValidateWithPath (path string )error {switch _cfcge {case 0,1,2,3,4,5,6: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 (_cfcge ));};return nil ;};func NewCT_Textbox ()*CT_Textbox {_dedb :=&CT_Textbox {};return _dedb };const (ST_ShadowTypeUnset ST_ShadowType =0;ST_ShadowTypeSingle ST_ShadowType =1;ST_ShadowTypeDouble ST_ShadowType =2;ST_ShadowTypeEmboss ST_ShadowType =3;ST_ShadowTypePerspective ST_ShadowType =4;);func (_agced *Path )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_agced .CT_Path =*NewCT_Path ();for _ ,_bacffd :=range start .Attr {if _bacffd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacffd .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"{_agced .ConnecttypeAttr .UnmarshalXMLAttr (_bacffd );continue ;};if _bacffd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacffd .Name .Local =="e\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"{_agced .ExtrusionokAttr .UnmarshalXMLAttr (_bacffd );continue ;};if _bacffd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacffd .Name .Local =="\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"{_fbadb ,_ddbdc :=_bacffd .Value ,error (nil );if _ddbdc !=nil {return _ddbdc ;};_agced .ConnectanglesAttr =&_fbadb ;continue ;};if _bacffd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_bacffd .Name .Local =="c\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"{_adced ,_eedbg :=_bacffd .Value ,error (nil );if _eedbg !=nil {return _eedbg ;};_agced .ConnectlocsAttr =&_adced ;continue ;};if _bacffd .Name .Local =="\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"{_agced .GradientshapeokAttr .UnmarshalXMLAttr (_bacffd );continue ;};if _bacffd .Name .Local =="\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"{_agced .ShadowokAttr .UnmarshalXMLAttr (_bacffd );continue ;};if _bacffd .Name .Local =="\u0061r\u0072\u006f\u0077\u006f\u006b"{_agced .ArrowokAttr .UnmarshalXMLAttr (_bacffd );continue ;};if _bacffd .Name .Local =="\u0076"{_bbbbd ,_feaea :=_bacffd .Value ,error (nil );if _feaea !=nil {return _feaea ;};_agced .VAttr =&_bbbbd ;continue ;};if _bacffd .Name .Local =="\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"{_agced .TextpathokAttr .UnmarshalXMLAttr (_bacffd );continue ;};if _bacffd .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"{_agced .InsetpenokAttr .UnmarshalXML
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Stroke and its children
|
|
|
|
func (_cbgbf *CT_Stroke )Validate ()error {return _cbgbf .ValidateWithPath ("\u0043T\u005f\u0053\u0074\u0072\u006f\u006be");};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Stroke and its children, prefixing error messages with path
|
|
|
|
func (_dfaa *Stroke )ValidateWithPath (path string )error {if _cdadd :=_dfaa .CT_Stroke .ValidateWithPath (path );_cdadd !=nil {return _cdadd ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Shadow and its children
|
|
|
|
func (_aafbb *Shadow )Validate ()error {return _aafbb .ValidateWithPath ("\u0053\u0068\u0061\u0064\u006f\u0077");};func (_bgdca *OfcST_ScreenSize )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_gedcbe ,_eecag :=d .Token ();if _eecag !=nil {return _eecag ;};if _bbcba ,_eedfe :=_gedcbe .(_ae .EndElement );_eedfe &&_bbcba .Name ==start .Name {*_bgdca =1;return nil ;};if _addfc ,_ffabf :=_gedcbe .(_ae .CharData );!_ffabf {return _e .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",_gedcbe );}else {switch string (_addfc ){case "":*_bgdca =0;case "\u00354\u0034\u002c\u0033\u0037\u0036":*_bgdca =1;case "\u00364\u0030\u002c\u0034\u0038\u0030":*_bgdca =2;case "\u00372\u0030\u002c\u0035\u0031\u0032":*_bgdca =3;case "\u00380\u0030\u002c\u0036\u0030\u0030":*_bgdca =4;case "\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038":*_bgdca =5;case "\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032":*_bgdca =6;};};_gedcbe ,_eecag =d .Token ();if _eecag !=nil {return _eecag ;};if _eaccb ,_dedfa :=_gedcbe .(_ae .EndElement );_dedfa &&_eaccb .Name ==start .Name {return nil ;};return _e .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",_gedcbe );};func (_gcbgd *OfcCT_ClipPath )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_aadda :=range start .Attr {if _aadda .Name .Local =="\u0076"{_gaeaf ,_becac :=_aadda .Value ,error (nil );if _becac !=nil {return _becac ;};_gcbgd .VAttr =_gaeaf ;continue ;};};for {_fcdcb ,_acdbg :=d .Token ();if _acdbg !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u004f\u0066\u0063C\u0054\u005f\u0043\u006c\u0069\u0070\u0050\u0061\u0074\u0068:\u0020\u0025\u0073",_acdbg );};if _bfbdcf ,_bgdga :=_fcdcb .(_ae .EndElement );_bgdga &&_bfbdcf .Name ==start .Name {break ;};};return nil ;};func (_egeef *Oval )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _egeef .CT_Oval .MarshalXML (e ,start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Formulas and its children
|
|
|
|
func (_febgd *CT_Formulas )Validate ()error {return _febgd .ValidateWithPath ("C\u0054\u005f\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Rules and its children
|
|
|
|
func (_fddagc *OfcCT_Rules )Validate ()error {return _fddagc .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0052\u0075\u006c\u0065\u0073");};func (_cegda *OfcST_CalloutPlacement )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_cegda =0;case "\u0074\u006f\u0070":*_cegda =1;case "\u0063\u0065\u006e\u0074\u0065\u0072":*_cegda =2;case "\u0062\u006f\u0074\u0074\u006f\u006d":*_cegda =3;case "\u0075\u0073\u0065\u0072":*_cegda =4;};return nil ;};type OfcCT_Proxy struct{StartAttr _ee .ST_TrueFalseBlank ;EndAttr _ee .ST_TrueFalseBlank ;IdrefAttr *string ;ConnectlocAttr *int32 ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Diagram and its children
|
|
|
|
func (_ffeeg *OfcCT_Diagram )Validate ()error {return _ffeeg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Stroke and its children
|
|
|
|
func (_edgdg *Stroke )Validate ()error {return _edgdg .ValidateWithPath ("\u0053\u0074\u0072\u006f\u006b\u0065");};func (_fba *AG_Path )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _fba .PathAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0070\u0061\u0074\u0068"},Value :_e .Sprintf ("\u0025\u0076",*_fba .PathAttr )});};return nil ;};func (_ecgag *CT_RoundRect )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="v\u003a\u0072\u006f\u0075\u006e\u0064\u0072\u0065\u0063\u0074";};if _ecgag .ArcsizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061r\u0063\u0073\u0069\u007a\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .ArcsizeAttr )});};if _ecgag .HrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .HrefAttr )});};if _ecgag .TargetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .TargetAttr )});};if _ecgag .ClassAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .ClassAttr )});};if _ecgag .TitleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .TitleAttr )});};if _ecgag .AltAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .AltAttr )});};if _ecgag .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .CoordsizeAttr )});};if _ecgag .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .CoordoriginAttr )});};if _ecgag .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .WrapcoordsAttr )});};if _ecgag .PrintAttr !=_ee .ST_TrueFalseUnset {_cgga ,_aeacc :=_ecgag .PrintAttr .MarshalXMLAttr (_ae .Name {Local :"\u0070\u0072\u0069n\u0074"});if _aeacc !=nil {return _aeacc ;};start .Attr =append (start .Attr ,_cgga );};if _ecgag .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .IdAttr )});};if _ecgag .StyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .StyleAttr )});};if _ecgag .SpidAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .SpidAttr )});};if _ecgag .OnedAttr !=_ee .ST_TrueFalseUnset {_dbafa ,_aafde :=_ecgag .OnedAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _aafde !=nil {return _aafde ;};start .Attr =append (start .Attr ,_dbafa );};if _ecgag .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ecgag .RegroupidAttr )});};if _ecgag .DoubleclicknotifyAttr !=_ee .ST_TrueFalseUnset {_bbbf ,_eafdd :=_ecgag .DoubleclicknotifyAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _eafdd !=nil {return _eafdd ;};start .Attr =append (start .Attr ,_bbbf );};if _ecgag .ButtonAttr !=_ee .ST_TrueFalseUnset {_feaad ,_bdfbe :=_ecgag .ButtonAttr .MarshalXMLAttr (_ae .Name {Local :"\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_StrokeChild and its children
|
|
|
|
func (_eegd *OfcCT_StrokeChild )Validate ()error {return _eegd .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0074\u0072\u006f\u006b\u0065C\u0068\u0069\u006c\u0064");};func (_edbbg *CT_Oval )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u006f\u0076\u0061\u006c";};if _edbbg .HrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .HrefAttr )});};if _edbbg .TargetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .TargetAttr )});};if _edbbg .ClassAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .ClassAttr )});};if _edbbg .TitleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .TitleAttr )});};if _edbbg .AltAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .AltAttr )});};if _edbbg .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .CoordsizeAttr )});};if _edbbg .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .CoordoriginAttr )});};if _edbbg .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .WrapcoordsAttr )});};if _edbbg .PrintAttr !=_ee .ST_TrueFalseUnset {_bdgae ,_bbaa :=_edbbg .PrintAttr .MarshalXMLAttr (_ae .Name {Local :"\u0070\u0072\u0069n\u0074"});if _bbaa !=nil {return _bbaa ;};start .Attr =append (start .Attr ,_bdgae );};if _edbbg .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .IdAttr )});};if _edbbg .StyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .StyleAttr )});};if _edbbg .SpidAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .SpidAttr )});};if _edbbg .OnedAttr !=_ee .ST_TrueFalseUnset {_cbfdc ,_gfgd :=_edbbg .OnedAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _gfgd !=nil {return _gfgd ;};start .Attr =append (start .Attr ,_cbfdc );};if _edbbg .RegroupidAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"o\u003a\u0072\u0065\u0067\u0072\u006f\u0075\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_edbbg .RegroupidAttr )});};if _edbbg .DoubleclicknotifyAttr !=_ee .ST_TrueFalseUnset {_cceda ,_cfef :=_edbbg .DoubleclicknotifyAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0064\u006fub\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079"});if _cfef !=nil {return _cfef ;};start .Attr =append (start .Attr ,_cceda );};if _edbbg .ButtonAttr !=_ee .ST_TrueFalseUnset {_dffa ,_cbfa :=_edbbg .ButtonAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0075\u0074\u0074\u006f\u006e"});if _cbfa !=nil {return _cbfa ;};start .Attr =append (start .Attr ,_dffa );};if _edbbg .UserhiddenAttr !=_ee .ST_TrueFalseUnset {_deee ,_ecec :=_edbbg .UserhiddenAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0075s\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"});if _ecec !=nil {return _ecec ;};start .Attr =append (start .Attr ,_deee );};if _edbbg .BulletAttr !=_ee .ST_TrueFalseUnset {
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Shape and its children
|
|
|
|
func (_dcegc *Shape )Validate ()error {return _dcegc .ValidateWithPath ("\u0053\u0068\u0061p\u0065")};type CT_H struct{PositionAttr *string ;PolarAttr *string ;MapAttr *string ;InvxAttr _ee .ST_TrueFalse ;InvyAttr _ee .ST_TrueFalse ;SwitchAttr _ee .ST_TrueFalseBlank ;XrangeAttr *string ;YrangeAttr *string ;RadiusrangeAttr *string ;};type ST_StrokeArrowType byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Entry and its children
|
|
|
|
func (_cfbb *OfcCT_Entry )Validate ()error {return _cfbb .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0045\u006e\u0074\u0072\u0079");};
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_OfficeCoreAttributes and its children
|
|
|
|
func (_cggd *AG_OfficeCoreAttributes )Validate ()error {return _cggd .ValidateWithPath ("\u0041\u0047\u005fOf\u0066\u0069\u0063\u0065\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069\u0062\u0075\u0074\u0065\u0073");};func (_dgeec *OfcShapelayout )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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 ="\u006f\u003a\u0073\u0068\u0061\u0070\u0065\u006c\u0061\u0079\u006f\u0075\u0074";return _dgeec .OfcCT_ShapeLayout .MarshalXML (e ,start );};type OfcST_Angle byte ;const (ST_EditAsUnset ST_EditAs =0;ST_EditAsCanvas ST_EditAs =1;ST_EditAsOrgchart ST_EditAs =2;ST_EditAsRadial ST_EditAs =3;ST_EditAsCycle ST_EditAs =4;ST_EditAsStacked ST_EditAs =5;ST_EditAsVenn ST_EditAs =6;ST_EditAsBullseye ST_EditAs =7;);
|
2021-04-23 20:00:00 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Textbox and its children, prefixing error messages with path
|
|
|
|
func (_edbfc *Textbox )ValidateWithPath (path string )error {if _aggeab :=_edbfc .CT_Textbox .ValidateWithPath (path );_aggeab !=nil {return _aggeab ;};return nil ;};func (_ffdaa *OfcCT_ColorMenu )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="o\u003a\u0063\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075";};if _ffdaa .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_ffdaa .StrokecolorAttr )});};if _ffdaa .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_ffdaa .FillcolorAttr )});};if _ffdaa .ShadowcolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"s\u0068\u0061\u0064\u006f\u0077\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_ffdaa .ShadowcolorAttr )});};if _ffdaa .ExtrusioncolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006ec\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_ffdaa .ExtrusioncolorAttr )});};if _ffdaa .ExtAttr !=ST_ExtUnset {_bebf ,_eaaff :=_ffdaa .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _eaaff !=nil {return _eaaff ;};start .Attr =append (start .Attr ,_bebf );};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_ebadef *OfcFill )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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 ="\u006f\u003a\u0066\u0069\u006c\u006c";return _ebadef .OfcCT_Fill .MarshalXML (e ,start );};const (OfcST_DiagramLayoutUnset OfcST_DiagramLayout =0;OfcST_Diag
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Image and its children, prefixing error messages with path
|
|
|
|
func (_efba *Image )ValidateWithPath (path string )error {if _gbcf :=_efba .CT_Image .ValidateWithPath (path );_gbcf !=nil {return _gbcf ;};return nil ;};func (_fecefg ST_StrokeLineStyle )Validate ()error {return _fecefg .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcShapedefaults and its children, prefixing error messages with path
|
|
|
|
func (_beccb *OfcShapedefaults )ValidateWithPath (path string )error {if _fddcad :=_beccb .OfcCT_ShapeDefaults .ValidateWithPath (path );_fddcad !=nil {return _fddcad ;};return nil ;};func (_gdecg OfcST_ConnectType )ValidateWithPath (path string )error {switch _gdecg {case 0,1,2,3,4: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 (_gdecg ));};return nil ;};func (_bacgg OfcST_Angle )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_gfafdc :=_ae .Attr {};_gfafdc .Name =name ;switch _bacgg {case OfcST_AngleUnset :_gfafdc .Value ="";case OfcST_AngleAny :_gfafdc .Value ="\u0061\u006e\u0079";case OfcST_Angle30 :_gfafdc .Value ="\u0033\u0030";case OfcST_Angle45 :_gfafdc .Value ="\u0034\u0035";case OfcST_Angle60 :_gfafdc .Value ="\u0036\u0030";case OfcST_Angle90 :_gfafdc .Value ="\u0039\u0030";case OfcST_AngleAuto :_gfafdc .Value ="\u0061\u0075\u0074\u006f";};return _gfafdc ,nil ;};func NewCT_Line ()*CT_Line {_cafbg :=&CT_Line {};return _cafbg };func NewOval ()*Oval {_gbbfc :=&Oval {};_gbbfc .CT_Oval =*NewCT_Oval ();return _gbbfc };func (_dbgc *CT_PolyLine )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u0070\u006f\u006c\u0079\u006c\u0069\u006e\u0065";};if _dbgc .PointsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0070\u006f\u0069\u006e\u0074\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .PointsAttr )});};if _dbgc .HrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .HrefAttr )});};if _dbgc .TargetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .TargetAttr )});};if _dbgc .ClassAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .ClassAttr )});};if _dbgc .TitleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .TitleAttr )});};if _dbgc .AltAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .AltAttr )});};if _dbgc .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .CoordsizeAttr )});};if _dbgc .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .CoordoriginAttr )});};if _dbgc .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .WrapcoordsAttr )});};if _dbgc .PrintAttr !=_ee .ST_TrueFalseUnset {_abdfb ,_cdga :=_dbgc .PrintAttr .MarshalXMLAttr (_ae .Name {Local :"\u0070\u0072\u0069n\u0074"});if _cdga !=nil {return _cdga ;};start .Attr =append (start .Attr ,_abdfb );};if _dbgc .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .IdAttr )});};if _dbgc .StyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .StyleAttr )});};if _dbgc .SpidAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003a\u0073\u0070\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_dbgc .SpidAttr )});};if _dbgc .OnedAttr !=_ee .ST_TrueFalseUnset {_gbad ,_ffcg :=_dbgc .OnedAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u006f\u006e\u0065\u0064"});if _ffcg !=nil {return _ffcg ;};s
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcDiagram and its children
|
|
|
|
func (_bbcbb *OfcDiagram )Validate ()error {return _bbcbb .ValidateWithPath ("\u004f\u0066\u0063\u0044\u0069\u0061\u0067\u0072\u0061\u006d");};func (_dgdda *Shape )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _dgdda .CT_Shape .MarshalXML (e ,start );};type Textbox struct{CT_Textbox };func (_eaeaec OfcST_ScreenSize )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_eaeaec .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Shape and its children, prefixing error messages with path
|
|
|
|
func (_cegf *CT_Shape )ValidateWithPath (path string )error {for _ffbb ,_dacag :=range _cegf .Ink {if _ecgca :=_dacag .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0049\u006e\u006b\u005b\u0025\u0064\u005d",path ,_ffbb ));_ecgca !=nil {return _ecgca ;};};for _bbfab ,_edce :=range _cegf .Iscomment {if _gaeef :=_edce .ValidateWithPath (_e .Sprintf ("\u0025\u0073/\u0049\u0073\u0063o\u006d\u006d\u0065\u006e\u0074\u005b\u0025\u0064\u005d",path ,_bbfab ));_gaeef !=nil {return _gaeef ;};};for _fedb ,_cedag :=range _cegf .Equationxml {if _gafaa :=_cedag .ValidateWithPath (_e .Sprintf ("\u0025s\u002fE\u0071\u0075\u0061\u0074\u0069o\u006e\u0078m\u006c\u005b\u0025\u0064\u005d",path ,_fedb ));_gafaa !=nil {return _gafaa ;};};for _egdd ,_ccfce :=range _cegf .EG_ShapeElements {if _ecfgd :=_ccfce .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_egdd ));_ecfgd !=nil {return _ecfgd ;};};if _bfadfb :=_cegf .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_bfadfb !=nil {return _bfadfb ;};if _ddga :=_cegf .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ddga !=nil {return _ddga ;};if _eaeaa :=_cegf .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_eaeaa !=nil {return _eaeaa ;};if _ebead :=_cegf .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_ebead !=nil {return _ebead ;};if _bffea :=_cegf .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bffea !=nil {return _bffea ;};if _gbgdbg :=_cegf .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_gbgdbg !=nil {return _gbgdbg ;};if _eegge :=_cegf .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_eegge !=nil {return _eegge ;};if _feaeb :=_cegf .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_feaeb !=nil {return _feaeb ;};if _fcbec :=_cegf .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fcbec !=nil {return _fcbec ;};if _ccdc :=_cegf .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_ccdc !=nil {return _ccdc ;};if _agdda :=_cegf .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_agdda !=nil {return _agdda ;};if _bfadb :=_cegf .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bfadb !=nil {return _bfadb ;};if _geeac :=_cegf .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_geeac !=nil {return _geeac ;};if _deeea :=_cegf .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_deeea !=nil {return _deeea ;};if _fgabc :=_cegf .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_fgabc !=nil {return _fgabc ;};if _febbff :=_cegf .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_febbff !=nil {return _febbff ;};if _cedd :=_cegf .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_cedd !=nil {return _cedd ;};if _gfdag :=_cegf .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_gfdag !=nil {return _gfdag ;};if _eebaa :=_cegf .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_R and its children, prefixing error messages with path
|
|
|
|
func (_fgacd *OfcCT_R )ValidateWithPath (path string )error {if _adbaf :=_fgacd .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_adbaf !=nil {return _adbaf ;};if _abgb :=_fgacd .HowAttr .ValidateWithPath (path +"\u002f\u0048\u006f\u0077\u0041\u0074\u0074\u0072");_abgb !=nil {return _abgb ;};for _daecf ,_bacddb :=range _fgacd .Proxy {if _acdged :=_bacddb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fP\u0072\u006f\u0078\u0079\u005b\u0025\u0064\u005d",path ,_daecf ));_acdged !=nil {return _acdged ;};};return nil ;};func (_bbeece *Oval )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_bbeece .CT_Oval =*NewCT_Oval ();for _ ,_gbeaa :=range start .Attr {if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_debec ,_ebbae :=_gbeaa .Value ,error (nil );if _ebbae !=nil {return _ebbae ;};_bbeece .BordertopcolorAttr =&_debec ;continue ;};if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_bbeece .BulletAttr .UnmarshalXMLAttr (_gbeaa );continue ;};if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u0068\u0072"{_bbeece .HrAttr .UnmarshalXMLAttr (_gbeaa );continue ;};if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_bbeece .CliptowrapAttr .UnmarshalXMLAttr (_gbeaa );continue ;};if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u0068\u0072\u0073t\u0064"{_bbeece .HrstdAttr .UnmarshalXMLAttr (_gbeaa );continue ;};if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u006f\u006c\u0065"{_bbeece .OleAttr .UnmarshalXMLAttr (_gbeaa );continue ;};if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u0068r\u006e\u006f\u0073\u0068\u0061\u0064e"{_bbeece .HrnoshadeAttr .UnmarshalXMLAttr (_gbeaa );continue ;};if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u006f\u006e\u0065\u0064"{_bbeece .OnedAttr .UnmarshalXMLAttr (_gbeaa );continue ;};if _gbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gbeaa .Name .Local =="\u0068\u0072\u0070c\u0074"{_aecba ,_gaggfb :=_aa .ParseFloat (_gbeaa .Value ,64);if _g
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Skew and its children
|
|
|
|
func (_beabc *OfcCT_Skew )Validate ()error {return _beabc .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u006b\u0065\u0077");};func NewOfcCT_ColorMenu ()*OfcCT_ColorMenu {_faefb :=&OfcCT_ColorMenu {};return _faefb };type AG_Type struct{TypeAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcComplex and its children
|
|
|
|
func (_fgbdb *OfcComplex )Validate ()error {return _fgbdb .ValidateWithPath ("\u004f\u0066\u0063\u0043\u006f\u006d\u0070\u006c\u0065\u0078");};func NewCT_Background ()*CT_Background {_dcce :=&CT_Background {};return _dcce };func (_gccee *OfcComplex )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0076"},Value :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .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 ="\u006f:\u0063\u006f\u006d\u0070\u006c\u0065x";return _gccee .OfcCT_Complex .MarshalXML (e ,start );};const (OfcST_OLETypeUnset OfcST_OLEType =0;OfcST_OLETypeEmbed OfcST_OLEType =1;OfcST_OLETypeLink OfcST_OLEType =2;);func (_abdabd ST_FillMethod )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_eadfdd :=_ae .Attr {};_eadfdd .Name =name ;switch _abdabd {case ST_FillMethodUnset :_eadfdd .Value ="";case ST_FillMethodNone :_eadfdd .Value ="\u006e\u006f\u006e\u0065";case ST_FillMethodLinear :_eadfdd .Value ="\u006c\u0069\u006e\u0065\u0061\u0072";case ST_FillMethodSigma :_eadfdd .Value ="\u0073\u0069\u0067m\u0061";case ST_FillMethodAny :_eadfdd .Value ="\u0061\u006e\u0079";case ST_FillMethodLinearSigma :_eadfdd .Value ="\u006c\u0069\u006ee\u0061\u0072\u0020\u0073\u0069\u0067\u006d\u0061";};return _eadfdd ,nil ;};func NewCT_Path ()*CT_Path {_gced :=&CT_Path {};return _gced };func (_dagf *OfcCT_OLEObject )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_dfdag :=range start .Attr {if _dfdag .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"&&_dfdag .Name .Local =="\u0069\u0064"||_dfdag .Name .Space =="\u0068\u0074\u0074\u0070\u003a\u002f\u002fp\u0075\u0072\u006c.\u006f\u0063\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_AllShapeAttributes and its children
|
|
|
|
func (_abf *AG_AllShapeAttributes )Validate ()error {return _abf .ValidateWithPath ("A\u0047\u005f\u0041\u006clS\u0068a\u0070\u0065\u0041\u0074\u0074r\u0069\u0062\u0075\u0074\u0065\u0073");};func (_aeafaf OfcST_RType )String ()string {switch _aeafaf {case 0:return "";case 1:return "\u0061\u0072\u0063";case 2:return "\u0063a\u006c\u006c\u006f\u0075\u0074";case 3:return "\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr";case 4:return "\u0061\u006c\u0069g\u006e";};return "";};type OfcST_OLEType byte ;func NewAG_OfficeShapeAttributes ()*AG_OfficeShapeAttributes {_bded :=&AG_OfficeShapeAttributes {};return _bded ;};func (_daagd *OfcST_ScreenSize )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_daagd =0;case "\u00354\u0034\u002c\u0033\u0037\u0036":*_daagd =1;case "\u00364\u0030\u002c\u0034\u0038\u0030":*_daagd =2;case "\u00372\u0030\u002c\u0035\u0031\u0032":*_daagd =3;case "\u00380\u0030\u002c\u0036\u0030\u0030":*_daagd =4;case "\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038":*_daagd =5;case "\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032":*_daagd =6;};return nil ;};func (_febfg OfcST_ColorMode )String ()string {switch _febfg {case 0:return "";case 1:return "\u0061\u0075\u0074\u006f";case 2:return "\u0063\u0075\u0073\u0074\u006f\u006d";};return "";};func (_ccgeb OfcST_ColorMode )Validate ()error {return _ccgeb .ValidateWithPath ("")};const (OfcST_OLEDrawAspectUnset OfcST_OLEDrawAspect =0;OfcST_OLEDrawAspectContent OfcST_OLEDrawAspect =1;OfcST_OLEDrawAspectIcon OfcST_OLEDrawAspect =2;);func (_cceca ST_FillType )String ()string {switch _cceca {case 0:return "";case 1:return "\u0073\u006f\u006ci\u0064";case 2:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case 3:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case 4:return "\u0074\u0069\u006c\u0065";case 5:return "\u0070a\u0074\u0074\u0065\u0072\u006e";case 6:return "\u0066\u0072\u0061m\u0065";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Handles and its children
|
|
|
|
func (_facdd *Handles )Validate ()error {return _facdd .ValidateWithPath ("\u0048a\u006e\u0064\u006c\u0065\u0073");};func (_afdgf *OfcCT_Callout )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_agabc :=range start .Attr {if _agabc .Name .Local =="\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"{_afdgf .LengthspecifiedAttr .UnmarshalXMLAttr (_agabc );continue ;};if _agabc .Name .Local =="\u006f\u006e"{_afdgf .OnAttr .UnmarshalXMLAttr (_agabc );continue ;};if _agabc .Name .Local =="\u0067\u0061\u0070"{_abfcg ,_gfddc :=_agabc .Value ,error (nil );if _gfddc !=nil {return _gfddc ;};_afdgf .GapAttr =&_abfcg ;continue ;};if _agabc .Name .Local =="\u0061\u006e\u0067l\u0065"{_afdgf .AngleAttr .UnmarshalXMLAttr (_agabc );continue ;};if _agabc .Name .Local =="\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"{_afdgf .DropautoAttr .UnmarshalXMLAttr (_agabc );continue ;};if _agabc .Name .Local =="\u0064\u0072\u006f\u0070"{_dfggb ,_fcdaa :=_agabc .Value ,error (nil );if _fcdaa !=nil {return _fcdaa ;};_afdgf .DropAttr =&_dfggb ;continue ;};if _agabc .Name .Local =="\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"{_ggca ,_ecfege :=_agabc .Value ,error (nil );if _ecfege !=nil {return _ecfege ;};_afdgf .DistanceAttr =&_ggca ;continue ;};if _agabc .Name .Local =="\u0074\u0079\u0070\u0065"{_afbbcg ,_fdffd :=_agabc .Value ,error (nil );if _fdffd !=nil {return _fdffd ;};_afdgf .TypeAttr =&_afbbcg ;continue ;};if _agabc .Name .Local =="\u006c\u0065\u006e\u0067\u0074\u0068"{_cafda ,_gbdbe :=_agabc .Value ,error (nil );if _gbdbe !=nil {return _gbdbe ;};_afdgf .LengthAttr =&_cafda ;continue ;};if _agabc .Name .Local =="\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"{_afdgf .AccentbarAttr .UnmarshalXMLAttr (_agabc );continue ;};if _agabc .Name .Local =="\u0074\u0065\u0078\u0074\u0062\u006f\u0072\u0064\u0065\u0072"{_afdgf .TextborderAttr .UnmarshalXMLAttr (_agabc );continue ;};if _agabc .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0078"{_afdgf .MinusxAttr .UnmarshalXMLAttr (_agabc );continue ;};if _agabc .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0079"{_afdgf .MinusyAttr .UnmarshalXMLAttr (_agabc );continue ;};if _agabc .Name .Local =="\u0065\u0078\u0074"{_afdgf .ExtAttr .UnmarshalXMLAttr (_agabc );continue ;};};for {_dfbe ,_eaegf :=d .Token ();if _eaegf !=nil {return _e .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u0061l\u006c\u006f\u0075\u0074\u003a\u0020\u0025s",_eaegf );};if _gdggg ,_agagg :=_dfbe .(_ae .EndElement );_agagg &&_gdggg .Name ==start .Name {break ;};};return nil ;};func (_ggfbde OfcST_OLEDrawAspect )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_fagdc :=_ae .Attr {};_fagdc .Name =name ;switch _ggfbde {case OfcST_OLEDrawAspectUnset :_fagdc .Value ="";case OfcST_OLEDrawAspectContent :_fagdc .Value ="\u0043o\u006e\u0074\u0065\u006e\u0074";case OfcST_OLEDrawAspectIcon :_fagdc .Value ="\u0049\u0063\u006f\u006e";};return _fagdc ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Roundrect and its children, prefixing error messages with path
|
|
|
|
func (_bfcdc *Roundrect )ValidateWithPath (path string )error {if _bdabdc :=_bfcdc .CT_RoundRect .ValidateWithPath (path );_bdabdc !=nil {return _bdabdc ;};return nil ;};type ST_Ext byte ;
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcTop and its children
|
|
|
|
func (_ggaaf *OfcTop )Validate ()error {return _ggaaf .ValidateWithPath ("\u004f\u0066\u0063\u0054\u006f\u0070");};func (_efcga *ST_FillMethod )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_gbfbg ,_dcgag :=d .Token ();if _dcgag !=nil {return _dcgag ;};if _dadc ,_ebdaad :=_gbfbg .(_ae .EndElement );_ebdaad &&_dadc .Name ==start .Name {*_efcga =1;return nil ;};if _bacge ,_dgcab :=_gbfbg .(_ae .CharData );!_dgcab {return _e .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",_gbfbg );}else {switch string (_bacge ){case "":*_efcga =0;case "\u006e\u006f\u006e\u0065":*_efcga =1;case "\u006c\u0069\u006e\u0065\u0061\u0072":*_efcga =2;case "\u0073\u0069\u0067m\u0061":*_efcga =3;case "\u0061\u006e\u0079":*_efcga =4;case "\u006c\u0069\u006ee\u0061\u0072\u0020\u0073\u0069\u0067\u006d\u0061":*_efcga =5;};};_gbfbg ,_dcgag =d .Token ();if _dcgag !=nil {return _dcgag ;};if _efbfc ,_ecbff :=_gbfbg .(_ae .EndElement );_ecbff &&_efbfc .Name ==start .Name {return nil ;};return _e .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",_gbfbg );};type OfcST_RType byte ;func (_fbgec OfcST_HrAlign )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_dcabd :=_ae .Attr {};_dcabd .Name =name ;switch _fbgec {case OfcST_HrAlignUnset :_dcabd .Value ="";case OfcST_HrAlignLeft :_dcabd .Value ="\u006c\u0065\u0066\u0074";case OfcST_HrAlignRight :_dcabd .Value ="\u0072\u0069\u0067h\u0074";case OfcST_HrAlignCenter :_dcabd .Value ="\u0063\u0065\u006e\u0074\u0065\u0072";};return _dcabd ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_ShapeDefaults and its children
|
|
|
|
func (_ggeeb *OfcCT_ShapeDefaults )Validate ()error {return _ggeeb .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0068\u0061\u0070\u0065\u0044\u0065\u0066\u0061\u0075\u006c\u0074\u0073");};func (_gaeeff *OfcCT_ShapeDefaults )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_affbf :=range start .Attr {if _affbf .Name .Local =="\u0073p\u0069\u0064\u006d\u0061\u0078"{_bbab ,_gcfgd :=_aa .ParseInt (_affbf .Value ,10,64);if _gcfgd !=nil {return _gcfgd ;};_gaeeff .SpidmaxAttr =&_bbab ;continue ;};if _affbf .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_gaeeff .AllowincellAttr .UnmarshalXMLAttr (_affbf );continue ;};if _affbf .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_fbae ,_cgaag :=_affbf .Value ,error (nil );if _cgaag !=nil {return _cgaag ;};_gaeeff .StrokecolorAttr =&_fbae ;continue ;};if _affbf .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065"{_gaeeff .StrokeAttr .UnmarshalXMLAttr (_affbf );continue ;};if _affbf .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_gbcdd ,_dgage :=_affbf .Value ,error (nil );if _dgage !=nil {return _dgage ;};_gaeeff .FillcolorAttr =&_gbcdd ;continue ;};if _affbf .Name .Local =="\u0066\u0069\u006c\u006c"{_gaeeff .FillAttr .UnmarshalXMLAttr (_affbf );continue ;};if _affbf .Name .Local =="\u0073\u0074\u0079l\u0065"{_cbbe ,_gcdb :=_affbf .Value ,error (nil );if _gcdb !=nil {return _gcdb ;};_gaeeff .StyleAttr =&_cbbe ;continue ;};if _affbf .Name .Local =="\u0065\u0078\u0074"{_gaeeff .ExtAttr .UnmarshalXMLAttr (_affbf );continue ;};};_ggbae :for {_gaece ,_ebgac :=d .Token ();if _ebgac !=nil {return _ebgac ;};switch _gdbcc :=_gaece .(type ){case _ae .StartElement :switch _gdbcc .Name {case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_gaeeff .Fill =NewFill ();if _ccdee :=d .DecodeElement (_gaeeff .Fill ,&_gdbcc );_ccdee !=nil {return _ccdee ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0074\u0072\u006f\u006b\u0065"}:_gaeeff .Stroke =NewStroke ();if _aabga :=d .DecodeElement (_gaeeff .Stroke ,&_gdbcc );_aabga !=nil {return _aabga ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0074e\u0078\u0074\u0062\u006f\u0078"}:_gaeeff .Textbox =NewTextbox ();if _efeb :=d .DecodeElement (_gaeeff .Textbox ,&_gdbcc );_efeb !=nil {return _efeb ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0068\u0061\u0064\u006f\u0077"}:_gaeeff .Shadow =NewShadow ();if _abede :=d .DecodeElement (_gaeeff .Shadow ,&_gdbcc );_abede !=nil {return _abede ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0073\u006b\u0065\u0077"}:_gaeeff .Skew =NewOfcSkew ();if _dgbef :=d .DecodeElement (_gaeeff .Skew ,&_gdbcc );_dgbef !=nil {return _dgbef ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0065x\u0074\u0072\u0075\u0073\u0069\u006fn"}:_gaeeff .Extrusion =NewOfcExtrusion ();if _cfagd :=d .DecodeElement (_gaeeff .Extrusion ,&_gdbcc );_cfagd !=nil {return _cfagd ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_StrokeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_dfc *AG_StrokeAttributes )ValidateWithPath (path string )error {if _egga :=_dfc .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_egga !=nil {return _egga ;};if _bfef :=_dfc .LinestyleAttr .ValidateWithPath (path +"\u002f\u004c\u0069\u006e\u0065\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_bfef !=nil {return _bfef ;};if _cgc :=_dfc .JoinstyleAttr .ValidateWithPath (path +"\u002f\u004a\u006f\u0069\u006e\u0073\u0074\u0079\u006ce\u0041\u0074\u0074\u0072");_cgc !=nil {return _cgc ;};if _ecgc :=_dfc .EndcapAttr .ValidateWithPath (path +"/\u0045\u006e\u0064\u0063\u0061\u0070\u0041\u0074\u0074\u0072");_ecgc !=nil {return _ecgc ;};if _dade :=_dfc .FilltypeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u006c\u006c\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_dade !=nil {return _dade ;};if _gffc :=_dfc .ImageaspectAttr .ValidateWithPath (path +"\u002f\u0049m\u0061\u0067\u0065a\u0073\u0070\u0065\u0063\u0074\u0041\u0074\u0074\u0072");_gffc !=nil {return _gffc ;};if _aaa :=_dfc .ImagealignshapeAttr .ValidateWithPath (path +"/\u0049m\u0061\u0067\u0065\u0061\u006c\u0069\u0067\u006es\u0068\u0061\u0070\u0065At\u0074\u0072");_aaa !=nil {return _aaa ;};if _gbgcb :=_dfc .StartarrowAttr .ValidateWithPath (path +"\u002fS\u0074a\u0072\u0074\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_gbgcb !=nil {return _gbgcb ;};if _acd :=_dfc .StartarrowwidthAttr .ValidateWithPath (path +"/\u0053t\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077w\u0069\u0064\u0074\u0068At\u0074\u0072");_acd !=nil {return _acd ;};if _egcf :=_dfc .StartarrowlengthAttr .ValidateWithPath (path +"/\u0053\u0074\u0061\u0072ta\u0072r\u006f\u0077\u006c\u0065\u006eg\u0074\u0068\u0041\u0074\u0074\u0072");_egcf !=nil {return _egcf ;};if _edac :=_dfc .EndarrowAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0041\u0074\u0074\u0072");_edac !=nil {return _edac ;};if _cdda :=_dfc .EndarrowwidthAttr .ValidateWithPath (path +"\u002fE\u006ed\u0061\u0072\u0072\u006f\u0077w\u0069\u0064t\u0068\u0041\u0074\u0074\u0072");_cdda !=nil {return _cdda ;};if _gebf :=_dfc .EndarrowlengthAttr .ValidateWithPath (path +"\u002f\u0045\u006e\u0064ar\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068\u0041\u0074\u0074\u0072");_gebf !=nil {return _gebf ;};if _afac :=_dfc .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_afac !=nil {return _afac ;};if _gafd :=_dfc .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_gafd !=nil {return _gafd ;};return nil ;};func (_dggcd *OfcST_RType )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_dggcd =0;case "\u0061\u0072\u0063":*_dggcd =1;case "\u0063a\u006c\u006c\u006f\u0075\u0074":*_dggcd =2;case "\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr":*_dggcd =3;case "\u0061\u006c\u0069g\u006e":*_dggcd =4;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Group and its children
|
|
|
|
func (_fegbba *Group )Validate ()error {return _fegbba .ValidateWithPath ("\u0047\u0072\u006fu\u0070")};func (_cfbde *OfcShapedefaults )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_cfbde .OfcCT_ShapeDefaults =*NewOfcCT_ShapeDefaults ();for _ ,_gebda :=range start .Attr {if _gebda .Name .Local =="\u0073p\u0069\u0064\u006d\u0061\u0078"{_dgbcg ,_dbgad :=_aa .ParseInt (_gebda .Value ,10,64);if _dbgad !=nil {return _dbgad ;};_cfbde .SpidmaxAttr =&_dgbcg ;continue ;};if _gebda .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_cfbde .AllowincellAttr .UnmarshalXMLAttr (_gebda );continue ;};if _gebda .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_gfbec ,_gbagda :=_gebda .Value ,error (nil );if _gbagda !=nil {return _gbagda ;};_cfbde .StrokecolorAttr =&_gfbec ;continue ;};if _gebda .Name .Local =="\u0073\u0074\u0072\u006f\u006b\u0065"{_cfbde .StrokeAttr .UnmarshalXMLAttr (_gebda );continue ;};if _gebda .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_gagc ,_ggfgc :=_gebda .Value ,error (nil );if _ggfgc !=nil {return _ggfgc ;};_cfbde .FillcolorAttr =&_gagc ;continue ;};if _gebda .Name .Local =="\u0066\u0069\u006c\u006c"{_cfbde .FillAttr .UnmarshalXMLAttr (_gebda );continue ;};if _gebda .Name .Local =="\u0073\u0074\u0079l\u0065"{_fceef ,_dbfed :=_gebda .Value ,error (nil );if _dbfed !=nil {return _dbfed ;};_cfbde .StyleAttr =&_fceef ;continue ;};if _gebda .Name .Local =="\u0065\u0078\u0074"{_cfbde .ExtAttr .UnmarshalXMLAttr (_gebda );continue ;};};_fbedc :for {_bgddb ,_bdeg :=d .Token ();if _bdeg !=nil {return _bdeg ;};switch _bgegf :=_bgddb .(type ){case _ae .StartElement :switch _bgegf .Name {case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0066\u0069\u006c\u006c"}:_cfbde .Fill =NewFill ();if _cefbg :=d .DecodeElement (_cfbde .Fill ,&_bgegf );_cefbg !=nil {return _cefbg ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0074\u0072\u006f\u006b\u0065"}:_cfbde .Stroke =NewStroke ();if _bfcbe :=d .DecodeElement (_cfbde .Stroke ,&_bgegf );_bfcbe !=nil {return _bfcbe ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0074e\u0078\u0074\u0062\u006f\u0078"}:_cfbde .Textbox =NewTextbox ();if _ebgadg :=d .DecodeElement (_cfbde .Textbox ,&_bgegf );_ebgadg !=nil {return _ebgadg ;};case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0073\u0068\u0061\u0064\u006f\u0077"}:_cfbde .Shadow =NewShadow ();if _gfead :=d .DecodeElement (_cfbde .Shadow ,&_bgegf );_gfead !=nil {return _gfead ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0073\u006b\u0065\u0077"}:_cfbde .Skew =NewOfcSkew ();if _gcec :=d .DecodeElement (_cfbde .Skew ,&_bgegf );_gcec !=nil {return _gcec ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0065x\u0074\u0072\u0075\u0073\u0069\u006fn"}:_cfbde .Extrusion =NewOfcExtrusion ();if _dbecd :=d .DecodeElement (_cfbde .Extrusion ,&_bgegf );_dbecd !=nil {return _dbecd ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Formulas and its children, prefixing error messages with path
|
|
|
|
func (_bdfee *Formulas )ValidateWithPath (path string )error {if _caaeg :=_bdfee .CT_Formulas .ValidateWithPath (path );_caaeg !=nil {return _caaeg ;};return nil ;};func (_cfea OfcST_ScreenSize )ValidateWithPath (path string )error {switch _cfea {case 0,1,2,3,4,5,6: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 (_cfea ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_CoreAttributes and its children
|
|
|
|
func (_cgg *AG_CoreAttributes )Validate ()error {return _cgg .ValidateWithPath ("\u0041\u0047\u005f\u0043\u006f\u0072\u0065\u0041\u0074\u0074\u0072\u0069b\u0075\u0074\u0065\u0073");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Shape and its children
|
|
|
|
func (_bfacg *CT_Shape )Validate ()error {return _bfacg .ValidateWithPath ("\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065");};type Roundrect struct{CT_RoundRect };const (OfcST_ExtrusionTypeUnset OfcST_ExtrusionType =0;OfcST_ExtrusionTypePerspective OfcST_ExtrusionType =1;OfcST_ExtrusionTypeParallel OfcST_ExtrusionType =2;);func (_gacad OfcST_Angle )ValidateWithPath (path string )error {switch _gacad {case 0,1,2,3,4,5,6: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 (_gacad ));};return nil ;};type ST_StrokeJoinStyle byte ;func NewCT_Fill ()*CT_Fill {_fdgd :=&CT_Fill {};return _fdgd };func (_cdac *CT_Formulas )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u0066\u006f\u0072\u006d\u0075\u006c\u0061\u0073";};e .EncodeToken (start );if _cdac .F !=nil {_ddadb :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0066"}};for _ ,_abff :=range _cdac .F {e .EncodeElement (_abff ,_ddadb );};};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_ecab *ST_StrokeEndCap )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_ecab =0;case "\u0066\u006c\u0061\u0074":*_ecab =1;case "\u0073\u0071\u0075\u0061\u0072\u0065":*_ecab =2;case "\u0072\u006f\u0075n\u0064":*_ecab =3;};return nil ;};type CT_Shadow struct{OnAttr _ee .ST_TrueFalse ;TypeAttr ST_ShadowType ;ObscuredAttr _ee .ST_TrueFalse ;ColorAttr *string ;OpacityAttr *string ;OffsetAttr *string ;Color2Attr *string ;Offset2Attr *string ;OriginAttr *string ;MatrixAttr *string ;IdAttr *string ;};func (_acfac *OfcCT_Skew )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0073\u006b\u0065\u0077";};if _acfac .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_acfac .IdAttr )});};if _acfac .OnAttr !=_ee .ST_TrueFalseUnset {_gdegg ,_dffbg :=_acfac .OnAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u006e"});if _dffbg !=nil {return _dffbg ;};start .Attr =append (start .Attr ,_gdegg );};if _acfac .OffsetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u0066\u0066\u0073\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_acfac .OffsetAttr )});};if _acfac .OriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_acfac .OriginAttr )});};if _acfac .MatrixAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006d\u0061\u0074\u0072\u0069\u0078"},Value :_e .Sprintf ("\u0025\u0076",*_acfac .MatrixAttr )});};if _acfac .ExtAttr !=ST_ExtUnset {_agbcf ,_fgfad :=_acfac .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _fgfad !=nil {return _fgfad ;};start .Attr =append (start .Attr ,_agbcf );};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func NewAG_Type ()*AG_Type {_fcbc :=&AG_Type {};return _fcbc };
|
2021-08-23 20:44:48 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_Type and its children, prefixing error messages with path
|
|
|
|
func (_deda *AG_Type )ValidateWithPath (path string )error {return nil };func (_afbfe *OfcCT_Entry )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_bacbe :=range start .Attr {if _bacbe .Name .Local =="\u006e\u0065\u0077"{_dfcab ,_edagd :=_aa .ParseInt (_bacbe .Value ,10,32);if _edagd !=nil {return _edagd ;};_cdffg :=int32 (_dfcab );_afbfe .NewAttr =&_cdffg ;continue ;};if _bacbe .Name .Local =="\u006f\u006c\u0064"{_dbadf ,_dggde :=_aa .ParseInt (_bacbe .Value ,10,32);if _dggde !=nil {return _dggde ;};_dfdd :=int32 (_dbadf );_afbfe .OldAttr =&_dfdd ;continue ;};};for {_gbece ,_agedg :=d .Token ();if _agedg !=nil {return _e .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0045\u006e\u0074\u0072\u0079\u003a\u0020\u0025\u0073",_agedg );};if _gfagce ,_befd :=_gbece .(_ae .EndElement );_befd &&_gfagce .Name ==start .Name {break ;};};return nil ;};func (_acgbb ST_StrokeArrowWidth )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_eabab :=_ae .Attr {};_eabab .Name =name ;switch _acgbb {case ST_StrokeArrowWidthUnset :_eabab .Value ="";case ST_StrokeArrowWidthNarrow :_eabab .Value ="\u006e\u0061\u0072\u0072\u006f\u0077";case ST_StrokeArrowWidthMedium :_eabab .Value ="\u006d\u0065\u0064\u0069\u0075\u006d";case ST_StrokeArrowWidthWide :_eabab .Value ="\u0077\u0069\u0064\u0065";};return _eabab ,nil ;};func NewCT_Shadow ()*CT_Shadow {_eced :=&CT_Shadow {};return _eced };func (_ddec *CT_Background )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u0062a\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";};if _ddec .BwmodeAttr !=OfcST_BWModeUnset {_ecac ,_gaee :=_ddec .BwmodeAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _gaee !=nil {return _gaee ;};start .Attr =append (start .Attr ,_ecac );};if _ddec .BwpureAttr !=OfcST_BWModeUnset {_ggba ,_egdc :=_ddec .BwpureAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u0070\u0075\u0072\u0065"});if _egdc !=nil {return _egdc ;};start .Attr =append (start .Attr ,_ggba );};if _ddec .BwnormalAttr !=OfcST_BWModeUnset {_fdaf ,_gfba :=_ddec .BwnormalAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _gfba !=nil {return _gfba ;};start .Attr =append (start .Attr ,_fdaf );};if _ddec .TargetscreensizeAttr !=OfcST_ScreenSizeUnset {_babd ,_agdd :=_ddec .TargetscreensizeAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f:\u0074a\u0072\u0067\u0065\u0074\u0073c\u0072\u0065e\u006e\u0073\u0069\u007a\u0065"});if _agdd !=nil {return _agdd ;};start .Attr =append (start .Attr ,_babd );};if _ddec .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ddec .IdAttr )});};if _ddec .FilledAttr !=_ee .ST_TrueFalseUnset {_baeac ,_fcad :=_ddec .FilledAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _fcad !=nil {return _fcad ;};start .Attr =append (start .Attr ,_baeac );};if _ddec .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_ddec .FillcolorAttr )});};e .EncodeToken (start );if _ddec .Fill !=nil {_abbd :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_ddec .Fill ,_abbd );};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_dacac ST_FillType )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_afad :=_ae .Attr {};_afad .Name =name ;switch _dacac {case ST_FillTypeUnset :_afad .Value ="";case ST_FillTypeSolid :_afad .Value ="\u0073\u006f\u006ci\u0064";case ST_FillTypeGradient :_afad .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case ST_FillTypeGradientRadial :_afad .Value ="\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case ST_FillTypeTile :_afad .Value ="\u0074\u0069\u006c\u0065";case ST_FillTypePattern :_a
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Lock and its children
|
|
|
|
func (_aaedb *OfcCT_Lock )Validate ()error {return _aaedb .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u004c\u006f\u0063\u006b");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Path and its children
|
|
|
|
func (_gfbbg *CT_Path )Validate ()error {return _gfbbg .ValidateWithPath ("\u0043T\u005f\u0050\u0061\u0074\u0068");};func (_decfd *AG_ShapeAttributes )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_ecdg :=range start .Attr {if _ecdg .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_dbgf ,_bcad :=_ecdg .Value ,error (nil );if _bcad !=nil {return _bcad ;};_decfd .OpacityAttr =&_dbgf ;continue ;};if _ecdg .Name .Local =="\u0073t\u0072\u006f\u006b\u0065\u0064"{_decfd .StrokedAttr .UnmarshalXMLAttr (_ecdg );continue ;};if _ecdg .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_faec ,_bdeeb :=_ecdg .Value ,error (nil );if _bdeeb !=nil {return _bdeeb ;};_decfd .StrokecolorAttr =&_faec ;continue ;};if _ecdg .Name .Local =="\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"{_fcfc ,_bbd :=_ecdg .Value ,error (nil );if _bbd !=nil {return _bbd ;};_decfd .StrokeweightAttr =&_fcfc ;continue ;};if _ecdg .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_decfd .InsetpenAttr .UnmarshalXMLAttr (_ecdg );continue ;};if _ecdg .Name .Local =="\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"{_ffdd ,_bbf :=_ecdg .Value ,error (nil );if _bbf !=nil {return _bbf ;};_decfd .ChromakeyAttr =&_ffdd ;continue ;};if _ecdg .Name .Local =="\u0066\u0069\u006c\u006c\u0065\u0064"{_decfd .FilledAttr .UnmarshalXMLAttr (_ecdg );continue ;};if _ecdg .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_gfa ,_gfac :=_ecdg .Value ,error (nil );if _gfac !=nil {return _gfac ;};_decfd .FillcolorAttr =&_gfa ;continue ;};};for {_gfca ,_abge :=d .Token ();if _abge !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u0041\u0047_\u0053\u0068\u0061\u0070\u0065\u0041\u0074t\u0072\u0069\u0062\u0075\u0074\u0065\u0073\u003a\u0020\u0025\u0073",_abge );};if _fcga ,_gcce :=_gfca .(_ae .EndElement );_gcce &&_fcga .Name ==start .Name {break ;};};return nil ;};
|
2020-08-31 22:58:25 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_Type and its children
|
|
|
|
func (_eeeg *AG_Type )Validate ()error {return _eeeg .ValidateWithPath ("\u0041G\u005f\u0054\u0079\u0070\u0065");};func (_feeba OfcST_HrAlign )Validate ()error {return _feeba .ValidateWithPath ("")};type CT_ImageData struct{EmbosscolorAttr *string ;RecolortargetAttr *string ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;OleidAttr *float32 ;DetectmouseclickAttr _ee .ST_TrueFalse ;MovieAttr *float32 ;RelidAttr *string ;IdAttr *string ;PictAttr *string ;RHrefAttr *string ;SIdAttr *string ;SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _ee .ST_TrueFalse ;BilevelAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;};func (_gbgdg ST_FillType )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_gbgdg .String (),start );};func (_fccdgf OfcST_ConnectorType )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_bgbag :=_ae .Attr {};_bgbag .Name =name ;switch _fccdgf {case OfcST_ConnectorTypeUnset :_bgbag .Value ="";case OfcST_ConnectorTypeNone :_bgbag .Value ="\u006e\u006f\u006e\u0065";case OfcST_ConnectorTypeStraight :_bgbag .Value ="\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074";case OfcST_ConnectorTypeElbow :_bgbag .Value ="\u0065\u006c\u0062o\u0077";case OfcST_ConnectorTypeCurved :_bgbag .Value ="\u0063\u0075\u0072\u0076\u0065\u0064";};return _bgbag ,nil ;};type Shapetype struct{CT_Shapetype };type OfcRight struct{OfcCT_StrokeChild };func (_gdgfg OfcST_ExtrusionType )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_gebeb :=_ae .Attr {};_gebeb .Name =name ;switch _gdgfg {case OfcST_ExtrusionTypeUnset :_gebeb .Value ="";case OfcST_ExtrusionTypePerspective :_gebeb .Value ="p\u0065\u0072\u0073\u0070\u0065\u0063\u0074\u0069\u0076\u0065";case OfcST_ExtrusionTypeParallel :_gebeb .Value ="\u0070\u0061\u0072\u0061\u006c\u006c\u0065\u006c";};return _gebeb ,nil ;};type ST_EditAs byte ;type OfcCT_ClipPath struct{VAttr string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Curve and its children, prefixing error messages with path
|
|
|
|
func (_aafb *Curve )ValidateWithPath (path string )error {if _ebbcc :=_aafb .CT_Curve .ValidateWithPath (path );_ebbcc !=nil {return _ebbcc ;};return nil ;};func (_fdga ST_EditAs )ValidateWithPath (path string )error {switch _fdga {case 0,1,2,3,4,5,6,7: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 (_fdga ));};return nil ;};const (OfcST_InsetModeUnset OfcST_InsetMode =0;OfcST_InsetModeAuto OfcST_InsetMode =1;OfcST_InsetModeCustom OfcST_InsetMode =2;);
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_IdMap and its children
|
|
|
|
func (_fegfg *OfcCT_IdMap )Validate ()error {return _fegfg .ValidateWithPath ("O\u0066\u0063\u0043\u0054\u005f\u0049\u0064\u004d\u0061\u0070");};func (_efebe OfcST_OLEType )Validate ()error {return _efebe .ValidateWithPath ("")};func (_degb ST_StrokeEndCap )String ()string {switch _degb {case 0:return "";case 1:return "\u0066\u006c\u0061\u0074";case 2:return "\u0073\u0071\u0075\u0061\u0072\u0065";case 3:return "\u0072\u006f\u0075n\u0064";};return "";};func (_abcge *OfcCT_Rules )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_fbfff :=range start .Attr {if _fbfff .Name .Local =="\u0065\u0078\u0074"{_abcge .ExtAttr .UnmarshalXMLAttr (_fbfff );continue ;};};_gdacg :for {_afgge ,_dcedc :=d .Token ();if _dcedc !=nil {return _dcedc ;};switch _egebg :=_afgge .(type ){case _ae .StartElement :switch _egebg .Name {case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072"}:_abddb :=NewOfcCT_R ();if _bbebaf :=d .DecodeElement (_abddb ,&_egebg );_bbebaf !=nil {return _bbebaf ;};_abcge .R =append (_abcge .R ,_abddb );default:_bb .Log .Debug ("\u0073\u006bi\u0070\u0070\u0069\u006e\u0067\u0020\u0075\u006e\u0073\u0075\u0070\u0070\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0075\u006c\u0065\u0073\u0020\u0025\u0076",_egebg .Name );if _bfeddg :=d .Skip ();_bfeddg !=nil {return _bfeddg ;};};case _ae .EndElement :break _gdacg ;case _ae .CharData :};};return nil ;};func (_cbffa OfcST_InsetMode )ValidateWithPath (path string )error {switch _cbffa {case 0,1,2: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 (_cbffa ));};return nil ;};func (_fbfaf *OfcCT_ShapeLayout )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_debfcg :=range start .Attr {if _debfcg .Name .Local =="\u0065\u0078\u0074"{_fbfaf .ExtAttr .UnmarshalXMLAttr (_debfcg );continue ;};};_dfdfc :for {_efgefc ,_dcdcg :=d .Token ();if _dcdcg !=nil {return _dcdcg ;};switch _cdcga :=_efgefc .(type ){case _ae .StartElement :switch _cdcga .Name {case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0069\u0064\u006da\u0070"}:_fbfaf .Idmap =NewOfcCT_IdMap ();if _bcdede :=d .DecodeElement (_fbfaf .Idmap ,&_cdcga );_bcdede !=nil {return _bcdede ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u0067r\u006f\u0075\u0070\u0074\u0061\u0062\u006c\u0065"}:_fbfaf .Regrouptable =NewOfcCT_RegroupTable ();if _cgeag :=d .DecodeElement (_fbfaf .Regrouptable ,&_cdcga );_cgeag !=nil {return _cgeag ;};case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0075\u006ce\u0073"}:_fbfaf .Rules =NewOfcCT_Rules ();if _afga :=d .DecodeElement (_fbfaf .Rules ,&_cdcga );_afga !=nil {return _afga ;};default:_bb .Log .Debug ("\u0073\u006bi\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073\u0075\u0070p\u006f\u0072\u0074\u0065\u0064\u0020\u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004c\u0061\u0079\u006f\u0075\u0074\u0020\u0025\u0076",_cdcga .Name );if _dfbeb :=d .Skip ();_dfbeb !=nil {return _dfbeb ;};};case _ae .EndElement :break _dfdfc ;case _ae .CharData :};};return nil
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Path and its children, prefixing error messages with path
|
|
|
|
func (_fadf *CT_Path )ValidateWithPath (path string )error {if _dgbd :=_fadf .FillokAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u006f\u006b\u0041\u0074\u0074\u0072");_dgbd !=nil {return _dgbd ;};if _fcdaf :=_fadf .StrokeokAttr .ValidateWithPath (path +"\u002f\u0053\u0074\u0072\u006f\u006b\u0065\u006f\u006b\u0041\u0074\u0074\u0072");_fcdaf !=nil {return _fcdaf ;};if _debg :=_fadf .ShadowokAttr .ValidateWithPath (path +"\u002f\u0053\u0068\u0061\u0064\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_debg !=nil {return _debg ;};if _abdfgg :=_fadf .ArrowokAttr .ValidateWithPath (path +"\u002f\u0041\u0072r\u006f\u0077\u006f\u006b\u0041\u0074\u0074\u0072");_abdfgg !=nil {return _abdfgg ;};if _gdae :=_fadf .GradientshapeokAttr .ValidateWithPath (path +"/\u0047r\u0061\u0064\u0069\u0065\u006e\u0074\u0073\u0068a\u0070\u0065\u006f\u006bAt\u0074\u0072");_gdae !=nil {return _gdae ;};if _afbde :=_fadf .TextpathokAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0070\u0061\u0074\u0068\u006f\u006b\u0041\u0074\u0074\u0072");_afbde !=nil {return _afbde ;};if _dagc :=_fadf .InsetpenokAttr .ValidateWithPath (path +"\u002fI\u006es\u0065\u0074\u0070\u0065\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_dagc !=nil {return _dagc ;};if _dfgfc :=_fadf .ConnecttypeAttr .ValidateWithPath (path +"\u002f\u0043o\u006e\u006e\u0065c\u0074\u0074\u0079\u0070\u0065\u0041\u0074\u0074\u0072");_dfgfc !=nil {return _dfgfc ;};if _gcbcb :=_fadf .ExtrusionokAttr .ValidateWithPath (path +"\u002f\u0045x\u0074\u0072\u0075s\u0069\u006f\u006e\u006f\u006b\u0041\u0074\u0074\u0072");_gcbcb !=nil {return _gcbcb ;};return nil ;};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcInk and its children
|
|
|
|
func (_dfffd *OfcInk )Validate ()error {return _dfffd .ValidateWithPath ("\u004f\u0066\u0063\u0049\u006e\u006b");};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Fill and its children
|
|
|
|
func (_acdc *CT_Fill )Validate ()error {return _acdc .ValidateWithPath ("\u0043T\u005f\u0046\u0069\u006c\u006c");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcLeft and its children, prefixing error messages with path
|
|
|
|
func (_geca *OfcLeft )ValidateWithPath (path string )error {if _aagda :=_geca .OfcCT_StrokeChild .ValidateWithPath (path );_aagda !=nil {return _aagda ;};return nil ;};type OfcLock struct{OfcCT_Lock };func (_ada *AG_CoreAttributes )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _ada .HrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_ada .HrefAttr )});};if _ada .TargetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_ada .TargetAttr )});};if _ada .ClassAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_ada .ClassAttr )});};if _ada .TitleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ada .TitleAttr )});};if _ada .AltAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_ada .AltAttr )});};if _ada .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_ada .CoordsizeAttr )});};if _ada .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_ada .CoordoriginAttr )});};if _ada .WrapcoordsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0077\u0072\u0061\u0070\u0063\u006f\u006f\u0072\u0064\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_ada .WrapcoordsAttr )});};if _ada .PrintAttr !=_ee .ST_TrueFalseUnset {_cde ,_abba :=_ada .PrintAttr .MarshalXMLAttr (_ae .Name {Local :"\u0070\u0072\u0069n\u0074"});if _abba !=nil {return _abba ;};start .Attr =append (start .Attr ,_cde );};if _ada .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_ada .IdAttr )});};if _ada .StyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_ada .StyleAttr )});};return nil ;};type OfcClippath struct{OfcCT_ClipPath };type AG_StrokeAttributes struct{OnAttr _ee .ST_TrueFalse ;WeightAttr *string ;ColorAttr *string ;OpacityAttr *string ;LinestyleAttr ST_StrokeLineStyle ;MiterlimitAttr *float64 ;JoinstyleAttr ST_StrokeJoinStyle ;EndcapAttr ST_StrokeEndCap ;DashstyleAttr *string ;FilltypeAttr ST_FillType ;SrcAttr *string ;ImageaspectAttr ST_ImageAspect ;ImagesizeAttr *string ;ImagealignshapeAttr _ee .ST_TrueFalse ;Color2Attr *string ;StartarrowAttr ST_StrokeArrowType ;StartarrowwidthAttr ST_StrokeArrowWidth ;StartarrowlengthAttr ST_StrokeArrowLength ;EndarrowAttr ST_StrokeArrowType ;EndarrowwidthAttr ST_StrokeArrowWidth ;EndarrowlengthAttr ST_StrokeArrowLength ;HrefAttr *string ;AlthrefAttr *string ;TitleAttr *string ;ForcedashAttr _ee .ST_TrueFalse ;IdAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;RelidAttr *string ;};func (_acbee *OfcClippath )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_acbee .OfcCT_ClipPath =*NewOfcCT_ClipPath ();for _ ,_adafab :=range start .Attr {if _adafab .Name .Local =="\u0076"{_eaab ,_fadaaf :=_adafab .Value ,error (nil );if _fadaaf !=nil {return _fadaaf ;};_acbee .VAttr =_eaab ;continue ;};};for {_gdfec ,_ffegb :=d .Token ();if _ffegb !=nil {return _e .Errorf ("\u0070\u0061\u0072si\u006e\u0067\u0020\u004f\u0066\u0063\u0043\u006c\u0069\u0070\u0070\u0061\u0074\u0068\u003a\u0020\u0025\u0073",_ffegb );};if _ageaeg ,_fdeda :=_gdfec .(_ae .EndElement );_fdeda &&_ageaeg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMru and its children, prefixing error messages with path
|
|
|
|
func (_fddbd *OfcCT_ColorMru )ValidateWithPath (path string )error {if _dcdcd :=_fddbd .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_dcdcd !=nil {return _dcdcd ;};return nil ;};func (_cfbfad OfcST_ConnectType )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_cfbfad .String (),start );};func (_bdcfe ST_StrokeEndCap )Validate ()error {return _bdcfe .ValidateWithPath ("")};func (_fgfd *CT_Shadow )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_bafcb :=range start .Attr {if _bafcb .Name .Local =="\u006f\u006e"{_fgfd .OnAttr .UnmarshalXMLAttr (_bafcb );continue ;};if _bafcb .Name .Local =="\u0074\u0079\u0070\u0065"{_fgfd .TypeAttr .UnmarshalXMLAttr (_bafcb );continue ;};if _bafcb .Name .Local =="\u006f\u0062\u0073\u0063\u0075\u0072\u0065\u0064"{_fgfd .ObscuredAttr .UnmarshalXMLAttr (_bafcb );continue ;};if _bafcb .Name .Local =="\u0063\u006f\u006co\u0072"{_ecgeg ,_bebec :=_bafcb .Value ,error (nil );if _bebec !=nil {return _bebec ;};_fgfd .ColorAttr =&_ecgeg ;continue ;};if _bafcb .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_ggfd ,_cfba :=_bafcb .Value ,error (nil );if _cfba !=nil {return _cfba ;};_fgfd .OpacityAttr =&_ggfd ;continue ;};if _bafcb .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_dfbge ,_fdgbb :=_bafcb .Value ,error (nil );if _fdgbb !=nil {return _fdgbb ;};_fgfd .OffsetAttr =&_dfbge ;continue ;};if _bafcb .Name .Local =="\u0063\u006f\u006c\u006f\u0072\u0032"{_dage ,_dbfcb :=_bafcb .Value ,error (nil );if _dbfcb !=nil {return _dbfcb ;};_fgfd .Color2Attr =&_dage ;continue ;};if _bafcb .Name .Local =="\u006ff\u0066\u0073\u0065\u0074\u0032"{_afafb ,_cadb :=_bafcb .Value ,error (nil );if _cadb !=nil {return _cadb ;};_fgfd .Offset2Attr =&_afafb ;continue ;};if _bafcb .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_dcbf ,_egge :=_bafcb .Value ,error (nil );if _egge !=nil {return _egge ;};_fgfd .OriginAttr =&_dcbf ;continue ;};if _bafcb .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_aefcb ,_cedbd :=_bafcb .Value ,error (nil );if _cedbd !=nil {return _cedbd ;};_fgfd .MatrixAttr =&_aefcb ;continue ;};if _bafcb .Name .Local =="\u0069\u0064"{_ecggg ,_fdee :=_bafcb .Value ,error (nil );if _fdee !=nil {return _fdee ;};_fgfd .IdAttr =&_ecggg ;continue ;};};for {_ebggd ,_fgfba :=d .Token ();if _fgfba !=nil {return _e .Errorf ("p\u0061\u0072\u0073\u0069ng\u0020C\u0054\u005f\u0053\u0068\u0061d\u006f\u0077\u003a\u0020\u0025\u0073",_fgfba );};if _fagbb ,_ebcdf :=_ebggd .(_ae .EndElement );_ebcdf &&_fagbb .Name ==start .Name {break ;};};return nil ;};func (_fggbb OfcST_InsetMode )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_fggbb .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Background and its children, prefixing error messages with path
|
|
|
|
func (_dgeeg *Background )ValidateWithPath (path string )error {if _febb :=_dgeeg .CT_Background .ValidateWithPath (path );_febb !=nil {return _febb ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Curve and its children
|
|
|
|
func (_fcef *Curve )Validate ()error {return _fcef .ValidateWithPath ("\u0043\u0075\u0072v\u0065")};func (_dfeba *OfcST_ExtrusionPlane )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_ecbe ,_fegdf :=d .Token ();if _fegdf !=nil {return _fegdf ;};if _aeffb ,_gdcag :=_ecbe .(_ae .EndElement );_gdcag &&_aeffb .Name ==start .Name {*_dfeba =1;return nil ;};if _dfebab ,_baceea :=_ecbe .(_ae .CharData );!_baceea {return _e .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",_ecbe );}else {switch string (_dfebab ){case "":*_dfeba =0;case "\u0058\u0059":*_dfeba =1;case "\u005a\u0058":*_dfeba =2;case "\u0059\u005a":*_dfeba =3;};};_ecbe ,_fegdf =d .Token ();if _fegdf !=nil {return _fegdf ;};if _becbb ,_babba :=_ecbe .(_ae .EndElement );_babba &&_becbb .Name ==start .Name {return nil ;};return _e .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",_ecbe );};func (_dacdb *OfcCT_Ink )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_daefe :=range start .Attr {if _daefe .Name .Local =="\u0069"{_egbde ,_gdgaa :=_daefe .Value ,error (nil );if _gdgaa !=nil {return _gdgaa ;};_dacdb .IAttr =&_egbde ;continue ;};if _daefe .Name .Local =="\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_dacdb .AnnotationAttr .UnmarshalXMLAttr (_daefe );continue ;};if _daefe .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_efgec ,_fegd :=_daefe .Value ,error (nil );if _fegd !=nil {return _fegd ;};_dacdb .ContentTypeAttr =&_efgec ;continue ;};};for {_edgga ,_abadbf :=d .Token ();if _abadbf !=nil {return _e .Errorf ("p\u0061\u0072\u0073\u0069ng\u0020O\u0066\u0063\u0043\u0054\u005fI\u006e\u006b\u003a\u0020\u0025\u0073",_abadbf );};if _bdcac ,_cegfe :=_edgga .(_ae .EndElement );_cegfe &&_bdcac .Name ==start .Name {break ;};};return nil ;};func (_gdcdd *OfcCT_ColorMru )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0063\u006f\u006c\u006f\u0072\u006d\u0072\u0075";};if _gdcdd .ColorsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_gdcdd .ColorsAttr )});};if _gdcdd .ExtAttr !=ST_ExtUnset {_bcedbg ,_bdggf :=_gdcdd .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _bdggf !=nil {return _bdggf ;};start .Attr =append (start .Attr ,_bcedbg );};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_Style and its children, prefixing error messages with path
|
|
|
|
func (_bbdb *AG_Style )ValidateWithPath (path string )error {return nil };func NewOfcCT_EquationXml ()*OfcCT_EquationXml {_ggced :=&OfcCT_EquationXml {};return _ggced };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_RegroupTable and its children, prefixing error messages with path
|
|
|
|
func (_aafcc *OfcCT_RegroupTable )ValidateWithPath (path string )error {for _beaeg ,_dgegd :=range _aafcc .Entry {if _gdebc :=_dgegd .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fE\u006e\u0074\u0072\u0079\u005b\u0025\u0064\u005d",path ,_beaeg ));_gdebc !=nil {return _gdebc ;};};if _bbbdf :=_aafcc .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bbbdf !=nil {return _bbbdf ;};return nil ;};func (_aegcg ST_ShadowType )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_aegcg .String (),start );};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Group and its children, prefixing error messages with path
|
|
|
|
func (_egege *CT_Group )ValidateWithPath (path string )error {if _fbffg :=_egege .EditasAttr .ValidateWithPath (path +"/\u0045\u0064\u0069\u0074\u0061\u0073\u0041\u0074\u0074\u0072");_fbffg !=nil {return _fbffg ;};for _abgfb ,_edbedd :=range _egege .Group {if _gcgde :=_edbedd .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fG\u0072\u006f\u0075\u0070\u005b\u0025\u0064\u005d",path ,_abgfb ));_gcgde !=nil {return _gcgde ;};};for _bebaf ,_fgcg :=range _egege .Shape {if _fagge :=_fgcg .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fS\u0068\u0061\u0070\u0065\u005b\u0025\u0064\u005d",path ,_bebaf ));_fagge !=nil {return _fagge ;};};for _gafc ,_ceef :=range _egege .Shapetype {if _bfge :=_ceef .ValidateWithPath (_e .Sprintf ("\u0025\u0073/\u0053\u0068\u0061p\u0065\u0074\u0079\u0070\u0065\u005b\u0025\u0064\u005d",path ,_gafc ));_bfge !=nil {return _bfge ;};};for _ffgbb ,_dgdeb :=range _egege .Arc {if _faaad :=_dgdeb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0041\u0072\u0063\u005b\u0025\u0064\u005d",path ,_ffgbb ));_faaad !=nil {return _faaad ;};};for _abecd ,_dfae :=range _egege .Curve {if _efcad :=_dfae .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fC\u0075\u0072\u0076\u0065\u005b\u0025\u0064\u005d",path ,_abecd ));_efcad !=nil {return _efcad ;};};for _baabf ,_fdda :=range _egege .Image {if _adfae :=_fdda .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fI\u006d\u0061\u0067\u0065\u005b\u0025\u0064\u005d",path ,_baabf ));_adfae !=nil {return _adfae ;};};for _adeg ,_gagg :=range _egege .Line {if _gcaa :=_gagg .ValidateWithPath (_e .Sprintf ("%\u0073\u002f\u004c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_adeg ));_gcaa !=nil {return _gcaa ;};};for _bgcd ,_fdgdf :=range _egege .Oval {if _geea :=_fdgdf .ValidateWithPath (_e .Sprintf ("%\u0073\u002f\u004f\u0076\u0061\u006c\u005b\u0025\u0064\u005d",path ,_bgcd ));_geea !=nil {return _geea ;};};for _dbac ,_aaeg :=range _egege .Polyline {if _bgbfb :=_aaeg .ValidateWithPath (_e .Sprintf ("\u0025s\u002fP\u006f\u006c\u0079\u006c\u0069\u006e\u0065\u005b\u0025\u0064\u005d",path ,_dbac ));_bgbfb !=nil {return _bgbfb ;};};for _cagea ,_cdbad :=range _egege .Rect {if _cddgc :=_cdbad .ValidateWithPath (_e .Sprintf ("%\u0073\u002f\u0052\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_cagea ));_cddgc !=nil {return _cddgc ;};};for _ggaa ,_bcgc :=range _egege .Roundrect {if _fbccb :=_bcgc .ValidateWithPath (_e .Sprintf ("\u0025\u0073/\u0052\u006f\u0075n\u0064\u0072\u0065\u0063\u0074\u005b\u0025\u0064\u005d",path ,_ggaa ));_fbccb !=nil {return _fbccb ;};};for _bdecg ,_fgfeg :=range _egege .Diagram {if _fgeb :=_fgfeg .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002f\u0044\u0069\u0061\u0067\u0072\u0061m\u005b\u0025\u0064\u005d",path ,_bdecg ));_fgeb !=nil {return _fgeb ;};};for _fefdg ,_dcfaa :=range _egege .EG_ShapeElements {if _eebg :=_dcfaa .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fefdg ));_eebg !=nil {return _eebg ;};};if _baada :=_egege .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_baada !=nil {return _baada ;};if _ggdc :=_egege .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ggdc !=nil {return _ggdc ;};if _cbddc :=_egege .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_cbddc !=nil {return _cbddc ;};if _eeagd :=_egege .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_eeagd !=nil {return _eeagd ;};if _becdc :=_egege .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_becdc !=nil {return _becdc ;};if _gdebb :=_egege .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_gdebb !=nil {return _gdebb ;};if _gbfb :=_egege .HrAttr .ValidateWithPath (path +"\u002fH\u0072\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_AllShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_dec *AG_AllShapeAttributes )ValidateWithPath (path string )error {if _dba :=_dec .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_dba !=nil {return _dba ;};if _ffa :=_dec .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ffa !=nil {return _ffa ;};if _fda :=_dec .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_fda !=nil {return _fda ;};if _fcfd :=_dec .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_fcfd !=nil {return _fcfd ;};if _cfd :=_dec .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_cfd !=nil {return _cfd ;};if _abeg :=_dec .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_abeg !=nil {return _abeg ;};if _adb :=_dec .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_adb !=nil {return _adb ;};if _ddf :=_dec .ForcedashAttr .ValidateWithPath (path +"\u002f\u0046\u006f\u0072\u0063\u0065\u0064\u0061\u0073h\u0041\u0074\u0074\u0072");_ddf !=nil {return _ddf ;};if _gcdf :=_dec .OleiconAttr .ValidateWithPath (path +"\u002f\u004f\u006ce\u0069\u0063\u006f\u006e\u0041\u0074\u0074\u0072");_gcdf !=nil {return _gcdf ;};if _fbga :=_dec .OleAttr .ValidateWithPath (path +"\u002f\u004f\u006c\u0065\u0041\u0074\u0074\u0072");_fbga !=nil {return _fbga ;};if _aabb :=_dec .PreferrelativeAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0065fe\u0072\u0072\u0065\u006c\u0061\u0074\u0069\u0076\u0065\u0041\u0074\u0074\u0072");_aabb !=nil {return _aabb ;};if _acb :=_dec .CliptowrapAttr .ValidateWithPath (path +"\u002fC\u006ci\u0070\u0074\u006f\u0077\u0072\u0061\u0070\u0041\u0074\u0074\u0072");_acb !=nil {return _acb ;};if _ecf :=_dec .ClipAttr .ValidateWithPath (path +"\u002fC\u006c\u0069\u0070\u0041\u0074\u0074r");_ecf !=nil {return _ecf ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcShapelayout and its children
|
|
|
|
func (_fcedc *OfcShapelayout )Validate ()error {return _fcedc .ValidateWithPath ("\u004f\u0066\u0063\u0053\u0068\u0061\u0070\u0065\u006ca\u0079\u006f\u0075\u0074");};func NewStroke ()*Stroke {_afgda :=&Stroke {};_afgda .CT_Stroke =*NewCT_Stroke ();return _afgda };func (_fcdcc ST_ImageAspect )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_fcdcc .String (),start );};func NewCT_Shapetype ()*CT_Shapetype {_fefad :=&CT_Shapetype {};return _fefad };func (_dfbbf OfcST_How )Validate ()error {return _dfbbf .ValidateWithPath ("")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Path and its children
|
|
|
|
func (_geaga *Path )Validate ()error {return _geaga .ValidateWithPath ("\u0050\u0061\u0074\u0068")};func (_bfba *Handles )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _bfba .CT_Handles .MarshalXML (e ,start );};func (_fabbe *Rect )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _fabbe .CT_Rect .MarshalXML (e ,start );};func (_ebbdb *Fill )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return _ebbdb .CT_Fill .MarshalXML (e ,start );};func (_gbbed *OfcST_ConnectorType )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_gbbed =0;case "\u006e\u006f\u006e\u0065":*_gbbed =1;case "\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074":*_gbbed =2;case "\u0065\u006c\u0062o\u0077":*_gbbed =3;case "\u0063\u0075\u0072\u0076\u0065\u0064":*_gbbed =4;};return nil ;};func (_ecegbg ST_StrokeJoinStyle )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_gaaggb :=_ae .Attr {};_gaaggb .Name =name ;switch _ecegbg {case ST_StrokeJoinStyleUnset :_gaaggb .Value ="";case ST_StrokeJoinStyleRound :_gaaggb .Value ="\u0072\u006f\u0075n\u0064";case ST_StrokeJoinStyleBevel :_gaaggb .Value ="\u0062\u0065\u0076e\u006c";case ST_StrokeJoinStyleMiter :_gaaggb .Value ="\u006d\u0069\u0074e\u0072";};return _gaaggb ,nil ;};
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_RoundRect and its children, prefixing error messages with path
|
|
|
|
func (_dgefd *CT_RoundRect )ValidateWithPath (path string )error {for _fbdb ,_dfbdf :=range _dgefd .EG_ShapeElements {if _dfbf :=_dfbdf .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_fbdb ));_dfbf !=nil {return _dfbf ;};};if _ccdb :=_dgefd .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_ccdb !=nil {return _ccdb ;};if _cgcf :=_dgefd .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_cgcf !=nil {return _cgcf ;};if _agefe :=_dgefd .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_agefe !=nil {return _agefe ;};if _cbfde :=_dgefd .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_cbfde !=nil {return _cbfde ;};if _bece :=_dgefd .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_bece !=nil {return _bece ;};if _bbaad :=_dgefd .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_bbaad !=nil {return _bbaad ;};if _eefc :=_dgefd .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_eefc !=nil {return _eefc ;};if _dabca :=_dgefd .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_dabca !=nil {return _dabca ;};if _gacd :=_dgefd .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_gacd !=nil {return _gacd ;};if _bcfe :=_dgefd .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_bcfe !=nil {return _bcfe ;};if _dbca :=_dgefd .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_dbca !=nil {return _dbca ;};if _efdgc :=_dgefd .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_efdgc !=nil {return _efdgc ;};if _aeca :=_dgefd .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_aeca !=nil {return _aeca ;};if _cfgba :=_dgefd .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_cfgba !=nil {return _cfgba ;};if _gcbg :=_dgefd .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_gcbg !=nil {return _gcbg ;};if _cfeb :=_dgefd .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_cfeb !=nil {return _cfeb ;};if _fadfb :=_dgefd .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_fadfb !=nil {return _fadfb ;};if _affb :=_dgefd .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_affb !=nil {return _affb ;};if _daad :=_dgefd .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_daad !=nil {return _daad ;};if _fabf :=_dgefd .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_fabf !=nil {return _fabf ;};if _ecfeg :=_dgefd .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_ecfeg !=nil {return _ecfeg ;};if _egea :=_dgefd .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_egea !=nil {return _egea ;};if _ggga :=_dgefd .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_ggga
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_ImageAttributes and its children
|
|
|
|
func (_afef *AG_ImageAttributes )Validate ()error {return _afef .ValidateWithPath ("\u0041G\u005fI\u006d\u0061\u0067\u0065\u0041t\u0074\u0072i\u0062\u0075\u0074\u0065\u0073");};func (_gffab *CT_H )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_aabf :=range start .Attr {if _aabf .Name .Local =="\u0070\u006f\u0073\u0069\u0074\u0069\u006f\u006e"{_fdea ,_ebfg :=_aabf .Value ,error (nil );if _ebfg !=nil {return _ebfg ;};_gffab .PositionAttr =&_fdea ;continue ;};if _aabf .Name .Local =="\u0070\u006f\u006ca\u0072"{_begc ,_gbeec :=_aabf .Value ,error (nil );if _gbeec !=nil {return _gbeec ;};_gffab .PolarAttr =&_begc ;continue ;};if _aabf .Name .Local =="\u006d\u0061\u0070"{_acdg ,_gcbdf :=_aabf .Value ,error (nil );if _gcbdf !=nil {return _gcbdf ;};_gffab .MapAttr =&_acdg ;continue ;};if _aabf .Name .Local =="\u0069\u006e\u0076\u0078"{_gffab .InvxAttr .UnmarshalXMLAttr (_aabf );continue ;};if _aabf .Name .Local =="\u0069\u006e\u0076\u0079"{_gffab .InvyAttr .UnmarshalXMLAttr (_aabf );continue ;};if _aabf .Name .Local =="\u0073\u0077\u0069\u0074\u0063\u0068"{_gffab .SwitchAttr .UnmarshalXMLAttr (_aabf );continue ;};if _aabf .Name .Local =="\u0078\u0072\u0061\u006e\u0067\u0065"{_dege ,_dbcb :=_aabf .Value ,error (nil );if _dbcb !=nil {return _dbcb ;};_gffab .XrangeAttr =&_dege ;continue ;};if _aabf .Name .Local =="\u0079\u0072\u0061\u006e\u0067\u0065"{_eccc ,_fabbc :=_aabf .Value ,error (nil );if _fabbc !=nil {return _fabbc ;};_gffab .YrangeAttr =&_eccc ;continue ;};if _aabf .Name .Local =="r\u0061\u0064\u0069\u0075\u0073\u0072\u0061\u006e\u0067\u0065"{_adda ,_egafa :=_aabf .Value ,error (nil );if _egafa !=nil {return _egafa ;};_gffab .RadiusrangeAttr =&_adda ;continue ;};};for {_bfce ,_aged :=d .Token ();if _aged !=nil {return _e .Errorf ("\u0070\u0061r\u0073\u0069\u006eg\u0020\u0043\u0054\u005f\u0048\u003a\u0020\u0025\u0073",_aged );};if _fgbe ,_fege :=_bfce .(_ae .EndElement );_fege &&_fgbe .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Fill and its children, prefixing error messages with path
|
|
|
|
func (_fdacc *Fill )ValidateWithPath (path string )error {if _cfcedg :=_fdacc .CT_Fill .ValidateWithPath (path );_cfcedg !=nil {return _cfcedg ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcRight and its children, prefixing error messages with path
|
|
|
|
func (_dgfbe *OfcRight )ValidateWithPath (path string )error {if _fbfgaf :=_dgfbe .OfcCT_StrokeChild .ValidateWithPath (path );_fbfgaf !=nil {return _fbfgaf ;};return nil ;};func (_cdecd ST_ImageAspect )String ()string {switch _cdecd {case 0:return "";case 1:return "\u0069\u0067\u006e\u006f\u0072\u0065";case 2:return "\u0061\u0074\u004d\u006f\u0073\u0074";case 3:return "\u0061t\u004c\u0065\u0061\u0073\u0074";};return "";};const (OfcST_ConnectTypeUnset OfcST_ConnectType =0;OfcST_ConnectTypeNone OfcST_ConnectType =1;OfcST_ConnectTypeRect OfcST_ConnectType =2;OfcST_ConnectTypeSegments OfcST_ConnectType =3;OfcST_ConnectTypeCustom OfcST_ConnectType =4;);func NewOfcCT_ShapeLayout ()*OfcCT_ShapeLayout {_cagcgb :=&OfcCT_ShapeLayout {};return _cagcgb };type CT_Oval struct{EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _ee .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _ee .ST_TrueFalse ;ButtonAttr _ee .ST_TrueFalse ;UserhiddenAttr _ee .ST_TrueFalse ;BulletAttr _ee .ST_TrueFalse ;HrAttr _ee .ST_TrueFalse ;HrstdAttr _ee .ST_TrueFalse ;HrnoshadeAttr _ee .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _ee .ST_TrueFalse ;AllowoverlapAttr _ee .ST_TrueFalse ;UserdrawnAttr _ee .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _ee .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _ee .ST_TrueFalse ;OleiconAttr _ee .ST_TrueFalse ;OleAttr _ee .ST_TrueFalseBlank ;PreferrelativeAttr _ee .ST_TrueFalse ;CliptowrapAttr _ee .ST_TrueFalse ;ClipAttr _ee .ST_TrueFalse ;};func (_bcbfd *OfcDiagram )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078\u006d\u006cn\u0073"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u006f"},Value :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0072"},Value :"\u0068\u0074\u0074\u0070\u003a\u002f/\u0073\u0063\u0068\u0065\u006da\u0073\u002e\u006f\u0070\u0065\u006ex\u006d\u006c\u0066\u006f\u0072m\u0061\u0074\u0073\u002e\u006f\u0072\u0067\u002f\u006f\u0066\u0066\u0069c\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002fr\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0073h\u0069\u0070\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\u0073\u003a\u0073"},Value :"\u0068\u0074\u0074\u0070\u003a/\u002f\u0073\u0063\u0068\u0065m\u0061s\u002e\u006f\u0070\u0065\u006e\u0078\u006d\u006c\u0066\u006f\u0072\u006d\u0061\u0074\u0073\u002e\u006f\u0072\u0067/\u006f\u0066\u0066\u0069\u0063\u0065\u0044\u006f\u0063\u0075\u006d\u0065\u006e\u0074\u002f\u0032\u0030\u0030\u0036\u002f\u0073\u0068\u0061\u0072e\u0064\u0054\u0079\u0070\u0065\u0073"});start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0078m\u006c\u006e\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_Ext and its children, prefixing error messages with path
|
|
|
|
func (_acbf *AG_Ext )ValidateWithPath (path string )error {if _acbf .ExtAttr ==ST_ExtUnset {return _e .Errorf ("\u0025\u0073\u002fE\u0078\u0074\u0041\u0074t\u0072\u0020\u0069\u0073\u0020\u0061\u0020m\u0061\u006e\u0064\u0061\u0074\u006f\u0072\u0079\u0020\u0066\u0069\u0065\u006c\u0064",path );};if _bgdc :=_acbf .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bgdc !=nil {return _bgdc ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcColumn and its children
|
|
|
|
func (_accge *OfcColumn )Validate ()error {return _accge .ValidateWithPath ("\u004ff\u0063\u0043\u006f\u006c\u0075\u006dn");};func (_aceed *OfcST_ExtrusionRender )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_aceed =0;case "\u0073\u006f\u006ci\u0064":*_aceed =1;case "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de":*_aceed =2;case "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065":*_aceed =3;};return nil ;};const (OfcST_FillTypeUnset OfcST_FillType =0;OfcST_FillTypeGradientCenter OfcST_FillType =1;OfcST_FillTypeSolid OfcST_FillType =2;OfcST_FillTypePattern OfcST_FillType =3;OfcST_FillTypeTile OfcST_FillType =4;OfcST_FillTypeFrame OfcST_FillType =5;OfcST_FillTypeGradientUnscaled OfcST_FillType =6;OfcST_FillTypeGradientRadial OfcST_FillType =7;OfcST_FillTypeGradient OfcST_FillType =8;OfcST_FillTypeBackground OfcST_FillType =9;);func NewOfcCT_IdMap ()*OfcCT_IdMap {_cdffgc :=&OfcCT_IdMap {};return _cdffgc };func (_ceggb *CT_RoundRect )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_acdge :=range start .Attr {if _acdge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_acdge .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_ceggb .UserdrawnAttr .UnmarshalXMLAttr (_acdge );continue ;};if _acdge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_acdge .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_gbdbc ,_fdfb :=_acdge .Value ,error (nil );if _fdfb !=nil {return _fdfb ;};_ceggb .BordertopcolorAttr =&_gbdbc ;continue ;};if _acdge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_acdge .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_ceggb .UserhiddenAttr .UnmarshalXMLAttr (_acdge );continue ;};if _acdge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_acdge .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ceggb .BulletAttr .UnmarshalXMLAttr (_acdge );continue ;};if _acdge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_acdge .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_ceggb .CliptowrapAttr .UnmarshalXMLAttr (_acdge );continue ;};if _acdge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_acdge .Name .Local =="\u0068\u0072"{_ceggb .HrAttr .UnmarshalXMLAttr (_acdge );continue ;};if _acdge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_acdge .Name .Local =="\u006f\u006c\u0065"{_ceggb .OleAttr .UnmarshalXMLAttr (_acdge );continue ;};if _acdge .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_acdge .Name .Local =="\u0068\u0072\u0073t\u0064"{_ceggb .Hr
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcOLEObject and its children, prefixing error messages with path
|
|
|
|
func (_acadc *OfcOLEObject )ValidateWithPath (path string )error {if _adfaf :=_acadc .OfcCT_OLEObject .ValidateWithPath (path );_adfaf !=nil {return _adfaf ;};return nil ;};func NewOfcExtrusion ()*OfcExtrusion {_dbea :=&OfcExtrusion {};_dbea .OfcCT_Extrusion =*NewOfcCT_Extrusion ();return _dbea ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_Fill and its children
|
|
|
|
func (_ace *AG_Fill )Validate ()error {return _ace .ValidateWithPath ("\u0041G\u005f\u0046\u0069\u006c\u006c");};func (_fbacc ST_ImageAspect )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_gefcc :=_ae .Attr {};_gefcc .Name =name ;switch _fbacc {case ST_ImageAspectUnset :_gefcc .Value ="";case ST_ImageAspectIgnore :_gefcc .Value ="\u0069\u0067\u006e\u006f\u0072\u0065";case ST_ImageAspectAtMost :_gefcc .Value ="\u0061\u0074\u004d\u006f\u0073\u0074";case ST_ImageAspectAtLeast :_gefcc .Value ="\u0061t\u004c\u0065\u0061\u0073\u0074";};return _gefcc ,nil ;};func NewPath ()*Path {_ccfdb :=&Path {};_ccfdb .CT_Path =*NewCT_Path ();return _ccfdb };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcExtrusion and its children
|
|
|
|
func (_dcdbg *OfcExtrusion )Validate ()error {return _dcdbg .ValidateWithPath ("\u004f\u0066\u0063E\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e");};func (_ddfge *OfcCT_Fill )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0066\u0069\u006c\u006c";};if _ddfge .TypeAttr !=OfcST_FillTypeUnset {_cecgg ,_cfcgbad :=_ddfge .TypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0074\u0079\u0070\u0065"});if _cfcgbad !=nil {return _cfcgbad ;};start .Attr =append (start .Attr ,_cecgg );};if _ddfge .ExtAttr !=ST_ExtUnset {_cdfaf ,_aagad :=_ddfge .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _aagad !=nil {return _aagad ;};start .Attr =append (start .Attr ,_cdfaf );};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};type ST_ImageAspect byte ;func (_bfeed *CT_Shadow )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u0073\u0068\u0061\u0064\u006f\u0077";};if _bfeed .OnAttr !=_ee .ST_TrueFalseUnset {_feddd ,_cgge :=_bfeed .OnAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u006e"});if _cgge !=nil {return _cgge ;};start .Attr =append (start .Attr ,_feddd );};if _bfeed .TypeAttr !=ST_ShadowTypeUnset {_adadd ,_efbfg :=_bfeed .TypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0074\u0079\u0070\u0065"});if _efbfg !=nil {return _efbfg ;};start .Attr =append (start .Attr ,_adadd );};if _bfeed .ObscuredAttr !=_ee .ST_TrueFalseUnset {_ceee ,_abcad :=_bfeed .ObscuredAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u0062\u0073\u0063\u0075\u0072\u0065\u0064"});if _abcad !=nil {return _abcad ;};start .Attr =append (start .Attr ,_ceee );};if _bfeed .ColorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006co\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_bfeed .ColorAttr )});};if _bfeed .OpacityAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_e .Sprintf ("\u0025\u0076",*_bfeed .OpacityAttr )});};if _bfeed .OffsetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u0066\u0066\u0073\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_bfeed .OffsetAttr )});};if _bfeed .Color2Attr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006f\u006c\u006f\u0072\u0032"},Value :_e .Sprintf ("\u0025\u0076",*_bfeed .Color2Attr )});};if _bfeed .Offset2Attr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006ff\u0066\u0073\u0065\u0074\u0032"},Value :_e .Sprintf ("\u0025\u0076",*_bfeed .Offset2Attr )});};if _bfeed .OriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u0072\u0069\u0067\u0069\u006e"},Value :_e .Sprintf ("\u0025\u0076",*_bfeed .OriginAttr )});};if _bfeed .MatrixAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006d\u0061\u0074\u0072\u0069\u0078"},Value :_e .Sprintf ("\u0025\u0076",*_bfeed .MatrixAttr )});};if _bfeed .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_bfeed .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcBottom and its children
|
|
|
|
func (_gaaba *OfcBottom )Validate ()error {return _gaaba .ValidateWithPath ("\u004ff\u0063\u0042\u006f\u0074\u0074\u006fm");};func (_acc *AG_Style )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_befg :=range start .Attr {if _befg .Name .Local =="\u0073\u0074\u0079l\u0065"{_dfac ,_dede :=_befg .Value ,error (nil );if _dede !=nil {return _dede ;};_acc .StyleAttr =&_dfac ;continue ;};};for {_bbg ,_fdac :=d .Token ();if _fdac !=nil {return _e .Errorf ("p\u0061r\u0073\u0069\u006e\u0067\u0020\u0041\u0047\u005fS\u0074\u0079\u006c\u0065: \u0025\u0073",_fdac );};if _efbg ,_cda :=_bbg .(_ae .EndElement );_cda &&_efbg .Name ==start .Name {break ;};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_H and its children
|
|
|
|
func (_bafd *CT_H )Validate ()error {return _bafd .ValidateWithPath ("\u0043\u0054\u005f\u0048")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_RelationTable and its children
|
|
|
|
func (_ffebc *OfcCT_RelationTable )Validate ()error {return _ffebc .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0054\u0061\u0062\u006c\u0065");};func (_agabe OfcST_CalloutPlacement )ValidateWithPath (path string )error {switch _agabe {case 0,1,2,3,4: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 (_agabe ));};return nil ;};func (_ffcdab *OfcST_ColorMode )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_ffcdab =0;case "\u0061\u0075\u0074\u006f":*_ffcdab =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_ffcdab =2;};return nil ;};func (_fdfd *AG_Type )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _fdfd .TypeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_fdfd .TypeAttr )});};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Diagram and its children, prefixing error messages with path
|
|
|
|
func (_edge *OfcCT_Diagram )ValidateWithPath (path string )error {if _eeceb :=_edge .AutoformatAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u0066\u006f\u0072\u006d\u0061\u0074\u0041\u0074\u0074\u0072");_eeceb !=nil {return _eeceb ;};if _fffgd :=_edge .ReverseAttr .ValidateWithPath (path +"\u002f\u0052\u0065v\u0065\u0072\u0073\u0065\u0041\u0074\u0074\u0072");_fffgd !=nil {return _fffgd ;};if _eeagda :=_edge .AutolayoutAttr .ValidateWithPath (path +"\u002fA\u0075t\u006f\u006c\u0061\u0079\u006f\u0075\u0074\u0041\u0074\u0074\u0072");_eeagda !=nil {return _eeagda ;};if _edge .Relationtable !=nil {if _acdbfc :=_edge .Relationtable .ValidateWithPath (path +"\u002f\u0052\u0065\u006c\u0061\u0074\u0069\u006f\u006et\u0061\u0062\u006c\u0065");_acdbfc !=nil {return _acdbfc ;};};if _dbaae :=_edge .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_dbaae !=nil {return _dbaae ;};return nil ;};func (_fcdab *CT_Textbox )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx";};if _fcdab .InsetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u006e\u0073e\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_fcdab .InsetAttr )});};if _fcdab .SingleclickAttr !=_ee .ST_TrueFalseUnset {_bcab ,_caffb :=_fcdab .SingleclickAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0073\u0069\u006e\u0067\u006c\u0065\u0063\u006c\u0069\u0063\u006b"});if _caffb !=nil {return _caffb ;};start .Attr =append (start .Attr ,_bcab );};if _fcdab .InsetmodeAttr !=OfcST_InsetModeUnset {_eefg ,_baaed :=_fcdab .InsetmodeAttr .MarshalXMLAttr (_ae .Name {Local :"o\u003a\u0069\u006e\u0073\u0065\u0074\u006d\u006f\u0064\u0065"});if _baaed !=nil {return _baaed ;};start .Attr =append (start .Attr ,_eefg );};if _fcdab .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_fcdab .IdAttr )});};if _fcdab .StyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_fcdab .StyleAttr )});};e .EncodeToken (start );if _fcdab .TxbxContent !=nil {_bfegb :=_ae .StartElement {Name :_ae .Name {Local :"\u0077\u003a\u0074\u0078\u0062\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074"}};e .EncodeElement (_fcdab .TxbxContent ,_bfegb );};if _fcdab .Any !=nil {_fcdab .Any .MarshalXML (e ,_ae .StartElement {});};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_bdcdc OfcST_BWMode )ValidateWithPath (path string )error {switch _bdcdc {case 0,1,2,3,4,5,6,7,8,9,10,11,12: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 (_bdcdc ));};return nil ;};func (_fcada *CT_Image )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_eece :=range start .Attr {if _eece .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eece .Name .Local =="d\u0067\u006d\u006e\u006f\u0064\u0065\u006b\u0069\u006e\u0064"{_dbga ,_ceffa :=_aa .ParseInt (_eece .Value ,10,64);if _ceffa !=nil {return _ceffa ;};_fcada .DgmnodekindAttr =&_dbga ;continue ;};if _eece .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eece .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_fcada .BulletAttr .UnmarshalXMLAttr (_eece );continue ;};if _eece .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_ee
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_SignatureLine and its children
|
|
|
|
func (_ceddg *OfcCT_SignatureLine )Validate ()error {return _ceddg .ValidateWithPath ("\u004f\u0066\u0063\u0043T_\u0053\u0069\u0067\u006e\u0061\u0074\u0075\u0072\u0065\u004c\u0069\u006e\u0065");};func (_cfffe *CT_Path )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u0070\u0061\u0074\u0068";};if _cfffe .VAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0076"},Value :_e .Sprintf ("\u0025\u0076",*_cfffe .VAttr )});};if _cfffe .LimoAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006c\u0069\u006d\u006f"},Value :_e .Sprintf ("\u0025\u0076",*_cfffe .LimoAttr )});};if _cfffe .TextboxrectAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"t\u0065\u0078\u0074\u0062\u006f\u0078\u0072\u0065\u0063\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_cfffe .TextboxrectAttr )});};if _cfffe .FillokAttr !=_ee .ST_TrueFalseUnset {_fcgf ,_ggbf :=_cfffe .FillokAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u006c\u006c\u006f\u006b"});if _ggbf !=nil {return _ggbf ;};start .Attr =append (start .Attr ,_fcgf );};if _cfffe .StrokeokAttr !=_ee .ST_TrueFalseUnset {_cbdee ,_dcgfc :=_cfffe .StrokeokAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073\u0074\u0072\u006f\u006b\u0065\u006f\u006b"});if _dcgfc !=nil {return _dcgfc ;};start .Attr =append (start .Attr ,_cbdee );};if _cfffe .ShadowokAttr !=_ee .ST_TrueFalseUnset {_bbfa ,_acdgd :=_cfffe .ShadowokAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073\u0068\u0061\u0064\u006f\u0077\u006f\u006b"});if _acdgd !=nil {return _acdgd ;};start .Attr =append (start .Attr ,_bbfa );};if _cfffe .ArrowokAttr !=_ee .ST_TrueFalseUnset {_cbac ,_gefe :=_cfffe .ArrowokAttr .MarshalXMLAttr (_ae .Name {Local :"\u0061r\u0072\u006f\u0077\u006f\u006b"});if _gefe !=nil {return _gefe ;};start .Attr =append (start .Attr ,_cbac );};if _cfffe .GradientshapeokAttr !=_ee .ST_TrueFalseUnset {_cgfad ,_aebfb :=_cfffe .GradientshapeokAttr .MarshalXMLAttr (_ae .Name {Local :"\u0067r\u0061d\u0069\u0065\u006e\u0074\u0073\u0068\u0061\u0070\u0065\u006f\u006b"});if _aebfb !=nil {return _aebfb ;};start .Attr =append (start .Attr ,_cgfad );};if _cfffe .TextpathokAttr !=_ee .ST_TrueFalseUnset {_efece ,_dfabdb :=_cfffe .TextpathokAttr .MarshalXMLAttr (_ae .Name {Local :"\u0074\u0065\u0078\u0074\u0070\u0061\u0074\u0068\u006f\u006b"});if _dfabdb !=nil {return _dfabdb ;};start .Attr =append (start .Attr ,_efece );};if _cfffe .InsetpenokAttr !=_ee .ST_TrueFalseUnset {_eead ,_caeba :=_cfffe .InsetpenokAttr .MarshalXMLAttr (_ae .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u006f\u006b"});if _caeba !=nil {return _caeba ;};start .Attr =append (start .Attr ,_eead );};if _cfffe .ConnecttypeAttr !=OfcST_ConnectTypeUnset {_afaad ,_bggfb :=_cfffe .ConnecttypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u0074\u0079\u0070\u0065"});if _bggfb !=nil {return _bggfb ;};start .Attr =append (start .Attr ,_afaad );};if _cfffe .ConnectlocsAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003a\u0063\u006f\u006e\u006e\u0065\u0063\u0074\u006c\u006f\u0063\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cfffe .ConnectlocsAttr )});};if _cfffe .ConnectanglesAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u0061\u006e\u0067\u006c\u0065\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_cfffe .ConnectanglesAttr )});};if _cfffe .ExtrusionokAttr !=_ee .ST_TrueFalseUnset {_bdcf ,_efcaf :=_cfffe .ExtrusionokAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e\u006f\u006b"});if _efcaf !=nil {return _efcaf ;};start .Attr =append (start .Attr ,_bdcf );};if _cfffe .IdAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064"},Value :_e .Sprintf ("\u0025\u0076",*_cfffe .IdAttr )});};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Shadow and its children, prefixing error messages with path
|
|
|
|
func (_dafcg *Shadow )ValidateWithPath (path string )error {if _ebfab :=_dafcg .CT_Shadow .ValidateWithPath (path );_ebfab !=nil {return _ebfab ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Curve and its children
|
|
|
|
func (_bfbcc *CT_Curve )Validate ()error {return _bfbcc .ValidateWithPath ("\u0043\u0054\u005f\u0043\u0075\u0072\u0076\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Textbox and its children, prefixing error messages with path
|
|
|
|
func (_eccba *CT_Textbox )ValidateWithPath (path string )error {if _fdebg :=_eccba .SingleclickAttr .ValidateWithPath (path +"\u002f\u0053i\u006e\u0067\u006ce\u0063\u006c\u0069\u0063\u006b\u0041\u0074\u0074\u0072");_fdebg !=nil {return _fdebg ;};if _dfad :=_eccba .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_dfad !=nil {return _dfad ;};if _eccba .TxbxContent !=nil {if _dagg :=_eccba .TxbxContent .ValidateWithPath (path +"\u002f\u0054\u0078b\u0078\u0043\u006f\u006e\u0074\u0065\u006e\u0074");_dagg !=nil {return _dagg ;};};return nil ;};func (_cbced OfcST_ScreenSize )String ()string {switch _cbced {case 0:return "";case 1:return "\u00354\u0034\u002c\u0033\u0037\u0036";case 2:return "\u00364\u0030\u002c\u0034\u0038\u0030";case 3:return "\u00372\u0030\u002c\u0035\u0031\u0032";case 4:return "\u00380\u0030\u002c\u0036\u0030\u0030";case 5:return "\u0031\u0030\u0032\u0034\u002c\u0037\u0036\u0038";case 6:return "\u0031\u0031\u0035\u0032\u002c\u0038\u0036\u0032";};return "";};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Background and its children, prefixing error messages with path
|
|
|
|
func (_acff *CT_Background )ValidateWithPath (path string )error {if _aegd :=_acff .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_aegd !=nil {return _aegd ;};if _ffee :=_acff .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_ffee !=nil {return _ffee ;};if _cabe :=_acff .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_cabe !=nil {return _cabe ;};if _gfdd :=_acff .TargetscreensizeAttr .ValidateWithPath (path +"/\u0054\u0061\u0072\u0067et\u0073c\u0072\u0065\u0065\u006e\u0073i\u007a\u0065\u0041\u0074\u0074\u0072");_gfdd !=nil {return _gfdd ;};if _acff .Fill !=nil {if _ddeca :=_acff .Fill .ValidateWithPath (path +"\u002f\u0046\u0069l\u006c");_ddeca !=nil {return _ddeca ;};};if _faef :=_acff .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_faef !=nil {return _faef ;};return nil ;};func NewCT_Image ()*CT_Image {_gaecf :=&CT_Image {};return _gaecf };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_ShapeAttributes and its children, prefixing error messages with path
|
|
|
|
func (_dgef *AG_ShapeAttributes )ValidateWithPath (path string )error {if _acbg :=_dgef .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_acbg !=nil {return _acbg ;};if _fbgad :=_dgef .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_fbgad !=nil {return _fbgad ;};if _dgeb :=_dgef .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_dgeb !=nil {return _dgeb ;};return nil ;};func (_ebade *OfcCT_Diagram )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_geace :=range start .Attr {if _geace .Name .Local =="\u0064\u0067\u006d\u0073\u0074\u0079\u006c\u0065"{_gafba ,_cgbc :=_aa .ParseInt (_geace .Value ,10,64);if _cgbc !=nil {return _cgbc ;};_ebade .DgmstyleAttr =&_gafba ;continue ;};if _geace .Name .Local =="\u0061\u0075\u0074\u006f\u0066\u006f\u0072\u006d\u0061\u0074"{_ebade .AutoformatAttr .UnmarshalXMLAttr (_geace );continue ;};if _geace .Name .Local =="\u0072e\u0076\u0065\u0072\u0073\u0065"{_ebade .ReverseAttr .UnmarshalXMLAttr (_geace );continue ;};if _geace .Name .Local =="\u0061\u0075\u0074\u006f\u006c\u0061\u0079\u006f\u0075\u0074"{_ebade .AutolayoutAttr .UnmarshalXMLAttr (_geace );continue ;};if _geace .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065x"{_ccdcf ,_feffc :=_aa .ParseInt (_geace .Value ,10,64);if _feffc !=nil {return _feffc ;};_ebade .DgmscalexAttr =&_ccdcf ;continue ;};if _geace .Name .Local =="\u0064g\u006d\u0073\u0063\u0061\u006c\u0065y"{_ebcdeg ,_fabg :=_aa .ParseInt (_geace .Value ,10,64);if _fabg !=nil {return _fabg ;};_ebade .DgmscaleyAttr =&_ebcdeg ;continue ;};if _geace .Name .Local =="d\u0067\u006d\u0066\u006f\u006e\u0074\u0073\u0069\u007a\u0065"{_dbfd ,_agabd :=_aa .ParseInt (_geace .Value ,10,64);if _agabd !=nil {return _agabd ;};_ebade .DgmfontsizeAttr =&_dbfd ;continue ;};if _geace .Name .Local =="\u0063o\u006es\u0074\u0072\u0061\u0069\u006e\u0062\u006f\u0075\u006e\u0064\u0073"{_dbec ,_gecb :=_geace .Value ,error (nil );if _gecb !=nil {return _gecb ;};_ebade .ConstrainboundsAttr =&_dbec ;continue ;};if _geace .Name .Local =="\u0064\u0067m\u0062\u0061\u0073e\u0074\u0065\u0078\u0074\u0073\u0063\u0061\u006c\u0065"{_fgaac ,_aafa :=_aa .ParseInt (_geace .Value ,10,64);if _aafa !=nil {return _aafa ;};_ebade .DgmbasetextscaleAttr =&_fgaac ;continue ;};if _geace .Name .Local =="\u0065\u0078\u0074"{_ebade .ExtAttr .UnmarshalXMLAttr (_geace );continue ;};};_gdgge :for {_cfgbbe ,_cddfa :=d .Token ();if _cddfa !=nil {return _cddfa ;};switch _egcfe :=_cfgbbe .(type ){case _ae .StartElement :switch _egcfe .Name {case _ae .Name {Space :"\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065",Local :"\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065"}:_ebade .Relationtable =NewOfcCT_RelationTable ();if _bggef :=d .DecodeElement (_ebade .Relationtable ,&_egcfe );_bggef !=nil {return _bggef ;};default:_bb .Log .Debug ("\u0073\u006b\u0069\u0070\u0070\u0069\u006e\u0067 \u0075\u006e\u0073up\u0070\u006f\u0072\u0074\u0065\u0064 \u0065\u006c\u0065\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u004f\u0066\u0063\u0043T\u005f\u0044\u0069\u0061\u0067\u0072\u0061\u006d \u0025\u0076",_egcfe .Name );if _cagda :=d .Skip ();_cagda !=nil {return _cagda ;};};case _ae .EndElement :break _gdgge ;case _ae .CharData :};};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_Style and its children
|
|
|
|
func (_dadg *AG_Style )Validate ()error {return _dadg .ValidateWithPath ("\u0041\u0047\u005f\u0053\u0074\u0079\u006c\u0065");};func (_aedb *AG_AllShapeAttributes )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if _aedb .OpacityAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006fp\u0061\u0063\u0069\u0074\u0079"},Value :_e .Sprintf ("\u0025\u0076",*_aedb .OpacityAttr )});};if _aedb .StrokedAttr !=_ee .ST_TrueFalseUnset {_faa ,_gcd :=_aedb .StrokedAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073t\u0072\u006f\u006b\u0065\u0064"});if _gcd !=nil {return _gcd ;};start .Attr =append (start .Attr ,_faa );};if _aedb .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_aedb .StrokecolorAttr )});};if _aedb .StrokeweightAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0072o\u006b\u0065\u0077\u0065\u0069\u0067\u0068\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_aedb .StrokeweightAttr )});};if _aedb .InsetpenAttr !=_ee .ST_TrueFalseUnset {_bac ,_bacc :=_aedb .InsetpenAttr .MarshalXMLAttr (_ae .Name {Local :"\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"});if _bacc !=nil {return _bacc ;};start .Attr =append (start .Attr ,_bac );};if _aedb .ChromakeyAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063h\u0072\u006f\u006d\u0061\u006b\u0065y"},Value :_e .Sprintf ("\u0025\u0076",*_aedb .ChromakeyAttr )});};if _aedb .FilledAttr !=_ee .ST_TrueFalseUnset {_agf ,_gcf :=_aedb .FilledAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u006c\u006c\u0065\u0064"});if _gcf !=nil {return _gcf ;};start .Attr =append (start .Attr ,_agf );};if _aedb .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_aedb .FillcolorAttr )});};if _aedb .SptAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006f\u003a\u0073p\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_aedb .SptAttr )});};if _aedb .ConnectortypeAttr !=OfcST_ConnectorTypeUnset {_ec ,_ed :=_aedb .ConnectortypeAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f:\u0063o\u006e\u006e\u0065\u0063\u0074\u006f\u0072\u0074\u0079\u0070\u0065"});if _ed !=nil {return _ed ;};start .Attr =append (start .Attr ,_ec );};if _aedb .BwmodeAttr !=OfcST_BWModeUnset {_bce ,_ddac :=_aedb .BwmodeAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u006d\u006f\u0064\u0065"});if _ddac !=nil {return _ddac ;};start .Attr =append (start .Attr ,_bce );};if _aedb .BwpureAttr !=OfcST_BWModeUnset {_fcfa ,_ecd :=_aedb .BwpureAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u0070\u0075\u0072\u0065"});if _ecd !=nil {return _ecd ;};start .Attr =append (start .Attr ,_fcfa );};if _aedb .BwnormalAttr !=OfcST_BWModeUnset {_eda ,_fab :=_aedb .BwnormalAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u0062\u0077\u006e\u006f\u0072\u006d\u0061\u006c"});if _fab !=nil {return _fab ;};start .Attr =append (start .Attr ,_eda );};if _aedb .ForcedashAttr !=_ee .ST_TrueFalseUnset {_gfce ,_bfe :=_aedb .ForcedashAttr .MarshalXMLAttr (_ae .Name {Local :"o\u003a\u0066\u006f\u0072\u0063\u0065\u0064\u0061\u0073\u0068"});if _bfe !=nil {return _bfe ;};start .Attr =append (start .Attr ,_gfce );};if _aedb .OleiconAttr !=_ee .ST_TrueFalseUnset {_ddg ,_ccb :=_aedb .OleiconAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f:\u006f\u006c\u0065\u0069\u0063\u006fn"});if _ccb !=nil {return _ccb ;};start .Attr =append (start .Attr ,_ddg );};if _aedb .OleAttr !=_ee .ST_TrueFalseBlankUnset {_eee ,_abdg :=_aedb .OleAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003a\u006fl\u0065"});if _abdg !=nil {return _abdg ;};start .Attr =append (start .Attr ,_eee );};if _aedb .PreferrelativeAttr !=_ee .ST_TrueFalseUnset {_adf ,_gcg :=_aedb .PreferrelativeAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u003ap\u0072\u0065\u0066e\u0072\u0072
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Rect and its children, prefixing error messages with path
|
|
|
|
func (_cagbc *Rect )ValidateWithPath (path string )error {if _ccgcd :=_cagbc .CT_Rect .ValidateWithPath (path );_ccgcd !=nil {return _ccgcd ;};return nil ;};
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_ImageAttributes and its children, prefixing error messages with path
|
|
|
|
func (_fbf *AG_ImageAttributes )ValidateWithPath (path string )error {if _dgc :=_fbf .GrayscaleAttr .ValidateWithPath (path +"\u002f\u0047\u0072\u0061\u0079\u0073\u0063\u0061\u006ce\u0041\u0074\u0074\u0072");_dgc !=nil {return _dgc ;};if _fed :=_fbf .BilevelAttr .ValidateWithPath (path +"\u002f\u0042\u0069l\u0065\u0076\u0065\u006c\u0041\u0074\u0074\u0072");_fed !=nil {return _fed ;};return nil ;};func (_dbeed OfcST_ExtrusionRender )String ()string {switch _dbeed {case 0:return "";case 1:return "\u0073\u006f\u006ci\u0064";case 2:return "\u0077i\u0072\u0065\u0046\u0072\u0061\u006de";case 3:return "\u0062\u006f\u0075n\u0064\u0069\u006e\u0067\u0043\u0075\u0062\u0065";};return "";};type OfcST_HrAlign byte ;func (_ccgdf ST_StrokeArrowWidth )ValidateWithPath (path string )error {switch _ccgdf {case 0,1,2,3: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 (_ccgdf ));};return nil ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_TextPath and its children, prefixing error messages with path
|
|
|
|
func (_cebf *CT_TextPath )ValidateWithPath (path string )error {if _ccdbb :=_cebf .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_ccdbb !=nil {return _ccdbb ;};if _edfcg :=_cebf .FitshapeAttr .ValidateWithPath (path +"\u002f\u0046\u0069\u0074\u0073\u0068\u0061\u0070\u0065\u0041\u0074\u0074\u0072");_edfcg !=nil {return _edfcg ;};if _aaaba :=_cebf .FitpathAttr .ValidateWithPath (path +"\u002f\u0046\u0069t\u0070\u0061\u0074\u0068\u0041\u0074\u0074\u0072");_aaaba !=nil {return _aaaba ;};if _gcggb :=_cebf .TrimAttr .ValidateWithPath (path +"\u002fT\u0072\u0069\u006d\u0041\u0074\u0074r");_gcggb !=nil {return _gcggb ;};if _gbcba :=_cebf .XscaleAttr .ValidateWithPath (path +"/\u0058\u0073\u0063\u0061\u006c\u0065\u0041\u0074\u0074\u0072");_gbcba !=nil {return _gbcba ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_ColorMru and its children
|
|
|
|
func (_cadbf *OfcCT_ColorMru )Validate ()error {return _cadbf .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006co\u0072\u004d\u0072\u0075");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_Callout and its children, prefixing error messages with path
|
|
|
|
func (_gaeded *OfcCT_Callout )ValidateWithPath (path string )error {if _egfgf :=_gaeded .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_egfgf !=nil {return _egfgf ;};if _afcec :=_gaeded .AngleAttr .ValidateWithPath (path +"\u002f\u0041\u006e\u0067\u006c\u0065\u0041\u0074\u0074\u0072");_afcec !=nil {return _afcec ;};if _ggbed :=_gaeded .DropautoAttr .ValidateWithPath (path +"\u002f\u0044\u0072\u006f\u0070\u0061\u0075\u0074\u006f\u0041\u0074\u0074\u0072");_ggbed !=nil {return _ggbed ;};if _ddfbd :=_gaeded .LengthspecifiedAttr .ValidateWithPath (path +"/\u004ce\u006e\u0067\u0074\u0068\u0073\u0070\u0065\u0063i\u0066\u0069\u0065\u0064At\u0074\u0072");_ddfbd !=nil {return _ddfbd ;};if _effbb :=_gaeded .AccentbarAttr .ValidateWithPath (path +"\u002f\u0041\u0063\u0063\u0065\u006e\u0074\u0062\u0061r\u0041\u0074\u0074\u0072");_effbb !=nil {return _effbb ;};if _gecd :=_gaeded .TextborderAttr .ValidateWithPath (path +"\u002fT\u0065x\u0074\u0062\u006f\u0072\u0064\u0065\u0072\u0041\u0074\u0074\u0072");_gecd !=nil {return _gecd ;};if _eacfb :=_gaeded .MinusxAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0078\u0041\u0074\u0074\u0072");_eacfb !=nil {return _eacfb ;};if _bgab :=_gaeded .MinusyAttr .ValidateWithPath (path +"/\u004d\u0069\u006e\u0075\u0073\u0079\u0041\u0074\u0074\u0072");_bgab !=nil {return _bgab ;};if _ggaca :=_gaeded .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_ggaca !=nil {return _ggaca ;};return nil ;};const (OfcST_ScreenSizeUnset OfcST_ScreenSize =0;OfcST_ScreenSize544x376 OfcST_ScreenSize =1;OfcST_ScreenSize640x480 OfcST_ScreenSize =2;OfcST_ScreenSize720x512 OfcST_ScreenSize =3;OfcST_ScreenSize800x600 OfcST_ScreenSize =4;OfcST_ScreenSize1024x768 OfcST_ScreenSize =5;OfcST_ScreenSize1152x862 OfcST_ScreenSize =6;);func (_ffggb *OfcCT_RelationTable )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0072e\u006c\u0061\u0074\u0069\u006f\u006e\u0074\u0061\u0062\u006c\u0065";};if _ffggb .ExtAttr !=ST_ExtUnset {_edaba ,_ebbab :=_ffggb .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _ebbab !=nil {return _ebbab ;};start .Attr =append (start .Attr ,_edaba );};e .EncodeToken (start );if _ffggb .Rel !=nil {_cdecae :=_ae .StartElement {Name :_ae .Name {Local :"\u006f\u003a\u0072e\u006c"}};for _ ,_cdcfc :=range _ffggb .Rel {e .EncodeElement (_cdcfc ,_cdecae );};};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_ggacd *OfcSkew )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_ggacd .OfcCT_Skew =*NewOfcCT_Skew ();for _ ,_addbg :=range start .Attr {if _addbg .Name .Local =="\u0069\u0064"{_fdcage ,_gedbc :=_addbg .Value ,error (nil );if _gedbc !=nil {return _gedbc ;};_ggacd .IdAttr =&_fdcage ;continue ;};if _addbg .Name .Local =="\u006f\u006e"{_ggacd .OnAttr .UnmarshalXMLAttr (_addbg );continue ;};if _addbg .Name .Local =="\u006f\u0066\u0066\u0073\u0065\u0074"{_caebc ,_fcdaeb :=_addbg .Value ,error (nil );if _fcdaeb !=nil {return _fcdaeb ;};_ggacd .OffsetAttr =&_caebc ;continue ;};if _addbg .Name .Local =="\u006f\u0072\u0069\u0067\u0069\u006e"{_gaefc ,_fcbcd :=_addbg .Value ,error (nil );if _fcbcd !=nil {return _fcbcd ;};_ggacd .OriginAttr =&_gaefc ;continue ;};if _addbg .Name .Local =="\u006d\u0061\u0074\u0072\u0069\u0078"{_cbcgd ,_bgfcb :=_addbg .Value ,error (nil );if _bgfcb !=nil {return _bgfcb ;};_ggacd .MatrixAttr =&_cbcgd ;continue ;};if _addbg .Name .Local =="\u0065\u0078\u0074"{_ggacd .ExtAttr .UnmarshalXMLAttr (_addbg );continue ;};};for {_bfgdb ,_dabge :=d .Token ();if _dabge !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0053\u006b\u0065\u0077\u003a\u0020\u0025\u0073",_dabge );};if _bacff ,_eeffd :=_bfgdb .(_ae .EndElement );_eeffd &&_bacff .Name ==start .Name {break ;};};return nil ;};func (_accd *OfcCT_Extrusion )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_geba :=range start .Attr {if _geba .Name .Local =="\u0063o\u006c\u006f\u0072\u00
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_F and its children
|
|
|
|
func (_dbegc *CT_F )Validate ()error {return _dbegc .ValidateWithPath ("\u0043\u0054\u005f\u0046")};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Textbox and its children
|
|
|
|
func (_dcaf *CT_Textbox )Validate ()error {return _dcaf .ValidateWithPath ("\u0043\u0054\u005f\u0054\u0065\u0078\u0074\u0062\u006f\u0078");};func (_fbccgb ST_StrokeArrowLength )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_fbccgb .String (),start );};func (_gaddg OfcST_ColorMode )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_gaddg .String (),start );};func NewOfcCT_SignatureLine ()*OfcCT_SignatureLine {_ccede :=&OfcCT_SignatureLine {};return _ccede };type AG_CoreAttributes struct{HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;};func (_cegbgb *OfcCT_EquationXml )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0065\u0071\u0075\u0061\u0074\u0069\u006f\u006e\u0078\u006d\u006c";};if _cegbgb .ContentTypeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_cegbgb .ContentTypeAttr )});};e .EncodeToken (start );if _cegbgb .Any !=nil {_cegbgb .Any .MarshalXML (e ,_ae .StartElement {});};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func (_becg *CT_PolyLine )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_cgege :=range start .Attr {if _cgege .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgege .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_becg .UserdrawnAttr .UnmarshalXMLAttr (_cgege );continue ;};if _cgege .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgege .Name .Local =="\u0063\u006c\u0069\u0070"{_becg .ClipAttr .UnmarshalXMLAttr (_cgege );continue ;};if _cgege .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgege .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_becg .UserhiddenAttr .UnmarshalXMLAttr (_cgege );continue ;};if _cgege .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgege .Name .Local =="\u0069n\u0073\u0065\u0074\u006d\u006f\u0064e"{_becg .InsetmodeAttr .UnmarshalXMLAttr (_cgege );continue ;};if _cgege .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgege .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_becg .BulletAttr .UnmarshalXMLAttr (_cgege );continue ;};if _cgege .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cgege .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_becg .PreferrelativeAttr .UnmarshalXMLAttr (_cgege );continue ;};if _cgege .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_c
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Shapetype and its children, prefixing error messages with path
|
|
|
|
func (_gabbg *Shapetype )ValidateWithPath (path string )error {if _dagce :=_gabbg .CT_Shapetype .ValidateWithPath (path );_dagce !=nil {return _dagce ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcColumn and its children, prefixing error messages with path
|
|
|
|
func (_dfbae *OfcColumn )ValidateWithPath (path string )error {if _ddfef :=_dfbae .OfcCT_StrokeChild .ValidateWithPath (path );_ddfef !=nil {return _ddfef ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_RegroupTable and its children
|
|
|
|
func (_dedcc *OfcCT_RegroupTable )Validate ()error {return _dedcc .ValidateWithPath ("\u004ff\u0063C\u0054\u005f\u0052\u0065\u0067r\u006f\u0075p\u0054\u0061\u0062\u006c\u0065");};func (_gcddc *Roundrect )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_gcddc .CT_RoundRect =*NewCT_RoundRect ();for _ ,_fgfbd :=range start .Attr {if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_gcddc .UserdrawnAttr .UnmarshalXMLAttr (_fgfbd );continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_agdfc ,_acggb :=_fgfbd .Value ,error (nil );if _acggb !=nil {return _acggb ;};_gcddc .BordertopcolorAttr =&_agdfc ;continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_gcddc .UserhiddenAttr .UnmarshalXMLAttr (_fgfbd );continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gcddc .BulletAttr .UnmarshalXMLAttr (_fgfbd );continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_gcddc .CliptowrapAttr .UnmarshalXMLAttr (_fgfbd );continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0068\u0072"{_gcddc .HrAttr .UnmarshalXMLAttr (_fgfbd );continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u006f\u006c\u0065"{_gcddc .OleAttr .UnmarshalXMLAttr (_fgfbd );continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0068\u0072\u0073t\u0064"{_gcddc .HrstdAttr .UnmarshalXMLAttr (_fgfbd );continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0073\u0070\u0069\u0064"{_dcbac ,_adfbb :=_fgfbd .Value ,error (nil );if _adfbb !=nil {return _adfbb ;};_gcddc .SpidAttr =&_dcbac ;continue ;};if _fgfbd .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fgfbd .Name .Local =="\u0
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Shape and its children, prefixing error messages with path
|
|
|
|
func (_fgfdb *Shape )ValidateWithPath (path string )error {if _cgdfc :=_fgfdb .CT_Shape .ValidateWithPath (path );_cgdfc !=nil {return _cgdfc ;};return nil ;};func (_egdcc OfcST_FillType )String ()string {switch _egdcc {case 0:return "";case 1:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072";case 2:return "\u0073\u006f\u006ci\u0064";case 3:return "\u0070a\u0074\u0074\u0065\u0072\u006e";case 4:return "\u0074\u0069\u006c\u0065";case 5:return "\u0066\u0072\u0061m\u0065";case 6:return "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064";case 7:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c";case 8:return "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074";case 9:return "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064";};return "";};func (_afbda *ST_Ext )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_afbda =0;case "\u0076\u0069\u0065\u0077":*_afbda =1;case "\u0065\u0064\u0069\u0074":*_afbda =2;case "\u0062a\u0063k\u0077\u0061\u0072\u0064\u0043o\u006d\u0070a\u0074\u0069\u0062\u006c\u0065":*_afbda =3;};return nil ;};func (_bcfge OfcST_DiagramLayout )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_bcfge .String (),start );};func (_bdaeg OfcST_CalloutPlacement )String ()string {switch _bdaeg {case 0:return "";case 1:return "\u0074\u006f\u0070";case 2:return "\u0063\u0065\u006e\u0074\u0065\u0072";case 3:return "\u0062\u006f\u0074\u0074\u006f\u006d";case 4:return "\u0075\u0073\u0065\u0072";};return "";};func (_fcaef *Curve )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_fcaef .CT_Curve =*NewCT_Curve ();for _ ,_eagef :=range start .Attr {if _eagef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eagef .Name .Local =="\u0061\u006c\u006co\u0077\u006f\u0076\u0065\u0072\u006c\u0061\u0070"{_fcaef .AllowoverlapAttr .UnmarshalXMLAttr (_eagef );continue ;};if _eagef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eagef .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_dgcdba ,_daeee :=_aa .ParseInt (_eagef .Value ,10,64);if _daeee !=nil {return _daeee ;};_fcaef .RegroupidAttr =&_dgcdba ;continue ;};if _eagef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eagef .Name .Local =="\u0064g\u006d\u006c\u0061\u0079\u006f\u0075t"{_fcaef .DgmlayoutAttr .UnmarshalXMLAttr (_eagef );continue ;};if _eagef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eagef .Name .Local =="\u0064\u006f\u0075\u0062\u006c\u0065\u0063\u006c\u0069\u0063\u006b\u006eo\u0074\u0069\u0066\u0079"{_fcaef .DoubleclicknotifyAttr .UnmarshalXMLAttr (_eagef );continue ;};if _eagef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_eagef .Name .Local =="\u0070\u0072\u0065\u0066\u0065\u0072\u0072\u0065\u006ca\u0074\u0069\u0076\u0065"{_fcaef .PreferrelativeAttr .UnmarshalXMLAttr (_eagef );continue ;};if _eagef .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ClipPath and its children, prefixing error messages with path
|
|
|
|
func (_fcdagb *OfcCT_ClipPath )ValidateWithPath (path string )error {return nil };func (_dfabff *OfcST_FillType )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_dfabff =0;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072":*_dfabff =1;case "\u0073\u006f\u006ci\u0064":*_dfabff =2;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_dfabff =3;case "\u0074\u0069\u006c\u0065":*_dfabff =4;case "\u0066\u0072\u0061m\u0065":*_dfabff =5;case "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064":*_dfabff =6;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_dfabff =7;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_dfabff =8;case "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064":*_dfabff =9;};return nil ;};func (_gegab OfcST_HrAlign )ValidateWithPath (path string )error {switch _gegab {case 0,1,2,3: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 (_gegab ));};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcTop and its children, prefixing error messages with path
|
|
|
|
func (_edfad *OfcTop )ValidateWithPath (path string )error {if _cefea :=_edfad .OfcCT_StrokeChild .ValidateWithPath (path );_cefea !=nil {return _cefea ;};return nil ;};func (_gdebbc *Line )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_gdebbc .CT_Line =*NewCT_Line ();for _ ,_fbeaa :=range start .Attr {if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0075s\u0065\u0072\u0064\u0072\u0061\u0077n"{_gdebbc .UserdrawnAttr .UnmarshalXMLAttr (_fbeaa );continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0062\u0075\u0074\u0074\u006f\u006e"{_gdebbc .ButtonAttr .UnmarshalXMLAttr (_fbeaa );continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0064\u0067\u006dl\u0061\u0079\u006f\u0075\u0074\u006d\u0072\u0075"{_gdebbc .DgmlayoutmruAttr .UnmarshalXMLAttr (_fbeaa );continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0075\u0073\u0065\u0072\u0068\u0069\u0064\u0064\u0065\u006e"{_gdebbc .UserhiddenAttr .UnmarshalXMLAttr (_fbeaa );continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0063\u006c\u0069\u0070\u0074\u006f\u0077\u0072\u0061\u0070"{_gdebbc .CliptowrapAttr .UnmarshalXMLAttr (_fbeaa );continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_gdebbc .BulletAttr .UnmarshalXMLAttr (_fbeaa );continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u006f\u006c\u0065"{_gdebbc .OleAttr .UnmarshalXMLAttr (_fbeaa );continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0068\u0072"{_gdebbc .HrAttr .UnmarshalXMLAttr (_fbeaa );continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0073\u0070\u0069\u0064"{_bagbd ,_cecb :=_fbeaa .Value ,error (nil );if _cecb !=nil {return _cecb ;};_gdebbc .SpidAttr =&_bagbd ;continue ;};if _fbeaa .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_fbeaa .Name .Local =="\u0068\u0072\u0073t\u0064"{_gdebbc .HrstdAttr .UnmarshalXMLAttr (_fbeaa );continue
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_EquationXml and its children, prefixing error messages with path
|
|
|
|
func (_ffeac *OfcCT_EquationXml )ValidateWithPath (path string )error {return nil };func NewOfcCT_StrokeChild ()*OfcCT_StrokeChild {_eccbff :=&OfcCT_StrokeChild {};return _eccbff };func (_abcec *OfcFill )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_abcec .OfcCT_Fill =*NewOfcCT_Fill ();for _ ,_aabbe :=range start .Attr {if _aabbe .Name .Local =="\u0074\u0079\u0070\u0065"{_abcec .TypeAttr .UnmarshalXMLAttr (_aabbe );continue ;};if _aabbe .Name .Local =="\u0065\u0078\u0074"{_abcec .ExtAttr .UnmarshalXMLAttr (_aabbe );continue ;};};for {_afcdd ,_fddagb :=d .Token ();if _fddagb !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0046\u0069\u006c\u006c\u003a\u0020\u0025\u0073",_fddagb );};if _aacgg ,_bfbdf :=_afcdd .(_ae .EndElement );_bfbdf &&_aacgg .Name ==start .Name {break ;};};return nil ;};func (_abceb *CT_Handles )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_cdgd :for {_aadge ,_fbbb :=d .Token ();if _fbbb !=nil {return _fbbb ;};switch _bafbd :=_aadge .(type ){case _ae .StartElement :switch _bafbd .Name {case _ae .Name {Space :"\u0075\u0072n\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006d\u0069\u0063\u0072\u006f\u0073\u006f\u0066\u0074\u002d\u0063\u006f\u006d:v\u006d\u006c",Local :"\u0068"}:_gabd :=NewCT_H ();if _egba :=d .DecodeElement (_gabd ,&_bafbd );_egba !=nil {return _egba ;};_abceb .H =append (_abceb .H ,_gabd );default:_bb .Log .Debug ("\u0073k\u0069\u0070p\u0069\u006e\u0067 \u0075\u006e\u0073\u0075\u0070\u0070\u006fr\u0074\u0065\u0064\u0020\u0065\u006ce\u006d\u0065\u006e\u0074\u0020\u006f\u006e\u0020\u0043\u0054\u005fH\u0061\u006e\u0064\u006c\u0065\u0073\u0020\u0025\u0076",_bafbd .Name );if _acbag :=d .Skip ();_acbag !=nil {return _acbag ;};};case _ae .EndElement :break _cdgd ;case _ae .CharData :};};return nil ;};func (_fdgef *ST_FillMethod )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_fdgef =0;case "\u006e\u006f\u006e\u0065":*_fdgef =1;case "\u006c\u0069\u006e\u0065\u0061\u0072":*_fdgef =2;case "\u0073\u0069\u0067m\u0061":*_fdgef =3;case "\u0061\u006e\u0079":*_fdgef =4;case "\u006c\u0069\u006ee\u0061\u0072\u0020\u0073\u0069\u0067\u006d\u0061":*_fdgef =5;};return nil ;};func (_dacbf OfcST_ColorMode )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_fbgfg :=_ae .Attr {};_fbgfg .Name =name ;switch _dacbf {case OfcST_ColorModeUnset :_fbgfg .Value ="";case OfcST_ColorModeAuto :_fbgfg .Value ="\u0061\u0075\u0074\u006f";case OfcST_ColorModeCustom :_fbgfg .Value ="\u0063\u0075\u0073\u0074\u006f\u006d";};return _fbgfg ,nil ;};type OfcST_ConnectorType byte ;func (_abdd *CT_Rect )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u0076\u003a\u0072\u0065\u0063\u0074";};if _abdd .HrefAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0068\u0072\u0065\u0066"},Value :_e .Sprintf ("\u0025\u0076",*_abdd .HrefAttr )});};if _abdd .TargetAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0061\u0072\u0067\u0065\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_abdd .TargetAttr )});};if _abdd .ClassAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063\u006c\u0061s\u0073"},Value :_e .Sprintf ("\u0025\u0076",*_abdd .ClassAttr )});};if _abdd .TitleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0069\u0074l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_abdd .TitleAttr )});};if _abdd .AltAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0061\u006c\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_abdd .AltAttr )});};if _abdd .CoordsizeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0063o\u006f\u0072\u0064\u0073\u0069\u007ae"},Value :_e .Sprintf ("\u0025\u0076",*_abdd .CoordsizeAttr )});};if _abdd .CoordoriginAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"c\u006f\u006f\u0072\u0064\u006f\u0072\u0069\u0067\u0069\u006e"},Value
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcComplex and its children, prefixing error messages with path
|
|
|
|
func (_cdgaeb *OfcComplex )ValidateWithPath (path string )error {if _cecbb :=_cdgaeb .OfcCT_Complex .ValidateWithPath (path );_cecbb !=nil {return _cecbb ;};return nil ;};type OfcST_ConnectType byte ;func (_affea *OfcST_OLEDrawAspect )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_affea =0;case "\u0043o\u006e\u0074\u0065\u006e\u0074":*_affea =1;case "\u0049\u0063\u006f\u006e":*_affea =2;};return nil ;};func (_bbdce *OfcCT_ColorMru )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_ggaea :=range start .Attr {if _ggaea .Name .Local =="\u0063\u006f\u006c\u006f\u0072\u0073"{_deffc ,_efgef :=_ggaea .Value ,error (nil );if _efgef !=nil {return _efgef ;};_bbdce .ColorsAttr =&_deffc ;continue ;};if _ggaea .Name .Local =="\u0065\u0078\u0074"{_bbdce .ExtAttr .UnmarshalXMLAttr (_ggaea );continue ;};};for {_ccada ,_bcaff :=d .Token ();if _bcaff !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073\u0069\u006e\u0067\u0020\u004f\u0066\u0063C\u0054\u005f\u0043\u006f\u006c\u006f\u0072\u004d\u0072\u0075:\u0020\u0025\u0073",_bcaff );};if _bgecd ,_cege :=_ccada .(_ae .EndElement );_cege &&_bgecd .Name ==start .Name {break ;};};return nil ;};func NewCT_Stroke ()*CT_Stroke {_adff :=&CT_Stroke {};return _adff };
|
2021-03-16 20:51:18 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Background and its children
|
|
|
|
func (_ggfeb *CT_Background )Validate ()error {return _ggfeb .ValidateWithPath ("\u0043\u0054\u005f\u0042\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064");};func (_efed *OfcRight )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_efed .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();for _ ,_cggab :=range start .Attr {if _cggab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cggab .Name .Local =="\u0068\u0072\u0065\u0066"{_fbfgd ,_bcdece :=_cggab .Value ,error (nil );if _bcdece !=nil {return _bcdece ;};_efed .HrefAttr =&_fbfgd ;continue ;};if _cggab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cggab .Name .Local =="\u0066o\u0072\u0063\u0065\u0064\u0061\u0073h"{_efed .ForcedashAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cggab .Name .Local =="\u0074\u0069\u0074l\u0065"{_dgedf ,_ecged :=_cggab .Value ,error (nil );if _ecged !=nil {return _ecged ;};_efed .TitleAttr =&_dgedf ;continue ;};if _cggab .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_cggab .Name .Local =="\u0061l\u0074\u0068\u0072\u0065\u0066"{_dbcd ,_fgegb :=_cggab .Value ,error (nil );if _fgegb !=nil {return _fgegb ;};_efed .AlthrefAttr =&_dbcd ;continue ;};if _cggab .Name .Local =="i\u006d\u0061\u0067\u0065\u0061\u0073\u0070\u0065\u0063\u0074"{_efed .ImageaspectAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u0073\u0074\u0061\u0072\u0074\u0061\u0072\u0072\u006f\u0077"{_efed .StartarrowAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u006ci\u006e\u0065\u0073\u0074\u0079\u006ce"{_efed .LinestyleAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u0073t\u0061r\u0074\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_efed .StartarrowwidthAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u006ao\u0069\u006e\u0073\u0074\u0079\u006ce"{_efed .JoinstyleAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u0073\u0074a\u0072\u0074\u0061r\u0072\u006f\u0077\u006c\u0065\u006e\u0067\u0074\u0068"{_efed .StartarrowlengthAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u0064a\u0073\u0068\u0073\u0074\u0079\u006ce"{_gbbeg ,_fbde :=_cggab .Value ,error (nil );if _fbde !=nil {return _fbde ;};_efed .DashstyleAttr =&_gbbeg ;continue ;};if _cggab .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077"{_efed .EndarrowAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u0066\u0069\u006c\u006c\u0074\u0079\u0070\u0065"{_efed .FilltypeAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006f\u0077\u0077\u0069\u0064\u0074\u0068"{_efed .EndarrowwidthAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u006fp\u0061\u0063\u0069\u0074\u0079"{_eeeebb ,_fbdgc :=_cggab .Value ,error (nil );if _fbdgc !=nil {return _fbdgc ;};_efed .OpacityAttr =&_eeeebb ;continue ;};if _cggab .Name .Local =="\u0063\u006f\u006co\u0072"{_ababa ,_cacdb :=_cggab .Value ,error (nil );if _cacdb !=nil {return _cacdb ;};_efed .ColorAttr =&_ababa ;continue ;};if _cggab .Name .Local =="\u0069\u006e\u0073\u0065\u0074\u0070\u0065\u006e"{_efed .InsetpenAttr .UnmarshalXMLAttr (_cggab );continue ;};if _cggab .Name .Local =="\u0065\u006e\u0064\u0061\u0072\u0072\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Oval and its children
|
|
|
|
func (_aefbcg *Oval )Validate ()error {return _aefbcg .ValidateWithPath ("\u004f\u0076\u0061\u006c")};func NewOfcSkew ()*OfcSkew {_cfadc :=&OfcSkew {};_cfadc .OfcCT_Skew =*NewOfcCT_Skew ();return _cfadc };type OfcCT_RelationTable struct{Rel []*OfcCT_Relation ;ExtAttr ST_Ext ;};func NewOfcLeft ()*OfcLeft {_geaef :=&OfcLeft {};_geaef .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _geaef ;};func NewHandles ()*Handles {_cggfg :=&Handles {};_cggfg .CT_Handles =*NewCT_Handles ();return _cggfg };func (_gdccc ST_StrokeLineStyle )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {return e .EncodeElement (_gdccc .String (),start );};func (_afge *OfcCT_Complex )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_ccee :=range start .Attr {if _ccee .Name .Local =="\u0065\u0078\u0074"{_afge .ExtAttr .UnmarshalXMLAttr (_ccee );continue ;};};for {_fccgf ,_fffdgc :=d .Token ();if _fffdgc !=nil {return _e .Errorf ("\u0070a\u0072\u0073\u0069\u006eg\u0020\u004f\u0066\u0063\u0043T\u005fC\u006fm\u0070\u006c\u0065\u0078\u003a\u0020\u0025s",_fffdgc );};if _gbdbd ,_bdgea :=_fccgf .(_ae .EndElement );_bdgea &&_gbdbd .Name ==start .Name {break ;};};return nil ;};type AG_Chromakey struct{ChromakeyAttr *string ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Handles and its children, prefixing error messages with path
|
|
|
|
func (_fcaga *Handles )ValidateWithPath (path string )error {if _dfadd :=_fcaga .CT_Handles .ValidateWithPath (path );_dfadd !=nil {return _dfadd ;};return nil ;};
|
2022-12-06 11:56:49 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_H and its children, prefixing error messages with path
|
|
|
|
func (_gdgg *CT_H )ValidateWithPath (path string )error {if _aafd :=_gdgg .InvxAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0078\u0041\u0074\u0074r");_aafd !=nil {return _aafd ;};if _dagab :=_gdgg .InvyAttr .ValidateWithPath (path +"\u002fI\u006e\u0076\u0079\u0041\u0074\u0074r");_dagab !=nil {return _dagab ;};if _bfecgf :=_gdgg .SwitchAttr .ValidateWithPath (path +"/\u0053\u0077\u0069\u0074\u0063\u0068\u0041\u0074\u0074\u0072");_bfecgf !=nil {return _bfecgf ;};return nil ;};func (_bbbedg *OfcEquationxml )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_bbbedg .OfcCT_EquationXml =*NewOfcCT_EquationXml ();for _ ,_deag :=range start .Attr {if _deag .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_fgbcge ,_ebdgg :=_deag .Value ,error (nil );if _ebdgg !=nil {return _ebdgg ;};_bbbedg .ContentTypeAttr =&_fgbcge ;continue ;};};_gccba :for {_ebbb ,_dfgcc :=d .Token ();if _dfgcc !=nil {return _dfgcc ;};switch _acbcd :=_ebbb .(type ){case _ae .StartElement :switch _acbcd .Name {default:if _fceed ,_fddca :=_c .CreateElement (_acbcd );_fddca !=nil {return _fddca ;}else {if _gdge :=d .DecodeElement (_fceed ,&_acbcd );_gdge !=nil {return _gdge ;};_bbbedg .Any =_fceed ;};};case _ae .EndElement :break _gccba ;case _ae .CharData :};};return nil ;};func (_gbfab OfcST_ConnectorType )String ()string {switch _gbfab {case 0:return "";case 1:return "\u006e\u006f\u006e\u0065";case 2:return "\u0073\u0074\u0072\u0061\u0069\u0067\u0068\u0074";case 3:return "\u0065\u006c\u0062o\u0077";case 4:return "\u0063\u0075\u0072\u0076\u0065\u0064";};return "";};func (_febfa *OfcST_FillType )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_efacc ,_caead :=d .Token ();if _caead !=nil {return _caead ;};if _cgdbfg ,_cbddb :=_efacc .(_ae .EndElement );_cbddb &&_cgdbfg .Name ==start .Name {*_febfa =1;return nil ;};if _dcgcc ,_bagab :=_efacc .(_ae .CharData );!_bagab {return _e .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",_efacc );}else {switch string (_dcgcc ){case "":*_febfa =0;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0043e\u006e\u0074\u0065\u0072":*_febfa =1;case "\u0073\u006f\u006ci\u0064":*_febfa =2;case "\u0070a\u0074\u0074\u0065\u0072\u006e":*_febfa =3;case "\u0074\u0069\u006c\u0065":*_febfa =4;case "\u0066\u0072\u0061m\u0065":*_febfa =5;case "\u0067\u0072a\u0064\u0069\u0065n\u0074\u0055\u006e\u0073\u0063\u0061\u006c\u0065\u0064":*_febfa =6;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074\u0052a\u0064\u0069\u0061\u006c":*_febfa =7;case "\u0067\u0072\u0061\u0064\u0069\u0065\u006e\u0074":*_febfa =8;case "\u0062\u0061\u0063\u006b\u0067\u0072\u006f\u0075\u006e\u0064":*_febfa =9;};};_efacc ,_caead =d .Token ();if _caead !=nil {return _caead ;};if _geeaf ,_gcfegd :=_efacc .(_ae .EndElement );_gcfegd &&_geeaf .Name ==start .Name {return nil ;};return _e .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",_efacc );};type OfcCT_ColorMru struct{ColorsAttr *string ;ExtAttr ST_Ext ;};
|
2022-12-06 11:56:49 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_ShapeLayout and its children
|
|
|
|
func (_gcfeg *OfcCT_ShapeLayout )Validate ()error {return _gcfeg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0053\u0068\u0061\u0070\u0065\u004ca\u0079\u006f\u0075\u0074");};func (_cdbbe *OfcCallout )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_cdbbe .OfcCT_Callout =*NewOfcCT_Callout ();for _ ,_eeacc :=range start .Attr {if _eeacc .Name .Local =="\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"{_cdbbe .LengthspecifiedAttr .UnmarshalXMLAttr (_eeacc );continue ;};if _eeacc .Name .Local =="\u006f\u006e"{_cdbbe .OnAttr .UnmarshalXMLAttr (_eeacc );continue ;};if _eeacc .Name .Local =="\u0067\u0061\u0070"{_efgea ,_dgdbd :=_eeacc .Value ,error (nil );if _dgdbd !=nil {return _dgdbd ;};_cdbbe .GapAttr =&_efgea ;continue ;};if _eeacc .Name .Local =="\u0061\u006e\u0067l\u0065"{_cdbbe .AngleAttr .UnmarshalXMLAttr (_eeacc );continue ;};if _eeacc .Name .Local =="\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"{_cdbbe .DropautoAttr .UnmarshalXMLAttr (_eeacc );continue ;};if _eeacc .Name .Local =="\u0064\u0072\u006f\u0070"{_deeca ,_eccd :=_eeacc .Value ,error (nil );if _eccd !=nil {return _eccd ;};_cdbbe .DropAttr =&_deeca ;continue ;};if _eeacc .Name .Local =="\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"{_adeaf ,_dbede :=_eeacc .Value ,error (nil );if _dbede !=nil {return _dbede ;};_cdbbe .DistanceAttr =&_adeaf ;continue ;};if _eeacc .Name .Local =="\u0074\u0079\u0070\u0065"{_acafa ,_ggega :=_eeacc .Value ,error (nil );if _ggega !=nil {return _ggega ;};_cdbbe .TypeAttr =&_acafa ;continue ;};if _eeacc .Name .Local =="\u006c\u0065\u006e\u0067\u0074\u0068"{_afeab ,_beecgg :=_eeacc .Value ,error (nil );if _beecgg !=nil {return _beecgg ;};_cdbbe .LengthAttr =&_afeab ;continue ;};if _eeacc .Name .Local =="\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"{_cdbbe .AccentbarAttr .UnmarshalXMLAttr (_eeacc );continue ;};if _eeacc .Name .Local =="\u0074\u0065\u0078\u0074\u0062\u006f\u0072\u0064\u0065\u0072"{_cdbbe .TextborderAttr .UnmarshalXMLAttr (_eeacc );continue ;};if _eeacc .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0078"{_cdbbe .MinusxAttr .UnmarshalXMLAttr (_eeacc );continue ;};if _eeacc .Name .Local =="\u006d\u0069\u006e\u0075\u0073\u0079"{_cdbbe .MinusyAttr .UnmarshalXMLAttr (_eeacc );continue ;};if _eeacc .Name .Local =="\u0065\u0078\u0074"{_cdbbe .ExtAttr .UnmarshalXMLAttr (_eeacc );continue ;};};for {_bgbga ,_eafdg :=d .Token ();if _eafdg !=nil {return _e .Errorf ("\u0070\u0061\u0072\u0073in\u0067\u0020\u004f\u0066\u0063\u0043\u0061\u006c\u006c\u006f\u0075\u0074\u003a\u0020%\u0073",_eafdg );};if _ccaf ,_ddfaf :=_bgbga .(_ae .EndElement );_ddfaf &&_ccaf .Name ==start .Name {break ;};};return nil ;};
|
2022-02-05 13:05:36 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the AG_Ext and its children
|
|
|
|
func (_acbc *AG_Ext )Validate ()error {return _acbc .ValidateWithPath ("\u0041\u0047\u005f\u0045\u0078\u0074");};func NewOfcColumn ()*OfcColumn {_ecfed :=&OfcColumn {};_ecfed .OfcCT_StrokeChild =*NewOfcCT_StrokeChild ();return _ecfed ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcSignatureline and its children
|
|
|
|
func (_agbdb *OfcSignatureline )Validate ()error {return _agbdb .ValidateWithPath ("\u004f\u0066c\u0053\u0069\u0067n\u0061\u0074\u0075\u0072\u0065\u006c\u0069\u006e\u0065");};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Shadow and its children, prefixing error messages with path
|
|
|
|
func (_fcgb *CT_Shadow )ValidateWithPath (path string )error {if _bgad :=_fcgb .OnAttr .ValidateWithPath (path +"\u002fO\u006e\u0041\u0074\u0074\u0072");_bgad !=nil {return _bgad ;};if _dbbbe :=_fcgb .TypeAttr .ValidateWithPath (path +"\u002fT\u0079\u0070\u0065\u0041\u0074\u0074r");_dbbbe !=nil {return _dbbbe ;};if _gbabg :=_fcgb .ObscuredAttr .ValidateWithPath (path +"\u002f\u004f\u0062\u0073\u0063\u0075\u0072\u0065\u0064\u0041\u0074\u0074\u0072");_gbabg !=nil {return _gbabg ;};return nil ;};func (_edbcb *ST_StrokeEndCap )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_dbeaf ,_bdcbc :=d .Token ();if _bdcbc !=nil {return _bdcbc ;};if _cfffb ,_cbdeg :=_dbeaf .(_ae .EndElement );_cbdeg &&_cfffb .Name ==start .Name {*_edbcb =1;return nil ;};if _adfaeb ,_daafc :=_dbeaf .(_ae .CharData );!_daafc {return _e .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",_dbeaf );}else {switch string (_adfaeb ){case "":*_edbcb =0;case "\u0066\u006c\u0061\u0074":*_edbcb =1;case "\u0073\u0071\u0075\u0061\u0072\u0065":*_edbcb =2;case "\u0072\u006f\u0075n\u0064":*_edbcb =3;};};_dbeaf ,_bdcbc =d .Token ();if _bdcbc !=nil {return _bdcbc ;};if _edef ,_fcebe :=_dbeaf .(_ae .EndElement );_fcebe &&_edef .Name ==start .Name {return nil ;};return _e .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",_dbeaf );};func (_agdbd ST_FillMethod )ValidateWithPath (path string )error {switch _agdbd {case 0,1,2,3,4,5: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 (_agdbd ));};return nil ;};func (_gffeg OfcST_RType )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_afddg :=_ae .Attr {};_afddg .Name =name ;switch _gffeg {case OfcST_RTypeUnset :_afddg .Value ="";case OfcST_RTypeArc :_afddg .Value ="\u0061\u0072\u0063";case OfcST_RTypeCallout :_afddg .Value ="\u0063a\u006c\u006c\u006f\u0075\u0074";case OfcST_RTypeConnector :_afddg .Value ="\u0063o\u006e\u006e\u0065\u0063\u0074\u006fr";case OfcST_RTypeAlign :_afddg .Value ="\u0061\u006c\u0069g\u006e";};return _afddg ,nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Shapetype and its children
|
|
|
|
func (_ffeegc *Shapetype )Validate ()error {return _ffeegc .ValidateWithPath ("\u0053h\u0061\u0070\u0065\u0074\u0079\u0070e");};func (_gffegg OfcST_DiagramLayout )ValidateWithPath (path string )error {switch _gffegg {case 0,1,2,3,4: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 (_gffegg ));};return nil ;};func (_dcefd *OfcExtrusion )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_dcefd .OfcCT_Extrusion =*NewOfcCT_Extrusion ();for _ ,_fbecd :=range start .Attr {if _fbecd .Name .Local =="\u0063o\u006c\u006f\u0072\u006d\u006f\u0064e"{_dcefd .ColormodeAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u0063\u006f\u006co\u0072"{_cadcg ,_ffaga :=_fbecd .Value ,error (nil );if _ffaga !=nil {return _ffaga ;};_dcefd .ColorAttr =&_cadcg ;continue ;};if _fbecd .Name .Local =="\u0074\u0079\u0070\u0065"{_dcefd .TypeAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u0073h\u0069\u006e\u0069\u006e\u0065\u0073s"{_adde ,_gdgcc :=_aa .ParseFloat (_fbecd .Value ,64);if _gdgcc !=nil {return _gdgcc ;};_afede :=float32 (_adde );_dcefd .ShininessAttr =&_afede ;continue ;};if _fbecd .Name .Local =="\u0076i\u0065w\u0070\u006f\u0069\u006e\u0074\u006f\u0072\u0069\u0067\u0069\u006e"{_fcdde ,_deddcc :=_fbecd .Value ,error (nil );if _deddcc !=nil {return _deddcc ;};_dcefd .ViewpointoriginAttr =&_fcdde ;continue ;};if _fbecd .Name .Local =="s\u0070\u0065\u0063\u0075\u006c\u0061\u0072\u0069\u0074\u0079"{_fabba ,_bcdfd :=_fbecd .Value ,error (nil );if _bcdfd !=nil {return _bcdfd ;};_dcefd .SpecularityAttr =&_fabba ;continue ;};if _fbecd .Name .Local =="\u0070\u006c\u0061n\u0065"{_dcefd .PlaneAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u0064i\u0066\u0066\u0075\u0073\u0069\u0074y"{_cecbc ,_dgcfb :=_fbecd .Value ,error (nil );if _dgcfb !=nil {return _dgcfb ;};_dcefd .DiffusityAttr =&_cecbc ;continue ;};if _fbecd .Name .Local =="\u0073k\u0065\u0077\u0061\u006d\u0074"{_bbafe ,_bceea :=_fbecd .Value ,error (nil );if _bceea !=nil {return _bceea ;};_dcefd .SkewamtAttr =&_bbafe ;continue ;};if _fbecd .Name .Local =="\u006d\u0065\u0074a\u006c"{_dcefd .MetalAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u0062a\u0063\u006b\u0064\u0065\u0070\u0074h"{_ecbbf ,_dcged :=_fbecd .Value ,error (nil );if _dcged !=nil {return _dcged ;};_dcefd .BackdepthAttr =&_ecbbf ;continue ;};if _fbecd .Name .Local =="\u0065\u0064\u0067\u0065"{_ddbaa ,_fagfgg :=_fbecd .Value ,error (nil );if _fagfgg !=nil {return _fagfgg ;};_dcefd .EdgeAttr =&_ddbaa ;continue ;};if _fbecd .Name .Local =="l\u0069\u0067\u0068\u0074\u006c\u0065\u0076\u0065\u006c\u0032"{_afgef ,_ggadb :=_fbecd .Value ,error (nil );if _ggadb !=nil {return _ggadb ;};_dcefd .Lightlevel2Attr =&_afgef ;continue ;};if _fbecd .Name .Local =="\u006f\u0072i\u0065\u006e\u0074a\u0074\u0069\u006f\u006e\u0061\u006e\u0067\u006c\u0065"{_ecdbg ,_cffed :=_aa .ParseFloat (_fbecd .Value ,64);if _cffed !=nil {return _cffed ;};_gbcbd :=float32 (_ecdbg );_dcefd .OrientationangleAttr =&_gbcbd ;continue ;};if _fbecd .Name .Local =="\u006f\u006e"{_dcefd .OnAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u006c\u0069\u0067\u0068\u0074\u0068\u0061\u0072\u0073\u0068"{_dcefd .LightharshAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u006ci\u0067\u0068\u0074\u0066\u0061\u0063e"{_dcefd .LightfaceAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u0066o\u0072\u0065\u0064\u0065\u0070\u0074h"{_bdfa ,_gbggb :=_fbecd .Value ,error (nil );if _gbggb !=nil {return _gbggb ;};_dcefd .ForedepthAttr =&_bdfa ;continue ;};if _fbecd .Name .Local =="\u0065\u0078\u0074"{_dcefd .ExtAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u0061u\u0074o\u0072\u006f\u0074\u0061\u0074i\u006f\u006ec\u0065\u006e\u0074\u0065\u0072"{_dcefd .AutorotationcenterAttr .UnmarshalXMLAttr (_fbecd );continue ;};if _fbecd .Name .Local =="\u0066\u0061\u0063e\u0074"{_daaad ,_dadffd :=_fbecd
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcCT_ColorMenu and its children, prefixing error messages with path
|
|
|
|
func (_adfce *OfcCT_ColorMenu )ValidateWithPath (path string )error {if _bfffg :=_adfce .ExtAttr .ValidateWithPath (path +"\u002f\u0045\u0078\u0074\u0041\u0074\u0074\u0072");_bfffg !=nil {return _bfffg ;};return nil ;};
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcCT_Relation and its children
|
|
|
|
func (_affadg *OfcCT_Relation )Validate ()error {return _affadg .ValidateWithPath ("\u004f\u0066\u0063\u0043\u0054\u005f\u0052\u0065\u006ca\u0074\u0069\u006f\u006e");};func (_ddde *CT_Group )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_egfb :=range start .Attr {if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_ddde .AllowincellAttr .UnmarshalXMLAttr (_egfb );continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_ddde .BulletAttr .UnmarshalXMLAttr (_egfb );continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="\u0068\u0072"{_ddde .HrAttr .UnmarshalXMLAttr (_egfb );continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="\u006f\u006e\u0065\u0064"{_ddde .OnedAttr .UnmarshalXMLAttr (_egfb );continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="\u0068r\u0061\u006c\u0069\u0067\u006e"{_ddde .HralignAttr .UnmarshalXMLAttr (_egfb );continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="t\u0061\u0062\u006c\u0065\u006c\u0069\u006d\u0069\u0074\u0073"{_gbee ,_dada :=_egfb .Value ,error (nil );if _dada !=nil {return _dada ;};_ddde .TablelimitsAttr =&_gbee ;continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="\u0072e\u0067\u0072\u006f\u0075\u0070\u0069d"{_accba ,_fgdfa :=_aa .ParseInt (_egfb .Value ,10,64);if _fgdfa !=nil {return _fgdfa ;};_ddde .RegroupidAttr =&_accba ;continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="\u0062\u006f\u0072\u0064\u0065\u0072\u0074\u006f\u0070c\u006f\u006c\u006f\u0072"{_ggec ,_daee :=_egfb .Value ,error (nil );if _daee !=nil {return _daee ;};_ddde .BordertopcolorAttr =&_ggec ;continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_egfb .Name .Local =="\u0073\u0070\u0069\u0064"{_cgca ,_fefe :=_egfb .Value ,error (nil );if _fefe !=nil {return _fefe ;};_ddde .SpidAttr =&_cgca ;continue ;};if _egfb .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u006
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Group and its children
|
|
|
|
func (_efeg *CT_Group )Validate ()error {return _efeg .ValidateWithPath ("\u0043\u0054\u005f\u0047\u0072\u006f\u0075\u0070");};func NewCurve ()*Curve {_cadab :=&Curve {};_cadab .CT_Curve =*NewCT_Curve ();return _cadab };
|
2020-08-23 14:15:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the OfcSignatureline and its children, prefixing error messages with path
|
|
|
|
func (_ggceg *OfcSignatureline )ValidateWithPath (path string )error {if _dbegg :=_ggceg .OfcCT_SignatureLine .ValidateWithPath (path );_dbegg !=nil {return _dbegg ;};return nil ;};type OfcInk struct{OfcCT_Ink };func (_dcbece *ST_EditAs )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_dcbece =0;case "\u0063\u0061\u006e\u0076\u0061\u0073":*_dcbece =1;case "\u006f\u0072\u0067\u0063\u0068\u0061\u0072\u0074":*_dcbece =2;case "\u0072\u0061\u0064\u0069\u0061\u006c":*_dcbece =3;case "\u0063\u0079\u0063l\u0065":*_dcbece =4;case "\u0073t\u0061\u0063\u006b\u0065\u0064":*_dcbece =5;case "\u0076\u0065\u006e\u006e":*_dcbece =6;case "\u0062\u0075\u006c\u006c\u0073\u0065\u0079\u0065":*_dcbece =7;};return nil ;};type Stroke struct{CT_Stroke };func (_fdafd *OfcST_InsetMode )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_acggbb ,_gagfa :=d .Token ();if _gagfa !=nil {return _gagfa ;};if _bdfed ,_feadb :=_acggbb .(_ae .EndElement );_feadb &&_bdfed .Name ==start .Name {*_fdafd =1;return nil ;};if _ebccd ,_acaaa :=_acggbb .(_ae .CharData );!_acaaa {return _e .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",_acggbb );}else {switch string (_ebccd ){case "":*_fdafd =0;case "\u0061\u0075\u0074\u006f":*_fdafd =1;case "\u0063\u0075\u0073\u0074\u006f\u006d":*_fdafd =2;};};_acggbb ,_gagfa =d .Token ();if _gagfa !=nil {return _gagfa ;};if _bdaff ,_gaeccb :=_acggbb .(_ae .EndElement );_gaeccb &&_bdaff .Name ==start .Name {return nil ;};return _e .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",_acggbb );};func (_aggcd *OfcCT_Callout )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0063\u0061\u006c\u006c\u006f\u0075t";};if _aggcd .OnAttr !=_ee .ST_TrueFalseUnset {_daefa ,_eaacg :=_aggcd .OnAttr .MarshalXMLAttr (_ae .Name {Local :"\u006f\u006e"});if _eaacg !=nil {return _eaacg ;};start .Attr =append (start .Attr ,_daefa );};if _aggcd .TypeAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0074\u0079\u0070\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_aggcd .TypeAttr )});};if _aggcd .GapAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0067\u0061\u0070"},Value :_e .Sprintf ("\u0025\u0076",*_aggcd .GapAttr )});};if _aggcd .AngleAttr !=OfcST_AngleUnset {_aacga ,_ggef :=_aggcd .AngleAttr .MarshalXMLAttr (_ae .Name {Local :"\u0061\u006e\u0067l\u0065"});if _ggef !=nil {return _ggef ;};start .Attr =append (start .Attr ,_aacga );};if _aggcd .DropautoAttr !=_ee .ST_TrueFalseUnset {_fceag ,_ffgef :=_aggcd .DropautoAttr .MarshalXMLAttr (_ae .Name {Local :"\u0064\u0072\u006f\u0070\u0061\u0075\u0074\u006f"});if _ffgef !=nil {return _ffgef ;};start .Attr =append (start .Attr ,_fceag );};if _aggcd .DropAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064\u0072\u006f\u0070"},Value :_e .Sprintf ("\u0025\u0076",*_aggcd .DropAttr )});};if _aggcd .DistanceAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0064\u0069\u0073\u0074\u0061\u006e\u0063\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_aggcd .DistanceAttr )});};if _aggcd .LengthspecifiedAttr !=_ee .ST_TrueFalseUnset {_acfec ,_fgeg :=_aggcd .LengthspecifiedAttr .MarshalXMLAttr (_ae .Name {Local :"\u006ce\u006eg\u0074\u0068\u0073\u0070\u0065\u0063\u0069\u0066\u0069\u0065\u0064"});if _fgeg !=nil {return _fgeg ;};start .Attr =append (start .Attr ,_acfec );};if _aggcd .LengthAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u006c\u0065\u006e\u0067\u0074\u0068"},Value :_e .Sprintf ("\u0025\u0076",*_aggcd .LengthAttr )});};if _aggcd .AccentbarAttr !=_ee .ST_TrueFalseUnset {_ccaa ,_egbbb :=_aggcd .AccentbarAttr .MarshalXMLAttr (_ae .Name {Local :"\u0061c\u0063\u0065\u006e\u0074\u0062\u0061r"});if _egbbb !=nil {return _egbbb ;};start
|
2021-05-31 16:22:30 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_TextPath and its children
|
|
|
|
func (_fdfff *CT_TextPath )Validate ()error {return _fdfff .ValidateWithPath ("C\u0054\u005f\u0054\u0065\u0078\u0074\u0050\u0061\u0074\u0068");};func NewOfcFill ()*OfcFill {_cagbd :=&OfcFill {};_cagbd .OfcCT_Fill =*NewOfcCT_Fill ();return _cagbd };func (_aabag *OfcST_DiagramLayout )UnmarshalXMLAttr (attr _ae .Attr )error {switch attr .Value {case "":*_aabag =0;case "\u0030":*_aabag =1;case "\u0031":*_aabag =2;case "\u0032":*_aabag =3;case "\u0033":*_aabag =4;};return nil ;};func (_fgbbg *OfcInk )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_fgbbg .OfcCT_Ink =*NewOfcCT_Ink ();for _ ,_cbeec :=range start .Attr {if _cbeec .Name .Local =="\u0069"{_cgbcg ,_aeabg :=_cbeec .Value ,error (nil );if _aeabg !=nil {return _aeabg ;};_fgbbg .IAttr =&_cgbcg ;continue ;};if _cbeec .Name .Local =="\u0061\u006e\u006e\u006f\u0074\u0061\u0074\u0069\u006f\u006e"{_fgbbg .AnnotationAttr .UnmarshalXMLAttr (_cbeec );continue ;};if _cbeec .Name .Local =="c\u006f\u006e\u0074\u0065\u006e\u0074\u0054\u0079\u0070\u0065"{_fgbdbe ,_bbddg :=_cbeec .Value ,error (nil );if _bbddg !=nil {return _bbddg ;};_fgbbg .ContentTypeAttr =&_fgbdbe ;continue ;};};for {_fgcggf ,_fdfcb :=d .Token ();if _fdfcb !=nil {return _e .Errorf ("\u0070a\u0072s\u0069\u006e\u0067\u0020\u004ff\u0063\u0049n\u006b\u003a\u0020\u0025\u0073",_fdfcb );};if _fcaa ,_agec :=_fgcggf .(_ae .EndElement );_agec &&_fcaa .Name ==start .Name {break ;};};return nil ;};
|
2021-06-16 07:10:52 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Textpath and its children, prefixing error messages with path
|
|
|
|
func (_cabcf *Textpath )ValidateWithPath (path string )error {if _adbgc :=_cabcf .CT_TextPath .ValidateWithPath (path );_adbgc !=nil {return _adbgc ;};return nil ;};
|
2021-09-22 16:41:01 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the Imagedata and its children, prefixing error messages with path
|
|
|
|
func (_gcdcb *Imagedata )ValidateWithPath (path string )error {if _cfded :=_gcdcb .CT_ImageData .ValidateWithPath (path );_cfded !=nil {return _cfded ;};return nil ;};func (_ggaeag *OfcCT_Relation )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0072\u0065\u006c\u0061\u0074\u0069\u006f\u006e";};if _ggaeag .IdsrcAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064\u0073r\u0063"},Value :_e .Sprintf ("\u0025\u0076",*_ggaeag .IdsrcAttr )});};if _ggaeag .IddestAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064\u0064\u0065\u0073\u0074"},Value :_e .Sprintf ("\u0025\u0076",*_ggaeag .IddestAttr )});};if _ggaeag .IdcntrAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0069\u0064\u0063\u006e\u0074\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_ggaeag .IdcntrAttr )});};if _ggaeag .ExtAttr !=ST_ExtUnset {_edeaa ,_cbegg :=_ggaeag .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _cbegg !=nil {return _cbegg ;};start .Attr =append (start .Attr ,_edeaa );};e .EncodeToken (start );e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};type OfcEquationxml struct{OfcCT_EquationXml };func (_gbcec OfcST_ExtrusionType )ValidateWithPath (path string )error {switch _gbcec {case 0,1,2: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 (_gbcec ));};return nil ;};func (_fgbbe ST_StrokeEndCap )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_edaf :=_ae .Attr {};_edaf .Name =name ;switch _fgbbe {case ST_StrokeEndCapUnset :_edaf .Value ="";case ST_StrokeEndCapFlat :_edaf .Value ="\u0066\u006c\u0061\u0074";case ST_StrokeEndCapSquare :_edaf .Value ="\u0073\u0071\u0075\u0061\u0072\u0065";case ST_StrokeEndCapRound :_edaf .Value ="\u0072\u006f\u0075n\u0064";};return _edaf ,nil ;};
|
2021-11-10 11:45:21 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the CT_Arc and its children, prefixing error messages with path
|
|
|
|
func (_bfbdc *CT_Arc )ValidateWithPath (path string )error {for _ffcc ,_cdbb :=range _bfbdc .EG_ShapeElements {if _ccag :=_cdbb .ValidateWithPath (_e .Sprintf ("\u0025\u0073\u002fEG\u005f\u0053\u0068\u0061\u0070\u0065\u0045\u006c\u0065\u006d\u0065\u006e\u0074\u0073\u005b\u0025\u0064\u005d",path ,_ffcc ));_ccag !=nil {return _ccag ;};};if _fedd :=_bfbdc .PrintAttr .ValidateWithPath (path +"\u002f\u0050\u0072\u0069\u006e\u0074\u0041\u0074\u0074\u0072");_fedd !=nil {return _fedd ;};if _caga :=_bfbdc .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_caga !=nil {return _caga ;};if _baeb :=_bfbdc .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_baeb !=nil {return _baeb ;};if _bfec :=_bfbdc .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_bfec !=nil {return _bfec ;};if _adcf :=_bfbdc .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_adcf !=nil {return _adcf ;};if _ggbc :=_bfbdc .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_ggbc !=nil {return _ggbc ;};if _dbed :=_bfbdc .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_dbed !=nil {return _dbed ;};if _dgfg :=_bfbdc .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_dgfg !=nil {return _dgfg ;};if _fefg :=_bfbdc .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_fefg !=nil {return _fefg ;};if _aagb :=_bfbdc .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_aagb !=nil {return _aagb ;};if _feaa :=_bfbdc .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_feaa !=nil {return _feaa ;};if _bfbda :=_bfbdc .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_bfbda !=nil {return _bfbda ;};if _eafd :=_bfbdc .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_eafd !=nil {return _eafd ;};if _bcac :=_bfbdc .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_bcac !=nil {return _bcac ;};if _agfae :=_bfbdc .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_agfae !=nil {return _agfae ;};if _bdg :=_bfbdc .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_bdg !=nil {return _bdg ;};if _daa :=_bfbdc .StrokedAttr .ValidateWithPath (path +"\u002f\u0053\u0074r\u006f\u006b\u0065\u0064\u0041\u0074\u0074\u0072");_daa !=nil {return _daa ;};if _ggaf :=_bfbdc .InsetpenAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u0070\u0065\u006e\u0041\u0074\u0074\u0072");_ggaf !=nil {return _ggaf ;};if _cefb :=_bfbdc .FilledAttr .ValidateWithPath (path +"/\u0046\u0069\u006c\u006c\u0065\u0064\u0041\u0074\u0074\u0072");_cefb !=nil {return _cefb ;};if _cadc :=_bfbdc .ConnectortypeAttr .ValidateWithPath (path +"\u002fC\u006fn\u006e\u0065\u0063\u0074\u006fr\u0074\u0079p\u0065\u0041\u0074\u0074\u0072");_cadc !=nil {return _cadc ;};if _agga :=_bfbdc .BwmodeAttr .ValidateWithPath (path +"/\u0042\u0077\u006d\u006f\u0064\u0065\u0041\u0074\u0074\u0072");_agga !=nil {return _agga ;};if _dgfb :=_bfbdc .BwpureAttr .ValidateWithPath (path +"/\u0042\u0077\u0070\u0075\u0072\u0065\u0041\u0074\u0074\u0072");_dgfb !=nil {return _dgfb ;};if _dcfe :=_bfbdc .BwnormalAttr .ValidateWithPath (path +"\u002f\u0042\u0077\u006e\u006f\u0072\u006d\u0061\u006c\u0041\u0074\u0074\u0072");_dcfe !=nil {return _dcfe ;};if _faea
|
2022-04-09 14:27:46 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// ValidateWithPath validates the AG_OfficeCoreAttributes and its children, prefixing error messages with path
|
|
|
|
func (_cgfb *AG_OfficeCoreAttributes )ValidateWithPath (path string )error {if _ffc :=_cgfb .OnedAttr .ValidateWithPath (path +"\u002fO\u006e\u0065\u0064\u0041\u0074\u0074r");_ffc !=nil {return _ffc ;};if _dcdc :=_cgfb .DoubleclicknotifyAttr .ValidateWithPath (path +"\u002f\u0044\u006f\u0075bl\u0065\u0063\u006c\u0069\u0063\u006b\u006e\u006f\u0074\u0069\u0066\u0079\u0041\u0074t\u0072");_dcdc !=nil {return _dcdc ;};if _dgdc :=_cgfb .ButtonAttr .ValidateWithPath (path +"/\u0042\u0075\u0074\u0074\u006f\u006e\u0041\u0074\u0074\u0072");_dgdc !=nil {return _dgdc ;};if _efgf :=_cgfb .UserhiddenAttr .ValidateWithPath (path +"\u002fU\u0073e\u0072\u0068\u0069\u0064\u0064\u0065\u006e\u0041\u0074\u0074\u0072");_efgf !=nil {return _efgf ;};if _deed :=_cgfb .BulletAttr .ValidateWithPath (path +"/\u0042\u0075\u006c\u006c\u0065\u0074\u0041\u0074\u0074\u0072");_deed !=nil {return _deed ;};if _fec :=_cgfb .HrAttr .ValidateWithPath (path +"\u002fH\u0072\u0041\u0074\u0074\u0072");_fec !=nil {return _fec ;};if _bef :=_cgfb .HrstdAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u0073\u0074\u0064\u0041\u0074\u0074\u0072");_bef !=nil {return _bef ;};if _efb :=_cgfb .HrnoshadeAttr .ValidateWithPath (path +"\u002f\u0048\u0072\u006e\u006f\u0073\u0068\u0061\u0064e\u0041\u0074\u0074\u0072");_efb !=nil {return _efb ;};if _gdac :=_cgfb .HralignAttr .ValidateWithPath (path +"\u002f\u0048\u0072a\u006c\u0069\u0067\u006e\u0041\u0074\u0074\u0072");_gdac !=nil {return _gdac ;};if _aabc :=_cgfb .AllowincellAttr .ValidateWithPath (path +"\u002f\u0041l\u006c\u006f\u0077i\u006e\u0063\u0065\u006c\u006c\u0041\u0074\u0074\u0072");_aabc !=nil {return _aabc ;};if _dcc :=_cgfb .AllowoverlapAttr .ValidateWithPath (path +"\u002f\u0041\u006c\u006c\u006f\u0077\u006f\u0076\u0065\u0072\u006c\u0061p\u0041\u0074\u0074\u0072");_dcc !=nil {return _dcc ;};if _gdf :=_cgfb .UserdrawnAttr .ValidateWithPath (path +"\u002f\u0055\u0073\u0065\u0072\u0064\u0072\u0061\u0077n\u0041\u0074\u0074\u0072");_gdf !=nil {return _gdf ;};if _fdb :=_cgfb .DgmlayoutAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075t\u0041\u0074\u0074\u0072");_fdb !=nil {return _fdb ;};if _febf :=_cgfb .DgmlayoutmruAttr .ValidateWithPath (path +"\u002f\u0044\u0067\u006d\u006c\u0061\u0079\u006f\u0075\u0074\u006d\u0072u\u0041\u0074\u0074\u0072");_febf !=nil {return _febf ;};if _bdacf :=_cgfb .InsetmodeAttr .ValidateWithPath (path +"\u002f\u0049\u006e\u0073\u0065\u0074\u006d\u006f\u0064e\u0041\u0074\u0074\u0072");_bdacf !=nil {return _bdacf ;};return nil ;};func (_eecdb *Group )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {_eecdb .CT_Group =*NewCT_Group ();for _ ,_gdedf :=range start .Attr {if _gdedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdedf .Name .Local =="a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"{_eecdb .AllowincellAttr .UnmarshalXMLAttr (_gdedf );continue ;};if _gdedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdedf .Name .Local =="\u0062\u0075\u006c\u006c\u0065\u0074"{_eecdb .BulletAttr .UnmarshalXMLAttr (_gdedf );continue ;};if _gdedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdedf .Name .Local =="\u0068\u0072"{_eecdb .HrAttr .UnmarshalXMLAttr (_gdedf );continue ;};if _gdedf .Name .Space =="\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di\u0063\u0072\u006f\u0073\u006f\u0066t\u002d\u0063\u006f\u006d\u003a\u006f\u0066\u0066\u0069\u0063\u0065\u003a\u006ff\u0066\u0069\u0063\u0065"&&_gdedf .Name .Local =="\u006f\u006e\u0065\u0064"{_
|
2022-06-27 19:44:23 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the OfcFill and its children
|
|
|
|
func (_egeddf *OfcFill )Validate ()error {return _egeddf .ValidateWithPath ("\u004ff\u0063\u0046\u0069\u006c\u006c");};type OfcST_How byte ;func (_degcg ST_StrokeArrowLength )MarshalXMLAttr (name _ae .Name )(_ae .Attr ,error ){_cadbde :=_ae .Attr {};_cadbde .Name =name ;switch _degcg {case ST_StrokeArrowLengthUnset :_cadbde .Value ="";case ST_StrokeArrowLengthShort :_cadbde .Value ="\u0073\u0068\u006fr\u0074";case ST_StrokeArrowLengthMedium :_cadbde .Value ="\u006d\u0065\u0064\u0069\u0075\u006d";case ST_StrokeArrowLengthLong :_cadbde .Value ="\u006c\u006f\u006e\u0067";};return _cadbde ,nil ;};
|
2022-06-27 19:44:23 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Imagedata and its children
|
|
|
|
func (_ddaee *Imagedata )Validate ()error {return _ddaee .ValidateWithPath ("\u0049m\u0061\u0067\u0065\u0064\u0061\u0074a");};
|
2022-09-02 11:46:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the Formulas and its children
|
|
|
|
func (_dddde *Formulas )Validate ()error {return _dddde .ValidateWithPath ("\u0046\u006f\u0072\u006d\u0075\u006c\u0061\u0073");};func (_cgefd ST_StrokeArrowType )Validate ()error {return _cgefd .ValidateWithPath ("")};func NewOfcSignatureline ()*OfcSignatureline {_cbfef :=&OfcSignatureline {};_cbfef .OfcCT_SignatureLine =*NewOfcCT_SignatureLine ();return _cbfef ;};func NewOfcCT_ClipPath ()*OfcCT_ClipPath {_affad :=&OfcCT_ClipPath {};return _affad };func (_efdeg *OfcCT_ColorMenu )UnmarshalXML (d *_ae .Decoder ,start _ae .StartElement )error {for _ ,_dcdgf :=range start .Attr {if _dcdgf .Name .Local =="s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"{_febff ,_bafgc :=_dcdgf .Value ,error (nil );if _bafgc !=nil {return _bafgc ;};_efdeg .StrokecolorAttr =&_febff ;continue ;};if _dcdgf .Name .Local =="\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"{_bdfeg ,_faeaf :=_dcdgf .Value ,error (nil );if _faeaf !=nil {return _faeaf ;};_efdeg .FillcolorAttr =&_bdfeg ;continue ;};if _dcdgf .Name .Local =="s\u0068\u0061\u0064\u006f\u0077\u0063\u006f\u006c\u006f\u0072"{_faeca ,_efccf :=_dcdgf .Value ,error (nil );if _efccf !=nil {return _efccf ;};_efdeg .ShadowcolorAttr =&_faeca ;continue ;};if _dcdgf .Name .Local =="\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006ec\u006f\u006c\u006f\u0072"{_eccf ,_adddf :=_dcdgf .Value ,error (nil );if _adddf !=nil {return _adddf ;};_efdeg .ExtrusioncolorAttr =&_eccf ;continue ;};if _dcdgf .Name .Local =="\u0065\u0078\u0074"{_efdeg .ExtAttr .UnmarshalXMLAttr (_dcdgf );continue ;};};for {_bceecf ,_ffdg :=d .Token ();if _ffdg !=nil {return _e .Errorf ("p\u0061\u0072\u0073\u0069\u006e\u0067 \u004f\u0066\u0063\u0043\u0054\u005f\u0043\u006f\u006co\u0072\u004d\u0065n\u0075:\u0020\u0025\u0073",_ffdg );};if _edbdca ,_fcccc :=_bceecf .(_ae .EndElement );_fcccc &&_edbdca .Name ==start .Name {break ;};};return nil ;};type CT_Image struct{EG_ShapeElements []*EG_ShapeElements ;HrefAttr *string ;TargetAttr *string ;ClassAttr *string ;TitleAttr *string ;AltAttr *string ;CoordsizeAttr *string ;CoordoriginAttr *string ;WrapcoordsAttr *string ;PrintAttr _ee .ST_TrueFalse ;IdAttr *string ;StyleAttr *string ;SpidAttr *string ;OnedAttr _ee .ST_TrueFalse ;RegroupidAttr *int64 ;DoubleclicknotifyAttr _ee .ST_TrueFalse ;ButtonAttr _ee .ST_TrueFalse ;UserhiddenAttr _ee .ST_TrueFalse ;BulletAttr _ee .ST_TrueFalse ;HrAttr _ee .ST_TrueFalse ;HrstdAttr _ee .ST_TrueFalse ;HrnoshadeAttr _ee .ST_TrueFalse ;HrpctAttr *float32 ;HralignAttr OfcST_HrAlign ;AllowincellAttr _ee .ST_TrueFalse ;AllowoverlapAttr _ee .ST_TrueFalse ;UserdrawnAttr _ee .ST_TrueFalse ;BordertopcolorAttr *string ;BorderleftcolorAttr *string ;BorderbottomcolorAttr *string ;BorderrightcolorAttr *string ;DgmlayoutAttr OfcST_DiagramLayout ;DgmnodekindAttr *int64 ;DgmlayoutmruAttr OfcST_DiagramLayout ;InsetmodeAttr OfcST_InsetMode ;OpacityAttr *string ;StrokedAttr _ee .ST_TrueFalse ;StrokecolorAttr *string ;StrokeweightAttr *string ;InsetpenAttr _ee .ST_TrueFalse ;ChromakeyAttr *string ;FilledAttr _ee .ST_TrueFalse ;FillcolorAttr *string ;SptAttr *float32 ;ConnectortypeAttr OfcST_ConnectorType ;BwmodeAttr OfcST_BWMode ;BwpureAttr OfcST_BWMode ;BwnormalAttr OfcST_BWMode ;ForcedashAttr _ee .ST_TrueFalse ;OleiconAttr _ee .ST_TrueFalse ;OleAttr _ee .ST_TrueFalseBlank ;PreferrelativeAttr _ee .ST_TrueFalse ;CliptowrapAttr _ee .ST_TrueFalse ;ClipAttr _ee .ST_TrueFalse ;SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _ee .ST_TrueFalse ;BilevelAttr _ee .ST_TrueFalse ;};type AG_ImageAttributes struct{SrcAttr *string ;CropleftAttr *string ;CroptopAttr *string ;CroprightAttr *string ;CropbottomAttr *string ;GainAttr *string ;BlacklevelAttr *string ;GammaAttr *string ;GrayscaleAttr _ee .ST_TrueFalse ;BilevelAttr _ee .ST_TrueFalse ;};func (_efadgd *OfcCT_ShapeLayout )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f\u003a\u0073\u0068\u0061\u0070\u0065\u006c\u0061\u00
|
2022-09-02 11:46:53 +00:00
|
|
|
|
2023-04-15 17:27:31 +00:00
|
|
|
// Validate validates the CT_Oval and its children
|
|
|
|
func (_bbcgb *CT_Oval )Validate ()error {return _bbcgb .ValidateWithPath ("\u0043T\u005f\u004f\u0076\u0061\u006c");};func (_dgegb *OfcCT_ShapeDefaults )MarshalXML (e *_ae .Encoder ,start _ae .StartElement )error {if (start .Name ==_ae .Name {}){start .Name .Local ="\u006f:\u0073h\u0061\u0070\u0065\u0064\u0065\u0066\u0061\u0075\u006c\u0074\u0073";};if _dgegb .SpidmaxAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073p\u0069\u0064\u006d\u0061\u0078"},Value :_e .Sprintf ("\u0025\u0076",*_dgegb .SpidmaxAttr )});};if _dgegb .StyleAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0073\u0074\u0079l\u0065"},Value :_e .Sprintf ("\u0025\u0076",*_dgegb .StyleAttr )});};if _dgegb .FillAttr !=_ee .ST_TrueFalseUnset {_gbgad ,_cebbgf :=_dgegb .FillAttr .MarshalXMLAttr (_ae .Name {Local :"\u0066\u0069\u006c\u006c"});if _cebbgf !=nil {return _cebbgf ;};start .Attr =append (start .Attr ,_gbgad );};if _dgegb .FillcolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"\u0066i\u006c\u006c\u0063\u006f\u006c\u006fr"},Value :_e .Sprintf ("\u0025\u0076",*_dgegb .FillcolorAttr )});};if _dgegb .StrokeAttr !=_ee .ST_TrueFalseUnset {_badca ,_dfcag :=_dgegb .StrokeAttr .MarshalXMLAttr (_ae .Name {Local :"\u0073\u0074\u0072\u006f\u006b\u0065"});if _dfcag !=nil {return _dfcag ;};start .Attr =append (start .Attr ,_badca );};if _dgegb .StrokecolorAttr !=nil {start .Attr =append (start .Attr ,_ae .Attr {Name :_ae .Name {Local :"s\u0074\u0072\u006f\u006b\u0065\u0063\u006f\u006c\u006f\u0072"},Value :_e .Sprintf ("\u0025\u0076",*_dgegb .StrokecolorAttr )});};if _dgegb .AllowincellAttr !=_ee .ST_TrueFalseUnset {_dbcgb ,_cbfbb :=_dgegb .AllowincellAttr .MarshalXMLAttr (_ae .Name {Local :"a\u006c\u006c\u006f\u0077\u0069\u006e\u0063\u0065\u006c\u006c"});if _cbfbb !=nil {return _cbfbb ;};start .Attr =append (start .Attr ,_dbcgb );};if _dgegb .ExtAttr !=ST_ExtUnset {_ccgfbb ,_ddcga :=_dgegb .ExtAttr .MarshalXMLAttr (_ae .Name {Local :"\u0076\u003a\u0065x\u0074"});if _ddcga !=nil {return _ddcga ;};start .Attr =append (start .Attr ,_ccgfbb );};e .EncodeToken (start );if _dgegb .Fill !=nil {_cdecc :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0066\u0069\u006c\u006c"}};e .EncodeElement (_dgegb .Fill ,_cdecc );};if _dgegb .Stroke !=nil {_aebec :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0073\u0074\u0072\u006f\u006b\u0065"}};e .EncodeElement (_dgegb .Stroke ,_aebec );};if _dgegb .Textbox !=nil {_cbfcc :=_ae .StartElement {Name :_ae .Name {Local :"\u0076:\u0074\u0065\u0078\u0074\u0062\u006fx"}};e .EncodeElement (_dgegb .Textbox ,_cbfcc );};if _dgegb .Shadow !=nil {_bbce :=_ae .StartElement {Name :_ae .Name {Local :"\u0076\u003a\u0073\u0068\u0061\u0064\u006f\u0077"}};e .EncodeElement (_dgegb .Shadow ,_bbce );};if _dgegb .Skew !=nil {_bdefg :=_ae .StartElement {Name :_ae .Name {Local :"\u006f\u003a\u0073\u006b\u0065\u0077"}};e .EncodeElement (_dgegb .Skew ,_bdefg );};if _dgegb .Extrusion !=nil {_eggac :=_ae .StartElement {Name :_ae .Name {Local :"o\u003a\u0065\u0078\u0074\u0072\u0075\u0073\u0069\u006f\u006e"}};e .EncodeElement (_dgegb .Extrusion ,_eggac );};if _dgegb .Callout !=nil {_ggfdg :=_ae .StartElement {Name :_ae .Name {Local :"\u006f:\u0063\u0061\u006c\u006c\u006f\u0075t"}};e .EncodeElement (_dgegb .Callout ,_ggfdg );};if _dgegb .Lock !=nil {_dfdde :=_ae .StartElement {Name :_ae .Name {Local :"\u006f\u003a\u006c\u006f\u0063\u006b"}};e .EncodeElement (_dgegb .Lock ,_dfdde );};if _dgegb .Colormru !=nil {_fggd :=_ae .StartElement {Name :_ae .Name {Local :"\u006f\u003a\u0063\u006f\u006c\u006f\u0072\u006d\u0072\u0075"}};e .EncodeElement (_dgegb .Colormru ,_fggd );};if _dgegb .Colormenu !=nil {_ffege :=_ae .StartElement {Name :_ae .Name {Local :"o\u003a\u0063\u006f\u006c\u006f\u0072\u006d\u0065\u006e\u0075"}};e .EncodeElement (_dgegb .Colormenu ,_ffege );};e .EncodeToken (_ae .EndElement {Name :start .Name });return nil ;};func init (){_c .RegisterConstructor ("\u0075\u0072\u006e\u003a\u0073\u0063\u0068\u0065\u006d\u0061\u0073\u002d\u006di
|