LibreOffice Module dbaccess (master) 1
Public Member Functions | Private Attributes | List of all members
dbaui::OConnectionURLEdit Class Reference

#include <curledit.hxx>

Collaboration diagram for dbaui::OConnectionURLEdit:
[legend]

Public Member Functions

 OConnectionURLEdit (std::unique_ptr< weld::Entry > xEntry, std::unique_ptr< weld::Label > xForcedPrefix)
 
 ~OConnectionURLEdit ()
 
bool get_visible () const
 
void connect_changed (const Link< weld::Entry &, void > &rLink)
 
void set_help_id (const OUString &rName)
 
void hide ()
 
void show ()
 
void save_value ()
 
bool get_value_changed_from_saved () const
 
void grab_focus ()
 
void set_sensitive (bool bSensitive)
 
void connect_focus_in (const Link< weld::Widget &, void > &rLink)
 
void connect_focus_out (const Link< weld::Widget &, void > &rLink)
 
void SetText (const OUString &_rStr)
 
void SetText (const OUString &_rStr, const Selection &_rNewSelection)
 
OUString GetText () const
 
void ShowPrefix (bool _bShowPrefix)
 Shows the Prefix. More...
 
OUString GetTextNoPrefix () const
 get the currently set text, excluding the prefix indicating the type More...
 
void SetTextNoPrefix (const OUString &_rText)
 set a new text, leave the current prefix unchanged More...
 
void SaveValueNoPrefix ()
 
const OUString & GetSavedValueNoPrefix () const
 
void SetTypeCollection (::dbaccess::ODsnTypeCollection *_pTypeCollection)
 

Private Attributes

OUString m_sSavedValue
 
::dbaccess::ODsnTypeCollectionm_pTypeCollection
 
OUString m_sSaveValueNoPrefix
 
bool m_bShowPrefix
 
std::unique_ptr< weld::Entrym_xEntry
 
std::unique_ptr< weld::Labelm_xForcedPrefix
 

Detailed Description

Definition at line 28 of file curledit.hxx.

Constructor & Destructor Documentation

◆ OConnectionURLEdit()

dbaui::OConnectionURLEdit::OConnectionURLEdit ( std::unique_ptr< weld::Entry xEntry,
std::unique_ptr< weld::Label xForcedPrefix 
)

Definition at line 25 of file curledit.cxx.

◆ ~OConnectionURLEdit()

dbaui::OConnectionURLEdit::~OConnectionURLEdit ( )

Definition at line 33 of file curledit.cxx.

Member Function Documentation

◆ connect_changed()

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

Definition at line 45 of file curledit.hxx.

References m_xEntry.

◆ connect_focus_in()

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

Definition at line 71 of file curledit.hxx.

References m_xEntry.

◆ connect_focus_out()

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

Definition at line 75 of file curledit.hxx.

References m_xEntry.

◆ get_value_changed_from_saved()

bool dbaui::OConnectionURLEdit::get_value_changed_from_saved ( ) const
inline

Definition at line 60 of file curledit.hxx.

References GetText(), and m_sSavedValue.

Referenced by dbaui::OGenericAdministrationPage::fillString().

◆ get_visible()

bool dbaui::OConnectionURLEdit::get_visible ( ) const
inline

Definition at line 44 of file curledit.hxx.

References m_xEntry.

◆ GetSavedValueNoPrefix()

const OUString & dbaui::OConnectionURLEdit::GetSavedValueNoPrefix ( ) const
inline

Definition at line 96 of file curledit.hxx.

References m_sSaveValueNoPrefix.

◆ GetText()

OUString dbaui::OConnectionURLEdit::GetText ( ) const

◆ GetTextNoPrefix()

OUString dbaui::OConnectionURLEdit::GetTextNoPrefix ( ) const

get the currently set text, excluding the prefix indicating the type

Definition at line 42 of file curledit.cxx.

References m_xEntry.

Referenced by SaveValueNoPrefix().

◆ grab_focus()

void dbaui::OConnectionURLEdit::grab_focus ( )
inline

Definition at line 61 of file curledit.hxx.

References m_xEntry.

◆ hide()

void dbaui::OConnectionURLEdit::hide ( )
inline

Definition at line 47 of file curledit.hxx.

References m_bShowPrefix, m_xEntry, and m_xForcedPrefix.

◆ save_value()

void dbaui::OConnectionURLEdit::save_value ( )
inline

Definition at line 59 of file curledit.hxx.

References GetText(), and m_sSavedValue.

◆ SaveValueNoPrefix()

void dbaui::OConnectionURLEdit::SaveValueNoPrefix ( )
inline

Definition at line 95 of file curledit.hxx.

References GetTextNoPrefix(), and m_sSaveValueNoPrefix.

◆ set_help_id()

void dbaui::OConnectionURLEdit::set_help_id ( const OUString &  rName)
inline

Definition at line 46 of file curledit.hxx.

References m_xEntry.

◆ set_sensitive()

void dbaui::OConnectionURLEdit::set_sensitive ( bool  bSensitive)
inline

Definition at line 65 of file curledit.hxx.

References m_bShowPrefix, m_xEntry, and m_xForcedPrefix.

◆ SetText() [1/2]

void dbaui::OConnectionURLEdit::SetText ( const OUString &  _rStr)

Definition at line 47 of file curledit.cxx.

References SetText().

Referenced by SetText().

◆ SetText() [2/2]

void dbaui::OConnectionURLEdit::SetText ( const OUString &  _rStr,
const Selection _rNewSelection 
)

◆ SetTextNoPrefix()

void dbaui::OConnectionURLEdit::SetTextNoPrefix ( const OUString &  _rText)

set a new text, leave the current prefix unchanged

Definition at line 37 of file curledit.cxx.

References m_xEntry.

◆ SetTypeCollection()

void dbaui::OConnectionURLEdit::SetTypeCollection ( ::dbaccess::ODsnTypeCollection _pTypeCollection)
inline

Definition at line 97 of file curledit.hxx.

References m_pTypeCollection.

◆ show()

void dbaui::OConnectionURLEdit::show ( )
inline

Definition at line 53 of file curledit.hxx.

References m_bShowPrefix, m_xEntry, and m_xForcedPrefix.

◆ ShowPrefix()

void dbaui::OConnectionURLEdit::ShowPrefix ( bool  _bShowPrefix)

Shows the Prefix.

Parameters
_bShowPrefixIf <TRUE> than the prefix will be visible, otherwise not.

Definition at line 81 of file curledit.cxx.

References m_bShowPrefix, and m_xForcedPrefix.

Member Data Documentation

◆ m_bShowPrefix

bool dbaui::OConnectionURLEdit::m_bShowPrefix
private

Definition at line 34 of file curledit.hxx.

Referenced by hide(), set_sensitive(), SetText(), show(), and ShowPrefix().

◆ m_pTypeCollection

::dbaccess::ODsnTypeCollection* dbaui::OConnectionURLEdit::m_pTypeCollection
private

Definition at line 32 of file curledit.hxx.

Referenced by SetText(), and SetTypeCollection().

◆ m_sSavedValue

OUString dbaui::OConnectionURLEdit::m_sSavedValue
private

Definition at line 30 of file curledit.hxx.

Referenced by get_value_changed_from_saved(), and save_value().

◆ m_sSaveValueNoPrefix

OUString dbaui::OConnectionURLEdit::m_sSaveValueNoPrefix
private

Definition at line 33 of file curledit.hxx.

Referenced by GetSavedValueNoPrefix(), and SaveValueNoPrefix().

◆ m_xEntry

std::unique_ptr<weld::Entry> dbaui::OConnectionURLEdit::m_xEntry
private

◆ m_xForcedPrefix

std::unique_ptr<weld::Label> dbaui::OConnectionURLEdit::m_xForcedPrefix
private

Definition at line 37 of file curledit.hxx.

Referenced by GetText(), hide(), set_sensitive(), SetText(), show(), and ShowPrefix().


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