summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2018-05-22 14:44:39 +0900
committerTomaž Vajngerl <quikee@gmail.com>2021-05-11 16:08:36 +0200
commit83d91ebbbda2204af9a09a921055a850a16911e0 (patch)
treed18f2aca19fbc9d14e8c82392fdd61cef86276c8 /include/sfx2
parent0409c4f5de99a125865af0323036516eb62c5a73 (diff)
tdf#91874 Command Popup - HUD to search and run LO commands
This adds Command Popup functionality, which is a HUD like pop-up window, which can be used to search and run commands presented in the main menu (but not limited to that only). This is the initial version, which has limitation in searching and running the command (doesn't work for some currently). Change-Id: I92cdd3130b8de42ee0863c9e7154e7c7246d9377 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/115380 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/sfxsids.hrc2
-rw-r--r--include/sfx2/viewfrm.hxx3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc
index d72bddf3100b..6a420c13b095 100644
--- a/include/sfx2/sfxsids.hrc
+++ b/include/sfx2/sfxsids.hrc
@@ -387,7 +387,7 @@ class SvxSearchItem;
// default-ids for windows
-// free (SID_SFX_START + 610)
+#define SID_COMMAND_POPUP (SID_SFX_START + 610)
#define SID_NEWWINDOW (SID_SFX_START + 620)
#define SID_CLOSEWIN (SID_SFX_START + 621)
#define SID_VIEWSHELL (SID_SFX_START + 623)
diff --git a/include/sfx2/viewfrm.hxx b/include/sfx2/viewfrm.hxx
index c01da176b847..4585b722e487 100644
--- a/include/sfx2/viewfrm.hxx
+++ b/include/sfx2/viewfrm.hxx
@@ -44,6 +44,7 @@ class Size;
class SfxChildWindow;
class SfxInfoBarWindow;
enum class InfobarType;
+class CommandPopupHandler;
class SFX2_DLLPUBLIC SfxViewFrame: public SfxShell, public SfxListener
{
@@ -56,6 +57,8 @@ class SFX2_DLLPUBLIC SfxViewFrame: public SfxShell, public SfxListener
ImplSVWinData* m_pWinData;
sal_uInt16 m_nAdjustPosPixelLock;
+ std::unique_ptr<CommandPopupHandler> m_pCommandPopupHandler;
+
private:
SAL_DLLPRIVATE void Construct_Impl( SfxObjectShell *pObjSh );