diff options
author | Akshay Deep <akshaydeepiitr@gmail.com> | 2017-07-20 19:08:28 +0530 |
---|---|---|
committer | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2017-07-25 21:26:39 +0200 |
commit | 06aacee86ec9e53928cc0c31906a8922babfe2b6 (patch) | |
tree | c0559e52b5c3b599f18b5b0fa5bdbaf07b161981 /include/sfx2 | |
parent | 987f8824b4f229590b54b11482da431d451412f1 (diff) |
Clear Recent View and Fav view using Right Click
Conflicts:
sfx2/inc/doc.hrc
sfx2/source/doc/doc.src
Change-Id: I0aa2919815a3fa63ee180b808834a8aa760af649
Reviewed-on: https://gerrit.libreoffice.org/40234
Reviewed-by: Akshay Deep <akshaydeepiitr@gmail.com>
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
Diffstat (limited to 'include/sfx2')
-rw-r--r-- | include/sfx2/charwin.hxx | 10 | ||||
-rw-r--r-- | include/sfx2/strings.hrc | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/sfx2/charwin.hxx b/include/sfx2/charwin.hxx index 2b58f5a0e9e1..51af2d7f56be 100644 --- a/include/sfx2/charwin.hxx +++ b/include/sfx2/charwin.hxx @@ -31,12 +31,19 @@ public: void SetFont( const vcl::Font& rFont ); void SetText( const OUString& rText ) override; void InsertCharToDoc(); + Point GetClickPosition() const; + + void createContextMenu(); virtual void Resize() override; virtual Size GetOptimalSize() const override; void setMouseClickHdl(const Link<SvxCharView*,void> &rLink); + void setClearClickHdl(const Link<SvxCharView*,void> &rLink); + void setClearAllClickHdl(const Link<SvxCharView*,void> &rLink); + + DECL_LINK(ContextMenuSelectHdl, Menu*, bool); protected: virtual void Paint(vcl::RenderContext& rRenderContext, const ::tools::Rectangle&) override; @@ -47,10 +54,13 @@ protected: private: long mnY; + Point maPosition; vcl::Font maFont; Link<SvxCharView*, void> maInsertCharHdl; Link<SvxCharView*, void> maMouseClickHdl; + Link<SvxCharView*, void> maClearClickHdl; + Link<SvxCharView*, void> maClearAllClickHdl; }; #endif diff --git a/include/sfx2/strings.hrc b/include/sfx2/strings.hrc index 1b0ea6ccb2ff..e72aa06253d1 100644 --- a/include/sfx2/strings.hrc +++ b/include/sfx2/strings.hrc @@ -276,6 +276,9 @@ #define STR_TEMPLATE_NAME9 NC_("STR_TEMPLATE_NAME9", "Sunset") #define STR_TEMPLATE_NAME10 NC_("STR_TEMPLATE_NAME10", "Vintage") +#define STR_CLEAR_CHAR NC_("STR_CLEAR_CHAR", "Clear") +#define STR_CLEAR_ALL_CHAR NC_("STR_CLEAR_ALL_CHAR", "Clear All") + #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |