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

[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

[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

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

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:placeholder text:placeholder-type=text text:description=reference1 you can define this description in the dialog while creating the placeholder. I

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: text:placeholder text:placeholder-type=text text:description=reference1 you can define this description in the dialog while creating the

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

Re: [api-dev] Preventing from document close

2007-02-08 Thread Harald Weyhing
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 intercept .uno:CloseWin

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=39642highlight=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 advance. Harald

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 for you. I do not know

[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

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

[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.

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, but not when

[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] 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.3 and OOoBean. Any help

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

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,null

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 (which

[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)