summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDr. David Alan Gilbert <dave@treblig.org>2023-07-13 14:32:44 +0100
committerNoel Grandin <noel.grandin@collabora.co.uk>2023-07-16 12:54:58 +0200
commit38372f103aa5035ec32570972e55656e07647791 (patch)
treeb97b7c8f8f0f700bf314e74cd925a0705379d63d /include
parent5ae47ac0a750dd7220c74daa4bdcd5a3e92924f7 (diff)
editeng: Use Tools::Point::RotateAround instead of our own
Remove our own Rotate function by calls to Tools::Point's RotateAround method. Add a comment on RotateAround to emphasise that the point rotated is the parameter and the This object is used as the origin. Using TOOLS_DLLPUBLIC to fix link error (as suggested by Arnaud) Added tl to slideshow (from Neil) Signed-off-by: Dr. David Alan Gilbert <dave@treblig.org> Change-Id: I296bbdf910d262401bfa18f0fc4f431b9e79b8f4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154392 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/tools/gen.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 11d26b0372f2..c6372d7c92dc 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -74,7 +74,7 @@ inline bool equal(Pair const & p1, Pair const & p2)
// Point
class Size;
-class SAL_WARN_UNUSED UNLESS_MERGELIBS(SAL_DLLPUBLIC_EXPORT) Point final : protected Pair
+class SAL_WARN_UNUSED TOOLS_DLLPUBLIC Point final : protected Pair
{
public:
constexpr Point() {}
@@ -88,6 +88,7 @@ public:
tools::Long AdjustX( tools::Long nHorzMove ) { mnA += nHorzMove; return mnA; }
tools::Long AdjustY( tools::Long nVertMove ) { mnB += nVertMove; return mnB; }
+ // Rotate parameter point using This as origin; store result back into parameter point
void RotateAround( tools::Long& rX, tools::Long& rY, Degree10 nOrientation ) const;
void RotateAround( Point&, Degree10 nOrientation ) const;