diff options
author | Kshitij Pathania <kshitijpathania@gmail.com> | 2018-07-02 18:48:19 +0530 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2018-07-04 12:46:01 +0200 |
commit | d05b7b32d9ecb6fcb4a268eb68cdcee09bafa6dd (patch) | |
tree | c82f797131cfbdfd8933daad0fea249b50c49ad6 /include | |
parent | ea39c41fdf63191579d25f327db81db14862251c (diff) |
Notebookbar:Context for printpreview is now working
Also the context stuff is now working well even
after print preview is set
Change-Id: Ia43f512394cf4d162b4019257c039aecb664df22
Reviewed-on: https://gerrit.libreoffice.org/56740
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/EnumContext.hxx | 2 | ||||
-rw-r--r-- | include/vcl/notebookbar.hxx | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/include/vcl/EnumContext.hxx b/include/vcl/EnumContext.hxx index fb64302ccf4d..d5f1e91aa1f4 100644 --- a/include/vcl/EnumContext.hxx +++ b/include/vcl/EnumContext.hxx @@ -96,7 +96,7 @@ public: Text, TextObject, Trendline, - + Printpreview, // Default context of an application. Do we need this? Default, diff --git a/include/vcl/notebookbar.hxx b/include/vcl/notebookbar.hxx index f3490bfeea89..535f157e7810 100644 --- a/include/vcl/notebookbar.hxx +++ b/include/vcl/notebookbar.hxx @@ -41,10 +41,13 @@ public: void DataChanged(const DataChangedEvent& rDCEvt) override; + void ControlListener(bool bListen); + private: VclPtr<SystemWindow> m_pSystemWindow; css::uno::Reference<css::ui::XContextChangeEventListener> m_pEventListener; std::vector<NotebookbarContextControl*> m_pContextContainers; + css::uno::Reference<css::frame::XFrame> mxFrame; AllSettings DefaultSettings; AllSettings PersonaSettings; |