Documentation
¶
Overview ¶
Package stypes provides simple types used in Office Open XML (OOXML) WordprocessingML (WML) documents. It encompasses basic definitions for character formatting, paragraph properties, numbering formats, and other fundamental elements essential for text representation and formatting in WML files. These types facilitate updating properties such as justification (e.g., left, center, right, both, etc.) across various document elements.
Index ¶
- Constants
- type Anchor
- type BorderStyle
- type BreakClear
- type BreakType
- type CombineBrackets
- type CustLeadChar
- type CustTabStop
- type DocGridType
- type DropCap
- type Em
- type FontTypeHint
- type HdrFtrType
- type HeightRule
- type Justification
- type LineSpacingRule
- type LongHexNum
- type MergeCell
- type NumFmt
- type OnOff
- type PTabAlignment
- type PTabLeader
- type PTabRelativeTo
- type PageOrient
- type SectionMark
- type Shading
- type StyleType
- type TableLayout
- type TableWidth
- type TblOverlap
- type TblStyleOverrideType
- type TextAlign
- type TextDirection
- type TextEffect
- type TextScale
- type TextboxTightWrap
- type ThemeColor
- type ThemeFont
- type Underline
- type VerticalAlignRun
- type VerticalJc
- type Wrap
- type XAlign
- type YAlign
Constants ¶
const ( ColorIndexAuto = "default" ColorIndexBlack = "black" ColorIndexBlue = "blue" ColorIndexBrightGreen = "green" ColorIndexDarkBlue = "darkBlue" ColorIndexDarkRed = "darkRed" ColorIndexDarkYellow = "darkYellow" ColorIndexGray25 = "lightGray" ColorIndexGray50 = "darkGray" ColorIndexGreen = "darkGreen" ColorIndexMagenta = "magenta" ColorIndexRed = "red" ColorIndexDarkCyan = "darkCyan" ColorIndexCyan = "cyan" ColorIndexDarkMagenta = "darkMagenta" ColorIndexWhite = "white" ColorIndexYellow = "yellow" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anchor ¶
type Anchor string
Anchor Type
const ( AnchorText Anchor = "text" // Relative to Text Extents AnchorMargin Anchor = "margin" // Relative To Margin AnchorPage Anchor = "page" // Relative to Page )
Constants for valid values
func AnchorFromStr ¶
AnchorFromStr converts a string to Anchor type.
type BorderStyle ¶
type BorderStyle string
BorderStyle represents the possible values for border styles.
const ( BorderStyleNil BorderStyle = "nil" // No Border BorderStyleNone BorderStyle = "none" // No Border BorderStyleSingle BorderStyle = "single" // Single Line Border BorderStyleThick BorderStyle = "thick" // Single Line Border BorderStyleDouble BorderStyle = "double" // Double Line Border BorderStyleDotted BorderStyle = "dotted" // Dotted Line Border BorderStyleDashed BorderStyle = "dashed" // Dashed Line Border BorderStyleDotDash BorderStyle = "dotDash" // Dot Dash Line Border BorderStyleDotDotDash BorderStyle = "dotDotDash" // Dot Dot Dash Line Border BorderStyleTriple BorderStyle = "triple" // Triple Line Border BorderStyleThinThickSmallGap BorderStyle = "thinThickSmallGap" // Thin, Thick Line Border BorderStyleThickThinSmallGap BorderStyle = "thickThinSmallGap" // Thick, Thin Line Border BorderStyleThinThickThinSmallGap BorderStyle = "thinThickThinSmallGap" // Thin, Thick, Thin Line Border BorderStyleThinThickMediumGap BorderStyle = "thinThickMediumGap" // Thin, Thick Line Border BorderStyleThickThinMediumGap BorderStyle = "thickThinMediumGap" // Thick, Thin Line Border BorderStyleThinThickThinMediumGap BorderStyle = "thinThickThinMediumGap" // Thin, Thick, Thin Line Border BorderStyleThinThickLargeGap BorderStyle = "thinThickLargeGap" // Thin, Thick Line Border BorderStyleThickThinLargeGap BorderStyle = "thickThinLargeGap" // Thick, Thin Line Border BorderStyleThinThickThinLargeGap BorderStyle = "thinThickThinLargeGap" // Thin, Thick, Thin Line Border BorderStyleWave BorderStyle = "wave" // Wavy Line Border BorderStyleDoubleWave BorderStyle = "doubleWave" // Double Wave Line Border BorderStyleDashSmallGap BorderStyle = "dashSmallGap" // Dashed Line Border BorderStyleDashDotStroked BorderStyle = "dashDotStroked" // Dash Dot Strokes Line Border BorderStyleThreeDEmboss BorderStyle = "threeDEmboss" // 3D Embossed Line Border BorderStyleThreeDEngrave BorderStyle = "threeDEngrave" // 3D Engraved Line Border BorderStyleOutset BorderStyle = "outset" // Outset Line Border BorderStyleInset BorderStyle = "inset" // Inset Line Border BorderStyleApples BorderStyle = "apples" // Apples Art Border BorderStyleArchedScallops BorderStyle = "archedScallops" // Arched Scallops Art Border BorderStyleBabyPacifier BorderStyle = "babyPacifier" // Baby Pacifier Art Border BorderStyleBabyRattle BorderStyle = "babyRattle" // Baby Rattle Art Border BorderStyleBalloons3Colors BorderStyle = "balloons3Colors" // Three Color Balloons Art Border BorderStyleBalloonsHotAir BorderStyle = "balloonsHotAir" // Hot Air Balloons Art Border BorderStyleBasicBlackDashes BorderStyle = "basicBlackDashes" // Black Dash Art Border BorderStyleBasicBlackDots BorderStyle = "basicBlackDots" // Black Dot Art Border BorderStyleBasicBlackSquares BorderStyle = "basicBlackSquares" // Black Square Art Border BorderStyleBasicThinLines BorderStyle = "basicThinLines" // Thin Line Art Border BorderStyleBasicWhiteDashes BorderStyle = "basicWhiteDashes" // White Dash Art Border BorderStyleBasicWhiteDots BorderStyle = "basicWhiteDots" // White Dot Art Border BorderStyleBasicWhiteSquares BorderStyle = "basicWhiteSquares" // White Square Art Border BorderStyleBasicWideInline BorderStyle = "basicWideInline" // Wide Inline Art Border BorderStyleBasicWideMidline BorderStyle = "basicWideMidline" // Wide Midline Art Border BorderStyleBasicWideOutline BorderStyle = "basicWideOutline" // Wide Outline Art Border BorderStyleBats BorderStyle = "bats" // Bats Art Border BorderStyleBirds BorderStyle = "birds" // Birds Art Border BorderStyleBirdsFlight BorderStyle = "birdsFlight" // Birds Flying Art Border BorderStyleCabins BorderStyle = "cabins" // Cabin Art Border BorderStyleCakeSlice BorderStyle = "cakeSlice" // Cake Art Border BorderStyleCandyCorn BorderStyle = "candyCorn" // Candy Corn Art Border BorderStyleCelticKnotwork BorderStyle = "celticKnotwork" // Knot Work Art Border BorderStyleCertificateBanner BorderStyle = "certificateBanner" // Certificate Banner Art Border BorderStyleChainLink BorderStyle = "chainLink" // Chain Link Art Border BorderStyleChampagneBottle BorderStyle = "champagneBottle" // Champagne Bottle Art Border BorderStyleCheckedBarBlack BorderStyle = "checkedBarBlack" // Black and White Bar Art Border BorderStyleCheckedBarColor BorderStyle = "checkedBarColor" // Color Checked Bar Art Border BorderStyleCheckered BorderStyle = "checkered" // Checkerboard Art Border BorderStyleChristmasTree BorderStyle = "christmasTree" // Christmas Tree Art Border BorderStyleCirclesLines BorderStyle = "circlesLines" // Circles And Lines Art Border BorderStyleCirclesRectangles BorderStyle = "circlesRectangles" // Circles and Rectangles Art Border BorderStyleClassicalWave BorderStyle = "classicalWave" // Wave Art Border BorderStyleClocks BorderStyle = "clocks" // Clocks Art Border BorderStyleCompass BorderStyle = "compass" // Compass Art Border BorderStyleConfetti BorderStyle = "confetti" // Confetti Art Border BorderStyleConfettiGrays BorderStyle = "confettiGrays" // Confetti Art Border BorderStyleConfettiOutline BorderStyle = "confettiOutline" // Confetti Art Border BorderStyleConfettiStreamers BorderStyle = "confettiStreamers" // Confetti Streamers Art Border BorderStyleConfettiWhite BorderStyle = "confettiWhite" // Confetti Art Border BorderStyleCornerTriangles BorderStyle = "cornerTriangles" // Corner Triangle Art Border BorderStyleCouponCutoutDashes BorderStyle = "couponCutoutDashes" // Dashed Line Art Border BorderStyleCouponCutoutDots BorderStyle = "couponCutoutDots" // Dotted Line Art Border BorderStyleCrazyMaze BorderStyle = "crazyMaze" // Maze Art Border BorderStyleCreaturesButterfly BorderStyle = "creaturesButterfly" // Butterfly Art Border BorderStyleCreaturesFish BorderStyle = "creaturesFish" // Fish Art Border BorderStyleCreaturesInsects BorderStyle = "creaturesInsects" // Insects Art Border BorderStyleCreaturesLadyBug BorderStyle = "creaturesLadyBug" // Ladybug Art Border BorderStyleCrossStitch BorderStyle = "crossStitch" // Cross-stitch Art Border BorderStyleCup BorderStyle = "cup" // Cupid Art Border BorderStyleDecoArch BorderStyle = "decoArch" // Archway Art Border BorderStyleDecoArchColor BorderStyle = "decoArchColor" // Color Archway Art Border BorderStyleDecoBlocks BorderStyle = "decoBlocks" // Blocks Art Border BorderStyleDiamondsGray BorderStyle = "diamondsGray" // Gray Diamond Art Border BorderStyleDoubleD BorderStyle = "doubleD" // Double D Art Border BorderStyleDoubleDiamonds BorderStyle = "doubleDiamonds" // Diamond Art Border BorderStyleEarth1 BorderStyle = "earth1" // Earth Art Border BorderStyleEarth2 BorderStyle = "earth2" // Earth Art Border BorderStyleEclipsingSquares1 BorderStyle = "eclipsingSquares1" // Shadowed Square Art Border BorderStyleEclipsingSquares2 BorderStyle = "eclipsingSquares2" // Shadowed Square Art Border BorderStyleEggsBlack BorderStyle = "eggsBlack" // Painted Egg Art Border BorderStyleFans BorderStyle = "fans" // Fans Art Border BorderStyleFilm BorderStyle = "film" // Film Reel Art Border BorderStyleFirecrackers BorderStyle = "firecrackers" // Firecracker Art Border BorderStyleFlowersBlockPrint BorderStyle = "flowersBlockPrint" // Flowers Art Border BorderStyleFlowersDaisies BorderStyle = "flowersDaisies" // Daisy Art Border BorderStyleFlowersModern1 BorderStyle = "flowersModern1" // Flowers Art Border BorderStyleFlowersModern2 BorderStyle = "flowersModern2" // Flowers Art Border BorderStyleFlowersPansy BorderStyle = "flowersPansy" // Pansy Art Border BorderStyleFlowersRedRose BorderStyle = "flowersRedRose" // Red Rose Art Border BorderStyleFlowersRoses BorderStyle = "flowersRoses" // Roses Art Border BorderStyleFlowersTeacup BorderStyle = "flowersTeacup" // Flowers in a Teacup Art Border BorderStyleFlowersTiny BorderStyle = "flowersTiny" // Small Flower Art Border BorderStyleGems BorderStyle = "gems" // Gems Art Border BorderStyleGingerbreadMan BorderStyle = "gingerbreadMan" // Gingerbread Man Art Border BorderStyleGradient BorderStyle = "gradient" // Triangle Gradient Art Border BorderStyleHandmade1 BorderStyle = "handmade1" // Handmade Art Border BorderStyleHandmade2 BorderStyle = "handmade2" // Handmade Art Border BorderStyleHeartBalloon BorderStyle = "heartBalloon" // Heart-Shaped Balloon Art Border BorderStyleHeartGray BorderStyle = "heartGray" // Gray Heart Art Border BorderStyleHearts BorderStyle = "hearts" // Hearts Art Border BorderStyleHeebieJeebies BorderStyle = "heebieJeebies" // Pattern Art Border BorderStyleHolly BorderStyle = "holly" // Holly Art Border BorderStyleHouseFunky BorderStyle = "houseFunky" // House Art Border BorderStyleHypnotic BorderStyle = "hypnotic" // Circular Art Border BorderStyleIceCreamCones BorderStyle = "iceCreamCones" // Ice Cream Cone Art Border BorderStyleLightBulb BorderStyle = "lightBulb" // Light Bulb Art Border BorderStyleLightning1 BorderStyle = "lightning1" // Lightning Art Border BorderStyleLightning2 BorderStyle = "lightning2" // Lightning Art Border BorderStyleMapPins BorderStyle = "mapPins" // Map Pins Art Border BorderStyleMapleLeaf BorderStyle = "mapleLeaf" // Maple Leaf Art Border BorderStyleMapleMuffins BorderStyle = "mapleMuffins" // Muffin Art Border BorderStyleMarquee BorderStyle = "marquee" // Marquee Art Border BorderStyleMarqueeToothed BorderStyle = "marqueeToothed" // Marquee Art Border BorderStyleMoons BorderStyle = "moons" // Moon Art Border BorderStyleMosaic BorderStyle = "mosaic" // Mosaic Art Border BorderStyleMusicNotes BorderStyle = "musicNotes" // Musical Note Art Border BorderStyleNorthwest BorderStyle = "northwest" // Patterned Art Border BorderStyleOvals BorderStyle = "ovals" // Oval Art Border BorderStylePackages BorderStyle = "packages" // Package Art Border BorderStylePalmsBlack BorderStyle = "palmsBlack" // Black Palm Tree Art Border BorderStylePalmsColor BorderStyle = "palmsColor" // Color Palm Tree Art Border BorderStylePaperClips BorderStyle = "paperClips" // Paper Clip Art Border BorderStylePapyrus BorderStyle = "papyrus" // Papyrus Art Border BorderStylePartyFavor BorderStyle = "partyFavor" // Party Favor Art Border BorderStylePartyGlass BorderStyle = "partyGlass" // Party Glass Art Border BorderStylePencils BorderStyle = "pencils" // Pencils Art Border BorderStylePeople BorderStyle = "people" // Character Art Border BorderStylePeopleWaving BorderStyle = "peopleWaving" // Waving Character Border BorderStylePeopleHats BorderStyle = "peopleHats" // Character With Hat Art Border BorderStylePoinsettias BorderStyle = "poinsettias" // Poinsettia Art Border BorderStylePostageStamp BorderStyle = "postageStamp" // Postage Stamp Art Border BorderStylePumpkin1 BorderStyle = "pumpkin1" // Pumpkin Art Border BorderStylePushPinNote2 BorderStyle = "pushPinNote2" // Push Pin Art Border BorderStylePushPinNote1 BorderStyle = "pushPinNote1" // Push Pin Art Border BorderStylePyramids BorderStyle = "pyramids" // Pyramid Art Border BorderStylePyramidsAbove BorderStyle = "pyramidsAbove" // Pyramid Art Border BorderStyleQuadrants BorderStyle = "quadrants" // Quadrants Art Border BorderStyleRings BorderStyle = "rings" // Rings Art Border BorderStyleSafari BorderStyle = "safari" // Safari Art Border BorderStyleSawtooth BorderStyle = "sawtooth" // Saw tooth Art Border BorderStyleSawtoothGray BorderStyle = "sawtoothGray" // Gray Saw tooth Art Border BorderStyleScaredCat BorderStyle = "scaredCat" // Scared Cat Art Border BorderStyleSeattle BorderStyle = "seattle" // Umbrella Art Border BorderStyleShadowedSquares BorderStyle = "shadowedSquares" // Shadowed Squares Art Border BorderStyleSharksTeeth BorderStyle = "sharksTeeth" // Shark Tooth Art Border BorderStyleShorebirdTracks BorderStyle = "shorebirdTracks" // Bird Tracks Art Border BorderStyleSkyrocket BorderStyle = "skyrocket" // Rocket Art Border BorderStyleSnowflakeFancy BorderStyle = "snowflakeFancy" // Snowflake Art Border BorderStyleSnowflakes BorderStyle = "snowflakes" // Snowflake Art Border BorderStyleSombrero BorderStyle = "sombrero" // Sombrero Art Border BorderStyleSouthwest BorderStyle = "southwest" // Southwest-themed Art Border BorderStyleStars BorderStyle = "stars" // Stars Art Border BorderStyleStarsTop BorderStyle = "starsTop" // Stars On Top Art Border BorderStyleStars3d BorderStyle = "stars3d" // 3-D Stars Art Border BorderStyleStarsBlack BorderStyle = "starsBlack" // Stars Art Border BorderStyleStarsShadowed BorderStyle = "starsShadowed" // Stars With Shadows Art Border BorderStyleSun BorderStyle = "sun" // Sun Art Border BorderStyleSwirligig BorderStyle = "swirligig" // Whirligig Art Border BorderStyleTornPaper BorderStyle = "tornPaper" // Torn Paper Art Border BorderStyleTornPaperBlack BorderStyle = "tornPaperBlack" // Black Torn Paper Art Border BorderStyleTrees BorderStyle = "trees" // Tree Art Border BorderStyleTriangleParty BorderStyle = "triangleParty" // Triangle Art Border BorderStyleTriangles BorderStyle = "triangles" // Triangles Art Border BorderStyleTribal1 BorderStyle = "tribal1" // Tribal Art Border One BorderStyleTribal2 BorderStyle = "tribal2" // Tribal Art Border Two BorderStyleTribal3 BorderStyle = "tribal3" // Tribal Art Border Three BorderStyleTribal4 BorderStyle = "tribal4" // Tribal Art Border Four BorderStyleTribal5 BorderStyle = "tribal5" // Tribal Art Border Five BorderStyleTribal6 BorderStyle = "tribal6" // Tribal Art Border Six BorderStyleTwistedLines1 BorderStyle = "twistedLines1" // Twisted Lines Art Border BorderStyleTwistedLines2 BorderStyle = "twistedLines2" // Twisted Lines Art Border BorderStyleVine BorderStyle = "vine" // Vine Art Border BorderStyleWaveline BorderStyle = "waveline" // Wavy Line Art Border BorderStyleWeavingAngles BorderStyle = "weavingAngles" // Weaving Angles Art Border BorderStyleWeavingBraid BorderStyle = "weavingBraid" // Weaving Braid Art Border BorderStyleWeavingRibbon BorderStyle = "weavingRibbon" // Weaving Ribbon Art Border BorderStyleWeavingStrips BorderStyle = "weavingStrips" // Weaving Strips Art Border BorderStyleWhiteFlowers BorderStyle = "whiteFlowers" // White Flowers Art Border BorderStyleWoodwork BorderStyle = "woodwork" // Woodwork Art Border BorderStyleXIllusions BorderStyle = "xIllusions" // Crisscross Art Border BorderStyleZanyTriangles BorderStyle = "zanyTriangles" // Triangle Art Border BorderStyleZigZag BorderStyle = "zigZag" // Zigzag Art Border BorderStyleZigZagStitch BorderStyle = "zigZagStitch" // Zigzag stitch Art Border )
func BorderStyleFromStr ¶
func BorderStyleFromStr(value string) (BorderStyle, error)
BorderStyleFromStr converts a string to a BorderStyle.
func (*BorderStyle) UnmarshalXMLAttr ¶
func (b *BorderStyle) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshals an XML attribute into a BorderStyle.
type BreakClear ¶
type BreakClear string
const ( BreakClearNone BreakClear = "none" // Restart On Next Line BreakClearLeft BreakClear = "left" // Restart In Next Text Region When In Leftmost Position BreakClearRight BreakClear = "right" // Restart In Next Text Region When In Rightmost Position BreakClearAll BreakClear = "all" // Restart On Next Full Line BreakClearInvalid BreakClear = "" )
func BreakClearFromStr ¶
func BreakClearFromStr(value string) (BreakClear, error)
func (*BreakClear) UnmarshalXMLAttr ¶
func (d *BreakClear) UnmarshalXMLAttr(attr xml.Attr) error
type CombineBrackets ¶
type CombineBrackets string
CombineBrackets Type
const ( CombineBracketsNone CombineBrackets = "none" // No Enclosing Brackets CombineBracketsRound CombineBrackets = "round" // Round Brackets CombineBracketsSquare CombineBrackets = "square" // Square Brackets CombineBracketsAngle CombineBrackets = "angle" // Angle Brackets CombineBracketsCurly CombineBrackets = "curly" // Curly Brackets )
func CombineBracketsFromStr ¶
func CombineBracketsFromStr(value string) (CombineBrackets, error)
func (*CombineBrackets) UnmarshalXMLAttr ¶
func (c *CombineBrackets) UnmarshalXMLAttr(attr xml.Attr) error
type CustLeadChar ¶
type CustLeadChar string
Custom Tab Stop Leader Character
const ( CustLeadCharNone CustLeadChar = "none" CustLeadCharDot CustLeadChar = "dot" CustLeadCharHyphen CustLeadChar = "hyphen" CustLeadCharUnderScore CustLeadChar = "underscore" CustLeadCharHeavy CustLeadChar = "heavy" CustLeadCharMiddleDot CustLeadChar = "middleDot" CustLeadCharInvalid CustLeadChar = "" )
func CustLeadCharFromStr ¶
func CustLeadCharFromStr(val string) (CustLeadChar, error)
func (*CustLeadChar) UnmarshalXMLAttr ¶
func (d *CustLeadChar) UnmarshalXMLAttr(attr xml.Attr) error
type CustTabStop ¶
type CustTabStop string
CustTabStop represents the custom tab stop type.
const ( CustTabStopClear CustTabStop = "clear" CustTabStopLeft CustTabStop = "left" CustTabStopCenter CustTabStop = "center" CustTabStopRight CustTabStop = "right" CustTabStopDecimal CustTabStop = "decimal" CustTabStopBar CustTabStop = "bar" CustTabStopNum CustTabStop = "num" CustTabStopInvalid CustTabStop = "" )
func CustTabStopFromStr ¶
func CustTabStopFromStr(val string) (CustTabStop, error)
Function to convert string to CustTabStop.
func (*CustTabStop) UnmarshalXMLAttr ¶
func (t *CustTabStop) UnmarshalXMLAttr(attr xml.Attr) error
Method to unmarshal XML attribute into CustTabStop.
type DocGridType ¶
type DocGridType string
Document Grid Types
const ( DocGridDefault DocGridType = "default" //No Document Grid DocGridLines DocGridType = "lines" //Line Grid Only DocGridLinesAndChars DocGridType = "linesAndChars" //Line and Character Grid DocGridSnapToChars DocGridType = "snapToChars" //Character Grid Only )
func DocGridTypeFromStr ¶
func DocGridTypeFromStr(value string) (DocGridType, error)
func (*DocGridType) UnmarshalXMLAttr ¶
func (d *DocGridType) UnmarshalXMLAttr(attr xml.Attr) error
type DropCap ¶
type DropCap string
Text Frame Drop Cap Location
func DropCapFromStr ¶
DropCapFromStr converts a string to DropCap type.
type FontTypeHint ¶
type FontTypeHint string
const ( FontTypeHintDefault FontTypeHint = "default" // High ANSI Font FontTypeHintEastAsia FontTypeHint = "eastAsia" // East Asian Font FontTypeHintCS FontTypeHint = "cs" // Complex Script Font )
func FontTypeHintFromStr ¶
func FontTypeHintFromStr(value string) (FontTypeHint, error)
func (*FontTypeHint) UnmarshalXMLAttr ¶
func (d *FontTypeHint) UnmarshalXMLAttr(attr xml.Attr) error
type HdrFtrType ¶
type HdrFtrType string
Header or Footer Type
const ( HdrFtrEven HdrFtrType = "even" //Even Numbered Pages Only HdrFtrDefault HdrFtrType = "default" //Default Header or Footer HdrFtrFirst HdrFtrType = "first" //First Page Only )
func HdrFtrFromStr ¶
func HdrFtrFromStr(value string) (HdrFtrType, error)
func (*HdrFtrType) UnmarshalXMLAttr ¶
func (d *HdrFtrType) UnmarshalXMLAttr(attr xml.Attr) error
type HeightRule ¶
type HeightRule string
HeightRule Type
const ( HeightRuleAuto HeightRule = "auto" // Determine Height Based On Contents HeightRuleExact HeightRule = "exact" // Exact Height HeightRuleAtLeast HeightRule = "atLeast" // Minimum Height )
Constants for valid values
func HeightRuleFromStr ¶
func HeightRuleFromStr(value string) (HeightRule, error)
HeightRuleFromStr converts a string to HeightRule type.
func (*HeightRule) UnmarshalXMLAttr ¶
func (h *HeightRule) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshals XML attribute into HeightRule.
type Justification ¶
type Justification string
const ( JustificationLeft Justification = "left" // Align Left JustificationCenter Justification = "center" // Align Center JustificationRight Justification = "right" // Align Right JustificationBoth Justification = "both" // Justified JustificationMediumKashida Justification = "mediumKashida" // Medium Kashida Length JustificationDistribute Justification = "distribute" // Distribute All Characters Equally JustificationNumTab Justification = "numTab" // Align to List Tab JustificationHighKashida Justification = "highKashida" // Widest Kashida Length JustificationLowKashida Justification = "lowKashida" // Low Kashida Length JustificationThaiDistribute Justification = "thaiDistribute" // Thai Language Justification )
func JustificationFromStr ¶
func JustificationFromStr(value string) (Justification, error)
func (*Justification) UnmarshalXMLAttr ¶
func (j *Justification) UnmarshalXMLAttr(attr xml.Attr) error
type LineSpacingRule ¶
type LineSpacingRule string
const ( LineSpacingRuleAuto LineSpacingRule = "auto" // Automatically Determined Line Height LineSpacingRuleExact LineSpacingRule = "exact" // Exact Line Height LineSpacingRuleAtLeast LineSpacingRule = "atLeast" // Minimum Line Height )
func LineSpacingRuleFromStr ¶
func LineSpacingRuleFromStr(value string) (LineSpacingRule, error)
func (*LineSpacingRule) UnmarshalXMLAttr ¶
func (d *LineSpacingRule) UnmarshalXMLAttr(attr xml.Attr) error
type LongHexNum ¶
type LongHexNum string
func LongHexNumFromStr ¶
func LongHexNumFromStr(s string) (LongHexNum, error)
LongHexNumberFromStr validates and converts a string to a LongHexNumber type
func (*LongHexNum) UnmarshalXMLAttr ¶
func (d *LongHexNum) UnmarshalXMLAttr(attr xml.Attr) error
type NumFmt ¶
type NumFmt string
const ( NumFmtDecimal NumFmt = "decimal" NumFmtUpperRoman NumFmt = "upperRoman" NumFmtLowerRoman NumFmt = "lowerRoman" NumFmtUpperLetter NumFmt = "upperLetter" NumFmtLowerLetter NumFmt = "lowerLetter" NumFmtOrdinal NumFmt = "ordinal" NumFmtCardinalText NumFmt = "cardinalText" NumFmtOrdinalText NumFmt = "ordinalText" NumFmtHex NumFmt = "hex" NumFmtChicago NumFmt = "chicago" NumFmtIdeographDigital NumFmt = "ideographDigital" NumFmtJapaneseCounting NumFmt = "japaneseCounting" NumFmtAIUEO NumFmt = "aiueo" NumFmtIroha NumFmt = "iroha" NumFmtDecimalFullWidth NumFmt = "decimalFullWidth" NumFmtDecimalHalfWidth NumFmt = "decimalHalfWidth" NumFmtJapaneseLegal NumFmt = "japaneseLegal" NumFmtJapaneseDigitalTenThousand NumFmt = "japaneseDigitalTenThousand" NumFmtDecimalEnclosedCircle NumFmt = "decimalEnclosedCircle" NumFmtDecimalFullWidth2 NumFmt = "decimalFullWidth2" NumFmtAIUEOFullWidth NumFmt = "aiueoFullWidth" NumFmtIrohaFullWidth NumFmt = "irohaFullWidth" NumFmtDecimalZero NumFmt = "decimalZero" NumFmtBullet NumFmt = "bullet" NumFmtGanada NumFmt = "ganada" NumFmtChosung NumFmt = "chosung" NumFmtDecimalEnclosedFullstop NumFmt = "decimalEnclosedFullstop" NumFmtDecimalEnclosedParen NumFmt = "decimalEnclosedParen" NumFmtDecimalEnclosedCircleChinese NumFmt = "decimalEnclosedCircleChinese" NumFmtIdeographEnclosedCircle NumFmt = "ideographEnclosedCircle" NumFmtIdeographTraditional NumFmt = "ideographTraditional" NumFmtIdeographZodiac NumFmt = "ideographZodiac" NumFmtIdeographZodiacTraditional NumFmt = "ideographZodiacTraditional" NumFmtTaiwaneseCounting NumFmt = "taiwaneseCounting" NumFmtIdeographLegalTraditional NumFmt = "ideographLegalTraditional" NumFmtTaiwaneseCountingThousand NumFmt = "taiwaneseCountingThousand" NumFmtTaiwaneseDigital NumFmt = "taiwaneseDigital" NumFmtChineseCounting NumFmt = "chineseCounting" NumFmtChineseLegalSimplified NumFmt = "chineseLegalSimplified" NumFmtChineseCountingThousand NumFmt = "chineseCountingThousand" NumFmtKoreanDigital NumFmt = "koreanDigital" NumFmtKoreanCounting NumFmt = "koreanCounting" NumFmtKoreanLegal NumFmt = "koreanLegal" NumFmtKoreanDigital2 NumFmt = "koreanDigital2" NumFmtVietnameseCounting NumFmt = "vietnameseCounting" NumFmtRussianLower NumFmt = "russianLower" NumFmtRussianUpper NumFmt = "russianUpper" NumFmtNone NumFmt = "none" NumFmtNumberInDash NumFmt = "numberInDash" NumFmtHebrew1 NumFmt = "hebrew1" NumFmtHebrew2 NumFmt = "hebrew2" NumFmtArabicAlpha NumFmt = "arabicAlpha" NumFmtArabicAbjad NumFmt = "arabicAbjad" NumFmtHindiVowels NumFmt = "hindiVowels" NumFmtHindiConsonants NumFmt = "hindiConsonants" NumFmtHindiNumbers NumFmt = "hindiNumbers" NumFmtHindiCounting NumFmt = "hindiCounting" NumFmtThaiLetters NumFmt = "thaiLetters" NumFmtThaiNumbers NumFmt = "thaiNumbers" NumFmtThaiCounting NumFmt = "thaiCounting" )
func NumFmtFromStr ¶
NumFmtFromStr converts a string value to NumFmt type.
type OnOff ¶
type OnOff string
This simple type specifies a set of values for any binary (on or off) property defined in a WordprocessingML document. A value of on, 1, or true specifies that the property shall be turned on. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.
A value of off, 0, or false specifies that the property shall be explicitly turned off.
func OnOffFromStr ¶
type PTabAlignment ¶
type PTabAlignment string
const ( PTabAlignmentLeft PTabAlignment = "left" PTabAlignmentCenter PTabAlignment = "center" PTabAlignmentRight PTabAlignment = "right" )
func PTabAlignmentFromStr ¶
func PTabAlignmentFromStr(value string) (PTabAlignment, error)
func (*PTabAlignment) UnmarshalXMLAttr ¶
func (a *PTabAlignment) UnmarshalXMLAttr(attr xml.Attr) error
type PTabLeader ¶
type PTabLeader string
const ( PTabLeaderNone PTabLeader = "none" PTabLeaderDot PTabLeader = "dot" PTabLeaderHyphen PTabLeader = "hyphen" PTabLeaderUnderscore PTabLeader = "underscore" PTabLeaderMiddleDot PTabLeader = "middleDot" )
func PTabLeaderFromStr ¶
func PTabLeaderFromStr(value string) (PTabLeader, error)
func (*PTabLeader) UnmarshalXMLAttr ¶
func (l *PTabLeader) UnmarshalXMLAttr(attr xml.Attr) error
type PTabRelativeTo ¶
type PTabRelativeTo string
const ( PTabRelativeToMargin PTabRelativeTo = "margin" PTabRelativeToIndent PTabRelativeTo = "indent" )
func PTabRelativeToFromStr ¶
func PTabRelativeToFromStr(value string) (PTabRelativeTo, error)
func (*PTabRelativeTo) UnmarshalXMLAttr ¶
func (r *PTabRelativeTo) UnmarshalXMLAttr(attr xml.Attr) error
type PageOrient ¶
type PageOrient string
const ( PageOrientPortrait PageOrient = "portrait" PageOrientLandscape PageOrient = "landscape" )
func PageOrientFromStr ¶
func PageOrientFromStr(value string) (PageOrient, error)
func (*PageOrient) UnmarshalXMLAttr ¶
func (d *PageOrient) UnmarshalXMLAttr(attr xml.Attr) error
type SectionMark ¶
type SectionMark string
const ( SectionMarkNextPage SectionMark = "nextPage" //Next Page Section Break SectionMarkNextColumn SectionMark = "nextColumn" //Column Section Break SectionMarkNextContinuous SectionMark = "continuous" //Continuous Section Break SectionMarkEvenPage SectionMark = "evenPage" //Even Page Section Break SectionMarkOddPage SectionMark = "oddPage" //Odd Page Section Break )
func SectionMarkFromStr ¶
func SectionMarkFromStr(value string) (SectionMark, error)
func (*SectionMark) UnmarshalXMLAttr ¶
func (d *SectionMark) UnmarshalXMLAttr(attr xml.Attr) error
type Shading ¶
type Shading string
Shading represents the possible values for Shading Pattern in WordprocessingML.
const ( ShdNil Shading = "nil" ShdClear Shading = "clear" ShdSolid Shading = "solid" ShdHorzStripe Shading = "horzStripe" ShdVertStripe Shading = "vertStripe" ShdReverseDiagStripe Shading = "reverseDiagStripe" ShdDiagStripe Shading = "diagStripe" ShdHorzCross Shading = "horzCross" ShdDiagCross Shading = "diagCross" ShdThinHorzStripe Shading = "thinHorzStripe" ShdThinVertStripe Shading = "thinVertStripe" ShdThinReverseDiagStripe Shading = "thinReverseDiagStripe" ShdThinDiagStripe Shading = "thinDiagStripe" ShdThinHorzCross Shading = "thinHorzCross" ShdThinDiagCross Shading = "thinDiagCross" ShdPct5 Shading = "pct5" ShdPct10 Shading = "pct10" ShdPct12 Shading = "pct12" ShdPct15 Shading = "pct15" ShdPct20 Shading = "pct20" ShdPct25 Shading = "pct25" ShdPct30 Shading = "pct30" ShdPct35 Shading = "pct35" ShdPct37 Shading = "pct37" ShdPct40 Shading = "pct40" ShdPct45 Shading = "pct45" ShdPct50 Shading = "pct50" ShdPct55 Shading = "pct55" ShdPct60 Shading = "pct60" ShdPct62 Shading = "pct62" ShdPct65 Shading = "pct65" ShdPct70 Shading = "pct70" ShdPct75 Shading = "pct75" ShdPct80 Shading = "pct80" ShdPct85 Shading = "pct85" ShdPct87 Shading = "pct87" ShdPct90 Shading = "pct90" ShdPct95 Shading = "pct95" )
List of valid Shading values.
func ShadingFromStr ¶
ShdFromStr converts a string value to Shd.
type TableLayout ¶
type TableLayout string
Table Layout Type
const ( TableLayoutFixed TableLayout = "fixed" TableLayoutAutoFit TableLayout = "autofit" TableLayoutInvalid TableLayout = "" )
func TableLayoutFromStr ¶
func TableLayoutFromStr(val string) (TableLayout, error)
func (*TableLayout) UnmarshalXMLAttr ¶
func (t *TableLayout) UnmarshalXMLAttr(attr xml.Attr) error
type TableWidth ¶
type TableWidth string
const ( TableWidthDxa TableWidth = "dxa" //Width in Twentieths of a Point TableWidthAuto TableWidth = "auto" //Automatically Determined Width TableWidthPct TableWidth = "pct" //Width in Fiftieths of a Percent TableWidthNil TableWidth = "nil" //No Width TableWidthUnsupported TableWidth = "" )
func TableWidthFromStr ¶
func TableWidthFromStr(value string) (TableWidth, error)
func (*TableWidth) UnmarshalXMLAttr ¶
func (to *TableWidth) UnmarshalXMLAttr(attr xml.Attr) error
type TblOverlap ¶
type TblOverlap string
const ( TblOverlapNever TblOverlap = "never" TblOverlapOverlap TblOverlap = "overlap" )
func TblOverlapFromStr ¶
func TblOverlapFromStr(value string) (TblOverlap, error)
func (*TblOverlap) UnmarshalXMLAttr ¶
func (to *TblOverlap) UnmarshalXMLAttr(attr xml.Attr) error
type TblStyleOverrideType ¶
type TblStyleOverrideType string
const ( TblStyleOverrideWholeTable TblStyleOverrideType = "wholeTable" TblStyleOverrideFirstRow TblStyleOverrideType = "firstRow" TblStyleOverrideLastRow TblStyleOverrideType = "lastRow" TblStyleOverrideFirstCol TblStyleOverrideType = "firstCol" TblStyleOverrideLastCol TblStyleOverrideType = "lastCol" TblStyleOverrideBand1Vert TblStyleOverrideType = "band1Vert" TblStyleOverrideBand2Vert TblStyleOverrideType = "band2Vert" TblStyleOverrideBand1Horz TblStyleOverrideType = "band1Horz" TblStyleOverrideBand2Horz TblStyleOverrideType = "band2Horz" TblStyleOverrideNeCell TblStyleOverrideType = "neCell" TblStyleOverrideNwCell TblStyleOverrideType = "nwCell" TblStyleOverrideSeCell TblStyleOverrideType = "seCell" TblStyleOverrideSwCell TblStyleOverrideType = "swCell" )
func TblStyleOverrideTypeFromStr ¶
func TblStyleOverrideTypeFromStr(value string) (TblStyleOverrideType, error)
func (*TblStyleOverrideType) UnmarshalXMLAttr ¶
func (t *TblStyleOverrideType) UnmarshalXMLAttr(attr xml.Attr) error
type TextAlign ¶
type TextAlign string
const ( TextAlignTop TextAlign = "top" // Align Text at Top TextAlignCenter TextAlign = "center" // Align Text at Center TextAlignBaseline TextAlign = "baseline" // Align Text at Baseline TextAlignBottom TextAlign = "bottom" // Align Text at Bottom TextAlignAuto TextAlign = "auto" // Automatically Determine Alignment )
func TextAlignFromStr ¶
type TextDirection ¶
type TextDirection string
const ( TextDirectionLrTb TextDirection = "lrTb" // Left to Right, Top to Bottom TextDirectionTbRl TextDirection = "tbRl" // Top to Bottom, Right to Left TextDirectionBtLr TextDirection = "btLr" // Bottom to Top, Left to Right TextDirectionLrTbV TextDirection = "lrTbV" // Left to Right, Top to Bottom Rotated TextDirectionTbRlV TextDirection = "tbRlV" // Top to Bottom, Right to Left Rotated TextDirectionTbLrV TextDirection = "tbLrV" // Top to Bottom, Left to Right Rotated )
func TextDirectionFromStr ¶
func TextDirectionFromStr(value string) (TextDirection, error)
func (*TextDirection) UnmarshalXMLAttr ¶
func (d *TextDirection) UnmarshalXMLAttr(attr xml.Attr) error
type TextEffect ¶
type TextEffect string
TextEffect represents the possible values for text animation effects.
const ( TextEffectBlinkBackground TextEffect = "blinkBackground" // Blinking Background Animation TextEffectLights TextEffect = "lights" // Colored Lights Animation TextEffectAntsBlack TextEffect = "antsBlack" // Black Dashed Line Animation TextEffectAntsRed TextEffect = "antsRed" // Marching Red Ants TextEffectShimmer TextEffect = "shimmer" // Shimmer Animation TextEffectSparkle TextEffect = "sparkle" // Sparkling Lights Animation TextEffectNone TextEffect = "none" // No Animation )
func TextEffectFromStr ¶
func TextEffectFromStr(value string) (TextEffect, error)
TextEffectFromStr converts a string to a TextEffect.
func (*TextEffect) UnmarshalXMLAttr ¶
func (t *TextEffect) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshals an XML attribute into a TextEffect.
type TextboxTightWrap ¶
type TextboxTightWrap string
const ( TextboxTightWrapNone TextboxTightWrap = "none" // Do Not Tight Wrap TextboxTightWrapAllLines TextboxTightWrap = "allLines" // Tight Wrap All Lines TextboxTightWrapFirstAndLastLine TextboxTightWrap = "firstAndLastLine" // Tight Wrap First and Last Lines TextboxTightWrapFirstLineOnly TextboxTightWrap = "firstLineOnly" // Tight Wrap First Line TextboxTightWrapLastLineOnly TextboxTightWrap = "lastLineOnly" // Tight Wrap Last Line )
func TextboxTightWrapFromStr ¶
func TextboxTightWrapFromStr(value string) (TextboxTightWrap, error)
func (*TextboxTightWrap) UnmarshalXMLAttr ¶
func (t *TextboxTightWrap) UnmarshalXMLAttr(attr xml.Attr) error
type ThemeColor ¶
type ThemeColor string
ThemeColor represents the possible values for Theme Color in WordprocessingML.
const ( ThemeColorDark1 ThemeColor = "dark1" ThemeColorLight1 ThemeColor = "light1" ThemeColorDark2 ThemeColor = "dark2" ThemeColorLight2 ThemeColor = "light2" ThemeColorAccent1 ThemeColor = "accent1" ThemeColorAccent2 ThemeColor = "accent2" ThemeColorAccent3 ThemeColor = "accent3" ThemeColorAccent4 ThemeColor = "accent4" ThemeColorAccent5 ThemeColor = "accent5" ThemeColorAccent6 ThemeColor = "accent6" ThemeColorHyperlink ThemeColor = "hyperlink" ThemeColorFollowedHyperlink ThemeColor = "followedHyperlink" ThemeColorNone ThemeColor = "none" ThemeColorBackground1 ThemeColor = "background1" ThemeColorText1 ThemeColor = "text1" ThemeColorBackground2 ThemeColor = "background2" ThemeColorText2 ThemeColor = "text2" )
List of valid ThemeColor values.
func ThemeColorFromStr ¶
func ThemeColorFromStr(value string) (ThemeColor, error)
ThemeColorFromStr converts a string value to ThemeColor.
func (*ThemeColor) UnmarshalXMLAttr ¶
func (t *ThemeColor) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshals an XML attribute into a ThemeColor.
type ThemeFont ¶
type ThemeFont string
const ( ThemeFontMajorEastAsia ThemeFont = "majorEastAsia" // Major East Asian Theme Font ThemeFontMajorBidi ThemeFont = "majorBidi" // Major Complex Script Theme Font ThemeFontMajorAscii ThemeFont = "majorAscii" // Major ASCII Theme Font ThemeFontMajorHAnsi ThemeFont = "majorHAnsi" // Major High ANSI Theme Font ThemeFontMinorEastAsia ThemeFont = "minorEastAsia" // Minor East Asian Theme Font ThemeFontMinorBidi ThemeFont = "minorBidi" // Minor Complex Script Theme Font ThemeFontMinorAscii ThemeFont = "minorAscii" // Minor ASCII Theme Font ThemeFontMinorHAnsi ThemeFont = "minorHAnsi" // Minor High ANSI Theme Font )
func ThemeFontFromStr ¶
type Underline ¶
type Underline string
Underline represents different styles for underline.
const ( UnderlineNone Underline = "none" UnderlineSingle Underline = "single" UnderlineWords Underline = "words" UnderlineDouble Underline = "double" UnderlineDotted Underline = "dotted" UnderlineThick Underline = "thick" UnderlineDash Underline = "dash" UnderlineDotDash Underline = "dotDash" UnderlineDotDotDash Underline = "dotDotDash" UnderlineWavy Underline = "wavy" UnderlineDottedHeavy Underline = "dottedHeavy" UnderlineDashHeavy Underline = "dashHeavy" UnderlineDotDashHeavy Underline = "dotDashHeavy" UnderlineDotDotDashHeavy Underline = "dotDotDashHeavy" UnderlineWavyHeavy Underline = "wavyHeavy" UnderlineDashLong Underline = "dashLong" UnderlineWavyDouble Underline = "wavyDouble" UnderlineDashLongHeavy Underline = "dashLongHeavy" )
func UnderlineFromStr ¶
type VerticalAlignRun ¶
type VerticalAlignRun string
VerticalAlignRun Type
const ( VerticalAlignRunBaseline VerticalAlignRun = "baseline" // Regular Vertical Positioning VerticalAlignRunSuperscript VerticalAlignRun = "superscript" // Superscript VerticalAlignRunSubscript VerticalAlignRun = "subscript" // Subscript )
func VerticalAlignRunFromStr ¶
func VerticalAlignRunFromStr(value string) (VerticalAlignRun, error)
func (*VerticalAlignRun) UnmarshalXMLAttr ¶
func (v *VerticalAlignRun) UnmarshalXMLAttr(attr xml.Attr) error
type VerticalJc ¶
type VerticalJc string
Vertical Alignment Type
const ( VerticalJcTop VerticalJc = "top" VerticalJcCenter VerticalJc = "center" VerticalJcBoth VerticalJc = "both" VerticalJcBottom VerticalJc = "bottom" )
func (VerticalJc) MarshalXMLAttr ¶
MarshalXMLAttr marshals the VerticalJc type as an XML attribute.
func (*VerticalJc) UnmarshalXMLAttr ¶
func (v *VerticalJc) UnmarshalXMLAttr(attr xml.Attr) error
UnmarshalXMLAttr unmarshals an XML attribute into a VerticalJc type.
type Wrap ¶
type Wrap string
Wrap Type
const ( WrapAuto Wrap = "auto" // Default Text Wrapping Around Frame WrapNotBeside Wrap = "notBeside" // No Text Wrapping Beside Frame WrapAround Wrap = "around" // Allow Text Wrapping Around Frame WrapTight Wrap = "tight" // Tight Text Wrapping Around Frame WrapThrough Wrap = "through" // Through Text Wrapping Around Frame WrapNone Wrap = "none" // No Text Wrapping Around Frame )
Constants for valid values
func WrapFromStr ¶
WrapFromStr converts a string to Wrap type.
type XAlign ¶
type XAlign string
XAlign Type
const ( XAlignLeft XAlign = "left" // Left XAligned Horizontally XAlignCenter XAlign = "center" // Centered Horizontally XAlignRight XAlign = "right" // Right XAligned Horizontally XAlignInside XAlign = "inside" // Inside XAlignOutside XAlign = "outside" // Outside )
Constants for valid values
func XAlignFromStr ¶
XAlignFromStr converts a string to XAlign type.
type YAlign ¶
type YAlign string
YAlign Type
const ( YAlignInline YAlign = "inline" // In line With Text YAlignTop YAlign = "top" // Top YAlignCenter YAlign = "center" // Centered Vertically YAlignBottom YAlign = "bottom" // Bottom YAlignInside YAlign = "inside" // Inside Anchor Extents YAlignOutside YAlign = "outside" // Outside Anchor Extents )
Constants for valid values
func YAlignFromStr ¶
YAlignFromStr converts a string to YAlign type.
Source Files
¶
- align.go
- anchor.go
- borderStyle.go
- break.go
- combBracket.go
- common.go
- doc.go
- docGridType.go
- dropCap.go
- em.go
- fontTypeHint.go
- hdrFtr.go
- heightRule.go
- hex.go
- jc.go
- lnSpacRule.go
- merge.go
- numFmt.go
- onoff.go
- pageOrient.go
- ptab.go
- sectionMark.go
- shd.go
- styleType.go
- tabJc.go
- tabTlc.go
- tblLayoutType.go
- tblOverlap.go
- tblStyleOvrr.go
- tblWidth.go
- textAlign.go
- textDirection.go
- textEffect.go
- textScale.go
- textboxTightWrap.go
- themeColor.go
- themeFont.go
- underline.go
- verJc.go
- vertAlignRun.go
- wrap.go