List Info

Thread: DIsableCommandTest.java




DIsableCommandTest.java
user name
2006-03-19 08:25:45
Hi,

I'm totally newbie here, but really motivated one. ;)
I would appreciate a bit help here.

According to
http://www.openoffice.org/files/document
s/25/2570/commandsReference.html 
there should be a command named FormatMenu.

if I add:
   new String( "FormatMenu" )
to the aCommandURLTestSet table and try to run
HelloTextTableShape.java 
main() after disableCommands();
, FormatMenu still appears normally.
How should I disable whole menus? Does that disable also
every command 
under that menu?

I have installed OOoSDK2.0.6.

Thank you!

Tuomas Räsänen

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

DIsableCommandTest.java
user name
2006-03-20 08:19:50
Hi Tuomas,

> I'm totally newbie here, but really motivated one. ;)
> I would appreciate a bit help here.

Same to me three weeks ago.

> According to
> http://www.openoffice.org/files/document
s/25/2570/commandsReference.html
> there should be a command named FormatMenu.
> 
> if I add:
>   new String( "FormatMenu" )
> to the aCommandURLTestSet table and try to run
HelloTextTableShape.java
> main() after disableCommands();
> , FormatMenu still appears normally.
> How should I disable whole menus? Does that disable
also every command
> under that menu?

I had a question that equals mine a bit. I wanted to remove
all menu
items with the CommandURL ".uno:SaveAs". Here is
the code:
http://cod
esnippets.services.openoffice.org/Office/Office.RemoveIterat
iveAndTransientMenubarItems.snip

It could be helpful for you. May be also the thread on this
list named
"Disable Commands transient."

I am not too sure that if you disable a whole menu will
disappear. At
least in the example you mentioned it will disappear.

Greetings, Tobias

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

DIsableCommandTest.java
user name
2006-03-20 13:29:32
Tobias Krais wrote:

>Hi Tuomas,
>
>  
>
>>I'm totally newbie here, but really motivated one.
;)
>>I would appreciate a bit help here.
>>    
>>
>
>Same to me three weeks ago.
>
>  
>
>>According to
>>http://www.openoffice.org/files/document
s/25/2570/commandsReference.html
>>there should be a command named FormatMenu.
>>
>>if I add:
>>  new String( "FormatMenu" )
>>to the aCommandURLTestSet table and try to run
HelloTextTableShape.java
>>main() after disableCommands();
>>, FormatMenu still appears normally.
>>How should I disable whole menus? Does that disable
also every command
>>under that menu?
>>    
>>
>
>I had a question that equals mine a bit. I wanted to
remove all menu
>items with the CommandURL ".uno:SaveAs".
Here is the code:
>http://cod
esnippets.services.openoffice.org/Office/Office.RemoveIterat
iveAndTransientMenubarItems.snip
>
>It could be helpful for you. May be also the thread on
this list named
>"Disable Commands transient."
>
>I am not too sure that if you disable a whole menu will
disappear. At
>least in the example you mentioned it will disappear.
>
>Greetings, Tobias
>
>--------------------------------------------------------
-------------
>To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
>For additional commands, e-mail: dev-helpapi.openoffice.org
>
>  
>
Hi Tobias,

and thanks a lot! Every piece of help is welcome at this
point! BTW, do 
you know where can I find list of all URLs used in UNOs?
Like those  
resources.

Tuomas

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribeapi.openoffice.org
For additional commands, e-mail: dev-helpapi.openoffice.org

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )