20#ifndef INCLUDED_TOOLKIT_SOURCE_CONTROLS_GRID_GRIDCONTROL_HXX
21#define INCLUDED_TOOLKIT_SOURCE_CONTROLS_GRID_GRIDCONTROL_HXX
23#include <com/sun/star/awt/grid/XGridControl.hpp>
24#include <com/sun/star/awt/grid/XGridRowSelection.hpp>
36class GridEventForwarder;
48 explicit UnoGridModel(
const css::uno::Reference< css::uno::XComponentContext >& i_factory );
54 void SAL_CALL
dispose( )
override;
57 css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
getPropertySetInfo( )
override;
67 {
return "stardiv.Toolkit.GridControlModel"; }
72 s.realloc(s.getLength() + 1);
73 s.getArray()[s.getLength() - 1] =
"com.sun.star.awt.grid.UnoControlGridModel";
82 , css::awt::grid::XGridControl
83 , css::awt::grid::XGridRowSelection
92 void SAL_CALL
dispose( )
override;
95 void SAL_CALL
createPeer(
const css::uno::Reference< css::awt::XToolkit >& Toolkit,
const css::uno::Reference< css::awt::XWindowPeer >&
Parent )
override;
96 sal_Bool SAL_CALL
setModel(
const css::uno::Reference< css::awt::XControlModel >& rxModel )
override;
100 virtual ::sal_Int32 SAL_CALL
getRowAtPoint(::sal_Int32
x, ::sal_Int32
y)
override;
103 virtual void SAL_CALL
goToCell( ::sal_Int32 i_columnIndex, ::sal_Int32 i_rowIndex )
override;
106 virtual void SAL_CALL
selectRow( ::sal_Int32 i_rowIndex )
override;
108 virtual void SAL_CALL
deselectRow( ::sal_Int32 i_rowIndex )
override;
110 virtual css::uno::Sequence< ::sal_Int32 > SAL_CALL
getSelectedRows()
override;
113 virtual void SAL_CALL
addSelectionListener(
const css::uno::Reference< css::awt::grid::XGridSelectionListener > & listener)
override;
114 virtual void SAL_CALL
removeSelectionListener(
const css::uno::Reference< css::awt::grid::XGridSelectionListener > & listener)
override;
118 {
return "stardiv.Toolkit.GridControl"; }
123 s.realloc(s.getLength() + 1);
124 s.getArray()[s.getLength() - 1] =
"com.sun.star.awt.grid.UnoControlGrid";
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::Reference< css::awt::XWindowPeer > SAL_CALL getPeer() override
css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override