LibreOffice Module extensions (master) 1
|
#include <formlinkdialog.hxx>
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 Dialog * | getDialog () override |
virtual | ~GenericDialogController () COVERITY_NOEXCEPT_FALSE override |
Public Member Functions inherited from weld::DialogController | |
virtual Dialog * | getDialog ()=0 |
const Dialog * | getConstDialog () 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::XPropertySet > | getCanonicUnderlyingTable (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::XPropertySet > | m_xDetailForm |
css::uno::Reference< css::beans::XPropertySet > | m_xMasterForm |
std::vector< OUString > | m_aRelationDetailColumns |
std::vector< OUString > | m_aRelationMasterColumns |
OUString | m_sDetailLabel |
OUString | m_sMasterLabel |
std::unique_ptr< weld::Label > | m_xExplanation |
std::unique_ptr< weld::Label > | m_xDetailLabel |
std::unique_ptr< weld::Label > | m_xMasterLabel |
std::unique_ptr< FieldLinkRow > | m_xRow1 |
std::unique_ptr< FieldLinkRow > | m_xRow2 |
std::unique_ptr< FieldLinkRow > | m_xRow3 |
std::unique_ptr< FieldLinkRow > | m_xRow4 |
std::unique_ptr< weld::Button > | m_xOK |
std::unique_ptr< weld::Button > | m_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::Builder > | m_xBuilder |
std::shared_ptr< weld::Dialog > | m_xDialog |
Definition at line 37 of file formlinkdialog.hxx.
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() |
||
) |
Definition at line 137 of file formlinkdialog.cxx.
References LINK, weld::GenericDialogController::m_xDialog, m_xExplanation, m_xRow1, m_xRow2, m_xRow3, m_xRow4, m_xSuggest, Application::PostUserEvent(), and updateOkButton().
|
overridevirtual |
Definition at line 182 of file formlinkdialog.cxx.
|
private |
Definition at line 186 of file formlinkdialog.cxx.
References Any, pcr::FieldLinkRow::eDetailField, pcr::FieldLinkRow::eMasterField, Exception, m_xDetailForm, m_xRow1, m_xRow2, m_xRow3, m_xRow4, PROPERTY_DETAILFIELDS, PROPERTY_MASTERFIELDS, and TOOLS_WARN_EXCEPTION.
Referenced by run().
|
private |
|
private |
|
private |
|
private |
Definition at line 423 of file formlinkdialog.cxx.
References m_xContext, and PROPERTY_ACTIVE_CONNECTION.
Referenced by getFormFields().
|
private |
Definition at line 449 of file formlinkdialog.cxx.
References Exception, m_xContext, and TOOLS_WARN_EXCEPTION.
Referenced by initializeSuggest().
|
staticprivate |
Definition at line 436 of file formlinkdialog.cxx.
References PROPERTY_ACTIVE_CONNECTION.
Referenced by initializeSuggest().
|
staticprivate |
Definition at line 476 of file formlinkdialog.cxx.
References Exception, PROPERTY_NAME, and TOOLS_WARN_EXCEPTION.
Referenced by initializeSuggest().
|
staticprivate |
Definition at line 347 of file formlinkdialog.cxx.
References Exception, PROPERTY_COMMAND, PROPERTY_COMMANDTYPE, and TOOLS_WARN_EXCEPTION.
Referenced by initializeColumnLabels().
|
private |
Definition at line 373 of file formlinkdialog.cxx.
References ensureFormConnection(), Exception, dbtools::SQLExceptionInfo::get(), dbtools::SQLExceptionInfo::isValid(), m_xContext, weld::GenericDialogController::m_xDialog, pcr::PcrRes(), PROPERTY_COMMAND, PROPERTY_COMMANDTYPE, and TOOLS_WARN_EXCEPTION.
Referenced by initializeFieldLists().
|
private |
Definition at line 254 of file formlinkdialog.cxx.
References getFormDataSourceType(), m_sDetailLabel, m_sMasterLabel, m_xDetailForm, m_xDetailLabel, m_xMasterForm, m_xMasterLabel, and pcr::PcrRes().
|
private |
Definition at line 234 of file formlinkdialog.cxx.
References pcr::FieldLinkRow::eDetailField, pcr::FieldLinkRow::eMasterField, getFormFields(), m_xDetailForm, m_xMasterForm, m_xRow1, m_xRow2, m_xRow3, and m_xRow4.
|
private |
Definition at line 281 of file formlinkdialog.cxx.
References pcr::FieldLinkRow::eDetailField, pcr::FieldLinkRow::eMasterField, i, m_xRow1, m_xRow2, m_xRow3, m_xRow4, and pcr::FieldLinkRow::SetFieldName().
Referenced by initializeLinks().
|
private |
Definition at line 298 of file formlinkdialog.cxx.
References Exception, initializeFieldRowsFrom(), m_xDetailForm, PROPERTY_DETAILFIELDS, PROPERTY_MASTERFIELDS, comphelper::sequenceToContainer(), and TOOLS_WARN_EXCEPTION.
|
private |
Definition at line 542 of file formlinkdialog.cxx.
References Exception, getCanonicUnderlyingTable(), getConnectionMetaData(), getExistingRelation(), m_aRelationDetailColumns, m_aRelationMasterColumns, m_xDetailForm, m_xMasterForm, m_xSuggest, PROPERTY_DATASOURCE, SAL_WARN_IF, and TOOLS_WARN_EXCEPTION.
|
overridevirtual |
Reimplemented from weld::DialogController.
Definition at line 224 of file formlinkdialog.cxx.
References commitLinkPairs(), and RET_OK.
Referenced by pcr::FormComponentPropertyHandler::impl_dialogLinkedFormFields_nothrow().
|
private |
Definition at line 324 of file formlinkdialog.cxx.
References pcr::FieldLinkRow::eDetailField, pcr::FieldLinkRow::eMasterField, pcr::FieldLinkRow::GetFieldName(), i, m_xOK, m_xRow1, m_xRow2, m_xRow3, and m_xRow4.
Referenced by FormLinkDialog().
|
private |
Definition at line 47 of file formlinkdialog.hxx.
Referenced by initializeSuggest().
|
private |
Definition at line 48 of file formlinkdialog.hxx.
Referenced by initializeSuggest().
|
private |
Definition at line 50 of file formlinkdialog.hxx.
Referenced by initializeColumnLabels().
|
private |
Definition at line 51 of file formlinkdialog.hxx.
Referenced by initializeColumnLabels().
|
private |
Definition at line 41 of file formlinkdialog.hxx.
Referenced by ensureFormConnection(), getCanonicUnderlyingTable(), and getFormFields().
|
private |
Definition at line 43 of file formlinkdialog.hxx.
Referenced by commitLinkPairs(), initializeColumnLabels(), initializeFieldLists(), initializeLinks(), and initializeSuggest().
|
private |
Definition at line 54 of file formlinkdialog.hxx.
Referenced by initializeColumnLabels().
|
private |
Definition at line 53 of file formlinkdialog.hxx.
Referenced by FormLinkDialog().
|
private |
Definition at line 45 of file formlinkdialog.hxx.
Referenced by initializeColumnLabels(), initializeFieldLists(), and initializeSuggest().
|
private |
Definition at line 55 of file formlinkdialog.hxx.
Referenced by initializeColumnLabels().
|
private |
Definition at line 60 of file formlinkdialog.hxx.
Referenced by updateOkButton().
|
private |
Definition at line 56 of file formlinkdialog.hxx.
Referenced by commitLinkPairs(), FormLinkDialog(), initializeFieldLists(), initializeFieldRowsFrom(), and updateOkButton().
|
private |
Definition at line 57 of file formlinkdialog.hxx.
Referenced by commitLinkPairs(), FormLinkDialog(), initializeFieldLists(), initializeFieldRowsFrom(), and updateOkButton().
|
private |
Definition at line 58 of file formlinkdialog.hxx.
Referenced by commitLinkPairs(), FormLinkDialog(), initializeFieldLists(), initializeFieldRowsFrom(), and updateOkButton().
|
private |
Definition at line 59 of file formlinkdialog.hxx.
Referenced by commitLinkPairs(), FormLinkDialog(), initializeFieldLists(), initializeFieldRowsFrom(), and updateOkButton().
|
private |
Definition at line 61 of file formlinkdialog.hxx.
Referenced by FormLinkDialog(), and initializeSuggest().