LibreOffice Module extensions (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
pcr::FormLinkDialog Class Reference

#include <formlinkdialog.hxx>

Inheritance diagram for pcr::FormLinkDialog:
[legend]
Collaboration diagram for pcr::FormLinkDialog:
[legend]

Public Member Functions

 FormLinkDialog (weld::Window *_pParent, const css::uno::Reference< css::beans::XPropertySet > &_rxDetailForm, const css::uno::Reference< css::beans::XPropertySet > &_rxMasterForm, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const OUString &_sExplanation=OUString(), OUString _sDetailLabel=OUString(), OUString _sMasterLabel=OUString())
 
virtual ~FormLinkDialog () override
 
virtual short run () override
 
- Public Member Functions inherited from weld::GenericDialogController
 GenericDialogController (weld::Widget *pParent, const OUString &rUIFile, const OUString &rDialogId, bool bMobile=false)
 
virtual DialoggetDialog () override
 
virtual ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override
 
- Public Member Functions inherited from weld::DialogController
virtual DialoggetDialog ()=0
 
const DialoggetConstDialog () const
 
virtual short run ()
 
void set_title (const OUString &rTitle)
 
OUString get_title () const
 
void set_help_id (const OUString &rHelpId)
 
OUString get_help_id () const
 
void response (int nResponse)
 
virtual ~DialogController () COVERITY_NOEXCEPT_FALSE
 

Private Member Functions

 DECL_LINK (OnSuggest, weld::Button &, void)
 
 DECL_LINK (OnFieldChanged, FieldLinkRow &, void)
 
 DECL_LINK (OnInitialize, void *, void)
 
void updateOkButton ()
 
void initializeFieldLists ()
 
void initializeColumnLabels ()
 
void initializeLinks ()
 
void initializeSuggest ()
 
void commitLinkPairs ()
 
void initializeFieldRowsFrom (std::vector< OUString > &_rDetailFields, std::vector< OUString > &_rMasterFields)
 
void getFormFields (const css::uno::Reference< css::beans::XPropertySet > &_rxForm, css::uno::Sequence< OUString > &_rNames) const
 
void ensureFormConnection (const css::uno::Reference< css::beans::XPropertySet > &_rxFormProps, css::uno::Reference< css::sdbc::XConnection > &_rxConnection) const
 
css::uno::Reference< css::beans::XPropertySetgetCanonicUnderlyingTable (const css::uno::Reference< css::beans::XPropertySet > &_rxFormProps) const
 

Static Private Member Functions

static OUString getFormDataSourceType (const css::uno::Reference< css::beans::XPropertySet > &_rxForm)
 
static void getConnectionMetaData (const css::uno::Reference< css::beans::XPropertySet > &_rxFormProps, css::uno::Reference< css::sdbc::XDatabaseMetaData > &_rxMeta)
 
static bool getExistingRelation (const css::uno::Reference< css::beans::XPropertySet > &_rxLHS, const css::uno::Reference< css::beans::XPropertySet > &_rxRHS, std::vector< OUString > &_rLeftFields, std::vector< OUString > &_rRightFields)
 

Private Attributes

css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::beans::XPropertySetm_xDetailForm
 
css::uno::Reference< css::beans::XPropertySetm_xMasterForm
 
std::vector< OUString > m_aRelationDetailColumns
 
std::vector< OUString > m_aRelationMasterColumns
 
OUString m_sDetailLabel
 
OUString m_sMasterLabel
 
std::unique_ptr< weld::Labelm_xExplanation
 
std::unique_ptr< weld::Labelm_xDetailLabel
 
std::unique_ptr< weld::Labelm_xMasterLabel
 
std::unique_ptr< FieldLinkRowm_xRow1
 
std::unique_ptr< FieldLinkRowm_xRow2
 
std::unique_ptr< FieldLinkRowm_xRow3
 
std::unique_ptr< FieldLinkRowm_xRow4
 
std::unique_ptr< weld::Buttonm_xOK
 
std::unique_ptr< weld::Buttonm_xSuggest
 

Additional Inherited Members

- Static Public Member Functions inherited from weld::DialogController
static bool runAsync (const std::shared_ptr< DialogController > &rController, const std::function< void(sal_Int32)> &)
 
- Protected Attributes inherited from weld::GenericDialogController
std::unique_ptr< weld::Builderm_xBuilder
 
std::shared_ptr< weld::Dialogm_xDialog
 

Detailed Description

Definition at line 37 of file formlinkdialog.hxx.

Constructor & Destructor Documentation

◆ FormLinkDialog()

pcr::FormLinkDialog::FormLinkDialog ( weld::Window _pParent,
const css::uno::Reference< css::beans::XPropertySet > &  _rxDetailForm,
const css::uno::Reference< css::beans::XPropertySet > &  _rxMasterForm,
const css::uno::Reference< css::uno::XComponentContext > &  _rxContext,
const OUString &  _sExplanation = OUString(),
OUString  _sDetailLabel = OUString(),
OUString  _sMasterLabel = OUString() 
)

◆ ~FormLinkDialog()

pcr::FormLinkDialog::~FormLinkDialog ( )
overridevirtual

Definition at line 182 of file formlinkdialog.cxx.

Member Function Documentation

◆ commitLinkPairs()

void pcr::FormLinkDialog::commitLinkPairs ( )
private

◆ DECL_LINK() [1/3]

pcr::FormLinkDialog::DECL_LINK ( OnFieldChanged  ,
FieldLinkRow ,
void   
)
private

◆ DECL_LINK() [2/3]

pcr::FormLinkDialog::DECL_LINK ( OnInitialize  ,
void *  ,
void   
)
private

◆ DECL_LINK() [3/3]

pcr::FormLinkDialog::DECL_LINK ( OnSuggest  ,
weld::Button ,
void   
)
private

◆ ensureFormConnection()

void pcr::FormLinkDialog::ensureFormConnection ( const css::uno::Reference< css::beans::XPropertySet > &  _rxFormProps,
css::uno::Reference< css::sdbc::XConnection > &  _rxConnection 
) const
private

Definition at line 423 of file formlinkdialog.cxx.

References m_xContext, and PROPERTY_ACTIVE_CONNECTION.

Referenced by getFormFields().

◆ getCanonicUnderlyingTable()

Reference< XPropertySet > pcr::FormLinkDialog::getCanonicUnderlyingTable ( const css::uno::Reference< css::beans::XPropertySet > &  _rxFormProps) const
private

Definition at line 449 of file formlinkdialog.cxx.

References Exception, m_xContext, and TOOLS_WARN_EXCEPTION.

Referenced by initializeSuggest().

◆ getConnectionMetaData()

void pcr::FormLinkDialog::getConnectionMetaData ( const css::uno::Reference< css::beans::XPropertySet > &  _rxFormProps,
css::uno::Reference< css::sdbc::XDatabaseMetaData > &  _rxMeta 
)
staticprivate

Definition at line 436 of file formlinkdialog.cxx.

References PROPERTY_ACTIVE_CONNECTION.

Referenced by initializeSuggest().

◆ getExistingRelation()

bool pcr::FormLinkDialog::getExistingRelation ( const css::uno::Reference< css::beans::XPropertySet > &  _rxLHS,
const css::uno::Reference< css::beans::XPropertySet > &  _rxRHS,
std::vector< OUString > &  _rLeftFields,
std::vector< OUString > &  _rRightFields 
)
staticprivate

Definition at line 476 of file formlinkdialog.cxx.

References Exception, PROPERTY_NAME, and TOOLS_WARN_EXCEPTION.

Referenced by initializeSuggest().

◆ getFormDataSourceType()

OUString pcr::FormLinkDialog::getFormDataSourceType ( const css::uno::Reference< css::beans::XPropertySet > &  _rxForm)
staticprivate

◆ getFormFields()

void pcr::FormLinkDialog::getFormFields ( const css::uno::Reference< css::beans::XPropertySet > &  _rxForm,
css::uno::Sequence< OUString > &  _rNames 
) const
private

◆ initializeColumnLabels()

void pcr::FormLinkDialog::initializeColumnLabels ( )
private

◆ initializeFieldLists()

void pcr::FormLinkDialog::initializeFieldLists ( )
private

◆ initializeFieldRowsFrom()

void pcr::FormLinkDialog::initializeFieldRowsFrom ( std::vector< OUString > &  _rDetailFields,
std::vector< OUString > &  _rMasterFields 
)
private

◆ initializeLinks()

void pcr::FormLinkDialog::initializeLinks ( )
private

◆ initializeSuggest()

void pcr::FormLinkDialog::initializeSuggest ( )
private

◆ run()

short pcr::FormLinkDialog::run ( )
overridevirtual

◆ updateOkButton()

void pcr::FormLinkDialog::updateOkButton ( )
private

Member Data Documentation

◆ m_aRelationDetailColumns

std::vector< OUString > pcr::FormLinkDialog::m_aRelationDetailColumns
private

Definition at line 47 of file formlinkdialog.hxx.

Referenced by initializeSuggest().

◆ m_aRelationMasterColumns

std::vector< OUString > pcr::FormLinkDialog::m_aRelationMasterColumns
private

Definition at line 48 of file formlinkdialog.hxx.

Referenced by initializeSuggest().

◆ m_sDetailLabel

OUString pcr::FormLinkDialog::m_sDetailLabel
private

Definition at line 50 of file formlinkdialog.hxx.

Referenced by initializeColumnLabels().

◆ m_sMasterLabel

OUString pcr::FormLinkDialog::m_sMasterLabel
private

Definition at line 51 of file formlinkdialog.hxx.

Referenced by initializeColumnLabels().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > pcr::FormLinkDialog::m_xContext
private

◆ m_xDetailForm

css::uno::Reference< css::beans::XPropertySet > pcr::FormLinkDialog::m_xDetailForm
private

◆ m_xDetailLabel

std::unique_ptr<weld::Label> pcr::FormLinkDialog::m_xDetailLabel
private

Definition at line 54 of file formlinkdialog.hxx.

Referenced by initializeColumnLabels().

◆ m_xExplanation

std::unique_ptr<weld::Label> pcr::FormLinkDialog::m_xExplanation
private

Definition at line 53 of file formlinkdialog.hxx.

Referenced by FormLinkDialog().

◆ m_xMasterForm

css::uno::Reference< css::beans::XPropertySet > pcr::FormLinkDialog::m_xMasterForm
private

◆ m_xMasterLabel

std::unique_ptr<weld::Label> pcr::FormLinkDialog::m_xMasterLabel
private

Definition at line 55 of file formlinkdialog.hxx.

Referenced by initializeColumnLabels().

◆ m_xOK

std::unique_ptr<weld::Button> pcr::FormLinkDialog::m_xOK
private

Definition at line 60 of file formlinkdialog.hxx.

Referenced by updateOkButton().

◆ m_xRow1

std::unique_ptr<FieldLinkRow> pcr::FormLinkDialog::m_xRow1
private

◆ m_xRow2

std::unique_ptr<FieldLinkRow> pcr::FormLinkDialog::m_xRow2
private

◆ m_xRow3

std::unique_ptr<FieldLinkRow> pcr::FormLinkDialog::m_xRow3
private

◆ m_xRow4

std::unique_ptr<FieldLinkRow> pcr::FormLinkDialog::m_xRow4
private

◆ m_xSuggest

std::unique_ptr<weld::Button> pcr::FormLinkDialog::m_xSuggest
private

Definition at line 61 of file formlinkdialog.hxx.

Referenced by FormLinkDialog(), and initializeSuggest().


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