Re: [api-dev] EMF converson API

2008-06-07 Thread Stephan Wunderlich
Hi Andreas, in openoffice it is possible to import EMF images. Can anyone please tell me if API functions are available to load a EMF file and convert it to a bitmap format ( BMP, TIF ). This should possibly work on linux too. the following Basic sample should do what you want ...

Re: [api-dev] Using API remotely

2008-06-07 Thread Stephan Wunderlich
Hi Andy, you are not by any chance the wildlife photographer, are you ? I am trying to use the API from my portal on one Linux server to access OpenOffice running on a separate Linux server. I took all the jars from OpenOffice and made them part my portal but I could only get the API to work

Re: [api-dev] UserDefinedAttributes for TextSection....

2007-09-05 Thread Stephan Wunderlich
mmm ... http://api.openoffice.org/docs/common/ref/com/sun/star/text/TextSection.html... doesn't state that such a property exist. Are you sure that it is a textsection we are talking about ? 2007/9/5, ashok _ [EMAIL PROTECTED]: I found that a TextSection in writer has a UserDefinedAttributes

Re: [api-dev] API - java

2007-04-02 Thread Stephan Wunderlich
Hi Michael, if I remember correctly you can create an instance of com.sun.star.document.FilterFactory which implements a com.sun.star.container.XNameAccess to give you the information you look for. Hope that helps Regards Stephan 2007/3/31, M. Niedermair [EMAIL PROTECTED]: Hi, how can i

Re: [api-dev] Macro writer to get filename document

2007-01-29 Thread Stephan Wunderlich
Hi Jurgen, I'm looking for code to get the filename of the current document in writer. In MS word is it like Activedocument.name but in Openoffice? you can query the XModel from your document, which has a method getURL () that should do what you want. Regards Stephan

Re: [api-dev] Compare document

2007-01-22 Thread Stephan Wunderlich
Hi Sarath, is there any possibility to perform Edit-Compare Document within the API the following macro should compare the current document with one of your choice and open the Accept or Reject changes dialog ... --- dim xFrame as object dim

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Stephan Wunderlich
Hi there, yes, I queryed with xshapes and used getbyindex method its working fine...now the problem is on click of the shape iam calling macro which should find which shape is clicked..for this getting the selected shape is not working correctly...so is there any other(interfaces) way to

Re: [api-dev] get the currently selected shaoe from impress

2007-01-08 Thread Stephan Wunderlich
whether the getselection works when the shape is clicked during slide show..i.e) when the shape is linked to macro and working fine in normal impress document..when the slideshow is started is that possible to get current documents and shape selected. in presentation view nothing is

Re: [api-dev] document.Settings: how to set PrinterIndependentLayout?

2007-01-08 Thread Stephan Wunderlich
Hi Arthur, I seem to have gone temporarily blind, but I can't figure out how to set the PrinterIndependentLayout property as described under http://api.openoffice.org/docs/common/ref/com/sun/star/document/ Settings.html#PrinterIndependentLayout you can query the interface

Re: [api-dev] Getting the XComponent out of a XFrame in a UNO Component

2006-12-18 Thread Stephan Wunderlich
Hi Tobias, after testing, I wrote this little test method: -%- public void test() { XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class, this.xComponent); com.sun.star.frame.XController xController =

Re: [api-dev] Getting the XComponent out of a XFrame in a UNO Component

2006-12-18 Thread Stephan Wunderlich
Hi Tobias, That is interesting. Thank you. But if I continue the code the following way, I run into troubles (xPrintable will be null): -%- // Querying for the interface XPrintable on the loaded document XPrintable xPrintable = (XPrintable)

Re: [api-dev] listener in Calc

2006-12-17 Thread Stephan Wunderlich
Hi Jörg, when i go to the print preview and i leave the print preview, then OOo is crashed in this moment. crashed means that the complete OOo-Applikation goes down, all open windows/dokuments are closed, in my words: 'OOo is dead'. Just a wild guess ... but when you switch to the print

Re: [api-dev] how to find Properties Available

2006-12-06 Thread Stephan Wunderlich
Hi Mikael, I wonder where I can find a list of all property available for a XCellRange object. Actually I want to get the number of columns and the number of rows of a cell range. I've tried with the Size properties but that don't give the number of rows and columns, it gives the height

Re: [api-dev] Open document in same window (OOBean)

2006-12-01 Thread Stephan Wunderlich
Hi Joan, Sorry, maybe I didn't explain properly... I load a document, and when a load another one the first one disappears and it's not under the Window menu label. I'd like to be able to load different documents and make them accessible through that label. ... you only have one

Re: [api-dev] XDispatchHelper / XModel in XEnumeration

2006-11-17 Thread Stephan Wunderlich
Hi there, I want to parser a document and trigger a XDispatchHelper at certain points. I need the XModel object for doing it but when I get to this line: XModel xModel = (XModel)UnoRuntime.queryInterface(XModel.class,field); xModel is null What am I doing wrong?? well textfields don't

Re: [api-dev] XDispatchHelper / XModel in XEnumeration

2006-11-17 Thread Stephan Wunderlich
Hi Joan, Thanks Stephan, that was really helpful! you are very welcome. The problem is that I don't really get (maybe because of my English) what is every class... What's a model, a controller, a component, a frame, etc it is not that easy to understand methinks :-) From

Re: [api-dev] How to get the XStyleFamiliesSupplier from a Presentation and Drawing?

2006-11-16 Thread Stephan Wunderlich
Hi Tobias, I try to set the printer tray for documents an need the XStyleFamiliesSupplier for a presentation and a drawing document. With a XTextDocument I do it this way: -%- // Get the StyleFamiliesSupplier interface of the document XStyleFamiliesSupplier xSupplier =

Re: [api-dev] Search PageStyle Property Name for Presentation and Draw Documents

2006-11-16 Thread Stephan Wunderlich
Hi Tobias, For both, the Presentains and the Drawings, a UnknownPropertyException is thrown. Can you tell me the PropertyNames? I'm not aware of PageStyles in Draw or Impress so there might well be no such Property :-) Regards Stephan

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

2006-11-07 Thread Stephan Wunderlich
Hi Oliver, thanks for the code snippet, i can use it as a workaround: - - first copy paste the section - - second copy the properties of the paragraph styles why do you need the first step ? The code snippet copies the content of the textsection already. Copy Paste is a wee bit tricky as

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

2006-11-06 Thread Stephan Wunderlich
Hi Oliver, is there a possibility to copy a textsection from a source document to a destination document using the api ? At the moment i am using copy paste but this has the disadvantage of loosing the paragraph format ... any hints ? the following macro will copy the first section of

Re: [api-dev] Changing menus of a document in background

2006-11-06 Thread Stephan Wunderlich
Hi Tobias, I have one more question. I would like to change the menus in a document in the background. Up to now I can change menus for loaded documents in the foreground. Here is the code: -%- XPropertySet xps = (XPropertySet)

Re: [api-dev] Name of merged file.

2006-09-28 Thread Stephan Wunderlich
Hi Knut, Is there any way to find the name of the file generated from MailMerge.execute( args() )? I don't like guessing :) guessing can be fun at times ;-) I think for your problem the com.sun.star.frame.GlobalEventBroadcaster comes in handy. It can be created at the

Re: [api-dev] Obscure documentation (Was: [api-dev] insertnewbookmark)

2006-09-26 Thread Stephan Wunderlich
Hi Knut, Ok, thanx. I'll make shure to file issues. There is a lot of them.. Starting with: 69861 http://www.openoffice.org/issues/show_bug.cgi? id=69861 and 69863 http://www.openoffice.org/issues/show_bug.cgi?id=69863 That is great :-) ... As you already pointed out a good documentation

Re: [api-dev] insertnewbookmark

2006-09-25 Thread Stephan Wunderlich
Hi Knut, I can't get insertnewbookmark to work. http://api.openoffice.org/docs/common/ref/com/sun/star/text/ XBookmarkInsertTool.html From the documentation it looks to me that I sould be able to do: ThisComponent.Text.InsertNewDocument(Cursor, TheBookMark) What am I doing wrong? I

Re: [api-dev] Listening to TextRange string

2006-09-20 Thread Stephan Wunderlich
Hi Julien, Is there a way to be notified when the content (the string, I mean) of a TextRange is changed ? I feel that the answer is negative, from some mails I've read in this list, but in case there is a miracle... As far as I know there is no way to be notified when a specific

Re: [api-dev] GraphicProvider and export of graphics

2006-09-04 Thread Stephan Wunderlich
Hi Jimmy, I'm trying to get hold of the GraphicProvider to store images of a Writer document. the code snippet ... http://codesnippets.services.openoffice.org/ Writer/Writer.ExtractGfx.snip ... seems to do what you want. Regards Stephan

Re: [api-dev] How can I concatenate a stream word collection

2006-09-02 Thread Stephan Wunderlich
Hi there, Now I am merging the documents using URL and then store the merged document on disk. I have some HTML files that are converted on WORD files (stream) after they are merged on only one WORD document. You can see the result by the attached files. The final document looses the text

Re: [api-dev] How can I concatenate a stream word collection

2006-09-01 Thread Stephan Wunderlich
Hi there, I need to merge some Word files that are streams. I receive it as a InputStream collection and I must generate a OutputStream. I am already able to load them as XInputStream into OpenOffice I but How can I write a new word document that contains the previous merged? After

Re: [api-dev] setting url for the string

2006-09-01 Thread Stephan Wunderlich
Hi there, I need to assign a url to a string and then the string should be shown in the text document..for example if i set a string in the way given below String test xTextRanget.setString(test); the String test should be linked to url say www.gmail.com...this is what i need can

Re: [api-dev] setting url for the string

2006-09-01 Thread Stephan Wunderlich
Hi, Thanx for the reply. i think the code u sent is a basic code. is there any examples in java since i saw that there is no method named HypeLinkUrl in XTextCursor and XTextRange interfaces... If you query the XPropertySet from your XTextRange/XTextCursor you'll be able to set the

Re: [api-dev] How can I concatenate a stream word collection

2006-09-01 Thread Stephan Wunderlich
Hi there, I am newer in OpenOffice. Could you give me some example that use XTextDocument? Because I am understanding. Below theres is a pience of code that I am using but it doesn't work. public OutputStream comporDocumentosDocParaDoc(List colecao) throws java.io.IOException,

Re: [api-dev] how to remove final paragraph?

2006-08-25 Thread Stephan Wunderlich
Hi Jimmy, Well you're right, there must be something spooky about my bookmarks, that's why I went looking a little further. You were right this works just fine, BUT (who would have expected that) I do have a section around the paragraph at first which I remove either by

Re: [api-dev] how to remove final paragraph?

2006-08-24 Thread Stephan Wunderlich
Hi Jimmy, The following problem only occurs, if I'm trying to remove the very last paragraph of my Writer document with my Java Addon. I'm left with the following structure at the end of the document: . text:p text:style-name=ElmlGoals text:bookmark-start text:name=goals/

Re: [api-dev] create bookmark at current location

2006-08-23 Thread Stephan Wunderlich
Hi Max, in java I try to write a add-on that creates a bookmark at the current cursor location in a swriter document. The following code works well for usual texts passages in swriter. When I run the add-ons with the current cursor location in a table (pure openoffice tabel, no shreadsheet)

Re: [api-dev] Modifiable styled mutliline fields

2006-08-23 Thread Stephan Wunderlich
Hi Jan, I need some special kind of field which - can consist of multiple lines of styled text (for example, the second word in the second line is bold) - knows whether the user has modified portions of it - does not regard itself as modified if text is inserted immediately before or after

Re: [api-dev] BorderDistance or Spacing to Contents in a Frame

2006-06-23 Thread Stephan Wunderlich
Hi Kent, If you do not have a border in a frame you are not allowed to set what is referred to in the UI as Spacing to Contents. I observe that without a border LeftBorderDistance, RightBorderDistance, etc are ignored. Is there no way to get around this? The only success I have had is with

Re: [api-dev] not deleting bookmarks

2006-06-19 Thread Stephan Wunderlich
Hi Knut, These are all good workarounds or hacks, and I can use them temporary, but wouldn't it be best to look at the design and find a good solution that would make OpenOffice.org a usable platform? What would it take to go for a real solution. Would anyone care? Who would I talk to and

Re: [api-dev] not deleting bookmarks

2006-06-16 Thread Stephan Wunderlich
Hi Knut, Unfortunately I did not cut and paste the code from the actual code, but here is some code copied and pasted from the actual program. And the bookmark comes _after_ the inserted text. dispatcher.executeDispatch(Dok.CurrentController.Frame, .uno:InsertPagebreak, , 0, Array())

Re: [api-dev] not deleting bookmarks

2006-06-16 Thread Stephan Wunderlich
Hi Knut, and if you want to keep the bookmark after insertion ... Dok=ThisComponent Cursor=Dok.Text.createTextCursor Cursor.gotoEnd( false ) Bookmark = Dok.createInstance(com.sun.star.text.Bookmark) Bookmark.Name = NyttDok Dok.Text.insertTextContent( Cursor, Bookmark, False ) Cursor.String=.

Re: [api-dev] not deleting bookmarks

2006-06-14 Thread Stephan Wunderlich
Hi Knut, Then Later I do: Cursor.gotoRange( ThisComponent.bookmarks.getByName(START).getAnchor(), False) Cursor.gotoRange( ThisComponent.bookmarks.getByName(END).getAnchor(), True) Cursor.setString() ' Here goes my bookmarks! How can I keep them? your cursor spans from the beginning of the

Re: [api-dev] Problem with insertTextContent() , cant insert textfield.

2006-05-30 Thread Stephan Wunderlich
HI James, Hi all, I have being trying to implement the code below (from developers guide p.548) and I constantly run into problems, could anyone suggest a solution or point me in the right direction to fixing the problem? The exception I get varies but is always one of the following: 1.

Re: [api-dev] Backgroung conversion crashes when closing last foreground document

2006-05-24 Thread Stephan Wunderlich
Hi Tobias, I have following problem. I wrote a little program that converts documents in background, without showing a user interface. If I have an active OO screen and close this, my conversion utility crashes. My questing: how can I stop OO closing my conversion tool? Please give me a hint.

Re: [api-dev] Multiple cells in macros

2006-05-19 Thread Stephan Wunderlich
Hi Moisés, sub Main ThisComponent.currentController.select(ThisComponent.Sheets(3)) printSelection ThisComponent.currentController.select(ThisComponent.Sheets(4)) printSelection end sub sub printSelection xFrame =

Re: [api-dev] Larger Documents Failing

2006-05-19 Thread Stephan Wunderlich
Hi Thomas, I’m using the following code snippet to get contents of word documents as strings: XTextDocument xTextDocument = (XTextDocument) UnoRuntime.queryInterface( XTextDocument.class, xComp); String s =

Re: [api-dev] Multiple cells in macros

2006-05-18 Thread Stephan Wunderlich
Hi, sub borrarSeleccionMultiple dim document as object dim dispatcher as object document = ThisComponent.CurrentController.Frame dispatcher = createUnoService(com.sun.star.frame.DispatchHelper) dim args1(0) as new com.sun.star.beans.PropertyValue args1(0).Name = ToPoint args1(0).Value =

Re: [api-dev] Multiple cells in macros

2006-05-18 Thread Stephan Wunderlich
Hi Moisés Hi, this is correct. But I want to say ... print sheets 4,5. Only these sheets. if those sheets each fit on a page you could use the Property Pages to pass it to the XPrintable.print() call. E.g. Dim printProps(0) as new com.sun.star.beans.PropertyValue printProps(0).Name=Pages

Re: [api-dev] Multiple cells in macros

2006-05-17 Thread Stephan Wunderlich
Hi, When I record a macro that do an operation in several cells this only work when I'm recording it. Later, when I execute this only work for the first cell. what exactly did you try to record ? Maybe the code the recorder produced could give an insight too. The same thing when I want to

Re: [api-dev] Programmatic To Foreground

2006-05-09 Thread Stephan Wunderlich
Hi Kent, I render some objects - textframes, graphic frames and lines. For all of these I explicitly set the zOrder. Somehow though my lines get put onto a different layer (I presume). What looks like a solution is when I press the button To Foreground on the line then zOrdering looks ok,

Re: [api-dev] Copy Page_Style from a document to another doc

2006-05-09 Thread Stephan Wunderlich
Hi Bart I need to copy a page_style from a document, and write it to another (new) document. No problem for copy... snip - But write the page style on new document seems impossible... snip - what is wrong ? as far as I know it is not possible to insert a style that

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-03 Thread Stephan Wunderlich
Hi Kent, any ideas? that is strange indeed ... does my sample work on your machine ? Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-03 Thread Stephan Wunderlich
Hi Kent, that is what I meant, your sample hangs my machine with .uno:PrintDefault and I see no difference with .uno:PrinterSetup (result.State is 0) oh ok, I misunderstood you then thought you'd have integrated my code in your program ... since I can't recall to have included any

Re: [api-dev] Unanswered question: Is there ANY way to get the Current Values of the Scrollbar of A Doc?

2006-05-03 Thread Stephan Wunderlich
Hi Kent, Is there any way to get the current values of the scrollbar for a given document? there is always a way ;-) ... The question is do you want to step along it :-) Ok ... as far as I know the XScrollbar Interface is only implemented by css.awt.UnoControlScrollBar ... but not

Re: [api-dev] UnknownPropertyException when trying to set HyperLinkURL

2006-05-02 Thread Stephan Wunderlich
Hi Ann, I've added that property but am still not seeing the link. I also tried fiddling with the other properties (I tried setting TargetFrame to _blank), but am not getting any link OR text to appear. And I tried saving the file as an .sxi file rather than a PowerPoint file (as I usually do),

Re: [api-dev] XTextViewCursor Listener

2006-05-02 Thread Stephan Wunderlich
Hi Tuomas, I haven't found a suitable listener from API for listening events which occur when position of XTextViewCursor changes. Is there a way to catch those events? when the view cursor moves a selectionChanged event should be fired, so I'd give the SelectionListener at the documents

Re: [api-dev] .uno:PrintDefault Works but .uno:PrinterSetup does not

2006-05-02 Thread Stephan Wunderlich
Hi Kent, This one is really weird. PrintDefault works perfect, a little window pops up and it ticks down the pages and prints, but PrinterSetup, even though it is issued exactly the same was as PrintDefualt never works. I even tried to create a macro and called it, and it doesn't work. The only

Re: [api-dev] UnknownPropertyException when trying to set HyperLinkURL

2006-04-28 Thread Stephan Wunderlich
Hi Ann, Thanks for all the pointers. I am no longer getting any errors in running the code. However, I am not seeing any links in the resulting document. Could it be because I am using OpenOffice.org 1.1, or that I am trying also to output it as a PowerPoint file? Here is a code snippet: //

Re: [api-dev] How to minimize whole OpenOffice window

2006-04-04 Thread Stephan Wunderlich
Hi Tobias, due to your help my project is close to be finished. I have one last question: how can I minimize my whole OpenOffice window to the taskbar of my OS? I did not find a thing for this, only how to terminate my OO. as far as I know there is no UNO-API for this purpose, but you could

Re: [api-dev] TextFrame Transparency Not Working

2006-03-29 Thread Stephan Wunderlich
Hi Kent, In the ui you can set a 100% transparent color. That is what I am trying to do with the backcolor, but nothing I try seems to work. If I set BackTransparent to true and avoid setting a BackColor afterwards it looks transparent to me :-) Anyway, to set the percentage as in the

Re: [api-dev] detecting unrecoverable error event

2006-03-23 Thread Stephan Wunderlich
Hi John, 1.) Most important: is there any way to suppress the dialog so that OO just goes away quietly without user intervention. you could start the office with the parameters -nocrashreport and -norestore ... e.g. soffice.exe -accept=... -norestore -nocrashreport 2.) Convenient: Is

Re: AW: [api-dev] url for new base document

2006-03-17 Thread Stephan Wunderlich
Hi Andreas, thank you for your snippet - the document will be created. But i can not open the connection. I will always get the error 'No storage property was set'. After restarting OpenOffice.org the connection is available. Any idea ? not sure if I understand you correctly ... I can work

Re: [api-dev] UnknownPropertyException when trying to set HyperLinkURL

2006-03-16 Thread Stephan Wunderlich
Hi Ann, I am trying to set the hyperlink for a particular part of text using the following code and OpenOffice 1.1: XText xText = (XText)UnoRuntime.queryInterface(XText.class, xShape); XTextCursor xTextCursor = xText.createTextCursor(); XPropertySet propCursor = (XPropertySet)

Re: [api-dev] url for new base document

2006-03-16 Thread Stephan Wunderlich
Hi Andreas, which url must i use in order to construct a new OpenOffice.org base document with the java api. Database Documents differ from other documents ... you need to define a datasource for them and they have to exist on your hard disk ... the following code should do what you want

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

2006-03-08 Thread Stephan Wunderlich
Hi Cristian, 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.. Someone know how can i do it (in JAVA)?? Thanks to all... given that you have

Re: [api-dev] Unanswered Request - Fw: [api-dev] HTML and Spreadsheet - BASIC

2006-02-20 Thread Stephan Wunderlich
Hi Rudolf, thank you for your prompt message. you are most welcome :-) I tried VISIBLE = TRUE also. It shows the the link LINK, but I do not see the contents. The problem seems to be to get the contents into a defined cell. Apparently, I have to enlarge the size of the cell. Is there a

Re: [api-dev] Page Style with Right and Left Pages

2006-02-17 Thread Stephan Wunderlich
Hi Kent, Does anyone have an example of this in Java? I cannot seem to be able to create a document where one side uses a left sided style and the next page uses the right sided style. It ends up using for the whole document the last style loaded with CursorProps.setPropertyValue(

Re: [api-dev] Unanswered Request - Fw: [api-dev] HTML and Spreadsheet - BASIC

2006-02-17 Thread Stephan Wunderlich
Hi Rudolf, your basic code inserts an invisible sheet to host your weblink ... changing the line oSheet.IsVisible = FALSE to oSheet.IsVisible = TRUE should show you the sheet Link with the data inside. Hope that helps Regards Stephan Hello, since I did not get a

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

2005-12-22 Thread Stephan Wunderlich
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 ;-) Only wondered, why all the other paragraph and

Re: [api-dev] getData() and getDataArray() do not work on text tables.

2005-12-21 Thread Stephan Wunderlich
Hi Andrew, Should getData() and getDataArray() work on a text table? I tested this on windows and linux using 2.01 release candidates. Create a text document and add a single text table. Add some data to the text table. Use at least two rows and two columns. Now, run this macro Dim oTable

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

2005-12-21 Thread Stephan Wunderlich
Hi Peter, 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

Re: [api-dev] getData() and getDataArray() do not work on text tables.

2005-12-21 Thread Stephan Wunderlich
Hi Andrew, Interesting Formatting the out AS a number allows non-zero numbers to be returned; I had not tried that before. Thanks for that information. So getData() and getDataArray() both ONLY return numbers! I thought that getData() should return numbers. I thought that getDataArray()

Re: [api-dev] Integer Division?

2005-12-14 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Felix, http://www.richhillsoftware.com/blog/archives/2005/06/xnumbers_011_no.html Do I really need an extra package just to do integer division? This operation is built into almost every programming language! does print cint(11/3) do what you want ? Regards Stephan --

Re: [api-dev] IsFieldDisplayed property

2005-11-01 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Fabricio, Ok then. I just got lost because I saw the property at the api specification, that doesn´t mention the 2.0.1 version; seems the since-tag isn't evaluated when creating the documentation yet ... I wrote issue 57136 for that. Thank you a lot Stephan :) you are welcome :-)

Re: [api-dev] macro doesn't run

2005-11-01 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Douglas, I have a macro that calls a dialog. The dialog calls a 2nd macro. The 2nd macro doesn't run unless the macro editor is open. Is this the right place to seek guidance on this issue? If not, where should I look? works for me with OOo 2.0, well I changed your macro slightly, so

Re: [api-dev] Insert Image in a TextTable

2005-08-31 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Giorgio, The problem is the following: i have inserted a graphic object in a Bookmark into a TextTable, but now i have a reference to a Cell but don't have a bookmark... I have utilised this code: // oWriter is my document

Re: [api-dev] Hiding a textField throught the API

2005-08-30 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Fabricio, Worked just fine. Thank you, Stephan. But, in my application, I need to hide a textfield that has a given name. How would be the code for that? When you have a Enumeration of your TextFields you can query each of them for an XDependentTextField. UserFields are those and then

Re: [api-dev] Hiding a textField throught the API

2005-08-29 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Fabricio, How can I hide a document text field using the API (without macros)? Here´s the code that I use for accessing the textfield: XTextFieldsSupplier xTextFieldsSupplier = (XTextFieldsSupplier) UnoRuntime.queryInterface(

Re: [api-dev] 2.0 and changing JAVA-Settings

2005-08-29 Thread Stephan Wunderlich - Sun Germany - ham02 - Hamburg
Hi Peter, 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?

Re: [api-dev] Having a FilePicker: how to bring it to front ?

2005-08-22 Thread Stephan Wunderlich
Hi Rony, *WOW*, *that* made it work, thank you *very* much!! (Did try it on OOo 1.1.4 and 1.9.122.) great :-) Now a lest (little?) request: how can one set the properties for OOo altogether (would just need a hint where - which class - or code-samples to start researching this corner of

Re: [api-dev] Text Table Column properties

2005-08-19 Thread Stephan Wunderlich
Hi Przemek Is there an easy way to change properties of text table column, i.e the back color of the column. When i read this mailing list posts i found a post that suggests to use text table rows, but for large tables this is not efficient. The macro sub Main atable =

Re: [api-dev] Having a FilePicker: how to bring it to front ?

2005-08-19 Thread Stephan Wunderlich
Hi Rony, What would be a starting point to research to get the FilePicker to the front programmatically (without having a document object yet)? Now I'm curious ... the filepicker is a modal dialog that is always on top and can't be moved to the back ... just to be sure I opened it via

Re: [api-dev] macro to add a new curve in a Calc diagram

2005-08-16 Thread Stephan Wunderlich
Hi ch'prof, A Calc sheet contains myDiagram which refers to A1:B31 cells. myDiagram.ChartRangeAddress sends the following string : 'mySheet'.$A$1:.$B$31 I want my macro to add a new curve in it, with datas located in A32:C33. I used myDiagram.ChartRangeAddress= 'mySheet'.$A$1:.$C$33 and

Re: [api-dev] Problem to identify the name of a chart

2005-08-12 Thread Stephan Wunderlich
Hi Sacha I'm working on an OpenOffice-based Report-Framework and have a problem with the identification of a chart by its name. The methods XTableCharts.getElementNames() and XTableCharts.getByName(String) refer to the internal name of the chart, i.e. Object 1. What I need is the name, which

Re: [api-dev] Updating formulas (JAVA)

2005-08-01 Thread Stephan Wunderlich
Hi Andreas, we have a text document with a text table which contains several formulas. This text table will be filled with data in hidden mode. After the filling process we export the document to pdf. In most cases the fields with the formulas contains the message **expression faulty**. But

Re: [api-dev] Updating formulas (JAVA)

2005-08-01 Thread Stephan Wunderlich
Hi Andreas, we have tested the reformat of the text document. But this does not solve the problem. What can we do else ? can you send me a running sample that demonstrates the behaviour ? Regards Stephan - To

Re: [api-dev] How to remove a specific annotation?

2005-06-16 Thread Stephan Wunderlich
Hi Yu, Thus the annotition will gone with the text. Can we do the same( only without remove the text) with OOo API? I've tried with quering XEnumerationAccess interface from XModel.getCurrentSelection(), as shown in the following code, but failed at the first place: the selection doesn't

Re: [api-dev] Table width

2005-03-18 Thread Stephan Wunderlich
Hi Cristian, This is my Java code: Object table = xWriterFactory.createInstance(com.sun.star.text.TextTable); XTextContent xTextContentTable = (XTextContent)UnoRuntime.queryInterface(XTextContent.class, table); XPropertySet

Re: [api-dev] setting OOo options

2005-03-11 Thread Stephan Wunderlich
Hi Jorge, I'd like to write a macro setting some of OOo's options (Menu Tools-Options) programatically. Can this be done? So far, by means of recording a macro, I've just got to: dispatcher = createUnoService(com.sun.star.frame.DispatchHelper) dispatcher.executeDispatch(document,

Re: [api-dev] SDB query

2005-03-07 Thread Stephan Wunderlich
Hi Indukamar, I am new to the OOo UNO APIs. I was trying to connect to the SDB from OOo using Java. But I could not find the com.sun.star.sdb.RowSet class in any JARs supplied with the standard installation of OOo. Can anyone please point me to the place where I can find it? I downloaded the SDK,

Re: [api-dev] Number of line of a paragraph

2005-03-07 Thread Stephan Wunderlich
Hi Laurent, using macros (but any language welcomed) I retreive a paragraph containing text. Is there a way to know how many lines it represents displayed in the document ? (so, depending on the formats, font, font size aso) I know i can count characters with num = Len(myParagraph.string) but

Re: [api-dev] Number of line of a paragraph

2005-03-07 Thread Stephan Wunderlich
Hi Laurent, The trick with a view cursor will work I didn't try this as i was searching for Non-view methods No View no lines I'd say :-) The XTextRange doesn't know in how many lines it will be displayed and so can't tell you how many lines it contains. Nevertheless, i'll save the current

Re: [api-dev] OOo Basic Specification

2005-01-21 Thread Stephan Wunderlich
Hi Curtis, Is there a complete specification for the OOo Basic language? For OOo Basic you can just press F1 when you are in the Basic-IDE. For the OOo-API take a look at http://api.openoffice.org/ where you will find the idl-reference: