summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-03-08 16:54:17 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-03-10 14:04:33 +0900
commitb387a3fe97478961c494ca087475cd968d79408b (patch)
tree5dedaaf3c06f43cc4be82b9e9b298487fa25efd4 /include/svtools
parentb03a9ae9588f2d2ffd1460f6696d716f0799b769 (diff)
tabbar: use unique_ptr for buttons, sizer & clean-up
Change-Id: I4c479f0581e5fde7c3c2c21dcb2a88a2039e09ba
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/tabbar.hxx10
1 files changed, 3 insertions, 7 deletions
diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx
index 1fb7efb85831..ba2ecfdfcc19 100644
--- a/include/svtools/tabbar.hxx
+++ b/include/svtools/tabbar.hxx
@@ -315,13 +315,9 @@ class SVT_DLLPUBLIC TabBar : public vcl::Window
friend class ImplTabSizer;
private:
+ std::unique_ptr<TabBar_Impl> mpImpl;
+
ImplTabBarList* mpItemList;
- ImplTabButton* mpFirstBtn;
- ImplTabButton* mpPrevBtn;
- ImplTabButton* mpNextBtn;
- ImplTabButton* mpLastBtn;
- TabBar_Impl* mpImpl;
- TabBarEdit* mpEdit;
OUString maEditText;
Color maSelColor;
Color maSelTextColor;
@@ -461,7 +457,7 @@ public:
void EndEditMode( bool bCancel = false );
void SetEditText( const OUString& rText ) { maEditText = rText; }
const OUString& GetEditText() const { return maEditText; }
- bool IsInEditMode() const { return (mpEdit != NULL); }
+ bool IsInEditMode() const;
bool IsEditModeCanceled() const { return mbEditCanceled; }
sal_uInt16 GetEditPageId() const { return mnEditId; }