Re: [api-dev] Create simple toolbar in basic

2006-12-15 Thread Carsten Driesner
Andrew Douglas Pitonyak wrote: I have been documenting all of this... I must remove the window state using configuration access. sigh Hi Andrew, On the first look this may seem to be complicated, but we chose to use two different configurations to store different aspects of a toolbar. The

Re: [api-dev] From page coordinates to objects

2006-12-15 Thread Fernand Vanrie
Hi, Look at the OO-macro under Gimmicks theyr is a Gettext macro who can deliver the goods Fernand rthur schreef: Hi Christian For a document revising tool I'd like to get from the X/Y coordinates on a page to the object at that position in the writer document via the API. The ideal way

Re: [api-dev] From page coordinates to objects

2006-12-15 Thread Arthur
Hi Fernand Look at the OO-macro under Gimmicks theyr is a Gettext macro who can deliver the goods Thanks. The macro shows nicely how to iterate over all most objects. I unfortunately can't see anything that gives information about positioning/bounding boxes on the pages. Regards Arthur

[api-dev] toolbar in Basic, showing icons and/or text

2006-12-15 Thread Peter Eberlein
Hi, Carsten showed an example of inserting a toolbar with StarBasic. If it is extended with a graphic, the UI has the possibilities to show icon, text or icon and text. How to handle this with api? Inspecting the settings of the toolbar, I found a property Style as a PropertyValue, but this

[api-dev] XGraphicProvider and service MediaProperties

2006-12-15 Thread Peter Eberlein
Hi, The MediaProperties allow private URLs with the syntax (e.g.) private:resource/projectshortname/imagelist/12345. It seems, that this does not refer to the zip-archive, because (e.g.) private:resource/sw/imagelist/lc20556.png or private:resource/sw/imglst/lc20556.png are no valid URLs. Do

[api-dev] Re: insert latex formula using python

2006-12-15 Thread Fabian Braennstroem
Hi, me again :-) * Fabian Braennstroem [EMAIL PROTECTED] wrote: Hi, I used latex together with vim the last couple year and have to use something 'easier' at my office. I am lucky, that I am able to use openoffice version 1.2 on linux and don't have to go back to word

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-15 Thread Carsten Driesner
Peter Eberlein wrote: Hi, Carsten showed an example of inserting a toolbar with StarBasic. If it is extended with a graphic, the UI has the possibilities to show icon, text or icon and text. How to handle this with api? Hi Peter, Every toolbar consist of two different parts: 1. Content

Re: [api-dev] XGraphicProvider and service MediaProperties

2006-12-15 Thread Fernand Vanrie
Hi, I asked for the samething a few week ago but no answer, ther is a workaround using the storage the code below (i stolen someware) :-) demonstarte how to do oGraphics() = oDocument.GraphicObjects() if oDocument.getDocumentStorage.hasbyname(Pictures) then oPictures =

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-15 Thread Peter Eberlein
Hi Carsten, thanks for your fast answer and the example. Carsten Driesner schrieb: ... 2. Can be accessed via the window state configuration. You have to create the service com.sun.star.ui.WindowStateConfiguration and retrieve the window states for a specific module (via getByName(

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-15 Thread Carsten Driesner
Peter Eberlein wrote: Hi Carsten, thanks for your fast answer and the example. Carsten Driesner schrieb: ... 2. Can be accessed via the window state configuration. You have to create the service com.sun.star.ui.WindowStateConfiguration and retrieve the window states for a specific module