header

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

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 struct {
	// contains filtered or unexported fields
}

Header 页头定义

func (*Header) AddParagraph

func (h *Header) AddParagraph() *paragraph.Paragraph

AddParagraph 添加一个段落

func (*Header) AddTable

func (h *Header) AddTable() *table.Table

AddTable 添加一个表格

func (*Header) AddTableWithColumns

func (h *Header) AddTableWithColumns(columns int) *table.Table

AddTableWithColumns 添加一个拥有指定列数量的表格

func (*Header) AddTableWithColumnsAndAutoWidth

func (h *Header) AddTableWithColumnsAndAutoWidth(columns int) *table.Table

AddTableWithColumnsAndAutoWidth 添加一个拥有指定列数量的表格,并且自动计算所有列的宽度

func (*Header) GenerateFileName

func (h *Header) GenerateFileName() string

GenerateFileName 生成文件名

func (*Header) GetContents

func (h *Header) GetContents() []*DocumentContent

func (*Header) GetFileName

func (h *Header) GetFileName() string

GetFileName 获取文件名称

func (*Header) GetRId

func (h *Header) GetRId() string

GetRId 获取该页头的rId

func (*Header) GetXmlBytes

func (h *Header) GetXmlBytes() ([]byte, error)

func (*Header) SetRId

func (h *Header) SetRId(rId string) *Header

SetRId 设置此页头的rId

Jump to

Keyboard shortcuts

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