Documentation ¶
Overview ¶
/////////////////////
<text:p text:style-name="P7"> <text:span text:style-name="T5">hghgy</text:span> </text:p>
///////////////////
/////////////////////
<text:p text:style-name="P7"> <text:span text:style-name="T5">hghgy</text:span> </text:p>
///////////////////
Index ¶
- Constants
- func MergeStyles(style1 *xmlDB.Database, style2 *xmlDB.Database)
- func ProcessOdtfile(Inputfile string, Outputfile string, Note *Notes)
- type Article
- type Header
- type List
- type Notes
- func (Note *Notes) CreateArticle(Nodeid int, name string) *Article
- func (Note *Notes) CreateArticleFromTemplate(Inputfile string, ArtName string) *Article
- func (Note *Notes) IncludeStyle(Nodeid int)
- func (Note *Notes) InsertSubNode(NodeId int, xmlstring string) int
- func (Note *Notes) NewBulletinList(Style string) *List
- func (Note *Notes) NewHeader1(level int, Style string) *Header
- func (Note *Notes) NewNumberedList(Style string) *List
- func (Note *Notes) NewParagraph(Style string) *Paragraph
- func (Note *Notes) NewPicture(Style string, PicFile string) *Picture
- func (Note *Notes) NewTable(noofcols int, noofrows int, Style string) *Table
- func (Note1 *Notes) NewTextSpan(text string, Style string) *TextSpan
- func (Note *Notes) WritetoScratchpad(xmlstring string) int
- type Odt
- type Paragraph
- func (Para *Paragraph) AddListStyleName(value string)
- func (Para *Paragraph) AddText(text string, textspanstyle string) *TextSpan
- func (Para *Paragraph) AddTextSpan(textspan *TextSpan)
- func (Para *Paragraph) GetPlainText() string
- func (Para *Paragraph) SetFontSize(size int)
- func (Para *Paragraph) SetFontType(fontname string)
- func (Para *Paragraph) SetLineHeight(height int)
- func (Para *Paragraph) SetMargins(top int, bottom int)
- func (Para *Paragraph) Style() string
- func (Para *Paragraph) ToBold()
- func (Para *Paragraph) ToItalic()
- func (Para *Paragraph) ToUnderLine()
- func (Para *Paragraph) Wrap(pic *Picture)
- type Picture
- type Table
- type TextSpan
Constants ¶
View Source
const ( BOLD = iota // BOLD = 0 ITALIC // ITALIC = 1 UNDERLINE // uNDERLINE = 2 )
Variables ¶
This section is empty.
Functions ¶
func MergeStyles ¶
func MergeStyles(style1 *xmlDB.Database, style2 *xmlDB.Database)
func ProcessOdtfile ¶
Types ¶
type Article ¶
type Article struct { Content *xmlDB.Database Nodeid int }
func (*Article) AddContentArticle ¶
type List ¶
func (*List) AddItemPara ¶
type Notes ¶
type Notes struct { Content *xmlDB.Database Officeautostyleid int Officestyleid int OrginalPictureFiles []string NewPictureFiles []string // contains filtered or unexported fields }
func NewDatabase ¶
func NewDatabase() *Notes
func (*Notes) CreateArticleFromTemplate ¶
*below function is not complete*
func (*Notes) IncludeStyle ¶
func (*Notes) NewBulletinList ¶
func (*Notes) NewNumberedList ¶
func (*Notes) NewParagraph ¶
func (*Notes) WritetoScratchpad ¶
type Odt ¶
type Odt struct {
Content *xmlDB.Database
}
func (*Odt) CreateMarkerNodes ¶
func (Doc *Odt) CreateMarkerNodes()
func (*Odt) ImportAutoStyles ¶
func (*Odt) ImportStyles ¶
func (*Odt) ReplaceMarkers ¶
type Paragraph ¶
func (*Paragraph) AddListStyleName ¶
func (*Paragraph) AddTextSpan ¶
func (*Paragraph) GetPlainText ¶
func (*Paragraph) SetFontSize ¶
func (*Paragraph) SetFontType ¶
func (*Paragraph) SetLineHeight ¶
func (*Paragraph) SetMargins ¶
func (*Paragraph) ToUnderLine ¶
func (Para *Paragraph) ToUnderLine()
type Table ¶
type TextSpan ¶
func (*TextSpan) ToUnderLine ¶
func (Text *TextSpan) ToUnderLine()
Source Files ¶
Click to show internal directories.
Click to hide internal directories.