diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-11 15:55:24 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-11 22:23:21 +0100 |
commit | 5f9368a35d641c5b611fab9945969e92a0f368a1 (patch) | |
tree | ad5cf8982fdeeb086854313e1dfe864cb5126534 /include/svtools | |
parent | 805b15ce536e3d6c40d0dc4f98b5aa6ffa5344c0 (diff) |
weld ODocumentLinkDialog
Change-Id: I9dd3a25e68da00acff24f5ccfafbfc97d9efcf54
Reviewed-on: https://gerrit.libreoffice.org/69058
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/svtools')
-rw-r--r-- | include/svtools/inettbc.hxx | 12 | ||||
-rw-r--r-- | include/svtools/urlcontrol.hxx | 2 |
2 files changed, 10 insertions, 4 deletions
diff --git a/include/svtools/inettbc.hxx b/include/svtools/inettbc.hxx index c62754c6eb25..76858c3b9b1a 100644 --- a/include/svtools/inettbc.hxx +++ b/include/svtools/inettbc.hxx @@ -100,8 +100,11 @@ class SVT_DLLPUBLIC URLBox OUString aBaseURL; rtl::Reference< MatchContext_Impl > pCtx; std::unique_ptr<SvtURLBox_Impl> pImpl; + INetProtocol eSmartProtocol; bool bHistoryDisabled : 1; + Link<weld::ComboBox&, void> aChangeHdl; + std::unique_ptr<weld::ComboBox> m_xWidget; DECL_DLLPRIVATE_LINK( TryAutoComplete, Timer*, void); @@ -115,21 +118,26 @@ public: URLBox(std::unique_ptr<weld::ComboBox> pWidget); ~URLBox(); - void SetText(const OUString& rStr) { m_xWidget->set_entry_text(rStr); } + void set_entry_text(const OUString& rStr) { m_xWidget->set_entry_text(rStr); } void Clear() { m_xWidget->clear(); } void connect_entry_activate(const Link<weld::ComboBox&, bool>& rLink) { m_xWidget->connect_entry_activate(rLink); } - void connect_changed(const Link<weld::ComboBox&, void>& rLink) { m_xWidget->connect_changed(rLink); } + void connect_changed(const Link<weld::ComboBox&, void>& rLink) { aChangeHdl = rLink; } void append_text(const OUString& rStr) { m_xWidget->append_text(rStr); } OUString get_active_text() const { return m_xWidget->get_active_text(); } + void grab_focus() { m_xWidget->grab_focus(); } void EnableAutocomplete() { m_xWidget->set_entry_completion(true); } void SetBaseURL( const OUString& rURL ); + void SetSmartProtocol( INetProtocol eProt ); + INetProtocol GetSmartProtocol() const { return eSmartProtocol; } OUString GetURL(); void DisableHistory(); weld::Widget* getWidget() { return m_xWidget.get(); } static OUString ParseSmart( const OUString& aText, const OUString& aBaseURL ); + + void SetFilter(const OUString& _sFilter); }; #endif diff --git a/include/svtools/urlcontrol.hxx b/include/svtools/urlcontrol.hxx index cdc830b2ef8b..6f001d3cbb71 100644 --- a/include/svtools/urlcontrol.hxx +++ b/include/svtools/urlcontrol.hxx @@ -27,7 +27,6 @@ namespace svt { - //= OFileURLControl class SVT_DLLPUBLIC OFileURLControl : public SvtURLBox @@ -43,7 +42,6 @@ namespace svt virtual bool EventNotify( NotifyEvent& rNEvt ) override; }; - } // namespace svt |