Skip to content

p--q/GUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

LibreOffice Python Macro Collection on GUI

This repository contains a PyDev package.

Environment

  • linuxBean (Ubuntu) 14.04

  • LibreOffice 5.2.6.2

  • Eclipse Neon.2 (4.6.2)

  • PyDev 5.6.0

    • These macros also work on Windows 10.

Macros

Modeless Dialog Examples

Three methods for creating a modeless dialog:

A modeless dialog linking with a Writer document:

  • modelessdialog3macro.py

    • The text selected in a Writer document is reflected in the edit control on a modeless dialog.

Splitter Examples

UnoControlDialog with various controls

  • unodialogsample.py

    • Currency fields

    • Dividing lines

    • Text fields

    • Time fields

    • Date fields

    • Fields of groups

    • Pattern fields

    • Numerical fields

    • Checkboxes

    • Radio Buttons

    • List boxes

    • Combo-boxes (not work)

    • Formatted fields

    • Scrollbars

    • File selection fields

    • Standard buttons

    • Hyperlink

    • Roadmap

  • unodialogsample2.py

    • Roadmap
  • unomenu2.py

    • PopupMenu
  • imagecontrolsample.py

    • ImageControl

UnoControlDialog with a subframe

  • dialogdocument.py

    • Loading a Writer document onto a component window of the subframe

A Sizeable Dialog

UnoControlDialog can not be sizeable.

Dialogs with a menu bar

You can not display a menu bar in UnoControlDialog.

File Selection Dialog Examples

  • systemdialog.py

    • File selection dialogs with com.sun.star.ui.dialogs.TemplateDescription as a template are displayed in order.

      • FILEOPEN_SIMPLE, FILEOPEN_LINK_PREVIEW_IMAGE_TEMPLATE, FILEOPEN_PLAY, FILEOPEN_READONLY_VERSION, FILEOPEN_LINK_PREVIEW

      • FILEOPEN_PREVIEW, FILEOPEN_LINK_PLAY (LibreOffice 5.3 and higher only)

      • FILESAVE_SIMPLE, FILESAVE_AUTOEXTENSION_PASSWORD, FILESAVE_AUTOEXTENSION_PASSWORD_FILTEROPTIONS, FILESAVE_AUTOEXTENSION_SELECTION, FILESAVE_AUTOEXTENSION_TEMPLATE, FILESAVE_AUTOEXTENSION

Release Notes

2018-1-2 version 1.0.4 Fixed a serious bug. Changed to setattr(UnoObject, aPropertyName, aValue) since it is no longer possible to use tuples in aValue of setPropertyValue([in] string aPropertyName, [in] any aValue) from LibreOffice 5.4.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages