diff options
author | Chris Sherlock <chris.sherlock79@gmail.com> | 2021-09-14 00:17:06 +1000 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2021-10-08 19:22:59 +0200 |
commit | 3f5fb07565d0e08773ddfcda4d5acbb1446aa2f2 (patch) | |
tree | c0830ab69aac8f1424e6788448bb68690883ab9e /vcl/inc/unx | |
parent | 677434a572b8f07a386937b2f7edf2e9b801bbd0 (diff) |
vcl: test PhysicalFontCollection and move to vcl::font namespace
- tested PhysicalFontCollection, noted odd behaviour with search names
and normalization
- moved PhysicalFontCollection.hxx to vcl/inc/font
- moved PhysicalFontCollection into vcl::font namespace
Note that I needed to regenerate the pch file otherwise errors were
generated.
Change-Id: Ifa0c7b871c40687bd15002565d2f7a3e408218f8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122036
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'vcl/inc/unx')
-rw-r--r-- | vcl/inc/unx/freetype_glyphcache.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/unx/freetypetextrender.hxx | 4 | ||||
-rw-r--r-- | vcl/inc/unx/geninst.h | 8 | ||||
-rw-r--r-- | vcl/inc/unx/genpspgraphics.h | 13 | ||||
-rw-r--r-- | vcl/inc/unx/glyphcache.hxx | 5 | ||||
-rw-r--r-- | vcl/inc/unx/salgdi.h | 9 |
6 files changed, 27 insertions, 14 deletions
diff --git a/vcl/inc/unx/freetype_glyphcache.hxx b/vcl/inc/unx/freetype_glyphcache.hxx index d7b71514cd69..64a55dce60c6 100644 --- a/vcl/inc/unx/freetype_glyphcache.hxx +++ b/vcl/inc/unx/freetype_glyphcache.hxx @@ -71,7 +71,7 @@ public: bool IsSymbolFont() const { return maDevFontAttributes.IsSymbolFont(); } const FontAttributes& GetFontAttributes() const { return maDevFontAttributes; } - void AnnounceFont( PhysicalFontCollection* ); + void AnnounceFont( vcl::font::PhysicalFontCollection* ); const FontCharMapRef & GetFontCharMap() const; bool GetFontCapabilities(vcl::FontCapabilities&) const; diff --git a/vcl/inc/unx/freetypetextrender.hxx b/vcl/inc/unx/freetypetextrender.hxx index 6b17a15db06f..994edb5eb3e7 100644 --- a/vcl/inc/unx/freetypetextrender.hxx +++ b/vcl/inc/unx/freetypetextrender.hxx @@ -44,9 +44,9 @@ public: virtual void GetFontMetric( ImplFontMetricDataRef&, int nFallbackLevel ) override; virtual FontCharMapRef GetFontCharMap() const override; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const override; - virtual void GetDevFontList( PhysicalFontCollection* ) override; + virtual void GetDevFontList( vcl::font::PhysicalFontCollection* ) override; virtual void ClearDevFontCache() override; - virtual bool AddTempDevFont( PhysicalFontCollection*, const OUString& rFileURL, const OUString& rFontName ) override; + virtual bool AddTempDevFont( vcl::font::PhysicalFontCollection*, const OUString& rFileURL, const OUString& rFontName ) override; virtual bool CreateFontSubset( const OUString& rToFile, const vcl::font::PhysicalFontFace*, diff --git a/vcl/inc/unx/geninst.h b/vcl/inc/unx/geninst.h index 5a4f037b548f..984e91a53925 100644 --- a/vcl/inc/unx/geninst.h +++ b/vcl/inc/unx/geninst.h @@ -38,7 +38,11 @@ public: * Abstract generic class to build vclplugin's instance classes from */ class GenPspGraphics; -class PhysicalFontCollection; +namespace vcl::font +{ + class PhysicalFontCollection; +} + class VCL_DLLPUBLIC SalGenericInstance : public SalInstance { protected: @@ -67,7 +71,7 @@ public: virtual OUString getOSVersion() override; // prolly belongs somewhere else ... just a font help - static void RegisterFontSubstitutors( PhysicalFontCollection* pFontCollection ); + static void RegisterFontSubstitutors( vcl::font::PhysicalFontCollection* pFontCollection ); protected: static void configurePspInfoPrinter( PspSalInfoPrinter* pInfoPrinter, diff --git a/vcl/inc/unx/genpspgraphics.h b/vcl/inc/unx/genpspgraphics.h index 977083b948c2..75c1e4cd0852 100644 --- a/vcl/inc/unx/genpspgraphics.h +++ b/vcl/inc/unx/genpspgraphics.h @@ -30,8 +30,11 @@ #include <unx/GenPspGfxBackend.hxx> -namespace vcl::font { class PhysicalFontFace; } +namespace vcl::font +{ +class PhysicalFontFace; class PhysicalFontCollection; +} namespace psp { struct JobData; class PrinterGfx; } @@ -66,7 +69,7 @@ public: Ucs2UIntMap& rUnicodeEnc ); static FontAttributes Info2FontAttributes( const psp::FastPrintFontInfo& ); - static void AnnounceFonts( PhysicalFontCollection*, + static void AnnounceFonts( vcl::font::PhysicalFontCollection*, const psp::FastPrintFontInfo& ); // override all pure virtual methods @@ -82,13 +85,13 @@ public: virtual void GetFontMetric( ImplFontMetricDataRef&, int nFallbackLevel ) override; virtual FontCharMapRef GetFontCharMap() const override; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const override; - virtual void GetDevFontList( PhysicalFontCollection* ) override; + virtual void GetDevFontList( vcl::font::PhysicalFontCollection* ) override; // graphics must drop any cached font info virtual void ClearDevFontCache() override; - virtual bool AddTempDevFont( PhysicalFontCollection*, + virtual bool AddTempDevFont( vcl::font::PhysicalFontCollection*, const OUString& rFileURL, const OUString& rFontName ) override; - static bool AddTempDevFontHelper( PhysicalFontCollection* pFontCollection, + static bool AddTempDevFontHelper( vcl::font::PhysicalFontCollection* pFontCollection, const OUString& rFileURL, const OUString& rFontName); diff --git a/vcl/inc/unx/glyphcache.hxx b/vcl/inc/unx/glyphcache.hxx index 228351fbe046..b6120e2899ee 100644 --- a/vcl/inc/unx/glyphcache.hxx +++ b/vcl/inc/unx/glyphcache.hxx @@ -43,7 +43,10 @@ class FreetypeFontFile; class FreetypeFontInstance; class FreetypeFontInfo; class FontConfigFontOptions; +namespace vcl::font +{ class PhysicalFontCollection; +} class FreetypeFont; class SvpGcpHelper; @@ -84,7 +87,7 @@ public: sal_IntPtr nFontId, const FontAttributes&); - void AnnounceFonts( PhysicalFontCollection* ) const; + void AnnounceFonts( vcl::font::PhysicalFontCollection* ) const; void ClearFontCache(); diff --git a/vcl/inc/unx/salgdi.h b/vcl/inc/unx/salgdi.h index bc5653e05c41..2a1a9945bd17 100644 --- a/vcl/inc/unx/salgdi.h +++ b/vcl/inc/unx/salgdi.h @@ -50,8 +50,11 @@ class SalFrame; class X11SalVirtualDevice; class X11SalGraphicsImpl; class X11SkiaSalVirtualDevice; +namespace vcl::font +{ class PhysicalFontCollection; -namespace vcl::font { class PhysicalFontFace; } +class PhysicalFontFace; +} class SalGraphicsImpl; class TextRenderImpl; @@ -116,9 +119,9 @@ public: virtual void GetFontMetric( ImplFontMetricDataRef&, int nFallbackLevel ) override; virtual FontCharMapRef GetFontCharMap() const override; virtual bool GetFontCapabilities(vcl::FontCapabilities &rFontCapabilities) const override; - virtual void GetDevFontList( PhysicalFontCollection* ) override; + virtual void GetDevFontList( vcl::font::PhysicalFontCollection* ) override; virtual void ClearDevFontCache() override; - virtual bool AddTempDevFont( PhysicalFontCollection*, const OUString& rFileURL, const OUString& rFontName ) override; + virtual bool AddTempDevFont( vcl::font::PhysicalFontCollection*, const OUString& rFileURL, const OUString& rFontName ) override; virtual bool CreateFontSubset( const OUString& rToFile, |