Documentation ¶
Index ¶
- type A14Ext
- type A14UseLocalDpi
- type ABlip
- type ABlipFill
- type ACNvGraphicFramePr
- type AExtLst
- type AGraphic
- type APrstGeom
- type ASpPr
- type AStretch
- type AXfrm
- type AXmlnSValue
- type Anchor
- type AvLst
- type BdrValue
- type Blip
- type BlipFill
- type Body
- type BodyParams
- type BookMarkEnd
- type BookMarkStart
- type BoolValue
- type CNvGraphicFramePr
- type CxCyValue
- type DocItem
- type DocItemType
- type Document
- type Drawing
- type EmptyValue
- type Ext
- type ExtLst
- type FillRect
- type FloatValue
- type Graphic
- type GraphicData
- type Header
- type HeightValue
- type IBookMark
- type IdNameValue
- type Inline
- type IntValue
- type LookValue
- type LtrbValue
- type MarginValue
- type Margins
- type NvPicPr
- type PBdrValue
- type ParagraphItem
- type ParagraphParams
- type Pic
- type PicGraphicData
- type PicNvPicPr
- type PicPic
- type Position
- type PrstGeom
- type RecordFonts
- type RecordItem
- type RecordParams
- type ReferenceValue
- type ShadowValue
- type SimpleDocxFile
- type SizeRel
- type SizeValue
- type SpPr
- type SpacingValue
- type Stretch
- type StringValue
- type StyleValue
- type TableBorder
- type TableBorders
- type TableCell
- type TableCellParams
- type TableGrid
- type TableItem
- type TableLayout
- type TableParams
- type TableParamsEx
- type TableRow
- type TableRowParams
- type Text
- type UseLocalDpi
- type WAnchor
- type WBdrValue
- type WBodyParams
- type WDrawing
- type WEmptyValue
- type WInline
- type WIntValue
- type WLookValue
- type WMarginValue
- type WMargins
- type WPBdrValue
- type WParagraphParams
- type WPosition
- type WRecordFonts
- type WRecordParams
- type WReferenceValue
- type WShadowValue
- type WSizeRel
- type WSizeValue
- type WSpacingValue
- type WStringValue
- type WStyleValue
- type WTableBorder
- type WTableBorders
- type WTableCellParams
- type WTableGrid
- type WTableLayout
- type WTableParams
- type WTableParamsEx
- type WText
- type WWidthValue
- type WidthValue
- type Xfrm
- type XmlnSValue
- type XyValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type A14Ext ¶
type A14Ext struct { Uri string `xml:"uri,attr,omitempty"` UseLocalDpi *A14UseLocalDpi `xml:"a14:useLocalDpi,omitempty"` }
type A14UseLocalDpi ¶
type ACNvGraphicFramePr ¶
type ACNvGraphicFramePr struct {
GraphicFrameLocks *AXmlnSValue `xml:"a:graphicFrameLocks,omitempty"`
}
type AGraphic ¶
type AGraphic struct { A string `xml:"xmlns:a,attr,omitempty"` NoChangeAspect string `xml:"noChangeAspect,attr,omitempty"` GraphicData *PicGraphicData `xml:"a:graphicData,omitempty"` }
type AXmlnSValue ¶
type Anchor ¶
type Anchor struct { DistT string `xml:"distT,attr,omitempty"` DistB string `xml:"distB,attr,omitempty"` DistL string `xml:"distL,attr,omitempty"` DistR string `xml:"distR,attr,omitempty"` SimplePosAttr string `xml:"simplePos,attr,omitempty"` SimplePos *XyValue `xml:"simplePos,omitempty"` RelativeHeight string `xml:"relativeHeight,attr,omitempty"` BehindDoc string `xml:"behindDoc,attr,omitempty"` Locked string `xml:"locked,attr,omitempty"` LayoutInCell string `xml:"layoutInCell,attr,omitempty"` AllowOverlap string `xml:"allowOverlap,attr,omitempty"` PositionH *Position `xml:"positionH,omitempty"` PositionV *Position `xml:"positionV,omitempty"` Extent *CxCyValue `xml:"extent,omitempty"` EffectExtent *LtrbValue `xml:"effectExtent,omitempty"` WrapNone *EmptyValue `xml:"wrapNone,omitempty"` DocPr *IdNameValue `xml:"docPr,omitempty"` CNvGraphicFramePr *CNvGraphicFramePr `xml:"cNvGraphicFramePr,omitempty"` Graphic *Graphic `xml:"graphic,omitempty"` SizeRelH *SizeRel `xml:"sizeRelH,omitempty"` SizeRelV *SizeRel `xml:"sizeRelV,omitempty"` }
type BdrValue ¶
type Blip ¶
type BlipFill ¶
type BlipFill struct { Blip *Blip `xml:"blip,omitempty"` Stretch Stretch `xml:"strecth,omitempty"` }
func (*BlipFill) ToABlipFill ¶
type Body ¶
type Body struct { Items []DocItem Params BodyParams `xml:"sectPr"` }
Body - тело документа
type BodyParams ¶
type BodyParams struct { HeaderReference *ReferenceValue `xml:"headerReference,omitempty"` PageSize SizeValue `xml:"pgSz"` PageMargin MarginValue `xml:"pgMar"` Bidi IntValue `xml:"bidi"` }
BodyParams - параметры тела документа
func (*BodyParams) ToWBodyParams ¶
func (b *BodyParams) ToWBodyParams() WBodyParams
type BookMarkEnd ¶
type BookMarkEnd struct {
IBookMark
}
func (*BookMarkEnd) Clone ¶
func (b *BookMarkEnd) Clone() DocItem
func (*BookMarkEnd) Tag ¶
func (b *BookMarkEnd) Tag() string
type BookMarkStart ¶
type BookMarkStart struct {
IBookMark
}
func (*BookMarkStart) Clone ¶
func (b *BookMarkStart) Clone() DocItem
func (*BookMarkStart) Tag ¶
func (b *BookMarkStart) Tag() string
type BoolValue ¶
type BoolValue struct {
Value bool `xml:"val,attr"`
}
BoolValue - одиночное bool значение
type CNvGraphicFramePr ¶
type CNvGraphicFramePr struct {
GraphicFrameLocks *XmlnSValue `xml:"graphicFrameLocks,omitempty"`
}
func (*CNvGraphicFramePr) ToACNvGraphicFramePr ¶
func (c *CNvGraphicFramePr) ToACNvGraphicFramePr() *ACNvGraphicFramePr
type DocItem ¶
type DocItem interface { Tag() string Type() DocItemType PlainText() string Clone() DocItem // contains filtered or unexported methods }
DocItem - интерфейс элемента документа
type DocItemType ¶
type DocItemType int
DocItemType - тип элемента
const ( Paragraph DocItemType = iota Record Table BookMark )
Paragraph - параграф
type Document ¶
Document - документ разметки DOCX
type Drawing ¶
type Drawing struct { Inline *Inline `xml:"inline,omitempty"` Anchor *Anchor `xml:"anchor,omitempty"` }
func (*Drawing) ToWDrawing ¶
type Ext ¶
type Ext struct { Uri string `xml:"uri,attr,omitempty"` UseLocalDpi *UseLocalDpi `xml:"useLocalDpi,omitempty"` }
type FloatValue ¶
type FloatValue struct {
Value float64 `xml:"val,attr"`
}
FloatValue - одиночное float значение
type Graphic ¶
type Graphic struct { A string `xml:"a,attr,omitempty"` NoChangeAspect string `xml:"noChangeAspect,attr,omitempty"` GraphicData *GraphicData `xml:"graphicData,omitempty"` }
func (*Graphic) ToAGraphic ¶
type GraphicData ¶
func (*GraphicData) ToPicGraphicData ¶
func (g *GraphicData) ToPicGraphicData() *PicGraphicData
type Header ¶
Header - разметка заголовка DOCX
type HeightValue ¶
type HeightValue struct { Value int64 `xml:"val,attr"` HeightRule string `xml:"hRule,attr,omitempty"` }
HeightValue - значение высоты
type IBookMark ¶
type IBookMark struct { ID string `xml:"id,attr,omitempty"` Name string `xml:"name,attr,omitempty"` }
func (*IBookMark) Type ¶
func (b *IBookMark) Type() DocItemType
type IdNameValue ¶
type Inline ¶
type Inline struct { DistT string `xml:"distT,attr,omitempty"` DistB string `xml:"distB,attr,omitempty"` DistL string `xml:"distL,attr,omitempty"` DistR string `xml:"distR,attr,omitempty"` Extent *CxCyValue `xml:"extent,omitempty"` EffectExtent *LtrbValue `xml:"effectExtent,omitempty"` DocPr *IdNameValue `xml:"docPr,omitempty"` CNvGraphicFramePr *CNvGraphicFramePr `xml:"cNvGraphicFramePr,omitempty"` Graphic *Graphic `xml:"graphic,omitempty"` }
type IntValue ¶
type IntValue struct {
Value int64 `xml:"val,attr"`
}
IntValue - одиночное int значение
type LookValue ¶
type LookValue struct { Value string `xml:"val,attr,omitempty"` FirstRow string `xml:"firstRow,attr,omitempty"` LastRow string `xml:"lastRow,attr,omitempty"` FirstColumn string `xml:"firstColumn,attr,omitempty"` LastColumn string `xml:"lastColumn,attr,omitempty"` NoHBand string `xml:"noHBand,attr,omitempty"` NoVBand string `xml:"noVBand,attr,omitempty"` }
type MarginValue ¶
type MarginValue struct { Top int64 `xml:"top,attr,omitempty"` Left int64 `xml:"left,attr,omitempty"` Bottom int64 `xml:"bottom,attr,omitempty"` Right int64 `xml:"right,attr,omitempty"` Header int64 `xml:"header,attr,omitempty"` }
MarginValue - margin значение
type Margins ¶
type Margins struct { Top WidthValue `xml:"top"` Left WidthValue `xml:"left"` Bottom WidthValue `xml:"bottom"` Right WidthValue `xml:"right"` }
Margins - margins значение
func (*Margins) ToWMargins ¶
type NvPicPr ¶
type NvPicPr struct { CNvPr *IdNameValue `xml:"cNvPr,omitempty"` CNvPicPr *EmptyValue `xml:"cNvPicPr,omitempty"` }
type PBdrValue ¶
type PBdrValue struct { Top BdrValue `xml:"top,omitempty"` Left BdrValue `xml:"left,omitempty"` Bottom BdrValue `xml:"bottom,omitempty"` Right BdrValue `xml:"right,omitempty"` Between BdrValue `xml:"between,omitempty"` Bar BdrValue `xml:"bar,omitempty"` }
func (*PBdrValue) ToWPBdrValue ¶
func (pv *PBdrValue) ToWPBdrValue() *WPBdrValue
type ParagraphItem ¶
type ParagraphItem struct { Params ParagraphParams `xml:"pPr"` Items []DocItem RsidR string `xml:"rsidR,attr,omitempty"` RsidRDefault string `xml:"rsidRDefault,attr,omitempty"` RsidP string `xml:"rsidP,attr,omitempty"` RsidRPr string `xml:"rsidRPr,attr,omitempty"` }
ParagraphItem - параграф
type ParagraphParams ¶
type ParagraphParams struct { Style *StringValue `xml:"pStyle,omitempty"` Spacing *SpacingValue `xml:"spacing,omitempty"` Jc *StringValue `xml:"jc,omitempty"` Bidi *IntValue `xml:"bidi,omitempty"` PBdr *PBdrValue `xml:"pBdr,omitempty"` WindowControl *StringValue `xml:"windowControl,omitempty"` Ind *MarginValue `xml:"ind,omitempty"` Rpr *RecordParams `xml:"rPr,omitempty"` }
ParagraphParams - параметры параграфа
func (*ParagraphParams) ToWParagraphParams ¶
func (pp *ParagraphParams) ToWParagraphParams() *WParagraphParams
type Pic ¶
type PicGraphicData ¶
type PicNvPicPr ¶
type PicNvPicPr struct { CNvPr *IdNameValue `xml:"pic:cNvPr,omitempty"` CNvPicPr *EmptyValue `xml:"pic:cNvPicPr,omitempty"` }
type PicPic ¶
type PicPic struct { Pic string `xml:"xmlns:pic,attr,omitempty"` NvPicPr *PicNvPicPr `xml:"pic:nvPicPr,omitempty"` BlipFill *ABlipFill `xml:"pic:blipFill,omitempty"` SpPr *ASpPr `xml:"pic:spPr,omitempty"` }
type RecordFonts ¶
type RecordFonts struct { ASCII string `xml:"ascii,attr"` CS string `xml:"cs,attr"` HandleANSI string `xml:"hAnsi,attr"` EastAsia string `xml:"eastAsia,attr"` HandleInt string `xml:"hint,attr,omitempty"` }
RecordFonts - fonts in record
type RecordItem ¶
type RecordItem struct { Params *RecordParams `xml:"rPr,omitempty"` Text Text `xml:"t,omitempty"` Tab bool `xml:"tab,omitempty"` Break bool `xml:"br,omitempty"` Drawing *Drawing `xml:"drawing,omitempty"` }
RecordItem - record item
type RecordParams ¶
type RecordParams struct { Fonts *RecordFonts `xml:"rFonts,omitempty"` Rtl *IntValue `xml:"rtl,omitempty"` Size *IntValue `xml:"sz,omitempty"` SizeCs *IntValue `xml:"szCs,omitempty"` Lang *StringValue `xml:"lang,omitempty"` Underline *ShadowValue `xml:"u,omitempty"` Italic *EmptyValue `xml:"i,omitempty"` Bold *EmptyValue `xml:"b,omitempty"` BoldCS *EmptyValue `xml:"bCs,omitempty"` Color *StringValue `xml:"color,omitempty"` Highlight *StyleValue `xml:"highlight,omitempty"` VertAlign *StyleValue `xml:"vertAlign,omitempty"` Strike *EmptyValue `xml:"strike,omitempty"` NoProof *EmptyValue `xml:"noProof,omitempty"` }
RecordParams - params record
func (*RecordParams) Clone ¶
func (rp *RecordParams) Clone() *RecordParams
func (*RecordParams) ToWRecordParams ¶
func (rp *RecordParams) ToWRecordParams() *WRecordParams
type ReferenceValue ¶
ReferenceValue - reference value
type ShadowValue ¶
type ShadowValue struct { Value string `xml:"val,attr"` Color string `xml:"color,attr"` Fill string `xml:"fill,attr"` ThemeFill string `xml:"themeFill,attr,omitempty"` ThemeFillShade string `xml:"themeFillShade,attr,omitempty"` }
ShadowValue - значение тени
type SimpleDocxFile ¶
type SimpleDocxFile struct {
// contains filtered or unexported fields
}
SimpleDocxFile - файл docx
func OpenFile ¶
func OpenFile(fileName string) (*SimpleDocxFile, error)
OpenFile - Открытие файла DOCX
func (*SimpleDocxFile) Render ¶
func (f *SimpleDocxFile) Render(v interface{}) error
Render (SimpleDocxFile) - рендер шаблона
func (*SimpleDocxFile) RenderHeader ¶
func (f *SimpleDocxFile) RenderHeader(index int, v interface{}) error
RenderHeader (SimpleDocxFile) - рендер заголовка шаблона
func (*SimpleDocxFile) Save ¶
func (f *SimpleDocxFile) Save(fileName string) error
Save (SimpleDocxFile) - сохранить
type SizeValue ¶
type SizeValue struct { Width int64 `xml:"w,attr"` Height int64 `xml:"h,attr"` Orientation string `xml:"orient,attr,omitempty"` }
SizeValue - значение размера
type SpPr ¶
type SpacingValue ¶
type SpacingValue struct { After int64 `xml:"after,attr"` Before int64 `xml:"before,attr"` Line int64 `xml:"line,attr"` LineRule string `xml:"lineRule,attr"` }
SpacingValue - spacing value
type StringValue ¶
type StringValue struct {
Value string `xml:"val,attr,omitempty"`
}
StringValue - одиночное string значение
type StyleValue ¶
type StyleValue struct {
Value string `xml:"val,attr,omitempty"`
}
func (*StyleValue) From ¶
func (s *StyleValue) From(s1 *StyleValue)
type TableBorder ¶
type TableBorder struct { Value string `xml:"val,attr"` Color string `xml:"color,attr"` Size int64 `xml:"sz,attr"` Space int64 `xml:"space,attr"` Shadow int64 `xml:"shadow,attr"` Frame int64 `xml:"frame,attr"` }
TableBorder in borders
type TableBorders ¶
type TableBorders struct { Top TableBorder `xml:"top"` Left TableBorder `xml:"left"` Bottom TableBorder `xml:"bottom"` Right TableBorder `xml:"right"` InsideH *TableBorder `xml:"insideH,omitempty"` InsideV *TableBorder `xml:"insideV,omitempty"` }
TableBorders in table
func (*TableBorders) ToWTableBorders ¶
func (tb *TableBorders) ToWTableBorders() *WTableBorders
type TableCell ¶
type TableCell struct { Params TableCellParams `xml:"tcPr"` Items []DocItem }
TableCell - table cell
type TableCellParams ¶
type TableCellParams struct { Width *WidthValue `xml:"tcW,omitempty"` Borders *TableBorders `xml:"tcBorders,omitempty"` Shadow *ShadowValue `xml:"shd,omitempty"` Margins *Margins `xml:"tcMar,omitempty"` VerticalAlign *StringValue `xml:"vAlign,omitempty"` VerticalMerge *StringValue `xml:"vMerge,omitempty"` GridSpan *IntValue `xml:"gridSpan,omitempty"` HideMark *EmptyValue `xml:"hideMark,omitempty"` NoWrap *EmptyValue `xml:"noWrap,omitempty"` }
TableCellParams - cell params
type TableGrid ¶
type TableGrid struct {
Cols []*WidthValue `xml:"gridCol,omitempty"`
}
TableGrid - Grid table
func (*TableGrid) ToWGirdParams ¶
func (g *TableGrid) ToWGirdParams() *WTableGrid
type TableItem ¶
type TableItem struct { Params TableParams `xml:"tblPr"` Grid TableGrid `xml:"tblGrid"` Rows []*TableRow `xml:"tr,omitempty"` }
TableItem - элемент таблици
type TableLayout ¶
type TableLayout struct {
Type string `xml:"type,attr"`
}
TableLayout - layout params
type TableParams ¶
type TableParams struct { Style *StyleValue `xml:"tblStyle,omitempty"` Width *WidthValue `xml:"tblW,omitempty"` Jc *StringValue `xml:"jc,omitempty"` Ind *WidthValue `xml:"tblInd,omitempty"` Borders *TableBorders `xml:"tblBorders,omitempty"` Shadow *ShadowValue `xml:"shd,omitempty"` Layout *TableLayout `xml:"tblLayout,omitempty"` DocGrid *IntValue `xml:"docGrid,omitempty"` Look *LookValue `xml:"tblLook,omitempty"` }
TableParams - Params table
func (*TableParams) ToWTableParams ¶
func (tp *TableParams) ToWTableParams() *WTableParams
type TableParamsEx ¶
type TableParamsEx struct {
Shadow ShadowValue `xml:"shd"`
}
TableParamsEx - Other params table
type TableRow ¶
type TableRow struct { OtherParams *TableParamsEx `xml:"tblPrEx,omitempty"` Params *TableRowParams `xml:"trPr"` Cells []*TableCell `xml:"tc,omitempty"` RsidR string `xml:"rsidR,attr,omitempty"` RsidTr string `xml:"rsidTr,attr,omitempty"` }
TableRow - row in table
type TableRowParams ¶
type TableRowParams struct { Height HeightValue `xml:"trHeight"` IsHeader bool }
TableRowParams - row params
type UseLocalDpi ¶
type WAnchor ¶
type WAnchor struct { DistT string `xml:"distT,attr,omitempty"` DistB string `xml:"distB,attr,omitempty"` DistL string `xml:"distL,attr,omitempty"` DistR string `xml:"distR,attr,omitempty"` SimplePosAttr string `xml:"simplePos,attr,omitempty"` RelativeHeight string `xml:"relativeHeight,attr,omitempty"` BehindDoc string `xml:"behindDoc,attr,omitempty"` Locked string `xml:"locked,attr,omitempty"` LayoutInCell string `xml:"layoutInCell,attr,omitempty"` AllowOverlap string `xml:"allowOverlap,attr,omitempty"` SimplePos *XyValue `xml:"wp:simplePos,omitempty"` PositionH *WPosition `xml:"wp:positionH,omitempty"` PositionV *WPosition `xml:"wp:positionV,omitempty"` Extent *CxCyValue `xml:"wp:extent,omitempty"` EffectExtent *LtrbValue `xml:"wp:effectExtent,omitempty"` WrapNone *EmptyValue `xml:"wp:wrapNone,omitempty"` DocPr *IdNameValue `xml:"wp:docPr,omitempty"` CNvGraphicFramePr *ACNvGraphicFramePr `xml:"wp:cNvGraphicFramePr,omitempty"` Graphic *AGraphic `xml:"a:graphic,omitempty"` SizeRelH *WSizeRel `xml:"wp14:sizeRelH,omitempty"` SizeRelV *WSizeRel `xml:"wp14:sizeRelV,omitempty"` }
type WBodyParams ¶
type WBodyParams struct { HeaderReference *WReferenceValue `xml:"w:headerReference,omitempty"` PageSize WSizeValue `xml:"w:pgSz"` PageMargin WMarginValue `xml:"w:pgMar"` Bidi WIntValue `xml:"w:bidi"` }
type WEmptyValue ¶
type WEmptyValue struct { }
type WInline ¶
type WInline struct { DistT string `xml:"distT,attr,omitempty"` DistB string `xml:"distB,attr,omitempty"` DistL string `xml:"distL,attr,omitempty"` DistR string `xml:"distR,attr,omitempty"` Extent *CxCyValue `xml:"wp:extent,omitempty"` EffectExtent *LtrbValue `xml:"wp:effectExtent,omitempty"` DocPr *IdNameValue `xml:"wp:docPr,omitempty"` CNvGraphicFramePr *ACNvGraphicFramePr `xml:"wp:cNvGraphicFramePr,omitempty"` Graphic *AGraphic `xml:"a:graphic,omitempty"` }
type WLookValue ¶
type WLookValue struct { Value string `xml:"w:val,attr,omitempty"` FirstRow string `xml:"w:firstRow,attr,omitempty"` LastRow string `xml:"w:lastRow,attr,omitempty"` FirstColumn string `xml:"w:firstColumn,attr,omitempty"` LastColumn string `xml:"w:lastColumn,attr,omitempty"` NoHBand string `xml:"w:noHBand,attr,omitempty"` NoVBand string `xml:"w:noVBand,attr,omitempty"` }
type WMarginValue ¶
type WMargins ¶
type WMargins struct { Top WWidthValue `xml:"w:top"` Left WWidthValue `xml:"w:left"` Bottom WWidthValue `xml:"w:bottom"` Right WWidthValue `xml:"w:right"` }
type WPBdrValue ¶
type WParagraphParams ¶
type WParagraphParams struct { Style *WStringValue `xml:"w:pStyle,omitempty"` Spacing *WSpacingValue `xml:"w:spacing,omitempty"` Jc *WStringValue `xml:"w:jc,omitempty"` Bidi *WIntValue `xml:"w:bidi,omitempty"` PBdr *WPBdrValue `xml:"w:pBdr,omitempty"` WindowControl *WStringValue `xml:"w:windowControl,omitempty"` Ind *WMarginValue `xml:"w:ind,omitempty"` Rpr *WRecordParams `xml:"w:rPr,omitempty"` }
type WRecordFonts ¶
type WRecordParams ¶
type WRecordParams struct { Fonts *WRecordFonts `xml:"w:rFonts,omitempty"` Rtl *WIntValue `xml:"w:rtl,omitempty"` Size *WIntValue `xml:"w:sz,omitempty"` SizeCs *WIntValue `xml:"w:szCs,omitempty"` Lang *WStringValue `xml:"w:lang,omitempty"` Underline *WShadowValue `xml:"w:u,omitempty"` Italic *WEmptyValue `xml:"w:i,omitempty"` Bold *WEmptyValue `xml:"w:b,omitempty"` BoldCS *WEmptyValue `xml:"w:bCs,omitempty"` Color *WStringValue `xml:"w:color,omitempty"` Highlight *WStyleValue `xml:"w:highlight,omitempty"` VertAlign *WStyleValue `xml:"w:vertAlign,omitempty"` Strike *WEmptyValue `xml:"w:strike,omitempty"` NoProof *WEmptyValue `xml:"w:noProof,omitempty"` }
type WReferenceValue ¶
type WShadowValue ¶
type WSizeValue ¶
type WSpacingValue ¶
type WStringValue ¶
type WStringValue struct {
Value string `xml:"w:val,attr,omitempty"`
}
type WStyleValue ¶
type WStyleValue struct {
Value string `xml:"w:val,attr,omitempty"`
}
type WTableBorder ¶
type WTableBorders ¶
type WTableBorders struct { Top WTableBorder `xml:"w:top"` Left WTableBorder `xml:"w:left"` Bottom WTableBorder `xml:"w:bottom"` Right WTableBorder `xml:"w:right"` InsideH *WTableBorder `xml:"w:insideH,omitempty"` InsideV *WTableBorder `xml:"w:insideV,omitempty"` }
type WTableCellParams ¶
type WTableCellParams struct { Width *WWidthValue `xml:"w:tcW,omitempty"` Borders *WTableBorders `xml:"w:tcBorders,omitempty"` Shadow *WShadowValue `xml:"w:shd,omitempty"` Margins *WMargins `xml:"w:tcMar,omitempty"` VerticalAlign *WStringValue `xml:"w:vAlign,omitempty"` VerticalMerge *WStringValue `xml:"w:vMerge,omitempty"` GridSpan *WIntValue `xml:"w:gridSpan,omitempty"` HideMark *WEmptyValue `xml:"w:hideMark,omitempty"` NoWrap *WEmptyValue `xml:"w:noWrap,omitempty"` }
type WTableGrid ¶
type WTableGrid struct {
Cols []*WWidthValue `xml:"w:gridCol,omitempty"`
}
type WTableLayout ¶
type WTableLayout struct {
Type string `xml:"w:type,attr"`
}
type WTableParams ¶
type WTableParams struct { Style *WStyleValue `xml:"w:tblStyle,omitempty"` Width *WWidthValue `xml:"w:tblW,omitempty"` Jc *WStringValue `xml:"w:jc,omitempty"` Ind *WWidthValue `xml:"w:tblInd,omitempty"` Borders *WTableBorders `xml:"w:tblBorders,omitempty"` Shadow *WShadowValue `xml:"w:shd,omitempty"` Layout *WTableLayout `xml:"w:tblLayout,omitempty"` DocGrid *WIntValue `xml:"w:docGrid,omitempty"` Look *WLookValue `xml:"w:tblLook,omitempty"` }
type WTableParamsEx ¶
type WTableParamsEx struct {
Shadow ShadowValue `xml:"w:shd"`
}
type WWidthValue ¶
type WidthValue ¶
WidthValue - значение длины