24#include <com/sun/star/awt/XControlModel.hpp>
25#include <com/sun/star/form/XForm.hpp>
26#include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
27#include <com/sun/star/form/runtime/XFormController.hpp>
30#include <com/sun/star/form/XLoadable.hpp>
31#include <com/sun/star/frame/XDispatchProviderInterceptor.hpp>
32#include <com/sun/star/frame/XDispatchProviderInterception.hpp>
48 :
public cppu::WeakImplHelper< css::frame::XDispatchProviderInterceptor >
54 css::uno::Reference< css::frame::XDispatchProviderInterception >
xInterception;
60 BibInterceptorHelper( const ::bib::BibBeamer* pBibBeamer, css::uno::Reference< css::frame::XDispatch >
const & xDispatch);
65 virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL
queryDispatch(
const css::util::URL& aURL,
const OUString& aTargetFrameName, sal_Int32 nSearchFlags )
override;
66 virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL
queryDispatches(
const css::uno::Sequence< css::frame::DispatchDescriptor >& aDescripts )
override;
69 virtual void SAL_CALL
setSlaveDispatchProvider(
const css::uno::Reference< css::frame::XDispatchProvider >& xNewSlaveDispatchProvider )
override;
71 virtual void SAL_CALL
setMasterDispatchProvider(
const css::uno::Reference< css::frame::XDispatchProvider >& xNewMasterDispatchProvider )
override;
79 css::uno::Reference< css::form::XForm >
m_xForm;
81 css::uno::Reference< css::sdb::XSingleSelectQueryComposer >
m_xParser;
82 css::uno::Reference< css::form::runtime::XFormController >
m_xFormCtrl;
97 void InsertFields(
const css::uno::Reference< css::form::XFormComponent > & xGrid);
99 css::uno::Reference< css::awt::XControlModel >
const &
101 static css::uno::Reference< css::awt::XControlModel >
105 virtual void SAL_CALL
load( )
override;
106 virtual void SAL_CALL
unload( )
override;
107 virtual void SAL_CALL
reload( )
override;
109 virtual void SAL_CALL
addLoadListener(
const css::uno::Reference< css::form::XLoadListener >& aListener )
override;
110 virtual void SAL_CALL
removeLoadListener(
const css::uno::Reference< css::form::XLoadListener >& aListener )
override;
112 using WeakComponentImplHelperBase::disposing;
138 const css::uno::Reference< css::sdb::XSingleSelectQueryComposer >&
getParser()
const {
return m_xParser; }
139 const css::uno::Reference< css::form::XForm >&
getForm()
const {
return m_xForm; }
144 css::uno::Reference< css::awt::XControlModel >
loadControlModel(
const OUString& rName,
159 css::uno::Reference< css::form::runtime::XFormController >
const &
GetFormController();
css::uno::Reference< css::frame::XDispatch > m_xFormDispatch
VclPtr< ::bib::BibView > pBibView
const OUString & GetIdentifierMapping()
virtual sal_Bool SAL_CALL isLoaded() override
static css::uno::Reference< css::awt::XControlModel > createGridModel(const OUString &rName)
const OUString & getActiveDataTable() const
void DispatchDBChangeDialog()
void SetView(::bib::BibView *pView)
css::uno::Reference< css::form::runtime::XFormController > m_xFormCtrl
VclPtr< BibToolBar > pToolbar
OUString sIdentifierMapping
void CreateMappingDialog(weld::Window *pParent)
css::uno::Reference< css::form::XForm > m_xForm
::comphelper::OInterfaceContainerHelper4< css::form::XLoadListener > m_aLoadListeners
rtl::Reference< BibInterceptorHelper > m_xInterceptorHelper
css::uno::Reference< css::awt::XControlModel > loadControlModel(const OUString &rName, bool bForceListBox)
void setActiveDataTable(const OUString &rTable)
OUString getQueryField() const
css::uno::Reference< css::awt::XControlModel > const & updateGridModel(const css::uno::Reference< css::form::XForm > &xDbForm)
void ResetIdentifierMapping()
css::uno::Sequence< OUString > getDataSources() const
const OUString & getActiveDataSource() const
css::uno::Reference< css::form::XForm > createDatabaseForm(BibDBDescriptor &aDesc)
void InsertFields(const css::uno::Reference< css::form::XFormComponent > &xGrid)
virtual void SAL_CALL unload() override
virtual void SAL_CALL reload() override
virtual void SAL_CALL removeLoadListener(const css::uno::Reference< css::form::XLoadListener > &aListener) override
virtual ~BibDataManager() override
OUString CreateDBChangeDialog(weld::Window *pParent)
void setFilter(const OUString &rQuery)
const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > & getParser() const
OUString getFilter() const
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > m_xParser
virtual void SAL_CALL load() override
bool HasActiveConnection() const
static OUString getControlName(sal_Int32 nFormatKey)
virtual void SAL_CALL addLoadListener(const css::uno::Reference< css::form::XLoadListener > &aListener) override
css::uno::Reference< css::awt::XControlModel > updateGridModel()
const css::uno::Reference< css::form::XForm > & getForm() const
void RegisterInterceptor(const ::bib::BibBeamer *pBibBeamer)
void startQueryWith(const OUString &rQuery)
css::uno::Sequence< OUString > getQueryFields() const
void setActiveDataSource(const OUString &rURL)
OUString aActiveDataTable
void SetToolbar(BibToolBar *pSet)
css::uno::Reference< css::form::runtime::XFormController > const & GetFormController()
css::uno::Reference< css::awt::XControlModel > m_xGridModel
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getMasterDispatchProvider() override
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL queryDispatch(const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override
void ReleaseInterceptor()
BibInterceptorHelper(const ::bib::BibBeamer *pBibBeamer, css::uno::Reference< css::frame::XDispatch > const &xDispatch)
css::uno::Reference< css::frame::XDispatch > xFormDispatch
css::uno::Reference< css::frame::XDispatchProvider > xSlaveDispatchProvider
virtual void SAL_CALL setSlaveDispatchProvider(const css::uno::Reference< css::frame::XDispatchProvider > &xNewSlaveDispatchProvider) override
virtual void SAL_CALL setMasterDispatchProvider(const css::uno::Reference< css::frame::XDispatchProvider > &xNewMasterDispatchProvider) override
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL queryDispatches(const css::uno::Sequence< css::frame::DispatchDescriptor > &aDescripts) override
virtual ~BibInterceptorHelper() override
css::uno::Reference< css::frame::XDispatchProviderInterception > xInterception
virtual css::uno::Reference< css::frame::XDispatchProvider > SAL_CALL getSlaveDispatchProvider() override
css::uno::Reference< css::frame::XDispatchProvider > xMasterDispatchProvider
comphelper::WeakComponentImplHelper< css::form::XLoadable > BibDataManager_Base