diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-22 22:16:20 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2013-10-30 19:37:53 -0400 |
commit | 82b6427174692248f73f1b99f19faf46a13d3e4f (patch) | |
tree | fbd89cc691fe661ecf361ee20e16d019265d84e8 /sc/inc/paramisc.hxx | |
parent | ed4f0a52f0110557f86a63d9758a71c6b2e09e06 (diff) |
Use enum for table op mode.
Change-Id: I51e110fb0a2b72689f529d7094389cc3e20dfbe0
Diffstat (limited to 'sc/inc/paramisc.hxx')
-rw-r--r-- | sc/inc/paramisc.hxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sc/inc/paramisc.hxx b/sc/inc/paramisc.hxx index 425bb1906a5f..b5545a9ab38d 100644 --- a/sc/inc/paramisc.hxx +++ b/sc/inc/paramisc.hxx @@ -40,25 +40,27 @@ struct ScSolveParam sal_Bool operator== ( const ScSolveParam& r ) const; }; -struct ScTabOpParam +/** + * Parameter for data table aka multiple operations. + */ +struct SC_DLLPUBLIC ScTabOpParam { + enum Mode { Column = 0, Row = 1, Both = 2 }; + ScRefAddress aRefFormulaCell; ScRefAddress aRefFormulaEnd; ScRefAddress aRefRowCell; ScRefAddress aRefColCell; - sal_uInt8 nMode; + Mode meMode; - ScTabOpParam() {}; + ScTabOpParam(); ScTabOpParam( const ScTabOpParam& r ); - ScTabOpParam( const ScRefAddress& rFormulaCell, - const ScRefAddress& rFormulaEnd, - const ScRefAddress& rRowCell, - const ScRefAddress& rColCell, - sal_uInt8 nMd); - ~ScTabOpParam() {}; + ScTabOpParam( + const ScRefAddress& rFormulaCell, const ScRefAddress& rFormulaEnd, + const ScRefAddress& rRowCell, const ScRefAddress& rColCell, Mode eMode ); ScTabOpParam& operator= ( const ScTabOpParam& r ); - sal_Bool operator== ( const ScTabOpParam& r ) const; + bool operator== ( const ScTabOpParam& r ) const; }; #endif // SC_PARAMISC_HXX |