Documentation ¶
Index ¶
- Constants
- type DocumentContent
- type DocumentContentType
- type Header
- func (h *Header) AddParagraph() *paragraph.Paragraph
- func (h *Header) AddTable() *table.Table
- func (h *Header) AddTableWithColumns(columns int) *table.Table
- func (h *Header) AddTableWithColumnsAndAutoWidth(columns int) *table.Table
- func (h *Header) GenerateFileName() string
- func (h *Header) GetContents() []*DocumentContent
- func (h *Header) GetFileName() string
- func (h *Header) GetRId() string
- func (h *Header) GetXmlBytes() ([]byte, error)
- func (h *Header) SetRId(rId string) *Header
Constants ¶
View Source
const ( DocumentContentTypeParagraph = DocumentContentType("paragraph") DocumentContentTypeTable = DocumentContentType("table") )
View Source
const TableDefaultWidth = 8800
TableDefaultWidth 表格默认宽度
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentContent ¶
type DocumentContent struct {
// contains filtered or unexported fields
}
DocumentContent 文档内容
func (*DocumentContent) GetContentType ¶
func (d *DocumentContent) GetContentType() DocumentContentType
func (*DocumentContent) GetParagraph ¶
func (d *DocumentContent) GetParagraph() *paragraph.Paragraph
func (*DocumentContent) GetTable ¶
func (d *DocumentContent) GetTable() *table.Table
type DocumentContentType ¶
type DocumentContentType string
type Header ¶
type Header struct {
// contains filtered or unexported fields
}
Header 页头定义
func (*Header) AddParagraph ¶
AddParagraph 添加一个段落
func (*Header) AddTableWithColumns ¶
AddTableWithColumns 添加一个拥有指定列数量的表格
func (*Header) AddTableWithColumnsAndAutoWidth ¶
AddTableWithColumnsAndAutoWidth 添加一个拥有指定列数量的表格,并且自动计算所有列的宽度
func (*Header) GetContents ¶
func (h *Header) GetContents() []*DocumentContent
func (*Header) GetXmlBytes ¶
Click to show internal directories.
Click to hide internal directories.