[api-dev] Navigator visible when opening document in hidden mode

2009-04-14 Thread Tobias Krais
Hi together, I detected a strange behaviour of OpenOffice.org (3.0.1 and older) while doing my unit tests. My tests first open a Global Document (.odm) and thus always open the document Navigator window. After closing the document there are two mysterious behaviours: 1. If I close the Global

Re: [api-dev] Navigator visible when opening document in hidden mode

2009-04-14 Thread Tobias Krais
Hi Carsten, From my point of view point 2 looks like a bug. Point 1 is the defined behavior of docking windows. The visibility state of a docking windows is NOT stored dependent on the application module. Only toolbars and the status bar store their visibility state dependent on the

[api-dev] Getting my own toolbar via Java API

2009-04-13 Thread Tobias Krais
Hi together, I created a extension with a little Add-On toolbar. While I can access the bars OpenOffice.org delivers, e.g. the standard toolbar (private:resource/toolbar/standardbar) I wonder how I can get the toolbar of my extension. Can somebody help me with this? Greetings, Tobias

Re: [api-dev] How to access the Storage of an opened OOo document?

2009-04-04 Thread Tobias Krais
Hi Guiseppe, Now my questions, keeping in mind that at a certain time I need to access the META-INF substorage to manipulate a custom file (read and write). I did not read the whole Thread. Here an Idea, how to get your needed path: -%- // Return value String currentPath = null; //

Re: [api-dev] running extension once

2009-03-11 Thread Tobias Krais
Hi Giancarlo, then this can be rather simple, and does not depend on OOo API, but in how you design your implementation. Another point is: do you want your extension to run only once per frame, or once per OOo main process? As you've been told, you can solve this with a flag; but this

Re: [api-dev] how to know if an extension is already running [edit]

2009-03-10 Thread Tobias Krais
Hi Giancarlo, I think that should exist some sdk method which tells us if the extension has been already activated. Or am I wrong? I think so. The extension is loaded when you start OpenOffice.org. Whether functions included in the extension are running, and when they stop, is up to your

Re: [api-dev] Xstorable.storeToUrl locks soffice.bin

2009-02-23 Thread Tobias Krais
Hi Daniel, Really what I would like to know is how to avoid the hanging soffice.bin. Any hints? I have two ideas: 1. After doing an action like opening, printing, storing or closing, what happens it you let your main Thread sleep for half a second? This avoids some deadlocks in my case. 2. If

Re: [api-dev] Xprintable getPrinter returns a zero length sequence

2009-02-18 Thread Tobias Krais
Hi Daniel, The reason I am trying to do it this way is that we need to print or convert thousands of documents each month and when I create a Model Frame and Controller, OpenOffice inevitablly hangs after a short while, probably something to do with threading in OpenOffice and maybe

Re: [api-dev] Stop update warning

2009-01-16 Thread Tobias Krais
Hi Marian, go to the extra menu - Options - OpenOffice.org - Online Update and set the proper option. Greetings, Tobias Marian Roselló Bennassar schrieb: Dear all, I have a java program created with 2.4 API. The program converts from ODM to PDF and from ODT to HTML. I execute the program

Re: [api-dev] Stop update warning

2009-01-16 Thread Tobias Krais
the command line, keeps asking if I want to update to OpenOffice3. Has anyone seen this problem before? Thanks again, Marian -Original Message- From: Tobias Krais [mailto:tux-s...@design-to-use.de] Sent: 16 January 2009 11:12 To: dev@api.openoffice.org Subject: Re: [api-dev] Stop

Re: [api-dev] open office software

2009-01-08 Thread Tobias Krais
Hi shakunthala, kindly help me in installing the open office software, many a time i downloaded form the net and try to install but it is not happening. Waiting for you reply. this is the wrong list for this question. Please refer to a openoffice.org-users list. Greetings, Tobias

Re: [api-dev] save to an image?

2009-01-06 Thread Tobias Krais
Hi Albert, Um... unless I'm misunderstanding you, don't you lose all the formatting and text styles if you do this? I did not try it. There might be a way you can preserve the formattings. Greetings, Tobias - To unsubscribe,

[api-dev] Bug? Deploying non OXT files via API works

2008-12-29 Thread Tobias Krais
Hi together, I deploy my OXT via Java API. And I created some unit tests. One is for checking failure behaviour: e.g. I try to install a PDF or other non-OXT and it works! Is this correct behaviour? Checking if the PDF file is installed returns false. But the Extension Manager Dialogue shows the

Re: [api-dev] Bug? Deploying non OXT files via API works

2008-12-29 Thread Tobias Krais
at the moment. Juergen Tobias Krais wrote: Hi together, I deploy my OXT via Java API. And I created some unit tests. One is for checking failure behaviour: e.g. I try to install a PDF or other non-OXT and it works! Is this correct behaviour? Checking if the PDF file is installed returns false

[api-dev] Overwrite property when exporting to HTML partly ignored?

2008-12-11 Thread Tobias Krais
Hi together, I am exporting e.g. a presentation document to HTML via API. I set the Overwrite property. The HTML export consists of several files. The main file (presentation.html) is really overwritten while other files (text0.html and img0.jpg) are not overwritten. Instead a message appears

[api-dev] Bug? - Closing OOo will close multiple documents

2008-12-04 Thread Tobias Krais
Hi together, I have the following strange behaviour: 1. Open a document (e.g. an odt file) via API and then close the document (only the document, not the OOo frame). Thus an empty OOo frame remains (in OOo3 the OOo app chooser is loaded in the frame). 2. Open again a document via API. The

Re: [api-dev] How to now the running OO-version

2008-10-21 Thread Tobias Krais
Hi Fernand, BTW any idea how i can get the running OO-version ? here a Java code example - we had this on the list already: -%- /** * Getting the OpenOffice version. * @return String containing the version, e.g. 2.3 or 2.2.1 */ public static

Re: [api-dev] CannotRegisterImplementationException

2008-10-19 Thread Tobias Krais
Hi Marcin, Does anybody have a clue what happens? I have no access to machines that experience the problem but it seems replicable :/ Reinstall of OOo and Java and deleting Java settings doesn't fix the problem. I don't really know where to look for the reason - is it our code or the bug in

Re: [api-dev] Cannot open Open Office

2008-10-17 Thread Tobias Krais
Hi Max, this is the wrong mailinglist for your question. Please go to a users maillingliste in your language. Greetings, Tobias Max Foster schrieb: After downloading Open Office from Disk, I did not find the necessary logo on my Desktop. Instead I found a logo labelleg Upen... 2.4(e..

Re: [api-dev] Where can i find SDK for OpenOffice 3.0?

2008-10-16 Thread Tobias Krais
Hi Ruslan, this was already discussed this week. Please look it up. Greetings, Tobias Ruslan schrieb: Hello. Where can i find SDK for OpenOffice 3.0? on site i can find only SDK for OpenOffice 2.4 Thanks. - To

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-10-14 Thread Tobias Krais
Hi Stephan, as I read in the issue, the problem is solved and there exists a new unowinreg.dll. For I am not familiar with the OOo repos, can you send me the new file? I would like to test it under XP and Vista. Just mailed it directly to Tobias. I just tested it and it works. Thanks for

[api-dev] Problems with Extension Update and Quickstarter

2008-10-09 Thread Tobias Krais
Hi together, I have a problem updating extensions. I have an Extension containing a singleton and want to update it using either the Extension Manager or the unpublished API. If I just update the extension (does'nt matter wheter I use Java or the Extension Manager), the new version is installed,

Re: [api-dev] Problems with Extension Update and Quickstarter

2008-10-09 Thread Tobias Krais
Hi Stephan, If I just update the extension (does'nt matter wheter I use Java or the Extension Manager), the new version is installed, all contents of my extension are activated out of the JAR file containing the application. It is deactivated. This sounds like a bug, so I would suggest you

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-10-08 Thread Tobias Krais
Hi Juergen, Can't you ask the developer responsible for unowinreg.dll about what's changed in it? Maybe this will shed some light on the issue or at least gives you some pointers into the right direction. :-) nothing has changed in the dll. I don't know the internals of the dll file. The

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-10-08 Thread Tobias Krais
Hi Juergen, thanks a lot for your work! Greetings, Tobias Juergen Schmidt schrieb: Tobias Krais wrote: Hi Juergen, Can't you ask the developer responsible for unowinreg.dll about what's changed in it? Maybe this will shed some light on the issue or at least gives you some pointers

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-10-02 Thread Tobias Krais
Hi Juergen, i haven't the exact error message present but it was also a java.lang.UnsatisfiedLinkError ... can't load in a 32 bit env ... or somethinglike that. -%- Exception in thread main java.lang.UnsatisfiedLinkError: C:\Dokumente und Eins tellungen\twc\Lokale

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-10-02 Thread Tobias Krais
Hi together, in May we had a discussion on this topic. Meanwhile I solved my problem due to an other thread on this mailing list. Here is the code I use for getting the printers and its tray names from OOo: -%- import java.util.regex.Matcher; import java.util.regex.Pattern; import

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-09-30 Thread Tobias Krais
Hi Matthias, thanks for the classes. All that's really needed is the classes/ subtree of the 3.0 SDK. We're building our own program with the 2.4 SDK and the classes/ from 3.0 and it bootstraps fine with 2.4 and 3.0. I've uploaded the classes to These classes work for me in Linux with OOo

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-09-30 Thread Tobias Krais
Hi Juergen, you can find a SDK under http://distribution.openoffice.org/mirrors/#mirrors - select one of the mirrors and search under .../contrib/rc/3.0.0rc2 Sorry that it is so complicate and i promise that we will provide an easier mechanism in the near future. I always have the same

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-09-30 Thread Tobias Krais
Hi Matthias, thanks for your answer. Exception in thread main java.lang.UnsatisfiedLinkError: C:\Dokumente und Einstellungen\twc\Lokale Einstellungen\Temp\unowinreg7421.dll: Diese Anwendung konnt e nicht gestartet werden, weil die Anwenungskonfiguration nicht korrekt ist. As you can see

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-09-30 Thread Tobias Krais
Hi Stephan, is that the recently introduced com/sun/star/lib/loader/Loader$Drain.class is not included. my SDK 2.4.1 does not come with this file. I do not have an Release candidate SDK installed (where can I get it?). Since when does the new class come along? The Simple Bootstrap

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-09-29 Thread Tobias Krais
Hi Stephan, One thing that looks wrong with the explicit recipe at http://codesnippets.services.openoffice.org/Office/Office.BootstrapOpenOffice.snip is that the recently introduced com/sun/star/lib/loader/Loader$Drain.class is not included. my SDK 2.4.1 does not come with this file. I do

Re: [api-dev] Migrating simple bootstrap to OOo3

2008-09-29 Thread Tobias Krais
Hi Juergen, you should or better you have to include the bootstrap clue code from the new 3.0 SDK. I think will do so. As I already answered Stephan Bergmanns mail, where can I get the SDK? I used the Debian packages from the download website. But I did not find a SDK included... Or is there

[api-dev] 64-bit deb packages (Was: Using com.sun.star.presentation.Presentation)

2008-09-15 Thread Tobias Krais
Hi Daniel, I'm currently trying to use the API, via Python, to automate the display of slideshows in Impress. I am using the 64-bit deb packages from 'http://download.openoffice.org/3.0beta/' If I try to download these packages, the bouncer tells me The download you have chosen could not be

Re: [api-dev] Error exception

2008-09-14 Thread Tobias Krais
Hi Rudi, I have four calc tables in one program, each has 3000 rows and 30 columns. Close to the end the routine, the system throws an error execption. If I add a meaningless statement the routine ends one statement before. Can somebody help me. Thanks. please give us some code. We cannot

Re: [api-dev] Adding a keyboard shortcut to an uno CommandURL

2008-08-26 Thread Tobias Krais
Hi Carsten, We are working on a solution for extension which is based on XCU files, hopefully that will be available for OOo 3.1. Currently you can only use the UI configuration manager to define a shortcut. For example see the Basic code below which defines a shortcut to a Basic macro.

Re: [api-dev] Howto create CalcAddin and then a .oxt File?

2008-08-22 Thread Tobias Krais
Hi Thomas, we use Eclipse and created an ant file. May be it helps you: -%- ?xml version=1.0 encoding=ISO-8859-1 ? project default=judasextension name=OOo property file=build.properties/ path id=build.classpath fileset dir=${basedir}/

[api-dev] Adding a keyboard shortcut to an uno CommandURL

2008-08-21 Thread Tobias Krais
Hi together, I developed a OpenOffice.org Addon with a new toolbar. Now I would like to add a keyboard shortcut to one of these buttons. When pressing the button, the CommandURL .Judas:Print is called. I did not succeed adding a keyboard shortcut for this CommandURL using the normal dialog in

Re: [api-dev] Using / defining own types in UNOIDL

2008-08-21 Thread Tobias Krais
Hi together, sorry for my silly question. I solved it: [snip] IDL name: XSpringLoader Java Implementation: SpringLaoderImpl [snip] I solved it this way: I created initialize methods for the attributes I need in the XSpringLoader class. Additionally I created some getInitialized...() methods in

Re: [api-dev] Bootstrap and Performance

2008-08-21 Thread Tobias Krais
Hi again, Thus my question: has using this parameter a very positive impact on bootstrap performance? My machine seems to be too fast for testing this... I now found it out: it does not boost the bootstrap. Do you know other ways to speed up the bootstrap mechanism? Greetings, Tobias

Re: [api-dev] Bootstrap and Performance

2008-08-21 Thread Tobias Krais
Hi Juergen, Thus my question: has using this parameter a very positive impact on bootstrap performance? My machine seems to be too fast for testing this... I now found it out: it does not boost the bootstrap. Do you know other ways to speed up the bootstrap mechanism? well the office has

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

2008-08-12 Thread Tobias Krais
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 you:

Re: [api-dev] Getting the path of the unopkg or soffice executable in java

2008-08-11 Thread Tobias Krais
. Tobias Krais-2 wrote: Hi Cor, No Java-info from me. What I have in Basic might give a hint? sService = com.sun.star.deployment.PackageInformationProvider oPackageInfoProvider = GetDefaultContext.getValueByName(/singletons/ + sService) 'you have to create an oxt

Re: [api-dev] Accessing the bridge of a bootstrapped connection

2008-08-05 Thread Tobias Krais
Hi Denis, after starting OpenOffice using bootstrap(), how do you get notified when the connection terminates? Is there a way to get the used bridge so that I could add an event listener? you have to add a terminate listener to the XDesktop object. Greetings, Tobias

Re: [api-dev] Closing problem

2008-07-26 Thread Tobias Krais
Hi Robert, I've got an ugly solution: each second I try to get the storage location of my XComponent. As soon as it failes (a disposed exception is thrown), I know the document was closed. What do you think about this solution? Or do you have any better ideas? I'm not sure if I understood

Re: [api-dev] Closing problem

2008-07-25 Thread Tobias Krais
Hi together, I have a Java application bootstrapping OOo and opening a document. After opening the document, some additional stuff is done. Now I want to wait, until the user closes the document. When the user closes the document, I want OOo to leave an initialized UNO and do some other

[api-dev] Using / defining own types in UNOIDL

2008-07-21 Thread Tobias Krais
Hi together, recently I asked how to define a singleton in OOo. Now my singleton works. It's purpose is to load the Spring Framework and to use it later. Thus I defined an Interface with the needed methods: -%- #ifndef __de_twc_oocom_comp_xspringloader_idl__ #define

Re: [api-dev] Loading Extension on startup of OpenOffice and use it later

2008-07-15 Thread Tobias Krais
Hi Daan, You can try to replace __getServiceFactory with __getComponentFactory as follows: == public static XSingleComponentFactory __getComponentFactory (String implName) { XSingleComponentFactory xSingleComponentFactory = null; if

Re: [api-dev] [SOLVED] Loading Extension on startup of OpenOffice and use it later

2008-07-15 Thread Tobias Krais
Hi Daan, I solved the problem! Here is how I did it: == [...] } else if (implName.equals(SpringLoaderImpl.class.getName())) { xSingleServiceFactory = Factory.createComponentFactory( SpringLoaderImpl.class, new String[]

Re: [api-dev] [SOLVED] com.sun.star.uno.RuntimeException: no service object raising singleton /singletons/de.twc.oocom.comp.theSpringLoader

2008-07-15 Thread Tobias Krais
Hi together again, I created a singleton in Java but when trying to call it (theSpringLoader.get(xComponentContext)), I get following exception: -%- com.sun.star.uno.RuntimeException: no service object raising singleton /singletons/de.twc.oocom.comp.theSpringLoader -%- My

RE: [api-dev] Loading Extension on startup of OpenOffice and use it later

2008-07-14 Thread Tobias Krais
Hi Daan, If the two interfaces have the same methods, why create two separate interfaces at all. The RegistrationClass (JudasComponent in your case) does not need to have an UNO interface, so you can also leave the JudasComponent idl files out (but if you want to define some extra methods on

[api-dev] Closing problem

2008-07-10 Thread Tobias Krais
Hi together, I need some help regarding the following issue. May be it is stupid, but please help anyway... I have a Java application bootstrapping OOo and opening a document. After opening the document, some additional stuff is done. Now I want to wait, until the user closes the document. When

[api-dev] com.sun.star.uno.RuntimeException: no service object raising singleton /singletons/de.twc.oocom.comp.theSpringLoader

2008-07-08 Thread Tobias Krais
Hi together, I created a singleton in Java but when trying to call it (theSpringLoader.get(xComponentContext)), I get following exception: -%- com.sun.star.uno.RuntimeException: no service object raising singleton /singletons/de.twc.oocom.comp.theSpringLoader -%- My singleton is

[api-dev] Using a self created Singleton (WAS: Loading Extension on startup of OpenOffice and use it later)

2008-07-03 Thread Tobias Krais
Hi together, I changed the name of the thread, because I progressed a lot implementing a singleton... After implementing my singleton (see Steps below) I want to retrieve it using the following Java code: -%- mySpringLoader.get(xComponentContext); -%- But I get an exception:

Re: [api-dev] Supress warning dialog for saving sxw files

2008-07-01 Thread Tobias Krais
Hi Mathias, even if I'm a month too late: we also could define a new MediaDescriptor parameter (DisplayFormatWarning). my five Cents: godd idea. Should I create an Issue? Greetings, Tobias - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] Supress warning dialog for saving sxw files

2008-07-01 Thread Tobias Krais
Hi Mathias, Thinking a bit more: you want to suppress this dialog even if the saving is done from the UI? Then the additional parameter won't help. I don't see a good fix for that. Yes, I would like to... I would like to pass this PropertyValue to the document I open via API. When Saving via

Re: [api-dev] Loading Extension on startup of OpenOffice and use it later

2008-06-27 Thread Tobias Krais
Hi Daan, for I am very new to singletons, please allow me some more questions. May be some are silly, but I have a lack of knowledge... 1. You first need to create an UNO interface for your extension (say XConnectionManager) I have already created a UNO interface for my extension: -

Re: [api-dev] Loading Extension on startup of OpenOffice and use it later

2008-06-27 Thread Tobias Krais
Hi Daan, for I am very new to singletons, please allow me some more questions. May be some are silly, but I have a lack of knowledge... Singletons definitely need more documentation, we found out how to register them by looking through the OOo rdb files... I agree. I googled the whole web

Re: [api-dev] Loading Extension on startup of OpenOffice and use it later

2008-06-26 Thread Tobias Krais
Hi Jürgen, I want to implement this and read the link. Thanks for the hints! Are there examples for implementing a job, or even an async job? I did not find one. maybe you should check the related example of the SDK Thanks for the hint. I found an example for the Jobs here:

Re: [api-dev] Loading Extension on startup of OpenOffice and use it later

2008-06-26 Thread Tobias Krais
Hi together, You'll need to register a job that is to be invoked on the 'OnStartApp' event, in this job you can create the connection, and than store it in a singleton service for later use. I start OOo via API. Is it also possible to store the connection from that code in a singelton and

[api-dev] Bootstrap and Performance

2008-06-26 Thread Tobias Krais
Hi together, I have a question about the OOo bootstrap mechanism described in the Dev Guide Wiki (http://wiki.services.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Transparent_Use_of_Office_UNO_Components). There is the possibility of setting the unopath parameter: -%- java

Re: [api-dev] Loading Extension on startup of OpenOffice and use it later

2008-06-24 Thread Tobias Krais
Hi together, You'll need to register a job that is to be invoked on the 'OnStartApp' event, in this job you can create the connection, and than store it in a singleton service for later use. Information about jobs can be found here:

Re: [api-dev] Installing Extensions

2008-05-21 Thread Tobias Krais
Hi Fernand, Do not now how some extensions are installed, but as a user i expierenced that having the Quikckstarter active, sorry: DISables :-) enables the (re)instalation of some extensions but certenaly not all suffers from this problem that is interesting that you seem to experience

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-20 Thread Tobias Krais
Hi Andrew, I thought that the tray names were set in the PPD file (for post script printers anyway). For example, read page 101 of this document http://partners.adobe.com/public/developer/en/ps/5003.PPD_Spec_v4.3.pdf This means OOo seems to read it from the ppd. Won't be platform

[api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Tobias Krais
Hi together, at the moment I encounter a serious problem on Windows OS. I wrote a little OOo dialogue allowing the user to print a document on a certain tray of a printer. Now my Problem: for OOo does not offer an API to get printer tray names, I use the API of Java. It returns me, for example

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Tobias Krais
Hi Cor, I have a Basic extension for the same job, but provide admins with a unhandy tool to copy/paste papertray names to an ini-file. I thought about it. But it was mere a nightmare... What I do know: related issues are 87883 and 87495 Interesting. This would solve the issue. But in

[api-dev] Installing Extensions

2008-05-19 Thread Tobias Krais
Hi together, I don't know, whether I am right in this list, please redirect me, if necessary. I have sometimes problems installing my OOo Extensions. Sometimes the extension is not installed automatically. For fallback, I use two mechanisms: 1. First I try to install via commandline:

Re: [api-dev] Java in Windows and OOo uses different Paper Tray names

2008-05-19 Thread Tobias Krais
Hallo Marc, Did you have a look at: $(user)/user/psprint/psprint.conf This file does not exist here. $(inst)/share/psprint/psprint.conf There is no tray information inside. But thanks for the hint. Greetings, Tobias -

[api-dev] Supress warning dialog for saving sxw files

2008-05-19 Thread Tobias Krais
Hi together, is it possible to supress the warning dialog when saving a sxw file? I would like to supress the dialog via api (Java) for just this one dialog. Any help is appreciated! Greetings, Tobias - To unsubscribe, e-mail:

Re: [api-dev] Getting the path of the unopkg or soffice executable in java

2008-05-16 Thread Tobias Krais
Hi Cor, No Java-info from me. What I have in Basic might give a hint? sService = com.sun.star.deployment.PackageInformationProvider oPackageInfoProvider = GetDefaultContext.getValueByName(/singletons/ + sService) 'you have to create an oxt with a description.xml and a unique

[api-dev] Getting the path of the unopkg or soffice executable in java

2008-05-15 Thread Tobias Krais
Hi together, I need to get the path of the unopkg or soffice executable in Java. Is there a platform independent way to get it? Does an API exist for it? Thanks in advance! Greetings, Tobias - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] Getting the path of the unopkg or soffice executable in java

2008-05-15 Thread Tobias Krais
Hi Stephan, thanks for these hints. Is there any way to do this with OOo 2.x? Greetings, Tobias Stephan Bergmann schrieb: Tobias Krais wrote: Hi together, I need to get the path of the unopkg or soffice executable in Java. Is there a platform independent way to get it? Does an API exist

[api-dev] How to supress the repair document dialogue?

2008-05-15 Thread Tobias Krais
Hi together, I am opening documents using the API. Unfortunately, some documents seem to be defect. Thus OOo wants to repair these documents on startup. How can I automate this via API. The document should be repaired without request and should not continue with a new file representant. Can

Re: [api-dev] Re: [Spam] Re: [api-dev] How to supress the repair document dialogue?

2008-05-15 Thread Tobias Krais
Hi Fernand, try by googling Loading Documents - MediaDescriptor RepairPackage RepairPackage was the right Keyword: http://api.openoffice.org/docs/common/ref/com/sun/star/document/MediaDescriptor.html Adding the PropertyValue this way solved my problem: // In case a document is defect

[api-dev] Adding a shortcut for a transient menu

2008-05-14 Thread Tobias Krais
Hi together, I have a little application adding one transient menu to the main menu bar. Is it possible to assign a keyboard shortcut (like Alt+?) for this menu? Thanks in advance! Greetings, Tobias - To unsubscribe, e-mail:

Re: [api-dev] Adding a shortcut for a transient menu

2008-05-14 Thread Tobias Krais
Hi Carsten, Keyboard shortcuts starting with ALT are normally used to access the menu and menu items, e.g. ALT+F for file menu and afterwards ALT+O for open. These kind of shortcuts can be define by using '~' within the menu label (~Open). If you want to define a real keyboard shortcut (e.g.

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

2008-04-07 Thread Tobias Krais
Hi Ariel, I've done a demo extension using the values you give here, and it DOES generate a toolbar with a custom name. I send it to your mail, check it and let me know if it works. thank you for your great work. As the screenshot you sent me shows, it works for you. But sadly not here. For I

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

2008-04-07 Thread Tobias Krais
Hi Juergen, i don't know the exact state but from my point of view it is a bug or at least a missing feature that the title/name for a toolbar can't be defined in the addons.xcu where the toolbar itself is defined. Same opinion. Should I file an issue? Greetings, Tobias

Re: [api-dev] SystemShellExecute.execute(document) opens always Firefox in Linux

2008-04-07 Thread Tobias Krais
Hi together, I filed an issue for this: http://www.openoffice.org/issues/show_bug.cgi?id=87977 Greetings, Tobias Tobias Krais schrieb: Hi Alexandro, thank you for your mail. Although it did not solve my problem, it was very interesting: - /usr/share/applications/defaults.list This file

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

2008-04-04 Thread Tobias Krais
Hi Ariel, thank you for your help. I tested a lot but had no success... First here the important part of the Addons.xcu: -%- ?xml version='1.0' encoding='UTF-8'? oor:component-data oor:name=Addons oor:package=org.openoffice.Office xmlns:oor=http://openoffice.org/2001/registry;

[api-dev] Naming a Toolbar Add-On

2008-03-31 Thread Tobias Krais
Hi together, I am creating a toolbar Add-On for OOo. Everything works perfect. Now I would like to name the Toolbar itself. Currently it is named by OOo Add-On 1. Can I rename it? Here is my Addon.xcu: -%- ?xml version='1.0' encoding='UTF-8'? oor:component-data oor:name=Addons

Re: [api-dev] SystemShellExecute.execute(document) opens always Firefox in Linux

2008-03-20 Thread Tobias Krais
Hi Alexandro, thank you for your mail. Although it did not solve my problem, it was very interesting: - /usr/share/applications/defaults.list This file contains the applications which cause a double-click success. All Mime types will point to a desktop file. This file contains the line:

Re: [api-dev] SystemShellExecute.execute(document) opens always Firefox in Linux

2008-03-07 Thread Tobias Krais
Hi Alexandro, Check your enviromental variables or your gnome variables. Usually there is a default app that will open for whatever format it doesnt have register. mine is mplayer. Changing that value or registering odf on ur system might change the behavior. I checked it and the

Re: [api-dev] SystemShellExecute.execute(document) opens always Firefox in Linux

2008-02-29 Thread Tobias Krais
Hi Matthias, thanks for your reply. I want to use the SystemShellExecute.execute method to open Documents that OOo can not open. Giving the file location as the parameter aCommand opens the document with the default application in Windows. In Linux my Firefox is opened, which again opens the

Re: [api-dev] xStorable.getLocation() return old MS-DOS style path - How to solve?

2008-02-28 Thread Tobias Krais
Hi together, I have a litte application and need to know the full path of the current document. Thus I use the XStorable interface. Using the xStorable.getLocation() method returns on a Windows XP system (using OOo 2.3): file:/F:/DOKUME1/Tobias/EIGENE1/... Correct would be:

Re: [api-dev] xStorable.getLocation() return old MS-DOS style path - How to solve?

2008-02-22 Thread Tobias Krais
Hi togehter, thanks for your answers. I will reply soon. Currently I have an other severe failure... Greetings, Tobais Tobias Krais schrieb: Hi together, I have a litte application and need to know the full path of the current document. Thus I use the XStorable interface. Using

Re: [api-dev] Hiding buttons from a toolbar

2008-02-22 Thread Tobias Krais
Hi unknown name, I used you code for hide the Save button, now I need to understand which is the better way: a) hide the save, save as, print and export buttons and menu items b) intercept the events we chose a). Here the snippet in Java:

Re: [api-dev] Removing Extension crashed OOo

2008-02-19 Thread Tobias Krais
Hi Stephan. Against which project should I file the issue? The Extension Manager is in the desktop module, part of the Framework project. (You can assign the issue directly to jl, he will happily look into it...) Done: http://www.openoffice.org/issues/show_bug.cgi?id=86220 Greetings,

[api-dev] xStorable.getLocation() return old MS-DOS style path - How to solve?

2008-02-19 Thread Tobias Krais
Hi together, I have a litte application and need to know the full path of the current document. Thus I use the XStorable interface. Using the xStorable.getLocation() method returns on a Windows XP system (using OOo 2.3): file:/F:/DOKUME1/Tobias/EIGENE1/... Correct would be: file:/F:/Dokumente und

[api-dev] Menu refreshes often and deadlocks OOo

2008-02-19 Thread Tobias Krais
Hi Carsten, I think this is a special thing for you... I have an application adding a transient menu to the menubar. This works very like a charm on all systems, out of one: its an Ubuntu Gutsy 32bit (OOo 2.3): the menu refreshes several times and produces often a deadlock! The menu refresh is

[api-dev] Removing Extension crashed OOo

2008-02-14 Thread Tobias Krais
Hi together, I wanted to remove an OOo Extension I wrote and I always get the following memory dump. I even cannot start OOo. Only removing my .openoffice.org2/user/uno_packages/ folder solves the problem. Is this a bug? Greetings, Tobias -%- sudo /usr/lib/openoffice/program/unopkg

Re: [api-dev] Removing Extension crashed OOo

2008-02-14 Thread Tobias Krais
Hi Stephan, Is this a bug? Yes, looks like a bug. I would suggest you file an issue, ideally containing your extension for reproduction. The extension caused the crash just in combination with a certain user profile. Should I add the extension anyway? Against which project should I file

Re: [api-dev] New intermediate version 1.1.1 of the OpenOffice.org API plugin available

2008-02-12 Thread Tobias Krais
Hi Wouter, Installation goes like a charm, building my first client app with it too. Running the app from within NetBeans doesn't work (no office executable found) despite the plugin settings under Tools-Options-Misc. Running the jar with java -jar goes ok again. Is the behaviour with

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-08 Thread Tobias Krais
Hi Wouter, Sorry to bother you again. I haven't created many jars outisde IDEs... I don't mind. Thats the purpose of mailing lists... - Main-Class: com.sun.star.lib.loader.Loader Name: com/sun/star/lib/loader/Locader.class Application-Class:

Re: [api-dev] Error message trying to bootstrap OpenOffcie

2008-02-08 Thread Tobias Krais
Hi Wouter, Well, I use NetBeans 6.0 and it's kinda hard to change the default manifest file that is being generated by NetBeans. So what I have done so far is to let NetBeans create the jar, then unpack it, copy over all the com and win classes from the SDK, put in a custom manifest file

Re: [api-dev] Using Loader with windows does not work

2008-02-08 Thread Tobias Krais
Hi Christian, does this code snippet on http://codesnippets.services.openoffice.org/Office/Office.BootstrapOpenOffice.snip only work with the OO-sdk installed? No. Greetings, Tobias - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] Using Loader with windows does not work

2008-02-08 Thread Tobias Krais
Hi Christian, When I try to use the jar-file on windows it says: C:\java -jar Test.jar Exception in thread main java.lang.UnsatisfiedLinkError: no unowinreg in java.library.path The unowinreg.dll is within the jar in the project folder, so the location is /blub/unowinreg.dll. Does it

Re: [api-dev] Using Loader with windows does not work

2008-02-07 Thread Tobias Krais
Hi Christian, Can anyone help me how to solve this problem? Can I just somehow include this unowinreg.dll somewhere within the program or is there another way to work this out? try following the instructions of this OOo Snippet:

[api-dev] Enabling a XButton

2008-02-07 Thread Tobias Krais
Hi together, I use Java and I created a dialog with a disabled XButton. Because of some user interaction I now want to enable this button. But I don't know how to do this. Can somebody help me? Greetings, Tobias - To

Re: [api-dev] Enabling a XButton

2008-02-07 Thread Tobias Krais
Hi again, I use Java and I created a dialog with a disabled XButton. Because of some user interaction I now want to enable this button. But I don't know how to do this. Can somebody help me? I found a solution: -%- XControlContainer xControlCont = ...; Object objectEditButton =

  1   2   3   4   >