vml

package
v1.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 14, 2019 License: MIT Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arc

func Arc() *arc

Arc creates a new object with default values

func Curve

func Curve() *curve

Curve creates a new object with default values

func Image

func Image() *image

Image creates a new object with default values

func Line

func Line() *line

Line creates a new object with default values

func Oval

func Oval() *oval

Oval creates a new object with default values

func PolyLine

func PolyLine() *polyLine

PolyLine creates a new object with default values

func Rect

func Rect() *rect

Rect creates a new object with default values

func RoundRect

func RoundRect() *roundRect

RoundRect creates a new object with default values

Types

type ClientData

type ClientData struct {
	XMLName       xml.Name             `xml:"ClientData"`
	Type          ObjectType           `xml:"ObjectType,attr"`
	MoveWithCells ml.TriStateBlankTrue `xml:"MoveWithCells"`
	SizeWithCells ml.TriStateBlankTrue `xml:"SizeWithCells"`
	AutoFill      ml.TriStateBlankTrue `xml:"AutoFill"`
	AutoLine      ml.TriStateBlankTrue `xml:"AutoLine"`
	AutoPict      ml.TriStateBlankTrue `xml:"AutoPict"`
	RowHidden     ml.TriStateBlankTrue `xml:"RowHidden"`
	ColumnHidden  ml.TriStateBlankTrue `xml:"ColHidden"`
	MultiLine     ml.TriStateBlankTrue `xml:"MultiLine"`
	Visible       ml.TriStateBlankTrue `xml:"Visible"`
	Row           int                  `xml:"Row"`
	Column        int                  `xml:"Column"`
	Anchor        string               `xml:"Anchor"`
	ml.ReservedElements
}

ClientData is direct mapping of CT_ClientData

func (*ClientData) MarshalXML

func (s *ClientData) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ClientDataAnchor

type ClientDataAnchor struct {
	LeftColumn   int
	LeftOffset   int
	TopRow       int
	TopOffset    int
	RightColumn  int
	RightOffset  int
	BottomRow    int
	BottomOffset int
}

ClientDataAnchor is helper class for anchor information of ClientData

func StringToClientDataAnchor

func StringToClientDataAnchor(s string) (ClientDataAnchor, error)

StringToAnchor converts string into ClientDataAnchor object

func (ClientDataAnchor) String

func (t ClientDataAnchor) String() string

String returns string presentation of ClientDataAnchor

type ConnectType

type ConnectType byte

ConnectType is direct mapping of ST_ConnectType

const (
	ConnectTypeNone ConnectType
	ConnectTypeRect
	ConnectTypeSegments
	ConnectTypeCustom
)

List of all possible values for ConnectType

func (ConnectType) MarshalXMLAttr

func (t ConnectType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal ConnectType

func (ConnectType) String

func (t ConnectType) String() string

String returns string presentation of ConnectType

func (*ConnectType) UnmarshalXMLAttr

func (t *ConnectType) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal ConnectType

type Excel

type Excel officeDrawing

Excel is type for Excel VML Drawings

func (*Excel) MarshalXML

func (o *Excel) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML marshals Excel Drawings

type ExtType

type ExtType byte

ExtType is a type to encode ST_Ext

const (
	ExtTypeEdit ExtType
	ExtTypeView
	ExtTypeBackwardCompatible
)

List of all possible values for ExtType

func (ExtType) MarshalXMLAttr

func (t ExtType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal ExtType

func (ExtType) String

func (t ExtType) String() string

String returns string presentation of ExtType

func (*ExtType) UnmarshalXMLAttr

func (t *ExtType) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal ExtType

type Fill

type Fill struct {
	XMLName         xml.Name        `xml:"fill"`
	Color           string          `xml:"color,attr,omitempty"`
	Color2          string          `xml:"color2,attr,omitempty"`
	Colors          string          `xml:"colors,attr,omitempty"`
	Focus           css.Fraction    `xml:"focus,attr,omitempty"`
	FocusPosition   string          `xml:"focusposition,attr,omitempty"`
	FocusSize       string          `xml:"focussize,attr,omitempty"`
	ImageAlignShape ml.TriStateType `xml:"alignshape,attr,omitempty"`
	ImageAspect     ImageAspect     `xml:"aspect,attr,omitempty"`
	ImageSize       string          `xml:"size,attr,omitempty"`
	ImageSrc        string          `xml:"src,attr,omitempty"`
	Method          FillMethod      `xml:"method,attr,omitempty"`
	On              ml.TriStateType `xml:"on,attr,omitempty"`
	Opacity         css.Fraction    `xml:"opacity,attr,omitempty"`
	Origin          string          `xml:"origin,attr,omitempty"`
	Position        string          `xml:"position,attr,omitempty"`
	Type            FillType        `xml:"type,attr,omitempty"`
	ml.ReservedElements
	ml.ReservedAttributes
}

Fill is direct mapping of CT_Fill

func (*Fill) MarshalXML

func (s *Fill) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type FillMethod

type FillMethod byte //enum

FillMethod is direct mapping of ST_FillMethod

const (
	FillMethodNone FillMethod
	FillMethodLinear
	FillMethodSigma
	FillMethodAny
	FillMethodLinearSigma
)

List of all possible values for FillType

func (FillMethod) MarshalXMLAttr

func (t FillMethod) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal FillMethod

func (FillMethod) String

func (t FillMethod) String() string

String returns string presentation of FillMethod

func (*FillMethod) UnmarshalXMLAttr

func (t *FillMethod) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal FillMethod

type FillType

type FillType byte

FillType is direct mapping of ST_FillType

const (
	FillTypeSolid FillType
	FillTypeGradient
	FillTypeGradientRadial
	FillTypeTile
	FillTypePattern
	FillTypeFrame
)

List of all possible values for FillType

func (FillType) MarshalXMLAttr

func (t FillType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal FillType

func (FillType) String

func (t FillType) String() string

String returns string presentation of FillType

func (*FillType) UnmarshalXMLAttr

func (t *FillType) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal FillType

type Formula

type Formula string

Formula is direct mapping of CT_F

func (Formula) MarshalXML

func (s Formula) MarshalXML(e *xml.Encoder, start xml.StartElement) error

func (*Formula) UnmarshalXML

func (s *Formula) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error

type Formulas

type Formulas struct {
	XMLName xml.Name  `xml:"formulas"`
	List    []Formula `xml:"f"`
}

Formulas is direct mapping of CT_Formulas

func (*Formulas) MarshalXML

func (s *Formulas) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Handle

type Handle struct {
	InvX        bool   `xml:"invx,attr,omitempty"`
	InvY        bool   `xml:"invy,attr,omitempty"`
	Switch      bool   `xml:"switch,attr,omitempty"`
	Position    string `xml:"position,attr,omitempty"`
	Polar       string `xml:"polar,attr,omitempty"`
	Map         string `xml:"map,attr,omitempty"`
	XRange      string `xml:"xrange,attr,omitempty"`
	YRange      string `xml:"yrange,attr,omitempty"`
	RadiusRange string `xml:"radiusrange,attr,omitempty"`
	ml.ReservedAttributes
}

Handle is direct mapping of CT_H

func (*Handle) MarshalXML

func (s *Handle) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Handles

type Handles struct {
	XMLName xml.Name `xml:"handles"`
	List    []Handle `xml:"h"`
}

Handles is direct mapping of CT_Handles

func (*Handles) MarshalXML

func (s *Handles) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type IdMap

type IdMap struct {
	XMLName xml.Name `xml:"idmap"`
	Ext     ExtType  `xml:"ext,attr,omitempty"`
	Data    string   `xml:"data,attr,omitempty"`
}

IdMap is direct mapping of CT_IdMap

func (*IdMap) MarshalXML

func (s *IdMap) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ImageAspect

type ImageAspect byte

ImageAspect is direct mapping of ST_ImageAspect

const (
	ImageAspectIgnore ImageAspect
	ImageAspectAtMost
	ImageAspectAtLeast
)

List of all possible values for ImageAspect

func (ImageAspect) MarshalXMLAttr

func (t ImageAspect) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal ImageAspect

func (ImageAspect) String

func (t ImageAspect) String() string

String returns string presentation of ImageAspect

func (*ImageAspect) UnmarshalXMLAttr

func (t *ImageAspect) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal ImageAspect

type ImageData

type ImageData struct {
	XMLName xml.Name `xml:"imagedata"`
	ml.ReservedAttributes
	// contains filtered or unexported fields
}

ImageData is direct mapping of CT_ImageData

func (*ImageData) MarshalXML

func (s *ImageData) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type InsetModeType

type InsetModeType byte

InsetModeType is a type to encode ST_InsetMode

const (
	InsetModeCustom InsetModeType
	InsetModeAuto
)

List of all possible values for InsetMode

func (InsetModeType) MarshalXMLAttr

func (t InsetModeType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal InsetModeType

func (InsetModeType) String

func (t InsetModeType) String() string

String returns string presentation of InsetModeType

func (*InsetModeType) UnmarshalXMLAttr

func (t *InsetModeType) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal InsetModeType

type ObjectType

type ObjectType byte

ObjectType is direct mapping of ST_ObjectType

const (
	ObjectTypeButton ObjectType
	ObjectTypeCheckbox
	ObjectTypeDialog
	ObjectTypeDrop
	ObjectTypeEdit
	ObjectTypeGBox
	ObjectTypeLabel
	ObjectTypeLineA
	ObjectTypeList
	ObjectTypeMovie
	ObjectTypeNote
	ObjectTypePict
	ObjectTypeRadio
	ObjectTypeRectA
	ObjectTypeScroll
	ObjectTypeSpin
	ObjectTypeShape
	ObjectTypeGroup
	ObjectTypeRect
)

List of all possible values for ObjectType

func (ObjectType) MarshalXMLAttr

func (t ObjectType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal ObjectType

func (ObjectType) String

func (t ObjectType) String() string

String returns string presentation of ObjectType

func (*ObjectType) UnmarshalXMLAttr

func (t *ObjectType) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal ObjectType

type Path

type Path struct {
	XMLName         xml.Name        `xml:"path"`
	Value           string          `xml:"v,attr,omitempty"`
	ConnectType     ConnectType     `xml:"connecttype,attr,omitempty"`
	FillOK          ml.TriStateType `xml:"fillok,attr,omitempty"`
	StrokeOK        ml.TriStateType `xml:"strokeok,attr,omitempty"`
	ShadowOK        ml.TriStateType `xml:"shadowok,attr,omitempty"`
	ArrowOK         ml.TriStateType `xml:"arrowok,attr,omitempty"`
	GradientShapeOK ml.TriStateType `xml:"gradientshapeok,attr,omitempty"`
	ml.ReservedAttributes
}

Path is direct mapping of CT_Path

func (*Path) MarshalXML

func (s *Path) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type PowerPoint

type PowerPoint officeDrawing

PowerPoint is type for PowerPoint VML Drawings

func (*PowerPoint) MarshalXML

func (o *PowerPoint) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML marshals PowerPoint Drawings

type Shadow

type Shadow struct {
	XMLName  xml.Name        `xml:"shadow"`
	On       ml.TriStateType `xml:"on,attr,omitempty"`
	Type     ShadowType      `xml:"type,attr,omitempty"`
	Color    string          `xml:"color,attr,omitempty"`
	Color2   string          `xml:"color2,attr,omitempty"`
	Obscured ml.TriStateType `xml:"obscured,attr,omitempty"`
	Opacity  css.Fraction    `xml:"opacity,attr,omitempty"`
	Offset   string          `xml:"offset,attr,omitempty"`
	Offset2  string          `xml:"offset2,attr,omitempty"`
	Origin   string          `xml:"origin,attr,omitempty"`
	Matrix   string          `xml:"matrix,attr,omitempty"`
	ml.ReservedAttributes
}

Shadow is direct mapping of CT_Shadow

func (*Shadow) MarshalXML

func (s *Shadow) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ShadowType

type ShadowType byte //enum

ShadowType is direct mapping of ST_ShadowType

const (
	ShadowTypeSingle ShadowType
	ShadowTypeDouble
	ShadowTypeEmboss
	ShadowTypePerspective
)

List of all possible values for ShadowType

func (ShadowType) MarshalXMLAttr

func (t ShadowType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal ShadowType

func (ShadowType) String

func (t ShadowType) String() string

String returns string presentation of ShadowType

func (*ShadowType) UnmarshalXMLAttr

func (t *ShadowType) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal ShadowType

type Shape

type Shape struct {
	XMLName xml.Name `xml:"shape"`
	Type    string   `xml:"type,attr,omitempty"`
	ShapeType
}

Shape is direct mapping of CT_Shape

func (*Shape) Hash

func (s *Shape) Hash() index.Code

Hash builds hash code for all required values of Shape to use as unique index

func (*Shape) MarshalXML

func (s *Shape) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ShapeLayout

type ShapeLayout struct {
	XMLName xml.Name `xml:"shapelayout"`
	Ext     ExtType  `xml:"ext,attr,omitempty"`
	IdMap   *IdMap   `xml:"idmap,omitempty"`
	ml.ReservedElements
}

ShapeLayout is alias for CT_ShapeLayout

func (*ShapeLayout) MarshalXML

func (s *ShapeLayout) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type ShapeType

type ShapeType struct {
	XMLName xml.Name `xml:"shapetype"`
	Path    string   `xml:"path,attr,omitempty"`
	// contains filtered or unexported fields
}

ShapeType is direct mapping of CT_ShapeType

func (*ShapeType) MarshalXML

func (s *ShapeType) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Stroke

type Stroke struct {
	XMLName xml.Name          `xml:"stroke"`
	Left    *StrokeAttributes `xml:"left,omitempty"`
	Top     *StrokeAttributes `xml:"top,omitempty"`
	Right   *StrokeAttributes `xml:"right,omitempty"`
	Bottom  *StrokeAttributes `xml:"bottom,omitempty"`
	Column  *StrokeAttributes `xml:"column,omitempty"`
	StrokeAttributes
}

Stroke is direct mapping of CT_Stroke

func (*Stroke) MarshalXML

func (s *Stroke) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type StrokeArrowLength

type StrokeArrowLength byte

StrokeArrowLength is direct mapping of ST_StrokeArrowLength

const (
	StrokeArrowLengthShort StrokeArrowLength
	StrokeArrowLengthMedium
	StrokeArrowLengthLong
)

List of all possible values for StrokeArrowLength

func (StrokeArrowLength) MarshalXMLAttr

func (t StrokeArrowLength) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal StrokeArrowLength

func (StrokeArrowLength) String

func (t StrokeArrowLength) String() string

String returns string presentation of StrokeArrowLength

func (*StrokeArrowLength) UnmarshalXMLAttr

func (t *StrokeArrowLength) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal StrokeArrowLength

type StrokeArrowType

type StrokeArrowType byte //enum

StrokeArrowType is direct mapping of ST_StrokeArrowType

const (
	StrokeArrowTypeNone StrokeArrowType
	StrokeArrowTypeBlock
	StrokeArrowTypeClassic
	StrokeArrowTypeOval
	StrokeArrowTypeDiamond
	StrokeArrowTypeOpen
)

List of all possible values for StrokeArrowType

func (StrokeArrowType) MarshalXMLAttr

func (t StrokeArrowType) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal StrokeArrowType

func (StrokeArrowType) String

func (t StrokeArrowType) String() string

String returns string presentation of StrokeArrowType

func (*StrokeArrowType) UnmarshalXMLAttr

func (t *StrokeArrowType) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal StrokeArrowType

type StrokeArrowWidth

type StrokeArrowWidth byte

StrokeArrowWidth is direct mapping of ST_StrokeArrowWidth

const (
	StrokeArrowWidthNarrow StrokeArrowWidth
	StrokeArrowWidthMedium
	StrokeArrowWidthWide
)

List of all possible values for StrokeArrowWidth

func (StrokeArrowWidth) MarshalXMLAttr

func (t StrokeArrowWidth) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal StrokeArrowWidth

func (StrokeArrowWidth) String

func (t StrokeArrowWidth) String() string

String returns string presentation of StrokeArrowWidth

func (*StrokeArrowWidth) UnmarshalXMLAttr

func (t *StrokeArrowWidth) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal StrokeArrowWidth

type StrokeAttributes

type StrokeAttributes struct {
	Color            string            `xml:"color,attr,omitempty"`
	Color2           string            `xml:"color2,attr,omitempty"`
	DashStyle        StrokeDashStyle   `xml:"dashstyle,attr,omitempty"`
	EndArrow         StrokeArrowType   `xml:"endarrow,attr,omitempty"`
	EndArrowLength   StrokeArrowLength `xml:"endarrowlength,attr,omitempty"`
	EndArrowWidth    StrokeArrowWidth  `xml:"endarrowwidth,attr,omitempty"`
	EndCap           StrokeEndCap      `xml:"endcap,attr,omitempty"`
	FillType         FillType          `xml:"filltype,attr,omitempty"`
	ImageAlignShape  ml.TriStateType   `xml:"imagealignshape,attr,omitempty"`
	ImageAspect      ImageAspect       `xml:"imageaspect,attr,omitempty"`
	ImageSize        string            `xml:"imagesize,attr,omitempty"`
	ImageSrc         string            `xml:"src,attr,omitempty"`
	InsetPenOK       ml.TriStateType   `xml:"insetpen,attr,omitempty"`
	JoinStyle        StrokeJoinStyle   `xml:"joinstyle,attr,omitempty"`
	LineStyle        StrokeLineStyle   `xml:"linestyle,attr,omitempty"`
	On               ml.TriStateType   `xml:"on,attr,omitempty"`
	Opacity          css.Fraction      `xml:"opacity,attr,omitempty"`
	StartArrowLength StrokeArrowLength `xml:"startarrowlength,attr,omitempty"`
	StartArrow       StrokeArrowType   `xml:"startarrow,attr,omitempty"`
	StartArrowWidth  StrokeArrowWidth  `xml:"startarrowwidth,attr,omitempty"`
	Weight           css.Number        `xml:"weight,attr,omitempty"`
	ml.ReservedAttributes
}

StrokeAttributes is direct mapping of AG_StrokeAttributes

func (*StrokeAttributes) MarshalXML

func (s *StrokeAttributes) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type StrokeDashStyle

type StrokeDashStyle byte

StrokeDashStyle is mapping for stroke dash type

const (
	StrokeDashStyleSolid StrokeDashStyle
	StrokeDashStyleShortDash
	StrokeDashStyleShortDot
	StrokeDashStyleShortDashDot
	StrokeDashStyleShortDashDotDot
	StrokeDashStyleDot
	StrokeDashStyleDash
	StrokeDashStyleLongDash
	StrokeDashStyleDashDot
	StrokeDashStyleLongDashDot
	StrokeDashStyleLongDashDotDot
)

List of all possible values for StrokeDashStyle

func (StrokeDashStyle) MarshalXMLAttr

func (t StrokeDashStyle) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal StrokeDashStyle

func (StrokeDashStyle) String

func (t StrokeDashStyle) String() string

String returns string presentation of StrokeDashStyle

func (*StrokeDashStyle) UnmarshalXMLAttr

func (t *StrokeDashStyle) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal StrokeDashStyle

type StrokeEndCap

type StrokeEndCap byte //enum

StrokeEndCap is direct mapping of ST_StrokeEndCap

const (
	StrokeEndCapFlat StrokeEndCap
	StrokeEndCapSquare
	StrokeEndCapRound
)

List of all possible values for StrokeEndCap

func (StrokeEndCap) MarshalXMLAttr

func (t StrokeEndCap) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal StrokeEndCap

func (StrokeEndCap) String

func (t StrokeEndCap) String() string

String returns string presentation of StrokeEndCap

func (*StrokeEndCap) UnmarshalXMLAttr

func (t *StrokeEndCap) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal StrokeEndCap

type StrokeJoinStyle

type StrokeJoinStyle byte

StrokeJoinStyle is direct mapping of ST_StrokeJoinStyle

const (
	StrokeJoinStyleRound StrokeJoinStyle
	StrokeJoinStyleBevel
	StrokeJoinStyleMiter
)

List of all possible values for StrokeJoinStyle

func (StrokeJoinStyle) MarshalXMLAttr

func (t StrokeJoinStyle) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal StrokeJoinStyle

func (StrokeJoinStyle) String

func (t StrokeJoinStyle) String() string

String returns string presentation of StrokeJoinStyle

func (*StrokeJoinStyle) UnmarshalXMLAttr

func (t *StrokeJoinStyle) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal StrokeJoinStyle

type StrokeLineStyle

type StrokeLineStyle byte

StrokeLineStyle is direct mapping of ST_StrokeLineStyle

const (
	StrokeLineStyleSingle StrokeLineStyle
	StrokeLineStyleThinThin
	StrokeLineStyleThinThick
	StrokeLineStyleThickThin
	StrokeLineStyleThickBetweenThin
)

List of all possible values for StrokeLineStyle

func (StrokeLineStyle) MarshalXMLAttr

func (t StrokeLineStyle) MarshalXMLAttr(name xml.Name) (xml.Attr, error)

MarshalXMLAttr marshal StrokeLineStyle

func (StrokeLineStyle) String

func (t StrokeLineStyle) String() string

String returns string presentation of StrokeLineStyle

func (*StrokeLineStyle) UnmarshalXMLAttr

func (t *StrokeLineStyle) UnmarshalXMLAttr(attr xml.Attr) error

UnmarshalXMLAttr unmarshal StrokeLineStyle

type TextBox

type TextBox struct {
	XMLName   xml.Name      `xml:"textbox"`
	Style     string        `xml:"style,attr,omitempty"`
	Inset     string        `xml:"inset,attr,omitempty"`
	InsetMode InsetModeType `xml:"insetmode,attr,omitempty"`
	Text      string        `xml:",innerxml"`
	ml.ReservedAttributes
}

TextBox is direct mapping of CT_TextBox

func (*TextBox) MarshalXML

func (s *TextBox) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type TextPath

type TextPath struct {
	XMLName  xml.Name        `xml:"textpath"`
	Style    string          `xml:"style,attr,omitempty"`
	Text     string          `xml:"string,attr,omitempty"`
	On       ml.TriStateType `xml:"on,attr,omitempty"`
	FitShape ml.TriStateType `xml:"fitshape,attr,omitempty"`
	FitPath  ml.TriStateType `xml:"fitpath,attr,omitempty"`
	Trim     ml.TriStateType `xml:"trim,attr,omitempty"`
	XScale   ml.TriStateType `xml:"xscale,attr,omitempty"`
	ml.ReservedAttributes
}

TextPath is direct mapping of CT_TextPath

func (*TextPath) MarshalXML

func (s *TextPath) MarshalXML(e *xml.Encoder, start xml.StartElement) error

type Word

type Word officeDrawing

Word is type for Word VML Drawings

func (*Word) MarshalXML

func (o *Word) MarshalXML(e *xml.Encoder, start xml.StartElement) error

MarshalXML marshals Word Drawings

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL