Kaydet (Commit) 3d0a4663 authored tarafından Chris Sherlock's avatar Chris Sherlock

vcl: inline FontAttributes::AddMapName

Change-Id: I5d38fa30bc4a74a626c67ce18610f15e83eacd68
üst adcd5038
......@@ -77,21 +77,7 @@ public:
void IncreaseQualityBy( int nQualityAmount ) { mnQuality += nQualityAmount; }
void DecreaseQualityBy( int nQualityAmount ) { mnQuality -= nQualityAmount; }
void SetMapNames( OUString const & aMapNames ) { maMapNames = aMapNames; }
void AddMapName( OUString const & aMapName )
{
if( maMapNames.getLength() > 0 )
{
maMapNames += ";";
}
if (aMapName.getLength() == 0)
{
SAL_WARN("vcl.fonts", "New map name is empty");
return;
}
maMapNames += aMapName;
}
void AddMapName( OUString const& );
void SetBuiltInFontFlag( bool bIsBuiltInFont ) { mbDevice = bIsBuiltInFont; }
void SetEmbeddableFlag ( bool bEmbeddable ) { mbEmbeddable = bEmbeddable; }
......@@ -140,13 +126,29 @@ inline void FontAttributes::SetSymbolFlag( const bool bSymbolFlag )
}
}
inline void FontAttributes::SetCharSet( const rtl_TextEncoding aEncoding )
{
meCharSet = aEncoding;
mbSymbolFlag = meCharSet == RTL_TEXTENCODING_SYMBOL;
}
inline void FontAttributes::AddMapName( OUString const & aMapName )
{
if( maMapNames.getLength() > 0 )
{
maMapNames += ";";
}
if (aMapName.getLength() == 0)
{
SAL_WARN("vcl.fonts", "New map name is empty");
return;
}
maMapNames += aMapName;
}
#endif // INCLUDED_VCL_INC_FONTATTRIBUTES_HXX
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment