summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorChris Sherlock <chris.sherlock79@gmail.com>2015-12-25 17:57:19 +1100
committerChris Sherlock <chris.sherlock79@gmail.com>2015-12-25 07:52:56 +0000
commit1ed5907b162daff49bbb195c870b1ac5c3f8e313 (patch)
tree91a2466ea64c8cf49b987fbca4c25fb7db20ac93 /vcl
parent125cdf3404e60cf78f2a5547e9a06ce994df5c8e (diff)
vcl: Change GetDev{Font|Size}List to GetDevice{Font|Size}List
Change-Id: I19af1ad7fb00de8c1ac224fec53f032d972b9c59 Reviewed-on: https://gerrit.libreoffice.org/20934 Reviewed-by: Chris Sherlock <chris.sherlock79@gmail.com> Tested-by: Chris Sherlock <chris.sherlock79@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/PhysicalFontCollection.hxx4
-rw-r--r--vcl/source/font/PhysicalFontCollection.cxx4
-rw-r--r--vcl/source/gdi/embeddedfontshelper.cxx2
-rw-r--r--vcl/source/gdi/print.cxx24
-rw-r--r--vcl/source/gdi/virdev.cxx6
-rw-r--r--vcl/source/outdev/font.cxx16
-rw-r--r--vcl/source/outdev/outdev.cxx6
-rw-r--r--vcl/source/outdev/outdevstate.cxx6
-rw-r--r--vcl/win/gdi/salgdi3.cxx2
9 files changed, 35 insertions, 35 deletions
diff --git a/vcl/inc/PhysicalFontCollection.hxx b/vcl/inc/PhysicalFontCollection.hxx
index 38b2973cd532..5177d4ab6c67 100644
--- a/vcl/inc/PhysicalFontCollection.hxx
+++ b/vcl/inc/PhysicalFontCollection.hxx
@@ -62,8 +62,8 @@ public:
// misc utilities
PhysicalFontCollection* Clone( bool bScalable, bool bEmbeddable ) const;
- ImplDeviceFontList* GetDevFontList() const;
- ImplGetDevSizeList* GetDevSizeList( const OUString& rFontName ) const;
+ ImplDeviceFontList* GetDeviceFontList() const;
+ ImplGetDevSizeList* GetDeviceSizeList( const OUString& rFontName ) const;
private:
mutable bool mbMatchData; // true if matching attributes are initialized
diff --git a/vcl/source/font/PhysicalFontCollection.cxx b/vcl/source/font/PhysicalFontCollection.cxx
index df863b6bc273..515c16fa1d79 100644
--- a/vcl/source/font/PhysicalFontCollection.cxx
+++ b/vcl/source/font/PhysicalFontCollection.cxx
@@ -953,7 +953,7 @@ PhysicalFontCollection* PhysicalFontCollection::Clone( bool bScalable, bool bEmb
return pClonedCollection;
}
-ImplDeviceFontList* PhysicalFontCollection::GetDevFontList() const
+ImplDeviceFontList* PhysicalFontCollection::GetDeviceFontList() const
{
ImplDeviceFontList* pDeviceFontList = new ImplDeviceFontList;
@@ -967,7 +967,7 @@ ImplDeviceFontList* PhysicalFontCollection::GetDevFontList() const
return pDeviceFontList;
}
-ImplGetDevSizeList* PhysicalFontCollection::GetDevSizeList( const OUString& rFontName ) const
+ImplGetDevSizeList* PhysicalFontCollection::GetDeviceSizeList( const OUString& rFontName ) const
{
ImplGetDevSizeList* pGetDevSizeList = new ImplGetDevSizeList;
diff --git a/vcl/source/gdi/embeddedfontshelper.cxx b/vcl/source/gdi/embeddedfontshelper.cxx
index 54bd9e21aef5..48c506f67895 100644
--- a/vcl/source/gdi/embeddedfontshelper.cxx
+++ b/vcl/source/gdi/embeddedfontshelper.cxx
@@ -230,7 +230,7 @@ OUString EmbeddedFontsHelper::fontFileUrl( const OUString& familyName, FontFamil
SalGraphics* graphics = Application::GetDefaultDevice()->GetGraphics();
PhysicalFontCollection fonts;
graphics->GetDevFontList( &fonts );
- std::unique_ptr< ImplDeviceFontList > fontInfo( fonts.GetDevFontList());
+ std::unique_ptr< ImplDeviceFontList > fontInfo( fonts.GetDeviceFontList());
PhysicalFontFace* selected = nullptr;
for( int i = 0;
i < fontInfo->Count();
diff --git a/vcl/source/gdi/print.cxx b/vcl/source/gdi/print.cxx
index f4e106c474b1..18dfe97c466b 100644
--- a/vcl/source/gdi/print.cxx
+++ b/vcl/source/gdi/print.cxx
@@ -642,10 +642,10 @@ void Printer::ImplReleaseFonts()
mpDeviceFontList = nullptr;
}
- if ( mpGetDevSizeList )
+ if ( mpDeviceSizeList )
{
- delete mpGetDevSizeList;
- mpGetDevSizeList = nullptr;
+ delete mpDeviceSizeList;
+ mpDeviceSizeList = nullptr;
}
}
@@ -1018,10 +1018,10 @@ void Printer::dispose()
delete mpDeviceFontList;
mpDeviceFontList = nullptr;
}
- if ( mpGetDevSizeList )
+ if ( mpDeviceSizeList )
{
- delete mpGetDevSizeList;
- mpGetDevSizeList = nullptr;
+ delete mpDeviceSizeList;
+ mpDeviceSizeList = nullptr;
}
delete mpFontCache;
mpFontCache = nullptr;
@@ -1172,10 +1172,10 @@ bool Printer::SetPrinterProps( const Printer* pPrinter )
delete mpDeviceFontList;
mpDeviceFontList = nullptr;
}
- if ( mpGetDevSizeList )
+ if ( mpDeviceSizeList )
{
- delete mpGetDevSizeList;
- mpGetDevSizeList = nullptr;
+ delete mpDeviceSizeList;
+ mpDeviceSizeList = nullptr;
}
// clean up font list
delete mpFontCache;
@@ -1215,10 +1215,10 @@ bool Printer::SetPrinterProps( const Printer* pPrinter )
delete mpDeviceFontList;
mpDeviceFontList = nullptr;
}
- if ( mpGetDevSizeList )
+ if ( mpDeviceSizeList )
{
- delete mpGetDevSizeList;
- mpGetDevSizeList = nullptr;
+ delete mpDeviceSizeList;
+ mpDeviceSizeList = nullptr;
}
delete mpFontCache;
delete mpFontCollection;
diff --git a/vcl/source/gdi/virdev.cxx b/vcl/source/gdi/virdev.cxx
index f97b810ce903..e3b9b141e8d8 100644
--- a/vcl/source/gdi/virdev.cxx
+++ b/vcl/source/gdi/virdev.cxx
@@ -519,10 +519,10 @@ void VirtualDevice::ImplSetReferenceDevice( RefDevMode i_eRefDevMode, sal_Int32
delete mpDeviceFontList;
mpDeviceFontList = nullptr;
}
- if ( mpGetDevSizeList )
+ if ( mpDeviceSizeList )
{
- delete mpGetDevSizeList;
- mpGetDevSizeList = nullptr;
+ delete mpDeviceSizeList;
+ mpDeviceSizeList = nullptr;
}
// preserve global font lists
diff --git a/vcl/source/outdev/font.cxx b/vcl/source/outdev/font.cxx
index b2ac6f281595..aa3f7cbf00a2 100644
--- a/vcl/source/outdev/font.cxx
+++ b/vcl/source/outdev/font.cxx
@@ -95,7 +95,7 @@ int OutputDevice::GetDevFontCount() const
if (!mpFontCollection)
return 0;
- mpDeviceFontList = mpFontCollection->GetDevFontList();
+ mpDeviceFontList = mpFontCollection->GetDeviceFontList();
}
return mpDeviceFontList->Count();
}
@@ -108,11 +108,11 @@ bool OutputDevice::IsFontAvailable( const OUString& rFontName ) const
int OutputDevice::GetDevFontSizeCount( const vcl::Font& rFont ) const
{
- delete mpGetDevSizeList;
+ delete mpDeviceSizeList;
ImplInitFontList();
- mpGetDevSizeList = mpFontCollection->GetDevSizeList( rFont.GetName() );
- return mpGetDevSizeList->Count();
+ mpDeviceSizeList = mpFontCollection->GetDeviceSizeList( rFont.GetName() );
+ return mpDeviceSizeList->Count();
}
Size OutputDevice::GetDevFontSize( const vcl::Font& rFont, int nSizeIndex ) const
@@ -123,7 +123,7 @@ Size OutputDevice::GetDevFontSize( const vcl::Font& rFont, int nSizeIndex ) cons
return Size();
// when mapping is enabled round to .5 points
- Size aSize( 0, mpGetDevSizeList->Get( nSizeIndex ) );
+ Size aSize( 0, mpDeviceSizeList->Get( nSizeIndex ) );
if ( mbMap )
{
aSize.Height() *= 10;
@@ -508,10 +508,10 @@ void OutputDevice::ImplClearFontData( const bool bNewFontLists )
delete mpDeviceFontList;
mpDeviceFontList = nullptr;
}
- if ( mpGetDevSizeList )
+ if ( mpDeviceSizeList )
{
- delete mpGetDevSizeList;
- mpGetDevSizeList = nullptr;
+ delete mpDeviceSizeList;
+ mpDeviceSizeList = nullptr;
}
// release all physically selected fonts on this device
diff --git a/vcl/source/outdev/outdev.cxx b/vcl/source/outdev/outdev.cxx
index 14b6321f20f3..c1ce49c83046 100644
--- a/vcl/source/outdev/outdev.cxx
+++ b/vcl/source/outdev/outdev.cxx
@@ -97,7 +97,7 @@ OutputDevice::OutputDevice() :
mpFontCache = nullptr;
mpFontCollection = nullptr;
mpDeviceFontList = nullptr;
- mpGetDevSizeList = nullptr;
+ mpDeviceSizeList = nullptr;
mpOutDevStateStack = new OutDevStateStack;
mpPDFWriter = nullptr;
mpAlphaVDev = nullptr;
@@ -242,8 +242,8 @@ void OutputDevice::dispose()
delete mpDeviceFontList;
mpDeviceFontList = nullptr;
- delete mpGetDevSizeList;
- mpGetDevSizeList = nullptr;
+ delete mpDeviceSizeList;
+ mpDeviceSizeList = nullptr;
// release ImplFontCache specific to this OutputDevice
// TODO: refcount ImplFontCache
diff --git a/vcl/source/outdev/outdevstate.cxx b/vcl/source/outdev/outdevstate.cxx
index 8175ea64f905..692ac13b6fcd 100644
--- a/vcl/source/outdev/outdevstate.cxx
+++ b/vcl/source/outdev/outdevstate.cxx
@@ -645,10 +645,10 @@ void OutputDevice::ImplReleaseFonts()
mpDeviceFontList = nullptr;
}
- if ( mpGetDevSizeList )
+ if ( mpDeviceSizeList )
{
- delete mpGetDevSizeList;
- mpGetDevSizeList = nullptr;
+ delete mpDeviceSizeList;
+ mpDeviceSizeList = nullptr;
}
}
diff --git a/vcl/win/gdi/salgdi3.cxx b/vcl/win/gdi/salgdi3.cxx
index 43c397144e4d..86689d064e0e 100644
--- a/vcl/win/gdi/salgdi3.cxx
+++ b/vcl/win/gdi/salgdi3.cxx
@@ -559,7 +559,7 @@ bool WinGlyphFallbackSubstititution::FindFontSubstitute( FontSelectPattern& rFon
}
// last level fallback, check each font type face one by one
- ImplDeviceFontList* pTestFontList = pFontCollection->GetDevFontList();
+ ImplDeviceFontList* pTestFontList = pFontCollection->GetDeviceFontList();
// limit the count of fonts to be checked to prevent hangs
static const int MAX_GFBFONT_COUNT = 600;
int nTestFontCount = pTestFontList->Count();