summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-01-15 21:47:02 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-01-16 12:23:29 +0100
commitdab0d4e1f36faace21145a51733bd3a946992624 (patch)
treeb9355e33b4b53dfa2ebe8318c15a8d3b28820beb /include
parentdd497f18e5a5aaa5d1116e87b12ea23d619088e2 (diff)
tdf#146439 retain precise base start pos when using ResolutionIndependentLayout
Change-Id: I16a585abf4805d87a2eeb4e3e9d9bd9f2697b838 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128472 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/vcl/outdev.hxx1
-rw-r--r--include/vcl/vcllayout.hxx6
2 files changed, 4 insertions, 3 deletions
diff --git a/include/vcl/outdev.hxx b/include/vcl/outdev.hxx
index 0282ea8458b5..4b9d1e7e626a 100644
--- a/include/vcl/outdev.hxx
+++ b/include/vcl/outdev.hxx
@@ -1713,6 +1713,7 @@ public:
@returns Device's X pixel coordinate
*/
SAL_DLLPRIVATE tools::Long ImplLogicXToDevicePixel( tools::Long nX ) const;
+ SAL_DLLPRIVATE double LogicXToDeviceFontCoordinate( tools::Long nWidth ) const;
/** Convert a logical Y coordinate to a device pixel's Y coordinate.
diff --git a/include/vcl/vcllayout.hxx b/include/vcl/vcllayout.hxx
index 957d18cebd95..b766a0b4ccd6 100644
--- a/include/vcl/vcllayout.hxx
+++ b/include/vcl/vcllayout.hxx
@@ -68,8 +68,8 @@ class VCL_DLLPUBLIC SalLayout
public:
virtual ~SalLayout();
// used by upper layers
- Point& DrawBase() { return maDrawBase; }
- const Point& DrawBase() const { return maDrawBase; }
+ DevicePoint& DrawBase() { return maDrawBase; }
+ const DevicePoint& DrawBase() const { return maDrawBase; }
Point& DrawOffset() { return maDrawOffset; }
const Point& DrawOffset() const { return maDrawOffset; }
DevicePoint GetDrawPosition( const DevicePoint& rRelative = DevicePoint(0,0) ) const;
@@ -114,7 +114,7 @@ protected:
Degree10 mnOrientation;
mutable Point maDrawOffset;
- Point maDrawBase;
+ DevicePoint maDrawBase;
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */