LibreOffice Module extensions (master) 1
|
#include <datman.hxx>
Public Member Functions | |
BibDataManager () | |
virtual | ~BibDataManager () override |
css::uno::Reference< css::form::XForm > | createDatabaseForm (BibDBDescriptor &aDesc) |
css::uno::Reference< css::awt::XControlModel > | updateGridModel () |
css::uno::Sequence< OUString > | getDataSources () const |
const OUString & | getActiveDataSource () const |
void | setActiveDataSource (const OUString &rURL) |
const OUString & | getActiveDataTable () const |
void | setActiveDataTable (const OUString &rTable) |
void | setFilter (const OUString &rQuery) |
OUString | getFilter () const |
css::uno::Sequence< OUString > | getQueryFields () const |
OUString | getQueryField () const |
void | startQueryWith (const OUString &rQuery) |
const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > & | getParser () const |
const css::uno::Reference< css::form::XForm > & | getForm () const |
css::uno::Reference< css::awt::XControlModel > | loadControlModel (const OUString &rName, bool bForceListBox) |
void | CreateMappingDialog (weld::Window *pParent) |
OUString | CreateDBChangeDialog (weld::Window *pParent) |
void | DispatchDBChangeDialog () |
void | SetView (::bib::BibView *pView) |
void | SetToolbar (BibToolBar *pSet) |
const OUString & | GetIdentifierMapping () |
void | ResetIdentifierMapping () |
css::uno::Reference< css::form::runtime::XFormController > const & | GetFormController () |
void | RegisterInterceptor (const ::bib::BibBeamer *pBibBeamer) |
bool | HasActiveConnection () const |
Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc > | |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual void SAL_CALL | dispose () noexcept final override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual css::uno::Sequence< sal_Int8 > SAL_CALL | getImplementationId () override |
Public Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
virtual | ~WeakComponentImplHelperBase () override |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual void SAL_CALL | removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override |
virtual css::uno::Any SAL_CALL | queryInterface (css::uno::Type const &rType) override |
virtual void | disposing (std::unique_lock< std::mutex > &) |
Public Member Functions inherited from comphelper::UnoImplBase | |
virtual | ~UnoImplBase () |
Static Public Member Functions | |
static OUString | getControlName (sal_Int32 nFormatKey) |
Private Member Functions | |
void | InsertFields (const css::uno::Reference< css::form::XFormComponent > &xGrid) |
css::uno::Reference< css::awt::XControlModel > const & | updateGridModel (const css::uno::Reference< css::form::XForm > &xDbForm) |
virtual void SAL_CALL | load () override |
virtual void SAL_CALL | unload () override |
virtual void SAL_CALL | reload () override |
virtual sal_Bool SAL_CALL | isLoaded () override |
virtual void SAL_CALL | addLoadListener (const css::uno::Reference< css::form::XLoadListener > &aListener) override |
virtual void SAL_CALL | removeLoadListener (const css::uno::Reference< css::form::XLoadListener > &aListener) override |
Static Private Member Functions | |
static css::uno::Reference< css::awt::XControlModel > | createGridModel (const OUString &rName) |
Private Attributes | |
css::uno::Reference< css::form::XForm > | m_xForm |
css::uno::Reference< css::awt::XControlModel > | m_xGridModel |
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > | m_xParser |
css::uno::Reference< css::form::runtime::XFormController > | m_xFormCtrl |
css::uno::Reference< css::frame::XDispatch > | m_xFormDispatch |
rtl::Reference< BibInterceptorHelper > | m_xInterceptorHelper |
OUString | aActiveDataTable |
OUString | aDataSourceURL |
OUString | aQuoteChar |
::comphelper::OInterfaceContainerHelper4< css::form::XLoadListener > | m_aLoadListeners |
VclPtr< ::bib::BibView > | pBibView |
VclPtr< BibToolBar > | pToolbar |
OUString | sIdentifierMapping |
Additional Inherited Members | |
Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase | |
void | throwIfDisposed (std::unique_lock< std::mutex > &) |
Protected Attributes inherited from comphelper::WeakComponentImplHelperBase | |
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > | maEventListeners |
Protected Attributes inherited from comphelper::UnoImplBase | |
std::mutex | m_aMutex |
bool | m_bDisposed |
Definition at line 76 of file datman.hxx.
BibDataManager::BibDataManager | ( | ) |
Definition at line 532 of file datman.cxx.
|
overridevirtual |
Definition at line 539 of file datman.cxx.
References m_xForm, and m_xInterceptorHelper.
|
overrideprivatevirtual |
Definition at line 1088 of file datman.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), m_aLoadListeners, and comphelper::UnoImplBase::m_aMutex.
Reference< XForm > BibDataManager::createDatabaseForm | ( | BibDBDescriptor & | aDesc | ) |
Definition at line 677 of file datman.cxx.
References aActiveDataTable, aDataSourceURL, Any, aQuoteChar, Exception, BibModul::GetConfig(), getConnection(), comphelper::getProcessServiceFactory(), getQueryField(), BibConfig::getQueryText(), m_xForm, m_xParser, BibDBDescriptor::nCommandType, sCatalog, BibDBDescriptor::sDataSource, BibConfig::setQueryField(), sName, sSchema, BibDBDescriptor::sTableOrQuery, startQueryWith(), and xFactory.
OUString BibDataManager::CreateDBChangeDialog | ( | weld::Window * | pParent | ) |
Definition at line 1315 of file datman.cxx.
References getActiveDataSource(), and RET_OK.
Referenced by BibToolBar::Click().
|
staticprivate |
Definition at line 1102 of file datman.cxx.
References Any, Exception, HID_BIB_DB_GRIDCTRL, INET_HID_SCHEME, and xModel.
void BibDataManager::CreateMappingDialog | ( | weld::Window * | pParent | ) |
Definition at line 1306 of file datman.cxx.
References pBibView, reload(), and RET_OK.
Referenced by BibToolBar::Click().
void BibDataManager::DispatchDBChangeDialog | ( | ) |
Definition at line 1330 of file datman.cxx.
References pToolbar.
Referenced by bib::BibView::UpdatePages().
|
inline |
Definition at line 125 of file datman.hxx.
References aDataSourceURL.
Referenced by BibGeneralPage::BibGeneralPage(), CreateDBChangeDialog(), and GetIdentifierMapping().
|
inline |
Definition at line 128 of file datman.hxx.
References aActiveDataTable.
Referenced by BibGeneralPage::BibGeneralPage(), GetIdentifierMapping(), and setActiveDataSource().
|
static |
Definition at line 1138 of file datman.cxx.
Referenced by loadControlModel().
Sequence< OUString > BibDataManager::getDataSources | ( | ) | const |
Definition at line 758 of file datman.cxx.
References Exception, getConnection(), and m_xForm.
Referenced by setActiveDataSource().
OUString BibDataManager::getFilter | ( | ) | const |
Definition at line 801 of file datman.cxx.
References DBG_UNHANDLED_EXCEPTION, Exception, and m_xForm.
|
inline |
Definition at line 139 of file datman.hxx.
References m_xForm.
Referenced by GetFormController(), and BibGeneralPage::SaveChanges().
uno::Reference< form::runtime::XFormController > const & BibDataManager::GetFormController | ( | ) |
Definition at line 1369 of file datman.cxx.
References getForm(), comphelper::getProcessComponentContext(), m_xFormCtrl, and m_xFormDispatch.
const OUString & BibDataManager::GetIdentifierMapping | ( | ) |
Definition at line 1336 of file datman.cxx.
References getActiveDataSource(), getActiveDataTable(), BibModul::GetConfig(), BibConfig::GetDefColumnName(), BibConfig::GetMapping(), IDENTIFIER_POS, BibDBDescriptor::nCommandType, pMapping, BibDBDescriptor::sDataSource, sIdentifierMapping, and BibDBDescriptor::sTableOrQuery.
|
inline |
Definition at line 138 of file datman.hxx.
References m_xParser.
OUString BibDataManager::getQueryField | ( | ) | const |
Definition at line 829 of file datman.cxx.
References aSeq, BibModul::GetConfig(), BibConfig::getQueryField(), and getQueryFields().
Referenced by createDatabaseForm(), setActiveDataSource(), setActiveDataTable(), and startQueryWith().
Sequence< OUString > BibDataManager::getQueryFields | ( | ) | const |
Definition at line 820 of file datman.cxx.
References getColumns(), and m_xForm.
Referenced by getQueryField().
bool BibDataManager::HasActiveConnection | ( | ) | const |
Definition at line 1390 of file datman.cxx.
References getConnection(), and m_xForm.
Referenced by bib::BibView::UpdatePages().
|
private |
Definition at line 563 of file datman.cxx.
References aFieldNames, Any, Exception, FM_PROP_CONTROLSOURCE, FM_PROP_LABEL, getColumns(), m_xForm, nType, and TOOLS_WARN_EXCEPTION.
|
overrideprivatevirtual |
Definition at line 1076 of file datman.cxx.
References DBG_ASSERT, and m_xForm.
|
overrideprivatevirtual |
Definition at line 1003 of file datman.cxx.
References DBG_ASSERT, isLoaded(), m_aLoadListeners, comphelper::UnoImplBase::m_aMutex, m_xForm, and comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach().
Referenced by setActiveDataSource().
Reference< awt::XControlModel > BibDataManager::loadControlModel | ( | const OUString & | rName, |
bool | bForceListBox | ||
) |
Definition at line 1177 of file datman.cxx.
References aName, Any, BibResId(), Exception, FM_PROP_CONTROLSOURCE, FM_PROP_NAME, getColumns(), getControlName(), comphelper::getProcessComponentContext(), i, m_xForm, TYPE_COUNT, and xModel.
Referenced by BibGeneralPage::AddXControl().
void BibDataManager::RegisterInterceptor | ( | const ::bib::BibBeamer * | pBibBeamer | ) |
Definition at line 1381 of file datman.cxx.
References DBG_ASSERT, m_xFormDispatch, and m_xInterceptorHelper.
|
overrideprivatevirtual |
Definition at line 1049 of file datman.cxx.
References DBG_ASSERT, isLoaded(), m_aLoadListeners, comphelper::UnoImplBase::m_aMutex, m_xForm, and comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach().
Referenced by CreateMappingDialog(), and setFilter().
|
overrideprivatevirtual |
Definition at line 1095 of file datman.cxx.
References m_aLoadListeners, comphelper::UnoImplBase::m_aMutex, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
inline |
Definition at line 157 of file datman.hxx.
References sIdentifierMapping.
Referenced by setActiveDataTable().
void BibDataManager::setActiveDataSource | ( | const OUString & | rURL | ) |
Definition at line 859 of file datman.cxx.
References aActiveDataTable, aDataSourceURL, aEvent, Any, aQuoteChar, aURL, getActiveDataTable(), BibModul::GetConfig(), getConnection(), getDataSources(), getQueryField(), BibConfig::getQueryText(), load(), m_xForm, m_xParser, pToolbar, sCatalog, setActiveDataTable(), BibConfig::setQueryField(), sName, sSchema, startQueryWith(), unload(), updateGridModel(), and xFactory.
Referenced by BibToolBar::Click().
void BibDataManager::setActiveDataTable | ( | const OUString & | rTable | ) |
Definition at line 939 of file datman.cxx.
References aActiveDataTable, aDataSourceURL, Any, aQuoteChar, Exception, BibModul::GetConfig(), getConnection(), getQueryField(), BibConfig::getQueryText(), m_xForm, m_xParser, BibDBDescriptor::nCommandType, nCount, ResetIdentifierMapping(), sCatalog, BibDBDescriptor::sDataSource, BibConfig::SetBibliographyURL(), BibConfig::setQueryField(), sName, sSchema, BibDBDescriptor::sTableOrQuery, startQueryWith(), and xFactory.
Referenced by setActiveDataSource().
void BibDataManager::setFilter | ( | const OUString & | rQuery | ) |
Definition at line 780 of file datman.cxx.
References Any, DBG_UNHANDLED_EXCEPTION, Exception, m_xForm, m_xParser, and reload().
Referenced by startQueryWith().
void BibDataManager::SetToolbar | ( | BibToolBar * | pSet | ) |
Definition at line 1362 of file datman.cxx.
References pToolbar.
Referenced by bib::BibBeamer::BibBeamer(), and bib::BibBeamer::dispose().
|
inline |
Definition at line 152 of file datman.hxx.
References pBibView.
void BibDataManager::startQueryWith | ( | const OUString & | rQuery | ) |
Definition at line 844 of file datman.cxx.
References aQuoteChar, BibModul::GetConfig(), getQueryField(), setFilter(), and BibConfig::setQueryText().
Referenced by createDatabaseForm(), setActiveDataSource(), and setActiveDataTable().
|
overrideprivatevirtual |
Definition at line 1022 of file datman.cxx.
References DBG_ASSERT, isLoaded(), m_aLoadListeners, comphelper::UnoImplBase::m_aMutex, m_xForm, and comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach().
Referenced by setActiveDataSource().
Reference< awt::XControlModel > BibDataManager::updateGridModel | ( | ) |
Definition at line 644 of file datman.cxx.
References m_xForm, and updateGridModel().
Referenced by setActiveDataSource(), and updateGridModel().
|
private |
Referenced by bib::BibBeamer::createGridWin().
|
private |
Definition at line 86 of file datman.hxx.
Referenced by createDatabaseForm(), getActiveDataTable(), setActiveDataSource(), and setActiveDataTable().
|
private |
Definition at line 87 of file datman.hxx.
Referenced by createDatabaseForm(), getActiveDataSource(), setActiveDataSource(), and setActiveDataTable().
|
private |
Definition at line 88 of file datman.hxx.
Referenced by createDatabaseForm(), setActiveDataSource(), setActiveDataTable(), and startQueryWith().
|
private |
Definition at line 90 of file datman.hxx.
Referenced by addLoadListener(), load(), reload(), removeLoadListener(), and unload().
|
private |
Definition at line 79 of file datman.hxx.
Referenced by createDatabaseForm(), getDataSources(), getFilter(), getForm(), getQueryFields(), HasActiveConnection(), InsertFields(), isLoaded(), load(), loadControlModel(), reload(), setActiveDataSource(), setActiveDataTable(), setFilter(), unload(), updateGridModel(), and ~BibDataManager().
|
private |
Definition at line 82 of file datman.hxx.
Referenced by GetFormController().
|
private |
Definition at line 83 of file datman.hxx.
Referenced by GetFormController(), and RegisterInterceptor().
|
private |
Definition at line 80 of file datman.hxx.
|
private |
Definition at line 84 of file datman.hxx.
Referenced by RegisterInterceptor(), and ~BibDataManager().
|
private |
Definition at line 81 of file datman.hxx.
Referenced by createDatabaseForm(), getParser(), setActiveDataSource(), setActiveDataTable(), and setFilter().
|
private |
Definition at line 92 of file datman.hxx.
Referenced by CreateMappingDialog(), and SetView().
|
private |
Definition at line 93 of file datman.hxx.
Referenced by DispatchDBChangeDialog(), setActiveDataSource(), and SetToolbar().
|
private |
Definition at line 95 of file datman.hxx.
Referenced by GetIdentifierMapping(), and ResetIdentifierMapping().