summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/metric.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/gdi/metric.cxx')
-rw-r--r--vcl/source/gdi/metric.cxx39
1 files changed, 0 insertions, 39 deletions
diff --git a/vcl/source/gdi/metric.cxx b/vcl/source/gdi/metric.cxx
index b1b0e8b568ac..f4b786c044b9 100644
--- a/vcl/source/gdi/metric.cxx
+++ b/vcl/source/gdi/metric.cxx
@@ -17,7 +17,6 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
-
#include <impfont.hxx>
#include <vcl/metric.hxx>
@@ -26,8 +25,6 @@
#include <cstdio>
-
-
ImplFontMetric::ImplFontMetric()
: mnAscent( 0 ),
mnDescent( 0 ),
@@ -39,16 +36,12 @@ ImplFontMetric::ImplFontMetric()
mnRefCount( 1 )
{}
-
-
inline void ImplFontMetric::AddReference()
{
// TODO: disable refcounting on the default maps?
++mnRefCount;
}
-
-
inline void ImplFontMetric::DeReference()
{
// TODO: disable refcounting on the default maps?
@@ -56,8 +49,6 @@ inline void ImplFontMetric::DeReference()
delete this;
}
-
-
bool ImplFontMetric::operator==( const ImplFontMetric& r ) const
{
if( mnMiscFlags != r.mnMiscFlags )
@@ -76,14 +67,10 @@ bool ImplFontMetric::operator==( const ImplFontMetric& r ) const
return true;
}
-
-
FontInfo::FontInfo()
: mpImplMetric( new ImplFontMetric )
{}
-
-
FontInfo::FontInfo( const FontInfo& rInfo )
: Font( rInfo )
{
@@ -91,15 +78,11 @@ FontInfo::FontInfo( const FontInfo& rInfo )
mpImplMetric->AddReference();
}
-
-
FontInfo::~FontInfo()
{
mpImplMetric->DeReference();
}
-
-
FontInfo& FontInfo::operator=( const FontInfo& rInfo )
{
Font::operator=( rInfo );
@@ -114,8 +97,6 @@ FontInfo& FontInfo::operator=( const FontInfo& rInfo )
return *this;
}
-
-
bool FontInfo::operator==( const FontInfo& rInfo ) const
{
if( !Font::operator==( rInfo ) )
@@ -127,8 +108,6 @@ bool FontInfo::operator==( const FontInfo& rInfo ) const
return false;
}
-
-
FontType FontInfo::GetType() const
{
return (mpImplMetric->IsScalable() ? TYPE_SCALABLE : TYPE_RASTER);
@@ -138,63 +117,45 @@ FontMetric::FontMetric( const FontMetric& rMetric )
: FontInfo( rMetric )
{}
-
-
long FontMetric::GetAscent() const
{
return mpImplMetric->GetAscent();
}
-
-
long FontMetric::GetDescent() const
{
return mpImplMetric->GetDescent();
}
-
-
long FontMetric::GetIntLeading() const
{
return mpImplMetric->GetIntLeading();
}
-
-
long FontMetric::GetExtLeading() const
{
return mpImplMetric->GetExtLeading();
}
-
-
long FontMetric::GetLineHeight() const
{
return mpImplMetric->GetLineHeight();
}
-
-
long FontMetric::GetSlant() const
{
return mpImplMetric->GetSlant();
}
-
-
FontMetric& FontMetric::operator =( const FontMetric& rMetric )
{
FontInfo::operator=( rMetric );
return *this;
}
-
-
bool FontMetric::operator==( const FontMetric& rMetric ) const
{
return FontInfo::operator==( rMetric );
}
-
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */