| 
    LibreOffice Module wizards (master) 1
    
   | 
 
Classes | |
| class | GlobalScope | 
Public Member Functions | |
| def | CDate (cls, datevalue) | 
| def | ConvertFromUrl (cls, url) | 
| def | ConvertToUrl (cls, systempath) | 
| def | CreateUnoService (cls, servicename) | 
| def | CreateUnoStruct (cls, unostructure) | 
| def | DateAdd (cls, interval, number, date) | 
| def | DateDiff (cls, interval, date1, date2, firstdayofweek=1, firstweekofyear=1) | 
| def | DatePart (cls, interval, date, firstdayofweek=1, firstweekofyear=1) | 
| def | DateValue (cls, string) | 
| def | Format (cls, expression, format='') | 
| def | GetDefaultContext (cls) | 
| def | GetGuiType (cls) | 
| def | GetPathSeparator (cls) | 
| def | GetSystemTicks (cls) | 
| def | InputBox (cls, prompt, title='', default='', xpostwips=-1, ypostwips=-1) | 
| def | MsgBox (cls, prompt, buttons=0, title='') | 
| def | Now (cls) | 
| def | RGB (cls, red, green, blue) | 
| def | StarDesktop (self) | 
| def | ThisComponent (self) | 
| def | ThisDatabaseDocument (self) | 
| def | Xray (cls, unoobject=None) | 
  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) | 
  Public Member Functions inherited from scriptforge._Singleton | |
| def | __call__ (cls, *args, **kwargs) | 
Static Public Member Functions | |
| def | CDateFromUnoDateTime (unodate) | 
| def | CDateToUnoDateTime (date) | 
Additional Inherited Members | |
  Public Attributes inherited from scriptforge.SFServices | |
| objectreference | |
| objecttype | |
| classmodule | |
| name | |
| internal | |
| localProperties | |
| serviceimplementation | |
    This service proposes a collection of Basic methods to be executed in a Python context
    simulating the exact syntax and behaviour of the identical Basic builtin method.
    Typical example:
        SF_Basic.MsgBox('This has to be displayed in a message box')
    The signatures of Basic builtin functions are derived from
        core/basic/source/runtime/stdobj.cxx
    Detailed user documentation:
        https://help.libreoffice.org/latest/en-US/text/sbasic/shared/03/sf_basic.html?DbPAR=BASIC 
Definition at line 634 of file scriptforge.py.
| def scriptforge.SFScriptForge.SF_Basic.CDate | ( | cls, | |
| datevalue | |||
| ) | 
Definition at line 660 of file scriptforge.py.
References scriptforge.SFScriptForge.SF_Basic.CDateFromUnoDateTime(), HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
      
  | 
  static | 
    Converts a UNO date/time representation to a datetime.datetime Python native object
    :param unodate: com.sun.star.util.DateTime, com.sun.star.util.Date or com.sun.star.util.Time
    :return: the equivalent datetime.datetime 
Definition at line 665 of file scriptforge.py.
Referenced by scriptforge.SFScriptForge.SF_Basic.CDate(), scriptforge.SFScriptForge.SF_Basic.DateAdd(), and scriptforge.SFScriptForge.SF_Basic.DateValue().
      
  | 
  static | 
    Converts a date representation into the ccom.sun.star.util.DateTime date format
    Acceptable boundaries: year >= 1900 and <= 32767
    :param date: datetime.datetime, datetime.date, datetime.time, float (time.time) or time.struct_time
    :return: a com.sun.star.util.DateTime 
Definition at line 688 of file scriptforge.py.
References uno.createUnoStruct().
Referenced by scriptforge.SFScriptForge.SF_Basic.DateAdd(), scriptforge.SFScriptForge.SF_Basic.DateDiff(), scriptforge.SFScriptForge.SF_Basic.DatePart(), and scriptforge.SFScriptForge.SF_Basic.Format().
| def scriptforge.SFScriptForge.SF_Basic.ConvertFromUrl | ( | cls, | |
| url | |||
| ) | 
Definition at line 720 of file scriptforge.py.
References HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.ConvertToUrl | ( | cls, | |
| systempath | |||
| ) | 
Definition at line 724 of file scriptforge.py.
References HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.CreateUnoService | ( | cls, | |
| servicename | |||
| ) | 
Definition at line 728 of file scriptforge.py.
References HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.CreateUnoStruct | ( | cls, | |
| unostructure | |||
| ) | 
Definition at line 732 of file scriptforge.py.
References uno.createUnoStruct().
| def scriptforge.SFScriptForge.SF_Basic.DateAdd | ( | cls, | |
| interval, | |||
| number, | |||
| date | |||
| ) | 
Definition at line 736 of file scriptforge.py.
References scriptforge.SFScriptForge.SF_Basic.CDateFromUnoDateTime(), scriptforge.SFScriptForge.SF_Basic.CDateToUnoDateTime(), HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.DateDiff | ( | cls, | |
| interval, | |||
| date1, | |||
| date2, | |||
firstdayofweek = 1,  | 
        |||
firstweekofyear = 1  | 
        |||
| ) | 
Definition at line 743 of file scriptforge.py.
References scriptforge.SFScriptForge.SF_Basic.CDateToUnoDateTime(), HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.DatePart | ( | cls, | |
| interval, | |||
| date, | |||
firstdayofweek = 1,  | 
        |||
firstweekofyear = 1  | 
        |||
| ) | 
Definition at line 751 of file scriptforge.py.
References scriptforge.SFScriptForge.SF_Basic.CDateToUnoDateTime(), HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.DateValue | ( | cls, | |
| string | |||
| ) | 
Definition at line 757 of file scriptforge.py.
References scriptforge.SFScriptForge.SF_Basic.CDateFromUnoDateTime(), HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.Format | ( | cls, | |
| expression, | |||
format = ''  | 
        |||
| ) | 
Definition at line 764 of file scriptforge.py.
References scriptforge.SFScriptForge.SF_Basic.CDateToUnoDateTime(), HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.GetDefaultContext | ( | cls | ) | 
Definition at line 770 of file scriptforge.py.
| def scriptforge.SFScriptForge.SF_Basic.GetGuiType | ( | cls | ) | 
Definition at line 774 of file scriptforge.py.
References HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.GetPathSeparator | ( | cls | ) | 
Definition at line 778 of file scriptforge.py.
| def scriptforge.SFScriptForge.SF_Basic.GetSystemTicks | ( | cls | ) | 
Definition at line 782 of file scriptforge.py.
References HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.InputBox | ( | cls, | |
| prompt, | |||
title = '',  | 
        |||
default = '',  | 
        |||
xpostwips = -1,  | 
        |||
ypostwips = -1  | 
        |||
| ) | 
Definition at line 795 of file scriptforge.py.
References HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.MsgBox | ( | cls, | |
| prompt, | |||
buttons = 0,  | 
        |||
title = ''  | 
        |||
| ) | 
Definition at line 801 of file scriptforge.py.
References HelpCompiler.module, HelpLinker.module, i18npool::LocaleDataLookupTableItem.module, pythonscript::ModuleEntry.module, chelp::URLParameter.module(), scriptforge.SFScriptForge.SF_Basic.module, and scriptforge.SFServices.SIMPLEEXEC.
| def scriptforge.SFScriptForge.SF_Basic.Now | ( | cls | ) | 
Definition at line 805 of file scriptforge.py.
| def scriptforge.SFScriptForge.SF_Basic.RGB | ( | cls, | |
| red, | |||
| green, | |||
| blue | |||
| ) | 
Definition at line 809 of file scriptforge.py.
| def scriptforge.SFScriptForge.SF_Basic.StarDesktop | ( | self | ) | 
Definition at line 813 of file scriptforge.py.
Referenced by scriptforge.SFScriptForge.SF_Basic.ThisComponent().
| def scriptforge.SFScriptForge.SF_Basic.ThisComponent | ( | self | ) | 
    When the current component is the Basic IDE, the ThisComponent object returns
    in Basic the component owning the currently run user script.
    Above behaviour cannot be reproduced in Python.
    :return: the current component or None when not a document 
Definition at line 825 of file scriptforge.py.
References scriptforge.SFScriptForge.SF_Basic.StarDesktop().
Referenced by scriptforge.SFScriptForge.SF_Basic.ThisDatabaseDocument().
| def scriptforge.SFScriptForge.SF_Basic.ThisDatabaseDocument | ( | self | ) | 
    When the current component is the Basic IDE, the ThisDatabaseDocument object returns
    in Basic the database owning the currently run user script.
    Above behaviour cannot be reproduced in Python.
    :return: the current Base (main) component or None when not a Base document or one of its subcomponents
 
Definition at line 843 of file scriptforge.py.
References scriptforge.CreateScriptService(), and scriptforge.SFScriptForge.SF_Basic.ThisComponent().
| def scriptforge.SFScriptForge.SF_Basic.Xray | ( | cls, | |
unoobject = None  | 
        |||
| ) | 
Definition at line 879 of file scriptforge.py.
References scriptforge.SFServices.SIMPLEEXEC.
      
  | 
  static | 
Definition at line 657 of file scriptforge.py.
      
  | 
  static | 
Definition at line 657 of file scriptforge.py.
      
  | 
  static | 
Definition at line 657 of file scriptforge.py.
      
  | 
  static | 
Definition at line 657 of file scriptforge.py.
      
  | 
  static | 
Definition at line 657 of file scriptforge.py.
      
  | 
  static | 
Definition at line 657 of file scriptforge.py.
      
  | 
  static | 
Definition at line 657 of file scriptforge.py.
      
  | 
  static | 
Definition at line 654 of file scriptforge.py.
      
  | 
  static | 
Definition at line 654 of file scriptforge.py.
      
  | 
  static | 
Definition at line 654 of file scriptforge.py.
      
  | 
  static | 
Definition at line 654 of file scriptforge.py.
      
  | 
  static | 
Definition at line 655 of file scriptforge.py.
      
  | 
  static | 
Definition at line 655 of file scriptforge.py.
      
  | 
  static | 
Definition at line 655 of file scriptforge.py.
      
  | 
  static | 
Definition at line 655 of file scriptforge.py.
      
  | 
  static | 
Definition at line 656 of file scriptforge.py.
      
  | 
  static | 
Definition at line 656 of file scriptforge.py.
      
  | 
  static | 
Definition at line 656 of file scriptforge.py.
      
  | 
  static | 
Definition at line 656 of file scriptforge.py.
      
  | 
  static | 
Definition at line 656 of file scriptforge.py.
      
  | 
  static | 
Definition at line 652 of file scriptforge.py.
Referenced by scriptforge.SFScriptForge.SF_Basic.CDate(), scriptforge.SFScriptForge.SF_Basic.ConvertFromUrl(), scriptforge.SFScriptForge.SF_Basic.ConvertToUrl(), scriptforge.SFScriptForge.SF_Basic.CreateUnoService(), scriptforge.SFScriptForge.SF_Basic.DateAdd(), scriptforge.SFScriptForge.SF_Basic.DateDiff(), scriptforge.SFScriptForge.SF_Basic.DatePart(), scriptforge.SFScriptForge.SF_Basic.DateValue(), scriptforge.SFScriptForge.SF_Basic.Format(), scriptforge.SFScriptForge.SF_Basic.GetGuiType(), scriptforge.SFScriptForge.SF_Basic.GetSystemTicks(), scriptforge.SFScriptForge.SF_Basic.InputBox(), and scriptforge.SFScriptForge.SF_Basic.MsgBox().
      
  | 
  static | 
Definition at line 648 of file scriptforge.py.
Referenced by scriptforge.SFServices.__repr__(), scriptforge.SFServices.__setattr__(), scriptforge.SFServices.basicmethods(), scriptforge.SFServices.basicproperties(), scriptforge.SFServices.Dispose(), scriptforge.SFServices.GetProperty(), and scriptforge.SFServices.SetProperty().
      
  | 
  static | 
Definition at line 649 of file scriptforge.py.
Referenced by scriptforge.ScriptForge.__init__(), and scriptforge.SFServices.__repr__().
      
  | 
  static | 
Definition at line 650 of file scriptforge.py.
      
  | 
  static | 
Definition at line 822 of file scriptforge.py.
      
  | 
  static | 
Definition at line 822 of file scriptforge.py.
      
  | 
  static | 
Definition at line 840 of file scriptforge.py.
      
  | 
  static | 
Definition at line 840 of file scriptforge.py.
      
  | 
  static | 
Definition at line 876 of file scriptforge.py.
      
  | 
  static | 
Definition at line 876 of file scriptforge.py.