LibreOffice Module wizards (master) 1
Public Member Functions | Static Public Attributes | List of all members
scriptforge.SFDocuments.SF_Document Class Reference
Inheritance diagram for scriptforge.SFDocuments.SF_Document:
[legend]
Collaboration diagram for scriptforge.SFDocuments.SF_Document:
[legend]

Public Member Functions

def ReviewServiceArgs (cls, windowname='')
 
def Activate (self)
 
def CloseDocument (self, saveask=True)
 
def CreateMenu (self, menuheader, before='', submenuchar='>')
 
def Echo (self, echoon=True, hourglass=False)
 
def ExportAsPDF (self, filename, overwrite=False, pages='', password='', watermark='')
 
def PrintOut (self, pages='', copies=1)
 
def RemoveMenu (self, menuheader)
 
def RunCommand (self, command, *args, **kwargs)
 
def Save (self)
 
def SaveAs (self, filename, overwrite=False, password='', filtername='', filteroptions='')
 
def SaveCopyAs (self, filename, overwrite=False, password='', filtername='', filteroptions='')
 
def SetPrinter (self, printer='', orientation='', paperformat='')
 
def Toolbars (self, toolbarname='')
 
- Public Member Functions inherited from scriptforge.SFServices
def __init__ (self, reference=-1, objtype=None, classmodule=0, name='')
 
def __getattr__ (self, name)
 
def __setattr__ (self, name, value)
 
def __repr__ (self)
 
def Dispose (self)
 
def ExecMethod (self, flags=0, methodname='', *args)
 
def GetProperty (self, propertyname, arg=None)
 
def Properties (self)
 
def basicmethods (self)
 
def basicproperties (self)
 
def SetProperty (self, propertyname, value)
 

Static Public Attributes

string serviceimplementation = 'basic'
 
string servicename = 'SFDocuments.Document'
 
tuple servicesynonyms = ('document', 'sfdocuments.document')
 
 serviceproperties
 
bool forceGetProperty = True
 
- Static Public Attributes inherited from scriptforge.SFServices
 vbGet
 
 vbLet
 
 vbMethod
 
 vbSet
 
int flgPost = 32
 
int flgDateArg = 64
 
int flgDateRet = 128
 
int flgArrayArg = 512
 
int flgArrayRet = 1024
 
int flgUno = 256
 
int flgObject = 2048
 
int flgHardCode = 4096
 
 moduleClass
 
 moduleStandard
 
bool forceGetProperty = False
 
dictionary propertysynonyms = {}
 
tuple internal_attributes
 
 SIMPLEEXEC = ScriptForge.InvokeSimpleScript
 
 EXEC = ScriptForge.InvokeBasicService
 

Additional Inherited Members

- Public Attributes inherited from scriptforge.SFServices
 objectreference
 
 objecttype
 
 classmodule
 
 name
 
 internal
 
 localProperties
 
 serviceimplementation
 

Detailed Description

    The methods and properties are generic for all types of documents: they are combined in the
    current SF_Document class
        - saving, closing documents
        - accessing their standard or custom properties
    Specific properties and methods are implemented in the concerned subclass(es) SF_Calc, SF_Base, ...

Definition at line 2108 of file scriptforge.py.

Member Function Documentation

◆ Activate()

def scriptforge.SFDocuments.SF_Document.Activate (   self)

◆ CloseDocument()

def scriptforge.SFDocuments.SF_Document.CloseDocument (   self,
  saveask = True 
)

◆ CreateMenu()

def scriptforge.SFDocuments.SF_Document.CreateMenu (   self,
  menuheader,
  before = '',
  submenuchar = '>' 
)

◆ Echo()

def scriptforge.SFDocuments.SF_Document.Echo (   self,
  echoon = True,
  hourglass = False 
)

◆ ExportAsPDF()

def scriptforge.SFDocuments.SF_Document.ExportAsPDF (   self,
  filename,
  overwrite = False,
  pages = '',
  password = '',
  watermark = '' 
)

◆ PrintOut()

def scriptforge.SFDocuments.SF_Document.PrintOut (   self,
  pages = '',
  copies = 1 
)

◆ RemoveMenu()

def scriptforge.SFDocuments.SF_Document.RemoveMenu (   self,
  menuheader 
)

◆ ReviewServiceArgs()

def scriptforge.SFDocuments.SF_Document.ReviewServiceArgs (   cls,
  windowname = '' 
)
    Transform positional and keyword arguments into positional only

Reimplemented in scriptforge.SFDocuments.SF_Base, scriptforge.SFDocuments.SF_Calc, scriptforge.SFDocuments.SF_FormDocument, and scriptforge.SFDocuments.SF_Writer.

Definition at line 2128 of file scriptforge.py.

◆ RunCommand()

def scriptforge.SFDocuments.SF_Document.RunCommand (   self,
  command,
args,
**  kwargs 
)

◆ Save()

def scriptforge.SFDocuments.SF_Document.Save (   self)

◆ SaveAs()

def scriptforge.SFDocuments.SF_Document.SaveAs (   self,
  filename,
  overwrite = False,
  password = '',
  filtername = '',
  filteroptions = '' 
)

◆ SaveCopyAs()

def scriptforge.SFDocuments.SF_Document.SaveCopyAs (   self,
  filename,
  overwrite = False,
  password = '',
  filtername = '',
  filteroptions = '' 
)

◆ SetPrinter()

def scriptforge.SFDocuments.SF_Document.SetPrinter (   self,
  printer = '',
  orientation = '',
  paperformat = '' 
)

◆ Toolbars()

def scriptforge.SFDocuments.SF_Document.Toolbars (   self,
  toolbarname = '' 
)

Member Data Documentation

◆ forceGetProperty

bool scriptforge.SFDocuments.SF_Document.forceGetProperty = True
static

Definition at line 2125 of file scriptforge.py.

◆ serviceimplementation

string scriptforge.SFDocuments.SF_Document.serviceimplementation = 'basic'
static

◆ servicename

string scriptforge.SFDocuments.SF_Document.servicename = 'SFDocuments.Document'
static

◆ serviceproperties

scriptforge.SFDocuments.SF_Document.serviceproperties
static
Initial value:
= dict(Description = True, DocumentType = False, ExportFilters = False, FileSystem = False,
ImportFilters = False, IsBase = False, IsCalc = False, IsDraw = False,
IsFormDocument = False, IsImpress = False, IsMath = False, IsWriter = False,
Keywords = True, Readonly = False, Subject = True, Title = True, XComponent = False)

Definition at line 2120 of file scriptforge.py.

Referenced by scriptforge.SFServices.__setattr__(), and scriptforge.SFServices.Properties().

◆ servicesynonyms

tuple scriptforge.SFDocuments.SF_Document.servicesynonyms = ('document', 'sfdocuments.document')
static

Definition at line 2119 of file scriptforge.py.


The documentation for this class was generated from the following file: