Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-21 Thread Christoph Jopp
Kjære Christian, for meg følgende code virker: oSFA = createUNOService (com.sun.star.ucb.SimpleFileAccess) oInpStream = oSFA.openFileRead(sUrl) oTextInpStream = createUnoService(com.sun.star.io.TextInputStream) oTextInpStream.setInputStream(oInpStream)

Re: [api-dev] problems reading xml file with c

2006-09-21 Thread Christoph Jopp
One thing I forgot to mention: Be aware that your code uses the com.sun.star.xml.dom.XDocumentBuilder Interface and that is signed 'unpublished' in the IDL reference. Which means you can't rely on it in future versions. It might be changed or replaced or something like that. Christian Andersson

Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-25 Thread Christoph Jopp
from oDB.parse... what system do you test this on? I am running this on windows 2003 server and openoffice 2.0 (I know that there is a way to get build number, but I keep forgetting it) Christoph Jopp wrote: Kjære Christian, for meg følgende code virker: oSFA = createUNOService

Re: [api-dev] problems reading xml file with com.sun.star.xml.dom.DocumentBuilder

2006-09-26 Thread Christoph Jopp
oDB.parse... what system do you test this on? I am running this on windows 2003 server and openoffice 2.0 (I know that there is a way to get build number, but I keep forgetting it) Christoph Jopp wrote: Kjære Christian, for meg følgende code virker: oSFA = createUNOService

Re: [api-dev] calling macro in openoffice document from vb

2006-10-01 Thread Christoph Jopp
Hi Christian, tried your code and found out one possible error: Don't know your exact implementation (especially how you named the macro to call exactly), but if it is as it seems in your posted code, you're using the standard names for library (in document), module and macro.

Re: [api-dev] Refreshing a modified menu bar

2006-10-13 Thread Christoph Jopp
Hi Carsten, you wrote: You can use the layout manager from the frame to destroy and create the menu bar again. The current implementation doesn't listen to changes in the Addon.xcu file. The current implementation does it not. Will there be an upcoming implementation in which it does listen to

Re: [api-dev] Refreshing a modified menu bar

2006-10-16 Thread Christoph Jopp
Hi Carsten, thank you for the information. Just thought that the 'package registry' is somehow merged into the 'office registry' and so extensions could profit of the same updates/refreshing as the 'office'. Although I'm not sure, if the 'office' has such a update/refresh for its own menus?

Re: [api-dev] StarOffice/openOffice.org NetBeans Integration - first public release

2006-10-20 Thread Christoph Jopp
Hi Jürgen, thank you and the 'OpenOffice.org-NetBeans-PlugIn-Team' for the great work. It took me just seconds to produce a working test-component package with it. It seems to be quite stable already with the little task, if there should turn out some bugs/instability in bigger tasks, I'll

Re: [api-dev] question about XLibraryContainerExport

2006-11-16 Thread Christoph Jopp
Hi Paolo, if the executing macro is in the same document as the dialog library it's easy ( DialogLibraries.exportLibrary(...) ), but I fear that's not what you've meant. To access it from outside the document I also have no extempore solution :-( Maybe later, maybe somebody else? Ciao

Re: [api-dev] Array - max elements number

2006-11-27 Thread Christoph Jopp
Hi Bart, I checked whether there is a general limit for arrays, but had no problems assigning 24 (long) strings to an array on my system. In your code your using LoadDataFromFile from the Tools library? In this library 'Redim Preserve' is used to expand the array and in my opinion this

Re: [api-dev] Array - max elements number

2006-11-27 Thread Christoph Jopp
Btw, did you click 12001 times on the MsgBox? ;-) Christoph Jopp schrieb: Hi Bart, I checked whether there is a general limit for arrays, but had no problems assigning 24 (long) strings to an array on my system. In your code your using LoadDataFromFile from the Tools library

Re: [api-dev] check visible state of a control

2006-11-27 Thread Christoph Jopp
Hi Cor; the only thing to check the visibility of a control I could figure out was the AccessibleStateType which holds values for certain states. One of them is the constant VISIBLE with the value 30. After all this code works for me: Dim bVisible As Boolean a() =

Re: [api-dev] check visible state of a control

2006-11-27 Thread Christoph Jopp
Hi Cor, How did you find out? Just digging in a various places or rather experience? No, it was just digging the IDL reference. Ciao Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: [api-dev] Array - max elements number

2006-11-27 Thread Christoph Jopp
: Christoph Jopp ha scritto: Hi Bart, Hi Christoph, and thank for your answer I checked whether there is a general limit for arrays, but had no problems assigning 24 (long) strings to an array on my system. In your code your using LoadDataFromFile from the Tools library? In this library 'Redim

Re: [api-dev] Array - max elements number

2006-11-27 Thread Christoph Jopp
Maybe the overflow comes from the rest of your code. Do you use Calc? There is a limit of 65536 lines - if you perhaps split your 13+ lines into two columns you would be quite near at this limit. Bart Aimar schrieb: Christoph Jopp ha scritto: Hi Bart, Hi Christoph, and thank

Re: [api-dev] performing multiple selections in Writer

2007-03-17 Thread Christoph Jopp
Hi Paolo, I played a bit around with your code and found following: You can hand an array of TextRanges to .select() So the code oCurrCon = ThisComponent.CurrentController oSelect() = ThisComponent.getCurrentController().getSelection() oSelect().getByIndex(1).setString(ciao)

Re: [api-dev] performing multiple selections in Writer

2007-03-17 Thread Christoph Jopp
P.S.: I forgot to say: The Selection-Array consists of two elements more than selections are in the document. The real selections are found through index 1 to n-1. Paolo Mantovani wrote: Hi all, sorry for the dumb question, but I'm not able to figure this out.. I've a macro that modify the

Re: [api-dev] NB Plugin - Configuration on Wiki page is incorrect - OO plugin does not show up in NB 6.0 plugin manager

2007-12-13 Thread Christoph Jopp
Hi Wade, somebody should correct me if I'm wrong, but as far as I know the NetBeans_Plugin is just working with NB 5.x versions. With NB 6 only the OOo_Plugin 1.2 should work, but is not ready until now. I'm also waiting and maybe somebody more knowledgeable could answer your questions?

Re: [api-dev] Re: working with objects

2008-02-19 Thread Christoph Jopp
Jonathan Kaye schrieb: Jonathan Kaye wrote: snip Hi Fernand, Thanks for the reference. I had a look but there's a huge amount of material and I didn't really see anything relevant to the situation I described. Can you give me a hint as to how to define a substring of an object that is

Re: [api-dev] Re: Re: working with objects

2008-02-19 Thread Christoph Jopp
macro) Have a nice day Christoph Jonathan Kaye schrieb: Christoph Jopp wrote: Jonathan Kaye schrieb: Jonathan Kaye wrote: snip Hi Fernand, Thanks for the reference. I had a look but there's a huge amount of material and I didn't really see anything relevant to the situation I

Re: [api-dev] Re: working with objects

2008-02-19 Thread Christoph Jopp
Sorry, Fernand was quicker Christoph Jopp schrieb: Jonathan Kaye schrieb: Jonathan Kaye wrote: snip Hi Fernand, Thanks for the reference. I had a look but there's a huge amount of material and I didn't really see anything relevant to the situation I described. Can you give

Re: [api-dev] Re: working with objects: syntax error

2008-02-19 Thread Christoph Jopp
Hi Jonathan Jonathan Kaye schrieb: Hi Christoph, I tried this: Sub SetBold Dim oDoc As Object, oSheet As Object, oCell As Object Dim oTextCursor as Object Dim Position as Integer oDoc=ThisComponent oSheet=oDoc.Sheets.getByName(Sheet1) oCell=oSheet.getCellByposition(0,0) 'A1

Re: [api-dev] Re: Re: working with objects: syntax error

2008-02-19 Thread Christoph Jopp
(0,0) 'A1 Position = InStr(oCell.getString(), .) oTextCursor = oCell.getText.createTextCursor() 'Changed oTextCursor.gotoStart(false) oTextCursor.goRight(Position - 1, true) oTextCursor.setPropertyValue(CharWeight, 150) End Sub Jonathan Kaye schrieb: Christoph Jopp wrote: Hi Jonathan

Re: [api-dev] Interacting With Dialogs from Basic

2008-07-13 Thread Christoph Jopp
Hi Hal, don't know if this helps you much, but you can register an event handler in the dialog editor. Just right click on a control and look for the tab named 'events' (don't know if its the exact name in an english version). There you can choose an event for this control and either write the

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread Christoph Jopp
Hal Vaughan schrieb: (...) 3) The File Browser control doesn't open up any kind of browsing function when I click on Browse. That would force me to type in all file paths by hand. This still does not work and is the one outstanding issue: When I click on the Browse button, nothing

Re: [api-dev] Interacting With Dialogs from Basic [Mostly Solved]

2008-07-13 Thread Christoph Jopp
Hal Vaughan schrieb: On Sunday 13 July 2008, Christoph Jopp wrote: Hal Vaughan schrieb: (...) 3) The File Browser control doesn't open up any kind of browsing function when I click on Browse. That would force me to type in all file paths by hand. This still does not work

Re: [api-dev] Removing focus from a control

2008-10-28 Thread Christoph Jopp
Hi Andrew, tried to reproduce the behaviour of your code. The results were: With OOo 2.4 and 3.0 both on Linux. At first I could only change the status of the checkbox if I turned the document to not editable and thus could of course change nothing in cell A2. But with the document set to

Re: [api-dev] Fwd: create/modify writer docs without running OO

2009-04-15 Thread Christoph Jopp
Hello Dan, I'm not a specialist in this field, but I think the odftoolkit - http://odftoolkit.org/ - might be what you want. Hope this helps, Christoph Hello, Thank you to all for this very cool library!  I am a bit new and need some guidance. Using the tutorials in the wiki, I now know

Re: [api-dev] In memory documents

2009-05-18 Thread Christoph Jopp
Hello Elvis, I don't know if this is what you are looking for, but I think you could implement an css.util.XModifyListener and catch the modified() event. f.e. to set the modified-flag of the document to the desired value. The setModified method is accessible via the css.util.XModifiable

Re: [api-dev] Focus window to the view cursor

2009-07-02 Thread Christoph Jopp
Hi Andrew, tried to reproduce this behaviour and found following: When I started the macro from within the macro-editor it's just as you said. When I started from within the writer document the view adjusts Maybe that helps for further investigation Christoph I move the view cursor in a Write

Re: [api-dev] Re: Bug when retrieving bookmarks with 3.1.0 ? = previous version

2009-08-24 Thread Christoph Jopp
Hi Oscar, I think you can find on the mirrors site http://distribution.openoffice.org/mirrors/#mirrors some mirrors that provide still older versions like f.e.: ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/ftp.openoffice.org/stable/3.0.1/ Hope that helps Christoph Sorry for my poor wording.

Re: [api-dev] Is the OpenOffice Developer's Guide available in download able form, as say ODT or PDF ?

2010-09-12 Thread Christoph Jopp
I don't know a way to download it simply as a whole. But you can select single articles to collect a book you can download or order in printed form. More information how to do this could be found on http://wiki.services.openoffice.org/wiki/Help:Books Is the OpenOffice Developer's Guide

[api-dev] Re: Missing a Frac() function

2011-08-08 Thread Christoph Jopp
Hi Johnny, Am 07.08.2011 16:55, schrieb Johnny Rosenberg: Am I the only one who miss a Frac() function in OpenOffice.org Basic and as a cell function? I always have to use my own function, which is probably slower than a built in function would be: Function Frac(Value As Double) As

[api-dev] Re: Missing a Frac() function

2011-08-08 Thread Christoph Jopp
Am 08.08.2011 08:59, schrieb Christoph Jopp: Hi Johnny, Am 07.08.2011 16:55, schrieb Johnny Rosenberg: Am I the only one who miss a Frac() function in OpenOffice.org Basic and as a cell function? I always have to use my own function, which is probably slower than a built in function would

[api-dev] Re: Missing a Frac() function

2011-08-08 Thread Christoph Jopp
Am 08.08.2011 12:28, schrieb Johnny Rosenberg: 2011/8/8 Christoph Jopp j...@gmx.de: Hi Johnny, Am 07.08.2011 16:55, schrieb Johnny Rosenberg: Am I the only one who miss a Frac() function in OpenOffice.org Basic and as a cell function? I always have to use my own function, which is probably

[api-dev] Re: Missing a Frac() function

2011-08-08 Thread Christoph Jopp
Am 08.08.2011 16:45, schrieb Johnny Rosenberg: snip ... /snip I guess I'll stick with my own Frac function then, since it's more straight forward and easier to understand. And shorter… Function Frac(Value As Double) As Double Frac=Value-Fix(Value) End Function Yes, of course. And

[api-dev] Re: Constant values for Function arguments

2011-08-18 Thread Christoph Jopp
Hi Johnny Am 18.08.2011 18:02, schrieb Johnny Rosenberg: I just realised that I sent the last message privately, sorry for that. Here's the same thing (with some additions) but to the list instead: 2011/8/18 Thomas Krumbein thomaskrumb...@openoffice.org: Hey Johnny, honestly, a lot of