libs/flake
KoOdfWorkaround Namespace Reference
This class should contain all workarounds to correct problems with differenet ODF implementations. More...
Functions | |
| FLAKE_EXPORT void | fixEnhancedPath (QString &path, const KoXmlElement &element, KoShapeLoadingContext &context) |
| FLAKE_EXPORT void | fixPenWidth (QPen &pen, KoShapeLoadingContext &context) |
Detailed Description
This class should contain all workarounds to correct problems with differenet ODF implementations.
If you need to access application specific things please create a new namespace in the app you need it All calls to methods of this class should be wrapped into ifndefs like e.g.
ifndef NWORKAROUND_ODF_BUGS KoOdfWorkaround::fixPenWidth(pen, context); endif
Function Documentation
| void KoOdfWorkaround::fixEnhancedPath | ( | QString & | path, | |
| const KoXmlElement & | element, | |||
| KoShapeLoadingContext & | context | |||
| ) |
OpenOffice < 3.0 does not store the draw:enhanced-path for draw:type="ellipse" Add the path needed for the ellipse.
Definition at line 39 of file KoOdfWorkaround.cpp.
| void KoOdfWorkaround::fixPenWidth | ( | QPen & | pen, | |
| KoShapeLoadingContext & | context | |||
| ) |
OpenOffice handels a line with the width of 0 as a cosmetic line but in svg it makes the line invisible.
To show it in koffice use a very small line width. However this is not a cosmetic line.
Definition at line 31 of file KoOdfWorkaround.cpp.
