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

2010-04-22 Thread Oliver Specht
Hi, On 22.04.2010 15:03, Peter Eberlein wrote: The API has not only the XSimpleMailMessage interface, but a complete module com.sun.star.mail, where you find the (unpublished) XMailMessage interface with access to the body. Nobody could tell me how to work with this, so I suppose a legal

Re: [api-dev] Could not save document as PDF (java, openoffice 3)

2009-02-07 Thread Oliver Specht
Михаил Кечинов wrote: Hello. I trying to open document and export it to PDF. [ JAVA, OPENOFFICE 3 ] In samples i seen, that I need to use method storeAsUrl with property FilterName = writer_pdf_Export I using this code: --- ... XStorable xStorable = (XStorable)

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

2008-06-23 Thread Oliver Specht
Hi, Peter Eberlein wrote: 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

Re: [api-dev] full name of autotext?

2008-02-15 Thread Oliver Specht - Sun Germany - ham02 - Hamburg
Cor Nouws wrote: Hi, Am I right if the API only supports the short name of autotext and not the full name? The short name is Shortcut in the UI, and retrieved via ElementNames of the autotextcategory in the API. The full name is Name in the UI. Hi, the XAutoTextGroup has a method

Re: [api-dev] Inserting text inside a bookmark, even in a textTable Cell

2008-02-04 Thread Oliver Specht - Sun Germany - ham02 - Hamburg
Hi, Boris Ratak wrote: Hi, My problem is that this method doesn't work for a bookmark that is INSIDE a textTable Cell, because I can't use a TextCursor inside a Cell (the gotoRange(anchor) bugs). Cell cursors are not complex enough to handle ranges inside a cell and if I enumerate the

Re: [api-dev] .uno:InsertDoc API equivalent ?

2007-11-09 Thread Oliver Specht - Sun Germany - ham02 - Hamburg
Ariel Constenla-Haile wrote: but the code proves the DevGuide wrong :-( The code in sw/source/core/unocore/unoobj2.cxx only asks for the properties mentioned above. Please file an issue about that and assign it to me (os). is this a defect-issue (the Dev's Guide is wrong), or a RFE (the

Re: [api-dev] Cursor Position during DD operation

2007-11-09 Thread Oliver Specht
Sascha Jensen wrote: Hi again, since i got no answer: is my question hard to understand (bad formulation) or is there simply no possibility to achieve this. This is what I do to insert text on drop. But it is always inserted at the wrong cursor position. It is inserted where the cursor has

Re: [api-dev] .uno:InsertDoc API equivalent ?

2007-11-08 Thread Oliver Specht - Sun Germany - ham02 - Hamburg
Hi, Laurent Godard wrote: Hi again there is the interface XDocumentInsertable, implemented at the TextCursor. It has a method insertDocumentFromURL( string, sequencePropertyValue). The property names are FilterName, FilterOption and Password. reading dev Guide it seems that any

Re: [api-dev] scripting mailmerge

2007-06-13 Thread Oliver Specht - Sun Germany -Hamburg
Christian Andersson wrote: Is it possible to script an mailmerge without having to use an registered datasource? from what I can see I can attach a non registered datasource to the mailmerge, but the databasefields need an named datasource. are my assumptions correct? (I'm scripting this in

Re: [api-dev] finding header and footer xtext for each page

2007-05-04 Thread Oliver Specht
ian_mcr123 wrote: Hi, I'm working on an export filter so I enumerate all paragraphs in a document and then process each paragraph. This works for the xtext content of each paragraph. I now need to find the xtext for the header and footer. I experimented with the following - I check that

Re: [api-dev] text table cells with multiple columns?

2007-04-16 Thread Oliver Specht
Anh-Tuan Le wrote: Hi, I am working with an XTextTable and I'm able to create all the cells individually. But I would like to do is to create cells that multiple column spans. Is this possible? I looked through as many mailings as I could but could not find an answer. Hi, what you need is

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

2007-03-07 Thread Oliver Specht
Hi Jan Füssel wrote: I don't want a second service with an equal name. i need a component, that has the same functionality like the other fields in OOo. In other words: i want an own component, which i can insert in an textdoc via the insertTextContent-method out of a basic macro. this

Re: [api-dev] getting header's/footer's text from a text document

2007-02-13 Thread Oliver Specht - Sun Germany -Hamburg
Hi, I should have taken a look into the code _before_ I answered your question:-( The getString method creates a cursor at first which brings us back to your initial problem. See issue 7747 for details. Regards, Oliver Jordi Sanchez wrote: Thanks for your quick reply Oliver, But I'm

Re: [api-dev] Registering an XMailMergeListener - possible at all?

2007-02-12 Thread Oliver Specht
Christian Lohmaier wrote: Hi *, Before I waste my time again I'd rather ask here: Is it possible at all to register a mail-merge Listener? My first attempts failed. I don't get any events/the method notifyMailMergeEvent of my listener never is called. Hi, at least the code

Re: [api-dev] getting header's/footer's text from a text document

2007-02-12 Thread Oliver Specht
Jordi Sanchez wrote: Hi all, I don't know if I'm doing something wrong but I'm trying to retrieve the text from the header / footer of a text document and I get a runtime exception. I've seen that if there is no tables in the header/footer I have no problem for retrieving the text contents but

Re: [api-dev] Search Replace with attributes

2006-12-20 Thread Oliver Specht
Matt S. wrote: Hello: I was wondering if someone might be able to shed some light on attribute searching. I want to search and replace based on a character style. However I must be missing something in the code below, option 1 does not work but option 2 does work. The documentation

Re: [api-dev] Input lists UNO code

2006-11-16 Thread Oliver Specht - Sun Germany -Hamburg
Peter Eberlein wrote: 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

Re: [api-dev] Equivalent of Tools / Update / Update All in Writer

2006-11-15 Thread Oliver Specht - Sun Germany -Hamburg
Mirko Nasato wrote: Hi all, does anybody know if the following Java code does *exactly* the same thing as invoking Tools / Update / Update All from the Writer menu? XComponent document = desktop.loadComponentFromURL(...); XRefreshable refreshable = (XRefreshable)

Re: [api-dev] Problems with User text fields

2006-11-15 Thread Oliver Specht - Sun Germany -Hamburg
Juergen Schmidt wrote: Hi Cedric, Cedric Bosdonnat wrote: Hi all, I'm developping a macro using and updating User Text fields in a document template. I have two options to create the document: 1 - File New Documents and Templates 2 - loadComponentURL() The macro is executed at the

Re: [api-dev] Chaining Frames : ChainedTextFrame

2006-03-15 Thread Oliver Specht
Hi, the service com.sun.star.text.ChanedTextFrame specified the two properties ChainPrevName and ChainNextName. There's an include of XChainable but it is not part of the service. The to properties are available at Writer's text frames. The documentation and also the implementation of the

Re: [api-dev] XTextLayout

2006-02-17 Thread Oliver Specht
George Vasiliou wrote: (This is actually a repost from dev@openoffice.org list where I initially posted the message but Tom Schindl suggested that dev@api.openoffice.org is the proper list to send it. So, I am sorry for bothering again those who have subscribed in both lists) I am exploring

Re: [api-dev] Sequence of Texttables

2005-06-14 Thread Oliver Specht
Martin Thoma wrote: Hello! I have a text-document which contains some tables: Table1 (Named MyTable) Table2 (Named My 2nd Table) I copy+paste (executeDispatch) Table1 some times into the document: Table1 (Named MyTable) NewTable (Named Table 4) NewTable (Named Table 5) NewTable (Named Table 6)