LibreOffice Module dbaccess (master) 1
|
#include <sbagrid.hxx>
Classes | |
struct | DispatchArgs |
Public Member Functions | |
SbaXGridPeer (const css::uno::Reference< css::uno::XComponentContext > &) | |
virtual | ~SbaXGridPeer () override |
virtual void SAL_CALL | acquire () noexcept override |
virtual void SAL_CALL | release () noexcept override |
virtual css::uno::Any SAL_CALL | queryInterface (const css::uno::Type &_rType) override |
virtual css::uno::Sequence< css::uno::Type > SAL_CALL | getTypes () override |
virtual void SAL_CALL | dispatch (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &aArgs) override |
virtual void SAL_CALL | addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override |
virtual void SAL_CALL | removeStatusListener (const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL) override |
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL | queryDispatch (const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override |
virtual void SAL_CALL | dispose () override |
Public Member Functions inherited from FmXGridPeer | |
FmXGridPeer (const css::uno::Reference< css::uno::XComponentContext > &) | |
virtual | ~FmXGridPeer () override |
void | Create (vcl::Window *pParent, WinBits nStyle) |
virtual css::uno::Reference< css::container::XIndexContainer > SAL_CALL | getColumns () override |
virtual void SAL_CALL | setColumns (const css::uno::Reference< css::container::XIndexContainer > &aColumns) override final |
virtual void SAL_CALL | dispose () override |
virtual void SAL_CALL | disposing (const css::lang::EventObject &Source) override |
virtual void SAL_CALL | addUpdateListener (const css::uno::Reference< css::form::XUpdateListener > &l) override |
virtual void SAL_CALL | removeUpdateListener (const css::uno::Reference< css::form::XUpdateListener > &l) override |
virtual sal_Bool SAL_CALL | commit () override |
virtual css::uno::Type SAL_CALL | getElementType () override |
virtual sal_Bool SAL_CALL | hasElements () override |
virtual css::uno::Reference< css::container::XEnumeration > SAL_CALL | createEnumeration () override |
virtual sal_Int32 SAL_CALL | getCount () override |
virtual css::uno::Any SAL_CALL | getByIndex (sal_Int32 _rIndex) override |
virtual void SAL_CALL | propertyChange (const css::beans::PropertyChangeEvent &evt) override |
virtual void SAL_CALL | loaded (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | unloaded (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | unloading (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | reloading (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | reloaded (const css::lang::EventObject &aEvent) override |
virtual void SAL_CALL | cursorMoved (const css::lang::EventObject &event) override |
virtual void SAL_CALL | rowChanged (const css::lang::EventObject &event) override |
virtual void SAL_CALL | rowSetChanged (const css::lang::EventObject &event) override |
virtual void SAL_CALL | elementInserted (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | elementRemoved (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | elementReplaced (const css::container::ContainerEvent &Event) override |
virtual void SAL_CALL | setProperty (const OUString &PropertyName, const css::uno::Any &Value) override |
virtual css::uno::Any SAL_CALL | getProperty (const OUString &PropertyName) override |
virtual css::uno::Reference< css::accessibility::XAccessibleContext > | CreateAccessibleContext () override |
virtual void SAL_CALL | addGridControlListener (const css::uno::Reference< css::form::XGridControlListener > &_listener) override |
virtual void SAL_CALL | removeGridControlListener (const css::uno::Reference< css::form::XGridControlListener > &_listener) override |
virtual sal_Int16 SAL_CALL | getCurrentColumnPosition () override |
virtual void SAL_CALL | setCurrentColumnPosition (sal_Int16 nPos) override |
virtual css::uno::Sequence< sal_Bool > SAL_CALL | queryFieldDataType (const css::uno::Type &xType) override |
virtual css::uno::Sequence< css::uno::Any > SAL_CALL | queryFieldData (sal_Int32 nRow, const css::uno::Type &xType) override |
virtual css::uno::Reference< css::sdbc::XRowSet > SAL_CALL | getRowSet () override |
virtual void SAL_CALL | setRowSet (const css::uno::Reference< css::sdbc::XRowSet > &xDataSource) override final |
virtual void SAL_CALL | addModifyListener (const css::uno::Reference< css::util::XModifyListener > &l) override |
virtual void SAL_CALL | removeModifyListener (const css::uno::Reference< css::util::XModifyListener > &l) override |
virtual void SAL_CALL | setDesignMode (sal_Bool bOn) override |
virtual sal_Bool SAL_CALL | isDesignMode () override |
virtual void SAL_CALL | selectionChanged (const css::lang::EventObject &aEvent) override |
void | CellModified () |
void | updateGrid (const css::uno::Reference< css::sdbc::XRowSet > &_rDatabaseCursor) |
void | startCursorListening () |
void | stopCursorListening () |
virtual void SAL_CALL | setMode (const OUString &Mode) override |
virtual OUString SAL_CALL | getMode () override |
virtual css::uno::Sequence< OUString > SAL_CALL | getSupportedModes () override |
virtual sal_Bool SAL_CALL | supportsMode (const OUString &Mode) override |
virtual void SAL_CALL | addContainerListener (const css::uno::Reference< css::container::XContainerListener > &l) override |
virtual void SAL_CALL | removeContainerListener (const css::uno::Reference< css::container::XContainerListener > &l) override |
void | columnVisible (DbGridColumn const *pColumn) |
void | columnHidden (DbGridColumn const *pColumn) |
virtual void SAL_CALL | draw (sal_Int32 x, sal_Int32 y) override |
virtual css::uno::Reference< css::frame::XDispatch > SAL_CALL | queryDispatch (const css::util::URL &aURL, const OUString &aTargetFrameName, sal_Int32 nSearchFlags) override |
virtual css::uno::Sequence< css::uno::Reference< css::frame::XDispatch > > SAL_CALL | queryDispatches (const css::uno::Sequence< css::frame::DispatchDescriptor > &aDescripts) override |
virtual void SAL_CALL | registerDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &xInterceptor) override |
virtual void SAL_CALL | releaseDispatchProviderInterceptor (const css::uno::Reference< css::frame::XDispatchProviderInterceptor > &xInterceptor) override |
virtual void SAL_CALL | statusChanged (const css::frame::FeatureStateEvent &Event) override |
virtual sal_Bool SAL_CALL | approveReset (const css::lang::EventObject &rEvent) override |
virtual void SAL_CALL | resetted (const css::lang::EventObject &rEvent) override |
virtual sal_Bool SAL_CALL | select (const css::uno::Any &aSelection) override |
virtual css::uno::Any SAL_CALL | getSelection () override |
virtual void SAL_CALL | addSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override |
virtual void SAL_CALL | removeSelectionChangeListener (const css::uno::Reference< css::view::XSelectionChangeListener > &xListener) override |
Private Types | |
enum | DispatchType { dtBrowserAttribs , dtRowHeight , dtColumnAttribs , dtColumnWidth , dtUnknown } |
typedef std::map< DispatchType, bool > | MapDispatchToBool |
Private Member Functions | |
virtual VclPtr< FmGridControl > | imp_CreateControl (vcl::Window *pParent, WinBits nStyle) override |
void | NotifyStatusChanged (const css::util::URL &aUrl, const css::uno::Reference< css::frame::XStatusListener > &xControl) |
DECL_LINK (OnDispatchEvent, void *, void) | |
Static Private Member Functions | |
static DispatchType | classifyDispatchURL (const css::util::URL &_rURL) |
Private Attributes | |
comphelper::OMultiTypeInterfaceContainerHelperVar4< css::util::URL, css::frame::XStatusListener, SbaURLCompare > | m_aStatusListeners |
std::queue< DispatchArgs > | m_aDispatchArgs |
MapDispatchToBool | m_aDispatchStates |
Additional Inherited Members | |
Protected Member Functions inherited from FmXGridPeer | |
virtual VclPtr< FmGridControl > | imp_CreateControl (vcl::Window *pParent, WinBits nStyle) |
void | ConnectToDispatcher () |
void | DisConnectFromDispatcher () |
void | UpdateDispatches () |
void | addColumnListeners (const css::uno::Reference< css::beans::XPropertySet > &xCol) |
void | removeColumnListeners (const css::uno::Reference< css::beans::XPropertySet > &xCol) |
void | selectionChanged () |
void | columnChanged () |
DECL_DLLPRIVATE_LINK (OnQueryGridSlotState, DbGridControlNavigationBarState, int) | |
DECL_DLLPRIVATE_LINK (OnExecuteGridSlot, DbGridControlNavigationBarState, bool) | |
Static Protected Member Functions inherited from FmXGridPeer | |
static css::uno::Sequence< css::util::URL > & | getSupportedURLs () |
static const std::vector< DbGridControlNavigationBarState > & | getSupportedGridSlots () |
Protected Attributes inherited from FmXGridPeer | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
std::mutex | m_aMutex |
Definition at line 92 of file sbagrid.hxx.
|
private |
Definition at line 146 of file sbagrid.hxx.
|
private |
Enumerator | |
---|---|
dtBrowserAttribs | |
dtRowHeight | |
dtColumnAttribs | |
dtColumnWidth | |
dtUnknown |
Definition at line 135 of file sbagrid.hxx.
SbaXGridPeer::SbaXGridPeer | ( | const css::uno::Reference< css::uno::XComponentContext > & | ) |
Definition at line 238 of file sbagrid.cxx.
|
overridevirtual |
Definition at line 243 of file sbagrid.cxx.
|
inlineoverridevirtualnoexcept |
Definition at line 104 of file sbagrid.hxx.
|
overridevirtual |
Definition at line 441 of file sbagrid.cxx.
References comphelper::OInterfaceContainerHelper4< class ListenerT >::addInterface(), aURL, FmXGridPeer::m_aMutex, m_aStatusListeners, and NotifyStatusChanged().
|
staticprivate |
Definition at line 330 of file sbagrid.cxx.
References dtBrowserAttribs, dtColumnAttribs, dtColumnWidth, dtRowHeight, and dtUnknown.
Referenced by dispatch(), and NotifyStatusChanged().
|
private |
|
overridevirtual |
Definition at line 344 of file sbagrid.cxx.
References dbaui::SbaXGridPeer::DispatchArgs::aArgs, aURL, dbaui::SbaXGridPeer::DispatchArgs::aURL, classifyDispatchURL(), dtBrowserAttribs, dtColumnAttribs, dtColumnWidth, dtRowHeight, dtUnknown, Application::IsMainThread(), LINK, m_aDispatchArgs, m_aDispatchStates, and NotifyStatusChanged().
Referenced by IMPL_LINK_NOARG().
|
overridevirtual |
Reimplemented from FmXGridPeer.
Definition at line 247 of file sbagrid.cxx.
References FmXGridPeer::dispose(), FmXGridPeer::m_aMutex, and m_aStatusListeners.
Definition at line 463 of file sbagrid.cxx.
References comphelper::concatSequences(), and cppu::UnoType< typename T >::get().
|
overrideprivatevirtual |
Reimplemented from FmXGridPeer.
Definition at line 470 of file sbagrid.cxx.
References VclPtr< class reference_type >::Create(), and FmXGridPeer::m_xContext.
|
private |
Definition at line 257 of file sbagrid.cxx.
References classifyDispatchURL(), m_aDispatchStates, FmXGridPeer::m_aMutex, m_aStatusListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::notifyEach().
Referenced by addStatusListener(), and dispatch().
|
overridevirtual |
Reimplemented from FmXGridPeer.
Definition at line 297 of file sbagrid.cxx.
References aURL, and FmXGridPeer::queryDispatch().
|
overridevirtual |
Definition at line 289 of file sbagrid.cxx.
References Any.
|
inlineoverridevirtualnoexcept |
Definition at line 105 of file sbagrid.hxx.
|
overridevirtual |
Definition at line 455 of file sbagrid.cxx.
References aURL, FmXGridPeer::m_aMutex, m_aStatusListeners, and comphelper::OInterfaceContainerHelper4< class ListenerT >::removeInterface().
|
private |
Definition at line 131 of file sbagrid.hxx.
Referenced by dispatch().
|
private |
Definition at line 147 of file sbagrid.hxx.
Referenced by dispatch(), and NotifyStatusChanged().
|
private |
Definition at line 97 of file sbagrid.hxx.
Referenced by addStatusListener(), dispose(), NotifyStatusChanged(), and removeStatusListener().