OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Removing Menus

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
Codi
General User
General User


Joined: 15 Jan 2005
Posts: 10
Location: Botswana

PostPosted: Sat Jan 15, 2005 11:57 am    Post subject: Removing Menus Reply with quote

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
View user's profile Send private message Yahoo Messenger
migue
General User
General User


Joined: 06 Oct 2004
Posts: 46

PostPosted: Mon Jan 17, 2005 3:46 am    Post subject: Reply with quote

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
View user's profile Send private message
Codi
General User
General User


Joined: 15 Jan 2005
Posts: 10
Location: Botswana

PostPosted: Mon Jan 17, 2005 12:44 pm    Post subject: Reply with quote

Thanx a lot for the help. The code does exactly what I wanted.
Back to top
View user's profile Send private message Yahoo Messenger
Codi
General User
General User


Joined: 15 Jan 2005
Posts: 10
Location: Botswana

PostPosted: Sun Feb 06, 2005 7:58 am    Post subject: Reply with quote

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
View user's profile Send private message Yahoo Messenger
empy
General User
General User


Joined: 09 Mar 2004
Posts: 30
Location: Bavaria, Germany

PostPosted: Tue Apr 05, 2005 3:49 am    Post subject: Reply with quote

Maybe a bit late, but here is a list of all slot-IDs and names

OOo 1.1
http://framework.openoffice.org/files/documents/25/1042/commands_11beta.html

OOo 2.0
http://www.openoffice.org/files/documents/25/2570/commandsReference.html

empy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group