From a909afbc21e8cdd03a7f27db798f830c76aa91d2 Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Thu, 10 May 2018 12:48:13 +0200 Subject: Fold CommonSalLayout into GenericSalLayout Now the crazy constructors of CommonSalLayout are gone, we can merge the two and drop one level of indirection. Change-Id: I166e4ed2c9d22c1ce75246d486f7526c4928f652 Reviewed-on: https://gerrit.libreoffice.org/54077 Tested-by: Jenkins Reviewed-by: Khaled Hosny --- vcl/inc/win/salgdi.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'vcl/inc/win/salgdi.h') diff --git a/vcl/inc/win/salgdi.h b/vcl/inc/win/salgdi.h index 85b88e8e5f10..f2580aa05d5d 100644 --- a/vcl/inc/win/salgdi.h +++ b/vcl/inc/win/salgdi.h @@ -50,7 +50,6 @@ class PhysicalFontCollection; class SalGraphicsImpl; class WinOpenGLSalGraphicsImpl; class ImplFontMetricData; -class CommonSalLayout; #define RGB_TO_PALRGB(nRGB) ((nRGB)|0x02000000) #define PALRGB_TO_RGB(nPalRGB) ((nPalRGB)&0x00ffffff) @@ -174,8 +173,8 @@ private: LogicalFontInstance* GetWinFontEntry(int nFallbackLevel); - bool CacheGlyphs(const CommonSalLayout& rLayout); - bool DrawCachedGlyphs(const CommonSalLayout& rLayout); + bool CacheGlyphs(const GenericSalLayout& rLayout); + bool DrawCachedGlyphs(const GenericSalLayout& rLayout); public: HDC getHDC() const { return mhLocalDC; } @@ -295,7 +294,7 @@ protected: private: // local helpers - void DrawTextLayout(const CommonSalLayout&, HDC, bool bUseDWrite); + void DrawTextLayout(const GenericSalLayout&, HDC, bool bUseDWrite); public: // public SalGraphics methods, the interface to the independent vcl part @@ -378,7 +377,7 @@ public: virtual std::unique_ptr GetTextLayout( ImplLayoutArgs&, int nFallbackLevel ) override; - virtual void DrawTextLayout( const CommonSalLayout& ) override; + virtual void DrawTextLayout( const GenericSalLayout& ) override; virtual bool supportsOperation( OutDevSupportType ) const override; // Query the platform layer for control support -- cgit