diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-28 23:56:12 -0500 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-01-29 09:27:47 -0500 |
commit | 0532733965f78f71a41983815d4e0525c07f9019 (patch) | |
tree | af2caa6e50bf7289e8a35612bc6b7ba544ee97eb /sc/source/ui/inc/editable.hxx | |
parent | 80f5a837f2d42cc2bc972dcfe88e5f39aa514d9c (diff) |
Bool cleanup with ScEditableTester.
Change-Id: If4ae85bec451897f5c22397f4301200d1d3c77ac
Diffstat (limited to 'sc/source/ui/inc/editable.hxx')
-rw-r--r-- | sc/source/ui/inc/editable.hxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sc/source/ui/inc/editable.hxx b/sc/source/ui/inc/editable.hxx index 6213e487cf31..2760c04c8e4c 100644 --- a/sc/source/ui/inc/editable.hxx +++ b/sc/source/ui/inc/editable.hxx @@ -31,11 +31,10 @@ class ScRange; class ScEditableTester { - sal_Bool bIsEditable; - sal_Bool bOnlyMatrix; + bool mbIsEditable; + bool mbOnlyMatrix; public: - // no test in ctor ScEditableTester(); // calls TestBlock @@ -56,8 +55,6 @@ public: // calls TestView ScEditableTester( ScViewFunc* pView ); - ~ScEditableTester() {} - // Several calls to the Test... methods check if *all* of the ranges // are editable. For several independent checks, Reset() has to be used. void TestBlock( ScDocument* pDoc, SCTAB nTab, @@ -69,8 +66,8 @@ public: void TestSelection( ScDocument* pDoc, const ScMarkData& rMark ); void TestView( ScViewFunc* pView ); - sal_Bool IsEditable() const { return bIsEditable; } - sal_Bool IsFormatEditable() const { return bIsEditable || bOnlyMatrix; } + bool IsEditable() const { return mbIsEditable; } + bool IsFormatEditable() const { return mbIsEditable || mbOnlyMatrix; } sal_uInt16 GetMessageId() const; }; |