Revision 1187884
Go back to digest for 24th October 2010Features in Office
Sebastian Sauer committed changes in /branches/work/koffice-essen:
Support shrink-to-fit.
This patch does;
* add the item ShrinkToFitResize to the KoTextDocument::ResizeMethod enum
* loads the draw:fit-to-size bool (chapter 19.121 in ODF 1.2) and sets the resizeMethod to ShrinkToFitResize if true
* implements the fitToSize-method to shrink the content in a textshape to fit into the shape's boundaries
That is done by implementing the TextViewConverter decorator that adjusts a KoViewConverter with the shrink-to-fit (and maybe in the future other) values transparently.
Compared to using painter.scale direct this should provide us more flexibility, cleaner code and a clear separation.
File Changes
Modified 7 files
- /branches/work/koffice-essen
- /libs/kotext/KoTextDocument.h
- /libs/kotext/KoTextDocumentLayout.cpp
- /plugins/textshape/Layout.cpp
- /plugins/textshape/Layout.h
- /plugins/textshape/TextShape.cpp
- /plugins/textshape/TextShape.h
- /plugins/textshape/TextTool.cpp
7 files changed in total