Thank you Carsten for your kind reply. I don't want to make the changes 
persistant. I just need this changes to be done within the applet, and only in 
the applet. Could you send me some code snippets for this or show me a link 
where I can find them?

Again thank you in advance for your kind reply.

Marco

----- Original Message ----
> From: Carsten Driesner <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Tuesday, January 22, 2008 3:54:04 AM
> Subject: Re: [api-dev] Hiding buttons from a toolbar
> 
> Marco Castillo schrieb:
> > Dear List:
> >     I'm embedding OpenOffice in an applet using the OOoBean for
> this
> 
 purpose. When OO displays in the applet, I need that some gadgets
> be
> 
 hidden. For example, I need the menu bar to be hidden. I lookup in
> the
> 
 OOoBean code, and there they use the XLayoutManager interface to
> hide
> 
 elements from the OO display. They use the following code to hide
> the
> 
 MenuBar:
> > xLayoutManager.hideElement( aResourceURL );
> > where aResourceURL is in the form: "private:resource/menubar/menubar"
> > consulting the IDL file for XLayoutManager, it saids that the
> URL
> 
 must have the following form:
> > "private:resource/$type/$name"
> > it is clear with the example above for the menubar. Where can I
> find
> 
 the $type and $name for other controls??, I need for example to
> hide
> 
 the save button from the main tool bar. Which will be the $type and
> $name
> 
 for this button??
> > Another question will be, Is ok to use the LayoutManager
> interface
> 
 for this purpose? or do I have to use the Configuration service?? Or
> is
> 
 there other way to accomplish this??
> > By the way, Open Office is a great product, and all its control
> API
> 
 is great stuff too!!
> > 
> > Thank you in advance for your kind reply.
> Hi Marco,
> 
> The LayoutManager is responsible to show/hide the user interface 
> elements. Currently the layout manager controls the following user 
> interface elements:
> 
> "toolbar"
> "statusbar"
> "menubar"
> "progressbar"
> 
> 
> So it's ok to use the LayoutManager API to show/hide the menu bar.
> If you want to hide a certain control which resides on a user
> interface
> 
 
> element you have to use a different API. That's the purpose of the
> user
> 
 
> interface configuration manager API. Do you want to make your changes 
> persistent or not? The solution looks different for persistent and 
> non-persistent changes.
> 
> Regards,
> Carsten
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




      
____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to