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

#include <TableGrantCtrl.hxx>

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

Classes

struct  TPrivileges
 

Public Member Functions

 OTableGrantControl (const css::uno::Reference< css::awt::XWindow > &rParent)
 
virtual ~OTableGrantControl () override
 
virtual void dispose () override
 
void UpdateTables ()
 
void setUserName (const OUString &_sUserName)
 
void setGrantUser (const css::uno::Reference< css::sdbcx::XAuthorizable > &_xGrantUser)
 
void setTablesSupplier (const css::uno::Reference< css::sdbcx::XTablesSupplier > &_xTablesSup)
 
void setComponentContext (const css::uno::Reference< css::uno::XComponentContext > &_rxContext)
 
virtual void Init () 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. More...
 
- Public Member Functions inherited from svt::EditBrowseBox
 EditBrowseBox (vcl::Window *pParent, EditBrowseBoxFlags nBrowserFlags, WinBits nBits, BrowserMode nMode=BrowserMode::NONE)
 
virtual ~EditBrowseBox () override
 
virtual void dispose () override
 
bool IsEditing () const
 
void InvalidateStatusCell (sal_Int32 nRow)
 
void InvalidateHandleColumn ()
 
virtual void Init ()
 
virtual void RemoveRows ()
 
virtual void Dispatch (sal_uInt16 nId)
 
const CellControllerRefController () const
 
EditBrowseBoxFlags GetBrowserFlags () const
 
void SetBrowserFlags (EditBrowseBoxFlags nFlags)
 
virtual void ActivateCell (sal_Int32 nRow, sal_uInt16 nCol, bool bSetCellFocus=true)
 
virtual void DeactivateCell (bool bUpdate=true)
 
virtual sal_Int32 GetAccessibleControlCount () const override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleControl (sal_Int32 nIndex) override
 
virtual void GrabTableFocus () override
 
virtual tools::Rectangle GetFieldCharacterBounds (sal_Int32 _nRow, sal_Int32 _nColumnPos, sal_Int32 nIndex) override
 
virtual sal_Int32 GetFieldIndexAtPoint (sal_Int32 _nRow, sal_Int32 _nColumnPos, const Point &_rPoint) override
 
virtual bool ProcessKey (const KeyEvent &rEvt) override
 
virtual void ChildFocusIn () override
 
virtual void ChildFocusOut () override
 
css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCheckBoxCell (sal_Int32 _nRow, sal_uInt16 _nColumnPos, const TriState &eState)
 
bool ControlHasFocus () const
 
- Public Member Functions inherited from BrowseBox
virtual sal_Int32 GetRowCount () const override
 
 BrowseBox (vcl::Window *pParent, WinBits nBits, BrowserMode nMode=BrowserMode::NONE)
 
virtual ~BrowseBox () override
 
virtual void dispose () override
 
virtual void StateChanged (StateChangedType nStateChange) override
 
virtual void MouseButtonDown (const MouseEvent &rEvt) override
 
virtual void MouseMove (const MouseEvent &rEvt) override
 
virtual void MouseButtonUp (const MouseEvent &rEvt) override
 
virtual void KeyInput (const KeyEvent &rEvt) override
 
virtual void LoseFocus () override
 
virtual void GetFocus () override
 
virtual void Resize () override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void Draw (OutputDevice *pDev, const Point &rPos, SystemTextColorFlags nFlags) override
 
virtual void Command (const CommandEvent &rEvt) override
 
virtual void StartDrag (sal_Int8 _nAction, const Point &_rPosPixel) override
 
virtual sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt) override
 
virtual sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt) override
 
virtual sal_Int8 AcceptDrop (const BrowserAcceptDropEvent &rEvt)
 
virtual sal_Int8 ExecuteDrop (const BrowserExecuteDropEvent &rEvt)
 
virtual void MouseButtonDown (const BrowserMouseEvent &rEvt)
 
virtual void MouseButtonUp (const BrowserMouseEvent &rEvt)
 
void StartScroll ()
 
virtual void EndScroll ()
 
virtual void Select ()
 
virtual void DoubleClick (const BrowserMouseEvent &rEvt)
 
virtual bool IsCursorMoveAllowed (sal_Int32 nNewRow, sal_uInt16 nNewColId) const
 
virtual void CursorMoved ()
 
virtual void ColumnMoved (sal_uInt16 nColId)
 
virtual void ColumnResized (sal_uInt16 nColId)
 
virtual void RowHeightChanged ()
 
virtual tools::Long QueryMinimumRowHeight ()
 
void SetUpdateMode (bool bUpdate)
 
bool GetUpdateMode () const
 
void SetFont (const vcl::Font &rNewFont)
 
const vcl::FontGetFont () const
 
void SetTitleFont (const vcl::Font &rNewFont)
 
void InsertHandleColumn (sal_uLong nWidth)
 
void InsertDataColumn (sal_uInt16 nItemId, const OUString &rText, tools::Long nSize, HeaderBarItemBits nBits=HeaderBarItemBits::STDSTYLE, sal_uInt16 nPos=HEADERBAR_APPEND)
 
void SetColumnTitle (sal_uInt16 nColumnId, const OUString &rTitle)
 
void SetColumnWidth (sal_uInt16 nColumnId, sal_uLong nWidth)
 
void SetColumnPos (sal_uInt16 nColumnId, sal_uInt16 nPos)
 
void FreezeColumn (sal_uInt16 nColumnId)
 
void RemoveColumn (sal_uInt16 nColumnId)
 
void RemoveColumns ()
 
void SetDataRowHeight (tools::Long nPixel)
 
tools::Long GetDataRowHeight () const
 
void SetTitleLines (sal_uInt16 nLines)
 
tools::Long GetTitleHeight () const
 
OUString GetColumnTitle (sal_uInt16 nColumnId) const
 
tools::Rectangle GetFieldRect (sal_uInt16 nColumnId) const
 
sal_uLong GetColumnWidth (sal_uInt16 nColumnId) const
 
sal_uInt16 GetColumnId (sal_uInt16 nPos) const
 
sal_uInt16 GetColumnPos (sal_uInt16 nColumnId) const
 
bool IsFrozen (sal_uInt16 nColumnId) const
 
sal_Int32 ScrollColumns (sal_Int32 nColumns)
 
sal_Int32 ScrollRows (sal_Int32 nRows)
 
void MakeFieldVisible (sal_Int32 nRow, sal_uInt16 nColId)
 
sal_Int32 GetCurRow () const
 
sal_uInt16 GetCurColumnId () const
 
bool GoToRow (sal_Int32 nRow)
 
bool GoToColumnId (sal_uInt16 nColId)
 
bool GoToRowColumnId (sal_Int32 nRow, sal_uInt16 nColId)
 
virtual void SetNoSelection () override
 
virtual void SelectAll () override
 
virtual void SelectRow (sal_Int32 nRow, bool _bSelect=true, bool bExpand=true) override
 
void SelectColumnPos (sal_uInt16 nCol, bool _bSelect=true)
 
void SelectColumnId (sal_uInt16 nColId)
 
sal_Int32 GetSelectRowCount () const
 
sal_uInt16 GetSelectColumnCount () const
 
virtual bool IsRowSelected (sal_Int32 nRow) const override
 
bool IsColumnSelected (sal_uInt16 nColumnId) const
 
sal_Int32 FirstSelectedRow ()
 
sal_Int32 LastSelectedRow ()
 
sal_Int32 NextSelectedRow ()
 
const MultiSelectionGetColumnSelection () const
 
const MultiSelectionGetSelection () const
 
sal_Int32 FirstSelectedColumn () const
 
bool IsResizing () const
 
BrowserDataWinGetDataWindow () const
 
tools::Rectangle GetRowRectPixel (sal_Int32 nRow) const
 
tools::Rectangle GetFieldRectPixel (sal_Int32 nRow, sal_uInt16 nColId, bool bRelToBrowser=true) const
 
bool IsFieldVisible (sal_Int32 nRow, sal_uInt16 nColId, bool bComplete=false) const
 
sal_Int32 GetRowAtYPosPixel (tools::Long nY, bool bRelToBrowser=true) const
 
sal_uInt16 GetColumnAtXPosPixel (tools::Long nX) const
 
void Clear ()
 
void RowRemoved (sal_Int32 nRow, sal_Int32 nNumRows=1, bool bDoPaint=true)
 
void RowModified (sal_Int32 nRow, sal_uInt16 nColId=BROWSER_INVALIDID)
 
void RowInserted (sal_Int32 nRow, sal_Int32 nNumRows=1, bool bDoPaint=true, bool bKeepSelection=false)
 
bool ReserveControlArea (sal_uInt16 nWidth=USHRT_MAX)
 
tools::Rectangle GetControlArea () const
 
virtual bool ProcessKey (const KeyEvent &rEvt)
 
virtual void ChildFocusIn ()
 
virtual void ChildFocusOut ()
 
void Dispatch (sal_uInt16 nId)
 
void SetMode (BrowserMode nMode)
 
BrowserMode GetMode () const
 
void SetCursorColor (const Color &_rCol)
 
void EnableInteractiveRowHeight ()
 
bool IsInteractiveRowHeightEnabled () const
 
void DoPaintField (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColumnId, BrowserColumnAccess) const
 
sal_uLong GetDefaultColumnWidth (const OUString &_rText) const
 
virtual OUString GetCellText (sal_Int32 _nRow, sal_uInt16 _nColId) const
 
sal_uInt16 GetColumnCount () const override
 
void commitBrowseBoxEvent (sal_Int16 nEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue)
 
void commitTableEvent (sal_Int16 nEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue)
 
void commitHeaderBarEvent (sal_Int16 nEventId, const css::uno::Any &rNewValue, const css::uno::Any &rOldValue, bool _bColumnHeaderBar)
 
virtual tools::Rectangle calcHeaderRect (bool _bIsColumnBar, bool _bOnScreen=true) override
 
virtual tools::Rectangle calcTableRect (bool _bOnScreen=true) override
 
virtual tools::Rectangle GetFieldRectPixel (sal_Int32 _nRowId, sal_uInt16 _nColId, bool _bIsHeader, bool _bOnScreen) override
 
bool isAccessibleAlive () const
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCell (sal_Int32 nRow, sal_uInt16 nColumnPos) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleRowHeader (sal_Int32 nRow) override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleColumnHeader (sal_uInt16 nColumnPos) override
 
virtual sal_Int32 GetAccessibleControlCount () const override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleControl (sal_Int32 nIndex) override
 
virtual bool ConvertPointToCellAddress (sal_Int32 &rnRow, sal_uInt16 &rnColumnId, const Point &rPoint) override
 
virtual bool ConvertPointToRowHeader (sal_Int32 &rnRow, const Point &rPoint) override
 
virtual bool ConvertPointToColumnHeader (sal_uInt16 &rnColumnPos, const Point &rPoint) override
 
virtual bool ConvertPointToControlIndex (sal_Int32 &rnIndex, const Point &rPoint) override
 
virtual OUString GetAccessibleObjectName (AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override
 
virtual OUString GetAccessibleObjectDescription (AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override
 
virtual OUString GetRowDescription (sal_Int32 nRow) const override
 
virtual OUString GetColumnDescription (sal_uInt16 _nColumn) const override
 
virtual void FillAccessibleStateSet (sal_Int64 &rStateSet, AccessibleBrowseBoxObjType eObjType) const override
 
virtual void FillAccessibleStateSetForCell (sal_Int64 &_rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumn) const override
 
virtual void GrabTableFocus () override
 
virtual sal_Int32 GetCurrRow () const override
 
virtual sal_uInt16 GetCurrColumn () const override
 
virtual bool HasRowHeader () const override
 
virtual bool GoToCell (sal_Int32 _nRow, sal_uInt16 _nColumn) override
 
virtual void SelectColumn (sal_uInt16 _nColumn, bool _bSelect=true) override
 
virtual bool IsColumnSelected (sal_Int32 _nColumn) const override
 
virtual sal_Int32 GetSelectedRowCount () const override
 
virtual sal_Int32 GetSelectedColumnCount () const override
 
virtual void GetAllSelectedRows (css::uno::Sequence< sal_Int32 > &_rRows) const override
 
virtual void GetAllSelectedColumns (css::uno::Sequence< sal_Int32 > &_rColumns) const override
 
virtual bool IsCellVisible (sal_Int32 _nRow, sal_uInt16 _nColumn) const override
 
virtual OUString GetAccessibleCellText (sal_Int32 _nRow, sal_uInt16 _nColPos) const override
 
virtual bool GetGlyphBoundRects (const Point &rOrigin, const OUString &rStr, int nIndex, int nLen, std::vector< tools::Rectangle > &rVector) override
 
virtual tools::Rectangle GetWindowExtentsAbsolute () const override
 
virtual tools::Rectangle GetWindowExtentsRelative (const vcl::Window &rRelativeWindow) const override
 
virtual void GrabFocus () override
 
virtual css::uno::Reference< css::accessibility::XAccessible > GetAccessible () override
 
virtual vcl::WindowGetAccessibleParentWindow () const override
 
virtual vcl::WindowGetWindowInstance () override
 

Protected Member Functions

virtual bool PreNotify (NotifyEvent &rNEvt) override
 
virtual bool IsTabAllowed (bool bForward) const override
 
virtual void InitController (::svt::CellControllerRef &rController, sal_Int32 nRow, sal_uInt16 nCol) override
 
virtual ::svt::CellControllerGetController (sal_Int32 nRow, sal_uInt16 nCol) override
 
virtual void PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColId) const override
 
virtual bool SeekRow (sal_Int32 nRow) override
 
virtual bool SaveModified () override
 
virtual OUString GetCellText (sal_Int32 nRow, sal_uInt16 nColId) const override
 
virtual void CellModified () override
 
- Protected Member Functions inherited from svt::EditBrowseBox
BrowserMouseEventPtr & getMouseEvent ()
 
BrowserHeaderGetHeaderBar () const
 
virtual VclPtr< BrowserHeaderCreateHeaderBar (BrowseBox *pParent) override
 
virtual VclPtr< BrowserHeaderimp_CreateHeaderBar (BrowseBox *pParent)
 
virtual void ColumnMoved (sal_uInt16 nId) override
 
virtual void ColumnResized (sal_uInt16 nColId) override
 
virtual void Resize () override
 
virtual void ArrangeControls (sal_uInt16 &nX, sal_uInt16 nY)
 
virtual bool SeekRow (sal_Int32 nRow) override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual void KeyInput (const KeyEvent &rEvt) override
 
virtual void MouseButtonDown (const BrowserMouseEvent &rEvt) override
 
virtual void MouseButtonUp (const BrowserMouseEvent &rEvt) override
 
virtual void StateChanged (StateChangedType nType) override
 
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
 
virtual bool PreNotify (NotifyEvent &rNEvt) override
 
virtual bool EventNotify (NotifyEvent &rNEvt) override
 
virtual void EndScroll () override
 
tools::Rectangle GetCellRect (sal_Int32 nRow, sal_uInt16 nColId, bool bRelToBrowser=true) const
 
virtual sal_uInt32 GetTotalCellWidth (sal_Int32 nRow, sal_uInt16 nColId)
 
sal_uInt32 GetAutoColumnWidth (sal_uInt16 nColId)
 
virtual void PaintStatusCell (OutputDevice &rDev, const tools::Rectangle &rRect) const
 
virtual void PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColId) const=0
 
virtual RowStatus GetRowStatus (sal_Int32 nRow) const
 
virtual void RowHeightChanged () override
 
virtual void ImplStartTracking () override
 
virtual void ImplEndTracking () override
 
virtual bool CursorMoving (sal_Int32 nNewRow, sal_uInt16 nNewCol)
 
virtual void CursorMoved () override
 
virtual void CellModified ()
 
virtual bool SaveModified ()
 
virtual bool SaveRow ()
 
virtual bool IsModified () const
 
virtual CellControllerGetController (sal_Int32 nRow, sal_uInt16 nCol)
 
virtual void InitController (CellControllerRef &rController, sal_Int32 nRow, sal_uInt16 nCol)
 
virtual void DoubleClick (const BrowserMouseEvent &) override
 
void ActivateCell ()
 
Image GetImage (RowStatus) const
 
virtual sal_uInt16 AppendColumn (const OUString &rName, sal_uInt16 nWidth, sal_uInt16 nPos=HEADERBAR_APPEND, sal_uInt16 nId=sal_uInt16(-1))
 
virtual bool IsTabAllowed (bool bForward) const
 
virtual bool IsCursorMoveAllowed (sal_Int32 nNewRow, sal_uInt16 nNewColId) const override
 
void PaintTristate (const tools::Rectangle &rRect, const TriState &eState, bool _bEnabled=true) const
 
void AsynchGetFocus ()
 
void implCreateActiveAccessible ()
 
virtual void MouseButtonUp (const MouseEvent &rEvt) override
 
virtual void MouseButtonUp (const BrowserMouseEvent &rEvt)
 
virtual void MouseButtonDown (const MouseEvent &rEvt) override
 
virtual void MouseButtonDown (const BrowserMouseEvent &rEvt)
 
- Protected Member Functions inherited from BrowseBox
::vcl::IAccessibleFactorygetAccessibleFactory ()
 
sal_uInt16 ColCount () const
 
void SetRealRowCount (const OUString &rRealRowCount)
 
virtual bool SeekRow (sal_Int32 nRow)=0
 
void DrawCursor ()
 
void PaintData (vcl::Window const &rWin, vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
virtual void PaintField (vcl::RenderContext &rDev, const tools::Rectangle &rRect, sal_uInt16 nColumnId) const=0
 
virtual void VisibleRowsChanged (sal_Int32 nNewTopRow, sal_uInt16 nNumRows)
 
sal_uInt16 GetVisibleRows () const
 
sal_Int32 GetTopRow () const
 
sal_uInt16 GetFirstVisibleColNumber () const
 
void DoShowCursor ()
 
void DoHideCursor ()
 
short GetCursorHideCount () const
 
virtual VclPtr< BrowserHeaderCreateHeaderBar (BrowseBox *pParent)
 
void SetHeaderBar (BrowserHeader *)
 
tools::Long CalcReverseZoom (tools::Long nVal) const
 
const DataFlavorExVectorGetDataFlavors () const
 
bool IsDropFormatSupported (SotClipboardFormatId nFormat) const
 
void DisposeAccessible ()
 
virtual void ImplStartTracking ()
 
virtual void ImplEndTracking ()
 

Private Types

typedef std::map< OUString, TPrivilegesTTablePrivilegeMap
 

Private Member Functions

 DECL_LINK (AsynchActivate, void *, void)
 
 DECL_LINK (AsynchDeactivate, void *, void)
 
void fillPrivilege (sal_Int32 _nRow) const
 
TTablePrivilegeMap::const_iterator findPrivilege (sal_Int32 _nRow) const
 

Static Private Member Functions

static bool isAllowed (sal_uInt16 _nColumnId, sal_Int32 _nPrivilege)
 

Private Attributes

css::uno::Reference< css::container::XNameAccess > m_xUsers
 
css::uno::Reference< css::container::XNameAccess > m_xTables
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
css::uno::Reference< css::sdbcx::XAuthorizable > m_xGrantUser
 
css::uno::Sequence< OUString > m_aTableNames
 
TTablePrivilegeMap m_aPrivMap
 
OUString m_sUserName
 
VclPtr<::svt::CheckBoxControlm_pCheckCell
 
VclPtr<::svt::EditControlm_pEdit
 
tools::Long m_nDataPos
 
ImplSVEventm_nDeactivateEvent
 

Additional Inherited Members

- Public Types inherited from svt::EditBrowseBox
enum  RowStatus
 
- Public Attributes inherited from svt::EditBrowseBox
 CLEAN
 
 CURRENT
 
 CURRENTNEW
 
 MODIFIED
 
 NEW
 
 DELETED
 
 PRIMARYKEY
 
 CURRENT_PRIMARYKEY
 
 FILTER
 
 HEADERFOOTER
 
- Public Attributes inherited from BrowseBox
MultiSelectionpSel
 
sal_Int32 nSel
 
- Static Public Attributes inherited from BrowseBox
static const sal_uInt16 HandleColumnId
 
- Static Protected Member Functions inherited from svt::EditBrowseBox
static void ResizeController (CellControllerRef const &rController, const tools::Rectangle &)
 
- Protected Attributes inherited from svt::EditBrowseBox
VclPtr< BrowserHeaderpHeader
 
- Protected Attributes inherited from BrowseBox
bool m_bNavigationBar
 

Detailed Description

Definition at line 35 of file TableGrantCtrl.hxx.

Member Typedef Documentation

◆ TTablePrivilegeMap

Definition at line 43 of file TableGrantCtrl.hxx.

Constructor & Destructor Documentation

◆ OTableGrantControl()

OTableGrantControl::OTableGrantControl ( const css::uno::Reference< css::awt::XWindow > &  rParent)

◆ ~OTableGrantControl()

OTableGrantControl::~OTableGrantControl ( )
overridevirtual

Definition at line 76 of file TableGrantCtrl.cxx.

Member Function Documentation

◆ CellModified()

void OTableGrantControl::CellModified ( )
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 440 of file TableGrantCtrl.cxx.

References svt::EditBrowseBox::CellModified(), and SaveModified().

◆ CreateAccessibleCell()

Reference< XAccessible > OTableGrantControl::CreateAccessibleCell ( sal_Int32  nRow,
sal_uInt16  nColumnId 
)
overridevirtual

Creates the accessible object of a data table cell.

Parameters
nRowThe row index of the cell.
nColumnIdThe column ID of the cell.
Returns
The XAccessible interface of the specified cell.

Reimplemented from BrowseBox.

Definition at line 457 of file TableGrantCtrl.cxx.

References COL_TABLE_NAME, BrowseBox::CreateAccessibleCell(), svt::EditBrowseBox::CreateAccessibleCheckBoxCell(), findPrivilege(), BrowseBox::GetColumnId(), isAllowed(), m_aPrivMap, TRISTATE_FALSE, and TRISTATE_TRUE.

◆ DECL_LINK() [1/2]

dbaui::OTableGrantControl::DECL_LINK ( AsynchActivate  ,
void *  ,
void   
)
private

◆ DECL_LINK() [2/2]

dbaui::OTableGrantControl::DECL_LINK ( AsynchDeactivate  ,
void *  ,
void   
)
private

◆ dispose()

void OTableGrantControl::dispose ( void  )
overridevirtual

◆ fillPrivilege()

void OTableGrantControl::fillPrivilege ( sal_Int32  _nRow) const
private

◆ findPrivilege()

OTableGrantControl::TTablePrivilegeMap::const_iterator OTableGrantControl::findPrivilege ( sal_Int32  _nRow) const
private

◆ GetCellText()

OUString OTableGrantControl::GetCellText ( sal_Int32  nRow,
sal_uInt16  nColId 
) const
overrideprotectedvirtual

Reimplemented from BrowseBox.

Definition at line 275 of file TableGrantCtrl.cxx.

References COL_TABLE_NAME, findPrivilege(), isAllowed(), m_aPrivMap, and m_aTableNames.

Referenced by PaintCell().

◆ GetController()

CellController * OTableGrantControl::GetController ( sal_Int32  nRow,
sal_uInt16  nCol 
)
overrideprotectedvirtual

◆ Init()

void OTableGrantControl::Init ( void  )
overridevirtual

◆ InitController()

void OTableGrantControl::InitController ( ::svt::CellControllerRef rController,
sal_Int32  nRow,
sal_uInt16  nCol 
)
overrideprotectedvirtual

◆ isAllowed()

bool OTableGrantControl::isAllowed ( sal_uInt16  _nColumnId,
sal_Int32  _nPrivilege 
)
staticprivate

◆ IsTabAllowed()

bool OTableGrantControl::IsTabAllowed ( bool  bForward) const
overrideprotectedvirtual

◆ PaintCell()

void OTableGrantControl::PaintCell ( OutputDevice rDev,
const tools::Rectangle rRect,
sal_uInt16  nColId 
) const
overrideprotectedvirtual

◆ PreNotify()

bool OTableGrantControl::PreNotify ( NotifyEvent rNEvt)
overrideprotectedvirtual

◆ SaveModified()

bool OTableGrantControl::SaveModified ( )
overrideprotectedvirtual

◆ SeekRow()

bool OTableGrantControl::SeekRow ( sal_Int32  nRow)
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 402 of file TableGrantCtrl.cxx.

References m_aTableNames, and m_nDataPos.

◆ setComponentContext()

void OTableGrantControl::setComponentContext ( const css::uno::Reference< css::uno::XComponentContext > &  _rxContext)

Definition at line 114 of file TableGrantCtrl.cxx.

References m_xContext.

◆ setGrantUser()

void OTableGrantControl::setGrantUser ( const css::uno::Reference< css::sdbcx::XAuthorizable > &  _xGrantUser)

Definition at line 369 of file TableGrantCtrl.cxx.

References m_xGrantUser.

◆ setTablesSupplier()

void OTableGrantControl::setTablesSupplier ( const css::uno::Reference< css::sdbcx::XTablesSupplier > &  _xTablesSup)

Definition at line 96 of file TableGrantCtrl.cxx.

References m_aTableNames, m_xTables, and m_xUsers.

◆ setUserName()

void OTableGrantControl::setUserName ( const OUString &  _sUserName)

Definition at line 363 of file TableGrantCtrl.cxx.

References m_aPrivMap, and m_sUserName.

◆ UpdateTables()

void OTableGrantControl::UpdateTables ( )

Member Data Documentation

◆ m_aPrivMap

TTablePrivilegeMap dbaui::OTableGrantControl::m_aPrivMap
mutableprivate

◆ m_aTableNames

css::uno::Sequence< OUString> dbaui::OTableGrantControl::m_aTableNames
private

◆ m_nDataPos

tools::Long dbaui::OTableGrantControl::m_nDataPos
private

Definition at line 55 of file TableGrantCtrl.hxx.

Referenced by PaintCell(), and SeekRow().

◆ m_nDeactivateEvent

ImplSVEvent* dbaui::OTableGrantControl::m_nDeactivateEvent
private

Definition at line 56 of file TableGrantCtrl.hxx.

Referenced by dispose(), and PreNotify().

◆ m_pCheckCell

VclPtr<::svt::CheckBoxControl> dbaui::OTableGrantControl::m_pCheckCell
private

Definition at line 53 of file TableGrantCtrl.hxx.

Referenced by dispose(), GetController(), Init(), InitController(), and SaveModified().

◆ m_pEdit

VclPtr<::svt::EditControl> dbaui::OTableGrantControl::m_pEdit
private

Definition at line 54 of file TableGrantCtrl.hxx.

Referenced by dispose(), Init(), and InitController().

◆ m_sUserName

OUString dbaui::OTableGrantControl::m_sUserName
private

Definition at line 52 of file TableGrantCtrl.hxx.

Referenced by fillPrivilege(), SaveModified(), and setUserName().

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext> dbaui::OTableGrantControl::m_xContext
private

Definition at line 47 of file TableGrantCtrl.hxx.

Referenced by fillPrivilege(), SaveModified(), and setComponentContext().

◆ m_xGrantUser

css::uno::Reference< css::sdbcx::XAuthorizable> dbaui::OTableGrantControl::m_xGrantUser
private

Definition at line 48 of file TableGrantCtrl.hxx.

Referenced by fillPrivilege(), and setGrantUser().

◆ m_xTables

css::uno::Reference< css::container::XNameAccess > dbaui::OTableGrantControl::m_xTables
private

Definition at line 46 of file TableGrantCtrl.hxx.

Referenced by dispose(), setTablesSupplier(), and UpdateTables().

◆ m_xUsers

css::uno::Reference< css::container::XNameAccess > dbaui::OTableGrantControl::m_xUsers
private

Definition at line 45 of file TableGrantCtrl.hxx.

Referenced by fillPrivilege(), SaveModified(), and setTablesSupplier().


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