Kaydet (Commit) 098bcbc7 authored tarafından Chris Sherlock's avatar Chris Sherlock

vcl: tabify fontattributes.hxx

Change-Id: I1318acdcd9fbf1d0b363248266e913954cc97e9b
üst 5ee8e22a
...@@ -38,44 +38,44 @@ public: ...@@ -38,44 +38,44 @@ public:
explicit ImplFontAttributes( const FontSelectPattern& ); explicit ImplFontAttributes( const FontSelectPattern& );
// device independent font functions // device independent font functions
const OUString& GetFamilyName() const { return maFamilyName; } const OUString& GetFamilyName() const { return maFamilyName; }
FontFamily GetFamilyType() const { return meFamily; } FontFamily GetFamilyType() const { return meFamily; }
const OUString& GetStyleName() const { return maStyleName; } const OUString& GetStyleName() const { return maStyleName; }
FontWeight GetWeight() const { return meWeight; } FontWeight GetWeight() const { return meWeight; }
FontItalic GetSlantType() const { return meItalic; } FontItalic GetSlantType() const { return meItalic; }
FontPitch GetPitch() const { return mePitch; } FontPitch GetPitch() const { return mePitch; }
FontWidth GetWidthType() const { return meWidthType; } FontWidth GetWidthType() const { return meWidthType; }
bool IsSymbolFont() const { return mbSymbolFlag; } bool IsSymbolFont() const { return mbSymbolFlag; }
void SetFamilyName(const OUString& sFamilyName) { maFamilyName = sFamilyName; } void SetFamilyName(const OUString& sFamilyName) { maFamilyName = sFamilyName; }
void SetStyleName( const OUString& sStyleName) { maStyleName = sStyleName; } void SetStyleName( const OUString& sStyleName) { maStyleName = sStyleName; }
void SetFamilyType(const FontFamily eFontFamily) { meFamily = eFontFamily; } void SetFamilyType(const FontFamily eFontFamily) { meFamily = eFontFamily; }
void SetPitch(const FontPitch ePitch ) { mePitch = ePitch; } void SetPitch(const FontPitch ePitch ) { mePitch = ePitch; }
void SetItalic(const FontItalic eItalic ) { meItalic = eItalic; } void SetItalic(const FontItalic eItalic ) { meItalic = eItalic; }
void SetWeight(const FontWeight eWeight ) { meWeight = eWeight; } void SetWeight(const FontWeight eWeight ) { meWeight = eWeight; }
void SetWidthType(const FontWidth eWidthType) { meWidthType = eWidthType; } void SetWidthType(const FontWidth eWidthType) { meWidthType = eWidthType; }
void SetSymbolFlag(const bool bSymbolFlag ) { mbSymbolFlag = bSymbolFlag; } void SetSymbolFlag(const bool bSymbolFlag ) { mbSymbolFlag = bSymbolFlag; }
bool CompareDeviceIndependentFontAttributes(const ImplFontAttributes& rOther) const; bool CompareDeviceIndependentFontAttributes(const ImplFontAttributes& rOther) const;
// Device dependent functions // Device dependent functions
int GetQuality() const { return mnQuality; } int GetQuality() const { return mnQuality; }
OUString GetMapNames() const { return maMapNames; } OUString GetMapNames() const { return maMapNames; }
bool IsBuiltInFont() const { return mbDevice; } bool IsBuiltInFont() const { return mbDevice; }
bool CanEmbed() const { return mbEmbeddable; } bool CanEmbed() const { return mbEmbeddable; }
bool CanSubset() const { return mbSubsettable; } bool CanSubset() const { return mbSubsettable; }
bool CanRotate() const { return mbOrientation; } bool CanRotate() const { return mbOrientation; }
bool HasMapNames() const { return (maMapNames.getLength() > 0); } bool HasMapNames() const { return (maMapNames.getLength() > 0); }
void SetQuality( int nQuality ) { mnQuality = nQuality; } void SetQuality( int nQuality ) { mnQuality = nQuality; }
void IncreaseQualityBy( int nQualityAmount ) { mnQuality += nQualityAmount; } void IncreaseQualityBy( int nQualityAmount ) { mnQuality += nQualityAmount; }
void DecreaseQualityBy( int nQualityAmount ) { mnQuality -= nQualityAmount; } void DecreaseQualityBy( int nQualityAmount ) { mnQuality -= nQualityAmount; }
void SetMapNames( OUString const & aMapNames ) { maMapNames = aMapNames; } void SetMapNames( OUString const & aMapNames ) { maMapNames = aMapNames; }
void AddMapName( OUString const & aMapName ) void AddMapName( OUString const & aMapName )
{ {
if( maMapNames.getLength() > 0 ) if( maMapNames.getLength() > 0 )
...@@ -100,66 +100,66 @@ public: ...@@ -100,66 +100,66 @@ public:
// Font metrics below // Font metrics below
// font instance attributes from the font request // font instance attributes from the font request
long GetWidth() { return mnWidth; } long GetWidth() { return mnWidth; }
short GetOrientation() { return mnOrientation; } short GetOrientation() { return mnOrientation; }
void SetWidth(long nWidth) { mnWidth=nWidth; } void SetWidth(long nWidth) { mnWidth=nWidth; }
void SetOrientation(short nOrientation) { mnOrientation=nOrientation; } void SetOrientation(short nOrientation) { mnOrientation=nOrientation; }
// font metrics measured for the font instance // font metrics measured for the font instance
long GetAscent() { return mnAscent; } long GetAscent() { return mnAscent; }
long GetDescent() { return mnDescent; } long GetDescent() { return mnDescent; }
long GetInternalLeading() { return mnIntLeading; } long GetInternalLeading() { return mnIntLeading; }
long GetExternalLeading() { return mnExtLeading; } long GetExternalLeading() { return mnExtLeading; }
int GetSlant() { return mnSlant; } int GetSlant() { return mnSlant; }
long GetMinKashida() { return mnMinKashida; } long GetMinKashida() { return mnMinKashida; }
void SetAscent(long nAscent) { mnAscent=nAscent; } void SetAscent(long nAscent) { mnAscent=nAscent; }
void SetDescent(long nDescent) { mnDescent=nDescent; } void SetDescent(long nDescent) { mnDescent=nDescent; }
void SetInternalLeading(long nIntLeading) { mnIntLeading = nIntLeading; } void SetInternalLeading(long nIntLeading) { mnIntLeading = nIntLeading; }
void SetExternalLeading(long nExtLeading) { mnExtLeading = nExtLeading; } void SetExternalLeading(long nExtLeading) { mnExtLeading = nExtLeading; }
void SetSlant(int nSlant) { mnSlant=nSlant; } void SetSlant(int nSlant) { mnSlant=nSlant; }
void SetMinKashida( long nMinKashida ) { mnMinKashida=nMinKashida; } void SetMinKashida( long nMinKashida ) { mnMinKashida=nMinKashida; }
// font attributes queried from the font instance // font attributes queried from the font instance
bool IsScalable() { return mbScalableFont; } bool IsScalable() { return mbScalableFont; }
bool IsTrueTypeFont() { return mbTrueTypeFont; } bool IsTrueTypeFont() { return mbTrueTypeFont; }
bool IsKernable() { return mbKernableFont; } bool IsKernable() { return mbKernableFont; }
bool IsFullstopCentered() { return mbFullstopCentered; } bool IsFullstopCentered() { return mbFullstopCentered; }
long GetBulletOffset() { return mnBulletOffset; } long GetBulletOffset() { return mnBulletOffset; }
void SetScalableFlag(bool bScalable) { mbScalableFont = bScalable; } void SetScalableFlag(bool bScalable) { mbScalableFont = bScalable; }
void SetTrueTypeFlag(bool bTrueTypeFont) { mbTrueTypeFont = bTrueTypeFont; } void SetTrueTypeFlag(bool bTrueTypeFont) { mbTrueTypeFont = bTrueTypeFont; }
void SetKernableFlag(bool bKernable) { mbKernableFont = bKernable; } void SetKernableFlag(bool bKernable) { mbKernableFont = bKernable; }
void SetFullstopCenteredFlag(bool bFullstopCentered) { mbFullstopCentered = bFullstopCentered; } void SetFullstopCenteredFlag(bool bFullstopCentered) { mbFullstopCentered = bFullstopCentered; }
void SetBulletOffset(long nBulletOffset) { mnBulletOffset = nBulletOffset; } void SetBulletOffset(long nBulletOffset) { mnBulletOffset = nBulletOffset; }
// font metrics that are usually derived from the measurements // font metrics that are usually derived from the measurements
long GetUnderlineSize() { return mnUnderlineSize; } long GetUnderlineSize() { return mnUnderlineSize; }
long GetUnderlineOffset() { return mnUnderlineOffset; } long GetUnderlineOffset() { return mnUnderlineOffset; }
long GetBoldUnderlineSize() { return mnBUnderlineSize; } long GetBoldUnderlineSize() { return mnBUnderlineSize; }
long GetBoldUnderlineOffset() { return mnBUnderlineOffset; } long GetBoldUnderlineOffset() { return mnBUnderlineOffset; }
long GetDoubleUnderlineSize() { return mnDUnderlineSize; } long GetDoubleUnderlineSize() { return mnDUnderlineSize; }
long GetDoubleUnderlineOffset1() { return mnDUnderlineOffset1; } long GetDoubleUnderlineOffset1() { return mnDUnderlineOffset1; }
long GetDoubleUnderlineOffset2() { return mnDUnderlineOffset2; } long GetDoubleUnderlineOffset2() { return mnDUnderlineOffset2; }
long GetWavelineUnderlineSize() { return mnWUnderlineSize; } long GetWavelineUnderlineSize() { return mnWUnderlineSize; }
long GetWavelineUnderlineOffset() { return mnWUnderlineOffset; } long GetWavelineUnderlineOffset() { return mnWUnderlineOffset; }
long GetAboveUnderlineSize() { return mnAboveUnderlineSize; } long GetAboveUnderlineSize() { return mnAboveUnderlineSize; }
long GetAboveUnderlineOffset() { return mnAboveUnderlineOffset; } long GetAboveUnderlineOffset() { return mnAboveUnderlineOffset; }
long GetAboveBoldUnderlineSize() { return mnAboveBUnderlineSize; } long GetAboveBoldUnderlineSize() { return mnAboveBUnderlineSize; }
long GetAboveBoldUnderlineOffset() { return mnAboveBUnderlineOffset; } long GetAboveBoldUnderlineOffset() { return mnAboveBUnderlineOffset; }
long GetAboveDoubleUnderlineSize() { return mnAboveDUnderlineSize; } long GetAboveDoubleUnderlineSize() { return mnAboveDUnderlineSize; }
long GetAboveDoubleUnderlineOffset1() { return mnAboveDUnderlineOffset1; } long GetAboveDoubleUnderlineOffset1() { return mnAboveDUnderlineOffset1; }
long GetAboveDoubleUnderlineOffset2() { return mnAboveDUnderlineOffset2; } long GetAboveDoubleUnderlineOffset2() { return mnAboveDUnderlineOffset2; }
long GetAboveWavelineUnderlineSize() { return mnAboveWUnderlineSize; } long GetAboveWavelineUnderlineSize() { return mnAboveWUnderlineSize; }
long GetAboveWavelineUnderlineOffset() { return mnAboveWUnderlineOffset; } long GetAboveWavelineUnderlineOffset() { return mnAboveWUnderlineOffset; }
long GetStrikeoutSize() { return mnStrikeoutSize; } long GetStrikeoutSize() { return mnStrikeoutSize; }
long GetStrikeoutOffset() { return mnStrikeoutOffset; } long GetStrikeoutOffset() { return mnStrikeoutOffset; }
long GetBoldStrikeoutSize() { return mnBStrikeoutSize; } long GetBoldStrikeoutSize() { return mnBStrikeoutSize; }
long GetBoldStrikeoutOffset() { return mnBStrikeoutOffset; } long GetBoldStrikeoutOffset() { return mnBStrikeoutOffset; }
long GetDoubleStrikeoutSize() { return mnDStrikeoutSize; } long GetDoubleStrikeoutSize() { return mnDStrikeoutSize; }
long GetDoubleStrikeoutOffset1() { return mnDStrikeoutOffset1; } long GetDoubleStrikeoutOffset1() { return mnDStrikeoutOffset1; }
long GetDoubleStrikeoutOffset2() { return mnDStrikeoutOffset2; } long GetDoubleStrikeoutOffset2() { return mnDStrikeoutOffset2; }
void ImplInitTextLineSize( const OutputDevice* pDev ); void ImplInitTextLineSize( const OutputDevice* pDev );
......
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