Created
January 17, 2017 11:28
-
-
Save giuserpe/94945ff43bde0090321f0ae55f9b11cd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from com.sun.star.awt import Point | |
GetmyToolBarNames = ('private:resource/toolbar/addon_ULTIMUS_3.OfficeToolBar', | |
'private:resource/toolbar/addon_ULTIMUS_3.OfficeToolBar_ELENCO', | |
'private:resource/toolbar/addon_ULTIMUS_3.OfficeToolBar_ANALISI', | |
'private:resource/toolbar/addon_ULTIMUS_3.OfficeToolBar_COMPUTO', | |
'private:resource/toolbar/addon_ULTIMUS_3.OfficeToolBar_CONTABILITA',) | |
def toolbar_ordina (arg=None): | |
#~ https://www.openoffice.org/api/docs/common/ref/com/sun/star/ui/DockingArea.html | |
oDoc = XSCRIPTCONTEXT.getDocument() | |
oLayout = oDoc.CurrentController.getFrame().LayoutManager | |
i = 0 | |
for bar in GetmyToolBarNames: | |
oLayout.dockWindow(bar, 'DOCKINGAREA_TOP', Point(i, 4)) | |
i += 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment