summaryrefslogtreecommitdiff
path: root/include/tools
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-04-11 12:43:05 +0200
committerLuboš Luňák <l.lunak@collabora.com>2022-04-12 13:31:09 +0200
commit3361db2179dfe4ddb017ac59660c26c2acaaac8d (patch)
treed873f6eb2eb675255389be4f35f90f3180d8999b /include/tools
parentcbaf1fbaa6e707d939f815eda360fad68a492aca (diff)
include OutputDevice MapMode in SalLayoutGlyphsCache key (tdf#148400)
The mapmode also affects the layout of the glyphs. Change-Id: I9492bc4d3d9e991ef8ab5dc30ce424e44cbc79f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132822 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'include/tools')
-rw-r--r--include/tools/fract.hxx3
-rw-r--r--include/tools/gen.hxx5
2 files changed, 8 insertions, 0 deletions
diff --git a/include/tools/fract.hxx b/include/tools/fract.hxx
index 7f2bb3d320ac..c844f8eed619 100644
--- a/include/tools/fract.hxx
+++ b/include/tools/fract.hxx
@@ -72,6 +72,9 @@ public:
void ReduceInaccurate( unsigned nSignificantBits );
+ // Compute value usable as hash.
+ size_t GetHashValue() const;
+
TOOLS_DLLPUBLIC friend Fraction operator+( const Fraction& rVal1, const Fraction& rVal2 );
TOOLS_DLLPUBLIC friend Fraction operator-( const Fraction& rVal1, const Fraction& rVal2 );
TOOLS_DLLPUBLIC friend Fraction operator*( const Fraction& rVal1, const Fraction& rVal2 );
diff --git a/include/tools/gen.hxx b/include/tools/gen.hxx
index 01e3b45e456d..6d4548065495 100644
--- a/include/tools/gen.hxx
+++ b/include/tools/gen.hxx
@@ -53,6 +53,9 @@ public:
TOOLS_DLLPUBLIC rtl::OString toString() const;
+ // Compute value usable as hash.
+ TOOLS_DLLPUBLIC size_t GetHashValue() const;
+
protected:
tools::Long nA;
tools::Long nB;
@@ -111,6 +114,7 @@ public:
sal_Int64 nMulY, sal_Int64 nDivY) const;
using Pair::toString;
+ using Pair::GetHashValue;
};
inline void Point::Move( tools::Long nHorzMove, tools::Long nVertMove )
@@ -232,6 +236,7 @@ public:
Pair & toPair() { return *this; }
using Pair::toString;
+ using Pair::GetHashValue;
Size& operator += ( const Size& rSize );
Size& operator -= ( const Size& rSize );