diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-10 12:06:06 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-02-13 08:17:42 +0200 |
commit | 62232e60bf2e87b216abd8cd22d5f5acc4338c57 (patch) | |
tree | 08ff4387ef6cdbd0e75def8211011ab30c090b07 /sw/source/core/inc/tblrwcl.hxx | |
parent | d8499c45eb9079cba4ac9b36c3e89f30e74fdf6a (diff) |
convert SplitTable_HeadlineOption to scoped enum
Change-Id: I5a9ea036b8827a84e646488b2b57012ebadd4d0a
Diffstat (limited to 'sw/source/core/inc/tblrwcl.hxx')
-rw-r--r-- | sw/source/core/inc/tblrwcl.hxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sw/source/core/inc/tblrwcl.hxx b/sw/source/core/inc/tblrwcl.hxx index c78c2fa798ce..05f48f4ab131 100644 --- a/sw/source/core/inc/tblrwcl.hxx +++ b/sw/source/core/inc/tblrwcl.hxx @@ -66,12 +66,13 @@ class SwCollectTableLineBoxes std::vector<sal_uInt16> aPosArr; std::vector<SwTableBox*> m_Boxes; SwHistory* pHst; - sal_uInt16 nMode, nWidth; + SplitTable_HeadlineOption nMode; + sal_uInt16 nWidth; bool bGetFromTop : 1; bool bGetValues : 1; public: - SwCollectTableLineBoxes( bool bTop, sal_uInt16 nMd = 0, SwHistory* pHist=nullptr ) + SwCollectTableLineBoxes( bool bTop, SplitTable_HeadlineOption nMd = SplitTable_HeadlineOption::NONE, SwHistory* pHist=nullptr ) : pHst( pHist ), nMode( nMd ), nWidth( 0 ), bGetFromTop( bTop ), bGetValues( true ) @@ -95,7 +96,7 @@ public: bool IsGetFromTop() const { return bGetFromTop; } bool IsGetValues() const { return bGetValues; } - sal_uInt16 GetMode() const { return nMode; } + SplitTable_HeadlineOption GetMode() const { return nMode; } void SetValues( bool bFlag ) { bGetValues = false; nWidth = 0; bGetFromTop = bFlag; } bool Resize( sal_uInt16 nOffset, sal_uInt16 nWidth ); |