26#include <com/sun/star/awt/XWindow.hpp>
27#include <com/sun/star/sdbcx/XTablesSupplier.hpp>
28#include <com/sun/star/sdbcx/XAuthorizable.hpp>
29#include <com/sun/star/uno/XComponentContext.hpp>
45 css::uno::Reference< css::container::XNameAccess >
m_xUsers;
46 css::uno::Reference< css::container::XNameAccess >
m_xTables;
47 css::uno::Reference< css::uno::XComponentContext>
m_xContext;
61 virtual void dispose()
override;
64 void setGrantUser(
const css::uno::Reference< css::sdbcx::XAuthorizable>& _xGrantUser);
66 void setTablesSupplier(
const css::uno::Reference< css::sdbcx::XTablesSupplier >& _xTablesSup);
67 void setComponentContext(
const css::uno::Reference< css::uno::XComponentContext>& _rxContext);
69 virtual void Init()
override;
76 virtual css::uno::Reference<
77 css::accessibility::XAccessible >
85 virtual ::svt::CellController*
GetController( sal_Int32 nRow, sal_uInt16 nCol )
override;
87 virtual bool SeekRow( sal_Int32 nRow )
override;
89 virtual OUString
GetCellText( sal_Int32 nRow, sal_uInt16 nColId )
const override;
97 static bool isAllowed(sal_uInt16 _nColumnId,sal_Int32 _nPrivilege);
99 TTablePrivilegeMap::const_iterator
findPrivilege(sal_Int32 _nRow)
const;
css::uno::Reference< css::sdbcx::XAuthorizable > m_xGrantUser
void fillPrivilege(sal_Int32 _nRow) const
virtual bool IsTabAllowed(bool bForward) const override
css::uno::Reference< css::container::XNameAccess > m_xTables
std::map< OUString, TPrivileges > TTablePrivilegeMap
void setGrantUser(const css::uno::Reference< css::sdbcx::XAuthorizable > &_xGrantUser)
OTableGrantControl(const css::uno::Reference< css::awt::XWindow > &rParent)
void setComponentContext(const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
VclPtr<::svt::EditControl > m_pEdit
DECL_LINK(AsynchDeactivate, void *, void)
css::uno::Sequence< OUString > m_aTableNames
void setTablesSupplier(const css::uno::Reference< css::sdbcx::XTablesSupplier > &_xTablesSup)
virtual ~OTableGrantControl() override
static bool isAllowed(sal_uInt16 _nColumnId, sal_Int32 _nPrivilege)
TTablePrivilegeMap::const_iterator findPrivilege(sal_Int32 _nRow) const
ImplSVEvent * m_nDeactivateEvent
void setUserName(const OUString &_sUserName)
css::uno::Reference< css::container::XNameAccess > m_xUsers
virtual void Init() override
TTablePrivilegeMap m_aPrivMap
virtual bool SaveModified() override
virtual ::svt::CellController * GetController(sal_Int32 nRow, sal_uInt16 nCol) override
css::uno::Reference< css::uno::XComponentContext > m_xContext
virtual bool PreNotify(NotifyEvent &rNEvt) override
DECL_LINK(AsynchActivate, void *, void)
virtual OUString GetCellText(sal_Int32 nRow, sal_uInt16 nColId) const override
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCell(sal_Int32 nRow, sal_uInt16 nColumnId) override
Creates the accessible object of a data table cell.
VclPtr<::svt::CheckBoxControl > m_pCheckCell
virtual void InitController(::svt::CellControllerRef &rController, sal_Int32 nRow, sal_uInt16 nCol) override
virtual void dispose() override
virtual bool SeekRow(sal_Int32 nRow) override
virtual void CellModified() override
virtual void PaintCell(OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColId) const override