Re: [api-dev] Starting an Extension with a keystroke

2010-07-28 Thread Dietmar Hiller
shortcut to your service. > > I send you an example written in Python, but you can do the same thing with > Java. > > Regards, > > Thibault > > > - Mail Original - > De: "Dietmar Hiller" > À: dev@api.openoffice.org > Envoyé: Mardi

[api-dev] Starting an Extension with a keystroke

2010-07-27 Thread Dietmar Hiller
Hi, a user of my extension BorderLiner pointed out, that other extensions can be assigned to a keystroke via the keyboard customization dialog. I think he means (German) "Extras > Anpassen > Tastatur". How would I make my extension appear in that dialog? The extension is written in Java. Thanks

Re: [api-dev] XCellFormatRangesSupplier on multiple selections

2008-07-10 Thread Dietmar Hiller
Salut Bernard, Am Donnerstag, den 10.07.2008, 07:58 +0200 schrieb Bernard Marcelly: > Hi Dietmar, > Message de Dietmar Hiller date 2008-07-09 21:23 : > > > > It works fine if I select a continous range of cells (e.g. A1:C3), but I > > select e.g. A1:A3 and C1:C3 (so 2

[api-dev] XCellFormatRangesSupplier on multiple selections

2008-07-09 Thread Dietmar Hiller
I am using XCellFormatRangesSupplier to get an enumeration of the selected cells (Calc), something like this: XController xController = xFrame.getController(); Object oRange = xController.getModel().getCurrentSelection(); com.sun.star.sheet.XCellFormatRangesSupplier xFormatSupp = (com.sun.star.

[api-dev] XEnhancedMouseClickHandler and Keymodifiers

2008-04-20 Thread Dietmar Hiller
Hallo, my application implements a XEnhancedMouseClickHandler. I react on the mouse released event that gives me also com.sun.star.awt.EnhancedMouseEvent e. I thought, I could read the e.Modifiers, to see, if a shift/alt/ctrl key was pressed while the mouse button was released. But the value is al

Re: [api-dev] Naming a Toolbar Add-On

2008-04-07 Thread Dietmar Hiller
Hi, just to throw in my 5 cts: I actually had the same problem. Initially my extension configuration was not correct, and the extension installed as "Add on 3". Then I corrected it and in Writer it had a correct name, but in Calc still was called "Add on 3". I never managed to correct it on my dev

Re: [api-dev] createDialogWithHandler(Unknown Source)

2008-01-20 Thread Dietmar Hiller
Hi Ariel, Am Sonntag, den 20.01.2008, 15:52 -0300 schrieb Ariel Constenla-Haile: > Hi Dietmar, > ... > nice to hear it ended up well! > ... > I suggest you to get inspired by the aggregate components in > OOo_SRC/wizards/com/sun/star/wizards/ui > > It's all Java using UNO AWT toolkit. Sure you'l

Re: [api-dev] createDialogWithHandler(Unknown Source)

2008-01-20 Thread Dietmar Hiller
Hi, just to conclude the topic: Am Montag, den 14.01.2008, 21:04 +0100 schrieb Dietmar Hiller: > Hi Ariel, > > Am Montag, den 14.01.2008, 02:50 -0300 schrieb Ariel Constenla-Haile: > > Hi Dietmar, ... > > Dietmar Hiller escribió: ... > > > While trying to implement

[api-dev] BorderLine.Color

2008-01-20 Thread Dietmar Hiller
According to the documentation http://api.openoffice.org/docs/common/ref/com/sun/star/table/BorderLine.html#Color the color of a line should be of type ::com::sun::star::util::Color which would be "long". I am using Netbeans (Java) with ŚDK 2.3 and a) this type is not found in com.sun.star.util

Re: [api-dev] createDialogWithHandler(Unknown Source)

2008-01-14 Thread Dietmar Hiller
Hi Ariel, Am Montag, den 14.01.2008, 02:50 -0300 schrieb Ariel Constenla-Haile: > Hi Dietmar, > > Dietmar Hiller escribió: > ... > > While trying to implement the Dialog, I keep getting the > > following error: > > > > com.sun.star.lang.IllegalArgum

[api-dev] createDialogWithHandler(Unknown Source)

2008-01-11 Thread Dietmar Hiller
Hi, sorry me again. While trying to implement the Dialog, I keep getting the following error: com.sun.star.lang.IllegalArgumentException: DialogProviderImpl::getDialogModel: failed to parse URI: at com.sun.star.bridges.jni_uno.JNI_proxy.dispatch_call(Native Method) at com.sun.star.bridges.jni_u

[api-dev] feature versions

2008-01-08 Thread Dietmar Hiller
I would like to suggest that the API includes a hint, since which OOo version it is available. It is well done in "struct ControlCommand", but that is to my knowledge the only place. Take for instance "interface XDialogProvider2" (here mentioned "unpublished" but here "http://api.openoffice.org/doc

Re: [api-dev] Get XTextTable service, cursor is in (Java)

2008-01-05 Thread Dietmar Hiller
Hallo Jürgen, Am Freitag, den 04.01.2008, 09:23 +0100 schrieb Juergen Schmidt: ... > you can also use the Object Inspector > (http://wiki.services.openoffice.org/wiki/Object_Inspector) and can try > to generate the necessary Java snippets ;-) > > Juergen thanks for the hint to that tool. It t

[api-dev] Get XTextTable service, cursor is in (Java)

2008-01-03 Thread Dietmar Hiller
I am trying to change the border of a texttable, the cursor is in. In OOo Basic it worked like this: oView = oDocument.getCurrentController() oSelection = oView.Selection if oSelection.supportsService ("com.sun.star.text.TextTableCursor") then' selected cells in text table oV

Re: [api-dev] Complex toolbars

2007-09-16 Thread Dietmar Hiller
Am Freitag, den 14.09.2007, 02:22 -0300 schrieb Ariel Constenla-Haile: > ... > I repeat "Such a protocol handler *must be* implemented as a UNO > component": that is IMPOSSIBLE in OOo Basic. You can not implement UNO > components in that language, sorry :-( nor a protocol handler, an > XToolbarC

Re: [api-dev] Complex toolbars

2007-09-13 Thread Dietmar Hiller
Am Dienstag, den 11.09.2007, 10:15 +0200 schrieb Carsten Driesner: > Hi Dietmar, > > ...You can use the complex toolbar controller feature with BASIC. ... I am at my wits' end. My understanding up to now is: I have the configuration file "ProtocolHandler.xcu" where I define a handler that is pass

Re: [api-dev] Complex toolbars

2007-09-10 Thread Dietmar Hiller
Hallo Carsten, Am Montag, den 10.09.2007, 09:32 +0200 schrieb Carsten Driesner: > Dietmar Hiller wrote: > > Hi, > > ... > First I want to make clear that the complex toolbar controls were added > to provide general purpose functions with a flexible and lightweight > im

[api-dev] Complex toolbars

2007-09-07 Thread Dietmar Hiller
Hi, I am investigating in using the complex toolbars for my extension "BorderLiner". I know of the following sites http://wiki.services.openoffice.org/wiki/Framework/Article/Generic_UNO_Interfaces_for_complex_toolbar_controls, http://wiki.services.openoffice.org/wiki/Extensions_development#Proje

Re: [api-dev] Changing images in dialog interactively

2007-03-07 Thread Dietmar Hiller
Hi Paolo, Dietmar Am Dienstag, den 27.02.2007, 20:05 +0100 schrieb Paolo Mantovani: > Hi Dietmar, > ... > You can find another explanation with some example here: > http://marketing.openoffice.org/ooocon2005/presentations/thursday_d4.sxi > > The following basic extensions use the same approach fo

Re: [api-dev] Changing images in dialog interactively

2007-02-27 Thread Dietmar Hiller
Hallo Carsten, Am Sonntag, den 25.02.2007, 19:09 +0100 schrieb Carsten Driesner: > Dietmar Hiller schrieb: > > I want to interactively change the image in an "ImageControl" of a > > dialog. > > ... > ... > Am I right that your images are also part of y

[api-dev] Changing images in dialog interactively

2007-02-24 Thread Dietmar Hiller
I want to interactively change the image in an "ImageControl" of a dialog. Since the corresponding macro is installed with the extension manager, I cannot use absolute paths in the URL. Is there an example somewhere? Programming language is BASIC. Thanks

[api-dev] Is there a way to create a listbox with graphics elements?

2007-02-14 Thread Dietmar Hiller
I want to make a line style selection listbox, similar to that of the lines in WRITER. Programming language is BASIC. Can I assign graphics to the elements of the listbox entries? As a work around I found the possibility to use a scrollbar that sets the content of a graphics element to an image on