[dev] POPUPMENU

2008-06-17 Thread rameshkancherla

Good morning,
This is Ramesh kancherla

i am implementing toolbar to openoffice.
in my tool bar 4 buttons are there .
one button contains dropdown option.




i have to place atleast one popupmenu under that dropdown butoon.this
popupmenu will contain icon and label items.

popupmenu
icon label
icon label
icon label
icon label
icon label




how can i create this popupmenu and place it under dropdown button. or link
to dropdown button


can you please give me an advice.

i will be waiting for your replay.


Thanks & Regards
Ramesh K
-- 
View this message in context: 
http://www.nabble.com/POPUPMENU-tp17917898p17917898.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


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



Re: [dev] POPUPMENU

2008-06-18 Thread rameshkancherla

hi Ariel,
   I have seen this example.i think it is combo box example.and this
combo box contains only labels
but i have to display both icons and labels into dropdownmenu.
can you please give me suggestion

Thanks & Regards
Ramesh K




Ariel Constenla-Haile wrote:
> 
> Hi Ramesh,
> 
> rameshkancherla escribió:
>> Good morning,
>> This is Ramesh kancherla
>> 
>> i am implementing toolbar to openoffice.
>> in my tool bar 4 buttons are there .
>> one button contains dropdown option.
>> 
>> > toolbar:style="dropdown"/>
>> 
>> 
>> i have to place atleast one popupmenu under that dropdown butoon.this
>> popupmenu will contain icon and label items.
>> 
>> popupmenu
>> icon label
>> icon label
>> icon label
>> icon label
>> icon label
>> 
>> 
>> 
>> 
>> how can i create this popupmenu and place it under dropdown button. or
>> link
>> to dropdown button
>> 
>> 
>> can you please give me an advice.
> 
> the wiki documentation for the so called "complex toolbar controlrs":
> http://wiki.services.openoffice.org/wiki/Framework/Article/Generic_UNO_Interfaces_for_complex_toolbar_controls
> 
> There is a C++ example on the SDK.
> 
> Regards,
> Ariel.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/POPUPMENU-tp17917898p17997460.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


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



Re: [dev] POPUPMENU

2008-06-23 Thread rameshkancherla

first I Thanks for your replay.

i have to implement this one.can you please give me suggition how can i
implement this

Thanks & Regards 
ramesh K


Carsten Driesner wrote:
> 
> rameshkancherla wrote:
>> Good morning,
>> This is Ramesh kancherla
>> 
>> i am implementing toolbar to openoffice.
>> in my tool bar 4 buttons are there .
>> one button contains dropdown option.
>> 
>> > toolbar:style="dropdown"/>
>> 
>> 
>> i have to place atleast one popupmenu under that dropdown butoon.this
>> popupmenu will contain icon and label items.
>> 
>> popupmenu
>> icon label
>> icon label
>> icon label
>> icon label
>> icon label
>> 
>> 
>> 
>> 
>> how can i create this popupmenu and place it under dropdown button. or
>> link
>> to dropdown button
>> 
>> 
>> can you please give me an advice.
>> 
>> i will be waiting for your replay.
>> 
> Hi Ramesh K,
> 
> This will be a little bit complicated to achieve. First of all you have 
> to implement your own toolbar controller using the OpenOffice.org SDK. 
> The toolbar controller has to (see the service description 
> com.sun.star.frame.ToolbarController for more information) support the 
> com.sun.star.frame.XToolbarController interface. The controller is 
> called by the toolbar implementation using createPopupWindow() whenever 
> the user activates the dropdown button on the toolbar. Here you have to 
> create your own popup menu (using com.sun.star.awt.PopupMenu) and fill 
> it with your menu items using images and execute it. Execute() will 
> provide you the menu item ID of the selected menu item. Currently there 
> are only internal toolbar controllers using C++ classes which are not 
> part of the OpenOffice.org SDK. So there is no OpenOffice.org SDK 
> example for a toolbar controller. If you still want to implement this 
> kind of toolbar controller, please let me know and I will try to provide 
> you more details.
> 
> Regards,
> Carsten
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/POPUPMENU-tp17917898p18084233.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


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



Re: [dev] POPUPMENU

2008-07-10 Thread rameshkancherla

Hi Carstern,
I have seen in developers guide as

A context menu is displayed when an object is right clicked. Typically, a
context menu has context dependent functions to manipulate the selected
object, such as cut, copy and paste. Developers can intercept context menus
before they are displayed to cancel the execution of a context menu, add,
delete, or modify the menu by replacing context menu entries or complete sub
menus. It is possible to provide new customized context menus. 

But i have to show popupmenu in openoffice when user left clicked on tool
bar button. can you please give me an advice how do i implement it.

Thanks & Regards
Ramesh K

ms777 wrote:
> 
> Hi Carsten,
> 
> thanks for the answer. I created an issue:
> http://www.openoffice.org/issues/show_bug.cgi?id=91477
> 
> 
> ms777
> 
> 
> 
> Carsten Driesner wrote:
>> 
>> ms777 wrote:
>>> 
>>> Carsten Driesner wrote:

 ... Here you have to create your own popup menu (using
 com.sun.star.awt.PopupMenu) and fill 
 it with your menu items using images and execute it. ...


>>> 
>>> Carsten,
>>> 
>>> how do you set images using the com.sun.star.awt.PopupMenu service ? It
>>> implements XPopupMenu, which does not expose any setImage function. In
>>> the
>>> OO's UI File/New menu, oo uses the newmenucontroller
>>> (http://framework.openoffice.org/source/browse/framework/framework/source/uielement/newmenucontroller.cxx?rev=1.11.30.1&view=markup),
>>> which internally uses pPopupMenu->SetItemImage( nItemId, aImage ).
>>> SetItemImage, however is not part of XPopup or any other interface
>>> definition ...
>>> 
>>> It seems necessary to program a menucontroller in C and to rebuild OO to
>>> do
>>> use the same approach in order to use SetItemImage in an own
>>> PopupMenuController ... or alternatively program the popup menu window
>>> from
>>> scratch using only the drawing primitives 
>>> 
>> 
>> Hi ms777,
>> 
>> Sorry that I answer so late but I was very busy with OOo final tasks. I 
>> have to admit that you are totally right. That's a missing function in 
>> UNO AWT. Could you or ramesh K write me an issue and I will add this 
>> function to the popup menu object?
>> Ramesh K, although you have to implement your own toolbar controller to 
>> get all the feature you want, you won't be able to add images to your 
>> popup menu. I am not sure if you still want to prepare your work and add 
>> the missing part when the new function is available. Currently you have 
>> to accept that images in your own popup menu are not available for 
>> extensions. Due to a different interface it's possible to add images to 
>> context menus, see "Context menu interceptor". Due to the fact that we 
>> are short before the OOo 3.0 final, please excuse me if I cannot answer 
>> every question in short amount of time.
>> 
>> Regards,
>> Carsten
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/POPUPMENU-tp17917898p18397516.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


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



[dev] how to disable print option in openoffice document

2008-08-04 Thread rameshkancherla

hi, 
  This is Ramesh kancherla. I am doing in openoffice related project. I
have to disable print option in open office document using programatically
when user doesnt has print option on that document. 
if user has print permission in  another document i have to show print.
can any one please tell me how do i enable or disable print option through
programatically.

Thanks & Regards
Ramesh K
-- 
View this message in context: 
http://www.nabble.com/how-to-disable-print-option-in-openoffice-document-tp18808615p18808615.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


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



[dev] how to disable copy permission

2008-08-07 Thread rameshkancherla

Hi ,

This is Ramesh kancherla. I am working in open office related
project.  I have to disable copy option in open office document when user
doesn't has copy permission. and it is apply to specified document only.not
for all documents. is it possible? if yes how can i do it.
 can any one please give suggestion 

Thanks & Regards
Ramesh K

-- 
View this message in context: 
http://www.nabble.com/how-to-disable-copy-permission-tp18886089p18886089.html
Sent from the openoffice - dev mailing list archive at Nabble.com.


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