Revision 1201548

Go back to digest for 5th December 2010

Optimization in Office

Thorsten Zachmann committed changes in /branches/work/koffice-essen:

o Speed up drawing of tables

Calling format.properties() is very expensive. This is done in the constructor of
KoTableCellStyle. And that is called when painting each cell border. However the
data is not needed to paint cell borders. Therefore the class KoTableBorderStyle
which handles the drawing of the borders has been created. KoTableCellStyle inherits
this class.
This removed quite a lot of unneeded calls for document with tables.

File Changes

Added 4 files
  • /branches/work/koffice-essen/libs/kotext/styles
  •   /KoTableBorderStyle.cpp
  •   /KoTableBorderStyle.h
  •   /KoTableBorderStyle_p.h
  •   /KoTableCellStyle_p.h
Modified 3 files
  • /branches/work/koffice-essen
  •   /plugins/textshape/TableLayout.cpp
  •   /libs/kotext/styles/KoTableCellStyle.cpp
  •   /libs/kotext/styles/KoTableCellStyle.h
7 files changed in total