summaryrefslogtreecommitdiff
path: root/editeng/inc/editeng/svxfont.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'editeng/inc/editeng/svxfont.hxx')
-rw-r--r--editeng/inc/editeng/svxfont.hxx38
1 files changed, 19 insertions, 19 deletions
diff --git a/editeng/inc/editeng/svxfont.hxx b/editeng/inc/editeng/svxfont.hxx
index f1e53b31276e..498ad5f296d4 100644
--- a/editeng/inc/editeng/svxfont.hxx
+++ b/editeng/inc/editeng/svxfont.hxx
@@ -42,7 +42,7 @@ class EDITENG_DLLPUBLIC SvxFont : public Font
LanguageType eLang; // Language
SvxCaseMap eCaseMap; // Textauszeichnung
short nEsc; // Grad der Hoch-/Tiefstellung
- BYTE nPropr; // Grad der Verkleinerung der Fonthoehe
+ sal_uInt8 nPropr; // Grad der Verkleinerung der Fonthoehe
short nKern; // Kerning in Pt
public:
@@ -54,10 +54,10 @@ public:
inline short GetEscapement() const { return nEsc; }
inline void SetEscapement( const short nNewEsc ) { nEsc = nNewEsc; }
- inline BYTE GetPropr() const { return nPropr; }
- inline void SetPropr( const BYTE nNewPropr ) { nPropr = nNewPropr; }
- inline void SetProprRel( const BYTE nNewPropr )
- { SetPropr( (BYTE)( (long)nNewPropr * (long)nPropr / 100L ) ); }
+ inline sal_uInt8 GetPropr() const { return nPropr; }
+ inline void SetPropr( const sal_uInt8 nNewPropr ) { nPropr = nNewPropr; }
+ inline void SetProprRel( const sal_uInt8 nNewPropr )
+ { SetPropr( (sal_uInt8)( (long)nNewPropr * (long)nPropr / 100L ) ); }
// Kerning
inline short GetFixKerning() const { return nKern; }
@@ -71,10 +71,10 @@ public:
{ eLang = eNewLan; Font::SetLanguage(eNewLan); }
// Is-Methoden:
- inline BOOL IsCaseMap() const { return SVX_CASEMAP_NOT_MAPPED != eCaseMap; }
- inline BOOL IsCapital() const { return SVX_CASEMAP_KAPITAELCHEN == eCaseMap; }
- inline BOOL IsKern() const { return 0 != nKern; }
- inline BOOL IsEsc() const { return 0 != nEsc; }
+ inline sal_Bool IsCaseMap() const { return SVX_CASEMAP_NOT_MAPPED != eCaseMap; }
+ inline sal_Bool IsCapital() const { return SVX_CASEMAP_KAPITAELCHEN == eCaseMap; }
+ inline sal_Bool IsKern() const { return 0 != nKern; }
+ inline sal_Bool IsEsc() const { return 0 != nEsc; }
// Versalien, Gemeine etc. beruecksichtigen
String CalcCaseMap( const String &rTxt ) const;
@@ -84,40 +84,40 @@ public:
#ifndef REDUCEDSVXFONT
// Kapitaelchenbearbeitung
void DoOnCapitals( SvxDoCapitals &rDo,
- const USHORT nPartLen = USHRT_MAX ) const;
+ const sal_uInt16 nPartLen = USHRT_MAX ) const;
void SetPhysFont( OutputDevice *pOut ) const;
Font ChgPhysFont( OutputDevice *pOut ) const;
Size GetCapitalSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen) const;
+ const sal_uInt16 nIdx, const sal_uInt16 nLen) const;
void DrawCapital( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx, const USHORT nLen ) const;
+ const sal_uInt16 nIdx, const sal_uInt16 nLen ) const;
Size GetPhysTxtSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen ) const;
+ const sal_uInt16 nIdx, const sal_uInt16 nLen ) const;
Size GetPhysTxtSize( const OutputDevice *pOut, const String &rTxt );
Size GetTxtSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN );
+ const sal_uInt16 nIdx = 0, const sal_uInt16 nLen = STRING_LEN );
void DrawText( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN ) const;
+ const sal_uInt16 nIdx = 0, const sal_uInt16 nLen = STRING_LEN ) const;
void QuickDrawText( OutputDevice *pOut, const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN, const sal_Int32* pDXArray = NULL ) const;
+ const sal_uInt16 nIdx = 0, const sal_uInt16 nLen = STRING_LEN, const sal_Int32* pDXArray = NULL ) const;
Size QuickGetTextSize( const OutputDevice *pOut, const String &rTxt,
- const USHORT nIdx, const USHORT nLen, sal_Int32* pDXArray = NULL ) const;
+ const sal_uInt16 nIdx, const sal_uInt16 nLen, sal_Int32* pDXArray = NULL ) const;
void DrawPrev( OutputDevice* pOut, Printer* pPrinter,
const Point &rPos, const String &rTxt,
- const USHORT nIdx = 0, const USHORT nLen = STRING_LEN ) const;
+ const sal_uInt16 nIdx = 0, const sal_uInt16 nLen = STRING_LEN ) const;
#endif // !REDUCEDSVXFONT
static void DrawArrow( OutputDevice &rOut, const Rectangle& rRect,
- const Size& rSize, const Color& rCol, BOOL bLeft );
+ const Size& rSize, const Color& rCol, sal_Bool bLeft );
SvxFont& operator=( const SvxFont& rFont );
SvxFont& operator=( const Font& rFont );
};