26#include <com/sun/star/form/XLoadable.hpp>
27#include <com/sun/star/container/XContainerListener.hpp>
28#include <com/sun/star/sdb/XSQLErrorListener.hpp>
29#include <com/sun/star/sdbc/XRowSet.hpp>
30#include <com/sun/star/form/XResetListener.hpp>
31#include <com/sun/star/form/XDatabaseParameterListener.hpp>
32#include <com/sun/star/form/XConfirmDeleteListener.hpp>
33#include <com/sun/star/form/XFormComponent.hpp>
34#include <com/sun/star/awt/XFocusListener.hpp>
35#include <com/sun/star/sdbcx/XColumnsSupplier.hpp>
36#include <com/sun/star/sdb/XSingleSelectQueryComposer.hpp>
37#include <com/sun/star/beans/XPropertyChangeListener.hpp>
38#include <com/sun/star/frame/XModule.hpp>
50 class SQLExceptionInfo;
56 typedef ::cppu::ImplInheritanceHelper < OGenericUnoController
57 , css::sdb::XSQLErrorListener
58 , css::form::XDatabaseParameterListener
59 , css::form::XConfirmDeleteListener
60 , css::form::XLoadListener
61 , css::form::XResetListener
62 , css::awt::XFocusListener
63 , css::container::XContainerListener
64 , css::beans::XPropertyChangeListener
77 css::uno::Reference< css::sdbc::XRowSet >
m_xRowSet;
82 mutable css::uno::Reference< css::sdb::XSingleSelectQueryComposer >
125 css::uno::Reference< css::awt::XControlModel >
getControlModel()
const {
return css::uno::Reference< css::awt::XControlModel > (
m_xGridModel, css::uno::UNO_QUERY); }
132 void onStartLoading(
const css::uno::Reference< css::form::XLoadable >& _rxLoadable );
143 virtual css::uno::Any SAL_CALL
queryInterface(
const css::uno::Type& _rType)
override;
146 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
getTypes( )
override;
150 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source)
override;
153 virtual void SAL_CALL
modified(
const css::lang::EventObject& aEvent)
override;
156 virtual void SAL_CALL
elementInserted(
const css::container::ContainerEvent& Event)
override;
157 virtual void SAL_CALL
elementRemoved(
const css::container::ContainerEvent& Event)
override;
158 virtual void SAL_CALL
elementReplaced(
const css::container::ContainerEvent& Event)
override;
161 virtual void SAL_CALL
propertyChange(
const css::beans::PropertyChangeEvent& evt )
override;
164 virtual void SAL_CALL
setIdentifier(
const OUString& Identifier )
override;
168 virtual void SAL_CALL
focusGained(
const css::awt::FocusEvent& e)
override;
169 virtual void SAL_CALL
focusLost(
const css::awt::FocusEvent& e)
override;
175 virtual void SAL_CALL
disposing()
override;
178 virtual void SAL_CALL
frameAction(
const css::frame::FrameActionEvent& aEvent)
override;
181 virtual void SAL_CALL
errorOccured(
const css::sdb::SQLErrorEvent& aEvent)
override;
190 virtual void SAL_CALL
loaded(
const css::lang::EventObject& aEvent)
override;
191 virtual void SAL_CALL
unloading(
const css::lang::EventObject& aEvent)
override;
192 virtual void SAL_CALL
unloaded(
const css::lang::EventObject& aEvent)
override;
193 virtual void SAL_CALL
reloading(
const css::lang::EventObject& aEvent)
override;
194 virtual void SAL_CALL
reloaded(
const css::lang::EventObject& aEvent)
override;
198 virtual void SAL_CALL
resetted(
const css::lang::EventObject& rEvent)
override;
219 virtual void Execute(sal_uInt16 nId,
const css::uno::Sequence< css::beans::PropertyValue>& aArgs)
override;
221 virtual void startFrameListening(
const css::uno::Reference< css::frame::XFrame >& _rxFrame )
override;
222 virtual void stopFrameListening(
const css::uno::Reference< css::frame::XFrame >& _rxFrame )
override;
224 virtual css::uno::Reference< css::sdbc::XRowSet >
CreateForm();
230 const css::uno::Reference< css::beans::XPropertySet >& i_formProperties ) = 0;
248 virtual void addModelListeners(
const css::uno::Reference< css::awt::XControlModel > & _xGridControlModel);
249 virtual void removeModelListeners(
const css::uno::Reference< css::awt::XControlModel > & _xGridControlModel);
252 virtual void AddColumnListener(
const css::uno::Reference< css::beans::XPropertySet > & xCol);
253 virtual void RemoveColumnListener(
const css::uno::Reference< css::beans::XPropertySet > & xCol);
280 css::uno::Reference< css::beans::XPropertySet >
getBoundField()
const;
291 bool reloadForm(
const css::uno::Reference< css::form::XLoadable >& _rxLoadable);
296 css::uno::Reference< css::sdb::XSingleSelectQueryComposer >
309 void applyParserFilter(
const OUString& _rOldFilter,
bool _bOldFilterApplied,const ::OUString& _sOldHaving,
const css::uno::Reference< css::sdb::XSingleSelectQueryComposer >& _xParser);
310 void applyParserOrder(
const OUString& _rOldOrder,
const css::uno::Reference< css::sdb::XSingleSelectQueryComposer >& _xParser);
314 void addColumnListeners(
const css::uno::Reference< css::awt::XControlModel > & _xGridControlModel);
handles asynchronous links which may be called in multi-threaded environments If you use an instance ...
virtual sal_Bool SAL_CALL confirmDelete(const css::sdb::RowChangeEvent &aEvent) override
const css::uno::Reference< css::form::XLoadable > & getLoadable() const
bool isValidCursor() const
void onStartLoading(const css::uno::Reference< css::form::XLoadable > &_rxLoadable)
DECL_LINK(OnAsyncGetCellFocus, void *, void)
OAsynchronousLink m_aAsyncGetCellFocus
css::uno::Reference< css::form::XFormComponent > CreateGridModel()
virtual void describeSupportedFeatures() override
virtual void postReloadForm()
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
DECL_LINK(OnAsyncDisplayError, void *, void)
virtual void SAL_CALL errorOccured(const css::sdb::SQLErrorEvent &aEvent) override
virtual void RowChanged() override
void removeControlListeners(const css::uno::Reference< css::awt::XControl > &_xGridControl)
void disposingColumnModel(const css::lang::EventObject &Source)
DECL_LINK(OnCanceledNotFound, FmFoundRecordInformation &, void)
virtual void RemoveColumnListener(const css::uno::Reference< css::beans::XPropertySet > &xCol)
virtual void stopFrameListening(const css::uno::Reference< css::frame::XFrame > &_rxFrame) override
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
virtual void LoadFinished(bool bWasSynch)
virtual void SAL_CALL frameAction(const css::frame::FrameActionEvent &aEvent) override
virtual void SAL_CALL focusGained(const css::awt::FocusEvent &e) override
virtual void SAL_CALL resetted(const css::lang::EventObject &rEvent) override
void impl_checkForCannotSelectUnfiltered(const ::dbtools::SQLExceptionInfo &_rError)
rtl::Reference< FormControllerImpl > m_xFormControllerImpl
virtual sal_Bool SAL_CALL approveParameter(const css::form::DatabaseParameterEvent &aEvent) override
virtual sal_Bool SAL_CALL approveReset(const css::lang::EventObject &rEvent) override
virtual void SAL_CALL disposing() override
const css::uno::Reference< css::form::XFormComponent > & getFormComponent() const
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &_rType) override
::dbtools::SQLExceptionInfo m_aCurrentError
virtual void SAL_CALL reloading(const css::lang::EventObject &aEvent) override
const css::uno::Reference< css::util::XNumberFormatter > & getNumberFormatter() const
virtual sal_Bool SAL_CALL suspend(sal_Bool bSuspend) override
void ExecuteFilterSortCrit(bool bFilter)
bool SaveModified(bool bAskFor=true)
virtual void CellActivated() override
virtual FeatureState GetState(sal_uInt16 nId) const override
virtual void AddColumnListener(const css::uno::Reference< css::beans::XPropertySet > &xCol)
virtual void SAL_CALL loaded(const css::lang::EventObject &aEvent) override
OUString m_sStateSaveRecord
UnoDataBrowserView * getBrowserView() const
bool m_bCannotSelectUnfiltered
TransferableDataHelper m_aSystemClipboard
virtual ~SbaXDataBrowserController() override
void setCurrentModified(bool _bSet)
virtual void SAL_CALL unloaded(const css::lang::EventObject &aEvent) override
css::uno::Reference< css::beans::XPropertySet > getBoundField() const
css::uno::Reference< css::form::XFormComponent > m_xGridModel
sal_Int32 m_nRowSetPrivileges
virtual bool InitializeForm(const css::uno::Reference< css::beans::XPropertySet > &i_formProperties)=0
virtual bool preReloadForm()
const css::uno::Reference< css::sdbc::XRowSet > & getRowSet() const
virtual void BeforeDrop() override
void applyParserFilter(const OUString &_rOldFilter, bool _bOldFilterApplied, const ::OUString &_sOldHaving, const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > &_xParser)
void disposingFormModel(const css::lang::EventObject &Source)
OAsynchronousLink m_aAsyncDisplayError
DECL_LINK(OnSearchContextRequest, FmSearchContext &, sal_uInt32)
virtual void SAL_CALL reloaded(const css::lang::EventObject &aEvent) override
css::uno::Reference< css::util::XNumberFormatter > m_xFormatter
virtual void SelectionChanged() override
DECL_LINK(OnInvalidateClipboard, Timer *, void)
SbaXDataBrowserController(const css::uno::Reference< css::uno::XComponentContext > &_rM)
AutoTimer m_aInvalidateClipboard
virtual void SAL_CALL propertyChange(const css::beans::PropertyChangeEvent &evt) override
DECL_LINK(OnFoundData, FmFoundRecordInformation &, void)
virtual void CellDeactivated() override
css::uno::Reference< css::form::XLoadable > m_xLoadable
css::uno::Reference< css::sdbcx::XColumnsSupplier > m_xColumnsSupplier
virtual void startFrameListening(const css::uno::Reference< css::frame::XFrame > &_rxFrame) override
css::uno::Reference< css::sdbc::XRowSet > m_xRowSet
virtual bool Construct(vcl::Window *pParent) override
void setLoadingCancelled()
virtual void addModelListeners(const css::uno::Reference< css::awt::XControlModel > &_xGridControlModel)
virtual void criticalFail()
virtual void SAL_CALL elementReplaced(const css::container::ContainerEvent &Event) override
virtual void removeModelListeners(const css::uno::Reference< css::awt::XControlModel > &_xGridControlModel)
virtual void AfterDrop() override
virtual OUString SAL_CALL getIdentifier() override
virtual void ColumnChanged() override
void addColumnListeners(const css::uno::Reference< css::awt::XControlModel > &_xGridControlModel)
virtual void Execute(sal_uInt16 nId, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > m_xParser
OUString m_sStateUndoRecord
virtual void SAL_CALL unloading(const css::lang::EventObject &aEvent) override
sal_Int16 getCurrentColumnPosition() const
OUString m_sModuleIdentifier
virtual void SAL_CALL setIdentifier(const OUString &Identifier) override
bool loadingCancelled() const
sal_uInt16 m_nFormActionNestingLevel
virtual void SAL_CALL elementRemoved(const css::container::ContainerEvent &Event) override
css::uno::Reference< css::sdb::XSingleSelectQueryComposer > createParser_nothrow()
void addControlListeners(const css::uno::Reference< css::awt::XControl > &_xGridControl)
css::uno::Reference< css::awt::XControlModel > getControlModel() const
void setCurrentColumnPosition(sal_Int16 _nPos)
rtl::Reference< TransferableClipboardListener > m_pClipboardNotifier
virtual void SAL_CALL modified(const css::lang::EventObject &aEvent) override
virtual css::uno::Reference< css::sdbc::XRowSet > CreateForm()
void applyParserOrder(const OUString &_rOldOrder, const css::uno::Reference< css::sdb::XSingleSelectQueryComposer > &_xParser)
virtual void SAL_CALL elementInserted(const css::container::ContainerEvent &Event) override
bool reloadForm(const css::uno::Reference< css::form::XLoadable > &_rxLoadable)
loads or reloads the form
void initializeParser() const
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
DECL_LINK(OnClipboardChanged, TransferableDataHelper *, void)
virtual void SAL_CALL focusLost(const css::awt::FocusEvent &e) override
::cppu::ImplInheritanceHelper< OGenericUnoController, css::sdb::XSQLErrorListener, css::form::XDatabaseParameterListener, css::form::XConfirmDeleteListener, css::form::XLoadListener, css::form::XResetListener, css::awt::XFocusListener, css::container::XContainerListener, css::beans::XPropertyChangeListener, css::frame::XModule > SbaXDataBrowserController_Base
SwView * getView(const uno::Reference< frame::XModel > &xModel)
describes the state of a feature