summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2018-09-06 14:55:13 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2018-09-06 16:18:47 +0200
commitbcb9be395cd7e382777b041fc90869883f726850 (patch)
treed47b73dfed123ff067fd56735d836533270aeb52 /include/svtools
parente75c8384c4663b0603a30f66d0d8e390d03a3bf6 (diff)
svtools: less text layout calls in Ruler
Number of GenericSalLayout::LayoutText() calls during Writer startup: 2603 -> 1616 (18 -> 1 layouts / included number). Change-Id: I9a1a1131707bb6bc31683bbf609319f4bc22de92 Reviewed-on: https://gerrit.libreoffice.org/60087 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Jenkins
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/ruler.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/svtools/ruler.hxx b/include/svtools/ruler.hxx
index bcf4bc27acb3..c89550e3f6a2 100644
--- a/include/svtools/ruler.hxx
+++ b/include/svtools/ruler.hxx
@@ -28,6 +28,7 @@
#include <vcl/window.hxx>
#include <vcl/virdev.hxx>
#include <vcl/field.hxx>
+#include <vcl/vcllayout.hxx>
#include <svtools/accessibleruler.hxx>
@@ -661,6 +662,8 @@ private:
rtl::Reference<SvtRulerAccessible> mxAccContext;
+ std::map<OUString, SalLayoutGlyphs> maTextGlyphs;
+
SVT_DLLPRIVATE void ImplVDrawLine(vcl::RenderContext& rRenderContext, long nX1, long nY1, long nX2, long nY2 );
SVT_DLLPRIVATE void ImplVDrawRect(vcl::RenderContext& rRenderContext, long nX1, long nY1, long nX2, long nY2 );
SVT_DLLPRIVATE void ImplVDrawText(vcl::RenderContext& rRenderContext, long nX, long nY, const OUString& rText,