summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2016-01-09 13:55:21 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2016-01-09 10:20:35 +0000
commit67925c3b5cf713cfb85a92baebd13708b8649974 (patch)
tree341917e26525ce48ed9e51dd3dbe676089714a88
parentc71de1458cebcd45b65cef3a182bf1092dc8ad80 (diff)
vcl: Rename ImplServerFontEntry to ServerFontInstance
I want to keep this class in line with the naming of the base class. ImplServerFontEntry derives from LogicalFontInstance, so the name ServerFontInstance is a better fit. Change-Id: I2d2e3919634c2aaa8e5d6d63b0bf718dec18c336 Reviewed-on: https://gerrit.libreoffice.org/21284 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com>
-rw-r--r--vcl/generic/glyphs/gcach_ftyp.cxx4
-rw-r--r--vcl/generic/glyphs/glyphcache.cxx6
-rw-r--r--vcl/generic/print/genpspgraphics.cxx2
-rw-r--r--vcl/inc/generic/glyphcache.hxx8
-rw-r--r--vcl/unx/generic/gdi/cairotextrender.cxx4
5 files changed, 12 insertions, 12 deletions
diff --git a/vcl/generic/glyphs/gcach_ftyp.cxx b/vcl/generic/glyphs/gcach_ftyp.cxx
index 0af7cd91e829..777cdea623ea 100644
--- a/vcl/generic/glyphs/gcach_ftyp.cxx
+++ b/vcl/generic/glyphs/gcach_ftyp.cxx
@@ -434,7 +434,7 @@ ImplFTSFontData::ImplFTSFontData( FreetypeFontInfo* pFI, const ImplFontAttribute
LogicalFontInstance* ImplFTSFontData::CreateFontInstance( FontSelectPattern& rFSD ) const
{
- ImplServerFontEntry* pEntry = new ImplServerFontEntry( rFSD );
+ ServerFontInstance* pEntry = new ServerFontInstance( rFSD );
return pEntry;
}
@@ -464,7 +464,7 @@ ServerFont::ServerFont( const FontSelectPattern& rFSD, FreetypeFontInfo* pFI )
{
// TODO: move update of mpFontInstance into FontEntry class when
// it becomes responsible for the ServerFont instantiation
- static_cast<ImplServerFontEntry*>(rFSD.mpFontInstance)->SetServerFont( this );
+ static_cast<ServerFontInstance*>(rFSD.mpFontInstance)->SetServerFont( this );
maFaceFT = pFI->GetFaceFT();
diff --git a/vcl/generic/glyphs/glyphcache.cxx b/vcl/generic/glyphs/glyphcache.cxx
index eab5277ec5c5..bfac3283af2f 100644
--- a/vcl/generic/glyphs/glyphcache.cxx
+++ b/vcl/generic/glyphs/glyphcache.cxx
@@ -353,13 +353,13 @@ void ServerFont::GarbageCollect( long nMinLruIndex )
}
}
-ImplServerFontEntry::ImplServerFontEntry( FontSelectPattern& rFSD )
+ServerFontInstance::ServerFontInstance( FontSelectPattern& rFSD )
: LogicalFontInstance( rFSD )
, mpServerFont( nullptr )
, mbGotFontOptions( false )
{}
-void ImplServerFontEntry::SetServerFont(ServerFont* p)
+void ServerFontInstance::SetServerFont(ServerFont* p)
{
if (p == mpServerFont)
return;
@@ -370,7 +370,7 @@ void ImplServerFontEntry::SetServerFont(ServerFont* p)
mpServerFont->AddRef();
}
-ImplServerFontEntry::~ImplServerFontEntry()
+ServerFontInstance::~ServerFontInstance()
{
// TODO: remove the ServerFont here instead of in the GlyphCache
if (mpServerFont)
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index 335f40c0a2cd..420437ebdb11 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -560,7 +560,7 @@ ImplPspFontData::ImplPspFontData( const psp::FastPrintFontInfo& rInfo )
LogicalFontInstance* ImplPspFontData::CreateFontInstance( FontSelectPattern& rFSD ) const
{
- ImplServerFontEntry* pEntry = new ImplServerFontEntry( rFSD );
+ ServerFontInstance* pEntry = new ServerFontInstance( rFSD );
return pEntry;
}
diff --git a/vcl/inc/generic/glyphcache.hxx b/vcl/inc/generic/glyphcache.hxx
index 951c21186786..b3666f5cd206 100644
--- a/vcl/inc/generic/glyphcache.hxx
+++ b/vcl/inc/generic/glyphcache.hxx
@@ -185,7 +185,7 @@ public:
private:
friend class GlyphCache;
friend class ServerFontLayout;
- friend class ImplServerFontEntry;
+ friend class ServerFontInstance;
friend class X11SalGraphics;
friend class CairoTextRender;
@@ -243,11 +243,11 @@ private:
};
// a class for cache entries for physical font instances that are based on serverfonts
-class VCL_DLLPUBLIC ImplServerFontEntry : public LogicalFontInstance
+class VCL_DLLPUBLIC ServerFontInstance : public LogicalFontInstance
{
public:
- ImplServerFontEntry( FontSelectPattern& );
- virtual ~ImplServerFontEntry();
+ ServerFontInstance( FontSelectPattern& );
+ virtual ~ServerFontInstance();
void SetServerFont(ServerFont* p);
void HandleFontOptions();
diff --git a/vcl/unx/generic/gdi/cairotextrender.cxx b/vcl/unx/generic/gdi/cairotextrender.cxx
index 52de75dee568..e574011b27cd 100644
--- a/vcl/unx/generic/gdi/cairotextrender.cxx
+++ b/vcl/unx/generic/gdi/cairotextrender.cxx
@@ -90,7 +90,7 @@ bool CairoTextRender::setFont( const FontSelectPattern *pEntry, int nFallbackLev
mpServerFont[ nFallbackLevel ] = pServerFont;
// apply font specific-hint settings
- ImplServerFontEntry* pSFE = static_cast<ImplServerFontEntry*>( pEntry->mpFontInstance );
+ ServerFontInstance* pSFE = static_cast<ServerFontInstance*>( pEntry->mpFontInstance );
pSFE->HandleFontOptions();
return true;
@@ -101,7 +101,7 @@ bool CairoTextRender::setFont( const FontSelectPattern *pEntry, int nFallbackLev
FontConfigFontOptions* GetFCFontOptions( const ImplFontAttributes& rFontAttributes, int nSize);
-void ImplServerFontEntry::HandleFontOptions()
+void ServerFontInstance::HandleFontOptions()
{
if( !mpServerFont )
return;