LibreOffice Module extensions (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
BibDataManager Class Referencefinal

#include <datman.hxx>

Inheritance diagram for BibDataManager:
[legend]
Collaboration diagram for BibDataManager:
[legend]

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< BibInterceptorHelperm_xInterceptorHelper
 
OUString aActiveDataTable
 
OUString aDataSourceURL
 
OUString aQuoteChar
 
::comphelper::OInterfaceContainerHelper4< css::form::XLoadListener > m_aLoadListeners
 
VclPtr< ::bib::BibViewpBibView
 
VclPtr< BibToolBarpToolbar
 
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
 

Detailed Description

Definition at line 76 of file datman.hxx.

Constructor & Destructor Documentation

◆ BibDataManager()

BibDataManager::BibDataManager ( )

Definition at line 532 of file datman.cxx.

◆ ~BibDataManager()

BibDataManager::~BibDataManager ( )
overridevirtual

Definition at line 539 of file datman.cxx.

References m_xForm, and m_xInterceptorHelper.

Member Function Documentation

◆ addLoadListener()

void SAL_CALL BibDataManager::addLoadListener ( const css::uno::Reference< css::form::XLoadListener > &  aListener)
overrideprivatevirtual

◆ createDatabaseForm()

Reference< XForm > BibDataManager::createDatabaseForm ( BibDBDescriptor aDesc)

◆ CreateDBChangeDialog()

OUString BibDataManager::CreateDBChangeDialog ( weld::Window pParent)

Definition at line 1315 of file datman.cxx.

References getActiveDataSource(), and RET_OK.

Referenced by BibToolBar::Click().

◆ createGridModel()

Reference< awt::XControlModel > BibDataManager::createGridModel ( const OUString &  rName)
staticprivate

Definition at line 1102 of file datman.cxx.

References Any, Exception, HID_BIB_DB_GRIDCTRL, INET_HID_SCHEME, and xModel.

◆ CreateMappingDialog()

void BibDataManager::CreateMappingDialog ( weld::Window pParent)

Definition at line 1306 of file datman.cxx.

References pBibView, reload(), and RET_OK.

Referenced by BibToolBar::Click().

◆ DispatchDBChangeDialog()

void BibDataManager::DispatchDBChangeDialog ( )

Definition at line 1330 of file datman.cxx.

References pToolbar.

Referenced by bib::BibView::UpdatePages().

◆ getActiveDataSource()

const OUString & BibDataManager::getActiveDataSource ( ) const
inline

◆ getActiveDataTable()

const OUString & BibDataManager::getActiveDataTable ( ) const
inline

◆ getControlName()

OUString BibDataManager::getControlName ( sal_Int32  nFormatKey)
static

Definition at line 1138 of file datman.cxx.

Referenced by loadControlModel().

◆ getDataSources()

Sequence< OUString > BibDataManager::getDataSources ( ) const

Definition at line 758 of file datman.cxx.

References Exception, getConnection(), and m_xForm.

Referenced by setActiveDataSource().

◆ getFilter()

OUString BibDataManager::getFilter ( ) const

Definition at line 801 of file datman.cxx.

References DBG_UNHANDLED_EXCEPTION, Exception, and m_xForm.

◆ getForm()

const css::uno::Reference< css::form::XForm > & BibDataManager::getForm ( ) const
inline

Definition at line 139 of file datman.hxx.

References m_xForm.

Referenced by GetFormController(), and BibGeneralPage::SaveChanges().

◆ GetFormController()

uno::Reference< form::runtime::XFormController > const & BibDataManager::GetFormController ( )

◆ GetIdentifierMapping()

const OUString & BibDataManager::GetIdentifierMapping ( )

◆ getParser()

const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > & BibDataManager::getParser ( ) const
inline

Definition at line 138 of file datman.hxx.

References m_xParser.

◆ getQueryField()

OUString BibDataManager::getQueryField ( ) const

◆ getQueryFields()

Sequence< OUString > BibDataManager::getQueryFields ( ) const

Definition at line 820 of file datman.cxx.

References getColumns(), and m_xForm.

Referenced by getQueryField().

◆ HasActiveConnection()

bool BibDataManager::HasActiveConnection ( ) const

Definition at line 1390 of file datman.cxx.

References getConnection(), and m_xForm.

Referenced by bib::BibView::UpdatePages().

◆ InsertFields()

void BibDataManager::InsertFields ( const css::uno::Reference< css::form::XFormComponent > &  xGrid)
private

◆ isLoaded()

sal_Bool SAL_CALL BibDataManager::isLoaded ( )
overrideprivatevirtual

Definition at line 1076 of file datman.cxx.

References DBG_ASSERT, and m_xForm.

Referenced by load(), reload(), and unload().

◆ load()

void SAL_CALL BibDataManager::load ( )
overrideprivatevirtual

◆ loadControlModel()

Reference< awt::XControlModel > BibDataManager::loadControlModel ( const OUString &  rName,
bool  bForceListBox 
)

◆ RegisterInterceptor()

void BibDataManager::RegisterInterceptor ( const ::bib::BibBeamer pBibBeamer)

Definition at line 1381 of file datman.cxx.

References DBG_ASSERT, m_xFormDispatch, and m_xInterceptorHelper.

◆ reload()

void SAL_CALL BibDataManager::reload ( )
overrideprivatevirtual

◆ removeLoadListener()

void SAL_CALL BibDataManager::removeLoadListener ( const css::uno::Reference< css::form::XLoadListener > &  aListener)
overrideprivatevirtual

◆ ResetIdentifierMapping()

void BibDataManager::ResetIdentifierMapping ( )
inline

Definition at line 157 of file datman.hxx.

References sIdentifierMapping.

Referenced by setActiveDataTable().

◆ setActiveDataSource()

void BibDataManager::setActiveDataSource ( const OUString &  rURL)

◆ setActiveDataTable()

void BibDataManager::setActiveDataTable ( const OUString &  rTable)

◆ setFilter()

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().

◆ SetToolbar()

void BibDataManager::SetToolbar ( BibToolBar pSet)

Definition at line 1362 of file datman.cxx.

References pToolbar.

Referenced by bib::BibBeamer::BibBeamer(), and bib::BibBeamer::dispose().

◆ SetView()

void BibDataManager::SetView ( ::bib::BibView pView)
inline

Definition at line 152 of file datman.hxx.

References pBibView.

◆ startQueryWith()

void BibDataManager::startQueryWith ( const OUString &  rQuery)

◆ unload()

void SAL_CALL BibDataManager::unload ( )
overrideprivatevirtual

◆ updateGridModel() [1/2]

Reference< awt::XControlModel > BibDataManager::updateGridModel ( )

Definition at line 644 of file datman.cxx.

References m_xForm, and updateGridModel().

Referenced by setActiveDataSource(), and updateGridModel().

◆ updateGridModel() [2/2]

css::uno::Reference< css::awt::XControlModel > const & BibDataManager::updateGridModel ( const css::uno::Reference< css::form::XForm > &  xDbForm)
private

Member Data Documentation

◆ aActiveDataTable

OUString BibDataManager::aActiveDataTable
private

◆ aDataSourceURL

OUString BibDataManager::aDataSourceURL
private

◆ aQuoteChar

OUString BibDataManager::aQuoteChar
private

◆ m_aLoadListeners

::comphelper::OInterfaceContainerHelper4<css::form::XLoadListener> BibDataManager::m_aLoadListeners
private

Definition at line 90 of file datman.hxx.

Referenced by addLoadListener(), load(), reload(), removeLoadListener(), and unload().

◆ m_xForm

css::uno::Reference< css::form::XForm > BibDataManager::m_xForm
private

◆ m_xFormCtrl

css::uno::Reference< css::form::runtime::XFormController > BibDataManager::m_xFormCtrl
private

Definition at line 82 of file datman.hxx.

Referenced by GetFormController().

◆ m_xFormDispatch

css::uno::Reference< css::frame::XDispatch > BibDataManager::m_xFormDispatch
private

Definition at line 83 of file datman.hxx.

Referenced by GetFormController(), and RegisterInterceptor().

◆ m_xGridModel

css::uno::Reference< css::awt::XControlModel > BibDataManager::m_xGridModel
private

Definition at line 80 of file datman.hxx.

◆ m_xInterceptorHelper

rtl::Reference<BibInterceptorHelper> BibDataManager::m_xInterceptorHelper
private

Definition at line 84 of file datman.hxx.

Referenced by RegisterInterceptor(), and ~BibDataManager().

◆ m_xParser

css::uno::Reference< css::sdb::XSingleSelectQueryComposer > BibDataManager::m_xParser
private

◆ pBibView

VclPtr< ::bib::BibView> BibDataManager::pBibView
private

Definition at line 92 of file datman.hxx.

Referenced by CreateMappingDialog(), and SetView().

◆ pToolbar

VclPtr<BibToolBar> BibDataManager::pToolbar
private

Definition at line 93 of file datman.hxx.

Referenced by DispatchDBChangeDialog(), setActiveDataSource(), and SetToolbar().

◆ sIdentifierMapping

OUString BibDataManager::sIdentifierMapping
private

Definition at line 95 of file datman.hxx.

Referenced by GetIdentifierMapping(), and ResetIdentifierMapping().


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