[api-dev] Re: Toolbar items: how to get them to show the shortcut letter underlined ?

2011-05-25 Thread Rony G. Flatscher
On 25.05.2011 08:35, Mathias Bauer wrote: On 24.05.2011 22:31, Rony G. Flatscher wrote: Hi there, in the meantime I have been able to add shortcuts to the toolbar items and they are operational. However, the shortcut letter is not underlined, although using the tilde (~) before the letter

[api-dev] Re: Toolbar items: how to get them to show the shortcut letter underlined ?

2011-05-25 Thread Rony G. Flatscher
Fernand, On 25.05.2011 09:15, Fernand Vanrie wrote: When making mi extentions i found (by accident if forgot to use ~) the system (at least for menubar items) automaticly gives a underlined letter thank you for that hint. Unfortunately, this does not work either. ---rony --

[api-dev] Re: Toolbar items: how to get them to show the shortcut letter underlined ?

2011-05-25 Thread Rony G. Flatscher
On 25.05.2011 11:22, Mathias Bauer wrote: On 25.05.2011 10:34, Rony G. Flatscher wrote: On 25.05.2011 08:35, Mathias Bauer wrote: On 24.05.2011 22:31, Rony G. Flatscher wrote: Hi there, in the meantime I have been able to add shortcuts to the toolbar items and they are operational

[api-dev] Invoking macros via toolbar items: where does the argument come from ?

2011-05-25 Thread Rony G. Flatscher
Hi there, if executing a macro via Tools - Macro - Run there is no argument supplied to the script. However, if running the same macro via a toolbar item, an argument is supplied, which seems to have always a value of 0 (false?). Where does this argument come from and what is its purpose, where

[api-dev] Re: Toolbar items: how to get them to show the shortcut letter underlined ?

2011-05-25 Thread Rony G. Flatscher
Mathias, thank you very much for your explanations!A comparable functionality does not exist for toolbar items. ... cut ... OTOH, toolbar quickhelp texts can show *accelerators* that are configured for the same functionality, in the same way as the menus do. (We don't do that in the item

[api-dev] Re: Toolbar items: how to get them to show the shortcut letter underlined ?

2011-05-25 Thread Rony G. Flatscher
Hi Mathias, On 25.05.2011 16:40, Mathias Bauer wrote: On 25.05.2011 14:32, Rony G. Flatscher wrote: How can I define a quickhelp text for each toolbar item? It seems that by default the label of the toolbar item is used as the quickhelp (tooltip?) text, and that does not exhibit the shortcut

[api-dev] Re: Invoking macros via toolbar items: where does the argument come from ?

2011-05-25 Thread Rony G. Flatscher
Hi Ariel, thank you *very* much for this link which explains the situation! Unbelievable what you find (and know), kudos ! Best regards, ---rony On 25.05.2011 17:41, Ariel Constenla-Haile wrote: Hello Rony, On Wednesday 25 May 2011, 07:25, Rony G. Flatscher wrote: Hi

[api-dev] Re: Toolbar items: how to get them to show the shortcut letter underlined ?

2011-05-25 Thread Rony G. Flatscher
operational, where for the menus the Shift+Ctrl shortcuts got used. After removing the accelerators with removeCommandFromAllKeyEvents() upon uninstall fixed the problem from then on. ---rony On 25.05.2011 23:09, Rony G. Flatscher wrote: Hi Mathias, maybe one more question: in addition

[api-dev] Re: Problem with - XUIConfigurationPersistence.store()

2011-05-24 Thread Rony G. Flatscher
Hi there, as strange as it may seem, XUIConfigurationPersistence.store() has started to work! Not having the slightest idea what was wrong (maybe a erroneous leftover configuration from earlier, just a pure speculation)? ---rony On 22.05.2011 13:18, Rony G. Flatscher wrote: Hi

[api-dev] Re: Problem with - XUIConfigurationPersistence.store()

2011-05-22 Thread Rony G. Flatscher
ideas, hints ? ---rony On 21.05.2011 20:57, Rony G. Flatscher wrote: Hi there, in order to make a successfully created Toolbar for TextDocuments persistent http://java.sun.com/developer/technicalArticles/J2SE/Desktop/menus_toolbars/ hints at using the com.sun.star.ui.XUIConfigurationPersistence

[api-dev] Problem with - XUIConfigurationPersistence.store()

2011-05-21 Thread Rony G. Flatscher
Hi there, in order to make a successfully created Toolbar for TextDocuments persistent http://java.sun.com/developer/technicalArticles/J2SE/Desktop/menus_toolbars/ hints at using the com.sun.star.ui.XUIConfigurationPersistence interface's store() method. Invoking the store() method unfortunately

Re: [api-dev] LO removing Java, why would they want to? (Re: [api-dev] Java-Midi not working on Mac?

2010-12-24 Thread Rony G. Flatscher
On 23.12.2010 17:49, Jan Holst Jensen wrote: On 2010-12-23 17:30, Rony G. Flatscher wrote: On 22.12.2010 19:13, Jürgen Schmidt wrote: On 12/22/10 6:03 PM, Martin Dobiasch wrote: ... cut ... Its installed as I've tested some other code on that Mac using the Midi API of Sun-Java

Re: [api-dev] LO removing Java, why would they want to? (Re: [api-dev] Java-Midi not working on Mac?

2010-12-24 Thread Rony G. Flatscher
On 24.12.2010 11:20, Konstantin Tokarev wrote: That's the point: not all of OOo is written in C++ anymore, there are quite important subsystems written in Java. One premiere example is the scripting subsystem, which makes JavaScript, BeanShell, ooRexx and others available to OOo. Removing

[api-dev] Enhancing StarBasic then ? (Re: [api-dev] use of css.container.EnumerableMap

2010-12-23 Thread Rony G. Flatscher
On 22.12.2010 17:56, Paolo Mantovani wrote: Il 21/12/2010 10:25, Frank Schönheit ha scritto: [...] as I was the one who wrote this service (out of a particular need): Sorry, I wasn't aware that Type is such a ... difficult thing in Basic. I'll keep that in mind for the next API I design :-\

[api-dev] LO removing Java, why would they want to? (Re: [api-dev] Java-Midi not working on Mac?

2010-12-23 Thread Rony G. Flatscher
On 22.12.2010 19:13, Jürgen Schmidt wrote: On 12/22/10 6:03 PM, Martin Dobiasch wrote: ... cut ... Its installed as I've tested some other code on that Mac using the Midi API of Sun-Java. For example the same extension works for NeoOffice. Do you know where in the code I can find the

Re: [api-dev] API documentation and improving interactivity

2010-09-10 Thread Rony G. Flatscher
Alexandro, you may want to look into http://www.ooocon.org/index.php/ooocon/2010/paper/view/196, once the slides are made available online by Peter (he has been doing a lot of work and needs probably more time to process all of the slides of the numerous presentations at this year's OOoCon, all

[api-dev] Announcement: IDL-XML-Converter - A Package for Transforming IDL into XML available ...

2010-07-29 Thread Rony G. Flatscher
Hi there, today a student, Lukas Schreier, turned in his final version of a seminar paper about IDL-XML-Converter - A Package for Transforming IDL into XML. Here's the author's abstract: Author's abstract: The IDL-XML-Converter-Package is used to convert IDL to XML files. Those XML

Re: [api-dev] Questions ad XPrintable.print(properties) ...

2010-07-15 Thread Rony G. Flatscher
Hi Mathias, thank you for your comments! Please see inline comments. On 15.07.2010 09:40, Mathias Bauer wrote: On 14.07.2010 11:37, Rony G. Flatscher wrote: Hi there, so far I have been under the assumptions that the list of properties that one is able to supply to the XPrintable.print

[api-dev] Questions ad XPrintable.print(properties) ...

2010-07-14 Thread Rony G. Flatscher
Hi there, so far I have been under the assumptions that the list of properties that one is able to supply to the XPrintable.print(...) method matches the options that can be given in the GUI of the respective component type. This way each document type would have a common set of properties, but

[api-dev] simpress: printing handouts programmatically, howto ?

2010-07-13 Thread Rony G. Flatscher
Having an impress document, I would like to programmatically print out a presentation in form of handouts, with e.g. 2 slides per page. Tried the English print-dialog names as print options, but to no avail. How can one achieve that programmatically, what steps are needed, what PropertyValue can

Re: [api-dev] simpress: printing handouts programmatically, howto ?

2010-07-13 Thread Rony G. Flatscher
Hello Ariel, On 13.07.2010 19:25, Ariel Constenla-Haile wrote: Hello Rony, On Tuesday 13 July 2010, 13:35, Rony G. Flatscher wrote: Having an impress document, I would like to programmatically print out a presentation in form of handouts, with e.g. 2 slides per page. Tried the English

Re: [api-dev] simpress: printing handouts programmatically, howto ?

2010-07-13 Thread Rony G. Flatscher
with two slides per handout page. ---rony On 13.07.2010 19:52, Rony G. Flatscher wrote: Hello Ariel, On 13.07.2010 19:25, Ariel Constenla-Haile wrote: Hello Rony, On Tuesday 13 July 2010, 13:35, Rony G. Flatscher wrote: Having an impress document, I would like to programmatically

Re: [api-dev] simpress: printing handouts programmatically, howto?

2010-07-13 Thread Rony G. Flatscher
Hi Ariel, On 13.07.2010 22:19, Ariel Constenla-Haile wrote: Hello Rony, On Tuesday 13 July 2010, 14:52, Rony G. Flatscher wrote: The script that I have been trying to tidy up already opened (loadComponentFromurl) the impress component with a PropertyValue of (IsPrintHandout, true

Re: [api-dev] simpress: printing handouts programmatically, howto?

2010-07-13 Thread Rony G. Flatscher
On 13.07.2010 23:43, Rony G. Flatscher wrote: Hi Ariel, On 13.07.2010 22:19, Ariel Constenla-Haile wrote: Hello Rony, On Tuesday 13 July 2010, 14:52, Rony G. Flatscher wrote: The script that I have been trying to tidy up already opened (loadComponentFromurl) the impress

Re: [api-dev] Problem using XPropertySet.setPropertyValue() with an EllipsesShape for properties of UNO type long, when supplying a String object instead

2010-07-12 Thread Rony G. Flatscher
an issue (also RectangleShape seems to behave like EllipsesShape). ---rony On 07/11/10 16:24, Rony G. Flatscher wrote: Hi there, just stumbled over the http://api.openoffice.org/docs/common/ref/com/sun/star/drawing/ConnectorShape; service, which has two UNO long (i.e. java.lang.Integer

[api-dev] Problem using XPropertySet.setPropertyValue() with an EllipsesShape for properties of UNO type long, when supplying a String object instead

2010-07-11 Thread Rony G. Flatscher
Hi there, while tidying up some nutshells, I ran into the following problem: * setting a PropertyValue to a value with a wrong data type will correctly cause an exception; o the Java exception handler will look up the correct property data type and will then set

Re: [api-dev] Problem using XPropertySet.setPropertyValue() with an EllipsesShape for properties of UNO type long, when supplying a String object instead

2010-07-11 Thread Rony G. Flatscher
(with the numbers, 2 and 4). Could it therfore be, that EllipsesShape is at fault? ---rony On 11.07.2010 15:49, Rony G. Flatscher wrote: Hi there, while tidying up some nutshells, I ran into the following problem: * setting a PropertyValue to a value with a wrong data type

[api-dev] Problem using SimpleSystemMail in Windows XP SP3

2010-07-09 Thread Rony G. Flatscher
Hi there, while tidying up some samples, I stumbled over a problem using com.sun.star.system.SimpleSystemMail (cf. http://api.openoffice.org/docs/common/ref/com/sun/star/system/SimpleSystemMail) to send e-mail via an installed e-mail client. Software: * Windows XP with SP3 [the same

Re: [api-dev] Example, snippet for creating and using an XCommandEnvironment, even better, deploying/removing packages via UNO ?

2010-03-22 Thread Rony G. Flatscher
With unopkg things become quite cumbersome. In addition, the Windows version does not allow redirecting stderr and stdout (intending to redirect stderr to nul, but leave stdout). :( Thanks to Jan Holst Jensen (on the d...@openoffice.org list):

Re: [api-dev] Example, snippet for creating and using an XCommandEnvironment, even better, deploying/removing packages via UNO ?

2010-03-21 Thread Rony G. Flatscher
Jürgen: On 21.03.2010 11:06, Juergen Schmidt wrote: On 3/20/10 10:10 PM, Rony G. Flatscher wrote: Hi Ariel, just a little update. Your hints have helped me indeed. However, the XPackageManager and related APIs are *not published*, and AFAICT for a good reason, as digging out pre 2.2 code

[api-dev] Example, snippet for creating and using an XCommandEnvironment, even better, deploying/removing packages via UNO ?

2010-03-20 Thread Rony G. Flatscher
Hi there, it may be me, but I have not found an example/explanation of how to create and use a XCommandEnvironment. Purpose: for an installation script, which is supposed to install/remove a package from OOo, I would like to use /singletons/com.sun.star.deployment.thePackageManagerFactory (which

Re: [api-dev] Example, snippet for creating and using an XCommandEnvironment, even better, deploying/removing packages via UNO ?

2010-03-20 Thread Rony G. Flatscher
Dear Ariel, thank you *very, very* much for your fast response with those excellent pointers, especially: Depending on your purpose, you could try something more modest, like in

Re: [api-dev] Example, snippet for creating and using an XCommandEnvironment, even better, deploying/removing packages via UNO ?

2010-03-20 Thread Rony G. Flatscher
Hi Ariel, just a little update. Your hints have helped me indeed. However, the XPackageManager and related APIs are *not published*, and AFAICT for a good reason, as digging out pre 2.2 code and comparing it with the current set of APIs, they have changed (like an identifier argument for

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-16 Thread Rony G. Flatscher
( Window *pRelativeWindow ); On Monday 15 March 2010, 16:21, Rony G. Flatscher wrote: just a pointer, having gone through the Javadocs over the weekend: if creating an instance of javax.swing.JFrame and pack it, one can use the getInsets() method to retrieve an Inset object which has

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-15 Thread Rony G. Flatscher
+= insets~top + insets~bottom HTH, ---rony On 04.03.2010 02:38, Ariel Constenla-Haile wrote: Hello Rony, On Wednesday 03 March 2010, 14:16, Rony G. Flatscher wrote: You could file a RFE to enhance the com.sun.star.awt.XTopWindow (haha now I see someone [fs in dba33a?] added

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-08 Thread Rony G. Flatscher
On 08.03.2010 13:55, Carsten Driesner wrote: Rony G. Flatscher wrote: Hi Ariel, On 04.03.2010 02:38, Ariel Constenla-Haile wrote: On Wednesday 03 March 2010, 14:16, Rony G. Flatscher wrote: You could file a RFE to enhance the com.sun.star.awt.XTopWindow (haha now I

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-05 Thread Rony G. Flatscher
Hi Ariel, On 04.03.2010 02:38, Ariel Constenla-Haile wrote: On Wednesday 03 March 2010, 14:16, Rony G. Flatscher wrote: You could file a RFE to enhance the com.sun.star.awt.XTopWindow (haha now I see someone [fs in dba33a?] added a com.sun.star.awt.XTopWindow2). But that one

[api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-03 Thread Rony G. Flatscher
Hi there, trying to find a means to learn about the position and size of document windows via UNO (and the ability to move and resize the entire document window). What would be the classes, interfaces to use? Researched and experimented with XFrame (getContainerWindow, getComponentWindow and

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-03 Thread Rony G. Flatscher
Fernand, thank you! Unfortunately, this does not help solve the problem. On 3/3/2010 9:19 AM, Fernand Vanrie wrote: For doing things when opening Formdocs i use 2 BASIC subs, maybe they can help you ? Sub setDocPosSize(Doc As Object , X As long, Y as long , Width as long, Height as long )

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-03 Thread Rony G. Flatscher
Fernand, maybe ContainerWindow.Toolkit can do the job thank you! Tried that already to no avail yesterday; here is what I did: * create an emnpty swriter document (named: oDoc, o get oDoc's XModel - getCurrentController() - getFrame() + get its

Re: [api-dev] How to get document's windows (position, size, moving) via UNO ?

2010-03-03 Thread Rony G. Flatscher
Hi Ariel, On 3/3/2010 4:12 PM, Ariel Constenla-Haile wrote: On Wednesday 03 March 2010, 10:24, Rony G. Flatscher wrote: maybe ContainerWindow.Toolkit can do the job thank you! Tried that already to no avail yesterday; here is what I did: * create an emnpty swriter document

[api-dev] Question ad creating and deploying components, implemented in (dispatchable) scritpting languages ...

2010-01-27 Thread Rony G. Flatscher
Hi there, if this is not the right list, please advise. [This e-mail is directed at dev@api.openoffice.org and d...@openoffice.org, and the Reply-To-field set to d...@openoffice.org.] After peeking around the documentation (mainly developer's guide) currently one is able to create componenents

Re: [api-dev] Question ad creating and deploying components, implemented in (dispatchable) scritpting languages ...

2010-01-27 Thread Rony G. Flatscher
Hi Jürgen, see some comments inline thank you very much! The question: how would one create and implement UNO components in scripting languages that can be deployed via the OOo (Java-based) scripting framework (e.g. JavaScript/Rhino, BeanShell, but also ooRexx or other BSF-scripting

Re: [api-dev] Connecting to OOBean under Linux

2009-11-27 Thread Rony G. Flatscher
Locating a native library loaded by a Java jar is typically done using relative path entries in the jar manifest Class-Path. Resolving a relative path relative to a symlink can obviously have different results, depending on whether or not the symlink is resolved. For Java there seems to be

[api-dev] URL to a new OpenOffice.org Automation Using ooRexx Scripting Language by means of Selected Nutshell Examples by Andrew Pitonyak ...

2009-10-17 Thread Rony G. Flatscher
Hi there, here is the URL to another student's work on some of Andrew Pitonyak's great nutshells (cf. http://www.pitonyak.org/AndrewMacro.odt): http://wi.wu.ac.at/rgf/diplomarbeiten/index.htm#bakk_200906b. As the ooRexx nutshells use the OOo Java bridge they also show which UNO interfaces one

Re: [api-dev] OpenOffice 3.0 and Java 1.5

2009-04-20 Thread Rony G. Flatscher
Hi Cristian, Cristian Fonti wrote: Hi to all, two years ago, i have created an application client-server to editing rtf file with OpenOffice 2.X calling the client into an applet from Oracle E-Business Suite (Oracle Forms). Now i would upgrade to OpenOffice 3.0 but when i'm trying to load

[api-dev] Announcing an Open Office API-Viewer ...

2009-03-09 Thread Rony G. Flatscher
Hi there, as you may know, from time to time students work on assignments related to creating scripts/programs for OOo. One problematic area in OOo programming is gaining an overview of the available APIs and how to use them. Sometimes it is as if one cannot tell the forrest for the trees!

[api-dev] ad UNO.java and the use-case in question ... (Re: [api-dev] Now with OOo Basic called from pure Java ... (Re: [dev] More infos, request for help/hints ... (Re: [api-dev] XDispatchHelper.exe

2009-02-13 Thread Rony G. Flatscher (Apache)
Hi Matthias, I don't know in what context you hit this issue but just in case it helps you I'd like to mention that the scripting framework provides another way to invoke macros besides dispatches. If you're interested, you can find ready to use functions for invoking macros via the scripting

[api-dev] More infos, request for help/hints ... (Re: [api-dev] XDispatchHelper.executeDisptatch(...) - Boolean argument appended by OOo ?

2009-02-12 Thread Rony G. Flatscher (Apache)
Hi there, not sure whether d...@openoffice.org would be the better list for this question, hence cc:'ing it, but reply-to is set to point to dev@api.openoffice.org. Please advise, if another e-mail-list would be better. rony wrote: Hi there, it seems that if using

[api-dev] Runtime issues, if OOo Basic invokes Java, which bootstraps its own connection to OOo ? (Hangs OOo hard, OOo Basic macro enclosed)

2009-02-12 Thread Rony G. Flatscher (Apache)
Hi there, not being sure which e-mail list would be appropriate, I send it to those two that may help the most, but setting the reply-to field to dev@api.openoffice.org to avoid spamming multiple lists. If this is not appropriate please advise. Following use-case: * OOo Basic subroutine

[api-dev] URL to OpenOffice.org: Selected Pitonyak' Nutshells in ooRexx ...

2008-10-21 Thread Rony G. Flatscher
Hi there, here is the URL to another student's work on some of Andrew Pitonyak's great nutshells (cf. http://www.pitonyak.org/AndrewMacro.odt): http://wi.wu-wien.ac.at/rgf/diplomarbeiten/index.html#sem_200810. As the ooRexx nutshells use the OOo Java bridge they also show which UNO interfaces

[api-dev] New Snippets ... (Re: [api-dev] Some interesting OOo macros, many based on Andrew Pitonyaks great Basic examples ...

2008-10-20 Thread Rony G. Flatscher
/Writer.InsertAnAnnotationField.snip The Frysak-snippets are also explained in his Bachelor thesis (see link below). HTH, ---rony Rony G. Flatscher wrote: from time to time students work on creating/transcribing OOo macros for the different document types using an end-user developer (EUD) programming

Re: [api-dev] Get Selected Text in the actual TextDocument

2008-09-30 Thread Rony G. Flatscher
Joel Cordeiro wrote: does anyone could help me about how to get the selected text in the actual TextDocument (Writer)? How does we cast the returned object in the method getCurrentSelection() ? Or there is another way? If possible, a simple example would be really nice.. You could look-up

[api-dev] Some interesting OOo macros, many based on Andrew Pitonyaks great Basic examples ...

2008-09-30 Thread Rony G. Flatscher
Hi there, from time to time students work on creating/transcribing OOo macros for the different document types using an end-user developer (EUD) programming/scripting language named ooRexx. As ooRexx uses the Java bridge, those macros/examples may proof helpful for others, creating macros in

[api-dev] Code snippets, ooRexx ... (Re: [api-dev] automatic chapter numbering

2008-09-24 Thread Rony G. Flatscher
Hi Ariel, first of all, I think you are doing an incredible and admirable job helping people on this list! It is more than remarkable to see how well you have mastered many of the OOo APIs (if not all?) and how helpful you are. Many of the code samples that you supply could serve *very* well as

Re: [api-dev] OOo Java ClassLoader strategies ? (Re: [dev] Saxon9 and OpenOffice 2.4

2008-08-12 Thread Rony G. Flatscher
Hi Tobias, Tobias Krais wrote: Hi Rony, Knowing them would really alleviate a lot of developing problems, where one loses really tons of time/resources to a) figure out that a class loader problem may be in effect and b) trying to find possible solutions. May be this Issue helps

Re: [api-dev] OOo Java ClassLoader strategies ? (Re: [dev] Saxon9 and OpenOffice 2.4

2008-08-12 Thread Rony G. Flatscher
Hi Stephan, Stephan Bergmann wrote: On 08/12/08 01:35, Rony G. Flatscher wrote: Hi there, starting with OOo 2.4 the OOo Java ClassLoader strategies got changed. What are the current rules for OOo 2.4 and OOo 3.x ClassLoaders? (Maybe together with a simple explanation of the problems

[api-dev] OOo Java ClassLoader strategies ? (Re: [dev] Saxon9 and OpenOffice 2.4

2008-08-11 Thread Rony G. Flatscher
Hi there, starting with OOo 2.4 the OOo Java ClassLoader strategies got changed. What are the current rules for OOo 2.4 and OOo 3.x ClassLoaders? (Maybe together with a simple explanation of the problems that have been intended to be solved by those changes. But also, why would the CLASSPATH

Re: [api-dev] Table of Content Hyperlink problem

2008-07-17 Thread Rony G. Flatscher
Hi, not having heard of you yet, but having been able to research a little bit (sitting in meetings since 8:30 in the morning), here is what I did and found out, as it may be of interest of lurkers who are interested how one could approach the problem using the ooRexx-support for UNO/OOo. I

Re: [api-dev] Table of Content Hyperlink problem

2008-07-17 Thread Rony G. Flatscher
Hi, The property LevelFormat is defined in the service com.sun.star.text.BaseIndex. The online documentation is located at http://api.openoffice.org/docs/common/ref/com/sun/star/text/BaseIndex.html, but misses to document the LevelFormat property! :( Sorry, just learned that I overlooked the

Re: [api-dev] Table of Content Hyperlink problem

2008-07-16 Thread Rony G. Flatscher
PropertyValue, which you change three times ). Regards, ---rony Original-Nachricht Datum: Wed, 16 Jul 2008 00:48:39 +0200 Von: Rony G. Flatscher [EMAIL PROTECTED] An: dev@api.openoffice.org Betreff: Re: [api-dev] Table of Content Hyperlink problem Hi, I have

Re: [api-dev] Table of Content Hyperlink problem

2008-07-15 Thread Rony G. Flatscher
Hi, I have created a table of content. Now I would like to hyperlink the entries in the TOC. I found some examples and tried to integrate this code. As I found in the documentation I have to create an arry with the elements which are included in the TOC. Here is my code: -- TOC

[api-dev] Also XScriptProviderFactory ... (Re: [api-dev] OOo ScriptingFramework, XDispatchHelper and stdout/stderr ?

2008-07-11 Thread Rony G. Flatscher
was wondering what the cause could be in order to become able to either fix OOo (if it is a bug there) or to work around a deliberate limitation. A little bit baffled, ---rony P.S.: This occurs on Windows XP, OOo 2.4.1. Rony G. Flatscher wrote: Hi there, running a script from

[api-dev] OOo ScriptingFramework, XDispatchHelper and stdout/stderr ?

2008-07-07 Thread Rony G. Flatscher
Hi there, running a script from the commandline that uses XDispatchHelper (via Java) to dispatch macros via the OOo scripting framework works (dispatching the same macro via the OOo Java based scripting framework twice). Running the same script via OpenOffice (Tools - Macros) causes an

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Rony G. Flatscher
Stephan Bergmann wrote: Rony G. Flatscher wrote: Stephan Bergmann wrote: Rony G. Flatscher wrote: Hi Jim, ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Rony G. Flatscher
Stephan Bergmann wrote: ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int len)| / o works, if using URE to access OOo (i.e. script invoked from

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-03 Thread Rony G. Flatscher
Stephan Bergmann wrote: ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int len)| / o works, if using URE to access OOo (i.e. script invoked from

Re: [api-dev] Improvements for the OOo Scripting Framework (was Re: [api-dev] A recapitulation attempt ...)

2008-07-03 Thread Rony G. Flatscher
Hi Jim, ... P.S.: There exists a version ASF BSF 3.0 (currently in beta), which is a total rewrite from scratch matching Java's 6 javax.script. However, that package can be deployed on Java 1.3 and up. This means that in principle it would be possible to add Java 6 style scripting to OOo, if

Re: [api-dev] Improvements for the OOo Scripting Framework (was Re: [api-dev] A recapitulation attempt ...)

2008-07-03 Thread Rony G. Flatscher
Hi Jim, ... cut ... If one uses BSF 3.0 then one can also use JSR-223 (a.k.a. Java 6 scripting) scripting engines, as long as their Java level does not exceed the installed Java runtime environment. --- Ad BSF 2.4: this is the classic scripting framework, originating in Java 1.1 (!),

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-02 Thread Rony G. Flatscher
Stephan Bergmann wrote: Rony G. Flatscher wrote: Hi Jim, ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int len)| / o works, if using URE to access OOo

Re: [api-dev] A recapitulation attempt ... (Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-07-01 Thread Rony G. Flatscher
Hi Jim, ... * *creating a class on the fly* by creating the necessary byte codes saved in a byte array with the ClassLoader's /|defineClass(String name, byte[] b, int off, int len)| / o works, if using URE to access OOo (i.e. script invoked from outside OOo),

Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-06-30 Thread Rony G. Flatscher
Hi Jim, running a macro which gets dispatched as a macro via the OOo 2.4.1 Java bridge (the Java scripting framework of OOo) will be aborted, if the Java support (Apache BSF, cf. http://jakarta.apache.org/bsf) creates dynamically an event adapter. Running the same program via URE succeeds!

Re: [api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-06-30 Thread Rony G. Flatscher
Hi Jim, If so, how do you dynamically define classes? Are you using dynamic loading via a byte array of bytecodes? And if so in Java 1.1. form? Could you send me the respective code or let me know where it could be downloaded from? Thank you very much for those hints and pointers! (Though,

[api-dev] Class loader problem with OOo 2.4, what may be the cause, how to come by ?

2008-06-28 Thread Rony G. Flatscher
Hi there, running a macro which gets dispatched as a macro via the OOo 2.4.1 Java bridge (the Java scripting framework of OOo) will be aborted, if the Java support (Apache BSF, cf. http://jakarta.apache.org/bsf) creates dynamically an event adapter. Running the same program via URE succeeds!

[api-dev] Java documentation for instantiating new style services? (Re: [api-dev] ScriptURIHelper, a question ad getStorageURI() and libraries

2008-06-18 Thread Rony G. Flatscher
Hi Ariel, just a question looking at your Java code example: ... cut ... xScriptURIHelper = ScriptURIHelper.create( xContext, sLanguage, sLoc ); ... cut ... Where did you find the documentation about this variant of instantiating a new style services? (Was only aware of the

[api-dev] Bug in ScriptURIHelper.getStorageURI() ? ( Re: [api-dev] ScriptURIHelper, a question ad getStorageURI() and libraries

2008-06-18 Thread Rony G. Flatscher
Hi there, maybe one of the questions was buried to deep in this thread. Looking at the following input and output from ScriptURIHelper.getStorageURI() it seems that there is a bug, in that the directory (dubbed library in the scripting framework) which contains the scripts is not resolved

Re: [api-dev] Java documentation for instantiating new style services? (Re: [api-dev] ScriptURIHelper, a question ad getStorageURI() and libraries

2008-06-18 Thread Rony G. Flatscher
Hi Ariel, just a question looking at your Java code example: ... cut .. xScriptURIHelper = ScriptURIHelper.create( xContext,sLanguage, sLoc ); ... cut ... Where did you find the documentation about this variant of instantiating a new style services? mmm ... is it documented

[api-dev] Possibly a stupid question ...

2008-06-17 Thread Rony G. Flatscher
Hi there, could anyone point me to the UNO service that one is supposed to use to convert a fully qualified file to the UNO URI, which could be used from Java and/or C++? [I seem to vaguely remember that such a service existed, but after researching for quite some time, nothing showed up

Re: [api-dev] convertToURL() and convertFromURL() for languages other than OOo Basic [was: Possibly a stupid question ...]

2008-06-17 Thread Rony G. Flatscher
Hi Ariel, Ariel Constenla-haile wrote: Hi Rony, Rony G. Flatscher escribió: could anyone point me to the UNO service that one is supposed to use to convert a fully qualified file to the UNO URI, which could be used from Java and/or C++? com.sun.star.ucb.FileContentProvider

Re: [api-dev] ScriptURIHelper, a question ad getStorageURI() and libraries

2008-06-16 Thread Rony G. Flatscher
Hi Ariel, Ariel Constenla-Haile wrote: [thanks for the flowers on your previous mail :-) ] Ehre, wem Ehre gebührt! :) as we have it in OOo Basic and ooRexx, here is in Java: Thanks, great! the output in Linux/SuSe is Great, thank you for that as well! in all the cases the physical

[api-dev] ScriptURIHelper, a question ad getStorageURI() and libraries ( Re: [api-dev] How to get the canonical path from a script URL, or at least the root directories user and share in a rel

2008-06-15 Thread Rony G. Flatscher
Hi Paolo, Paolo Mantovani wrote: Hi Ariel, Il sabato 14 giugno 2008 22:13:45 Ariel Constenla-Haile ha scritto: [] http://api.openoffice.org/docs/common/ref/com/sun/star/script/provider/Scri ptURIHelper.html for the service description (This service is used to help transform Scripting

[api-dev] How to get the canonical path from a script URL, or at least the root directories user and share in a reliable manner ?

2008-06-14 Thread Rony G. Flatscher
Hi there, have tried to research the service needed for expanding a script URL to its canonical path to no avail. E.g. given the following infos from OOo, how would one be able to get at the canonical path (fully qualified, but shortest operating system dependent path, but the OOo-URL

[api-dev] How to use com.sun.star.ui.dialogs.FolderPicker such that it works as documented ?

2008-06-14 Thread Rony G. Flatscher
Hi there, not sure whether this is the correct group, if not please advise which one would be the correct one. Platform is Windows XP SP 3. The FolderPicker service interface XFolderPicker has a method setDisplayDirectory() which is supposed to do the following according to the docs: Sets

Re: [api-dev] How to use com.sun.star.ui.dialogs.FolderPicker such that it works as documented ?

2008-06-14 Thread Rony G. Flatscher
Hi Cor, thank you for your macros. However, your FolderPicker does *not* work either! (The FilePicker works as reported in my e-mail. It is quite easy to mix-up FolderPicker and FilePicker.) not sure whether this is the correct group, if not please advise which one would be the correct one.

Re: [api-dev] How to use com.sun.star.ui.dialogs.FolderPicker such that it works as documented ?

2008-06-14 Thread Rony G. Flatscher
Hi Thomas, Platform is Windows XP SP 3. [..] However, this does not work at all. Tried all variations (system file path, URL, with and without trailing slash, feeding the directory path exactly like the service returns it). It is a bug of Windows - i guess, you use the windows

Re: [api-dev] How to use com.sun.star.ui.dialogs.FolderPicker such that it works as documented ?

2008-06-14 Thread Rony G. Flatscher
Hi Thomas, Rony G. Flatscher schrieb: [..] Ha, one question in this context that you may by chance be able to answer: how would it be possible to set (query) that setting via a script? Not nessessary to do this. Just use com.sun.star.ui.dialogs.OfficeFolderPicker

Re: [api-dev] How to get the canonical path from a script URL, or at least the root directories user and share in a reliable manner ?

2008-06-14 Thread Rony G. Flatscher
Hi Ariel, you are the best, thank you very much for your help and especially your pointers! Ariel Constenla-Haile wrote: Rony G. Flatscher escribió: Hi there, have tried to research the service needed for expanding a script URL to its canonical path to no avail. E.g. given

Re: [api-dev] XPropertySet , setPropertyValue inconsistencies...

2008-05-23 Thread Rony G. Flatscher
ashok _ wrote: I am trying set the SectionLeftMargin property of an XTextSection : xPropSet.setPropertyValue(SectionLeftMargin, new Long(762)); The above raises an IllegalArgumentException... The section document describes the SectionLeftMargin property as a long datatype..

Re: [api-dev] XPropertySet , setPropertyValue inconsistencies...

2008-05-23 Thread Rony G. Flatscher
P.S.: Here's a listing of com.sun.star.text.TextSection from a student's (Nicole Scholz) work in progress, giving an overview of all members of the service and listing the Java datatypes for properties: *[com.sun.star.text.TextSection

Re: [api-dev] ad Wiki: possible to get whole chapters? ( Re: [api-dev] Embedded Writer ?

2008-05-23 Thread Rony G. Flatscher
Hi Clayton, ccornell - OpenOffice.org wrote: maybe a stupid question: but is there a means available in the OOo Wiki to get renderings of whole chapters (e.g. writer) with all subchapters, such that one could create a hard-copy printout of it (to be read while at vacation, in a restroom,

[api-dev] ad Wiki: possible to get whole chapters? ( Re: [api-dev] Embedded Writer ?

2008-05-22 Thread Rony G. Flatscher
Hi there, maybe a stupid question: but is there a means available in the OOo Wiki to get renderings of whole chapters (e.g. writer) with all subchapters, such that one could create a hard-copy printout of it (to be read while at vacation, in a restroom, etc.) that matches the old

Re: [api-dev] how to convert %20 to ?

2008-05-13 Thread Rony G. Flatscher
Juergen Schmidt wrote: Hi Ariel, Oliver, well i didn't remember this UCB API when i have written my last comment on Olivers posting. But Ariel pointed out that we have this API and that of course this API can be used to convert an URL into a system path. Advantage is that it can be used

Re: [api-dev] Classpath in OO Extensions

2008-01-29 Thread Rony G. Flatscher
I'm pretty sure you can get Spring to work within an OOo extension. It's possible all you need to do is set the context classloader. I don't have time to do that myself at the moment, but I'm interested in hearing about your progress as I might have use for Spring myself. These notes might

Re: [api-dev] Classpath in OO Extensions

2008-01-29 Thread Rony G. Flatscher
Jim White wrote: Rony G. Flatscher wrote: ... Also, there is a group of applications and use cases which become impossible: all classes with are reachable to *any* Java application on a system that are listed on the process' default environment variable CLASSPATH. At the moment is seems

[api-dev] Little paper comparing MS Access and OOo Base giving small examples in OOo Basic, ooRexx and Java

2008-01-25 Thread Rony G. Flatscher
Hi there, there is a new seminar paper that attempts to compare MS Access with OOo Base (2.3). In OOo Base in addtion to the embedded datatbase, a little howto shows how to access MySQL (and by extension any database possessing an ODBC and/or JDBC driver). One thing that may be interesting

[api-dev] Constant group with varying datatypes ?

2007-12-29 Thread Rony G. Flatscher
Hi there, just curious: ran over the definition of com.sun.star.packages.zip.ZipConstants, which lists constant values of *different/varying* (!) types! Is that an error or to be expected? Here's the full list one gets using reflection, indicating that java.lang.Short and java.lang.Integer are

Re: [api-dev] Constant group with varying datatypes ?

2007-12-29 Thread Rony G. Flatscher
Hi Jim, thanks for the links! Jim White wrote: Rony G. Flatscher wrote: just curious: ran over the definition of com.sun.star.packages.zip.ZipConstants, which lists constant values of *different/varying* (!) types! Is that an error or to be expected? ... I'd call it to be expected. I

[api-dev] an ooRexx snippet for your COM/OLE sample page enclosed ... (Re: [api-dev] Help with Assistive Technology

2007-11-21 Thread Rony G. Flatscher
Buenos dias Alexandro, There are some good snippets to connect to UNO through COM: http://www.oooforum.org/forum/viewtopic.phtml?t=9815 You can see how to connect to UNO on all these languages: A1: Visual Basic A2: C (verified both with Visual Studio and gcc) A3: C++ (only short version

Re: [api-dev] Registration of UNO package via Java possible?

2007-09-24 Thread Rony G. Flatscher
Hi Tobias, [...] I tried to implement it and it seems to work partly. I can remove already registered components successfully. Very good! But I have problems registering my Extension. Registering it manually works great, thus I know the Extension is fine, although its an old extension

Re: [api-dev] Registration of UNO package via Java possible?

2007-09-13 Thread Rony G. Flatscher
Tobias Krais wrote: long time ago I had the question whether it is possible to register a UNO package via Java. I wanted to ask, whether something has changed and it is possible now? Yes, it should. Unfortunately, I do not have a Java example but an ooRexx example, which might nevertheless

  1   2   3   >