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

Disable Button

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


Joined: 05 May 2004
Posts: 23

PostPosted: Sun Aug 22, 2004 9:53 pm    Post subject: Disable Button Reply with quote

Hi all,

is there any possible way for disabling the new, save and save as functionalities programmatically? as I am integrating the OpenOffice in UI, I want to disable button and also the functionality of the new, save and save as.

the user should not have a permission to do the operations like new, save and save as from the openoffice window inside the UI, all this functionalities will be handled in Application which was integrating the OpenOffice,,

any feedback regarding the above query will be appreciated....

Thanks in Advance
_________________
srinivas
Keystone Software ..
INDIA.
Back to top
View user's profile Send private message Yahoo Messenger
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3152
Location: Columbus, Ohio, USA

PostPosted: Thu Aug 26, 2004 12:22 pm    Post subject: Reply with quote

I am just guessing, in other words, assume that I may be wrong...

1. You may be able to modify the menu and such by changing the configuration XML files.

2. You may be able to register a listener for that particular slot and then intercept this request and then deny it.
_________________
--
Andrew Pitonyak
My Document: http://www.pitonyak.org/AndrewMacro.odt
Free Info: http://www.pitonyak.org/oo.php
Most hated bug: http://www.openoffice.org/issues/show_bug.cgi?id=84159
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
kapsl
General User
General User


Joined: 05 May 2004
Posts: 23

PostPosted: Sat Aug 28, 2004 12:39 am    Post subject: Reply with quote

Thanks Andrew,

Can you tell me how to edit the configuration file for disabling the buttons with some example,

Hope you can help me!!!

Thanks in advance...
_________________
srinivas
Keystone Software ..
INDIA.
Back to top
View user's profile Send private message Yahoo Messenger
pitonyak
Administrator
Administrator


Joined: 09 Mar 2004
Posts: 3152
Location: Columbus, Ohio, USA

PostPosted: Sat Aug 28, 2004 4:33 pm    Post subject: Reply with quote

Danny has done more with the configuration items. For example, see the following post:
http://www.oooforum.org/forum/viewtopic.php?t=6310
You may be able to find more posts such as this by searching the archives.
_________________
--
Andrew Pitonyak
My Document: http://www.pitonyak.org/AndrewMacro.odt
Free Info: http://www.pitonyak.org/oo.php
Most hated bug: http://www.openoffice.org/issues/show_bug.cgi?id=84159
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3208
Location: Troyes France

PostPosted: Sun Aug 29, 2004 8:13 am    Post subject: Reply with quote

See also http://www.ooomacros.org/dev.php the two first item :
Add On Installer and add On Tool.
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
DannyB
Moderator
Moderator


Joined: 02 Apr 2003
Posts: 4021
Location: Lawrence, Kansas, USA

PostPosted: Mon Aug 30, 2004 8:21 am    Post subject: Reply with quote

With the Configuration Manager it is presently possible to add new....
* top level menus
* add on menus
* toolbar icons

Andrew's original answer (2nd post in this thread) is really the same answer I would give to the original question. I did not answer, because I don't believe I have anything useful to add to this thread. (Basically, I'm only answering now to add useful information about the Configuration Manager, since Andrew mentioned it.)

I do not know of a Configuration Manager way to manipulate the standard office menus. I also do know that in OOo 2.0 that the standard office menus are definitely stored as configuration manager nodes, and therefore can be manipulated using the configuration manager api. So this is one of the wonderful programming improvements I'm looking forward to in 2.0.

I believe that there is also some mechanism to disable standard office menu items. Unfortunantly, I am not familiar with it. You would have to read the Developer's Guide, which is the same as I would have to do.



Here are some links that are what I know about the Configuration Manager. Some of these have lots of actual information in them. (For instance, a discussion on how the XCU files relate to the configuration manager api.)


Corrupt configuration fixup
=============================
http://www.oooforum.org/forum/viewtopic.php?t=3938
not yet fixed...
http://www.oooforum.org/forum/viewtopic.php?t=6966


Configuration files & other OOo installation files
==================================================
http://www.oooforum.org/forum/viewtopic.php?t=4432
http://www.openoffice.org/servlets/ReadMsg?list=discuss&msgNo=27486
http://www.oooforum.org/forum/viewtopic.php?t=4190
http://www.oooforum.org/forum/viewtopic.php?t=3369


User configuration backup discussion
http://www.oooforum.org/forum/viewtopic.php?t=3012

Copy user settings to other PC
http://www.oooforum.org/forum/viewtopic.php?p=11651
http://www.oooforum.org/forum/viewtopic.php?t=3121
http://www.oooforum.org/forum/viewtopic.php?p=11179#11179
http://www.oooforum.org/forum/viewtopic.php?t=6630
http://www.oooforum.org/forum/viewtopic.php?p=11651#11651


http://www.oooforum.org/forum/viewtopic.php?p=10865#10865

http://www.oooforum.org/forum/viewtopic.php?p=11663#11663

User Interface Configuration tied to a specific document instance
http://www.oooforum.org/forum/viewtopic.php?p=14862#14862




Configuration Manager
=====================

* The Configuration Manager chapter of the Developer's Guide.
* My post titled: ENLARGE THE SIZE OF YOUR recent files list
http://www.oooforum.org/forum/viewtopic.php?t=3559

* My post titled: FYI...new macro to make OOo listen for UNO connections
* UnoConnectionListener
http://www.oooforum.org/forum/viewtopic.php?t=3754

* My post titled: Development of a Basic Macro Installer
http://www.oooforum.org/forum/viewtopic.php?t=4255

* Example of creating top level menu items
http://www.oooforum.org/forum/viewtopic.php?t=6310

* Example of creating new toolbar items
http://www.oooforum.org/forum/viewtopic.php?p=29341#29341

* Duplicate Shape installable draw tool
http://www.ooomacros.org/user.php#115800

* Brief explanation of how Config API ties to XCU files
http://www.oooforum.org/forum/viewtopic.php?p=24558#24558

* Explanation of custom XCS and XCU files using pkgchk
http://www.oooforum.org/forum/viewtopic.php?p=27922#27922

* My post titled: Musings about the Configuration Manager
http://www.oooforum.org/forum/viewtopic.php?t=4028

* Add On Tool
http://www.oooforum.org/forum/viewtopic.php?t=4059

Development of a Basic macro installer
http://www.oooforum.org/forum/viewtopic.php?t=4255

How to change default fonts programatically?
http://www.oooforum.org/forum/viewtopic.php?p=16982#16982

Dropdown Menus in Custom Toolbars
http://www.oooforum.org/forum/viewtopic.php?t=4008

TypeDetection.xml
http://www.oooforum.org/forum/viewtopic.php?t=3692
Description of TypeDetection.xcu
http://www.oooforum.org/forum/viewtopic.php?t=10111

Disabling menus items at runtime
http://www.oooforum.org/forum/viewtopic.php?t=3558

Configuring to listen for UNO connections
http://www.oooforum.org/forum/viewtopic.php?p=12370#12370
http://www.oooforum.org/forum/viewtopic.php?t=9768

Unanswered...possible to specify alternate configuration at launch time?
http://www.oooforum.org/forum/viewtopic.php?t=6798

What version of OOo is running?
Installed version of SOffice
http://www.oooforum.org/forum/viewtopic.php?p=37431
get the OpenOffice version
http://www.oooforum.org/forum/viewtopic.php?t=12008



Install new components / modules
================================
http://www.oooforum.org/forum/viewtopic.php?t=4784
http://www.oooforum.org/forum/viewtopic.php?t=4255

* Add On Tool
http://www.oooforum.org/forum/viewtopic.php?t=4059

http://www.oooforum.org/forum/viewtopic.php?t=3811

* Example of creating top level menu items
http://www.oooforum.org/forum/viewtopic.php?t=6310

Description of OOo as a large collection of services
http://www.oooforum.org/forum/viewtopic.php?p=28094#28094


Manipulating Basic Libraries and Dialogs
========================================
http://www.oooforum.org/forum/viewtopic.php?p=13050#13050
http://www.oooforum.org/forum/viewtopic.php?t=3504
http://api.openoffice.org/docs/DevelopersGuide/BasicAndDialogs/BasicAndDialogs.htm#1+4+Advanced+Library+Organization



OOo Install directory - saving macro config files
PathSettings
=================================================

getting the user's TEMP directory in windows
http://www.oooforum.org/forum/viewtopic.php?t=9142

http://www.oooforum.org/forum/viewtopic.php?t=4913
http://www.oooforum.org/forum/viewtopic.php?t=4613
http://www.oooforum.org/forum/viewtopic.php?t=3707

Use the Tools library (soffice) to get path settings...
http://www.oooforum.org/forum/viewtopic.php?t=5720
_________________
Want to make OOo Drawings like the colored flower design to the left?
Back to top
View user's profile Send private message
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