LibreOffice Module extensions (master) 1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
pcr::FieldLinkRow Class Reference
Collaboration diagram for pcr::FieldLinkRow:
[legend]

Public Types

enum  LinkParticipant {
  eDetailField ,
  eMasterField
}
 

Public Member Functions

 FieldLinkRow (std::unique_ptr< weld::ComboBox > xDetailColumn, std::unique_ptr< weld::ComboBox > xMasterColumn)
 
void SetLinkChangeHandler (const Link< FieldLinkRow &, void > &_rHdl)
 
bool GetFieldName (LinkParticipant _eWhich, OUString &_rName) const
 retrieves the selected field name for either the master or the detail field More...
 
void SetFieldName (LinkParticipant _eWhich, const OUString &_rName)
 
void fillList (LinkParticipant _eWhich, const Sequence< OUString > &_rFieldNames)
 
void Show ()
 

Private Member Functions

 DECL_LINK (OnFieldNameChanged, weld::ComboBox &, void)
 

Private Attributes

std::unique_ptr< weld::ComboBoxm_xDetailColumn
 
std::unique_ptr< weld::ComboBoxm_xMasterColumn
 
Link< FieldLinkRow &, void > m_aLinkChangeHandler
 

Detailed Description

Definition at line 59 of file formlinkdialog.cxx.

Member Enumeration Documentation

◆ LinkParticipant

Enumerator
eDetailField 
eMasterField 

Definition at line 74 of file formlinkdialog.cxx.

Constructor & Destructor Documentation

◆ FieldLinkRow()

pcr::FieldLinkRow::FieldLinkRow ( std::unique_ptr< weld::ComboBox xDetailColumn,
std::unique_ptr< weld::ComboBox xMasterColumn 
)

Definition at line 98 of file formlinkdialog.cxx.

References LINK, m_xDetailColumn, and m_xMasterColumn.

Member Function Documentation

◆ DECL_LINK()

pcr::FieldLinkRow::DECL_LINK ( OnFieldNameChanged  ,
weld::ComboBox ,
void   
)
private

◆ fillList()

void pcr::FieldLinkRow::fillList ( LinkParticipant  _eWhich,
const Sequence< OUString > &  _rFieldNames 
)

◆ GetFieldName()

bool pcr::FieldLinkRow::GetFieldName ( LinkParticipant  _eWhich,
OUString &  _rName 
) const

retrieves the selected field name for either the master or the detail field

Returns
<TRUE> if and only a valid field is selected

Definition at line 117 of file formlinkdialog.cxx.

References eDetailField, weld::ComboBox::get_active_text(), m_xDetailColumn, and m_xMasterColumn.

Referenced by pcr::FormLinkDialog::updateOkButton().

◆ SetFieldName()

void pcr::FieldLinkRow::SetFieldName ( LinkParticipant  _eWhich,
const OUString &  _rName 
)

◆ SetLinkChangeHandler()

void pcr::FieldLinkRow::SetLinkChangeHandler ( const Link< FieldLinkRow &, void > &  _rHdl)
inline

Definition at line 72 of file formlinkdialog.cxx.

References m_aLinkChangeHandler.

◆ Show()

void pcr::FieldLinkRow::Show ( )
inline

Definition at line 87 of file formlinkdialog.cxx.

References m_xDetailColumn, and m_xMasterColumn.

Member Data Documentation

◆ m_aLinkChangeHandler

Link<FieldLinkRow&,void> pcr::FieldLinkRow::m_aLinkChangeHandler
private

Definition at line 65 of file formlinkdialog.cxx.

Referenced by SetLinkChangeHandler().

◆ m_xDetailColumn

std::unique_ptr<weld::ComboBox> pcr::FieldLinkRow::m_xDetailColumn
private

Definition at line 62 of file formlinkdialog.cxx.

Referenced by FieldLinkRow(), fillList(), GetFieldName(), SetFieldName(), and Show().

◆ m_xMasterColumn

std::unique_ptr<weld::ComboBox> pcr::FieldLinkRow::m_xMasterColumn
private

Definition at line 63 of file formlinkdialog.cxx.

Referenced by FieldLinkRow(), fillList(), GetFieldName(), SetFieldName(), and Show().


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