LibreOffice Module fpicker (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
AutocompleteEdit Class Reference

#include <autocmpledit.hxx>

Collaboration diagram for AutocompleteEdit:
[legend]

Public Member Functions

 AutocompleteEdit (std::unique_ptr< weld::Entry > xEntry)
 
void show ()
 
void set_sensitive (bool bSensitive)
 
OUString get_text () const
 
void set_text (const OUString &rText)
 
void grab_focus ()
 
void select_region (int nStartPos, int nEndPos)
 
void connect_changed (const Link< weld::Entry &, void > &rLink)
 
void connect_focus_in (const Link< weld::Widget &, void > &rLink)
 
void AddEntry (const OUString &rEntry)
 
void ClearEntries ()
 

Private Member Functions

 DECL_LINK (ChangedHdl, weld::Entry &, void)
 
 DECL_LINK (TryAutoComplete, Timer *, void)
 
bool Match (const OUString &rText)
 

Private Attributes

std::unique_ptr< weld::Entrym_xEntry
 
std::vector< OUString > m_aEntries
 
std::vector< OUString > m_aMatching
 
Idle m_aChangedIdle
 
Link< weld::Entry &, voidm_aChangeHdl
 

Detailed Description

Definition at line 17 of file autocmpledit.hxx.

Constructor & Destructor Documentation

AutocompleteEdit::AutocompleteEdit ( std::unique_ptr< weld::Entry xEntry)

Member Function Documentation

void AutocompleteEdit::AddEntry ( const OUString &  rEntry)

Definition at line 29 of file autocmpledit.cxx.

References m_aEntries.

void AutocompleteEdit::ClearEntries ( )

Definition at line 34 of file autocmpledit.cxx.

References m_aEntries, and m_aMatching.

void AutocompleteEdit::connect_changed ( const Link< weld::Entry &, void > &  rLink)
inline

Definition at line 42 of file autocmpledit.hxx.

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

Definition at line 43 of file autocmpledit.hxx.

AutocompleteEdit::DECL_LINK ( ChangedHdl  ,
weld::Entry ,
void   
)
private
AutocompleteEdit::DECL_LINK ( TryAutoComplete  ,
Timer ,
void   
)
private
OUString AutocompleteEdit::get_text ( ) const
inline

Definition at line 37 of file autocmpledit.hxx.

void AutocompleteEdit::grab_focus ( )
inline

Definition at line 39 of file autocmpledit.hxx.

bool AutocompleteEdit::Match ( const OUString &  rText)
private

Definition at line 65 of file autocmpledit.cxx.

References m_aEntries, and m_aMatching.

void AutocompleteEdit::select_region ( int  nStartPos,
int  nEndPos 
)
inline

Definition at line 40 of file autocmpledit.hxx.

void AutocompleteEdit::set_sensitive ( bool  bSensitive)
inline

Definition at line 36 of file autocmpledit.hxx.

void AutocompleteEdit::set_text ( const OUString &  rText)
inline

Definition at line 38 of file autocmpledit.hxx.

void AutocompleteEdit::show ( )
inline

Definition at line 35 of file autocmpledit.hxx.

Member Data Documentation

Idle AutocompleteEdit::m_aChangedIdle
private

Definition at line 24 of file autocmpledit.hxx.

Referenced by AutocompleteEdit().

Link<weld::Entry&, void> AutocompleteEdit::m_aChangeHdl
private

Definition at line 25 of file autocmpledit.hxx.

std::vector< OUString > AutocompleteEdit::m_aEntries
private

Definition at line 22 of file autocmpledit.hxx.

Referenced by AddEntry(), ClearEntries(), and Match().

std::vector< OUString > AutocompleteEdit::m_aMatching
private

Definition at line 23 of file autocmpledit.hxx.

Referenced by ClearEntries(), and Match().

std::unique_ptr<weld::Entry> AutocompleteEdit::m_xEntry
private

Definition at line 20 of file autocmpledit.hxx.

Referenced by AutocompleteEdit().


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