mirror of
https://github.com/unidoc/unioffice.git
synced 2025-04-25 13:48:53 +08:00
schema: apply more default values
These are implied values as they are the defaults in the XSD for optional attributes/elements. However I've noticed that I keep running into issues where Mac Excel/Word fail to open a file unless an optional default is provided. I'll just add them all to hopefully increase compatibility and save painful file format debugging sessions later.
This commit is contained in:
parent
03fa89c7ee
commit
59b2711e1b
2
common/testdata/rels.xml
vendored
2
common/testdata/rels.xml
vendored
@ -1 +1 @@
|
||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:xml="http://www.w3.org/XML/1998/namespace"><Relationship Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Id="rId3"/><Relationship Target="docProps/core.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Id="rId2"/><Relationship Target="xl/workbook.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Id="rId1"/></Relationships>
|
||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:xml="http://www.w3.org/XML/1998/namespace"><Relationship TargetMode="External" Target="docProps/app.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Id="rId3"/><Relationship TargetMode="External" Target="docProps/core.xml" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Id="rId2"/><Relationship TargetMode="External" Target="xl/workbook.xml" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Id="rId1"/></Relationships>
|
2
common/testdata/theme.xml
vendored
2
common/testdata/theme.xml
vendored
File diff suppressed because one or more lines are too long
BIN
document/testdata/header-footer-multiple.docx
vendored
BIN
document/testdata/header-footer-multiple.docx
vendored
Binary file not shown.
2
document/testdata/settings.xml
vendored
2
document/testdata/settings.xml
vendored
@ -1,2 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||
<w:settings xmlns="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:ma="http://schemas.openxmlformats.org/schemaLibrary/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:xml="http://www.w3.org/XML/1998/namespace"><w:zoom w:percent="100"/><w:removePersonalInformation/><w:removeDateAndTime/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:hdrShapeDefaults><o:shapedefaults v:ext="edit" spidmax="2049" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"/></w:hdrShapeDefaults><w:footnotePr><w:footnote w:id="-1"/><w:footnote w:id="0"/></w:footnotePr><w:endnotePr><w:endnote w:id="-1"/><w:endnote w:id="0"/></w:endnotePr><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/></w:compat><w:rsids><w:rsidRoot w:val="003C2D97"/><w:rsid w:val="002939C2"/><w:rsid w:val="003C2D97"/><w:rsid w:val="00A45D78"/></w:rsids><m:mathPr xmlns="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:xml="http://www.w3.org/XML/1998/namespace"><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="false"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-US"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="2049" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"/><o:shapelayout v:ext="edit" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/></w:settings>
|
||||
<w:settings xmlns="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:ma="http://schemas.openxmlformats.org/schemaLibrary/2006/main" xmlns:pic="http://schemas.openxmlformats.org/drawingml/2006/picture" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:xml="http://www.w3.org/XML/1998/namespace"><w:zoom w:val="none" w:percent="100"/><w:removePersonalInformation/><w:removeDateAndTime/><w:defaultTabStop w:val="720"/><w:characterSpacingControl w:val="doNotCompress"/><w:hdrShapeDefaults><o:shapedefaults v:ext="edit" spidmax="2049" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"/></w:hdrShapeDefaults><w:footnotePr><w:footnote w:id="-1"/><w:footnote w:id="0"/></w:footnotePr><w:endnotePr><w:endnote w:id="-1"/><w:endnote w:id="0"/></w:endnotePr><w:compat><w:compatSetting w:name="compatibilityMode" w:uri="http://schemas.microsoft.com/office/word" w:val="15"/><w:compatSetting w:name="overrideTableStyleFontSizeAndJustification" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="enableOpenTypeFeatures" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="doNotFlipMirrorIndents" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/><w:compatSetting w:name="differentiateMultirowTableHeaders" w:uri="http://schemas.microsoft.com/office/word" w:val="1"/></w:compat><w:rsids><w:rsidRoot w:val="003C2D97"/><w:rsid w:val="002939C2"/><w:rsid w:val="003C2D97"/><w:rsid w:val="00A45D78"/></w:rsids><m:mathPr xmlns="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" xmlns:s="http://schemas.openxmlformats.org/officeDocument/2006/sharedTypes" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:xml="http://www.w3.org/XML/1998/namespace"><m:mathFont m:val="Cambria Math"/><m:brkBin m:val="before"/><m:brkBinSub m:val="--"/><m:smallFrac m:val="false"/><m:dispDef/><m:lMargin m:val="0"/><m:rMargin m:val="0"/><m:defJc m:val="centerGroup"/><m:wrapIndent m:val="1440"/><m:intLim m:val="subSup"/><m:naryLim m:val="undOvr"/></m:mathPr><w:themeFontLang w:val="en-US"/><w:clrSchemeMapping w:bg1="light1" w:t1="dark1" w:bg2="light2" w:t2="dark2" w:accent1="accent1" w:accent2="accent2" w:accent3="accent3" w:accent4="accent4" w:accent5="accent5" w:accent6="accent6" w:hyperlink="hyperlink" w:followedHyperlink="followedHyperlink"/><w:shapeDefaults><o:shapedefaults v:ext="edit" spidmax="2049" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"/><o:shapelayout v:ext="edit" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:v="urn:schemas-microsoft-com:vml"><o:idmap v:ext="edit" data="1"/></o:shapelayout></w:shapeDefaults><w:decimalSymbol w:val="."/><w:listSeparator w:val=","/></w:settings>
|
BIN
document/testdata/simple-1.docx
vendored
BIN
document/testdata/simple-1.docx
vendored
Binary file not shown.
2
document/testdata/styles.xml
vendored
2
document/testdata/styles.xml
vendored
File diff suppressed because one or more lines are too long
12
optional.go
12
optional.go
@ -25,6 +25,18 @@ func Uint32(v uint32) *uint32 {
|
||||
return &x
|
||||
}
|
||||
|
||||
// Uint16 returns a copy of v as a pointer.
|
||||
func Uint16(v uint16) *uint16 {
|
||||
x := v
|
||||
return &x
|
||||
}
|
||||
|
||||
// Uint8 returns a copy of v as a pointer.
|
||||
func Uint8(v uint8) *uint8 {
|
||||
x := v
|
||||
return &x
|
||||
}
|
||||
|
||||
// Int64 returns a copy of v as a pointer.
|
||||
func Int64(v int64) *int64 {
|
||||
x := v
|
||||
|
@ -18,6 +18,7 @@ type CT_BarDir struct {
|
||||
|
||||
func NewCT_BarDir() *CT_BarDir {
|
||||
ret := &CT_BarDir{}
|
||||
ret.ValAttr = ST_BarDirCol
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_BarDir) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_BarDir) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_BarDirCol
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_BarGrouping struct {
|
||||
|
||||
func NewCT_BarGrouping() *CT_BarGrouping {
|
||||
ret := &CT_BarGrouping{}
|
||||
ret.ValAttr = ST_BarGroupingClustered
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_BarGrouping) MarshalXML(e *xml.Encoder, start xml.StartElement) erro
|
||||
|
||||
func (m *CT_BarGrouping) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_BarGroupingClustered
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_Boolean struct {
|
||||
@ -19,6 +21,7 @@ type CT_Boolean struct {
|
||||
|
||||
func NewCT_Boolean() *CT_Boolean {
|
||||
ret := &CT_Boolean{}
|
||||
ret.ValAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -34,6 +37,7 @@ func (m *CT_Boolean) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Boolean) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -18,6 +18,7 @@ type CT_BuiltInUnit struct {
|
||||
|
||||
func NewCT_BuiltInUnit() *CT_BuiltInUnit {
|
||||
ret := &CT_BuiltInUnit{}
|
||||
ret.ValAttr = ST_BuiltInUnitThousands
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_BuiltInUnit) MarshalXML(e *xml.Encoder, start xml.StartElement) erro
|
||||
|
||||
func (m *CT_BuiltInUnit) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_BuiltInUnitThousands
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_DispBlanksAs struct {
|
||||
|
||||
func NewCT_DispBlanksAs() *CT_DispBlanksAs {
|
||||
ret := &CT_DispBlanksAs{}
|
||||
ret.ValAttr = ST_DispBlanksAsZero
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_DispBlanksAs) MarshalXML(e *xml.Encoder, start xml.StartElement) err
|
||||
|
||||
func (m *CT_DispBlanksAs) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_DispBlanksAsZero
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_ErrBarType struct {
|
||||
|
||||
func NewCT_ErrBarType() *CT_ErrBarType {
|
||||
ret := &CT_ErrBarType{}
|
||||
ret.ValAttr = ST_ErrBarTypeBoth
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_ErrBarType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_ErrBarType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_ErrBarTypeBoth
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_ErrValType struct {
|
||||
|
||||
func NewCT_ErrValType() *CT_ErrValType {
|
||||
ret := &CT_ErrValType{}
|
||||
ret.ValAttr = ST_ErrValTypeFixedVal
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_ErrValType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_ErrValType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_ErrValTypeFixedVal
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_Grouping struct {
|
||||
|
||||
func NewCT_Grouping() *CT_Grouping {
|
||||
ret := &CT_Grouping{}
|
||||
ret.ValAttr = ST_GroupingStandard
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_Grouping) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Grouping) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_GroupingStandard
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -30,6 +30,9 @@ type CT_HeaderFooter struct {
|
||||
|
||||
func NewCT_HeaderFooter() *CT_HeaderFooter {
|
||||
ret := &CT_HeaderFooter{}
|
||||
ret.AlignWithMarginsAttr = gooxml.Bool(true)
|
||||
ret.DifferentOddEvenAttr = gooxml.Bool(false)
|
||||
ret.DifferentFirstAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -83,6 +86,9 @@ func (m *CT_HeaderFooter) MarshalXML(e *xml.Encoder, start xml.StartElement) err
|
||||
|
||||
func (m *CT_HeaderFooter) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.AlignWithMarginsAttr = gooxml.Bool(true)
|
||||
m.DifferentOddEvenAttr = gooxml.Bool(false)
|
||||
m.DifferentFirstAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "alignWithMargins" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -18,6 +18,7 @@ type CT_LayoutMode struct {
|
||||
|
||||
func NewCT_LayoutMode() *CT_LayoutMode {
|
||||
ret := &CT_LayoutMode{}
|
||||
ret.ValAttr = ST_LayoutModeFactor
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_LayoutMode) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_LayoutMode) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_LayoutModeFactor
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_LayoutTarget struct {
|
||||
|
||||
func NewCT_LayoutTarget() *CT_LayoutTarget {
|
||||
ret := &CT_LayoutTarget{}
|
||||
ret.ValAttr = ST_LayoutTargetOuter
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_LayoutTarget) MarshalXML(e *xml.Encoder, start xml.StartElement) err
|
||||
|
||||
func (m *CT_LayoutTarget) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_LayoutTargetOuter
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_LegendPos struct {
|
||||
|
||||
func NewCT_LegendPos() *CT_LegendPos {
|
||||
ret := &CT_LegendPos{}
|
||||
ret.ValAttr = ST_LegendPosR
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_LegendPos) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_LegendPos) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_LegendPosR
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_OfPieType struct {
|
||||
|
||||
func NewCT_OfPieType() *CT_OfPieType {
|
||||
ret := &CT_OfPieType{}
|
||||
ret.ValAttr = ST_OfPieTypePie
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_OfPieType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_OfPieType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_OfPieTypePie
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_Orientation struct {
|
||||
|
||||
func NewCT_Orientation() *CT_Orientation {
|
||||
ret := &CT_Orientation{}
|
||||
ret.ValAttr = ST_OrientationMinMax
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_Orientation) MarshalXML(e *xml.Encoder, start xml.StartElement) erro
|
||||
|
||||
func (m *CT_Orientation) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_OrientationMinMax
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -12,6 +12,7 @@ import (
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
|
||||
)
|
||||
|
||||
@ -31,6 +32,13 @@ type CT_PageSetup struct {
|
||||
|
||||
func NewCT_PageSetup() *CT_PageSetup {
|
||||
ret := &CT_PageSetup{}
|
||||
ret.PaperSizeAttr = gooxml.Uint32(1)
|
||||
ret.FirstPageNumberAttr = gooxml.Uint32(1)
|
||||
ret.OrientationAttr = ST_PageSetupOrientationDefault
|
||||
ret.BlackAndWhiteAttr = gooxml.Bool(false)
|
||||
ret.DraftAttr = gooxml.Bool(false)
|
||||
ret.UseFirstPageNumberAttr = gooxml.Bool(false)
|
||||
ret.CopiesAttr = gooxml.Uint32(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -89,6 +97,13 @@ func (m *CT_PageSetup) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_PageSetup) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.PaperSizeAttr = gooxml.Uint32(1)
|
||||
m.FirstPageNumberAttr = gooxml.Uint32(1)
|
||||
m.OrientationAttr = ST_PageSetupOrientationDefault
|
||||
m.BlackAndWhiteAttr = gooxml.Bool(false)
|
||||
m.DraftAttr = gooxml.Bool(false)
|
||||
m.UseFirstPageNumberAttr = gooxml.Bool(false)
|
||||
m.CopiesAttr = gooxml.Uint32(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "paperSize" {
|
||||
parsed, err := strconv.ParseUint(attr.Value, 10, 32)
|
||||
|
@ -18,6 +18,7 @@ type CT_RadarStyle struct {
|
||||
|
||||
func NewCT_RadarStyle() *CT_RadarStyle {
|
||||
ret := &CT_RadarStyle{}
|
||||
ret.ValAttr = ST_RadarStyleStandard
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_RadarStyle) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_RadarStyle) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_RadarStyleStandard
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_ScatterStyle struct {
|
||||
|
||||
func NewCT_ScatterStyle() *CT_ScatterStyle {
|
||||
ret := &CT_ScatterStyle{}
|
||||
ret.ValAttr = ST_ScatterStyleMarker
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_ScatterStyle) MarshalXML(e *xml.Encoder, start xml.StartElement) err
|
||||
|
||||
func (m *CT_ScatterStyle) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_ScatterStyleMarker
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_Shape struct {
|
||||
|
||||
func NewCT_Shape() *CT_Shape {
|
||||
ret := &CT_Shape{}
|
||||
ret.ValAttr = ST_ShapeBox
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_Shape) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Shape) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_ShapeBox
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_SizeRepresents struct {
|
||||
|
||||
func NewCT_SizeRepresents() *CT_SizeRepresents {
|
||||
ret := &CT_SizeRepresents{}
|
||||
ret.ValAttr = ST_SizeRepresentsArea
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_SizeRepresents) MarshalXML(e *xml.Encoder, start xml.StartElement) e
|
||||
|
||||
func (m *CT_SizeRepresents) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_SizeRepresentsArea
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_SplitType struct {
|
||||
|
||||
func NewCT_SplitType() *CT_SplitType {
|
||||
ret := &CT_SplitType{}
|
||||
ret.ValAttr = ST_SplitTypeAuto
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_SplitType) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_SplitType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_SplitTypeAuto
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_TickLblPos struct {
|
||||
|
||||
func NewCT_TickLblPos() *CT_TickLblPos {
|
||||
ret := &CT_TickLblPos{}
|
||||
ret.ValAttr = ST_TickLblPosNextTo
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_TickLblPos) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_TickLblPos) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_TickLblPosNextTo
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_TickMark struct {
|
||||
|
||||
func NewCT_TickMark() *CT_TickMark {
|
||||
ret := &CT_TickMark{}
|
||||
ret.ValAttr = ST_TickMarkCross
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_TickMark) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_TickMark) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_TickMarkCross
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_TimeUnit struct {
|
||||
|
||||
func NewCT_TimeUnit() *CT_TimeUnit {
|
||||
ret := &CT_TimeUnit{}
|
||||
ret.ValAttr = ST_TimeUnitDays
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_TimeUnit) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_TimeUnit) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_TimeUnitDays
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_TrendlineType struct {
|
||||
|
||||
func NewCT_TrendlineType() *CT_TrendlineType {
|
||||
ret := &CT_TrendlineType{}
|
||||
ret.ValAttr = ST_TrendlineTypeLinear
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_TrendlineType) MarshalXML(e *xml.Encoder, start xml.StartElement) er
|
||||
|
||||
func (m *CT_TrendlineType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_TrendlineTypeLinear
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -26,6 +27,7 @@ type CT_Connector struct {
|
||||
|
||||
func NewCT_Connector() *CT_Connector {
|
||||
ret := &CT_Connector{}
|
||||
ret.FPublishedAttr = gooxml.Bool(false)
|
||||
ret.NvCxnSpPr = NewCT_ConnectorNonVisual()
|
||||
ret.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
return ret
|
||||
@ -55,6 +57,7 @@ func (m *CT_Connector) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_Connector) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FPublishedAttr = gooxml.Bool(false)
|
||||
m.NvCxnSpPr = NewCT_ConnectorNonVisual()
|
||||
m.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
for _, attr := range start.Attr {
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -26,6 +27,7 @@ type CT_GraphicFrame struct {
|
||||
|
||||
func NewCT_GraphicFrame() *CT_GraphicFrame {
|
||||
ret := &CT_GraphicFrame{}
|
||||
ret.FPublishedAttr = gooxml.Bool(false)
|
||||
ret.NvGraphicFramePr = NewCT_GraphicFrameNonVisual()
|
||||
ret.Xfrm = drawingml.NewCT_Transform2D()
|
||||
ret.Graphic = drawingml.NewGraphic()
|
||||
@ -54,6 +56,7 @@ func (m *CT_GraphicFrame) MarshalXML(e *xml.Encoder, start xml.StartElement) err
|
||||
|
||||
func (m *CT_GraphicFrame) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FPublishedAttr = gooxml.Bool(false)
|
||||
m.NvGraphicFramePr = NewCT_GraphicFrameNonVisual()
|
||||
m.Xfrm = drawingml.NewCT_Transform2D()
|
||||
m.Graphic = drawingml.NewGraphic()
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -27,6 +28,7 @@ type CT_Picture struct {
|
||||
|
||||
func NewCT_Picture() *CT_Picture {
|
||||
ret := &CT_Picture{}
|
||||
ret.FPublishedAttr = gooxml.Bool(false)
|
||||
ret.NvPicPr = NewCT_PictureNonVisual()
|
||||
ret.BlipFill = drawingml.NewCT_BlipFillProperties()
|
||||
ret.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
@ -59,6 +61,7 @@ func (m *CT_Picture) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Picture) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FPublishedAttr = gooxml.Bool(false)
|
||||
m.NvPicPr = NewCT_PictureNonVisual()
|
||||
m.BlipFill = drawingml.NewCT_BlipFillProperties()
|
||||
m.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -29,6 +30,8 @@ type CT_Shape struct {
|
||||
|
||||
func NewCT_Shape() *CT_Shape {
|
||||
ret := &CT_Shape{}
|
||||
ret.FLocksTextAttr = gooxml.Bool(true)
|
||||
ret.FPublishedAttr = gooxml.Bool(false)
|
||||
ret.NvSpPr = NewCT_ShapeNonVisual()
|
||||
ret.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
return ret
|
||||
@ -70,6 +73,8 @@ func (m *CT_Shape) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Shape) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FLocksTextAttr = gooxml.Bool(true)
|
||||
m.FPublishedAttr = gooxml.Bool(false)
|
||||
m.NvSpPr = NewCT_ShapeNonVisual()
|
||||
m.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
for _, attr := range start.Attr {
|
||||
|
@ -21,6 +21,9 @@ type AG_ConstraintAttributes struct {
|
||||
|
||||
func NewAG_ConstraintAttributes() *AG_ConstraintAttributes {
|
||||
ret := &AG_ConstraintAttributes{}
|
||||
ret.TypeAttr = ST_ConstraintType(1)
|
||||
ret.ForAttr = ST_ConstraintRelationshipSelf
|
||||
ret.PtTypeAttr = ST_ElementTypeAll
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -55,6 +58,9 @@ func (m *AG_ConstraintAttributes) MarshalXML(e *xml.Encoder, start xml.StartElem
|
||||
|
||||
func (m *AG_ConstraintAttributes) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TypeAttr = ST_ConstraintType(1)
|
||||
m.ForAttr = ST_ConstraintRelationshipSelf
|
||||
m.PtTypeAttr = ST_ElementTypeAll
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "type" {
|
||||
m.TypeAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -21,6 +21,9 @@ type AG_ConstraintRefAttributes struct {
|
||||
|
||||
func NewAG_ConstraintRefAttributes() *AG_ConstraintRefAttributes {
|
||||
ret := &AG_ConstraintRefAttributes{}
|
||||
ret.RefTypeAttr = ST_ConstraintTypeNone
|
||||
ret.RefForAttr = ST_ConstraintRelationshipSelf
|
||||
ret.RefPtTypeAttr = ST_ElementTypeAll
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -55,6 +58,9 @@ func (m *AG_ConstraintRefAttributes) MarshalXML(e *xml.Encoder, start xml.StartE
|
||||
|
||||
func (m *AG_ConstraintRefAttributes) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.RefTypeAttr = ST_ConstraintTypeNone
|
||||
m.RefForAttr = ST_ConstraintRelationshipSelf
|
||||
m.RefPtTypeAttr = ST_ElementTypeAll
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "refType" {
|
||||
m.RefTypeAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -26,6 +27,7 @@ type CT_Algorithm struct {
|
||||
func NewCT_Algorithm() *CT_Algorithm {
|
||||
ret := &CT_Algorithm{}
|
||||
ret.TypeAttr = ST_AlgorithmType(1)
|
||||
ret.RevAttr = gooxml.Uint32(0)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -55,6 +57,7 @@ func (m *CT_Algorithm) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
func (m *CT_Algorithm) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TypeAttr = ST_AlgorithmType(1)
|
||||
m.RevAttr = gooxml.Uint32(0)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "type" {
|
||||
m.TypeAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_AnimLvl struct {
|
||||
|
||||
func NewCT_AnimLvl() *CT_AnimLvl {
|
||||
ret := &CT_AnimLvl{}
|
||||
ret.ValAttr = ST_AnimLvlStrNone
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_AnimLvl) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_AnimLvl) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_AnimLvlStrNone
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_AnimOne struct {
|
||||
|
||||
func NewCT_AnimOne() *CT_AnimOne {
|
||||
ret := &CT_AnimOne{}
|
||||
ret.ValAttr = ST_AnimOneStrOne
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_AnimOne) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_AnimOne) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_AnimOneStrOne
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_BulletEnabled struct {
|
||||
@ -19,6 +21,7 @@ type CT_BulletEnabled struct {
|
||||
|
||||
func NewCT_BulletEnabled() *CT_BulletEnabled {
|
||||
ret := &CT_BulletEnabled{}
|
||||
ret.ValAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -34,6 +37,7 @@ func (m *CT_BulletEnabled) MarshalXML(e *xml.Encoder, start xml.StartElement) er
|
||||
|
||||
func (m *CT_BulletEnabled) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -23,6 +23,8 @@ type CT_Colors struct {
|
||||
|
||||
func NewCT_Colors() *CT_Colors {
|
||||
ret := &CT_Colors{}
|
||||
ret.MethAttr = ST_ClrAppMethodSpan
|
||||
ret.HueDirAttr = ST_HueDirCw
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -53,6 +55,8 @@ func (m *CT_Colors) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Colors) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.MethAttr = ST_ClrAppMethodSpan
|
||||
m.HueDirAttr = ST_HueDirCw
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "meth" {
|
||||
m.MethAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -29,6 +30,12 @@ type CT_Constraint struct {
|
||||
|
||||
func NewCT_Constraint() *CT_Constraint {
|
||||
ret := &CT_Constraint{}
|
||||
ret.OpAttr = ST_BoolOperatorNone
|
||||
ret.ValAttr = gooxml.Float64(0)
|
||||
ret.FactAttr = gooxml.Float64(1)
|
||||
ret.RefTypeAttr = ST_ConstraintTypeNone
|
||||
ret.RefForAttr = ST_ConstraintRelationshipSelf
|
||||
ret.RefPtTypeAttr = ST_ElementTypeAll
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -84,6 +91,12 @@ func (m *CT_Constraint) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_Constraint) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.OpAttr = ST_BoolOperatorNone
|
||||
m.ValAttr = gooxml.Float64(0)
|
||||
m.FactAttr = gooxml.Float64(1)
|
||||
m.RefTypeAttr = ST_ConstraintTypeNone
|
||||
m.RefForAttr = ST_ConstraintRelationshipSelf
|
||||
m.RefPtTypeAttr = ST_ElementTypeAll
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "op" {
|
||||
m.OpAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -31,6 +31,7 @@ type CT_Cxn struct {
|
||||
|
||||
func NewCT_Cxn() *CT_Cxn {
|
||||
ret := &CT_Cxn{}
|
||||
ret.TypeAttr = ST_CxnTypeParOf
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -75,6 +76,7 @@ func (m *CT_Cxn) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Cxn) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TypeAttr = ST_CxnTypeParOf
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "modelId" {
|
||||
parsed, err := ParseUnionST_ModelId(attr.Value)
|
||||
|
@ -18,6 +18,7 @@ type CT_Direction struct {
|
||||
|
||||
func NewCT_Direction() *CT_Direction {
|
||||
ret := &CT_Direction{}
|
||||
ret.ValAttr = ST_DirectionNorm
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_Direction) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_Direction) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_DirectionNorm
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -18,6 +18,7 @@ type CT_HierBranchStyle struct {
|
||||
|
||||
func NewCT_HierBranchStyle() *CT_HierBranchStyle {
|
||||
ret := &CT_HierBranchStyle{}
|
||||
ret.ValAttr = ST_HierBranchStyleStd
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_HierBranchStyle) MarshalXML(e *xml.Encoder, start xml.StartElement)
|
||||
|
||||
func (m *CT_HierBranchStyle) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_HierBranchStyleStd
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -34,6 +34,7 @@ type CT_LayoutNode struct {
|
||||
|
||||
func NewCT_LayoutNode() *CT_LayoutNode {
|
||||
ret := &CT_LayoutNode{}
|
||||
ret.ChOrderAttr = ST_ChildOrderTypeB
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -104,6 +105,7 @@ func (m *CT_LayoutNode) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_LayoutNode) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ChOrderAttr = ST_ChildOrderTypeB
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "name" {
|
||||
parsed, err := attr.Value, error(nil)
|
||||
|
@ -29,6 +29,9 @@ type CT_NumericRule struct {
|
||||
|
||||
func NewCT_NumericRule() *CT_NumericRule {
|
||||
ret := &CT_NumericRule{}
|
||||
ret.TypeAttr = ST_ConstraintType(1)
|
||||
ret.ForAttr = ST_ConstraintRelationshipSelf
|
||||
ret.PtTypeAttr = ST_ElementTypeAll
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -81,6 +84,9 @@ func (m *CT_NumericRule) MarshalXML(e *xml.Encoder, start xml.StartElement) erro
|
||||
|
||||
func (m *CT_NumericRule) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TypeAttr = ST_ConstraintType(1)
|
||||
m.ForAttr = ST_ConstraintRelationshipSelf
|
||||
m.PtTypeAttr = ST_ElementTypeAll
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
parsed, err := strconv.ParseFloat(attr.Value, 64)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_OrgChart struct {
|
||||
@ -19,6 +21,7 @@ type CT_OrgChart struct {
|
||||
|
||||
func NewCT_OrgChart() *CT_OrgChart {
|
||||
ret := &CT_OrgChart{}
|
||||
ret.ValAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -34,6 +37,7 @@ func (m *CT_OrgChart) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_OrgChart) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -27,6 +27,7 @@ type CT_Pt struct {
|
||||
|
||||
func NewCT_Pt() *CT_Pt {
|
||||
ret := &CT_Pt{}
|
||||
ret.TypeAttr = ST_PtTypeNode
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -67,6 +68,7 @@ func (m *CT_Pt) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Pt) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TypeAttr = ST_PtTypeNode
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "modelId" {
|
||||
parsed, err := ParseUnionST_ModelId(attr.Value)
|
||||
|
@ -18,6 +18,7 @@ type CT_ResizeHandles struct {
|
||||
|
||||
func NewCT_ResizeHandles() *CT_ResizeHandles {
|
||||
ret := &CT_ResizeHandles{}
|
||||
ret.ValAttr = ST_ResizeHandlesStrRel
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_ResizeHandles) MarshalXML(e *xml.Encoder, start xml.StartElement) er
|
||||
|
||||
func (m *CT_ResizeHandles) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_ResizeHandlesStrRel
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_SampleData struct {
|
||||
@ -21,6 +23,7 @@ type CT_SampleData struct {
|
||||
|
||||
func NewCT_SampleData() *CT_SampleData {
|
||||
ret := &CT_SampleData{}
|
||||
ret.UseDefAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -40,6 +43,7 @@ func (m *CT_SampleData) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_SampleData) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.UseDefAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "useDef" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -30,6 +31,10 @@ type CT_Shape struct {
|
||||
|
||||
func NewCT_Shape() *CT_Shape {
|
||||
ret := &CT_Shape{}
|
||||
ret.RotAttr = gooxml.Float64(0)
|
||||
ret.HideGeomAttr = gooxml.Bool(false)
|
||||
ret.LkTxEntryAttr = gooxml.Bool(false)
|
||||
ret.BlipPhldrAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -77,6 +82,10 @@ func (m *CT_Shape) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Shape) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.RotAttr = gooxml.Float64(0)
|
||||
m.HideGeomAttr = gooxml.Bool(false)
|
||||
m.LkTxEntryAttr = gooxml.Bool(false)
|
||||
m.BlipPhldrAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "rot" {
|
||||
parsed, err := strconv.ParseFloat(attr.Value, 64)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_AnchorClientData struct {
|
||||
@ -20,6 +22,8 @@ type CT_AnchorClientData struct {
|
||||
|
||||
func NewCT_AnchorClientData() *CT_AnchorClientData {
|
||||
ret := &CT_AnchorClientData{}
|
||||
ret.FLocksWithSheetAttr = gooxml.Bool(true)
|
||||
ret.FPrintsWithSheetAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -39,6 +43,8 @@ func (m *CT_AnchorClientData) MarshalXML(e *xml.Encoder, start xml.StartElement)
|
||||
|
||||
func (m *CT_AnchorClientData) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FLocksWithSheetAttr = gooxml.Bool(true)
|
||||
m.FPrintsWithSheetAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "fLocksWithSheet" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -26,6 +27,7 @@ type CT_Connector struct {
|
||||
|
||||
func NewCT_Connector() *CT_Connector {
|
||||
ret := &CT_Connector{}
|
||||
ret.FPublishedAttr = gooxml.Bool(false)
|
||||
ret.NvCxnSpPr = NewCT_ConnectorNonVisual()
|
||||
ret.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
return ret
|
||||
@ -55,6 +57,7 @@ func (m *CT_Connector) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_Connector) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FPublishedAttr = gooxml.Bool(false)
|
||||
m.NvCxnSpPr = NewCT_ConnectorNonVisual()
|
||||
m.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
for _, attr := range start.Attr {
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -26,6 +27,7 @@ type CT_GraphicalObjectFrame struct {
|
||||
|
||||
func NewCT_GraphicalObjectFrame() *CT_GraphicalObjectFrame {
|
||||
ret := &CT_GraphicalObjectFrame{}
|
||||
ret.FPublishedAttr = gooxml.Bool(false)
|
||||
ret.NvGraphicFramePr = NewCT_GraphicalObjectFrameNonVisual()
|
||||
ret.Xfrm = drawingml.NewCT_Transform2D()
|
||||
ret.Graphic = drawingml.NewGraphic()
|
||||
@ -54,6 +56,7 @@ func (m *CT_GraphicalObjectFrame) MarshalXML(e *xml.Encoder, start xml.StartElem
|
||||
|
||||
func (m *CT_GraphicalObjectFrame) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FPublishedAttr = gooxml.Bool(false)
|
||||
m.NvGraphicFramePr = NewCT_GraphicalObjectFrameNonVisual()
|
||||
m.Xfrm = drawingml.NewCT_Transform2D()
|
||||
m.Graphic = drawingml.NewGraphic()
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -27,6 +28,7 @@ type CT_Picture struct {
|
||||
|
||||
func NewCT_Picture() *CT_Picture {
|
||||
ret := &CT_Picture{}
|
||||
ret.FPublishedAttr = gooxml.Bool(false)
|
||||
ret.NvPicPr = NewCT_PictureNonVisual()
|
||||
ret.BlipFill = drawingml.NewCT_BlipFillProperties()
|
||||
ret.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
@ -59,6 +61,7 @@ func (m *CT_Picture) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Picture) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FPublishedAttr = gooxml.Bool(false)
|
||||
m.NvPicPr = NewCT_PictureNonVisual()
|
||||
m.BlipFill = drawingml.NewCT_BlipFillProperties()
|
||||
m.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -29,6 +30,8 @@ type CT_Shape struct {
|
||||
|
||||
func NewCT_Shape() *CT_Shape {
|
||||
ret := &CT_Shape{}
|
||||
ret.FLocksTextAttr = gooxml.Bool(true)
|
||||
ret.FPublishedAttr = gooxml.Bool(false)
|
||||
ret.NvSpPr = NewCT_ShapeNonVisual()
|
||||
ret.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
return ret
|
||||
@ -70,6 +73,8 @@ func (m *CT_Shape) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Shape) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FLocksTextAttr = gooxml.Bool(true)
|
||||
m.FPublishedAttr = gooxml.Bool(false)
|
||||
m.NvSpPr = NewCT_ShapeNonVisual()
|
||||
m.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
for _, attr := range start.Attr {
|
||||
|
@ -22,6 +22,7 @@ type CT_TwoCellAnchor struct {
|
||||
|
||||
func NewCT_TwoCellAnchor() *CT_TwoCellAnchor {
|
||||
ret := &CT_TwoCellAnchor{}
|
||||
ret.EditAsAttr = ST_EditAsTwoCell
|
||||
ret.From = NewCT_Marker()
|
||||
ret.To = NewCT_Marker()
|
||||
ret.ClientData = NewCT_AnchorClientData()
|
||||
@ -52,6 +53,7 @@ func (m *CT_TwoCellAnchor) MarshalXML(e *xml.Encoder, start xml.StartElement) er
|
||||
|
||||
func (m *CT_TwoCellAnchor) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.EditAsAttr = ST_EditAsTwoCell
|
||||
m.From = NewCT_Marker()
|
||||
m.To = NewCT_Marker()
|
||||
m.ClientData = NewCT_AnchorClientData()
|
||||
|
@ -19,6 +19,7 @@ type CT_PosHChoice struct {
|
||||
|
||||
func NewCT_PosHChoice() *CT_PosHChoice {
|
||||
ret := &CT_PosHChoice{}
|
||||
ret.Align = ST_AlignH(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_PosHChoice) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_PosHChoice) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.Align = ST_AlignH(1)
|
||||
lCT_PosHChoice:
|
||||
for {
|
||||
tok, err := d.Token()
|
||||
|
@ -19,6 +19,7 @@ type CT_PosVChoice struct {
|
||||
|
||||
func NewCT_PosVChoice() *CT_PosVChoice {
|
||||
ret := &CT_PosVChoice{}
|
||||
ret.Align = ST_AlignV(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_PosVChoice) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_PosVChoice) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.Align = ST_AlignV(1)
|
||||
lCT_PosVChoice:
|
||||
for {
|
||||
tok, err := d.Token()
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -24,6 +25,7 @@ type CT_TextboxInfo struct {
|
||||
|
||||
func NewCT_TextboxInfo() *CT_TextboxInfo {
|
||||
ret := &CT_TextboxInfo{}
|
||||
ret.IdAttr = gooxml.Uint16(0)
|
||||
ret.TxbxContent = NewCT_TxbxContent()
|
||||
return ret
|
||||
}
|
||||
@ -46,6 +48,7 @@ func (m *CT_TextboxInfo) MarshalXML(e *xml.Encoder, start xml.StartElement) erro
|
||||
|
||||
func (m *CT_TextboxInfo) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.IdAttr = gooxml.Uint16(0)
|
||||
m.TxbxContent = NewCT_TxbxContent()
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "id" {
|
||||
|
@ -25,6 +25,7 @@ type CT_WordprocessingContentPart struct {
|
||||
|
||||
func NewCT_WordprocessingContentPart() *CT_WordprocessingContentPart {
|
||||
ret := &CT_WordprocessingContentPart{}
|
||||
ret.BwModeAttr = drawingml.ST_BlackWhiteMode(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -57,6 +58,7 @@ func (m *CT_WordprocessingContentPart) MarshalXML(e *xml.Encoder, start xml.Star
|
||||
|
||||
func (m *CT_WordprocessingContentPart) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.BwModeAttr = drawingml.ST_BlackWhiteMode(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "bwMode" {
|
||||
m.BwModeAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -13,6 +13,7 @@ import (
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/drawingml"
|
||||
)
|
||||
|
||||
@ -29,6 +30,7 @@ type CT_WordprocessingShape struct {
|
||||
|
||||
func NewCT_WordprocessingShape() *CT_WordprocessingShape {
|
||||
ret := &CT_WordprocessingShape{}
|
||||
ret.NormalEastAsianFlowAttr = gooxml.Bool(false)
|
||||
ret.Choice = NewCT_WordprocessingShapeChoice()
|
||||
ret.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
ret.BodyPr = drawingml.NewCT_TextBodyProperties()
|
||||
@ -67,6 +69,7 @@ func (m *CT_WordprocessingShape) MarshalXML(e *xml.Encoder, start xml.StartEleme
|
||||
|
||||
func (m *CT_WordprocessingShape) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.NormalEastAsianFlowAttr = gooxml.Bool(false)
|
||||
m.Choice = NewCT_WordprocessingShapeChoice()
|
||||
m.SpPr = drawingml.NewCT_ShapeProperties()
|
||||
m.BodyPr = drawingml.NewCT_TextBodyProperties()
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type AG_Locking struct {
|
||||
@ -28,6 +30,16 @@ type AG_Locking struct {
|
||||
|
||||
func NewAG_Locking() *AG_Locking {
|
||||
ret := &AG_Locking{}
|
||||
ret.NoGrpAttr = gooxml.Bool(false)
|
||||
ret.NoSelectAttr = gooxml.Bool(false)
|
||||
ret.NoRotAttr = gooxml.Bool(false)
|
||||
ret.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
ret.NoMoveAttr = gooxml.Bool(false)
|
||||
ret.NoResizeAttr = gooxml.Bool(false)
|
||||
ret.NoEditPointsAttr = gooxml.Bool(false)
|
||||
ret.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
ret.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
ret.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -77,6 +89,16 @@ func (m *AG_Locking) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *AG_Locking) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.NoGrpAttr = gooxml.Bool(false)
|
||||
m.NoSelectAttr = gooxml.Bool(false)
|
||||
m.NoRotAttr = gooxml.Bool(false)
|
||||
m.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
m.NoMoveAttr = gooxml.Bool(false)
|
||||
m.NoResizeAttr = gooxml.Bool(false)
|
||||
m.NoEditPointsAttr = gooxml.Bool(false)
|
||||
m.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
m.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
m.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "noGrp" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_AnimationChartBuildProperties struct {
|
||||
@ -20,6 +22,7 @@ type CT_AnimationChartBuildProperties struct {
|
||||
|
||||
func NewCT_AnimationChartBuildProperties() *CT_AnimationChartBuildProperties {
|
||||
ret := &CT_AnimationChartBuildProperties{}
|
||||
ret.AnimBgAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -39,6 +42,7 @@ func (m *CT_AnimationChartBuildProperties) MarshalXML(e *xml.Encoder, start xml.
|
||||
|
||||
func (m *CT_AnimationChartBuildProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.AnimBgAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "bld" {
|
||||
parsed, err := ParseUnionST_AnimationChartBuildType(attr.Value)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_AnimationDgmBuildProperties struct {
|
||||
@ -20,6 +22,7 @@ type CT_AnimationDgmBuildProperties struct {
|
||||
|
||||
func NewCT_AnimationDgmBuildProperties() *CT_AnimationDgmBuildProperties {
|
||||
ret := &CT_AnimationDgmBuildProperties{}
|
||||
ret.RevAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -39,6 +42,7 @@ func (m *CT_AnimationDgmBuildProperties) MarshalXML(e *xml.Encoder, start xml.St
|
||||
|
||||
func (m *CT_AnimationDgmBuildProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.RevAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "bld" {
|
||||
parsed, err := ParseUnionST_AnimationDgmBuildType(attr.Value)
|
||||
|
@ -11,6 +11,7 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
"baliance.com/gooxml/schema/schemas.openxmlformats.org/officeDocument/2006/sharedTypes"
|
||||
)
|
||||
|
||||
@ -21,6 +22,8 @@ type CT_AnimationDgmElement struct {
|
||||
|
||||
func NewCT_AnimationDgmElement() *CT_AnimationDgmElement {
|
||||
ret := &CT_AnimationDgmElement{}
|
||||
ret.IdAttr = gooxml.String("{00000000-0000-0000-0000-000000000000}")
|
||||
ret.BldStepAttr = ST_DgmBuildStepSp
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -43,6 +46,8 @@ func (m *CT_AnimationDgmElement) MarshalXML(e *xml.Encoder, start xml.StartEleme
|
||||
|
||||
func (m *CT_AnimationDgmElement) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.IdAttr = gooxml.String("{00000000-0000-0000-0000-000000000000}")
|
||||
m.BldStepAttr = ST_DgmBuildStepSp
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "id" {
|
||||
parsed, err := attr.Value, error(nil)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_AudioCDTime struct {
|
||||
@ -20,6 +22,7 @@ type CT_AudioCDTime struct {
|
||||
|
||||
func NewCT_AudioCDTime() *CT_AudioCDTime {
|
||||
ret := &CT_AudioCDTime{}
|
||||
ret.TimeAttr = gooxml.Uint32(0)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -37,6 +40,7 @@ func (m *CT_AudioCDTime) MarshalXML(e *xml.Encoder, start xml.StartElement) erro
|
||||
|
||||
func (m *CT_AudioCDTime) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TimeAttr = gooxml.Uint32(0)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "track" {
|
||||
parsed, err := strconv.ParseUint(attr.Value, 10, 8)
|
||||
|
@ -21,6 +21,7 @@ type CT_Bevel struct {
|
||||
|
||||
func NewCT_Bevel() *CT_Bevel {
|
||||
ret := &CT_Bevel{}
|
||||
ret.PrstAttr = ST_BevelPresetTypeCircle
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -47,6 +48,7 @@ func (m *CT_Bevel) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Bevel) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.PrstAttr = ST_BevelPresetTypeCircle
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "w" {
|
||||
parsed, err := strconv.ParseInt(attr.Value, 10, 64)
|
||||
|
@ -23,6 +23,7 @@ type CT_Blip struct {
|
||||
|
||||
func NewCT_Blip() *CT_Blip {
|
||||
ret := &CT_Blip{}
|
||||
ret.CstateAttr = ST_BlipCompressionNone
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -58,6 +59,7 @@ func (m *CT_Blip) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Blip) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.CstateAttr = ST_BlipCompressionNone
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "cstate" {
|
||||
m.CstateAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_BlurEffect struct {
|
||||
@ -20,6 +22,7 @@ type CT_BlurEffect struct {
|
||||
|
||||
func NewCT_BlurEffect() *CT_BlurEffect {
|
||||
ret := &CT_BlurEffect{}
|
||||
ret.GrowAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -39,6 +42,7 @@ func (m *CT_BlurEffect) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_BlurEffect) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.GrowAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "rad" {
|
||||
parsed, err := strconv.ParseInt(attr.Value, 10, 64)
|
||||
|
@ -21,6 +21,7 @@ type CT_Cell3D struct {
|
||||
|
||||
func NewCT_Cell3D() *CT_Cell3D {
|
||||
ret := &CT_Cell3D{}
|
||||
ret.PrstMaterialAttr = ST_PresetMaterialTypePlastic
|
||||
ret.Bevel = NewCT_Bevel()
|
||||
return ret
|
||||
}
|
||||
@ -50,6 +51,7 @@ func (m *CT_Cell3D) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Cell3D) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.PrstMaterialAttr = ST_PresetMaterialTypePlastic
|
||||
m.Bevel = NewCT_Bevel()
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "prstMaterial" {
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_ColorChangeEffect struct {
|
||||
@ -22,6 +24,7 @@ type CT_ColorChangeEffect struct {
|
||||
|
||||
func NewCT_ColorChangeEffect() *CT_ColorChangeEffect {
|
||||
ret := &CT_ColorChangeEffect{}
|
||||
ret.UseAAttr = gooxml.Bool(true)
|
||||
ret.ClrFrom = NewCT_Color()
|
||||
ret.ClrTo = NewCT_Color()
|
||||
return ret
|
||||
@ -43,6 +46,7 @@ func (m *CT_ColorChangeEffect) MarshalXML(e *xml.Encoder, start xml.StartElement
|
||||
|
||||
func (m *CT_ColorChangeEffect) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.UseAAttr = gooxml.Bool(true)
|
||||
m.ClrFrom = NewCT_Color()
|
||||
m.ClrTo = NewCT_Color()
|
||||
for _, attr := range start.Attr {
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_ConnectorLocking struct {
|
||||
@ -30,6 +32,16 @@ type CT_ConnectorLocking struct {
|
||||
|
||||
func NewCT_ConnectorLocking() *CT_ConnectorLocking {
|
||||
ret := &CT_ConnectorLocking{}
|
||||
ret.NoGrpAttr = gooxml.Bool(false)
|
||||
ret.NoSelectAttr = gooxml.Bool(false)
|
||||
ret.NoRotAttr = gooxml.Bool(false)
|
||||
ret.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
ret.NoMoveAttr = gooxml.Bool(false)
|
||||
ret.NoResizeAttr = gooxml.Bool(false)
|
||||
ret.NoEditPointsAttr = gooxml.Bool(false)
|
||||
ret.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
ret.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
ret.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -85,6 +97,16 @@ func (m *CT_ConnectorLocking) MarshalXML(e *xml.Encoder, start xml.StartElement)
|
||||
|
||||
func (m *CT_ConnectorLocking) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.NoGrpAttr = gooxml.Bool(false)
|
||||
m.NoSelectAttr = gooxml.Bool(false)
|
||||
m.NoRotAttr = gooxml.Bool(false)
|
||||
m.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
m.NoMoveAttr = gooxml.Bool(false)
|
||||
m.NoResizeAttr = gooxml.Bool(false)
|
||||
m.NoEditPointsAttr = gooxml.Bool(false)
|
||||
m.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
m.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
m.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "noGrp" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_ContentPartLocking struct {
|
||||
@ -30,6 +32,16 @@ type CT_ContentPartLocking struct {
|
||||
|
||||
func NewCT_ContentPartLocking() *CT_ContentPartLocking {
|
||||
ret := &CT_ContentPartLocking{}
|
||||
ret.NoGrpAttr = gooxml.Bool(false)
|
||||
ret.NoSelectAttr = gooxml.Bool(false)
|
||||
ret.NoRotAttr = gooxml.Bool(false)
|
||||
ret.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
ret.NoMoveAttr = gooxml.Bool(false)
|
||||
ret.NoResizeAttr = gooxml.Bool(false)
|
||||
ret.NoEditPointsAttr = gooxml.Bool(false)
|
||||
ret.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
ret.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
ret.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -85,6 +97,16 @@ func (m *CT_ContentPartLocking) MarshalXML(e *xml.Encoder, start xml.StartElemen
|
||||
|
||||
func (m *CT_ContentPartLocking) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.NoGrpAttr = gooxml.Bool(false)
|
||||
m.NoSelectAttr = gooxml.Bool(false)
|
||||
m.NoRotAttr = gooxml.Bool(false)
|
||||
m.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
m.NoMoveAttr = gooxml.Bool(false)
|
||||
m.NoResizeAttr = gooxml.Bool(false)
|
||||
m.NoEditPointsAttr = gooxml.Bool(false)
|
||||
m.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
m.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
m.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "noGrp" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -50,6 +50,7 @@ type CT_EffectContainer struct {
|
||||
|
||||
func NewCT_EffectContainer() *CT_EffectContainer {
|
||||
ret := &CT_EffectContainer{}
|
||||
ret.TypeAttr = ST_EffectContainerTypeSib
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -192,6 +193,7 @@ func (m *CT_EffectContainer) MarshalXML(e *xml.Encoder, start xml.StartElement)
|
||||
|
||||
func (m *CT_EffectContainer) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TypeAttr = ST_EffectContainerTypeSib
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "type" {
|
||||
m.TypeAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -25,6 +25,7 @@ type CT_GradientFillProperties struct {
|
||||
|
||||
func NewCT_GradientFillProperties() *CT_GradientFillProperties {
|
||||
ret := &CT_GradientFillProperties{}
|
||||
ret.FlipAttr = ST_TileFlipMode(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -63,6 +64,7 @@ func (m *CT_GradientFillProperties) MarshalXML(e *xml.Encoder, start xml.StartEl
|
||||
|
||||
func (m *CT_GradientFillProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FlipAttr = ST_TileFlipMode(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "flip" {
|
||||
m.FlipAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_GraphicalObjectFrameLocking struct {
|
||||
@ -26,6 +28,12 @@ type CT_GraphicalObjectFrameLocking struct {
|
||||
|
||||
func NewCT_GraphicalObjectFrameLocking() *CT_GraphicalObjectFrameLocking {
|
||||
ret := &CT_GraphicalObjectFrameLocking{}
|
||||
ret.NoGrpAttr = gooxml.Bool(false)
|
||||
ret.NoDrilldownAttr = gooxml.Bool(false)
|
||||
ret.NoSelectAttr = gooxml.Bool(false)
|
||||
ret.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
ret.NoMoveAttr = gooxml.Bool(false)
|
||||
ret.NoResizeAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -65,6 +73,12 @@ func (m *CT_GraphicalObjectFrameLocking) MarshalXML(e *xml.Encoder, start xml.St
|
||||
|
||||
func (m *CT_GraphicalObjectFrameLocking) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.NoGrpAttr = gooxml.Bool(false)
|
||||
m.NoDrilldownAttr = gooxml.Bool(false)
|
||||
m.NoSelectAttr = gooxml.Bool(false)
|
||||
m.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
m.NoMoveAttr = gooxml.Bool(false)
|
||||
m.NoResizeAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "noGrp" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_GroupLocking struct {
|
||||
@ -27,6 +29,13 @@ type CT_GroupLocking struct {
|
||||
|
||||
func NewCT_GroupLocking() *CT_GroupLocking {
|
||||
ret := &CT_GroupLocking{}
|
||||
ret.NoGrpAttr = gooxml.Bool(false)
|
||||
ret.NoUngrpAttr = gooxml.Bool(false)
|
||||
ret.NoSelectAttr = gooxml.Bool(false)
|
||||
ret.NoRotAttr = gooxml.Bool(false)
|
||||
ret.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
ret.NoMoveAttr = gooxml.Bool(false)
|
||||
ret.NoResizeAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -70,6 +79,13 @@ func (m *CT_GroupLocking) MarshalXML(e *xml.Encoder, start xml.StartElement) err
|
||||
|
||||
func (m *CT_GroupLocking) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.NoGrpAttr = gooxml.Bool(false)
|
||||
m.NoUngrpAttr = gooxml.Bool(false)
|
||||
m.NoSelectAttr = gooxml.Bool(false)
|
||||
m.NoRotAttr = gooxml.Bool(false)
|
||||
m.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
m.NoMoveAttr = gooxml.Bool(false)
|
||||
m.NoResizeAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "noGrp" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -29,6 +29,7 @@ type CT_GroupShapeProperties struct {
|
||||
|
||||
func NewCT_GroupShapeProperties() *CT_GroupShapeProperties {
|
||||
ret := &CT_GroupShapeProperties{}
|
||||
ret.BwModeAttr = ST_BlackWhiteMode(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -91,6 +92,7 @@ func (m *CT_GroupShapeProperties) MarshalXML(e *xml.Encoder, start xml.StartElem
|
||||
|
||||
func (m *CT_GroupShapeProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.BwModeAttr = ST_BlackWhiteMode(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "bwMode" {
|
||||
m.BwModeAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_GroupTransform2D struct {
|
||||
@ -26,6 +28,8 @@ type CT_GroupTransform2D struct {
|
||||
|
||||
func NewCT_GroupTransform2D() *CT_GroupTransform2D {
|
||||
ret := &CT_GroupTransform2D{}
|
||||
ret.FlipHAttr = gooxml.Bool(false)
|
||||
ret.FlipVAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -65,6 +69,8 @@ func (m *CT_GroupTransform2D) MarshalXML(e *xml.Encoder, start xml.StartElement)
|
||||
|
||||
func (m *CT_GroupTransform2D) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FlipHAttr = gooxml.Bool(false)
|
||||
m.FlipVAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "rot" {
|
||||
parsed, err := strconv.ParseInt(attr.Value, 10, 32)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_Hyperlink struct {
|
||||
@ -29,6 +31,9 @@ type CT_Hyperlink struct {
|
||||
|
||||
func NewCT_Hyperlink() *CT_Hyperlink {
|
||||
ret := &CT_Hyperlink{}
|
||||
ret.HistoryAttr = gooxml.Bool(true)
|
||||
ret.HighlightClickAttr = gooxml.Bool(false)
|
||||
ret.EndSndAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -80,6 +85,9 @@ func (m *CT_Hyperlink) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_Hyperlink) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.HistoryAttr = gooxml.Bool(true)
|
||||
m.HighlightClickAttr = gooxml.Bool(false)
|
||||
m.EndSndAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "id" {
|
||||
parsed, err := attr.Value, error(nil)
|
||||
|
@ -20,6 +20,9 @@ type CT_LineEndProperties struct {
|
||||
|
||||
func NewCT_LineEndProperties() *CT_LineEndProperties {
|
||||
ret := &CT_LineEndProperties{}
|
||||
ret.TypeAttr = ST_LineEndType(1)
|
||||
ret.WAttr = ST_LineEndWidth(1)
|
||||
ret.LenAttr = ST_LineEndLength(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -52,6 +55,9 @@ func (m *CT_LineEndProperties) MarshalXML(e *xml.Encoder, start xml.StartElement
|
||||
|
||||
func (m *CT_LineEndProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TypeAttr = ST_LineEndType(1)
|
||||
m.WAttr = ST_LineEndWidth(1)
|
||||
m.LenAttr = ST_LineEndLength(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "type" {
|
||||
m.TypeAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -35,6 +35,9 @@ type CT_LineProperties struct {
|
||||
|
||||
func NewCT_LineProperties() *CT_LineProperties {
|
||||
ret := &CT_LineProperties{}
|
||||
ret.CapAttr = ST_LineCap(1)
|
||||
ret.CmpdAttr = ST_CompoundLine(1)
|
||||
ret.AlgnAttr = ST_PenAlignment(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -119,6 +122,9 @@ func (m *CT_LineProperties) MarshalXML(e *xml.Encoder, start xml.StartElement) e
|
||||
|
||||
func (m *CT_LineProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.CapAttr = ST_LineCap(1)
|
||||
m.CmpdAttr = ST_CompoundLine(1)
|
||||
m.AlgnAttr = ST_PenAlignment(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "w" {
|
||||
parsed, err := strconv.ParseInt(attr.Value, 10, 32)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_NonVisualContentPartProperties struct {
|
||||
@ -22,6 +24,7 @@ type CT_NonVisualContentPartProperties struct {
|
||||
|
||||
func NewCT_NonVisualContentPartProperties() *CT_NonVisualContentPartProperties {
|
||||
ret := &CT_NonVisualContentPartProperties{}
|
||||
ret.IsCommentAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -46,6 +49,7 @@ func (m *CT_NonVisualContentPartProperties) MarshalXML(e *xml.Encoder, start xml
|
||||
|
||||
func (m *CT_NonVisualContentPartProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.IsCommentAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "isComment" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_NonVisualDrawingProps struct {
|
||||
@ -27,6 +29,7 @@ type CT_NonVisualDrawingProps struct {
|
||||
|
||||
func NewCT_NonVisualDrawingProps() *CT_NonVisualDrawingProps {
|
||||
ret := &CT_NonVisualDrawingProps{}
|
||||
ret.HiddenAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -66,6 +69,7 @@ func (m *CT_NonVisualDrawingProps) MarshalXML(e *xml.Encoder, start xml.StartEle
|
||||
|
||||
func (m *CT_NonVisualDrawingProps) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.HiddenAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "id" {
|
||||
parsed, err := strconv.ParseUint(attr.Value, 10, 32)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_NonVisualDrawingShapeProps struct {
|
||||
@ -22,6 +24,7 @@ type CT_NonVisualDrawingShapeProps struct {
|
||||
|
||||
func NewCT_NonVisualDrawingShapeProps() *CT_NonVisualDrawingShapeProps {
|
||||
ret := &CT_NonVisualDrawingShapeProps{}
|
||||
ret.TxBoxAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -45,6 +48,7 @@ func (m *CT_NonVisualDrawingShapeProps) MarshalXML(e *xml.Encoder, start xml.Sta
|
||||
|
||||
func (m *CT_NonVisualDrawingShapeProps) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.TxBoxAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "txBox" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_NonVisualPictureProperties struct {
|
||||
@ -22,6 +24,7 @@ type CT_NonVisualPictureProperties struct {
|
||||
|
||||
func NewCT_NonVisualPictureProperties() *CT_NonVisualPictureProperties {
|
||||
ret := &CT_NonVisualPictureProperties{}
|
||||
ret.PreferRelativeResizeAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -45,6 +48,7 @@ func (m *CT_NonVisualPictureProperties) MarshalXML(e *xml.Encoder, start xml.Sta
|
||||
|
||||
func (m *CT_NonVisualPictureProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.PreferRelativeResizeAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "preferRelativeResize" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_OuterShadowEffect struct {
|
||||
@ -34,6 +36,8 @@ type CT_OuterShadowEffect struct {
|
||||
|
||||
func NewCT_OuterShadowEffect() *CT_OuterShadowEffect {
|
||||
ret := &CT_OuterShadowEffect{}
|
||||
ret.AlgnAttr = ST_RectAlignmentB
|
||||
ret.RotWithShapeAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -108,6 +112,8 @@ func (m *CT_OuterShadowEffect) MarshalXML(e *xml.Encoder, start xml.StartElement
|
||||
|
||||
func (m *CT_OuterShadowEffect) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.AlgnAttr = ST_RectAlignmentB
|
||||
m.RotWithShapeAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "blurRad" {
|
||||
parsed, err := strconv.ParseInt(attr.Value, 10, 64)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_Path2D struct {
|
||||
@ -30,6 +32,9 @@ type CT_Path2D struct {
|
||||
|
||||
func NewCT_Path2D() *CT_Path2D {
|
||||
ret := &CT_Path2D{}
|
||||
ret.FillAttr = ST_PathFillModeNorm
|
||||
ret.StrokeAttr = gooxml.Bool(true)
|
||||
ret.ExtrusionOkAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -88,6 +93,9 @@ func (m *CT_Path2D) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Path2D) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.FillAttr = ST_PathFillModeNorm
|
||||
m.StrokeAttr = gooxml.Bool(true)
|
||||
m.ExtrusionOkAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "w" {
|
||||
parsed, err := strconv.ParseInt(attr.Value, 10, 64)
|
||||
|
@ -19,6 +19,7 @@ type CT_PathShadeProperties struct {
|
||||
|
||||
func NewCT_PathShadeProperties() *CT_PathShadeProperties {
|
||||
ret := &CT_PathShadeProperties{}
|
||||
ret.PathAttr = ST_PathShadeType(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -41,6 +42,7 @@ func (m *CT_PathShadeProperties) MarshalXML(e *xml.Encoder, start xml.StartEleme
|
||||
|
||||
func (m *CT_PathShadeProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.PathAttr = ST_PathShadeType(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "path" {
|
||||
m.PathAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -20,6 +20,7 @@ type CT_PatternFillProperties struct {
|
||||
|
||||
func NewCT_PatternFillProperties() *CT_PatternFillProperties {
|
||||
ret := &CT_PatternFillProperties{}
|
||||
ret.PrstAttr = ST_PresetPatternVal(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -46,6 +47,7 @@ func (m *CT_PatternFillProperties) MarshalXML(e *xml.Encoder, start xml.StartEle
|
||||
|
||||
func (m *CT_PatternFillProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.PrstAttr = ST_PresetPatternVal(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "prst" {
|
||||
m.PrstAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_PictureLocking struct {
|
||||
@ -31,6 +33,17 @@ type CT_PictureLocking struct {
|
||||
|
||||
func NewCT_PictureLocking() *CT_PictureLocking {
|
||||
ret := &CT_PictureLocking{}
|
||||
ret.NoCropAttr = gooxml.Bool(false)
|
||||
ret.NoGrpAttr = gooxml.Bool(false)
|
||||
ret.NoSelectAttr = gooxml.Bool(false)
|
||||
ret.NoRotAttr = gooxml.Bool(false)
|
||||
ret.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
ret.NoMoveAttr = gooxml.Bool(false)
|
||||
ret.NoResizeAttr = gooxml.Bool(false)
|
||||
ret.NoEditPointsAttr = gooxml.Bool(false)
|
||||
ret.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
ret.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
ret.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -90,6 +103,17 @@ func (m *CT_PictureLocking) MarshalXML(e *xml.Encoder, start xml.StartElement) e
|
||||
|
||||
func (m *CT_PictureLocking) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.NoCropAttr = gooxml.Bool(false)
|
||||
m.NoGrpAttr = gooxml.Bool(false)
|
||||
m.NoSelectAttr = gooxml.Bool(false)
|
||||
m.NoRotAttr = gooxml.Bool(false)
|
||||
m.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
m.NoMoveAttr = gooxml.Bool(false)
|
||||
m.NoResizeAttr = gooxml.Bool(false)
|
||||
m.NoEditPointsAttr = gooxml.Bool(false)
|
||||
m.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
m.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
m.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "noCrop" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -18,6 +18,7 @@ type CT_PresetLineDashProperties struct {
|
||||
|
||||
func NewCT_PresetLineDashProperties() *CT_PresetLineDashProperties {
|
||||
ret := &CT_PresetLineDashProperties{}
|
||||
ret.ValAttr = ST_PresetLineDashVal(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -36,6 +37,7 @@ func (m *CT_PresetLineDashProperties) MarshalXML(e *xml.Encoder, start xml.Start
|
||||
|
||||
func (m *CT_PresetLineDashProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.ValAttr = ST_PresetLineDashVal(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "val" {
|
||||
m.ValAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -11,6 +11,8 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_ReflectionEffect struct {
|
||||
@ -32,6 +34,8 @@ type CT_ReflectionEffect struct {
|
||||
|
||||
func NewCT_ReflectionEffect() *CT_ReflectionEffect {
|
||||
ret := &CT_ReflectionEffect{}
|
||||
ret.AlgnAttr = ST_RectAlignmentB
|
||||
ret.RotWithShapeAttr = gooxml.Bool(true)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -102,6 +106,8 @@ func (m *CT_ReflectionEffect) MarshalXML(e *xml.Encoder, start xml.StartElement)
|
||||
|
||||
func (m *CT_ReflectionEffect) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.AlgnAttr = ST_RectAlignmentB
|
||||
m.RotWithShapeAttr = gooxml.Bool(true)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "blurRad" {
|
||||
parsed, err := strconv.ParseInt(attr.Value, 10, 64)
|
||||
|
@ -28,6 +28,7 @@ type CT_Shape3D struct {
|
||||
|
||||
func NewCT_Shape3D() *CT_Shape3D {
|
||||
ret := &CT_Shape3D{}
|
||||
ret.PrstMaterialAttr = ST_PresetMaterialTypeWarmMatte
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -78,6 +79,7 @@ func (m *CT_Shape3D) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
|
||||
|
||||
func (m *CT_Shape3D) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.PrstMaterialAttr = ST_PresetMaterialTypeWarmMatte
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "z" {
|
||||
parsed, err := ParseUnionST_Coordinate(attr.Value)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_ShapeLocking struct {
|
||||
@ -31,6 +33,17 @@ type CT_ShapeLocking struct {
|
||||
|
||||
func NewCT_ShapeLocking() *CT_ShapeLocking {
|
||||
ret := &CT_ShapeLocking{}
|
||||
ret.NoTextEditAttr = gooxml.Bool(false)
|
||||
ret.NoGrpAttr = gooxml.Bool(false)
|
||||
ret.NoSelectAttr = gooxml.Bool(false)
|
||||
ret.NoRotAttr = gooxml.Bool(false)
|
||||
ret.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
ret.NoMoveAttr = gooxml.Bool(false)
|
||||
ret.NoResizeAttr = gooxml.Bool(false)
|
||||
ret.NoEditPointsAttr = gooxml.Bool(false)
|
||||
ret.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
ret.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
ret.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -90,6 +103,17 @@ func (m *CT_ShapeLocking) MarshalXML(e *xml.Encoder, start xml.StartElement) err
|
||||
|
||||
func (m *CT_ShapeLocking) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.NoTextEditAttr = gooxml.Bool(false)
|
||||
m.NoGrpAttr = gooxml.Bool(false)
|
||||
m.NoSelectAttr = gooxml.Bool(false)
|
||||
m.NoRotAttr = gooxml.Bool(false)
|
||||
m.NoChangeAspectAttr = gooxml.Bool(false)
|
||||
m.NoMoveAttr = gooxml.Bool(false)
|
||||
m.NoResizeAttr = gooxml.Bool(false)
|
||||
m.NoEditPointsAttr = gooxml.Bool(false)
|
||||
m.NoAdjustHandlesAttr = gooxml.Bool(false)
|
||||
m.NoChangeArrowheadsAttr = gooxml.Bool(false)
|
||||
m.NoChangeShapeTypeAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "noTextEdit" {
|
||||
parsed, err := strconv.ParseBool(attr.Value)
|
||||
|
@ -33,6 +33,7 @@ type CT_ShapeProperties struct {
|
||||
|
||||
func NewCT_ShapeProperties() *CT_ShapeProperties {
|
||||
ret := &CT_ShapeProperties{}
|
||||
ret.BwModeAttr = ST_BlackWhiteMode(1)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -111,6 +112,7 @@ func (m *CT_ShapeProperties) MarshalXML(e *xml.Encoder, start xml.StartElement)
|
||||
|
||||
func (m *CT_ShapeProperties) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.BwModeAttr = ST_BlackWhiteMode(1)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "bwMode" {
|
||||
m.BwModeAttr.UnmarshalXMLAttr(attr)
|
||||
|
@ -12,6 +12,8 @@ import (
|
||||
"fmt"
|
||||
"log"
|
||||
"strconv"
|
||||
|
||||
"baliance.com/gooxml"
|
||||
)
|
||||
|
||||
type CT_TableCell struct {
|
||||
@ -27,6 +29,8 @@ type CT_TableCell struct {
|
||||
|
||||
func NewCT_TableCell() *CT_TableCell {
|
||||
ret := &CT_TableCell{}
|
||||
ret.HMergeAttr = gooxml.Bool(false)
|
||||
ret.VMergeAttr = gooxml.Bool(false)
|
||||
return ret
|
||||
}
|
||||
|
||||
@ -70,6 +74,8 @@ func (m *CT_TableCell) MarshalXML(e *xml.Encoder, start xml.StartElement) error
|
||||
|
||||
func (m *CT_TableCell) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
|
||||
// initialize to default
|
||||
m.HMergeAttr = gooxml.Bool(false)
|
||||
m.VMergeAttr = gooxml.Bool(false)
|
||||
for _, attr := range start.Attr {
|
||||
if attr.Name.Local == "rowSpan" {
|
||||
parsed, err := strconv.ParseInt(attr.Value, 10, 32)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user