Documentation ¶
Index ¶
- func Arc() *arc
- func Curve() *curve
- func Image() *image
- func Line() *line
- func Oval() *oval
- func PolyLine() *polyLine
- func Rect() *rect
- func RoundRect() *roundRect
- type ClientData
- type ClientDataAnchor
- type ConnectType
- type Excel
- type ExtType
- type Fill
- type FillMethod
- type FillType
- type Formula
- type Formulas
- type Handle
- type Handles
- type IdMap
- type ImageAspect
- type ImageData
- type InsetModeType
- type ObjectType
- type Path
- type PowerPoint
- type Shadow
- type ShadowType
- type Shape
- type ShapeLayout
- type ShapeType
- type Stroke
- type StrokeArrowLength
- type StrokeArrowType
- type StrokeArrowWidth
- type StrokeAttributes
- type StrokeDashStyle
- type StrokeEndCap
- type StrokeJoinStyle
- type StrokeLineStyle
- type TextBox
- type TextPath
- type Word
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
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 ¶
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 ¶
MarshalXMLAttr marshal 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 ¶
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 ¶
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 ¶
MarshalXMLAttr marshal FillType
type Formula ¶
type Formula string
Formula is direct mapping of CT_F
func (Formula) MarshalXML ¶
func (*Formula) UnmarshalXML ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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) MarshalXML ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
type Word ¶
type Word officeDrawing
Word is type for Word VML Drawings
func (*Word) MarshalXML ¶
MarshalXML marshals Word Drawings
Source Files ¶
- attr_connect_type.go
- attr_ext.go
- attr_fill_method.go
- attr_fill_type.go
- attr_image_aspect.go
- attr_inset_mode.go
- attr_object_type.go
- attr_shadow_type.go
- attr_stroke_arrow_length.go
- attr_stroke_arrow_type.go
- attr_stroke_arrow_width.go
- attr_stroke_dash_style.go
- attr_stroke_end_cap.go
- attr_stroke_join_style.go
- attr_stroke_line_style.go
- excel_client_data.go
- excel_client_data_anchor.go
- office_idmap.go
- shape_attributes.go
- shape_elements.go
- shape_predefined.go
- vml.go
- vml_arc.go
- vml_curve.go
- vml_image.go
- vml_line.go
- vml_oval.go
- vml_polyline.go
- vml_rect.go
- vml_round_rect.go
- vml_shape.go
- vml_shape_layout.go
- vml_shape_type.go
- vml_sub_fill.go
- vml_sub_formula.go
- vml_sub_handle.go
- vml_sub_image_data.go
- vml_sub_path.go
- vml_sub_shadow.go
- vml_sub_stroke.go
- vml_sub_text_box.go
- vml_sub_text_path.go