diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2019-02-01 23:44:38 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2019-02-02 08:33:46 +0100 |
commit | d938920433ed28897f41a2dde89ba296ce89bfd5 (patch) | |
tree | c423de1d57e4e64a2ed43c82683c6194e6da9db4 /include | |
parent | 59886618cf8db7842ad4724a56f0f92436d0b3bd (diff) |
oox: OOX_DRAWINGML_EXPORT_ROTATE_CLOCKWISIFY() can be a template
Change-Id: I9d3d371e3942e3f7ba3f2fabfb31e5d339c41ee0
Reviewed-on: https://gerrit.libreoffice.org/67264
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/oox/export/drawingml.hxx | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/oox/export/drawingml.hxx b/include/oox/export/drawingml.hxx index 24adf475be16..fbcc25fb3db1 100644 --- a/include/oox/export/drawingml.hxx +++ b/include/oox/export/drawingml.hxx @@ -42,12 +42,6 @@ #include <tools/gen.hxx> #include <vcl/mapmod.hxx> -#ifndef OOX_DRAWINGML_EXPORT_ROTATE_CLOCKWISIFY -// Our rotation is counter-clockwise and is in 100ths of a degree. -// drawingML rotation is clockwise and is in 60000ths of a degree. -#define OOX_DRAWINGML_EXPORT_ROTATE_CLOCKWISIFY(input) ((21600000-input*600)%21600000) -#endif - class Graphic; class SdrObjCustomShape; @@ -102,6 +96,13 @@ namespace core { namespace drawingml { +// Our rotation is counter-clockwise and is in 100ths of a degree. +// drawingML rotation is clockwise and is in 60000ths of a degree. +template <typename T> T ExportRotateClockwisify(T input) +{ + return ((21600000 - input * 600) % 21600000); +} + /// Interface to be implemented by the parent exporter that knows how to handle shape text. class OOX_DLLPUBLIC DMLTextExport { |