Re: [api-dev] api to get page count

2009-04-09 Thread Ariel Constenla-Haile
Hello Aaron, On Thursday 09 April 2009, 21:33, Aaron Ehrensberger wrote: > One additional question...because this is using the Writer implementation, > that would imply that I cannot use this same code to determine the pages of > a spreadsheet correct? Is there no page count property on a generic

Re: [api-dev] Deploying an OOo Python extension that requires ctypes.

2009-04-09 Thread Alexandro Colorado
On Thu, 09 Apr 2009 10:55:18 -0500, Jan Holst Jensen wrote: Alexandro Colorado wrote: On Wed, 08 Apr 2009 16:31:52 -0500, Jan Holst Jensen wrote: I have the final python code working on the command line on Linux, where I interface to the shared library via ctypes in Python 2.5. But my

RE: [api-dev] api to get page count

2009-04-09 Thread Aaron Ehrensberger
Sothis is awesome and thank you for the response. I'm going to attempt to hook this up right now... BUT... One additional question...because this is using the Writer implementation, that would imply that I cannot use this same code to determine the pages of a spreadsheet correct? Is ther

Re: [api-dev] api to get page count

2009-04-09 Thread Cor Nouws
Ariel Constenla-Haile wrote (9-4-2009 21:51) Hello Aaron, [...] Regards That's fast! (and great as usual) ;-) -- Cor Nouws-nl.OpenOffice.org marketing contact = "2009 - Develop OOo" = www.nieuwsteoffice.nl = - T

Re: [api-dev] api to get page count

2009-04-09 Thread Ariel Constenla-Haile
Hello Aaron, On Thursday 09 April 2009, 15:54, Aaron Ehrensberger wrote: > Any chance you know the corresponding java? as OOo API is a language independet specification, you may try to learn how to find what you want from http://api.openoffice.org/docs/common/ref/com/sun/star/module-ix.html

Re: [api-dev] api to get page count

2009-04-09 Thread Cor Nouws
Aaron Ehrensberger wrote (9-4-2009 21:11) Yes, I've been on that examples site many times, but I can't seem to find anything that is right down my alley. I can find the cursor for the doc, but can't figure out how to get the Page count from that cursor. Thanks for your help though...I appreciat

RE: [api-dev] api to get page count

2009-04-09 Thread Aaron Ehrensberger
Yes, I've been on that examples site many times, but I can't seem to find anything that is right down my alley. I can find the cursor for the doc, but can't figure out how to get the Page count from that cursor. Thanks for your help though...I appreciate the response as it's moved me further...

Re: [api-dev] api to get page count

2009-04-09 Thread Cor Nouws
Aaron Ehrensberger wrote (9-4-2009 20:54) From: Cor Nouws [mailto:oo...@nouenoff.nl] I've just looked in OOoBasic, what I am used to. ThisComponent.CurrentControler.PageCount does it. ThisComponent.CurrentController.ViewCursor.Page returns the page number. Any chance you know the correspond

RE: [api-dev] api to get page count

2009-04-09 Thread Aaron Ehrensberger
Any chance you know the corresponding java? I'm tripping over not seeing the currentController, then finding that to not see the cursor, etc... Plus, I can't find the Page service you're talking about in the java api? (Sorry for being such a beginner). Aaron -Original Message- From: C

Re: [api-dev] api to get page count

2009-04-09 Thread Cor Nouws
Hi Aaron, Aaron Ehrensberger wrote (9-4-2009 20:01) I'm trying to get the page count of a document through the API. I've tried... Object document = xComponentLoader.loadComponentFromURL(docURL, "_blank", 0, loaderValues); XDocumentProperties xProps = (XDocumentProperties) UnoRuntime.queryIn

[api-dev] api to get page count

2009-04-09 Thread Aaron Ehrensberger
Hi, I'm trying to get the page count of a document through the API. I've tried... Object document = xComponentLoader.loadComponentFromURL(docURL, "_blank", 0, loaderValues); XDocumentProperties xProps = (XDocumentProperties) UnoRuntime.queryInterface(XDocumentProperties.class, document); Nam

Re: [api-dev] Deploying an OOo Python extension that requires ctypes.

2009-04-09 Thread Jan Holst Jensen
Alexandro Colorado wrote: On Wed, 08 Apr 2009 16:31:52 -0500, Jan Holst Jensen wrote: I have the final python code working on the command line on Linux, where I interface to the shared library via ctypes in Python 2.5. But my OpenOffice 3.0.1 on Windows runs a Python 2.3.4 that does not have

Re: [api-dev] Another Python Calc Add-in example available.

2009-04-09 Thread Jan Holst Jensen
Hi Juergen. Thanks for the tip on XInterface. I'll try it and update the docs accordingly. I tried to edit the Wiki page but got quite confused as to what I was editing (or rather which page I was apparently creating ?) so I did not dare touching it. You are most welcome to add a link to the

Re: [api-dev] Adding image and stro it in an odt or ott document

2009-04-09 Thread Fernand Vanrie
Lars, Sorry I was a bit to hasty, first you need tha originalgraphic who is stored some where: oOriginalGraphic = getGraphFromURL(converttoURL(Ographic1.HyperLinkName)) then ad this graphic to the shape oshape.graphic = oOriginalgraphic and now oGraph.GraphicURL = oShape.GraphicURL greetz

Re: [api-dev] Another Python Calc Add-in example available.

2009-04-09 Thread Juergen Schmidt
Hi Jan, cool to see a Python Calc Add-in example. One hint for the IDL, it is not longer necessary to inherit from XInterface. That is done implicitly. The next question is, if you are interested to put it in the OO.o wiki in the API example or tutorial section (http://wiki.services.openoffi