summaryrefslogtreecommitdiff
path: root/oox/inc
diff options
context:
space:
mode:
authorLennard <Wasserthal@nefkom.net>2012-11-28 21:45:22 +0100
committerRadek Doulík <rodo@novell.com>2012-11-29 20:13:51 +0000
commita9fc1456719da3cecda6a97454bad0642e493035 (patch)
tree294087b1bebab9fa27eb531f9a826eed37a752ad /oox/inc
parent954ce6f102855be1bd5c84432003d529773b39a8 (diff)
fdo#45495 pptx Export saves rotation of pictures,shapes,text
and Circular and Rectangular shapes, and Tables drawingml was Pivot corrected. There is still some work to be done concerning customshape pptx export. Tables cannot be rotated anyway, but in contrast to Lines, you don't doubly-save the rotation. Patch Version 2. Here, acquiring of the angle from the shapes is done in WriteShapeTransformation. Change-Id: I0d650e669a690164796150615416fab8bb90242b Signed-off-by: Lennard <Wasserthal@nefkom.net> Reviewed-on: https://gerrit.libreoffice.org/1030 Reviewed-by: Radek Doulík <rodo@novell.com> Tested-by: Radek Doulík <rodo@novell.com>
Diffstat (limited to 'oox/inc')
-rw-r--r--oox/inc/oox/export/drawingml.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/oox/inc/oox/export/drawingml.hxx b/oox/inc/oox/export/drawingml.hxx
index 37d579bdd9a8..818531ddc660 100644
--- a/oox/inc/oox/export/drawingml.hxx
+++ b/oox/inc/oox/export/drawingml.hxx
@@ -27,6 +27,9 @@
#include <com/sun/star/uno/XReference.hpp>
#include <tools/poly.hxx>
#include <filter/msfilter/escherex.hxx>
+#ifndef PPTX_EXPORT_ROTATE_CLOCKWISIFY
+#define PPTX_EXPORT_ROTATE_CLOCKWISIFY(input) (21600000-input*600)
+#endif
class Graphic;
class String;
@@ -111,7 +114,7 @@ public:
void WriteBlipMode( ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > rXPropSet );
void WriteShapeTransformation( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape > rXShape,
- sal_Int32 nXmlNamespace, sal_Bool bFlipH = false, sal_Bool bFlipV = false, sal_Int32 nRotation = 0 );
+ sal_Int32 nXmlNamespace, sal_Bool bFlipH = false, sal_Bool bFlipV = false, sal_Bool bSuppressRotation = false );
void WriteTransformation( const Rectangle& rRectangle,
sal_Int32 nXmlNamespace, sal_Bool bFlipH = false, sal_Bool bFlipV = false, sal_Int32 nRotation = 0 );