summaryrefslogtreecommitdiff
path: root/vcl/inc
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2014-07-17 18:46:08 +0200
committerNorbert Thiebaud <nthiebaud@gmail.com>2014-07-20 22:10:58 +0200
commit2b8528a2745bec7909bfe2265d6110a9964eef47 (patch)
tree335279159b6f01de07ea23e15679e566ac000ed5 /vcl/inc
parent269e960ee190a8f568e99756c90cd98f1a7919ce (diff)
Use DeviceCorrdinate for DXArray in FillDXArray and ImplLayoutArgs
Change-Id: Ifba7104a13cf737200c81d1a1bd5ece9a29da60e
Diffstat (limited to 'vcl/inc')
-rw-r--r--vcl/inc/graphite_layout.hxx2
-rw-r--r--vcl/inc/graphite_serverfont.hxx19
-rw-r--r--vcl/inc/sallayout.hxx17
3 files changed, 25 insertions, 13 deletions
diff --git a/vcl/inc/graphite_layout.hxx b/vcl/inc/graphite_layout.hxx
index 6a84d54647fb..feb341d76b86 100644
--- a/vcl/inc/graphite_layout.hxx
+++ b/vcl/inc/graphite_layout.hxx
@@ -124,7 +124,7 @@ public:
// methods using string indexing
virtual sal_Int32 GetTextBreak(long nMaxWidth, long nCharExtra=0, int nFactor=1) const SAL_OVERRIDE;
- virtual long FillDXArray( sal_Int32* pDXArray ) const SAL_OVERRIDE;
+ virtual DeviceCoordinate FillDXArray( DeviceCoordinate* pDXArray ) const SAL_OVERRIDE;
virtual void ApplyDXArray(ImplLayoutArgs &rArgs, std::vector<int> & rDeltaWidth);
virtual void GetCaretPositions( int nArraySize, sal_Int32* pCaretXArray ) const SAL_OVERRIDE;
diff --git a/vcl/inc/graphite_serverfont.hxx b/vcl/inc/graphite_serverfont.hxx
index 180ed69236d9..b4540e20d600 100644
--- a/vcl/inc/graphite_serverfont.hxx
+++ b/vcl/inc/graphite_serverfont.hxx
@@ -68,11 +68,22 @@ public:
maImpl.DrawOffset() = maDrawOffset;
maImpl.AdjustLayout(rArgs);
};
- virtual long GetTextWidth() const SAL_OVERRIDE { return maImpl.GetTextWidth(); }
- virtual long FillDXArray( sal_Int32* dxa ) const SAL_OVERRIDE { return maImpl.FillDXArray(dxa); }
+ virtual long GetTextWidth() const SAL_OVERRIDE
+ {
+ return maImpl.GetTextWidth();
+ }
+ virtual DeviceCoordinate FillDXArray( DeviceCoordinate* dxa ) const SAL_OVERRIDE
+ {
+ return maImpl.FillDXArray(dxa);
+ }
virtual sal_Int32 GetTextBreak(long mw, long ce, int f) const SAL_OVERRIDE
- { return maImpl.GetTextBreak(mw, ce, f); }
- virtual void GetCaretPositions( int as, sal_Int32* cxa ) const SAL_OVERRIDE { maImpl.GetCaretPositions(as, cxa); }
+ {
+ return maImpl.GetTextBreak(mw, ce, f);
+ }
+ virtual void GetCaretPositions( int as, sal_Int32* cxa ) const SAL_OVERRIDE
+ {
+ maImpl.GetCaretPositions(as, cxa);
+ }
// used by display layers
virtual int GetNextGlyphs( int l, sal_GlyphId* gia, Point& p, int& s,
diff --git a/vcl/inc/sallayout.hxx b/vcl/inc/sallayout.hxx
index d191a38417cf..c69b42b0bfb4 100644
--- a/vcl/inc/sallayout.hxx
+++ b/vcl/inc/sallayout.hxx
@@ -29,6 +29,7 @@
#include <tools/gen.hxx>
#include <vcl/dllapi.h>
#include <vcl/vclenum.hxx> // for typedef sal_UCS4
+#include <vcl/devicecoordinate.hxx>
#ifndef _TOOLS_LANG_HXX
typedef unsigned short LanguageType;
@@ -76,8 +77,8 @@ public:
const sal_Unicode* mpStr;
// positioning related inputs
- const sal_Int32* mpDXArray; // in pixel units
- long mnLayoutWidth; // in pixel units
+ const DeviceCoordinate* mpDXArray; // in pixel units
+ DeviceCoordinate mnLayoutWidth; // in pixel units
int mnOrientation; // in 0-3600 system
// data for bidi and glyph+script fallback
@@ -89,8 +90,8 @@ public:
int nMinCharPos, int nEndCharPos, int nFlags,
const LanguageTag& rLanguageTag );
- void SetLayoutWidth( long nWidth ) { mnLayoutWidth = nWidth; }
- void SetDXArray( const sal_Int32* pDXArray ) { mpDXArray = pDXArray; }
+ void SetLayoutWidth( DeviceCoordinate nWidth ) { mnLayoutWidth = nWidth; }
+ void SetDXArray( const DeviceCoordinate* pDXArray ) { mpDXArray = pDXArray; }
void SetOrientation( int nOrientation ) { mnOrientation = nOrientation; }
void ResetPos()
@@ -171,7 +172,7 @@ public:
// methods using string indexing
virtual sal_Int32 GetTextBreak(long nMaxWidth, long nCharExtra=0, int nFactor=1) const = 0;
- virtual long FillDXArray( sal_Int32* pDXArray ) const = 0;
+ virtual DeviceCoordinate FillDXArray( DeviceCoordinate* pDXArray ) const = 0;
virtual long GetTextWidth() const { return FillDXArray( NULL ); }
virtual void GetCaretPositions( int nArraySize, sal_Int32* pCaretXArray ) const = 0;
virtual bool IsKashidaPosValid ( int /*nCharPos*/ ) const { return true; } // i60594
@@ -229,7 +230,7 @@ class VCL_PLUGIN_PUBLIC MultiSalLayout : public SalLayout
public:
virtual void DrawText( SalGraphics& ) const SAL_OVERRIDE;
virtual sal_Int32 GetTextBreak(long nMaxWidth, long nCharExtra, int nFactor) const SAL_OVERRIDE;
- virtual long FillDXArray( sal_Int32* pDXArray ) const SAL_OVERRIDE;
+ virtual DeviceCoordinate FillDXArray( DeviceCoordinate* pDXArray ) const SAL_OVERRIDE;
virtual void GetCaretPositions( int nArraySize, sal_Int32* pCaretXArray ) const SAL_OVERRIDE;
virtual int GetNextGlyphs( int nLen, sal_GlyphId* pGlyphIdxAry, Point& rPos,
int&, sal_Int32* pGlyphAdvAry, int* pCharPosAry,
@@ -329,7 +330,7 @@ public:
// used by upper layers
virtual long GetTextWidth() const SAL_OVERRIDE;
- virtual long FillDXArray( sal_Int32* pDXArray ) const SAL_OVERRIDE;
+ virtual DeviceCoordinate FillDXArray( DeviceCoordinate* pDXArray ) const SAL_OVERRIDE;
virtual sal_Int32 GetTextBreak(long nMaxWidth, long nCharExtra, int nFactor) const SAL_OVERRIDE;
virtual void GetCaretPositions( int nArraySize, sal_Int32* pCaretXArray ) const SAL_OVERRIDE;
@@ -347,7 +348,7 @@ protected:
virtual void DropGlyph( int nStart ) SAL_OVERRIDE;
virtual void Simplify( bool bIsBase ) SAL_OVERRIDE;
- bool GetCharWidths( sal_Int32* pCharWidths ) const;
+ bool GetCharWidths( DeviceCoordinate* pCharWidths ) const;
GlyphVector m_GlyphItems;