If you search for "python uno" you'll find some documentation that may help.
One of the first hits is http://www.openoffice.org/udk/python/python-bridge.html, where you will find an extension python-tokencounter-calc-addin.oxt that seems to define a Calc function named tokencount(). Since .oxt files are actually .zip files, any version of unzip will help you accessing the source code. -rl Am 2013-01-20 um 00:49 schrieb Tom Davies <[email protected]>: > [...] > There is a chapter about macros in the "Getting Started Guide" > https://wiki.documentfoundation.org/Documentation/Publications > Further down the same page are soem 3rd party guides that might be useful > https://wiki.documentfoundation.org/Documentation/Publications#Programmers > [...] >> ________________________________ >> From: pierre masci <[email protected]> >> To: [email protected] >> Sent: Saturday, 19 January 2013, 13:16 >> Subject: [libreoffice-users] OOSheet for Python: How to create a function >> that can be called from within a cell? >> >> [...] >> i have just started to use OOSheet: "a Python module for manipulating >> LibreOffice spreadsheet documents and creating macros." >> >> I have managed to create and use my first macros, which is a first >> exciting step :-) >> >> Now, what i would like is to define functions that i can call directly >> from a cell. For example i would like to write =some_calculation() in >> cell A1, and see the result returned by this function in that cell. >> >> Can i do this? If yes, how? >> >> [...] > -- For unsubscribe instructions e-mail to: [email protected] Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/users/ All messages sent to this list will be publicly archived and cannot be deleted
