Hi Carsten,
Thanks for your answer. But I need little more help here.
Here is my scenario.
I have created a com library using C#, which is ignited by C++ oo listener
helper library,
Now from my C# class depending on some business decision I need to hide some
buttons in my toolbar.
Now,
I have created ‘FeatureSTateEvent’ object and now need to set it to the
dispatcher provider.. but I didn’t get dispatch provider. Can you tell me how
to get that? C++ code is also ok.. I will convert it in C#.
Am quite new to UNO sdk, so please help me here ;-).
Best Regards,
Vikas Patel | Team Coordinator | Decos Software Development Pvt. Ltd (“ISO
9001: 2000 Certified Company”)
Muttha Towers, 2nd Floor, Suite No 18, Airport Road, Yerwada, Pune.
Ph. +91 20 66466700. Fax: +91 20 66466800. GSM: +91 9970011230
www.decos.com
P Save a tree and water. Don't print this e-mail unless it's really necessary.
Alone we can do little but together we can do so much.
Hi Vikas,
You can hide a button in any toolbar (normal, custom, add-on) if you have a
com.sun.star.frame.DispatchProvider implementation and provide a
com.sun.star.frame.FeatureStateEvent which includes the following attributes:
published struct FeatureStateEvent: com::sun::star::lang::EventObject
{
com::sun::star::util::URL FeatureURL;
string FeatureDescriptor;
boolean IsEnabled;
boolean Requery;
any State;
};
If you put a com.sun.star.frame.status.Visibility type into aState and set the
bVisible attribute to false then the button will be invisible.
Regards,
Carsten
_____________________________________
From: Vikas Patel [mailto:[email protected]]
Sent: Thursday, November 19, 2009 3:47 PM
To: '[email protected]'
Subject: FW: Need to hide button in custom toolbar
Importance: High
FYI, it’s not custom toolbar, but it’s add-on toolbar.. which is installed with
my add-in J.
Best Regards,
Vikas Patel | Team Coordinator | Decos Software Development Pvt. Ltd (“ISO
9001: 2000 Certified Company”)
Muttha Towers, 2nd Floor, Suite No 18, Airport Road, Yerwada, Pune.
Ph. +91 20 66466700. Fax: +91 20 66466800. GSM: +91 9970011230
www.decos.com
P Save a tree and water. Don't print this e-mail unless it's really necessary.
Alone we can do little but together we can do so much.
_____________________________________________
From: Vikas Patel [mailto:[email protected]]
Sent: Thursday, November 19, 2009 3:29 PM
To: '[email protected]'
Subject: Need to hide button in custom toolbar
Importance: High
Hi,
I have created one custom toolbar, for open office writer, and now We need to
hide/disable the toolbar button conditionally.
I’m able to do same for all standard toolbars but when I’m trying same for
custom toolbar it crashes.
Please give me some pointer which might goes wrong in implementing my custom
toolbar.
Thanks,
Best Regards,
Vikas Patel | Team Coordinator | Decos Software Development Pvt. Ltd (“ISO
9001: 2000 Certified Company”)
Muttha Towers, 2nd Floor, Suite No 18, Airport Road, Yerwada, Pune.
Ph. +91 20 66466700. Fax: +91 20 66466800. GSM: +91 9970011230
www.decos.com
P Save a tree and water. Don't print this e-mail unless it's really necessary.
Alone we can do little but together we can do so much.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]