summaryrefslogtreecommitdiff
path: root/include/vcl/texteng.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-09-16 10:09:58 +0200
committerNoel Grandin <noel@peralex.com>2014-09-18 08:54:37 +0200
commit60e78fbb806bb45e635ba1de45ceffe187938ac0 (patch)
tree17ff5aaa57f4d23e177f1fe423def1691139a4a8 /include/vcl/texteng.hxx
parent9c818268767d6a1c1bc731ae30c45883bab987e7 (diff)
fdo#82577: Handle Font
Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
Diffstat (limited to 'include/vcl/texteng.hxx')
-rw-r--r--include/vcl/texteng.hxx22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx
index 9da46801085c..bb4a1039af5e 100644
--- a/include/vcl/texteng.hxx
+++ b/include/vcl/texteng.hxx
@@ -111,16 +111,16 @@ private:
LocaleDataWrapper* mpLocaleDataWrapper;
- Font maFont;
+ vcl::Font maFont;
Color maTextColor;
long mnCharHeight;
- sal_uInt16 mnFixCharWidth100;
+ sal_uInt16 mnFixCharWidth100;
- sal_uLong mnMaxTextLen;
- sal_uLong mnMaxTextWidth;
- sal_uLong mnCurTextWidth;
- sal_uLong mnCurTextHeight;
- sal_uLong mnDefTab;
+ sal_uLong mnMaxTextLen;
+ sal_uLong mnMaxTextWidth;
+ sal_uLong mnCurTextWidth;
+ sal_uLong mnCurTextHeight;
+ sal_uLong mnDefTab;
TxtAlign meAlign;
@@ -182,7 +182,7 @@ protected:
sal_uInt16 SplitTextPortion( sal_uLong nPara, sal_uInt16 nPos );
void CreateTextPortions( sal_uLong nPara, sal_uInt16 nStartPos );
void RecalcTextPortion( sal_uLong nPara, sal_uInt16 nStartPos, short nNewChars );
- void SeekCursor( sal_uLong nNode, sal_uInt16 nPos, Font& rFont, OutputDevice* pOutDev );
+ void SeekCursor( sal_uLong nNode, sal_uInt16 nPos, vcl::Font& rFont, OutputDevice* pOutDev );
void FormatDoc();
void FormatFullDoc();
@@ -209,7 +209,7 @@ protected:
sal_uLong CalcTextHeight();
sal_uLong CalcParaHeight( sal_uLong nParagraph ) const;
sal_uLong CalcTextWidth( sal_uLong nPara );
- sal_uLong CalcTextWidth( sal_uLong nPara, sal_uInt16 nPortionStart, sal_uInt16 nPortionLen, const Font* pFont = 0 );
+ sal_uLong CalcTextWidth( sal_uLong nPara, sal_uInt16 nPortionStart, sal_uInt16 nPortionLen, const vcl::Font* pFont = 0 );
Range GetInvalidYOffsets( sal_uLong nPortion );
// for Undo/Redo
@@ -234,8 +234,8 @@ public:
sal_uLong GetTextLen( LineEnd aSeparator = LINEEND_LF ) const;
sal_uLong GetTextLen( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
- void SetFont( const Font& rFont );
- const Font& GetFont() const { return maFont; }
+ void SetFont( const vcl::Font& rFont );
+ const vcl::Font& GetFont() const { return maFont; }
sal_uInt16 GetDefTab() const;