diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/sfxhelp.hxx | 3 | ||||
-rw-r--r-- | include/vcl/builder.hxx | 4 | ||||
-rw-r--r-- | include/vcl/help.hxx | 3 | ||||
-rw-r--r-- | include/vcl/weld.hxx | 3 |
4 files changed, 9 insertions, 4 deletions
diff --git a/include/sfx2/sfxhelp.hxx b/include/sfx2/sfxhelp.hxx index bdfaaf867143..99ca1a062f04 100644 --- a/include/sfx2/sfxhelp.hxx +++ b/include/sfx2/sfxhelp.hxx @@ -45,7 +45,8 @@ public: SfxHelp(); virtual ~SfxHelp() override; - virtual OUString GetHelpText( const OUString&, const vcl::Window* pWindow ) override; + virtual OUString GetHelpText(const OUString&, const vcl::Window* pWindow) override; + virtual OUString GetHelpText(const OUString&, const weld::Widget* pWindow) override; static OUString CreateHelpURL( const OUString& aCommandURL, const OUString& rModuleName ); static OUString GetDefaultHelpModule(); diff --git a/include/vcl/builder.hxx b/include/vcl/builder.hxx index a1a47b9f7047..5fdb061f7b1e 100644 --- a/include/vcl/builder.hxx +++ b/include/vcl/builder.hxx @@ -38,7 +38,7 @@ class PopupMenu; class SalInstanceBuilder; class ScreenshotTest; class ScrollBar; -class SvHeaderTabListBox; +class SvTabListBox; 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(SvHeaderTabListBox &rTarget, const ListStore &rStore, sal_uInt16 nActiveId); + void mungeModel(SvTabListBox &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/help.hxx b/include/vcl/help.hxx index 80353b263c09..2c467974fdc5 100644 --- a/include/vcl/help.hxx +++ b/include/vcl/help.hxx @@ -69,7 +69,8 @@ public: virtual bool Start(const OUString& rHelpId, const vcl::Window* pWindow); virtual bool Start(const OUString& rHelpId, weld::Widget* pWidget); virtual void SearchKeyword( const OUString& rKeyWord ); - virtual OUString GetHelpText( const OUString& aHelpURL, const vcl::Window* pWindow ); + virtual OUString GetHelpText(const OUString& aHelpURL, const vcl::Window* pWindow); + virtual OUString GetHelpText(const OUString& aHelpURL, const weld::Widget* pWidget); static void EnableContextHelp(); static void DisableContextHelp(); diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index f05e3408e207..1b9726ac556e 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -382,6 +382,7 @@ class VCL_DLLPUBLIC TreeView : virtual public Container protected: Link<TreeView&, void> m_aChangeHdl; Link<TreeView&, void> m_aRowActivatedHdl; + // if handler returns false, the expansion of the row is refused Link<TreeIter&, bool> m_aExpandingHdl; void signal_changed() { m_aChangeHdl.Call(*this); } @@ -438,6 +439,7 @@ public: virtual void set_top_entry(int pos) = 0; virtual std::vector<int> get_selected_rows() const = 0; virtual void set_font_color(int pos, const Color& rColor) const = 0; + virtual void scroll_to_row(int pos) = 0; //by text virtual OUString get_text(int row, int col = -1) const = 0; @@ -488,6 +490,7 @@ public: virtual void expand_row(TreeIter& rIter) = 0; virtual OUString get_text(const TreeIter& rIter) const = 0; virtual OUString get_id(const TreeIter& rIter) const = 0; + virtual void scroll_to_row(const TreeIter& rIter) = 0; void connect_expanding(const Link<TreeIter&, bool>& rLink) { m_aExpandingHdl = rLink; } |