From bcb9be395cd7e382777b041fc90869883f726850 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Thu, 6 Sep 2018 14:55:13 +0200 Subject: 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 Tested-by: Jenkins --- include/svtools/ruler.hxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/svtools') 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 #include #include +#include #include @@ -661,6 +662,8 @@ private: rtl::Reference mxAccContext; + std::map 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, -- cgit