summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-14 18:22:21 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-14 18:23:02 +0100
commitb481928a2104bb659021bd0795c73fcf64129c99 (patch)
treeec2a790c7dd2bf09ee4faf235c2a225f4b1c8720 /include/vcl
parent4e1448d43e08d3f0a6ff67e75346e9559ad2af09 (diff)
Clean up uses of integer types in vcl/texteng
Change-Id: Ic70f57784e69cd82910d834c43a65bce4c00caea
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/texteng.hxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/vcl/texteng.hxx b/include/vcl/texteng.hxx
index 469594ef1c6c..58c4b58f0110 100644
--- a/include/vcl/texteng.hxx
+++ b/include/vcl/texteng.hxx
@@ -19,6 +19,10 @@
#ifndef INCLUDED_VCL_TEXTENG_HXX
#define INCLUDED_VCL_TEXTENG_HXX
+#include <sal/config.h>
+
+#include <cstddef>
+
#include <vcl/dllapi.h>
#include <vcl/vclptr.hxx>
#include <rtl/ustring.hxx>
@@ -174,7 +178,7 @@ protected:
bool CreateLines( sal_uInt32 nPara );
void CreateAndInsertEmptyLine( sal_uInt32 nPara );
void ImpBreakLine( sal_uInt32 nPara, TextLine* pLine, TETextPortion* pPortion, sal_Int32 nPortionStart, long nRemainingWidth );
- sal_uInt16 SplitTextPortion( sal_uInt32 nPara, sal_Int32 nPos );
+ std::size_t SplitTextPortion( sal_uInt32 nPara, sal_Int32 nPos );
void CreateTextPortions( sal_uInt32 nPara, sal_Int32 nStartPos );
void RecalcTextPortion( sal_uInt32 nPara, sal_Int32 nStartPos, sal_Int32 nNewChars );
void SeekCursor( sal_uInt32 nNode, sal_Int32 nPos, vcl::Font& rFont, OutputDevice* pOutDev );
@@ -192,7 +196,7 @@ protected:
sal_Int32 GetCharPos( sal_uInt32 nPara, std::vector<TextLine>::size_type nLine, long nDocPosX, bool bSmart = false );
Rectangle GetEditCursor( const TextPaM& rPaM, bool bSpecial, bool bPreferPortionStart = false );
sal_Int32 ImpFindIndex( sal_uInt32 nPortion, const Point& rPosInPara, bool bSmart );
- long ImpGetPortionXOffset( sal_uInt32 nPara, TextLine* pLine, sal_uInt16 nTextPortion );
+ long ImpGetPortionXOffset( sal_uInt32 nPara, TextLine* pLine, std::size_t nTextPortion );
long ImpGetXPos( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, bool bPreferPortionStart = false );
long ImpGetOutputOffset( sal_uInt32 nPara, TextLine* pLine, sal_Int32 nIndex, sal_Int32 nIndex2 );
sal_uInt8 ImpGetRightToLeft( sal_uInt32 nPara, sal_Int32 nPos );