diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-11-21 15:13:49 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-11-21 22:10:00 +0100 |
commit | 6d250d56ed9b6755a3f8131be39fc0537c3d862c (patch) | |
tree | 1ba55f2c90cb88f546825af5a0a8de57a50e5c66 /include/vcl | |
parent | c986c8852cd1156aee870d21cfb4044d3b05a933 (diff) |
add TreeView header support
Change-Id: If3dd296e962b08120e07c35065bc18441691b7fd
Reviewed-on: https://gerrit.libreoffice.org/63730
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/builder.hxx | 4 | ||||
-rw-r--r-- | include/vcl/headbar.hxx | 2 | ||||
-rw-r--r-- | include/vcl/svtabbx.hxx | 3 |
3 files changed, 6 insertions, 3 deletions
diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx index 5fdb061f7b1e..a1a47b9f7047 100644 --- a/include/vcl/builder.hxx +++ b/include/vcl/builder.hxx @@ -38,7 +38,7 @@ class PopupMenu; class SalInstanceBuilder; class ScreenshotTest; class ScrollBar; -class SvTabListBox; +class SvHeaderTabListBox; class Slider; class DateField; class TimeField; @@ -220,7 +220,7 @@ private: const ListStore* get_model_by_name(const OString& sID) const; void mungeModel(ListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId); void mungeModel(ComboBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId); - void mungeModel(SvTabListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId); + void mungeModel(SvHeaderTabListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId); typedef stringmap TextBuffer; const TextBuffer* get_buffer_by_name(const OString& sID) const; diff --git a/include/vcl/headbar.hxx b/include/vcl/headbar.hxx index 046ad7079a24..af6c99a56625 100644 --- a/include/vcl/headbar.hxx +++ b/include/vcl/headbar.hxx @@ -277,6 +277,8 @@ public: virtual void StateChanged( StateChangedType nStateChange ) override; virtual void DataChanged( const DataChangedEvent& rDCEvt ) override; + virtual Size GetOptimalSize() const override; + virtual void EndDrag(); virtual void Select(); virtual void DoubleClick(); diff --git a/include/vcl/svtabbx.hxx b/include/vcl/svtabbx.hxx index a49ca16bc992..066bbb929158 100644 --- a/include/vcl/svtabbx.hxx +++ b/include/vcl/svtabbx.hxx @@ -141,7 +141,8 @@ public: virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& ) override; - void InitHeaderBar( HeaderBar* pHeaderBar ); + void InitHeaderBar(HeaderBar* pHeaderBar); + HeaderBar* GetHeaderBar(); static bool IsItemChecked( SvTreeListEntry* pEntry, sal_uInt16 nCol ); virtual SvTreeListEntry* InsertEntryToColumn( const OUString&, sal_uLong nPos = TREELIST_APPEND, |