Versions in this module Expand all Collapse all v0 v0.0.1 Sep 7, 2023 Changes in this version + 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 interface + type Document struct + 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 struct + func NewDocuments(g *Gord, docs *ole.IDispatch) *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 struct + 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 interface + type HasComObject interface + ComObject func() *ole.IDispatch + type HasGord interface + Gord func() *Gord + type HasReleaser interface + Releaser func() *Releaser + type ReleaseFunc func() + type Releaser struct + func NewReleaser() *Releaser + func (r *Releaser) Add(f func() error) + func (r *Releaser) Count() int + func (r *Releaser) Release() error + type Window struct + func NewWindow(g *Gord, w *ole.IDispatch) *Window + func (w *Window) ComObject() *ole.IDispatch + func (w *Window) Gord() *Gord + func (w *Window) Releaser() *Releaser + func (w *Window) SetZoom(zoomRate int) error