[api-dev] Event OnPrepareUnload and CloseVetoException

2011-08-05 Thread Peter Eberlein
Hi, according to mba in http://openoffice.org/projects/api/lists/dev/archive/2006-09/message/209 it seems, that you can't prevent the document from closing by throwing a CloseVetoException, if once a OnPrepareUnload-event is fired. Is this still true for OpenOffice 3.2? Is there another way

[api-dev] Re: XJob freezes documents

2011-06-03 Thread Peter Eberlein
Am 01.06.2011 20:30, schrieb Oliver Brinzing: Hi Peter, but the document is frozen (no cursor, no scrolling, etc.) Working with oo is possible with other documents furthermore. this sounds pretty much like my problem we were talking about some weeks ago: i print a document with my custom prin

[api-dev] XJob freezes documents

2011-06-01 Thread Peter Eberlein
Hi, me migrated from OpenOffice 2.2 to 3.2 and have trouble with textdocuments. The scenario is the following: A user action is intercepted and a new document from a template created. This OnNew event triggers a synced XJob. Some user interactions (via OLE-bridge) have to be done, after all the

[api-dev] Re: Where to plaid for PDF as graphic format

2011-04-15 Thread Peter Eberlein
Hi Fernand, Am 14.04.2011 14:14, schrieb Fernand Vanrie: Where an how can i plaid to have PDF as graphic format, like Jpg, Tif etc So we can place a PDF as a picture in our OO documents api is not the appropriate list... Nevertheless, you can insert pdf either as plugin or as object (at

[api-dev] Missing property UseConcordanceFile in service css.text.DocumentIndex?

2011-04-14 Thread Peter Eberlein
Hi, if you use a concordance file, store and reload the writer document, then you can't update the index anymore (http://openoffice.org/bugzilla/show_bug.cgi?id=61096 UNCONFIRMED, btw). As os wrote in http://openoffice.org/bugzilla/show_bug.cgi?id=57008#c25, there's a missing "automatic" attr

[api-dev] UNO AWT TabPageContainer issue 113362

2011-03-10 Thread Peter Eberlein
Hi, the Basic code in http://eis.services.openoffice.org/EIS2/cws.ShowCWS?Path=DEV300%2Ftabcontrol doesn't work for me in m101 (General Error). Can anybody confirm? Regards Peter -- - To unsubscribe send email to dev-unsubscr.

[api-dev] Re: XTextSection set background image API Changes ?

2011-03-09 Thread Peter Eberlein
Am 09.03.2011 15:44, schrieb underscore: I was setting the background image as follows : (xSectionProps is the XPropertySet of a XTextSection ) Object bitmapTable = createInstance("com.sun.star.drawing.BitmapTable"); XNameContainer nameContainer = ooQueryInterface.XNameContainer(bitma

Re: [api-dev] Re: I can see the method/property which can not be found ...

2011-02-11 Thread Peter Eberlein
Am 10.02.2011 16:40, schrieb Andreas Säger: Am 10.02.2011 15:30, Peter Eberlein wrote: Just tested with 3.2 and m95 (3.4), no problems. Which OS, please? WinXP SP 2 Peter - To unsubscribe, e-mail: dev-unsubscr

Re: [api-dev] I can see the method/property which can not be found ...

2011-02-10 Thread Peter Eberlein
Hi Andreas, Am 09.02.2011 14:55, schrieb Andreas Säger: Hello API experts, Initial problem: first post in http://www.oooforum.org/forum/viewtopic.phtml?t=45971 Satisfactory solution as of Nov. 2006: http://www.oooforum.org/forum/viewtopic.phtml?t=47340 Today's problem (versions 3.3 and 2.4.3):

Re: [api-dev] problem of determining the location in the document

2011-01-28 Thread Peter Eberlein
Hi Zbigniew, Am 26.01.2011 10:28, schrieb Zbigniew Szot: Hello I have problem in finding relation between placement of a text section and a text range . Things are easy when section and range are placed in main document, and get complicated when at least one of them is "nested" inside text table

[api-dev] RedlinePortion and XTransferable

2011-01-11 Thread Peter Eberlein
Hi, is there any chance to transfer redline portions to another (new) document without getting lost the tracked changes? XTransferable seems not appropriate here. Regards Peter - To unsubscribe, e-mail: dev-unsubscr...@api

Re: [api-dev] XDrawPageSupplier

2010-07-06 Thread Peter Eberlein
Peter Eberlein schrieb: Am 01.07.2010 14:15, schrieb Daniel Rentz: Hi, Peter Eberlein schrieb: the interface is marked as deprecated, though many examples in the wiki refer to it. So which is the recommended approach to access controls in a calc sheet? The XDrawPagesSupplier isn&#

Re: [api-dev] XNumberFormatPreviewer

2010-07-06 Thread Peter Eberlein
Am 06.07.2010 15:03, schrieb Niklas Nebel: On 07/06/10 14:06, Peter Eberlein wrote: XNumberFormatPreviewer seems only to work, if the XNumberFormatsSupplier is attached to an (unused) XNumberFormatter, otherwise a RuntimeException is thrown. Is this the intended behavior? Yes, it's int

[api-dev] XNumberFormatPreviewer

2010-07-06 Thread Peter Eberlein
Hi, XNumberFormatPreviewer seems only to work, if the XNumberFormatsSupplier is attached to an (unused) XNumberFormatter, otherwise a RuntimeException is thrown. Is this the intended behavior? Object formatter = xMcf.createInstanceWithContext("com.sun.star.util.NumberFormatter",this.contex

Re: [api-dev] XDrawPageSupplier

2010-07-01 Thread Peter Eberlein
Am 01.07.2010 14:15, schrieb Daniel Rentz: Hi, Peter Eberlein schrieb: the interface is marked as deprecated, though many examples in the wiki refer to it. So which is the recommended approach to access controls in a calc sheet? The XDrawPagesSupplier isn't supported by the sheet, on

[api-dev] XDrawPageSupplier

2010-07-01 Thread Peter Eberlein
Hi, the interface is marked as deprecated, though many examples in the wiki refer to it. So which is the recommended approach to access controls in a calc sheet? The XDrawPagesSupplier isn't supported by the sheet, only by the spreadsheet document. Regards Peter

[api-dev] Problem with XCellRangesQuery, queryEmptyCells() and XEnumeration

2010-06-09 Thread Peter Eberlein
Hi, though xSheetCellRanges.getCount() gives the correct answer, xEnumeration.hasMoreElements() is false: XCellRangesQuery xCellRangesQuery = (XCellRangesQuery) UnoRuntime.queryInterface(XCellRangesQuery.class,xRange); XSheetCellRanges xSheetCellRanges = xCellRangesQuery.queryEmptyCells();

Re: [api-dev] Base: Disable navigator save button

2010-05-20 Thread Peter Eberlein
Hi, Am 20.05.2010 14:07, schrieb Fernand Vanrie: Johannes Öberg wrote: Thanks! What is the call I make to perform the same action as when pushing the Save Record button? Starts making a "save" macro ("record" the save action with the macro recorder or write your own basic code) and place a but

Re: [api-dev] Sending email to multiple recipients

2010-04-22 Thread Peter Eberlein
Hi Fernand, Am 21.04.2010 10:14, schrieb Fernand Vanrie: Mathias , THanks for the reply, i know how to use the "Windows" stuf to sen emails from Basic-code, but it complicate things as OO is not aware if Windows has effective send the message... ) I was told that the OO-developpers choose not t

Re: [api-dev] read odt from database

2010-03-10 Thread Peter Eberlein
Hi Fernand, Fernand Vanrie schrieb: Peter, Drew, Just wondering: can we directly store parts of a Writterdoc ( text + underlyingOOformating) --without the html workaround-- into a database and instert it back with the original OOformating ? Storing of course yes (in Basic too): Select the p

Re: [api-dev] read odt from database

2010-03-10 Thread Peter Eberlein
Hi Fernand, seems I have to stand corrected, never tried the pipe stuff before. Am 10.03.2010 12:33, schrieb Fernand Vanrie: i forgot to fill the oTextOutputStream.with the content of a Dbases record oTextOutputStream.writeString(oRowset.Columns(nc).String Peter , Not so sure I use a technic

Re: [api-dev] read odt from database

2010-03-10 Thread Peter Eberlein
Hi, Am 10.03.2010 11:16, schrieb Fernand Vanrie: rf, I think it depends on the complexity off the content, I use a technic, where we store some simple formated text as "html" in a datbase and then import this "thml" coded text in a exiting OO writerdoc. The OO html import filterrebuild the text

Re: [api-dev] XComponentLoader: XModel as PropertyValue now crashes the office

2010-02-12 Thread Peter Eberlein
Hi Jürgen, Am 12.02.2010 07:08, schrieb Juergen Schmidt: i can confirm this problem also, please submit an 3.2.1 issue for this problem. Juergen Done, http://www.openoffice.org/issues/show_bug.cgi?id=109183 Peter - To unsubs

[api-dev] XComponentLoader: XModel as PropertyValue now crashes the office

2010-02-11 Thread Peter Eberlein
Hi, the following snippet has worked in OpenOffice 2 (and IIRC in an early OpenOffice 3 320m). (mba in http://api.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=19765 ) A new hidden window of the xTextDocument has been loaded: XModel xModel = (XModel) xTextDocument;

Re: [api-dev] How to handle XInterface objects in Basic

2010-01-06 Thread Peter Eberlein
Hi Niklas, Niklas Nebel schrieb: On 01/06/10 16:03, Peter Eberlein wrote: the following snippet (I left out the callback functions for the listeners) gives an error: xSaxParser = CreateUnoListener("SaxParser","com.sun.star.xml.sax.XParser") xDocumentHandler = CreateUno

[api-dev] How to handle XInterface objects in Basic

2010-01-06 Thread Peter Eberlein
Hi, the following snippet (I left out the callback functions for the listeners) gives an error: Sub SaxTest() Dim aInputSource, xSaxParser, xDocumentHandler on local Error Goto ErrorHandler aInputSource = CreateUnoStruct("com.sun.star.xml.sax.InputSource") xSaxParser = CreateUnoListener("Sa

Re: [api-dev] using css.awt.AsyncCallback in OOoBasic

2009-12-18 Thread Peter Eberlein
Hi Laurent, Am 18.12.2009 15:27, schrieb Laurent Godard: Hi Franck thanks a lot it works, at least i can define a callback :) btw, seems to me that i can not depend in the callback on a public variable change public myDummy Sub Main oASync = CreateUnoService("com.sun.star.awt.AsyncCallback") o

Re: [api-dev] Re[api-dev] freshing Dialog

2009-11-02 Thread Peter Eberlein
Hi Vil, Vil schrieb: Hi, short question: I want to change the amount of input (editFields) in a Dialog after a listerner hits on an event. The change of the dialogs model works ok, but the effect of appearing new edit fields in a dialog only shows up if I use a roadmapitem to go to another step

Re: [api-dev] Long time operations - What's the best way?

2009-09-15 Thread Peter Eberlein
Hi Perry, Perry Werneck schrieb: Hi, My code is in C++, but, it is designed to be called from a OOo Basic macro. The netork stuff is running in a separated thread but it would be nice to the starbasic developers if I can implement some kind of "waitfor" method. The "wait" call mencioned is a gr

Re: [api-dev] MS document header formatting not retained in OO

2009-08-24 Thread Peter Eberlein
Hi Wei Min Am 24.08.2009 10:01, schrieb Wei Min Teo: > > I am trying to open and read the different headers of different pages on a > document in order to sort them. So far, my code works fine for openoffice > files, i'm able to access each page and get their relevant pagestyle names to > get

Re: [api-dev] How to find containing row of an XTextRange

2009-04-02 Thread Peter Eberlein
Hi Devin, Devin Bayer schrieb: Peter Eberlein wrote: The xTextRange has a property by name "TextTable". Query for it. If the XTextTable is null, then your xTextRange is outside a table, otherwise inside and you get your XTextTable interface. Thanks Peter and Fernard: The

Re: [api-dev] How to find containing row of an XTextRange

2009-04-01 Thread Peter Eberlein
Hi Devin, Devin Bayer schrieb: Hello. I'm using pyuno and writer documents. I want to duplicate rows that contain certain words. Currently I'm doing this by looking at each cell and searching it for the text, ignoring results past the end of the cell's XTextRange. This would be a lot easie

Re: [api-dev] Replacement for XHeaderFooter

2009-03-10 Thread Peter Eberlein
Peter Eberlein schrieb: Hi, the interface above is deprecated. So how can I evaluate, if a XTextCursor is in a header resp. footer? for the records answering myself: use (Basic) EqualUnoObjects(cursor.getText(),myPageStyle.HeaderText

[api-dev] Replacement for XHeaderFooter

2009-03-09 Thread Peter Eberlein
Hi, the interface above is deprecated. So how can I evaluate, if a XTextCursor is in a header resp. footer? Regards Peter - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h..

Re: [api-dev] Re: [Fwd: [udk-dev] Sorting reference marks by position in Writer document]

2009-03-04 Thread Peter Eberlein
Morten Omholt Alver schrieb: There is only one problem remaining - when trying the technique of using a hidden window, it seems like I lose connection to OpenOffice when calling the xComponentLoader.loadComponentFromURL("private:factory/swriter", "_blank", 0, props); method. I Acquired the xC

Re: [api-dev] Re: [Fwd: [udk-dev] Sorting reference marks by position in Writer document]

2009-03-03 Thread Peter Eberlein
Morten Omholt Alver schrieb: So, when I find a citation within a footnote, what I'm actually looking for is the location reference to this footnote in the text. So, xFootnote.getAnchor() should do that, Peter - To unsub

Re: [api-dev] Re: [Fwd: [udk-dev] Sorting reference marks by position in Writer document]

2009-03-03 Thread Peter Eberlein
Hi Morten, Morten Omholt Alver schrieb: 2009/3/2 Peter Eberlein : Hi Morten, Morten Omholt Alver schrieb: You can can query for the XText of the XTextRange of your citation. If xText.supportsService("com.sun.star.text.FootNote") then you're in a footer. The field has a prope

[api-dev] Re: [Fwd: [udk-dev] Sorting reference marks by position in Writer document]

2009-03-02 Thread Peter Eberlein
Hi Morten, Morten Omholt Alver schrieb: 2009/2/26 Peter Eberlein : I got a similar problem some time ago and solved it as follows (in Java): The XTextViewCursor jumps to all relevant XTextRanges. The found positions(X,Y) and the page number can you store in a new class, which implements the

[api-dev] [Fwd: [udk-dev] Sorting reference marks by position in Writer document]

2009-02-25 Thread Peter Eberlein
Hi Morten, first, the api or the d...@sw mailing lists seems to be a better place to ask, so I took the freedom to f'up. Morten Omholt Alver schrieb: Hi, I am working on a plugin for interfacing JabRef and OpenOffice. This involves inserting citation markers in a Writer text (representing a

Re: [api-dev] Merging XTextTables

2009-02-16 Thread Peter Eberlein
Peter Eberlein schrieb: Hi, seems there's no API for the subject, am I right? Regards Peter obviously this was too short... If you have two consecutive XTextTables in writer, you can merge them with the context menu. Is this possible with API too? Regards

[api-dev] Merging XTextTables

2009-02-12 Thread Peter Eberlein
Hi, seems there's no API for the subject, am I right? Regards Peter - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-mail: dev-h...@api.openoffice.org

Re: [api-dev] Export to HTML, wrong IMG path

2009-01-14 Thread Peter Eberlein
/Documentation/DevGuide/Config/Updating_Configuration_Data Regards Peter -Original Message- From: Peter Eberlein [mailto:pet@refofd.verwalt-berlin.de] Sent: 14 January 2009 13:11 To: dev@api.openoffice.org Subject: Re: [api-dev] Export to HTML, wrong IMG path Hi, Marian Roselló

Re: [api-dev] Export to HTML, wrong IMG path

2009-01-14 Thread Peter Eberlein
Hi, Marian Roselló Bennassar schrieb: Hi everyone, I have java program to convert my odt files to HTML, it seems to work only all the references to images are wrong they point to the parent directory: Tools/Options/Load-Save/General/save URLs relativ? Regards Peter ---

Re: [api-dev] How to retireve coordinate (x,y) information of text in odt file?

2008-12-10 Thread Peter Eberlein
Arthur van Dorp schrieb: Hi Peter Peter Eberlein wrote: Hi, Shreyas Ganesh schrieb: Hi, I have a word document which I have converted to ODT format, using java converter api (jodconverter). I want to retrieve the text, from content.xml and also the positional information of the different

Re: [api-dev] How to retireve coordinate (x,y) information of text in odt file?

2008-12-09 Thread Peter Eberlein
Hi, Shreyas Ganesh schrieb: Hi, I have a word document which I have converted to ODT format, using java converter api (jodconverter). I want to retrieve the text, from content.xml and also the positional information of the different words in the document. I am able to retrieve the text but the co

Re: [api-dev] How to fill the Beamer (datbrowser) with SQL statement

2008-11-26 Thread Peter Eberlein
Hi Fernand, Fernand Vanrie schrieb: Frank, You made my day :-) it works like a charme Sub Test1 frame1 = thiscomponent.CurrentController.Frame Dim aProps(5) as New com.sun.star.beans.PropertyValue aProps(0).Name = "DataSourceName" aProps(0).Value = "Bibliography" aProp

Re: [api-dev] Using an Xframe as a parent for a Java dialog

2008-11-21 Thread Peter Eberlein
Hi, From: Jan Füssel [mailto:[EMAIL PROTECTED] Sent: Friday, October 31, 2008 11:57 AM To: dev@api.openoffice.org Subject: Re: [api-dev] Using an Xframe as a parent for a Java dialog Hi, i've currently a solution to open a modless java-dialog, which need SWT and only works on a windows machin

Re: [api-dev] How to get the XModifyBroadcaster from Cell/CellRange/Table]

2008-11-10 Thread Peter Eberlein
Hi, Agnisys schrieb: Hi, %< All I need is to detect that a cell value in a table has changed in a Writer document. For that case it would be enough to use the com.sun.star.chart.XChartDataChangeEventListener, but be aware of issue http://qa.openoffice.org/issues/show_bug.cgi?id=79127.

Re: [api-dev] Re: User cannot see document Custom Properties

2008-10-16 Thread Peter Eberlein
Fernand Vanrie schrieb: Bernard, Michael Maybe this situation is not so unfortunate at all. Now I uses my own doc info's to store stuff via the API who better can not been changed by the user :-). So I proposes that there is in the future an option where we can chooche when storing via the AP

Re: [api-dev] Developing an OOo3 extension: start-up difficulties

2008-10-08 Thread Peter Eberlein
Hi Fernand, Fernand Vanrie schrieb: OK: when using OObasic the openend odt file is "thiscomponent" and access to custom-userfields is done like: oDocument = thiscomponent oDocuInfo = oDocument.DocumentInfo() the Service http://api.openoffice.org/docs/common/ref/com/sun/star/d

Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-23 Thread Peter Eberlein
Hi Mathias, That's the easy part - call setComponent(). The problem is creating it, we currently don't have an API for that. You can do the following: a frame implements the XComponentLoader interface and so you can call the loadComponentFromURL() method on it. If you pass the document as "Model

Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-09 Thread Peter Eberlein
Hi Mathias, Mathias Bauer schrieb: Peter Eberlein wrote: Hi Fernand, Fernand Vanrie schrieb: Peter Eberlein wrote: Hi, I have to scan an XTextDocument for some patterns and to sort the found XTextRanges by their visual representation. So the XViewCursor's point (getPosition()) see

Re: [api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-02 Thread Peter Eberlein
Hi Fernand, Fernand Vanrie schrieb: Peter Eberlein wrote: Hi, I have to scan an XTextDocument for some patterns and to sort the found XTextRanges by their visual representation. So the XViewCursor's point (getPosition()) seem the only way to do this (because the anchor of the textrang

[api-dev] How to avoid screenupdating without loosing the XViewCursors position

2008-07-01 Thread Peter Eberlein
Hi, I have to scan an XTextDocument for some patterns and to sort the found XTextRanges by their visual representation. So the XViewCursor's point (getPosition()) seem the only way to do this (because the anchor of the textrange may differ). For the user the moving of the cursor is annoying.

Re: [api-dev] How to detect the read/write status of a XTextRange

2008-06-24 Thread Peter Eberlein
Hi Oliver, Oliver Specht schrieb: Hi, In other words: I want to get the result of the right corner of the status bar, when the XTextViewCursor is placed in a read-only area. There is no direct access to the protection/readonly status using the API. It shouldn't be too hard to add this at leas

[api-dev] How to detect the read/write status of a XTextRange

2008-06-23 Thread Peter Eberlein
Hi, in a writer document you have many possibilities to protect a XTextRange against writing, one example: Section -> ChildSection -> TextFrame -> TextTable -> Cell You can protect one of the sections, the content of the frame, a cell in the table..., and you can nest and combine many of th

Re: [api-dev] python: use 2 different fonts in a cell in TextTable

2008-06-09 Thread Peter Eberlein
Hi Martin, Martin Klar schrieb: Hi there, How can I use 2 different fonts in a TextTable? I tried: table = doc.createInstance( "com.sun.star.text.TextTable" ) tableText = table.getCellByName( cellName ) cursor.setPropertyValue( "CharFontName", "Webdings" ) tableText.setString(" r ") cursor.se

Re: [api-dev] XMailMessage

2008-03-25 Thread Peter Eberlein
For the records: http://www.openoffice.org/issues/show_bug.cgi?id=87023 Peter Eberlein schrieb: So, just a little reminder, because tra didn't react: Perhaps Jürgen as the project lead can answer Stephans question, if the documented service com.sun.star.mail.MailMessage is available i

Re: [api-dev] XMailMessage

2008-03-11 Thread Peter Eberlein
So, just a little reminder, because tra didn't react: Perhaps Jürgen as the project lead can answer Stephans question, if the documented service com.sun.star.mail.MailMessage is available in any OpenOffice.org installation, if not, what's the reason? Regards Peter Peter Eberle

Re: [api-dev] XMailMessage (was: how to create instances of new-style Services with non-default constructors)

2008-03-04 Thread Peter Eberlein
Tino, any comments are appreciated. Regards Peter Stephan Bergmann schrieb: Peter Eberlein wrote: Hi Stephan, Stephan Bergmann schrieb: Assuming your code is in Java, then XMailMessage xMailMessage = com.sun.star.mail.MailMessage.create( xComponentContext, "[EMAIL PROT

Re: [api-dev] how to create instances of new-style Services with non-default constructors

2008-02-28 Thread Peter Eberlein
Hi Stephan, Stephan Bergmann schrieb: Assuming your code is in Java, then XMailMessage xMailMessage = com.sun.star.mail.MailMessage.create( xComponentContext, "[EMAIL PROTECTED]", "[EMAIL PROTECTED]", "Subject", new TextTransferable("Body")); would be the right way to do it. (Howe

[api-dev] how to create instances of new-style Services with non-default constructors

2008-02-27 Thread Peter Eberlein
Hi, I stumbled over Services, which (so I guess) have to be created with the ServiceManager.createInstanceWithArguments(AndContext)() method. for example: http://api.openoffice.org/docs/common/ref/com/sun/star/mail/MailMessage.html So the following should work: Object[] args = new Object[4]

Re: [api-dev] Re: [NOT SOLVED] [api-dev] [C++] TextEmbeddedObject for inserting spreadsheet into swriter

2008-02-11 Thread Peter Eberlein
Peter Eberlein schrieb: Hi Andre, Andre Heine schrieb: Ok, the next problem... Am Montag, 11. Februar 2008 15:37 schrieb Andre Heine: Am Montag, 11. Februar 2008 13:41 schrieb Andre Heine: Reference object(fac->createInstance("com.sun.star.text.TextEmbeddedObject"), UNO_Q

Re: [api-dev] Re: [NOT SOLVED] [api-dev] [C++] TextEmbeddedObject for inserting spreadsheet into swriter

2008-02-11 Thread Peter Eberlein
Hi Andre, Andre Heine schrieb: Ok, the next problem... Am Montag, 11. Februar 2008 15:37 schrieb Andre Heine: Am Montag, 11. Februar 2008 13:41 schrieb Andre Heine: Reference object(fac->createInstance("com.sun.star.text.TextEmbeddedObject"), UNO_QUERY); Using XTextContent for XTextEmbeddedO

[api-dev] css.ucb.InteractiveAugmentedIOException

2007-12-05 Thread Peter Eberlein
Hi, copying files with the SimpleFileAccess-Service works fine with oo-documents. With pdf-files I got the exception in the header (general error during transfer command). This occurs, when source and destination are on a W2K-Server. On my local drive (WinXP and oo 2.2) I have no problems. An

Re: [api-dev] XChartDataChangeEventListener in Writer

2007-07-02 Thread Peter Eberlein
Peter Eberlein schrieb: Hi, like in Calc, a XCellRange in a writer table supports the XChartData Interface. Contrary to Calc, I don't get notified, when I add a ChartDataChangeEventListener to a range and a value changes. filed http://qa.openoffice.org/issues/show_bug.cgi?id=79127 for

[api-dev] XChartDataChangeEventListener in Writer

2007-06-29 Thread Peter Eberlein
Hi, like in Calc, a XCellRange in a writer table supports the XChartData Interface. Contrary to Calc, I don't get notified, when I add a ChartDataChangeEventListener to a range and a value changes. Any hints about this? Regards Peter -

Re: [api-dev] Waiting for a document load and for a form load

2007-05-15 Thread Peter Eberlein
Hi Mathias Mathias Röllig schrieb: (2) How can i test that the form is fully loaded? No idea, sorry. What does that mean? Try to create an UNO-Listener, http://api.openoffice.org/docs/common/ref/com/sun/star/form/XLoadListener.html I tried this, but it doesn't work if i do nothing wrong. S

Re: [api-dev] Waiting for a document load and for a form load

2007-05-15 Thread Peter Eberlein
Hi, Mathias Bauer schrieb: (2) How can i test that the form is fully loaded? No idea, sorry. What does that mean? Try to create an UNO-Listener, http://api.openoffice.org/docs/common/ref/com/sun/star/form/XLoadListener.html Peter --

[api-dev] XDocumentInsertable and masterfields.user

2007-04-27 Thread Peter Eberlein
Hi, in doc1 there's a Masterfield.User with name "name1". in doc 2 there's a userfield with the same name, but another content. If I insert doc2 into doc1 with insertDocumentFromURL(), then the content of name1 in doc1 gets overwritten by the value of the field of doc2. Is this behavior inten

Re: [api-dev] Calc: setting a date format column (JAVA)

2007-04-23 Thread Peter Eberlein
Anh-Tuan Le schrieb: Ok, so I got this... xCell.setFormula("=DATE(1980;12;24;)"); // for example but what I'd like to do is have a date forumat column that looks like Apr 20, 2007 4:19:00 PM Anyone have any ideas? http://api.openoffice.org/docs/DevelopersGuide/OfficeDev/OfficeDev.xhtml#1_2

Re: [api-dev] msgbox window width

2007-03-25 Thread Peter Eberlein
Hi Bernard, hi Bart, Bart Aimar schrieb: Bernard Marcelly ha scritto: Hi Bernard As an alternative, there is another way to display (quickly) an help text ? did you read this one: http://wiki.services.openoffice.org/wiki/Framework/WorkInProgress/Easy_To_Use_Message_Boxes? There is a Basi

Re: [api-dev] copy Paragraph content with markup (java api)

2007-03-20 Thread Peter Eberlein
Hi Dominique, Dominique De Munck schrieb: Hi, Thx for the lead. However, I don't find any indication how to use this XTransferableSupplier interface. Unfortunatly, the "currentController" does not support this interface, as you thought in the following thread: ok, let's try: If you have sel

Re: [api-dev] copy Paragraph content with markup (java api)

2007-03-11 Thread Peter Eberlein
Hi Dominique, Dominique De Munck schrieb: Hi list, I 'm looping through a document, and I want to "merge" some paragraphs, ie past the contents of a paragraph in anothor. I want to keep the markup (italic, bold etc). maybe the com.sun.star.datatransfer.XTransferableSupplier is the best fittin

[api-dev] unpublished interface css.awt.XSimpleTabController

2007-01-10 Thread Peter Eberlein
Hi, comparing to VBA, tabs are a very missed feature in basic. Which services do support this interface, so that it can be used in a programming way? Or is it something different at all? Regards Peter - To unsubscribe, e-ma

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-18 Thread Peter Eberlein
Carsten Driesner schrieb: Could please write me (owner must be set to "cd") an issue as enhancement to distinguish between custom and custom document toolbars. This would allow me to support state information for custom document toolbars. Done, http://qa.openoffice.org/issues/show_bug.cgi?id=

Re: [api-dev] XGraphicProvider and service MediaProperties

2006-12-18 Thread Peter Eberlein
Hi Frank, Frank Schönheit - Sun Microsystems Germany schrieb: The good news is that the online documentation is not up-to-date: http://api.openoffice.org/source/browse/api/offapi/com/sun/star/graphic/MediaProperties.idl?rev=1.5&view=markup tells you that "private:graphicrepository/sw/imglst/lc20

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-18 Thread Peter Eberlein
Hi Carsten, Carsten Driesner schrieb: That's the drawback of the current solution and not possible. You can set a title for the document toolbar, but nothing more. The users have to change the settings via "Tools - Options" themselves. You meant "tools-customize" We discussed the current so

Re: [api-dev] toolbar in Basic, showing icons and/or text

2006-12-15 Thread Peter Eberlein
Hi Carsten, thanks for your fast answer and the example. Carsten Driesner schrieb: ... 2. Can be accessed via the window state configuration. You have to create the service "com.sun.star.ui.WindowStateConfiguration" and retrieve the window states for a specific module (via getByName( ModuleId

[api-dev] XGraphicProvider and service MediaProperties

2006-12-15 Thread Peter Eberlein
Hi, The MediaProperties allow private URLs with the syntax (e.g.) "private:resource/projectshortname/imagelist/12345". It seems, that this does not refer to the zip-archive, because (e.g.) "private:resource/sw/imagelist/lc20556.png" or "private:resource/sw/imglst/lc20556.png" are no valid URLs

[api-dev] toolbar in Basic, showing icons and/or text

2006-12-15 Thread Peter Eberlein
Hi, Carsten showed an example of inserting a toolbar with StarBasic. If it is extended with a graphic, the UI has the possibilities to show icon, text or icon and text. How to handle this with api? Inspecting the settings of the toolbar, I found a property "Style" as a PropertyValue, but this

Re: Re: [api-dev] Copy/insert a DialogLibrary into a WriterDocument

2006-12-06 Thread Peter Eberlein
Hi Andreas, Andreas Bregas schrieb: <..snip..> Documents support a property "BasicLibraries" referencing the document's Basic library container. But a corresponding "DialogLibraries" property is missing. The reason is that there's nearly no use in accessing dia- log libraries by API because the

Re: [api-dev] Need a odc chart document

2006-11-16 Thread Peter Eberlein
Hi Tobias, Tobias Krais schrieb: Hi Matthias, I know this is not the right list, but I need a OpenOffice Chart document (application name: com.sun.star.chart.ChartDocument) with the extension ".odc". How can I create such a document? Or can you send me one per PM? The answer to this problem:

Re: [api-dev] DevGuide, was:Input lists UNO code

2006-11-16 Thread Peter Eberlein
Hi Oliver, Oliver Specht - Sun Germany -Hamburg schrieb: Hi, you probably need the service "com.sun.star.text.TextField.DropDown"(see below). I don't know why it's not listed in the Developers Guide. Thanks for the fast response. Yes, the DevGuide is not up to date. For another example see

Re: [api-dev] Input lists UNO code

2006-11-16 Thread Peter Eberlein
Hi Alamo, Tobias Krais schrieb: Hi Alamo, I'm trying to insert an Input List through XDispatchHelper... Does anyone know which ".uno:..." code is it? I looked for it in a macro and it says it's ".uno:InsertField", but that's the Input Field, isn't it? I don't know the answer. But here you

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-12 Thread Peter Eberlein
Oliver Brinzing schrieb: Hi Peter, this will copy the outline numbering ... :-) %< --- %< Thx Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] how to copy textsection from a writer document to another ?

2006-11-08 Thread Peter Eberlein
Hi Oliver, Oliver Brinzing schrieb: what we do is to copy the user input text section from a document to a draft/copy template for printing purpose only ... the drafts/copyies have different page styles ... how do you handle the problem, when the user works with headlines and has made change

Re: [api-dev] Announcement of the new Object Inspector

2006-09-22 Thread Peter Eberlein
Hi, Bjoern Milcke schrieb: Hi Berend, That's really a cool tool! Very good work. You can use this tool for getting familiar with the structure of OOo documents, but also for debugging. The first real UNO debugger available :-) For Basic, I would say no. Many people like Bernards XRay. An

Re: [api-dev] DataArray magic

2006-09-20 Thread Peter Eberlein
Hi Laurent, Laurent Godard schrieb: Hi Peter btw: oRange = ThisComponent.Sheets(0).GetCellRangeByName("a1:a3") oData = oRange.GetDataArray() msgBox uBound(oData()) ' gives me 2. If I substitute the range with "a1:c1" the uBound of the array gives me 0. Any ideas? yes you'll have a variant

Re: [api-dev] Calc : merge a cell range

2006-09-20 Thread Peter Eberlein
Hi Niklas, Niklas Nebel schrieb: Laurent Godard wrote: merging a cell range is quite easy activeSheet = thiscomponent.currentController.activeSheet range = activeSheet.getCellRangeByName("A3:B3") range.merge(true) btw, how can i merge also the datas of all merged cells so that they are displa

Re: [api-dev] Searching Tables or Cell Ranges in the Writer

2006-07-12 Thread Peter Eberlein
Hi Kent, Kent Gibson schrieb: Is there any way to do a search using XSearchable in writer and set the scope to something other than the document, for example a table or a cell range? I am pretty sure it works in calc with cell ranges, but I can't get it work in the writer for anything but a doc

Re: [api-dev] com.sun.star.mail

2006-04-18 Thread Peter Eberlein
Hi Alex, Alex Thurgood schrieb: Peter Eberlein wrote: Hi, I can connect to SMTP (thanks to ms777) with the following snippet, but found no way to instanciate a com.sun.star.mail.MailMessage (CreateUNOService("com.sun.star.mail.MailMessage") gives me a null-object). Is this

Re: [api-dev] com.sun.star.mail

2006-04-07 Thread Peter Eberlein
Hi Mathias, Mathias Bauer schrieb: Peter Eberlein wrote: Hi, I would like to use the subject module for mailing, because com.sun.star.system.SimpleSystemMail has some restrictions (no access to body). IIRC there is no implementation for this service in OOo at all. OOo's strateg

Re: [api-dev] OOO 2.0.2: macro for bulk or single conversion of odt to pdf?

2006-04-05 Thread Peter Eberlein
Hi, Tom Schindl schrieb: Hi, if you don't show us the error you are getting we are lost. But if need a example of how one can convert documents this codesnippet does exactly that. You simply have to code the loop fetching all documents in a given directory. http://codesnippets.services.openoff

[api-dev] com.sun.star.mail

2006-04-04 Thread Peter Eberlein
Hi, I would like to use the subject module for mailing, because com.sun.star.system.SimpleSystemMail has some restrictions (no access to body). I can connect to SMTP (thanks to ms777) with the following snippet, but found no way to instanciate a com.sun.star.mail.MailMessage (CreateUNOServi

Re: [api-dev] How to move the CurrentController from a button to a xTextRange

2006-03-22 Thread Peter Eberlein
Hi Steffen, thx for the fast answer, Peter Steffen Grund schrieb: Hi Peter, add the following lines to the end of the macro that is executed when the button is pressed: xWindow = ThisComponent.currentController.Frame.ContainerWindow xWindow.setFocus() This sets the focus back to the docum

RE: [api-dev] (Java) Problem with PDF export

2006-03-22 Thread Peter Eberlein
Hi Andreas, loading the document in hidden modus is not possible, when exporting to pdf. The issue is fixed in 2.0.3. Peter -Original Message-From: Andreas Bröker [mailto:[EMAIL PROTECTED]Sent: Wednesday, March 22, 2006 1:00 PMTo: dev@api.openoffice.orgSubject: [api-dev] (Jav

[api-dev] How to move the CurrentController from a button to a xTextRange

2006-03-22 Thread Peter Eberlein
Hi, to reproduce the problem: Create a text document with two pages; on page one a xTextRange and on page two a push button which triggers the following snippet: oViewCursor.GotoRange(xTextRange, False) 'or 'oDoc.CurrentController.Select(xTextRange) oViewCursor.SetVisible(true) The xTextRange is

Re: [api-dev] Create an index in a writer document with the link

2006-03-06 Thread Peter Eberlein
Hi, Cristian, Cristian Fonti schrieb: Hi to all, I see in the developer's guide how create an index in a writer document with the JAVA API. i would add at every page number in the index (or eventually in the title) a hyperlink to the right section.. I think you have to use the PropertyValue

Re: [api-dev] UnoListBoxControl & MouseEvent & Scrollbar bug ?

2006-02-08 Thread Peter Eberlein
Hi Laurent, I assume you're talking about a dialog (or a form?). Why don't you use the event-register in the property-dialog and catch the click & doubleclick-events in a function? Scrolling is not triggered there. Peter Laurent Godard schrieb: Hi all in a macro i define a clik mouse even

  1   2   >