LibreOffice Module dbaccess (master) 1
|
#include <linkeddocuments.hxx>
Public Member Functions | |
OLinkedDocumentsAccess (weld::Window *pDialogParent, const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > &i_rDocumentUI, const css::uno::Reference< css::uno::XComponentContext > &_rxContext, const css::uno::Reference< css::container::XNameAccess > &_rxContainer, const css::uno::Reference< css::sdbc::XConnection > &_xConnection, OUString _sDataSourceName) | |
~OLinkedDocumentsAccess () | |
bool | isConnected () const |
css::uno::Reference< css::lang::XComponent > | open (const OUString &_rLinkName, css::uno::Reference< css::lang::XComponent > &_xDefinition, ElementOpenMode _eOpenMode, const ::comphelper::NamedValueCollection &_rAdditionalArgs) |
css::uno::Reference< css::lang::XComponent > | newDocument (sal_Int32 i_nActionID, const ::comphelper::NamedValueCollection &i_rCreationArgs, css::uno::Reference< css::lang::XComponent > &o_rDefinition) |
void | newFormWithPilot (const sal_Int32 _nCommandType, const OUString &_rObjectName) |
void | newReportWithPilot (const sal_Int32 _nCommandType, const OUString &_rObjectName) |
void | newQueryWithPilot () |
void | newTableWithPilot () |
Private Member Functions | |
css::uno::Reference< css::lang::XComponent > | impl_open (const OUString &_rLinkName, css::uno::Reference< css::lang::XComponent > &_xDefinition, ElementOpenMode _eOpenMode, const ::comphelper::NamedValueCollection &_rAdditionalArgs) |
void | impl_newWithPilot (const char *_pWizardService, const sal_Int32 _nCommandType, const OUString &_rObjectName) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::container::XNameAccess > | m_xDocumentContainer |
css::uno::Reference< css::sdbc::XConnection > | m_xConnection |
css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > | m_xDocumentUI |
weld::Window * | m_pDialogParent |
OUString | m_sDataSourceName |
Definition at line 36 of file linkeddocuments.hxx.
dbaui::OLinkedDocumentsAccess::OLinkedDocumentsAccess | ( | weld::Window * | pDialogParent, |
const css::uno::Reference< css::sdb::application::XDatabaseDocumentUI > & | i_rDocumentUI, | ||
const css::uno::Reference< css::uno::XComponentContext > & | _rxContext, | ||
const css::uno::Reference< css::container::XNameAccess > & | _rxContainer, | ||
const css::uno::Reference< css::sdbc::XConnection > & | _xConnection, | ||
OUString | _sDataSourceName | ||
) |
Definition at line 90 of file linkeddocuments.cxx.
References m_pDialogParent, and m_xContext.
dbaui::OLinkedDocumentsAccess::~OLinkedDocumentsAccess | ( | ) |
Definition at line 103 of file linkeddocuments.cxx.
|
private |
Definition at line 153 of file linkeddocuments.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, comphelper::NamedValueCollection::getWrappedPropertyValues(), m_pDialogParent, m_sDataSourceName, m_xConnection, m_xContext, m_xDocumentUI, and comphelper::NamedValueCollection::put().
Referenced by newFormWithPilot(), newQueryWithPilot(), newReportWithPilot(), and newTableWithPilot().
|
private |
Definition at line 106 of file linkeddocuments.cxx.
References aArguments, dbaui::Design, m_pDialogParent, m_xConnection, m_xDocumentContainer, dbaui::Mail, dbaui::Normal, and PROPERTY_ACTIVE_CONNECTION().
Referenced by open().
|
inline |
Definition at line 60 of file linkeddocuments.hxx.
References m_xConnection.
Reference< XComponent > dbaui::OLinkedDocumentsAccess::newDocument | ( | sal_Int32 | i_nActionID, |
const ::comphelper::NamedValueCollection & | i_rCreationArgs, | ||
css::uno::Reference< css::lang::XComponent > & | o_rDefinition | ||
) |
Definition at line 207 of file linkeddocuments.cxx.
References aCommand, Command, DBG_UNHANDLED_EXCEPTION, Exception, comphelper::NamedValueCollection::get(), comphelper::NamedValueCollection::getPropertyValues(), comphelper::MimeConfigurationHelper::GetSequenceClassID(), comphelper::NamedValueCollection::getWrappedPropertyValues(), comphelper::NamedValueCollection::has(), ID_FORM_NEW_CALC, ID_FORM_NEW_IMPRESS, ID_FORM_NEW_TEXT, ID_REPORT_NEW_TEXT, m_pDialogParent, m_xConnection, m_xDocumentContainer, PROPERTY_ACTIVE_CONNECTION(), comphelper::NamedValueCollection::put(), comphelper::NamedValueCollection::remove(), SERVICE_SDB_DOCUMENTDEFINITION, SO3_RPT_CLASSID_90, SO3_SC_CLASSID, SO3_SIMPRESS_CLASSID, and SO3_SW_CLASSID.
void dbaui::OLinkedDocumentsAccess::newFormWithPilot | ( | const sal_Int32 | _nCommandType, |
const OUString & | _rObjectName | ||
) |
Definition at line 190 of file linkeddocuments.cxx.
References impl_newWithPilot().
void dbaui::OLinkedDocumentsAccess::newQueryWithPilot | ( | ) |
Definition at line 203 of file linkeddocuments.cxx.
References impl_newWithPilot().
void dbaui::OLinkedDocumentsAccess::newReportWithPilot | ( | const sal_Int32 | _nCommandType, |
const OUString & | _rObjectName | ||
) |
Definition at line 195 of file linkeddocuments.cxx.
References impl_newWithPilot().
void dbaui::OLinkedDocumentsAccess::newTableWithPilot | ( | ) |
Definition at line 199 of file linkeddocuments.cxx.
References impl_newWithPilot().
Reference< XComponent > dbaui::OLinkedDocumentsAccess::open | ( | const OUString & | _rLinkName, |
css::uno::Reference< css::lang::XComponent > & | _xDefinition, | ||
ElementOpenMode | _eOpenMode, | ||
const ::comphelper::NamedValueCollection & | _rAdditionalArgs | ||
) |
Definition at line 293 of file linkeddocuments.cxx.
References a, Any, DBA_RES, Exception, weld::Window::GetXWindow(), impl_open(), dbtools::SQLExceptionInfo::isValid(), m_pDialogParent, m_xContext, dbtools::ParameterInteractionCancelled, dbtools::SQLExceptionInfo::prepend(), showError(), and sMessage.
|
private |
Definition at line 46 of file linkeddocuments.hxx.
Referenced by impl_newWithPilot(), impl_open(), newDocument(), OLinkedDocumentsAccess(), and open().
|
private |
Definition at line 47 of file linkeddocuments.hxx.
Referenced by impl_newWithPilot().
|
private |
Definition at line 43 of file linkeddocuments.hxx.
Referenced by impl_newWithPilot(), impl_open(), isConnected(), and newDocument().
|
private |
Definition at line 39 of file linkeddocuments.hxx.
Referenced by impl_newWithPilot(), OLinkedDocumentsAccess(), and open().
|
private |
Definition at line 41 of file linkeddocuments.hxx.
Referenced by impl_open(), and newDocument().
|
private |
Definition at line 45 of file linkeddocuments.hxx.
Referenced by impl_newWithPilot().