diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-14 08:39:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-03-15 08:35:10 +0000 |
commit | 8ccbc16b5e3f94b8db105232d7085a8553e6bc03 (patch) | |
tree | 85b8affc4e3916a21c6b303c90dc0f080d464bbf /sw/inc | |
parent | 7fafd1aea08ad036ef48f415db5df93df218bf6e (diff) |
convert SvxFrameDirection to scoped enum
Based on the casts in chart2/source/view/main/ChartView.cxx
and the similarity of naming of values, I conclude that this
enum was intended to abstract over css::text::WritingMode2.
Added a comment to that effect.
Change-Id: I3af8bbe8b6ac8c4a9375f6ccde145b98b9c69a57
Reviewed-on: https://gerrit.libreoffice.org/35164
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/crsrsh.hxx | 2 | ||||
-rw-r--r-- | sw/inc/doc.hxx | 2 | ||||
-rw-r--r-- | sw/inc/node.hxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sw/inc/crsrsh.hxx b/sw/inc/crsrsh.hxx index 064990b927c0..37a14b7b2eb5 100644 --- a/sw/inc/crsrsh.hxx +++ b/sw/inc/crsrsh.hxx @@ -261,7 +261,7 @@ private: SAL_DLLPRIVATE bool LRMargin( bool, bool bAPI = false ); SAL_DLLPRIVATE bool IsAtLRMargin( bool, bool bAPI = false ) const; - SAL_DLLPRIVATE short GetTextDirection( const Point* pPt = nullptr ) const; + SAL_DLLPRIVATE SvxFrameDirection GetTextDirection( const Point* pPt = nullptr ) const; SAL_DLLPRIVATE bool isInHiddenTextFrame(SwShellCursor* pShellCursor); diff --git a/sw/inc/doc.hxx b/sw/inc/doc.hxx index 1a6545898c8e..bc20780a04de 100644 --- a/sw/inc/doc.hxx +++ b/sw/inc/doc.hxx @@ -687,7 +687,7 @@ public: void ChangeAuthorityData(const SwAuthEntry* pNewData); bool IsInHeaderFooter( const SwNodeIndex& rIdx ) const; - short GetTextDirection( const SwPosition& rPos, + SvxFrameDirection GetTextDirection( const SwPosition& rPos, const Point* pPt = nullptr ) const; bool IsInVerticalText( const SwPosition& rPos ) const; diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index a9a52227b7e9..83fbbd2da269 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -468,7 +468,7 @@ public: /** determines the text direction for a certain position. @return -1, if text direction could *not* be determined. */ - short GetTextDirection( const SwPosition& rPos, + SvxFrameDirection GetTextDirection( const SwPosition& rPos, const Point* pPt ) const; void SetModifyAtAttr( bool bSetModifyAtAttr ) const { mbSetModifyAtAttr = bSetModifyAtAttr; } |