LibreOffice Module svtools (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SvtURLBox Class Reference

#include <inettbc.hxx>

Collaboration diagram for SvtURLBox:
[legend]

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::ComboBoxgetWidget ()
 
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_ImplpCtx
 
std::unique_ptr< SvtURLBox_ImplpImpl
 
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::ComboBoxm_xWidget
 

Friends

class SvtMatchContext_Impl
 
class SvtURLBox_Impl
 

Detailed Description

Definition at line 33 of file inettbc.hxx.

Constructor & Destructor Documentation

◆ SvtURLBox()

SvtURLBox::SvtURLBox ( std::unique_ptr< weld::ComboBox xWidget)

◆ ~SvtURLBox()

SvtURLBox::~SvtURLBox ( )

Definition at line 886 of file inettbc.cxx.

References pCtx.

Member Function Documentation

◆ append_text()

void SvtURLBox::append_text ( const OUString &  rStr)
inline

Definition at line 74 of file inettbc.hxx.

References m_xWidget.

◆ clear()

void SvtURLBox::clear ( )
inline

Definition at line 67 of file inettbc.hxx.

References m_xWidget.

◆ connect_changed()

void SvtURLBox::connect_changed ( const Link< weld::ComboBox &, void > &  rLink)
inline

Definition at line 70 of file inettbc.hxx.

◆ connect_entry_activate()

void SvtURLBox::connect_entry_activate ( const Link< weld::ComboBox &, bool > &  rLink)
inline

Definition at line 68 of file inettbc.hxx.

References m_xWidget.

◆ connect_focus_in()

void SvtURLBox::connect_focus_in ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 72 of file inettbc.hxx.

◆ connect_focus_out()

void SvtURLBox::connect_focus_out ( const Link< weld::Widget &, void > &  rLink)
inline

Definition at line 73 of file inettbc.hxx.

◆ connect_key_press()

void SvtURLBox::connect_key_press ( const Link< const KeyEvent &, bool > &  rLink)
inline

Definition at line 69 of file inettbc.hxx.

References m_xWidget.

◆ DECL_DLLPRIVATE_LINK() [1/4]

SvtURLBox::DECL_DLLPRIVATE_LINK ( ChangedHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/4]

SvtURLBox::DECL_DLLPRIVATE_LINK ( FocusInHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/4]

SvtURLBox::DECL_DLLPRIVATE_LINK ( FocusOutHdl  ,
weld::Widget ,
void   
)
private

References Init().

◆ DECL_DLLPRIVATE_LINK() [4/4]

SvtURLBox::DECL_DLLPRIVATE_LINK ( TryAutoComplete  ,
Timer ,
void   
)
private

◆ DisableHistory()

void SvtURLBox::DisableHistory ( )

Definition at line 1077 of file inettbc.cxx.

References bHistoryDisabled, and UpdatePicklistForSmartProtocol_Impl().

◆ EnableAutocomplete()

void SvtURLBox::EnableAutocomplete ( bool  bEnable = true)
inline

Definition at line 83 of file inettbc.hxx.

References m_xWidget.

◆ find_text()

int SvtURLBox::find_text ( const OUString &  rStr) const
inline

Definition at line 75 of file inettbc.hxx.

References m_xWidget.

◆ get_active_text()

OUString SvtURLBox::get_active_text ( ) const
inline

Definition at line 76 of file inettbc.hxx.

References m_xWidget.

◆ get_preferred_size()

Size SvtURLBox::get_preferred_size ( ) const
inline

Definition at line 81 of file inettbc.hxx.

References m_xWidget.

◆ GetBaseURL()

const OUString & SvtURLBox::GetBaseURL ( ) const
inline

Definition at line 85 of file inettbc.hxx.

◆ GetPlaceHolder()

const OUString & SvtURLBox::GetPlaceHolder ( ) const
inline

Definition at line 98 of file inettbc.hxx.

◆ GetSmartProtocol()

INetProtocol SvtURLBox::GetSmartProtocol ( ) const
inline

Definition at line 89 of file inettbc.hxx.

Referenced by SvtMatchContext_Impl::doExecute().

◆ GetURL()

OUString SvtURLBox::GetURL ( )

◆ getWidget()

weld::ComboBox * SvtURLBox::getWidget ( )
inline

Definition at line 93 of file inettbc.hxx.

References m_xWidget.

◆ grab_focus()

void SvtURLBox::grab_focus ( )
inline

Definition at line 77 of file inettbc.hxx.

References m_xWidget.

◆ Init()

void SvtURLBox::Init ( void  )
private

Definition at line 877 of file inettbc.cxx.

References m_xWidget, pImpl, and UpdatePicklistForSmartProtocol_Impl().

Referenced by SvtURLBox().

◆ MatchesPlaceHolder()

bool SvtURLBox::MatchesPlaceHolder ( std::u16string_view  sToMatch) const
inline

Definition at line 99 of file inettbc.hxx.

Referenced by GetURL().

◆ ParseSmart()

OUString SvtURLBox::ParseSmart ( const OUString &  aText,
const OUString &  aBaseURL 
)
static

◆ select_entry_region()

void SvtURLBox::select_entry_region ( int  nStartPos,
int  nEndPos 
)
inline

Definition at line 80 of file inettbc.hxx.

References m_xWidget.

◆ set_entry_text()

void SvtURLBox::set_entry_text ( const OUString &  rStr)
inline

Definition at line 65 of file inettbc.hxx.

References m_xWidget.

◆ set_help_id()

void SvtURLBox::set_help_id ( const OUString &  rHelpId)
inline

Definition at line 79 of file inettbc.hxx.

References m_xWidget.

◆ set_sensitive()

void SvtURLBox::set_sensitive ( bool  bSensitive)
inline

Definition at line 78 of file inettbc.hxx.

References m_xWidget.

◆ SetBaseURL()

void SvtURLBox::SetBaseURL ( const OUString &  rURL)

Definition at line 1066 of file inettbc.cxx.

References aBaseURL, and pImpl.

◆ SetFilter()

void SvtURLBox::SetFilter ( std::u16string_view  _sFilter)

Definition at line 1083 of file inettbc.cxx.

References pImpl.

◆ SetNoURLSelection()

void SvtURLBox::SetNoURLSelection ( bool  bSet)

Definition at line 985 of file inettbc.cxx.

References bNoSelection.

◆ SetOnlyDirectories()

void SvtURLBox::SetOnlyDirectories ( bool  bDir)

Definition at line 978 of file inettbc.cxx.

References bOnlyDirectories, and m_xWidget.

◆ SetPlaceHolder()

void SvtURLBox::SetPlaceHolder ( const OUString &  sPlaceHolder)
inline

Definition at line 97 of file inettbc.hxx.

◆ SetSmartProtocol()

void SvtURLBox::SetSmartProtocol ( INetProtocol  eProt)

Definition at line 895 of file inettbc.cxx.

References eSmartProtocol, and UpdatePicklistForSmartProtocol_Impl().

◆ show()

void SvtURLBox::show ( )
inline

Definition at line 66 of file inettbc.hxx.

References m_xWidget.

◆ trigger_changed()

void SvtURLBox::trigger_changed ( )
inline

Definition at line 71 of file inettbc.hxx.

References Link< typename Arg, typename Ret >::Call(), and m_xWidget.

◆ UpdatePicklistForSmartProtocol_Impl()

void SvtURLBox::UpdatePicklistForSmartProtocol_Impl ( )
private

Friends And Related Function Documentation

◆ SvtMatchContext_Impl

friend class SvtMatchContext_Impl
friend

Definition at line 35 of file inettbc.hxx.

◆ SvtURLBox_Impl

friend class SvtURLBox_Impl
friend

Definition at line 36 of file inettbc.hxx.

Member Data Documentation

◆ aBaseURL

OUString SvtURLBox::aBaseURL
private

Definition at line 39 of file inettbc.hxx.

Referenced by SvtMatchContext_Impl::doExecute(), GetURL(), ParseSmart(), and SetBaseURL().

◆ aChangedIdle

Idle SvtURLBox::aChangedIdle
private

Definition at line 38 of file inettbc.hxx.

Referenced by SvtURLBox().

◆ aChangeHdl

Link<weld::ComboBox&, void> SvtURLBox::aChangeHdl
private

Definition at line 48 of file inettbc.hxx.

◆ aFocusInHdl

Link<weld::Widget&, void> SvtURLBox::aFocusInHdl
private

Definition at line 49 of file inettbc.hxx.

◆ aFocusOutHdl

Link<weld::Widget&, void> SvtURLBox::aFocusOutHdl
private

Definition at line 50 of file inettbc.hxx.

◆ aPlaceHolder

OUString SvtURLBox::aPlaceHolder
private

Definition at line 40 of file inettbc.hxx.

Referenced by GetURL().

◆ bHistoryDisabled

bool SvtURLBox::bHistoryDisabled
private

Definition at line 45 of file inettbc.hxx.

Referenced by DisableHistory(), and UpdatePicklistForSmartProtocol_Impl().

◆ bNoSelection

bool SvtURLBox::bNoSelection
private

Definition at line 46 of file inettbc.hxx.

Referenced by SetNoURLSelection().

◆ bOnlyDirectories

bool SvtURLBox::bOnlyDirectories
private

Definition at line 44 of file inettbc.hxx.

Referenced by SetOnlyDirectories().

◆ eSmartProtocol

INetProtocol SvtURLBox::eSmartProtocol
private

Definition at line 43 of file inettbc.hxx.

Referenced by GetURL(), SetSmartProtocol(), and UpdatePicklistForSmartProtocol_Impl().

◆ m_xWidget

std::unique_ptr<weld::ComboBox> SvtURLBox::m_xWidget
private

◆ pCtx

rtl::Reference<SvtMatchContext_Impl> SvtURLBox::pCtx
private

Definition at line 41 of file inettbc.hxx.

Referenced by ~SvtURLBox().

◆ pImpl

std::unique_ptr<SvtURLBox_Impl> SvtURLBox::pImpl
private

Definition at line 42 of file inettbc.hxx.

Referenced by GetURL(), Init(), SetBaseURL(), SetFilter(), and UpdatePicklistForSmartProtocol_Impl().


The documentation for this class was generated from the following files: