Re: [api-dev] Strange Problem with OOoBean 2.1.0, SuSE 9.2 (Solved)

2007-08-17 Thread Harald Weyhing
, so OOo waited forever to get a lock on some config files. Cheers Harald Harald Weyhing wrote: Hi all, first of all, I apologize, because this does not seem to be a problem with OOo, but merely with the configuration of our linux system. Still, you might have a hint. We use the OOoBean

Re: [api-dev] Quick Question

2007-08-08 Thread Harald Weyhing
XPrintable xPrintable = (XPrintable)UnoRuntime.queryInterface( XPrintable.class, xDoc); PropertyValue[] printerDesc = new PropertyValue[1]; printerDesc[0] = new PropertyValue(); printerDesc[0].Name = "Name"; printerDesc[0].Value = sPrinterName; xPrintable.setPrinter(printerDesc); // set pr

[api-dev] Strange Problem with OOoBean 2.1.0, SuSE 9.2

2007-07-31 Thread Harald Weyhing
Hi all, first of all, I apologize, because this does not seem to be a problem with OOo, but merely with the configuration of our linux system. Still, you might have a hint. We use the OOoBean within a Java application, connecting through a named pipe. When the connection is started OOo won't

[api-dev] OOoBean in C++

2007-03-14 Thread Harald Weyhing
Hi all, I wonder if someone has tried or succeeded in implementing an OOoBean in C++. Any comments or suggestions would be greatly appreciated Thank you Cheers Harald - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

Re: [api-dev] Extend an Existing OpenOffice-Service

2007-03-08 Thread Harald Weyhing
Jan Füssel schrieb: Hi Jan, what do you excatly want to do? can you give a quick usage scenario? I am not really sure what you are trying to do. Cheers Harald - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comm

Re: [api-dev] Extend an Existing OpenOffice-Service

2007-03-07 Thread Harald Weyhing
Jan Füssel schrieb: Hi Jan, in content.xml of a document containing placeholders you will find an attribute "text:description" in every placeholder: you can define this description in the dialog while creating the placeholder. I don't know how you can get this information through th

Re: [api-dev] Extend an Existing OpenOffice-Service

2007-03-07 Thread Harald Weyhing
Hi Jan, in content.xml of a document containing placeholders you will find an attribute "text:description" in every placeholder: text:description="reference1"> you can define this description in the dialog while creating the placeholder. I don't know how you can get this information

Re: [api-dev] Preventing from document close

2007-02-08 Thread Harald Weyhing
Well, this should give you a start: http://www.oooforum.org/forum/viewtopic.phtml?t=39642&highlight=intercept+uno Cheers Harald Jordi Sanchez schrieb: Thank you Harald, Could you give me some example (code snippet) or link to it for intercepting this "action". Thanks in ad

Re: [api-dev] Preventing from document close

2007-02-08 Thread Harald Weyhing
l i could come back to you during the weekend. Cheers Harald Jordi Sanchez schrieb: Thank you Harald, Could you give me some example (code snippet) or link to it for intercepting this "action". Thanks in advance. Harald Weyhing wrote: Hi Jordi, since OOo 2.1.0 you can interce

Re: [api-dev] Preventing from document close

2007-02-08 Thread Harald Weyhing
Hi Jordi, since OOo 2.1.0 you can intercept .uno:CloseWin to prevent a click on the x-closer icon to close your document. Good luck Harald Jordi Sanchez schrieb: Hi all, I'm suffering a problem for handling properly the document's closing action. As I've seen, I'm not the first suffering

Re: [api-dev] officebean : NoRestore Property and document Recovery

2007-01-23 Thread Harald Weyhing
Andreas Schlüns schrieb: Harald Weyhing schrieb: The property "NoRestore" is unknwon and so not supported by loadComponentFromURL(). The only way to disable recovery is using of the command line parameter "-norestore" on starting the office. But that can be a problem fo

Re: [api-dev] officebean : NoRestore Property and document Recovery

2007-01-08 Thread Harald Weyhing
Andreas Schlüns schrieb: news.gmane.org schrieb: Hello, I'm using the OfficeBean in a java project in windows, and I'd like to disable document recovery after a crash for some documents. I've tried to use the NoRestore Property, with no success. If I close the application after loading the do

Re: [api-dev] Update Indexes during load, OOoBean OOo 2.0.4 (solved)

2006-11-09 Thread Harald Weyhing
() REM refresh every index while (iIndexCount > 0) iIndexCount = iIndexCount - 1 oDocIndexes.getByIndex(iIndexCount).update() Wend End Sub Cheers Harald Harald Weyhing wrote: Hi all, In our application we generate documents via XSLT and template documents. In one case there

[api-dev] Update Indexes during load, OOoBean OOo 2.0.4

2006-11-09 Thread Harald Weyhing
Hi all, In our application we generate documents via XSLT and template documents. In one case there is a table of contents that needs to get updated during loading the document. We try to achieve this with a basic macro in the document connected to the load event: sub VerzeichnisAktualisiere

Re: [api-dev] HoTo disable "Close Document" icon

2006-10-19 Thread Harald Weyhing
Hi Andreas, Carsten or others that might know about OOo 2.1. Can you tell when OOo 2.1 is planned to be released? Something like "end of next year" would be enough for me at this time. Thanks for your help Cheers Harald Andreas Schlüns wrote: Harald Weyhing schrieb: Carste

[api-dev] Disable navigator (OOoBean, OpenOffice 2.0.3)

2006-09-21 Thread Harald Weyhing
Hi all, I need to disable the navigator what can be done easily for menus, toolbars and F5 by modifying the user configuration. Actually double click on the page number in the status bar also starts up the navigator. I tried to intercept .uno:navigator but that does not help in this case. Th

Re: [api-dev] HoTo disable "Close Document" icon

2006-09-14 Thread Harald Weyhing
Hi Andreas, Andreas Schlüns wrote: Harald Weyhing schrieb: Carsten Driesner wrote: Harald Weyhing wrote: Hi everybody, I need to disable or better remove the small "x" like icon on the upper right. I tried to intercept .uno.CloseDoc, but this will only intercepts Ctrl-W, bu

Re: [api-dev] HoTo disable "Close Document" icon

2006-09-13 Thread Harald Weyhing
Carsten Driesner wrote: Harald Weyhing wrote: Hi everybody, I need to disable or better remove the small "x" like icon on the upper right. I tried to intercept .uno.CloseDoc, but this will only intercepts Ctrl-W, but not when you click the "x". I am using OOo 2.0

[api-dev] HoTo disable "Close Document" icon

2006-09-13 Thread Harald Weyhing
Hi everybody, I need to disable or better remove the small "x" like icon on the upper right. I tried to intercept .uno.CloseDoc, but this will only intercepts Ctrl-W, but not when you click the "x". I am using OOo 2.0.3 and OOoBean. Any help would be greatly appreciated. Thanks Harald ---

Re: [api-dev]OOeBean, clear document handling, changing, closing ?

2006-08-11 Thread Harald Weyhing
Hallo Erik, Erik Zühlke wrote: Joachim Lingner schrieb: Maybe you should post you questions in english AND german because the english translation is really hard to understand. Joachim I write into German, in hope me someone understand:), a machine English translation is to be found dow

Re: [api-dev] OOo 2.0.3 (Linux & Windows), OOoBean, printing does not work when doc loaded with loadFromByteArray()

2006-07-27 Thread Harald Weyhing
Andreas Schlüns wrote: Mathias Bauer wrote: Harald Weyhing wrote: Hi all, I still can't print with OOo 2.0.3 using the OOoBean, when documents are loaded via loadFromByteArray(). There is no error message, printing silently fails. A workaround for that is calling storeAsURL(url,nul

Re: [api-dev] OOo 2.0.3 (Linux & Windows), OOoBean, printing does not work when doc loaded with loadFromByteArray()

2006-07-26 Thread Harald Weyhing
Mathias Bauer wrote: Harald Weyhing wrote: Hi all, I still can't print with OOo 2.0.3 using the OOoBean, when documents are loaded via loadFromByteArray(). There is no error message, printing silently fails. A workaround for that is calling storeAsURL(url,null) on the document (whi

Re: [api-dev] basic question to connect OpenOffice in Java Application

2006-07-25 Thread Harald Weyhing
Hi Erik, as far as I understand your problem, you want to integrate OpenOffice in your SWT-Application using the OOoBean. That's not really difficult, but you need to know some basics about how the bean works. Basically there are two methods: loadFromURL and loadFromByteArray that will start

[api-dev] OOo 2.0.3 (Linux & Windows), OOoBean, printing does not work when doc loaded with loadFromByteArray()

2006-07-14 Thread Harald Weyhing
Hi all, I still can't print with OOo 2.0.3 using the OOoBean, when documents are loaded via loadFromByteArray(). There is no error message, printing silently fails. A workaround for that is calling storeAsURL(url,null) on the document (which is a com.sun.star.comp.beans.OfficeDocument) befor