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

Public Member Functions

def AddCheckBox (self, menuitem, name='', status=False, icon='', tooltip='', command='', script='')
 
def AddItem (self, menuitem, name='', icon='', tooltip='', command='', script='')
 
def AddRadioButton (self, menuitem, name='', status=False, icon='', tooltip='', command='', script='')
 
- 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 = 'SFWidgets.Menu'
 
tuple servicesynonyms = ('menu', 'sfwidgets.menu')
 
 serviceproperties = dict(ShortcutCharacter = False, SubmenuCharacter = False)
 
- 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

    Display a menu in the menubar of a document or a form document.
    After use, the menu will not be saved neither in the application settings, nor in the document.
    The menu will be displayed, as usual, when its header in the menubar is clicked.
    When one of its items is selected, there are 3 alternative options:
    - a UNO command (like ".uno:About") is triggered
    - a user script is run receiving a standard argument defined in this service
    - one of above combined with a toggle of the status of the item
    The menu is described from top to bottom. Each menu item receives a numeric and a string identifier.

Definition at line 2675 of file scriptforge.py.

Member Function Documentation

◆ AddCheckBox()

def scriptforge.SFWidgets.SF_Menu.AddCheckBox (   self,
  menuitem,
  name = '',
  status = False,
  icon = '',
  tooltip = '',
  command = '',
  script = '' 
)

◆ AddItem()

def scriptforge.SFWidgets.SF_Menu.AddItem (   self,
  menuitem,
  name = '',
  icon = '',
  tooltip = '',
  command = '',
  script = '' 
)

◆ AddRadioButton()

def scriptforge.SFWidgets.SF_Menu.AddRadioButton (   self,
  menuitem,
  name = '',
  status = False,
  icon = '',
  tooltip = '',
  command = '',
  script = '' 
)

Member Data Documentation

◆ serviceimplementation

string scriptforge.SFWidgets.SF_Menu.serviceimplementation = 'basic'
static

◆ servicename

string scriptforge.SFWidgets.SF_Menu.servicename = 'SFWidgets.Menu'
static

◆ serviceproperties

scriptforge.SFWidgets.SF_Menu.serviceproperties = dict(ShortcutCharacter = False, SubmenuCharacter = False)
static

◆ servicesynonyms

tuple scriptforge.SFWidgets.SF_Menu.servicesynonyms = ('menu', 'sfwidgets.menu')
static

Definition at line 2689 of file scriptforge.py.


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