summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorVert D <devoptmsoi@gmx.com>2020-12-26 20:41:53 -0500
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-03-26 08:46:28 +0100
commit18aa2169c9adf41fa5c9a02ad81d4f68a34509e3 (patch)
tree6ca7f5768989548a014a2a57376bfcb92e6c7c7a /include
parente51824788d59b060b93d6632c1498fa71fbd9e69 (diff)
Added delete keyinput to listview, fixed reload() issues: solves tdf#138884
*Added delete keyinput to listview. *Views Buttons set focus to the appropiate widget. *Fixed listview reload() issues. Change-Id: I21379fd98b491b0ed56a3997155c7bb49a5c2d3e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108365 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/sfx2/listview.hxx2
-rw-r--r--include/sfx2/templatedlglocalview.hxx6
2 files changed, 8 insertions, 0 deletions
diff --git a/include/sfx2/listview.hxx b/include/sfx2/listview.hxx
index cb7eb23b5a73..4f7e37a49671 100644
--- a/include/sfx2/listview.hxx
+++ b/include/sfx2/listview.hxx
@@ -53,6 +53,8 @@ public:
void unselect_all() { mxTreeView->unselect_all(); }
+ void grab_focus() { mxTreeView->grab_focus(); }
+
void remove(const OUString& rId);
void rename(const OUString& rId, const OUString& rTitle);
diff --git a/include/sfx2/templatedlglocalview.hxx b/include/sfx2/templatedlglocalview.hxx
index c6caca46f519..bdae9eb44e35 100644
--- a/include/sfx2/templatedlglocalview.hxx
+++ b/include/sfx2/templatedlglocalview.hxx
@@ -26,6 +26,10 @@ public:
void showRegion(std::u16string_view rName);
+ void reload();
+
+ virtual bool KeyInput(const KeyEvent& rKEvt) override;
+
void createContextMenu(const bool bIsDefault, const bool bIsBuiltIn);
virtual void Show() override;
@@ -56,6 +60,8 @@ private:
DECL_LINK(PopupMenuHdl, const CommandEvent&, bool);
+ DECL_LINK(KeyPressHdl, const KeyEvent&, bool);
+
TemplateViewMode mViewMode;
};