| View previous topic :: View next topic |
| Author |
Message |
Codi General User


Joined: 15 Jan 2005 Posts: 10 Location: Botswana
|
Posted: Sat Jan 15, 2005 11:57 am Post subject: Removing Menus |
|
|
| I have just started learning OpenOffice and want to develop a bean, working from th eSimpleBean example. I would like to know how to dissable all the icons and menus that are shown when I open a document and remain with just the document in a java frame. If there is anyone who knows how to do this please help. |
|
| Back to top |
|
 |
migue General User


Joined: 06 Oct 2004 Posts: 46
|
Posted: Mon Jan 17, 2005 3:46 am Post subject: |
|
|
Try this in the class BasicOfficeBean:
| Code: |
OfficeCommand command = new OfficeCommand(IDCOMMAND_MENUBAR);
command.appendParameter("MenuBarVisible", new Boolean(visible));
command.execute(this);
|
This is for MenuBar for example. For the other menus is equal but change the IDCOMMAND. The IDCOMMANDs are:
| Code: |
public static final short IDCOMMAND_MENUBAR = 6661;
public static final short IDCOMMAND_OBJECTBAR = 5905;
public static final short IDCOMMAND_TOOLBAR = 5909;
public static final short IDCOMMAND_TOOLFUNBAR = 5910;
|
I hope I help you |
|
| Back to top |
|
 |
Codi General User


Joined: 15 Jan 2005 Posts: 10 Location: Botswana
|
Posted: Mon Jan 17, 2005 12:44 pm Post subject: |
|
|
| Thanx a lot for the help. The code does exactly what I wanted. |
|
| Back to top |
|
 |
Codi General User


Joined: 15 Jan 2005 Posts: 10 Location: Botswana
|
Posted: Sun Feb 06, 2005 7:58 am Post subject: |
|
|
| Hi. I have run into another problem, that is in removing the snap grids/ rulers in the impress document view. Do you know the commands to do that. I would also like to know how to chnage to specific slides using page numbers or so from my code. Thanx. |
|
| Back to top |
|
 |
empy General User


Joined: 09 Mar 2004 Posts: 30 Location: Bavaria, Germany
|
|
| Back to top |
|
 |
|