Documentation ¶
Overview ¶
Package gord is a library to operate Word made in Golang. This library works only on Windows.
Gord is the main struct in this library. NewGord() is the staring point.
References:
Index ¶
- func InitGord() (func(), error)
- func MustInitGord() func()
- func MustNewGord() (*Gord, ReleaseFunc)
- func NewDocument(docs *Documents, doc *ole.IDispatch) (*Document, ReleaseFunc)
- func NewGord() (*Gord, ReleaseFunc, error)
- type ComReleaser
- type Document
- func (w *Document) Close() error
- func (w *Document) ComObject() *ole.IDispatch
- func (w *Document) ExportAsFixedFormat(path string, fmtType constants.WdExportFormat) error
- func (w *Document) Gord() *Gord
- func (w *Document) PrintOut() error
- func (w *Document) Releaser() *Releaser
- func (w *Document) Save() error
- func (w *Document) SaveAs2(filePath string, format constants.WdSaveFormat) error
- func (w *Document) SaveAsWithFileFormat(filePath string, format constants.WdSaveFormat) error
- func (w *Document) SetSaved(value bool) error
- type Documents
- func (d *Documents) Add() (*Document, ReleaseFunc, error)
- func (d *Documents) ComObject() *ole.IDispatch
- func (d *Documents) Gord() *Gord
- func (d *Documents) MustOpen(filePath string) (*Document, ReleaseFunc)
- func (d *Documents) Open(filePath string) (*Document, ReleaseFunc, error)
- func (d *Documents) Releaser() *Releaser
- type Gord
- func (g *Gord) ActiveDocument() (*Document, ReleaseFunc, error)
- func (g *Gord) ActiveWindow() (*Window, error)
- func (g *Gord) ComObject() *ole.IDispatch
- func (g *Gord) DisplayAlerts() (bool, error)
- func (g *Gord) Documents() (*Documents, error)
- func (g *Gord) EnableEvents() (bool, error)
- func (g *Gord) Gord() *Gord
- func (g *Gord) MustDocuments() *Documents
- func (g *Gord) MustSetVisible(value bool)
- func (g *Gord) MustSilent(visible bool)
- func (g *Gord) Releaser() *Releaser
- func (g *Gord) ScreenUpdating() (bool, error)
- func (g *Gord) SetDisplayAlerts(value bool) error
- func (g *Gord) SetEnableEvents(value bool) error
- func (g *Gord) SetScreenUpdating(value bool) error
- func (g *Gord) SetVisible(value bool) error
- func (g *Gord) Silent(visible bool) error
- type GordObject
- type HasComObject
- type HasGord
- type HasReleaser
- type ReleaseFunc
- type Releaser
- type Window
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustInitGord ¶
func MustInitGord() func()
func MustNewGord ¶
func MustNewGord() (*Gord, ReleaseFunc)
func NewDocument ¶
func NewDocument(docs *Documents, doc *ole.IDispatch) (*Document, ReleaseFunc)
func NewGord ¶
func NewGord() (*Gord, ReleaseFunc, error)
Types ¶
type ComReleaser ¶
type ComReleaser interface { HasReleaser HasComObject }
noinspection GoNameStartsWithPackageName
type Document ¶
type Document struct {
// contains filtered or unexported fields
}
func (*Document) ExportAsFixedFormat ¶
func (w *Document) ExportAsFixedFormat(path string, fmtType constants.WdExportFormat) error
func (*Document) SaveAs2 ¶
func (w *Document) SaveAs2(filePath string, format constants.WdSaveFormat) error
func (*Document) SaveAsWithFileFormat ¶
func (w *Document) SaveAsWithFileFormat(filePath string, format constants.WdSaveFormat) error
type Documents ¶
type Documents struct {
// contains filtered or unexported fields
}
func NewDocuments ¶
type Gord ¶
type Gord struct {
// contains filtered or unexported fields
}
func (*Gord) ActiveDocument ¶
func (g *Gord) ActiveDocument() (*Document, ReleaseFunc, error)
func (*Gord) ActiveWindow ¶
func (*Gord) DisplayAlerts ¶
func (*Gord) EnableEvents ¶
func (*Gord) MustDocuments ¶
func (*Gord) MustSetVisible ¶
func (*Gord) MustSilent ¶
func (*Gord) ScreenUpdating ¶
func (*Gord) SetDisplayAlerts ¶
func (*Gord) SetEnableEvents ¶
func (*Gord) SetScreenUpdating ¶
func (*Gord) SetVisible ¶
type GordObject ¶
type GordObject interface { HasGord ComReleaser }
noinspection GoNameStartsWithPackageName
type HasComObject ¶
type HasComObject interface {
ComObject() *ole.IDispatch
}
noinspection GoNameStartsWithPackageName
type HasReleaser ¶
type HasReleaser interface {
Releaser() *Releaser
}
noinspection GoNameStartsWithPackageName
type ReleaseFunc ¶
type ReleaseFunc func()
type Releaser ¶
type Releaser struct {
// contains filtered or unexported fields
}
func NewReleaser ¶
func NewReleaser() *Releaser
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package constants パッケージには、Visual Basic の Word列挙体の一覧が定義されています。
|
Package constants パッケージには、Visual Basic の Word列挙体の一覧が定義されています。 |
examples
|
|
Click to show internal directories.
Click to hide internal directories.