[api-dev] Unanswered question: Is Zordering with text frames broken?

2006-10-13 Thread Kent Gibson
A while back ago I asked if someone else had any problem with zordering of frames. There was no reply. So I have gone and put together a macro test case. Could someone kindly confirm that this is a bug or that I am doing something wrong. I have not included images in this test case, for

[api-dev] How to assign keyboard shortcut to add-on menu

2006-10-13 Thread Julien Galand
Hi, I have read an answer by Mathias Bauer mailed on 11/18/2004 that it was not currently possible to assign a keyboard shortcut to an add-on menu line. Is it still impossible with OO 2.0 ? Even if the assignment is dynamic (not persistent), made by some API (typically by

Re: [api-dev] How to assign keyboard shortcut to add-on menu

2006-10-13 Thread Laurent Godard
HI I have read an answer by Mathias Bauer mailed on 11/18/2004 that it was not currently possible to assign a keyboard shortcut to an add-on menu line. Is it still impossible with OO 2.0 ? Even if the assignment is dynamic (not persistent), made by some API (typically by

[api-dev] Refreshing a modified menu bar

2006-10-13 Thread Julien Galand
Hi everybody, I have written an add-on which inserts its menu in the OfficeMenuBar as a top-level menu. Instead of using a .xcu installed with the add-on package, it creates and inserts its menu dynamically, using the com.sun.star.configuration module to modify OO's configuration, at the

[api-dev] controlling the anchor of a commandbutton in writer using script

2006-10-13 Thread Christian Andersson
Hi there, I'm dynamicly inserting commandbuttons into a writerdocument, this is all working fine, but I have a huge problem controlling where they are located. from what I can see I can set the x and y position of the button, but I want to insert the button depending on text that I have inserted

[api-dev] Tweaking the api for performance

2006-10-13 Thread Kent Gibson
We render documents using the api. For the most part everything is great but performance. Are there any ways I can tweak a bit more peformance? For example we do not use the database, calc or presenation components. Is there any way I can make sure these components are not slowing things

[api-dev] JVM 1.4.2_12 and AWT Frames Kills the JVM

2006-10-13 Thread Kent Gibson
This isn't an OpenOffice bug, but I thought people who develop with OpenOffice might like to know about this. There is a know issue with AWT frames in JVM 1.4.2_12 that kills the the Java Virtual Machine: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6450869 Everything works ok in 1.4.2_8

Re: [api-dev] Tweaking the api for performance

2006-10-13 Thread Laurent Godard
Hi kent did you have a oook at lockControllers and unlockControllers ? http://api.openoffice.org/docs/common/ref/com/sun/star/frame/XModel.html#lockControllers Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management

Re: [api-dev] Refreshing a modified menu bar

2006-10-13 Thread Carsten Driesner
Julien Galand wrote: Hi everybody, I have written an add-on which inserts its menu in the OfficeMenuBar as a top-level menu. Instead of using a .xcu installed with the add-on package, it creates and inserts its menu dynamically, using the com.sun.star.configuration module to modify OO's

Re: [api-dev] Tweaking the api for performance

2006-10-13 Thread Kent Gibson
thanks. I have tried that. But 1) I noticed no difference (should there a big gain?) and 2) sometimes even though I render in a read only document the results are not the same. I can remember that x,y results from my view cursor sometimes looked odd. I should probably test this again, before I has

Re: [api-dev] Refreshing a modified menu bar

2006-10-13 Thread Julien Galand
Le 13 oct. 06, à 16:54, Carsten Driesner a écrit : Although this is a possible way to implement your add-on it looks a bit strange and has a drawback you should consider. If the user choose to uninstall your add-on all the changes you did programmatically in the configuration won't be

Re: [api-dev] controlling the anchor of a commandbutton in writer using script

2006-10-13 Thread Marc Santhoff
Am Freitag, den 13.10.2006, 15:58 +0200 schrieb Christian Andersson: Hi there, I'm dynamicly inserting commandbuttons into a writerdocument, this is all working fine, but I have a huge problem controlling where they are located. from what I can see I can set the x and y position of the button,

Re: [api-dev] Refreshing a modified menu bar

2006-10-13 Thread Christoph Jopp
Hi Carsten, you wrote: You can use the layout manager from the frame to destroy and create the menu bar again. The current implementation doesn't listen to changes in the Addon.xcu file. The current implementation does it not. Will there be an upcoming implementation in which it does listen to

Re: [api-dev] Calc: Switch DesignMode On/Off

2006-10-13 Thread Frank Schönheit
Hi Mathias, Besides that it looks strange that ApplyFormDesignMode is a model property. Is it stored in the content.xml or in the settings.xml? content.xml. Why is this strange? It's more on the level of, say, the background color, than, say, the zoom level: It's an aspect of the document

Re: [api-dev] How to assign keyboard shortcut to add-on menu

2006-10-13 Thread Mathias Bauer
Julien Galand wrote: Hi, I have read an answer by Mathias Bauer mailed on 11/18/2004 that it was not currently possible to assign a keyboard shortcut to an add-on menu line. Is it still impossible with OO 2.0 ? Even if the assignment is dynamic (not persistent), made by some API

Re: [api-dev] Tweaking the api for performance

2006-10-13 Thread Mathias Bauer
Kent Gibson wrote: We render documents using the api. For the most part everything is great but performance. Are there any ways I can tweak a bit more peformance? Hard to give a specific answer for such a general question. :-) For example we do not use the database, calc or