[api-dev] Calc addin - Custom toolbar not enabled

2006-03-13 Thread Tim Tow
I have a custom toolbar defined in Addons.xcu that is not enabling properly. The icons appear to be found properly but are disabled. The same URL is being used on custom menubar, so it appears as though it is registered properly. Here is a snippet of the Addons.xcu for the toolbar:

Re: [api-dev] How to ask a frame if any part of it is outside of the margin or of the printable area

2006-03-13 Thread Fernand Vanrie
Had the same problem and solved it with running a counter for eevry page and keep track off the cursor position on the page where we are inserting a frame. Then you have to place the new frame anywhere on the page, fil the frame with the text and with the "frame cursor" you can measur the hight

Re: [api-dev] UNOIDL Reference Help for Microsoft Developer Studio

2006-03-13 Thread Jürgen Schmidt
i have replaced the help files with a new set of files where the cross references into the DevGuide goes online to api.openoffice.org. Even this solution is not optimal because the links back does not work proper. New Version: http://api.openoffice.org/files/documents/22/3218/OpenOffice.org2.0.

Re: [api-dev] Java: adding functionality to newly created menu item

2006-03-13 Thread Tobias Krais
Hallo Andreas, >>> To make OOo call such "external" code you have to use commands with your >>> own naming scheme and implement and install a so called "protocol >>> handler" that handles commands using the scheme. All this is described >>> in the Developers Guide in the chapters about Dispatching

Re: [api-dev] Java: adding functionality to newly created menu item

2006-03-13 Thread Tobias Krais
Hi Mathias, > There is no reason to patch any config file. You should provide your own > protocolhandler.xcu in a UNO package and OOo will automatically merge > your file into the "built in" one (but only in memory, not on disk). well, for me there is a reason why I can't provide a protocolhandle

Re: [api-dev] Disable Commands transient

2006-03-13 Thread Tobias Krais
Hi Carsten, >> thanks for the hint. Since some days I read and try these chapters. If I >> understand right, to make such changes "transient" I have to disble the >> menu items, toolbar icons and shortcut keys transient concerning this >> special commandurl. And I have to hope that a user does not

[api-dev] Impossible to close a Base document

2006-03-13 Thread Bernard Marcelly
Hi developers, I would like to have your opinion on a code which was working with 1.9 and does not work in 2.0.1 and 2.0.2. Operating System is Win XP SP2 Home. I can open a Base document, but it is impossible to close it by API : com.sun.star.util.CloseVotoException Dim monDbContext As Objec