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

Public Member Functions

def ReviewServiceArgs (cls, container='', library='Standard', dialogname='')
 
def Activate (self)
 
def Center (self, parent=ScriptForge.cstSymMissing)
 
def CloneControl (self, sourcename, controlname, left=1, top=1)
 
def Controls (self, controlname='')
 
def CreateButton (self, controlname, place, toggle=False, push='')
 
def CreateCheckBox (self, controlname, place, multiline=False)
 
def CreateComboBox (self, controlname, place, border='3D', dropdown=True, linecount=5)
 
def CreateCurrencyField (self, controlname, place, border='3D', spinbutton=False, minvalue=-1000000, maxvalue=+1000000, increment=1, accuracy=2)
 
def CreateDateField (self, controlname, place, border='3D', dropdown=True, mindate=datetime.datetime(1900, 1, 1, 0, 0, 0, 0), maxdate=datetime.datetime(2200, 12, 31, 0, 0, 0, 0))
 
def CreateFileControl (self, controlname, place, border='3D')
 
def CreateFixedLine (self, controlname, place, orientation)
 
def CreateFixedText (self, controlname, place, border='NONE', multiline=False, align='LEFT', verticalalign='TOP')
 
def CreateFormattedField (self, controlname, place, border='3D', spinbutton=False, minvalue=-1000000, maxvalue=+1000000)
 
def CreateGroupBox (self, controlname, place)
 
def CreateHyperlink (self, controlname, place, border='NONE', multiline=False, align='LEFT', verticalalign='TOP')
 
def CreateImageControl (self, controlname, place, border='3D', scale='FITTOSIZE')
 
def CreateListBox (self, controlname, place, border='3D', dropdown=True, linecount=5, multiselect=False)
 
def CreateNumericField (self, controlname, place, border='3D', spinbutton=False, minvalue=-1000000, maxvalue=+1000000, increment=1, accuracy=2)
 
def CreatePatternField (self, controlname, place, border='3D', editmask='', literalmask='')
 
def CreateProgressBar (self, controlname, place, border='3D', minvalue=0, maxvalue=100)
 
def CreateRadioButton (self, controlname, place, multiline=False)
 
def CreateScrollBar (self, controlname, place, orientation, border='3D', minvalue=0, maxvalue=100)
 
def CreateTableControl (self, controlname, place, border='3D', rowheaders=True, columnheaders=True, scrollbars='None', gridlines=False)
 
def CreateTextField (self, controlname, place, border='3D', multiline=False, maximumlength=0, passwordcharacter='')
 
def CreateTimeField (self, controlname, place, border='3D', mintime=datetime.datetime(1899, 12, 30, 0, 0, 0, 0), maxtime=datetime.datetime(1899, 12, 30, 23, 59, 59, 0))
 
def CreateTreeControl (self, controlname, place, border='3D')
 
def EndExecute (self, returnvalue)
 
def Execute (self, modal=True)
 
def GetTextsFromL10N (self, l10n)
 
def OrderTabs (self, tabslist, start=1, increment=1)
 
def Resize (self, left=-99999, top=-99999, width=-1, height=-1)
 
def SetPageManager (self, pilotcontrols='', tabcontrols='', wizardcontrols='', lastpage=0)
 
def Terminate (self)
 
- 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 = 'SFDialogs.Dialog'
 
tuple servicesynonyms = ('dialog', 'sfdialogs.dialog')
 
 serviceproperties
 
 OKBUTTON
 
 CANCELBUTTON
 
- 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

    Each instance of the current class represents a single dialog box displayed to the user.
    The dialog box must have been designed and defined with the Basic IDE previously.
    From a Python script, a dialog box can be displayed in modal or in non-modal modes.

    In modal mode, the box is displayed and the execution of the macro process is suspended
    until one of the OK or Cancel buttons is pressed. In the meantime, other user actions
    executed on the box can trigger specific actions.

    In non-modal mode, the floating dialog remains displayed until the dialog is terminated
    by code (Terminate()) or until the LibreOffice application stops.

Definition at line 1835 of file scriptforge.py.

Member Function Documentation

◆ Activate()

def scriptforge.SFDialogs.SF_Dialog.Activate (   self)

◆ Center()

def scriptforge.SFDialogs.SF_Dialog.Center (   self,
  parent = ScriptForge.cstSymMissing 
)

◆ CloneControl()

def scriptforge.SFDialogs.SF_Dialog.CloneControl (   self,
  sourcename,
  controlname,
  left = 1,
  top = 1 
)

◆ Controls()

def scriptforge.SFDialogs.SF_Dialog.Controls (   self,
  controlname = '' 
)

◆ CreateButton()

def scriptforge.SFDialogs.SF_Dialog.CreateButton (   self,
  controlname,
  place,
  toggle = False,
  push = '' 
)

◆ CreateCheckBox()

def scriptforge.SFDialogs.SF_Dialog.CreateCheckBox (   self,
  controlname,
  place,
  multiline = False 
)

◆ CreateComboBox()

def scriptforge.SFDialogs.SF_Dialog.CreateComboBox (   self,
  controlname,
  place,
  border = '3D',
  dropdown = True,
  linecount = 5 
)

◆ CreateCurrencyField()

def scriptforge.SFDialogs.SF_Dialog.CreateCurrencyField (   self,
  controlname,
  place,
  border = '3D',
  spinbutton = False,
  minvalue = -1000000,
  maxvalue = +1000000,
  increment = 1,
  accuracy = 2 
)

◆ CreateDateField()

def scriptforge.SFDialogs.SF_Dialog.CreateDateField (   self,
  controlname,
  place,
  border = '3D',
  dropdown = True,
  mindate = datetime.datetime(1900, 1, 1, 0, 0, 0, 0),
  maxdate = datetime.datetime(2200, 12, 31, 0, 0, 0, 0) 
)

◆ CreateFileControl()

def scriptforge.SFDialogs.SF_Dialog.CreateFileControl (   self,
  controlname,
  place,
  border = '3D' 
)

◆ CreateFixedLine()

def scriptforge.SFDialogs.SF_Dialog.CreateFixedLine (   self,
  controlname,
  place,
  orientation 
)

◆ CreateFixedText()

def scriptforge.SFDialogs.SF_Dialog.CreateFixedText (   self,
  controlname,
  place,
  border = 'NONE',
  multiline = False,
  align = 'LEFT',
  verticalalign = 'TOP' 
)

◆ CreateFormattedField()

def scriptforge.SFDialogs.SF_Dialog.CreateFormattedField (   self,
  controlname,
  place,
  border = '3D',
  spinbutton = False,
  minvalue = -1000000,
  maxvalue = +1000000 
)

◆ CreateGroupBox()

def scriptforge.SFDialogs.SF_Dialog.CreateGroupBox (   self,
  controlname,
  place 
)

◆ CreateHyperlink()

def scriptforge.SFDialogs.SF_Dialog.CreateHyperlink (   self,
  controlname,
  place,
  border = 'NONE',
  multiline = False,
  align = 'LEFT',
  verticalalign = 'TOP' 
)

◆ CreateImageControl()

def scriptforge.SFDialogs.SF_Dialog.CreateImageControl (   self,
  controlname,
  place,
  border = '3D',
  scale = 'FITTOSIZE' 
)

◆ CreateListBox()

def scriptforge.SFDialogs.SF_Dialog.CreateListBox (   self,
  controlname,
  place,
  border = '3D',
  dropdown = True,
  linecount = 5,
  multiselect = False 
)

◆ CreateNumericField()

def scriptforge.SFDialogs.SF_Dialog.CreateNumericField (   self,
  controlname,
  place,
  border = '3D',
  spinbutton = False,
  minvalue = -1000000,
  maxvalue = +1000000,
  increment = 1,
  accuracy = 2 
)

◆ CreatePatternField()

def scriptforge.SFDialogs.SF_Dialog.CreatePatternField (   self,
  controlname,
  place,
  border = '3D',
  editmask = '',
  literalmask = '' 
)

◆ CreateProgressBar()

def scriptforge.SFDialogs.SF_Dialog.CreateProgressBar (   self,
  controlname,
  place,
  border = '3D',
  minvalue = 0,
  maxvalue = 100 
)

◆ CreateRadioButton()

def scriptforge.SFDialogs.SF_Dialog.CreateRadioButton (   self,
  controlname,
  place,
  multiline = False 
)

◆ CreateScrollBar()

def scriptforge.SFDialogs.SF_Dialog.CreateScrollBar (   self,
  controlname,
  place,
  orientation,
  border = '3D',
  minvalue = 0,
  maxvalue = 100 
)

◆ CreateTableControl()

def scriptforge.SFDialogs.SF_Dialog.CreateTableControl (   self,
  controlname,
  place,
  border = '3D',
  rowheaders = True,
  columnheaders = True,
  scrollbars = 'None',
  gridlines = False 
)

◆ CreateTextField()

def scriptforge.SFDialogs.SF_Dialog.CreateTextField (   self,
  controlname,
  place,
  border = '3D',
  multiline = False,
  maximumlength = 0,
  passwordcharacter = '' 
)

◆ CreateTimeField()

def scriptforge.SFDialogs.SF_Dialog.CreateTimeField (   self,
  controlname,
  place,
  border = '3D',
  mintime = datetime.datetime(1899, 12, 30, 0, 0, 0, 0),
  maxtime = datetime.datetime(1899, 12, 30, 23, 59, 59, 0) 
)

◆ CreateTreeControl()

def scriptforge.SFDialogs.SF_Dialog.CreateTreeControl (   self,
  controlname,
  place,
  border = '3D' 
)

◆ EndExecute()

def scriptforge.SFDialogs.SF_Dialog.EndExecute (   self,
  returnvalue 
)

◆ Execute()

def scriptforge.SFDialogs.SF_Dialog.Execute (   self,
  modal = True 
)

◆ GetTextsFromL10N()

def scriptforge.SFDialogs.SF_Dialog.GetTextsFromL10N (   self,
  l10n 
)

◆ OrderTabs()

def scriptforge.SFDialogs.SF_Dialog.OrderTabs (   self,
  tabslist,
  start = 1,
  increment = 1 
)

◆ Resize()

def scriptforge.SFDialogs.SF_Dialog.Resize (   self,
  left = -99999,
  top = -99999,
  width = -1,
  height = -1 
)

◆ ReviewServiceArgs()

def scriptforge.SFDialogs.SF_Dialog.ReviewServiceArgs (   cls,
  container = '',
  library = 'Standard',
  dialogname = '' 
)
    Transform positional and keyword arguments into positional only
    Add the XComponentContext as last argument

Definition at line 1862 of file scriptforge.py.

◆ SetPageManager()

def scriptforge.SFDialogs.SF_Dialog.SetPageManager (   self,
  pilotcontrols = '',
  tabcontrols = '',
  wizardcontrols = '',
  lastpage = 0 
)

◆ Terminate()

def scriptforge.SFDialogs.SF_Dialog.Terminate (   self)

Member Data Documentation

◆ CANCELBUTTON

scriptforge.SFDialogs.SF_Dialog.CANCELBUTTON
static

Definition at line 1859 of file scriptforge.py.

◆ OKBUTTON

scriptforge.SFDialogs.SF_Dialog.OKBUTTON
static

Definition at line 1859 of file scriptforge.py.

◆ serviceimplementation

string scriptforge.SFDialogs.SF_Dialog.serviceimplementation = 'basic'
static

◆ servicename

string scriptforge.SFDialogs.SF_Dialog.servicename = 'SFDialogs.Dialog'
static

◆ serviceproperties

scriptforge.SFDialogs.SF_Dialog.serviceproperties
static
Initial value:
= dict(Caption = True, Height = True, Modal = False, Name = False,
OnFocusGained = True, OnFocusLost = True, OnKeyPressed = True,
OnKeyReleased = True, OnMouseDragged = True, OnMouseEntered = True,
OnMouseExited = True, OnMouseMoved = True, OnMousePressed = True,
OnMouseReleased = True,
Page = True, Visible = True, Width = True, XDialogModel = False, XDialogView = False)

Definition at line 1852 of file scriptforge.py.

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

◆ servicesynonyms

tuple scriptforge.SFDialogs.SF_Dialog.servicesynonyms = ('dialog', 'sfdialogs.dialog')
static

Definition at line 1851 of file scriptforge.py.


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