Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct {
Elements []DocElement
PreRendered []byte
}
func (*Content) Add ¶
func (c *Content) Add(elements ...DocElement) *Content
type DefaultStyle ¶
type DefaultStyle struct {
Style
}
func (*DefaultStyle) Key ¶
func (ds *DefaultStyle) Key() string
type DocComponent ¶
type DocComponent interface{ Write(zipWriter) error }
type DocElement ¶
type Document ¶
type Document struct {
Components []DocComponent
MetaInf MetaInf
Pictures Pictures
Content Content
//Manifest Manifest
//Meta Meta
//Mimetype Mimetype
Settings Settings
Styles *Styles
Fonts []Font
}
func NewDocument ¶
func (*Document) Add ¶
func (d *Document) Add(elements ...DocElement) *Document
type Link ¶
type Link struct {
Text []DocElement
StyleName string
VisitedStyleName string
URL string
}
func NewLink ¶
func NewLink(url string, elements ...DocElement) *Link
type Paragraph ¶
type Paragraph struct {
Content []DocElement
StyleName string
}
func NewLineBrake ¶
func NewLineBrake() *Paragraph
func NewLinkParagraph ¶
func NewParagraph ¶
func NewParagraph(content ...DocElement) *Paragraph
func NewTextParagraph ¶
func (*Paragraph) Add ¶
func (p *Paragraph) Add(elements ...DocElement) *Paragraph
type Style ¶
type Style struct {
Name string
Family string
Class string
Parent *Style
Next *Style
ParagraphProperties map[string]string
TextProperties map[string]string
TableProperties map[string]string
TableRowProperties map[string]string
ListLevelProperties map[string]string
PageLayoutProperties map[string]string
}
type StyleElement ¶
type Styles ¶
type Styles []StyleElement
func (*Styles) Add ¶
func (ss *Styles) Add(styles ...StyleElement) *Styles
type Table ¶
type TableCell ¶
type TableCell struct {
Items []DocElement
StyleName string
}
func NewTextTableCell ¶
Click to show internal directories.
Click to hide internal directories.