Kaydet (Commit) b387a3fe authored tarafından Tomaž Vajngerl's avatar Tomaž Vajngerl

tabbar: use unique_ptr for buttons, sizer & clean-up

Change-Id: I4c479f0581e5fde7c3c2c21dcb2a88a2039e09ba
üst b03a9ae9
...@@ -315,13 +315,9 @@ class SVT_DLLPUBLIC TabBar : public vcl::Window ...@@ -315,13 +315,9 @@ class SVT_DLLPUBLIC TabBar : public vcl::Window
friend class ImplTabSizer; friend class ImplTabSizer;
private: private:
std::unique_ptr<TabBar_Impl> mpImpl;
ImplTabBarList* mpItemList; ImplTabBarList* mpItemList;
ImplTabButton* mpFirstBtn;
ImplTabButton* mpPrevBtn;
ImplTabButton* mpNextBtn;
ImplTabButton* mpLastBtn;
TabBar_Impl* mpImpl;
TabBarEdit* mpEdit;
OUString maEditText; OUString maEditText;
Color maSelColor; Color maSelColor;
Color maSelTextColor; Color maSelTextColor;
...@@ -461,7 +457,7 @@ public: ...@@ -461,7 +457,7 @@ public:
void EndEditMode( bool bCancel = false ); void EndEditMode( bool bCancel = false );
void SetEditText( const OUString& rText ) { maEditText = rText; } void SetEditText( const OUString& rText ) { maEditText = rText; }
const OUString& GetEditText() const { return maEditText; } const OUString& GetEditText() const { return maEditText; }
bool IsInEditMode() const { return (mpEdit != NULL); } bool IsInEditMode() const;
bool IsEditModeCanceled() const { return mbEditCanceled; } bool IsEditModeCanceled() const { return mbEditCanceled; }
sal_uInt16 GetEditPageId() const { return mnEditId; } sal_uInt16 GetEditPageId() const { return mnEditId; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment