Revision 632464
Go back to digest for 18th February 2007Features in Office
Sebastian Sauer committed changes in /trunk/koffice:
* improved KWord scripting variable a lot. The variable_readfile.py python script implements a scripting variable. scripts.rc maps the KWord variable to the python script by connecting the both KoVariable::setProperties and KoVariable::createOptionsWidget methods to matching python functions. The script does provide an optionswidget as well as the variables value.
* added the sample_importfile.py and sample_exportfile.py scripts to load/save to/from text and html files.
* added "Script Manager..." action to KoScriptingDocker toolbar for faster access.
* let python function calling work as expected + fix uncatched exception.
File Changes
Added 3 files
- /trunk/koffice/kword/plugins/scripting/scripts
- /sample_exportfile.py
- /sample_importfile.py
- /variable_readfile.py
Deleted 1 files
- /trunk/koffice/kword/plugins/scripting/scripts/variable_docinfos.py
Modified 11 files
- /trunk/koffice
- /libs/kokross/KoScriptingDocker.cpp
- /libs/kokross/KoScriptingDocker.h
- /kspread/plugins/scripting/ScriptingFunction.cpp
- /kword/plugins/scripting/KWScriptingPart.cpp
- /kword/plugins/scripting/Variable.h
- /libs/kross/python/pythonextension.cpp
- /libs/kross/python/pythonscript.cpp
- /libs/kross/python/pythonvariant.cpp
- /kword/plugins/scripting/scripts/CMakeLists.txt
- /kword/plugins/scripting/scripts/sample_actions.py
- /kword/plugins/scripting/scripts/scripts.rc
15 files changed in total