LibreOffice Module svtools (master) 1
|
#include <inettbc.hxx>
Public Member Functions | |
SvtURLBox (std::unique_ptr< weld::ComboBox > xWidget) | |
~SvtURLBox () | |
void | set_entry_text (const OUString &rStr) |
void | show () |
void | clear () |
void | connect_entry_activate (const Link< weld::ComboBox &, bool > &rLink) |
void | connect_key_press (const Link< const KeyEvent &, bool > &rLink) |
void | connect_changed (const Link< weld::ComboBox &, void > &rLink) |
void | trigger_changed () |
void | connect_focus_in (const Link< weld::Widget &, void > &rLink) |
void | connect_focus_out (const Link< weld::Widget &, void > &rLink) |
void | append_text (const OUString &rStr) |
int | find_text (const OUString &rStr) const |
OUString | get_active_text () const |
void | grab_focus () |
void | set_sensitive (bool bSensitive) |
void | set_help_id (const OUString &rHelpId) |
void | select_entry_region (int nStartPos, int nEndPos) |
Size | get_preferred_size () const |
void | EnableAutocomplete (bool bEnable=true) |
void | SetBaseURL (const OUString &rURL) |
const OUString & | GetBaseURL () const |
void | SetOnlyDirectories (bool bDir) |
void | SetNoURLSelection (bool bSet) |
void | SetSmartProtocol (INetProtocol eProt) |
INetProtocol | GetSmartProtocol () const |
OUString | GetURL () |
void | DisableHistory () |
weld::ComboBox * | getWidget () |
void | SetPlaceHolder (const OUString &sPlaceHolder) |
const OUString & | GetPlaceHolder () const |
bool | MatchesPlaceHolder (std::u16string_view sToMatch) const |
void | SetFilter (std::u16string_view _sFilter) |
Static Public Member Functions | |
static OUString | ParseSmart (const OUString &aText, const OUString &aBaseURL) |
Private Member Functions | |
DECL_DLLPRIVATE_LINK (TryAutoComplete, Timer *, void) | |
SVT_DLLPRIVATE void | UpdatePicklistForSmartProtocol_Impl () |
DECL_DLLPRIVATE_LINK (ChangedHdl, weld::ComboBox &, void) | |
DECL_DLLPRIVATE_LINK (FocusInHdl, weld::Widget &, void) | |
DECL_DLLPRIVATE_LINK (FocusOutHdl, weld::Widget &, void) | |
SVT_DLLPRIVATE void | Init () |
Private Attributes | |
Idle | aChangedIdle |
OUString | aBaseURL |
OUString | aPlaceHolder |
rtl::Reference< SvtMatchContext_Impl > | pCtx |
std::unique_ptr< SvtURLBox_Impl > | pImpl |
INetProtocol | eSmartProtocol |
bool | bOnlyDirectories: 1 |
bool | bHistoryDisabled: 1 |
bool | bNoSelection: 1 |
Link< weld::ComboBox &, void > | aChangeHdl |
Link< weld::Widget &, void > | aFocusInHdl |
Link< weld::Widget &, void > | aFocusOutHdl |
std::unique_ptr< weld::ComboBox > | m_xWidget |
Friends | |
class | SvtMatchContext_Impl |
class | SvtURLBox_Impl |
Definition at line 33 of file inettbc.hxx.
SvtURLBox::SvtURLBox | ( | std::unique_ptr< weld::ComboBox > | xWidget | ) |
Definition at line 856 of file inettbc.cxx.
References aChangedIdle, Init(), LINK, m_xWidget, m_xWidget, NotValid, Timer::SetInvokeHandler(), and Size::Width().
SvtURLBox::~SvtURLBox | ( | ) |
Definition at line 886 of file inettbc.cxx.
References pCtx.
|
inline |
Definition at line 74 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 67 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 70 of file inettbc.hxx.
|
inline |
Definition at line 68 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 72 of file inettbc.hxx.
|
inline |
Definition at line 73 of file inettbc.hxx.
Definition at line 69 of file inettbc.hxx.
References m_xWidget.
|
private |
|
private |
|
private |
References Init().
|
private |
void SvtURLBox::DisableHistory | ( | ) |
Definition at line 1077 of file inettbc.cxx.
References bHistoryDisabled, and UpdatePicklistForSmartProtocol_Impl().
|
inline |
Definition at line 83 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 75 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 76 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 81 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 85 of file inettbc.hxx.
|
inline |
Definition at line 98 of file inettbc.hxx.
|
inline |
Definition at line 89 of file inettbc.hxx.
Referenced by SvtMatchContext_Impl::doExecute().
OUString SvtURLBox::GetURL | ( | ) |
Definition at line 990 of file inettbc.cxx.
References aBaseURL, aName, Any, aPlaceHolder, aURL, eSmartProtocol, INetURLObject::GetMainURL(), INetURLObject::getName(), INetURLObject::GetProtocol(), INetURLObject::hasFinalSlash(), i, INetURLObject::LAST_SEGMENT, m_xWidget, MatchesPlaceHolder(), INetURLObject::NONE, ParseSmart(), pImpl, INetURLObject::setFinalSlash(), INetURLObject::setName(), INetURLObject::SetSmartProtocol(), INetURLObject::SetSmartURL(), INetURLObject::SetURL(), comphelper::string::stripEnd(), and INetURLObject::WithCharset.
|
inline |
Definition at line 93 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 77 of file inettbc.hxx.
References m_xWidget.
|
private |
Definition at line 877 of file inettbc.cxx.
References m_xWidget, pImpl, and UpdatePicklistForSmartProtocol_Impl().
Referenced by SvtURLBox().
|
inline |
Definition at line 99 of file inettbc.hxx.
Referenced by GetURL().
|
static |
Definition at line 752 of file inettbc.cxx.
References aBaseURL, INetURLObject::All, INetURLObject::CompareProtocolScheme(), INetURLObject::encode(), INetURLObject::GetMainURL(), INetURLObject::getName(), INetURLObject::GetProtocol(), INetURLObject::GetScheme(), INetURLObject::HasError(), INetURLObject::NONE, INetURLObject::PART_FPATH, INetURLObject::removeFinalSlash(), INetURLObject::setFinalSlash(), INetURLObject::SetURL(), INetURLObject::smartRel2Abs(), SvtURLBox_Impl::TildeParsing(), and INetURLObject::WithCharset.
Referenced by SvtMatchContext_Impl::doExecute(), and GetURL().
Definition at line 80 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 65 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 79 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 78 of file inettbc.hxx.
References m_xWidget.
void SvtURLBox::SetBaseURL | ( | const OUString & | rURL | ) |
Definition at line 1066 of file inettbc.cxx.
void SvtURLBox::SetFilter | ( | std::u16string_view | _sFilter | ) |
Definition at line 1083 of file inettbc.cxx.
References pImpl.
void SvtURLBox::SetNoURLSelection | ( | bool | bSet | ) |
Definition at line 985 of file inettbc.cxx.
References bNoSelection.
void SvtURLBox::SetOnlyDirectories | ( | bool | bDir | ) |
Definition at line 978 of file inettbc.cxx.
References bOnlyDirectories, and m_xWidget.
|
inline |
Definition at line 97 of file inettbc.hxx.
void SvtURLBox::SetSmartProtocol | ( | INetProtocol | eProt | ) |
Definition at line 895 of file inettbc.cxx.
References eSmartProtocol, and UpdatePicklistForSmartProtocol_Impl().
|
inline |
Definition at line 66 of file inettbc.hxx.
References m_xWidget.
|
inline |
Definition at line 71 of file inettbc.hxx.
References Link< typename Arg, typename Ret >::Call(), and m_xWidget.
|
private |
Definition at line 904 of file inettbc.cxx.
References aURL, bHistoryDisabled, eSmartProtocol, SvtHistoryOptions::GetList(), INetURLObject::GetMainURL(), INetURLObject::GetProtocol(), m_xWidget, pImpl, INetURLObject::SetURL(), and INetURLObject::WithCharset.
Referenced by DisableHistory(), Init(), and SetSmartProtocol().
|
friend |
Definition at line 35 of file inettbc.hxx.
|
friend |
Definition at line 36 of file inettbc.hxx.
|
private |
Definition at line 39 of file inettbc.hxx.
Referenced by SvtMatchContext_Impl::doExecute(), GetURL(), ParseSmart(), and SetBaseURL().
|
private |
Definition at line 38 of file inettbc.hxx.
Referenced by SvtURLBox().
|
private |
Definition at line 48 of file inettbc.hxx.
|
private |
Definition at line 49 of file inettbc.hxx.
|
private |
Definition at line 50 of file inettbc.hxx.
|
private |
Definition at line 40 of file inettbc.hxx.
Referenced by GetURL().
|
private |
Definition at line 45 of file inettbc.hxx.
Referenced by DisableHistory(), and UpdatePicklistForSmartProtocol_Impl().
|
private |
Definition at line 46 of file inettbc.hxx.
Referenced by SetNoURLSelection().
|
private |
Definition at line 44 of file inettbc.hxx.
Referenced by SetOnlyDirectories().
|
private |
Definition at line 43 of file inettbc.hxx.
Referenced by GetURL(), SetSmartProtocol(), and UpdatePicklistForSmartProtocol_Impl().
|
private |
Definition at line 52 of file inettbc.hxx.
Referenced by GetURL(), Init(), SetOnlyDirectories(), SvtURLBox(), and UpdatePicklistForSmartProtocol_Impl().
|
private |
Definition at line 41 of file inettbc.hxx.
Referenced by ~SvtURLBox().
|
private |
Definition at line 42 of file inettbc.hxx.
Referenced by GetURL(), Init(), SetBaseURL(), SetFilter(), and UpdatePicklistForSmartProtocol_Impl().