LibreOffice Module dbaccess (master) 1
Classes | Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
dbaui::SbaXGridPeer Class Referencefinal

#include <sbagrid.hxx>

Inheritance diagram for dbaui::SbaXGridPeer:
[legend]
Collaboration diagram for dbaui::SbaXGridPeer:
[legend]

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< FmGridControlimp_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, SbaURLComparem_aStatusListeners
 
std::queue< DispatchArgsm_aDispatchArgs
 
MapDispatchToBool m_aDispatchStates
 

Additional Inherited Members

- Protected Member Functions inherited from FmXGridPeer
virtual VclPtr< FmGridControlimp_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
 

Detailed Description

Definition at line 92 of file sbagrid.hxx.

Member Typedef Documentation

◆ MapDispatchToBool

Definition at line 146 of file sbagrid.hxx.

Member Enumeration Documentation

◆ DispatchType

Enumerator
dtBrowserAttribs 
dtRowHeight 
dtColumnAttribs 
dtColumnWidth 
dtUnknown 

Definition at line 135 of file sbagrid.hxx.

Constructor & Destructor Documentation

◆ SbaXGridPeer()

SbaXGridPeer::SbaXGridPeer ( const css::uno::Reference< css::uno::XComponentContext > &  )

Definition at line 238 of file sbagrid.cxx.

◆ ~SbaXGridPeer()

SbaXGridPeer::~SbaXGridPeer ( )
overridevirtual

Definition at line 243 of file sbagrid.cxx.

Member Function Documentation

◆ acquire()

virtual void SAL_CALL dbaui::SbaXGridPeer::acquire ( )
inlineoverridevirtualnoexcept

Definition at line 104 of file sbagrid.hxx.

◆ addStatusListener()

void SAL_CALL SbaXGridPeer::addStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  xControl,
const css::util::URL &  aURL 
)
overridevirtual

◆ classifyDispatchURL()

SbaXGridPeer::DispatchType SbaXGridPeer::classifyDispatchURL ( const css::util::URL &  _rURL)
staticprivate

Definition at line 330 of file sbagrid.cxx.

References dtBrowserAttribs, dtColumnAttribs, dtColumnWidth, dtRowHeight, and dtUnknown.

Referenced by dispatch(), and NotifyStatusChanged().

◆ DECL_LINK()

dbaui::SbaXGridPeer::DECL_LINK ( OnDispatchEvent  ,
void *  ,
void   
)
private

◆ dispatch()

void SAL_CALL SbaXGridPeer::dispatch ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs 
)
overridevirtual

◆ dispose()

void SAL_CALL SbaXGridPeer::dispose ( void  )
overridevirtual

Reimplemented from FmXGridPeer.

Definition at line 247 of file sbagrid.cxx.

References FmXGridPeer::dispose(), FmXGridPeer::m_aMutex, and m_aStatusListeners.

◆ getTypes()

Sequence< Type > SAL_CALL SbaXGridPeer::getTypes ( )
overridevirtual

◆ imp_CreateControl()

VclPtr< FmGridControl > SbaXGridPeer::imp_CreateControl ( vcl::Window pParent,
WinBits  nStyle 
)
overrideprivatevirtual

Reimplemented from FmXGridPeer.

Definition at line 470 of file sbagrid.cxx.

References VclPtr< class reference_type >::Create(), and FmXGridPeer::m_xContext.

◆ NotifyStatusChanged()

void SbaXGridPeer::NotifyStatusChanged ( const css::util::URL &  aUrl,
const css::uno::Reference< css::frame::XStatusListener > &  xControl 
)
private

◆ queryDispatch()

Reference< css::frame::XDispatch > SAL_CALL SbaXGridPeer::queryDispatch ( const css::util::URL &  aURL,
const OUString &  aTargetFrameName,
sal_Int32  nSearchFlags 
)
overridevirtual

Reimplemented from FmXGridPeer.

Definition at line 297 of file sbagrid.cxx.

References aURL, and FmXGridPeer::queryDispatch().

◆ queryInterface()

Any SAL_CALL SbaXGridPeer::queryInterface ( const css::uno::Type &  _rType)
overridevirtual

Definition at line 289 of file sbagrid.cxx.

References Any.

◆ release()

virtual void SAL_CALL dbaui::SbaXGridPeer::release ( )
inlineoverridevirtualnoexcept

Definition at line 105 of file sbagrid.hxx.

◆ removeStatusListener()

void SAL_CALL SbaXGridPeer::removeStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  xControl,
const css::util::URL &  aURL 
)
overridevirtual

Member Data Documentation

◆ m_aDispatchArgs

std::queue< DispatchArgs > dbaui::SbaXGridPeer::m_aDispatchArgs
private

Definition at line 131 of file sbagrid.hxx.

Referenced by dispatch().

◆ m_aDispatchStates

MapDispatchToBool dbaui::SbaXGridPeer::m_aDispatchStates
private

Definition at line 147 of file sbagrid.hxx.

Referenced by dispatch(), and NotifyStatusChanged().

◆ m_aStatusListeners

comphelper::OMultiTypeInterfaceContainerHelperVar4< css::util::URL, css::frame::XStatusListener, SbaURLCompare> dbaui::SbaXGridPeer::m_aStatusListeners
private

Definition at line 97 of file sbagrid.hxx.

Referenced by addStatusListener(), dispose(), NotifyStatusChanged(), and removeStatusListener().


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