Hi,

Christian Junker wrote:
Hi Tuomas,

if you mean a macro as a programmable piece to attach to a document,
then this is not possible in pure Java. Macros are usually written in
a scripting language like Starbasic (JavaScript, Python etc. for 2.0
are also available).
That is not 100% true, using the Scripting Framework it is possible to use Java "macro" functions as well and you can deploy this piece of Java code with a document. See for example the <sdksamples/DevelopersGuide/ScriptingFramework> Ok the examples deploy the code global in the office but you can insert it in a document zip file as well (at least in OpenOffice/StarOffice) - it's part of the file format standard. Please see the Scripting Framework chapter in the DevGuide for detailed info.

Juergen


However, Java programs for OOo are usually distributed as UNO
packages, please see the Developer's Guide on api.openoffice.org .

2006/3/4, Tuomas Räsänen <[EMAIL PROTECTED]>:
Is it possible to write macros with java? And is it possible to
programmatically disable commands and hide toolbars when
template-file(macro) is loaded? Thank you.

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




--
Best Regards
Christian Junker

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


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

Reply via email to