[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

[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

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

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:

Re: [api-dev] XNumberFormatPreviewer

2010-07-07 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 intended

Re: [api-dev] XDrawPageSupplier

2010-07-07 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't

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

[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

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

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

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 button

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 to

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] 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

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

[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=devmsgNo=19765 ) A new hidden window of the xTextDocument has been loaded: XModel xModel = (XModel) xTextDocument;

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

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)

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

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 great

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

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:

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

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 pet@refofd.verwalt-berlin.de: 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

[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 pet@refofd.verwalt-berlin.de: 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

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 Peter

[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
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: IMG SRC=../running_html_6afb021b.png... Instead of the current directory where the image

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] 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

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()) seem

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 textrange may

[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

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

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

2008-06-10 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 )

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 in any

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 Eberlein schrieb

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 PROTECTED

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. (However, I

[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

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: ReferenceXTextEmbeddedObject object(fac-createInstance(com.sun.star.text.TextEmbeddedObject), UNO_QUERY); Using XTextContent

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: ReferenceXTextEmbeddedObject object(fac-createInstance(com.sun.star.text.TextEmbeddedObject

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

Re: [api-dev] XChartDataChangeEventListener in Writer

2007-07-03 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

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

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

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

2007-04-24 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?

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

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

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

2007-03-12 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 fitting

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

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

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.5view=markup tells you that

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,

[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

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

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(

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] 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 can

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] 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] 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] 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

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] 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

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 interface

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 strategy

[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] (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]

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

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, Laurent Godard schrieb: Hi Peter thanks for nyour response I assume you're talking about a dialog (or a form?). yes a dialog 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.

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

Re: [api-dev] How to apply a paragraph style to a XTextTableCursor?

2005-12-22 Thread Peter Eberlein
Hi Stephan, (missing my last mail from yesterday (may be moderated), no wonder if it comes twice) Stephan Wunderlich schrieb: Hi Peter, in a former StarOffice version the following worked properly: oTableCursor = oTable.createCursorByCellName(oTable.CellNames(0)) oTableCursor.ParaStyleName

Re: [api-dev] How to apply a paragraph style to a XTextTableCursor?

2005-12-22 Thread Peter Eberlein
Stephan Wunderlich schrieb: Hi Peter, (made my first UNO-steps with StarOffice 5.2..., no comment please ;) ) I liked that office version ... eventhough not many seemed to be convinced of the Do Everything in one place ... but that is a totally different topic now ;-) ... and you had

[api-dev] How to apply a paragraph style to a XTextTableCursor?

2005-12-20 Thread Peter Eberlein
Hi, in a former StarOffice version the following worked properly: oTableCursor = oTable.createCursorByCellName(oTable.CellNames(0)) oTableCursor.ParaStyleName = MyStyle Contrary to a normal XTextCursor this does not work in 2.0 anymore. According to the api the service

[api-dev] [Fwd: [dba-dev] StarBasic: connecting to Oracle via css.sdbc.DriverManager]

2005-09-26 Thread Peter Eberlein
Betreff: [dba-dev] StarBasic: connecting to Oracle via css.sdbc.DriverManager Datum: Mon, 19 Sep 2005 11:59:29 +0200 Von: Peter Eberlein [EMAIL PROTECTED] Antwort an: dev@dba.openoffice.org An: dev@dba.openoffice.org Hi, connecting to a non-registered Oracle DB with the DriverManager fails (Null

[api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Peter Eberlein
Hi, asking on dev-dba, Frank redirected me to this list. I want to automate the Java-Settings during and after the installation. So, if a JDBC-Driver is required, the users have to add a classpath via GUI and restart the application. Is there a way to automate this via scripting? There's no

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-27 Thread Peter Eberlein
Christian Junker schrieb: Hi Peter, - dialog pops up and receiving focus event is fired, the assigned function is called That's it, thank you (shame on me). All the other things were clear. Peter - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-25 Thread Peter Eberlein
Christian Junker schrieb: and I forgot: Once the macro has finsihed you call endExecute() on the dialog and it should return to the document again. Christian, when the dialog is executed and shown on the screen, the macro stops (sleeps) at this point until the user triggers any event (pushs a

Re: [api-dev] small problem with starbasic in OOo 1.1.x

2005-02-24 Thread Peter Eberlein
Hi Laurent, hi Christian, Laurent Godard schrieb: Hi, I can only agree with Laurent, the second way by locking the controllers would be the best option, I think. That way you can be very sure that your macro gets executed from beginning to end without any disturbance. for me this does not work