summaryrefslogtreecommitdiff
path: root/include/svtools
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-17 11:51:14 +0900
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2015-05-17 12:25:53 +0900
commite4164351dc311839f4a7eb2743be8af17592b8e5 (patch)
tree238d894fa2c4ec95052927de49db77a3d6277935 /include/svtools
parent6aab2eceaa386c14c2283631d3107cab7484f0f8 (diff)
tabbar: use a button for adding of tabs, move button before tabs
Change-Id: I89fcf7427694ea6fc9468220bae639b221d9ec28
Diffstat (limited to 'include/svtools')
-rw-r--r--include/svtools/tabbar.hxx10
1 files changed, 7 insertions, 3 deletions
diff --git a/include/svtools/tabbar.hxx b/include/svtools/tabbar.hxx
index b1b692bf5d1d..2e071306c82c 100644
--- a/include/svtools/tabbar.hxx
+++ b/include/svtools/tabbar.hxx
@@ -374,16 +374,20 @@ private:
SVT_DLLPRIVATE ImplTabBarItem* ImplGetLastTabBarItem( sal_uInt16 nItemCount );
SVT_DLLPRIVATE Rectangle ImplGetInsertTabRect(ImplTabBarItem* pItem) const;
- DECL_DLLPRIVATE_LINK( ImplClickHdl, ImplTabButton* );
+ DECL_DLLPRIVATE_LINK(ImplClickHdl, ImplTabButton*);
+
+ DECL_DLLPRIVATE_LINK(ImplAddClickHandler, void*);
ImplTabBarItem* seek( size_t i );
ImplTabBarItem* prev();
ImplTabBarItem* next();
+protected:
+ virtual void AddTabClick();
+
public:
static const sal_uInt16 APPEND;
static const sal_uInt16 PAGE_NOT_FOUND;
- static const sal_uInt16 INSERT_TAB_POS;
TabBar( vcl::Window* pParent, WinBits nWinStyle = WB_STDTABBAR );
virtual ~TabBar();
@@ -429,7 +433,7 @@ public:
sal_uInt16 GetPageCount() const;
sal_uInt16 GetPageId( sal_uInt16 nPos ) const;
sal_uInt16 GetPagePos( sal_uInt16 nPageId ) const;
- sal_uInt16 GetPageId( const Point& rPos, bool bCheckInsTab = false ) const;
+ sal_uInt16 GetPageId( const Point& rPos ) const;
Rectangle GetPageRect( sal_uInt16 nPageId ) const;
// returns the rectangle in which page tabs are drawn
Rectangle GetPageArea() const;