1 Star 0 Fork 1

窦雪峰/unioffice

Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
Clone or Download
CT_ShapeDefaults.go 1.78 KB
Copy Edit Raw Blame History
Todd authored 2017-09-23 08:28 . schema: rename wordprocessingml to wml
// Copyright 2017 Baliance. All rights reserved.
//
// DO NOT EDIT: generated by gooxml ECMA-376 generator
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.
package wml
import (
"encoding/xml"
"baliance.com/gooxml"
)
type CT_ShapeDefaults struct {
Any []gooxml.Any
}
func NewCT_ShapeDefaults() *CT_ShapeDefaults {
ret := &CT_ShapeDefaults{}
return ret
}
func (m *CT_ShapeDefaults) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
e.EncodeToken(start)
if m.Any != nil {
for _, c := range m.Any {
c.MarshalXML(e, xml.StartElement{})
}
}
e.EncodeToken(xml.EndElement{Name: start.Name})
return nil
}
func (m *CT_ShapeDefaults) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
// initialize to default
lCT_ShapeDefaults:
for {
tok, err := d.Token()
if err != nil {
return err
}
switch el := tok.(type) {
case xml.StartElement:
switch el.Name {
default:
if anyEl, err := gooxml.CreateElement(el); err != nil {
return err
} else {
if err := d.DecodeElement(anyEl, &el); err != nil {
return err
}
m.Any = append(m.Any, anyEl)
}
}
case xml.EndElement:
break lCT_ShapeDefaults
case xml.CharData:
}
}
return nil
}
// Validate validates the CT_ShapeDefaults and its children
func (m *CT_ShapeDefaults) Validate() error {
return m.ValidateWithPath("CT_ShapeDefaults")
}
// ValidateWithPath validates the CT_ShapeDefaults and its children, prefixing error messages with path
func (m *CT_ShapeDefaults) ValidateWithPath(path string) error {
return nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/douxuefeng/unioffice.git
git@gitee.com:douxuefeng/unioffice.git
douxuefeng
unioffice
unioffice
v0.7.1

Search