• Disable Menus/bars wit NOA4e
Replies:
1
Views:
176
Up one level
• Disable Menus/bars wit NOA4e
Posted by
wisegb
at
2008-04-01 17:27:44
I have successfully created an RCP application which can load a spreadsheet using OfficePanel.loadDocument.
Is there a way to disable the display of the menus and toolbars of the Office Panel? Also is there any javadoc for OfficePanel or other classes inthe NOA4e jars? Thanks Bowden |
wisegb
Member
Posts:
1
|
• Re: Disable Menus/bars wit NOA4e
Posted by
Markus Krueger
at
2008-04-02 11:34:41
Hi Bowden,
you can only create the javadoc yourself using the source plugins for now. The following snippet shows how to handle toolbars and buttons. IFrame frame = document.getFrame(); //handling toolbars ILayoutManager layoutManager = frame.getLayoutManager(); layoutManager.hideAll(); layoutManager.showElement(ILayoutManager.URL_TOOLBAR_STANDARDBAR); //handling commands frame.disableDispatch(GlobalCommands.PRINT_DOCUMENT); frame.disableDispatch(GlobalCommands.PRINT_DOCUMENT_DIRECT); frame.updateDispatches(); If you might be missing some command in "GlobalCommands" or a Toolbar in "ILayoutManager" you might use the string also that you can find in the web. For example: http://www.openshortcut.org/ooo/function-uno.php Regards, Markus |


