Ian Laurenson wrote:

My attempt at a solution has been to put together the wiki
http://ext.openoffice.org.nz. In that wiki I and others have written
functions (together with documentation) that people can copy and paste
into their own macros. Eventually I hope that we will have a sufficient
library of routines that writing macros for OOo is at least as easy as
it is in VBA.

For example rather than:

'     Selection.PrintOut Copies:=1, Collate:=True
dim mPrintProperties(1) as new com.sun.star.beans.PropertyValue
mPrintProperties(0).name = "CopyCount"
mPrintProperties(0).value = 1
mPrintProperties(1).name = "Collate"
mPrintProperties(1).value = true
thisComponent.print(mPrintProperties())


simply call:
subPrint(thisComponent, nCopies:=1, bCollate:=true)

+1

I would love to see that. I think it would really help.

I see a lot of functions (fnNewDoc, fnOpenDoc, etc) that would be really good to have in a library. I would be interested in making a Python version of the library. We can call it "Ian's EasyUNO Library". So, in Python, people could just write:

import from easyuno *

easyuno.print("Hello world")


You get the idea.

I hope more people will add to this wiki. [Hint: If anyone is willing to
help fund my time then I could put a lot more time into this, with the
eventual aim of converting VBA macros].

I don't have funds to give, but if I every do, or come accross someone who does, you'll hear about it.

Cheers,
Daniel.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to