Revision 575540

Go back to digest for 27th August 2006

Other in Office

Sebastian Sauer committed changes in /trunk/koffice:

Re-activated the KSpread scripting plugin.

* Well, in fact only _one_ single scripting.(h|cpp) is needed now since we are reusing transparently the dbus-adaptor classes to access the whole KSpread functionality on the fly.
* We are not limited to the dbus-functionality since we are also able to manipulate e.g. the Document or the View class direct.
* Arguments as well as returnvalues are just working. Also not limited to the types dbus knows. We are able to pass QVariant's, QMetaType's as well as e.g. QObject instances.
* The unittest.py contains some first examples to demonstrate that. To see the unittest.py in the "Script Manager" it's for now needed tpo add following lines by hand to your ~/.kde4/share/config/kspreadrc file;
[scripts]
names=unittest
unittest_file=/opt/kde4/share/apps/kspread/scripts/unittest/unittest.py (or wherever you have the python-file)
unittest_text=Unittest

File Changes

Added 4 files
  • /trunk/koffice/kspread/plugins/scripting
  •   /scripting.cpp
  •   /scripts
  •   /scripts/CMakeLists.txt
  •   /scripts/unittest.py
Deleted 1 files
  • /trunk/koffice/kspread/plugins/scripting/scripting.cc
Modified 9 files
  • /trunk/koffice
  •   /kspread/plugins/CMakeLists.txt
  •   /kspread/plugins/scripting/CMakeLists.txt
  •   /kspread/plugins/scripting/scripting.h
  •   /kspread/plugins/scripting/scripting.rc
  •   /libs/kross/core/guiclient.cpp
  •   /libs/kross/core/guiclient.h
  •   /libs/kross/core/guimanager.cpp
  •   /libs/kross/python/pythonextension.cpp
  •   /libs/kross/python/pythonextension.h
14 files changed in total