diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-18 18:21:12 +0200 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2014-07-20 22:10:59 +0200 |
commit | cd3d26b7edbce67805259a71e4118223e02ebdd4 (patch) | |
tree | fbb103d9877275f80eab075f22a8e0753fccf151 /sw/source/core/inc/scriptinfo.hxx | |
parent | 8e21a02520cbd2fdc09df1ca675f4aa46a02d5f6 (diff) |
vcl consitent use of long for corrdinate
most of length in vcl are calculated in 'long'
but array of X position tend to be in sal_Int32.
As a prep work to be able to support 'double'
as the base type of Device Coordinate, harmonize
the use of 'long' for non-float coordinate.
Change-Id: I7cb33301ff6a5e2c62247b36a4e07e168a58a323
Diffstat (limited to 'sw/source/core/inc/scriptinfo.hxx')
-rw-r--r-- | sw/source/core/inc/scriptinfo.hxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/inc/scriptinfo.hxx b/sw/source/core/inc/scriptinfo.hxx index 001bc3d48c03..6ed350960d19 100644 --- a/sw/source/core/inc/scriptinfo.hxx +++ b/sw/source/core/inc/scriptinfo.hxx @@ -251,7 +251,7 @@ public: sal_uInt16 HasKana( sal_Int32 nStart, const sal_Int32 nEnd ) const; // modifies the kerning array according to a given compress value - long Compress( sal_Int32* pKernArray, sal_Int32 nIdx, sal_Int32 nLen, + long Compress( long* pKernArray, sal_Int32 nIdx, sal_Int32 nLen, const sal_uInt16 nCompress, const sal_uInt16 nFontHeight, Point* pPoint = NULL ) const; @@ -271,8 +271,8 @@ public: The value which has to be added to a kashida opportunity. @return The number of kashida opportunities in the given range */ - sal_Int32 KashidaJustify( sal_Int32* pKernArray, sal_Int32* pScrArray, - sal_Int32 nStt, sal_Int32 nLen, long nSpaceAdd = 0) const; + sal_Int32 KashidaJustify( long* pKernArray, long* pScrArray, + sal_Int32 nStt, sal_Int32 nLen, long nSpaceAdd = 0) const; /** Clears array of kashidas marked as invalid */ @@ -344,10 +344,10 @@ public: The value which has to be added to the cells. @return The number of extra spaces in the given range */ - static sal_Int32 ThaiJustify( const OUString& rTxt, sal_Int32* pKernArray, - sal_Int32* pScrArray, sal_Int32 nIdx, - sal_Int32 nLen, sal_Int32 nNumberOfBlanks = 0, - long nSpaceAdd = 0 ); + static sal_Int32 ThaiJustify( const OUString& rTxt, long* pKernArray, + long* pScrArray, sal_Int32 nIdx, + sal_Int32 nLen, sal_Int32 nNumberOfBlanks = 0, + long nSpaceAdd = 0 ); static SwScriptInfo* GetScriptInfo( const SwTxtNode& rNode, bool bAllowInvalid = false ); |