Re: AW: [api-dev] XTextDocument in OOoBean

2005-04-14 Thread Matthias Scholz
Thanks Peter! Hi Matthias, I'm currently working with the OOoBean from the OOo SDK 1.1, but I guess it works very similar in the new OOoBean. The bean supplies a method getDocument(), which returns a com.sun.star.bean.OfficeDocument object, which is a wrapper around the OfficeDocument service

Re: [api-dev] Page Number

2005-04-14 Thread Cristian Fonti
Andrew Douglas Pitonyak ha scritto: Cristian Fonti wrote: Hi to all, i want to insert a page number in a Writer document with Java Api. All is ok when the page number start from 1, but how can i do if i want that the page number start from a variable value??? This is my code to insert a Page

AW: AW: [api-dev] XTextDocument in OOoBean

2005-04-14 Thread Jentsch, Peter
Hi Matthias, the OOoBean introduces a (very simple) wrapper, OfficeDocument, around the document object which is associated with the bean. bean.getController().getModel() gives access to the same document instance, but without the wrapper. So, in general, there's not much of a difference...

Re: [api-dev] bug in windows OOo 1.1.4 bootstrap - InvocationTargetException

2005-04-14 Thread Joerg Barfurth
Hi, Mike Traum wrote: Thomas, I'm not sure what you mean by the user or administrator defining the default installation. They can make the registry entries point to the desired installation. The administrator can set the HKLM one as default, the user can override this in HKCU. Maybe we should

Re: AW: [api-dev] XTextDocument in OOoBean

2005-04-14 Thread Mathias Bauer
Matthias Scholz wrote: The OfficeDocument class provides a method queryInterface(...) which you can use to access the interfaces supported by the TextDocument service. So, to query for the XTextDocument interface, you'd say: // Caution! The code below has not been tested and might not even

Re: [api-dev] configuration control in OOo

2005-04-14 Thread Christian Andersson
just a small observation and is there a way to specify the user-id into this? I'd would like to be able to write CFG_MyLayerUrl=/opt/mydata/$user/registry using $USER on linux do work :-) however i still cannot provide a real path it is solvable in linux by just creating a soft link, but on

Re: [api-dev] bug in windows OOo 1.1.4 bootstrap - InvocationTargetException

2005-04-14 Thread Mike Traum
Thomas, For option (b), I wasn't proposing an automatic selection, unless, of course, the Bootstrap was extended to be able to tell you what services are available with each installation, or to be able to find an installation which provides a certain service. This, in my opinon, would be the best

[api-dev] How-To insert an OLE document into Writer by macro

2005-04-14 Thread Christophe Mari
Hi, I want to insert an Excel document into a writer document by macro (basic). I don't find any samples through the net. Thanks Christophe