1 Star 0 Fork 1

窦雪峰/unioffice

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
CT_RPr.go 21.02 KB
一键复制 编辑 原始数据 按行查看 历史
Todd 提交于 2017-09-29 20:52 . gooxml: add and use a Log function
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
// Copyright 2017 Baliance. All rights reserved.
//
// DO NOT EDIT: generated by gooxml ECMA-376 generator
//
// Use of this source code is governed by the terms of the Affero GNU General
// Public License version 3.0 as published by the Free Software Foundation and
// appearing in the file LICENSE included in the packaging of this file. A
// commercial license can be purchased by contacting sales@baliance.com.
package wml
import (
"encoding/xml"
"baliance.com/gooxml"
)
type CT_RPr struct {
// Referenced Character Style
RStyle *CT_String
// Run Fonts
RFonts *CT_Fonts
// Bold
B *CT_OnOff
// Complex Script Bold
BCs *CT_OnOff
// Italics
I *CT_OnOff
// Complex Script Italics
ICs *CT_OnOff
// Display All Characters As Capital Letters
Caps *CT_OnOff
// Small Caps
SmallCaps *CT_OnOff
// Single Strikethrough
Strike *CT_OnOff
// Double Strikethrough
Dstrike *CT_OnOff
// Display Character Outline
Outline *CT_OnOff
// Shadow
Shadow *CT_OnOff
// Embossing
Emboss *CT_OnOff
// Imprinting
Imprint *CT_OnOff
// Do Not Check Spelling or Grammar
NoProof *CT_OnOff
// Use Document Grid Settings For Inter-Character Spacing
SnapToGrid *CT_OnOff
// Hidden Text
Vanish *CT_OnOff
// Web Hidden Text
WebHidden *CT_OnOff
// Run Content Color
Color *CT_Color
// Character Spacing Adjustment
Spacing *CT_SignedTwipsMeasure
// Expanded/Compressed Text
W *CT_TextScale
// Font Kerning
Kern *CT_HpsMeasure
// Vertically Raised or Lowered Text
Position *CT_SignedHpsMeasure
// Non-Complex Script Font Size
Sz *CT_HpsMeasure
// Complex Script Font Size
SzCs *CT_HpsMeasure
// Text Highlighting
Highlight *CT_Highlight
// Underline
U *CT_Underline
// Animated Text Effect
Effect *CT_TextEffect
// Text Border
Bdr *CT_Border
// Run Shading
Shd *CT_Shd
// Manual Run Width
FitText *CT_FitText
// Subscript/Superscript Text
VertAlign *CT_VerticalAlignRun
// Right To Left Text
Rtl *CT_OnOff
// Use Complex Script Formatting on Run
Cs *CT_OnOff
// Emphasis Mark
Em *CT_Em
// Languages for Run Content
Lang *CT_Language
// East Asian Typography Settings
EastAsianLayout *CT_EastAsianLayout
// Paragraph Mark Is Always Hidden
SpecVanish *CT_OnOff
// Office Open XML Math
OMath *CT_OnOff
// Revision Information for Run Properties
RPrChange *CT_RPrChange
}
func NewCT_RPr() *CT_RPr {
ret := &CT_RPr{}
return ret
}
func (m *CT_RPr) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
e.EncodeToken(start)
if m.RStyle != nil {
serStyle := xml.StartElement{Name: xml.Name{Local: "w:rStyle"}}
e.EncodeElement(m.RStyle, serStyle)
}
if m.RFonts != nil {
serFonts := xml.StartElement{Name: xml.Name{Local: "w:rFonts"}}
e.EncodeElement(m.RFonts, serFonts)
}
if m.B != nil {
seb := xml.StartElement{Name: xml.Name{Local: "w:b"}}
e.EncodeElement(m.B, seb)
}
if m.BCs != nil {
sebCs := xml.StartElement{Name: xml.Name{Local: "w:bCs"}}
e.EncodeElement(m.BCs, sebCs)
}
if m.I != nil {
sei := xml.StartElement{Name: xml.Name{Local: "w:i"}}
e.EncodeElement(m.I, sei)
}
if m.ICs != nil {
seiCs := xml.StartElement{Name: xml.Name{Local: "w:iCs"}}
e.EncodeElement(m.ICs, seiCs)
}
if m.Caps != nil {
secaps := xml.StartElement{Name: xml.Name{Local: "w:caps"}}
e.EncodeElement(m.Caps, secaps)
}
if m.SmallCaps != nil {
sesmallCaps := xml.StartElement{Name: xml.Name{Local: "w:smallCaps"}}
e.EncodeElement(m.SmallCaps, sesmallCaps)
}
if m.Strike != nil {
sestrike := xml.StartElement{Name: xml.Name{Local: "w:strike"}}
e.EncodeElement(m.Strike, sestrike)
}
if m.Dstrike != nil {
sedstrike := xml.StartElement{Name: xml.Name{Local: "w:dstrike"}}
e.EncodeElement(m.Dstrike, sedstrike)
}
if m.Outline != nil {
seoutline := xml.StartElement{Name: xml.Name{Local: "w:outline"}}
e.EncodeElement(m.Outline, seoutline)
}
if m.Shadow != nil {
seshadow := xml.StartElement{Name: xml.Name{Local: "w:shadow"}}
e.EncodeElement(m.Shadow, seshadow)
}
if m.Emboss != nil {
seemboss := xml.StartElement{Name: xml.Name{Local: "w:emboss"}}
e.EncodeElement(m.Emboss, seemboss)
}
if m.Imprint != nil {
seimprint := xml.StartElement{Name: xml.Name{Local: "w:imprint"}}
e.EncodeElement(m.Imprint, seimprint)
}
if m.NoProof != nil {
senoProof := xml.StartElement{Name: xml.Name{Local: "w:noProof"}}
e.EncodeElement(m.NoProof, senoProof)
}
if m.SnapToGrid != nil {
sesnapToGrid := xml.StartElement{Name: xml.Name{Local: "w:snapToGrid"}}
e.EncodeElement(m.SnapToGrid, sesnapToGrid)
}
if m.Vanish != nil {
sevanish := xml.StartElement{Name: xml.Name{Local: "w:vanish"}}
e.EncodeElement(m.Vanish, sevanish)
}
if m.WebHidden != nil {
sewebHidden := xml.StartElement{Name: xml.Name{Local: "w:webHidden"}}
e.EncodeElement(m.WebHidden, sewebHidden)
}
if m.Color != nil {
secolor := xml.StartElement{Name: xml.Name{Local: "w:color"}}
e.EncodeElement(m.Color, secolor)
}
if m.Spacing != nil {
sespacing := xml.StartElement{Name: xml.Name{Local: "w:spacing"}}
e.EncodeElement(m.Spacing, sespacing)
}
if m.W != nil {
sew := xml.StartElement{Name: xml.Name{Local: "w:w"}}
e.EncodeElement(m.W, sew)
}
if m.Kern != nil {
sekern := xml.StartElement{Name: xml.Name{Local: "w:kern"}}
e.EncodeElement(m.Kern, sekern)
}
if m.Position != nil {
seposition := xml.StartElement{Name: xml.Name{Local: "w:position"}}
e.EncodeElement(m.Position, seposition)
}
if m.Sz != nil {
sesz := xml.StartElement{Name: xml.Name{Local: "w:sz"}}
e.EncodeElement(m.Sz, sesz)
}
if m.SzCs != nil {
seszCs := xml.StartElement{Name: xml.Name{Local: "w:szCs"}}
e.EncodeElement(m.SzCs, seszCs)
}
if m.Highlight != nil {
sehighlight := xml.StartElement{Name: xml.Name{Local: "w:highlight"}}
e.EncodeElement(m.Highlight, sehighlight)
}
if m.U != nil {
seu := xml.StartElement{Name: xml.Name{Local: "w:u"}}
e.EncodeElement(m.U, seu)
}
if m.Effect != nil {
seeffect := xml.StartElement{Name: xml.Name{Local: "w:effect"}}
e.EncodeElement(m.Effect, seeffect)
}
if m.Bdr != nil {
sebdr := xml.StartElement{Name: xml.Name{Local: "w:bdr"}}
e.EncodeElement(m.Bdr, sebdr)
}
if m.Shd != nil {
seshd := xml.StartElement{Name: xml.Name{Local: "w:shd"}}
e.EncodeElement(m.Shd, seshd)
}
if m.FitText != nil {
sefitText := xml.StartElement{Name: xml.Name{Local: "w:fitText"}}
e.EncodeElement(m.FitText, sefitText)
}
if m.VertAlign != nil {
severtAlign := xml.StartElement{Name: xml.Name{Local: "w:vertAlign"}}
e.EncodeElement(m.VertAlign, severtAlign)
}
if m.Rtl != nil {
sertl := xml.StartElement{Name: xml.Name{Local: "w:rtl"}}
e.EncodeElement(m.Rtl, sertl)
}
if m.Cs != nil {
secs := xml.StartElement{Name: xml.Name{Local: "w:cs"}}
e.EncodeElement(m.Cs, secs)
}
if m.Em != nil {
seem := xml.StartElement{Name: xml.Name{Local: "w:em"}}
e.EncodeElement(m.Em, seem)
}
if m.Lang != nil {
selang := xml.StartElement{Name: xml.Name{Local: "w:lang"}}
e.EncodeElement(m.Lang, selang)
}
if m.EastAsianLayout != nil {
seeastAsianLayout := xml.StartElement{Name: xml.Name{Local: "w:eastAsianLayout"}}
e.EncodeElement(m.EastAsianLayout, seeastAsianLayout)
}
if m.SpecVanish != nil {
sespecVanish := xml.StartElement{Name: xml.Name{Local: "w:specVanish"}}
e.EncodeElement(m.SpecVanish, sespecVanish)
}
if m.OMath != nil {
seoMath := xml.StartElement{Name: xml.Name{Local: "w:oMath"}}
e.EncodeElement(m.OMath, seoMath)
}
if m.RPrChange != nil {
serPrChange := xml.StartElement{Name: xml.Name{Local: "w:rPrChange"}}
e.EncodeElement(m.RPrChange, serPrChange)
}
e.EncodeToken(xml.EndElement{Name: start.Name})
return nil
}
func (m *CT_RPr) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error {
// initialize to default
lCT_RPr:
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/wordprocessingml/2006/main", Local: "rStyle"}:
m.RStyle = NewCT_String()
if err := d.DecodeElement(m.RStyle, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "rFonts"}:
m.RFonts = NewCT_Fonts()
if err := d.DecodeElement(m.RFonts, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "b"}:
m.B = NewCT_OnOff()
if err := d.DecodeElement(m.B, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "bCs"}:
m.BCs = NewCT_OnOff()
if err := d.DecodeElement(m.BCs, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "i"}:
m.I = NewCT_OnOff()
if err := d.DecodeElement(m.I, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "iCs"}:
m.ICs = NewCT_OnOff()
if err := d.DecodeElement(m.ICs, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "caps"}:
m.Caps = NewCT_OnOff()
if err := d.DecodeElement(m.Caps, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "smallCaps"}:
m.SmallCaps = NewCT_OnOff()
if err := d.DecodeElement(m.SmallCaps, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "strike"}:
m.Strike = NewCT_OnOff()
if err := d.DecodeElement(m.Strike, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "dstrike"}:
m.Dstrike = NewCT_OnOff()
if err := d.DecodeElement(m.Dstrike, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "outline"}:
m.Outline = NewCT_OnOff()
if err := d.DecodeElement(m.Outline, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "shadow"}:
m.Shadow = NewCT_OnOff()
if err := d.DecodeElement(m.Shadow, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "emboss"}:
m.Emboss = NewCT_OnOff()
if err := d.DecodeElement(m.Emboss, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "imprint"}:
m.Imprint = NewCT_OnOff()
if err := d.DecodeElement(m.Imprint, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "noProof"}:
m.NoProof = NewCT_OnOff()
if err := d.DecodeElement(m.NoProof, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "snapToGrid"}:
m.SnapToGrid = NewCT_OnOff()
if err := d.DecodeElement(m.SnapToGrid, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "vanish"}:
m.Vanish = NewCT_OnOff()
if err := d.DecodeElement(m.Vanish, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "webHidden"}:
m.WebHidden = NewCT_OnOff()
if err := d.DecodeElement(m.WebHidden, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "color"}:
m.Color = NewCT_Color()
if err := d.DecodeElement(m.Color, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "spacing"}:
m.Spacing = NewCT_SignedTwipsMeasure()
if err := d.DecodeElement(m.Spacing, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "w"}:
m.W = NewCT_TextScale()
if err := d.DecodeElement(m.W, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "kern"}:
m.Kern = NewCT_HpsMeasure()
if err := d.DecodeElement(m.Kern, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "position"}:
m.Position = NewCT_SignedHpsMeasure()
if err := d.DecodeElement(m.Position, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "sz"}:
m.Sz = NewCT_HpsMeasure()
if err := d.DecodeElement(m.Sz, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "szCs"}:
m.SzCs = NewCT_HpsMeasure()
if err := d.DecodeElement(m.SzCs, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "highlight"}:
m.Highlight = NewCT_Highlight()
if err := d.DecodeElement(m.Highlight, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "u"}:
m.U = NewCT_Underline()
if err := d.DecodeElement(m.U, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "effect"}:
m.Effect = NewCT_TextEffect()
if err := d.DecodeElement(m.Effect, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "bdr"}:
m.Bdr = NewCT_Border()
if err := d.DecodeElement(m.Bdr, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "shd"}:
m.Shd = NewCT_Shd()
if err := d.DecodeElement(m.Shd, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "fitText"}:
m.FitText = NewCT_FitText()
if err := d.DecodeElement(m.FitText, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "vertAlign"}:
m.VertAlign = NewCT_VerticalAlignRun()
if err := d.DecodeElement(m.VertAlign, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "rtl"}:
m.Rtl = NewCT_OnOff()
if err := d.DecodeElement(m.Rtl, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "cs"}:
m.Cs = NewCT_OnOff()
if err := d.DecodeElement(m.Cs, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "em"}:
m.Em = NewCT_Em()
if err := d.DecodeElement(m.Em, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "lang"}:
m.Lang = NewCT_Language()
if err := d.DecodeElement(m.Lang, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "eastAsianLayout"}:
m.EastAsianLayout = NewCT_EastAsianLayout()
if err := d.DecodeElement(m.EastAsianLayout, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "specVanish"}:
m.SpecVanish = NewCT_OnOff()
if err := d.DecodeElement(m.SpecVanish, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "oMath"}:
m.OMath = NewCT_OnOff()
if err := d.DecodeElement(m.OMath, &el); err != nil {
return err
}
case xml.Name{Space: "http://schemas.openxmlformats.org/wordprocessingml/2006/main", Local: "rPrChange"}:
m.RPrChange = NewCT_RPrChange()
if err := d.DecodeElement(m.RPrChange, &el); err != nil {
return err
}
default:
gooxml.Log("skipping unsupported element on CT_RPr %v", el.Name)
if err := d.Skip(); err != nil {
return err
}
}
case xml.EndElement:
break lCT_RPr
case xml.CharData:
}
}
return nil
}
// Validate validates the CT_RPr and its children
func (m *CT_RPr) Validate() error {
return m.ValidateWithPath("CT_RPr")
}
// ValidateWithPath validates the CT_RPr and its children, prefixing error messages with path
func (m *CT_RPr) ValidateWithPath(path string) error {
if m.RStyle != nil {
if err := m.RStyle.ValidateWithPath(path + "/RStyle"); err != nil {
return err
}
}
if m.RFonts != nil {
if err := m.RFonts.ValidateWithPath(path + "/RFonts"); err != nil {
return err
}
}
if m.B != nil {
if err := m.B.ValidateWithPath(path + "/B"); err != nil {
return err
}
}
if m.BCs != nil {
if err := m.BCs.ValidateWithPath(path + "/BCs"); err != nil {
return err
}
}
if m.I != nil {
if err := m.I.ValidateWithPath(path + "/I"); err != nil {
return err
}
}
if m.ICs != nil {
if err := m.ICs.ValidateWithPath(path + "/ICs"); err != nil {
return err
}
}
if m.Caps != nil {
if err := m.Caps.ValidateWithPath(path + "/Caps"); err != nil {
return err
}
}
if m.SmallCaps != nil {
if err := m.SmallCaps.ValidateWithPath(path + "/SmallCaps"); err != nil {
return err
}
}
if m.Strike != nil {
if err := m.Strike.ValidateWithPath(path + "/Strike"); err != nil {
return err
}
}
if m.Dstrike != nil {
if err := m.Dstrike.ValidateWithPath(path + "/Dstrike"); err != nil {
return err
}
}
if m.Outline != nil {
if err := m.Outline.ValidateWithPath(path + "/Outline"); err != nil {
return err
}
}
if m.Shadow != nil {
if err := m.Shadow.ValidateWithPath(path + "/Shadow"); err != nil {
return err
}
}
if m.Emboss != nil {
if err := m.Emboss.ValidateWithPath(path + "/Emboss"); err != nil {
return err
}
}
if m.Imprint != nil {
if err := m.Imprint.ValidateWithPath(path + "/Imprint"); err != nil {
return err
}
}
if m.NoProof != nil {
if err := m.NoProof.ValidateWithPath(path + "/NoProof"); err != nil {
return err
}
}
if m.SnapToGrid != nil {
if err := m.SnapToGrid.ValidateWithPath(path + "/SnapToGrid"); err != nil {
return err
}
}
if m.Vanish != nil {
if err := m.Vanish.ValidateWithPath(path + "/Vanish"); err != nil {
return err
}
}
if m.WebHidden != nil {
if err := m.WebHidden.ValidateWithPath(path + "/WebHidden"); err != nil {
return err
}
}
if m.Color != nil {
if err := m.Color.ValidateWithPath(path + "/Color"); err != nil {
return err
}
}
if m.Spacing != nil {
if err := m.Spacing.ValidateWithPath(path + "/Spacing"); err != nil {
return err
}
}
if m.W != nil {
if err := m.W.ValidateWithPath(path + "/W"); err != nil {
return err
}
}
if m.Kern != nil {
if err := m.Kern.ValidateWithPath(path + "/Kern"); err != nil {
return err
}
}
if m.Position != nil {
if err := m.Position.ValidateWithPath(path + "/Position"); err != nil {
return err
}
}
if m.Sz != nil {
if err := m.Sz.ValidateWithPath(path + "/Sz"); err != nil {
return err
}
}
if m.SzCs != nil {
if err := m.SzCs.ValidateWithPath(path + "/SzCs"); err != nil {
return err
}
}
if m.Highlight != nil {
if err := m.Highlight.ValidateWithPath(path + "/Highlight"); err != nil {
return err
}
}
if m.U != nil {
if err := m.U.ValidateWithPath(path + "/U"); err != nil {
return err
}
}
if m.Effect != nil {
if err := m.Effect.ValidateWithPath(path + "/Effect"); err != nil {
return err
}
}
if m.Bdr != nil {
if err := m.Bdr.ValidateWithPath(path + "/Bdr"); err != nil {
return err
}
}
if m.Shd != nil {
if err := m.Shd.ValidateWithPath(path + "/Shd"); err != nil {
return err
}
}
if m.FitText != nil {
if err := m.FitText.ValidateWithPath(path + "/FitText"); err != nil {
return err
}
}
if m.VertAlign != nil {
if err := m.VertAlign.ValidateWithPath(path + "/VertAlign"); err != nil {
return err
}
}
if m.Rtl != nil {
if err := m.Rtl.ValidateWithPath(path + "/Rtl"); err != nil {
return err
}
}
if m.Cs != nil {
if err := m.Cs.ValidateWithPath(path + "/Cs"); err != nil {
return err
}
}
if m.Em != nil {
if err := m.Em.ValidateWithPath(path + "/Em"); err != nil {
return err
}
}
if m.Lang != nil {
if err := m.Lang.ValidateWithPath(path + "/Lang"); err != nil {
return err
}
}
if m.EastAsianLayout != nil {
if err := m.EastAsianLayout.ValidateWithPath(path + "/EastAsianLayout"); err != nil {
return err
}
}
if m.SpecVanish != nil {
if err := m.SpecVanish.ValidateWithPath(path + "/SpecVanish"); err != nil {
return err
}
}
if m.OMath != nil {
if err := m.OMath.ValidateWithPath(path + "/OMath"); err != nil {
return err
}
}
if m.RPrChange != nil {
if err := m.RPrChange.ValidateWithPath(path + "/RPrChange"); err != nil {
return err
}
}
return nil
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/douxuefeng/unioffice.git
git@gitee.com:douxuefeng/unioffice.git
douxuefeng
unioffice
unioffice
v0.7.1

搜索帮助