summaryrefslogtreecommitdiff
path: root/editeng/inc/editdoc.hxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-19 15:13:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-20 10:08:05 +0200
commitf886d9cacba197cb92a75317fe7d24280dff6436 (patch)
tree8e95e9fc79121eb9d09a18022e253904a1ff184f /editeng/inc/editdoc.hxx
parent9a59220e82fa87d70db2735bed502846d0f9df05 (diff)
use tools::Long in editeng
Change-Id: Ib7014c353489461ad9489d9f3fefd59a32f8f877 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104524 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/inc/editdoc.hxx')
-rw-r--r--editeng/inc/editdoc.hxx28
1 files changed, 14 insertions, 14 deletions
diff --git a/editeng/inc/editdoc.hxx b/editeng/inc/editdoc.hxx
index f4ef714999e9..4b4f610772a5 100644
--- a/editeng/inc/editdoc.hxx
+++ b/editeng/inc/editdoc.hxx
@@ -350,10 +350,10 @@ namespace o3tl {
struct ExtraPortionInfo
{
- long nOrgWidth;
- long nWidthFullCompression;
+ tools::Long nOrgWidth;
+ tools::Long nWidthFullCompression;
- long nPortionOffsetX;
+ tools::Long nPortionOffsetX;
sal_uInt16 nMaxCompression100thPercent;
@@ -368,7 +368,7 @@ struct ExtraPortionInfo
ExtraPortionInfo();
~ExtraPortionInfo();
- void SaveOrgDXArray( const long* pDXArray, sal_Int32 nLen );
+ void SaveOrgDXArray( const tools::Long* pDXArray, sal_Int32 nLen );
};
@@ -461,8 +461,8 @@ public:
private:
CharPosArrayType aPositions;
- long nTxtWidth;
- long nStartPosX;
+ tools::Long nTxtWidth;
+ tools::Long nStartPosX;
sal_Int32 nStart; // could be replaced by nStartPortion
sal_Int32 nEnd; // could be replaced by nEndPortion
sal_Int32 nStartPortion;
@@ -504,8 +504,8 @@ public:
sal_uInt16 GetHeight() const { return nHeight; }
sal_uInt16 GetTxtHeight() const { return nTxtHeight; }
- void SetTextWidth( long n ) { nTxtWidth = n; }
- long GetTextWidth() const { return nTxtWidth; }
+ void SetTextWidth( tools::Long n ) { nTxtWidth = n; }
+ tools::Long GetTextWidth() const { return nTxtWidth; }
void SetMaxAscent( sal_uInt16 n ) { nMaxAscent = n; }
sal_uInt16 GetMaxAscent() const { return nMaxAscent; }
@@ -515,8 +515,8 @@ public:
sal_Int32 GetLen() const { return nEnd - nStart; }
- long GetStartPosX() const { return nStartPosX; }
- void SetStartPosX( long start );
+ tools::Long GetStartPosX() const { return nStartPosX; }
+ void SetStartPosX( tools::Long start );
Size CalcTextSize( ParaPortion& rParaPortion );
bool IsInvalid() const { return bInvalid; }
@@ -566,7 +566,7 @@ private:
EditLineList aLineList;
TextPortionList aTextPortionList;
ContentNode* pNode;
- long nHeight;
+ tools::Long nHeight;
ScriptTypePosInfos aScriptInfos;
WritingDirectionInfos aWritingDirectionInfos;
@@ -610,7 +610,7 @@ public:
bool IsEmpty() { return GetTextPortions().Count() == 1 && GetTextPortions()[0].GetLen() == 0; }
- long GetHeight() const { return ( bVisible ? nHeight : 0 ); }
+ tools::Long GetHeight() const { return ( bVisible ? nHeight : 0 ); }
sal_Int32 GetFirstLineOffset() const { return ( bVisible ? nFirstLineOffset : 0 ); }
void ResetHeight() { nHeight = 0; nFirstLineOffset = 0; }
@@ -638,8 +638,8 @@ public:
~ParaPortionList();
void Reset();
- long GetYOffset(const ParaPortion* pPPortion) const;
- sal_Int32 FindParagraph(long nYOffset) const;
+ tools::Long GetYOffset(const ParaPortion* pPPortion) const;
+ sal_Int32 FindParagraph(tools::Long nYOffset) const;
const ParaPortion* SafeGetObject(sal_Int32 nPos) const;
ParaPortion* SafeGetObject(sal_Int32 nPos);