代码拉取完成,页面将自动刷新
// 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 chart
import (
"encoding/xml"
"gitee.com/jiewen/gooxml"
"gitee.com/jiewen/gooxml/schema/soo/dml"
)
type Group_DLbls struct {
NumFmt *CT_NumFmt
SpPr *dml.CT_ShapeProperties
TxPr *dml.CT_TextBody
DLblPos *CT_DLblPos
ShowLegendKey *CT_Boolean
ShowVal *CT_Boolean
ShowCatName *CT_Boolean
ShowSerName *CT_Boolean
ShowPercent *CT_Boolean
ShowBubbleSize *CT_Boolean
Separator *string
ShowLeaderLines *CT_Boolean
LeaderLines *CT_ChartLines
}
func NewGroup_DLbls() *Group_DLbls {
ret := &Group_DLbls{}
return ret
}
func (m *Group_DLbls) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
if m.NumFmt != nil {
senumFmt := xml.StartElement{Name: xml.Name{Local: "c:numFmt"}}
e.EncodeElement(m.NumFmt, senumFmt)
}
if m.SpPr != nil {
sespPr := xml.StartElement{Name: xml.Name{Local: "c:spPr"}}
e.EncodeElement(m.SpPr, sespPr)
}
if m.TxPr != nil {
setxPr := xml.StartElement{Name: xml.Name{Local: "c:txPr"}}
e.EncodeElement(m.TxPr, setxPr)
}
if m.DLblPos != nil {
sedLblPos := xml.StartElement{Name: xml.Name{Local: "c:dLblPos"}}
e.EncodeElement(m.DLblPos, sedLblPos)
}
if m.ShowLegendKey != nil {
seshowLegendKey := xml.StartElement{Name: xml.Name{Local: "c:showLegendKey"}}
e.EncodeElement(m.ShowLegendKey, seshowLegendKey)
}
if m.ShowVal != nil {
seshowVal := xml.StartElement{Name: xml.Name{Local: "c:showVal"}}
e.EncodeElement(m.ShowVal, seshowVal)
}
if m.ShowCatName != nil {
seshowCatName := xml.StartElement{Name: xml.Name{Local: "c:showCatName"}}
e.EncodeElement(m.ShowCatName, seshowCatName)
}
if m.ShowSerName != nil {
seshowSerName := xml.StartElement{Name: xml.Name{Local: "c:showSerName"}}
e.EncodeElement(m.ShowSerName, seshowSerName)
}
if m.ShowPercent != nil {
seshowPercent := xml.StartElement{Name: xml.Name{Local: "c:showPercent"}}
e.EncodeElement(m.ShowPercent, seshowPercent)
}
if m.ShowBubbleSize != nil {
seshowBubbleSize := xml.StartElement{Name: xml.Name{Local: "c:showBubbleSize"}}
e.EncodeElement(m.ShowBubbleSize, seshowBubbleSize)
}
if m.Separator != nil {
seseparator := xml.StartElement{Name: xml.Name{Local: "c:separator"}}
gooxml.AddPreserveSpaceAttr(&seseparator, *m.Separator)
e.EncodeElement(m.Separator, seseparator)
}
if m.ShowLeaderLines != nil {
seshowLeaderLines := xml.StartElement{Name: xml.Name{Local: "c:showLeaderLines"}}
e.EncodeElement(m.ShowLeaderLines, seshowLeaderLines)
}
if m.LeaderLines != nil {
seleaderLines := xml.StartElement{Name: xml.Name{Local: "c:leaderLines"}}
e.EncodeElement(m.LeaderLines, seleaderLines)
}
return nil
}
func (m *Group_DLbls) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
// initialize to default
lGroup_DLbls:
for {
tok, err := d.Token()
if err != nil {
return err
}
switch el := tok.(type) {
case xml.StartElement:
switch el.Name {
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "numFmt"}:
m.NumFmt = NewCT_NumFmt()
if err := d.DecodeElement(m.NumFmt, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "spPr"}:
m.SpPr = dml.NewCT_ShapeProperties()
if err := d.DecodeElement(m.SpPr, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "txPr"}:
m.TxPr = dml.NewCT_TextBody()
if err := d.DecodeElement(m.TxPr, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "dLblPos"}:
m.DLblPos = NewCT_DLblPos()
if err := d.DecodeElement(m.DLblPos, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "showLegendKey"}:
m.ShowLegendKey = NewCT_Boolean()
if err := d.DecodeElement(m.ShowLegendKey, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "showVal"}:
m.ShowVal = NewCT_Boolean()
if err := d.DecodeElement(m.ShowVal, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "showCatName"}:
m.ShowCatName = NewCT_Boolean()
if err := d.DecodeElement(m.ShowCatName, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "showSerName"}:
m.ShowSerName = NewCT_Boolean()
if err := d.DecodeElement(m.ShowSerName, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "showPercent"}:
m.ShowPercent = NewCT_Boolean()
if err := d.DecodeElement(m.ShowPercent, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "showBubbleSize"}:
m.ShowBubbleSize = NewCT_Boolean()
if err := d.DecodeElement(m.ShowBubbleSize, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "separator"}:
m.Separator = new(string)
if err := d.DecodeElement(m.Separator, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "showLeaderLines"}:
m.ShowLeaderLines = NewCT_Boolean()
if err := d.DecodeElement(m.ShowLeaderLines, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/drawingml/2006/chart", Local: "leaderLines"}:
m.LeaderLines = NewCT_ChartLines()
if err := d.DecodeElement(m.LeaderLines, &el); err != nil {
return err
}
default:
gooxml.Log("skipping unsupported element on Group_DLbls %v", el.Name)
if err := d.Skip(); err != nil {
return err
}
}
case xml.EndElement:
break lGroup_DLbls
case xml.CharData:
}
}
return nil
}
// Validate validates the Group_DLbls and its children
func (m *Group_DLbls) Validate() error {
return m.ValidateWithPath("Group_DLbls")
}
// ValidateWithPath validates the Group_DLbls and its children, prefixing error messages with path
func (m *Group_DLbls) ValidateWithPath(path string) error {
if m.NumFmt != nil {
if err := m.NumFmt.ValidateWithPath(path + "/NumFmt"); err != nil {
return err
}
}
if m.SpPr != nil {
if err := m.SpPr.ValidateWithPath(path + "/SpPr"); err != nil {
return err
}
}
if m.TxPr != nil {
if err := m.TxPr.ValidateWithPath(path + "/TxPr"); err != nil {
return err
}
}
if m.DLblPos != nil {
if err := m.DLblPos.ValidateWithPath(path + "/DLblPos"); err != nil {
return err
}
}
if m.ShowLegendKey != nil {
if err := m.ShowLegendKey.ValidateWithPath(path + "/ShowLegendKey"); err != nil {
return err
}
}
if m.ShowVal != nil {
if err := m.ShowVal.ValidateWithPath(path + "/ShowVal"); err != nil {
return err
}
}
if m.ShowCatName != nil {
if err := m.ShowCatName.ValidateWithPath(path + "/ShowCatName"); err != nil {
return err
}
}
if m.ShowSerName != nil {
if err := m.ShowSerName.ValidateWithPath(path + "/ShowSerName"); err != nil {
return err
}
}
if m.ShowPercent != nil {
if err := m.ShowPercent.ValidateWithPath(path + "/ShowPercent"); err != nil {
return err
}
}
if m.ShowBubbleSize != nil {
if err := m.ShowBubbleSize.ValidateWithPath(path + "/ShowBubbleSize"); err != nil {
return err
}
}
if m.ShowLeaderLines != nil {
if err := m.ShowLeaderLines.ValidateWithPath(path + "/ShowLeaderLines"); err != nil {
return err
}
}
if m.LeaderLines != nil {
if err := m.LeaderLines.ValidateWithPath(path + "/LeaderLines"); err != nil {
return err
}
}
return nil
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。