LibreOffice Module svx (master) 1
Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Friends | List of all members
DbGridControl Class Referenceabstract

#include <gridctrl.hxx>

Inheritance diagram for DbGridControl:
[legend]
Collaboration diagram for DbGridControl:
[legend]

Classes

struct  GrantControlAccess
 

Public Member Functions

 DbGridControl (css::uno::Reference< css::uno::XComponentContext > const &_rxContext, vcl::Window *pParent, WinBits nBits)
 
virtual ~DbGridControl () override
 
virtual void dispose () override
 
virtual void Init () override
 
virtual void InitColumnsByFields (const css::uno::Reference< css::container::XIndexAccess > &xFields)=0
 
virtual void RemoveRows () override
 
virtual OUString GetCellText (sal_Int32 _nRow, sal_uInt16 _nColId) const override
 GetCellText returns the text at the given position. More...
 
void RemoveRows (bool bNewCursor)
 
const css::uno::Reference< css::util::XNumberFormatter > & getNumberFormatter () const
 
void setDataSource (const css::uno::Reference< css::sdbc::XRowSet > &rCursor, DbGridControlOptions nOpts=DbGridControlOptions::Insert|DbGridControlOptions::Update|DbGridControlOptions::Delete)
 
virtual void Dispatch (sal_uInt16 nId) override
 
CursorWrappergetDataSource () const
 
const std::vector< std::unique_ptr< DbGridColumn > > & GetColumns () const
 
void EnableHandle (bool bEnable)
 
bool HasHandle () const
 
void InsertHandleColumn ()
 
sal_uInt16 GetViewColumnPos (sal_uInt16 nId) const
 
sal_uInt16 GetModelColumnPos (sal_uInt16 nId) const
 
sal_uInt16 GetViewColCount () const
 
sal_uInt16 GetModelColCount () const
 
sal_uInt16 GetColumnIdFromViewPos (sal_uInt16 nPos) const
 
sal_uInt16 GetColumnIdFromModelPos (sal_uInt16 nPos) const
 
virtual void SetDesignMode (bool bMode)
 
bool IsDesignMode () const
 
bool IsOpen () const
 
void SetFilterMode (bool bMode)
 
bool IsFilterMode () const
 
bool IsFilterRow (sal_Int32 nRow) const
 
void EnableNavigationBar (bool bEnable)
 
bool HasNavigationBar () const
 
DbGridControlOptions GetOptions () const
 
NavigationBarGetNavigationBar ()
 
DbGridControlOptions SetOptions (DbGridControlOptions nOpt)
 
const css::util::Date & getNullDate () const
 
void MoveToPosition (sal_uInt32 nPos)
 
void MoveToFirst ()
 
void MoveToNext ()
 
void MoveToPrev ()
 
void MoveToLast ()
 
void AppendNew ()
 
void AdjustDataSource (bool bFull=false)
 
void Undo ()
 
virtual void BeginCursorAction ()
 
virtual void EndCursorAction ()
 
bool IsUpdating () const
 
void RowRemoved (sal_Int32 nRow, sal_Int32 nNumRows=1, bool bDoPaint=true)
 
void RowInserted (sal_Int32 nRow, sal_Int32 nNumRows=1, bool bDoPaint=true)
 
void RowModified (sal_Int32 nRow)
 
void resetCurrentRow ()
 
bool getDisplaySynchron () const
 
void setDisplaySynchron (bool bSync)
 
const DbGridRowRefGetCurrentRow () const
 
void SetStateProvider (const Link< DbGridControlNavigationBarState, int > &rProvider)
 
void SetSlotExecutor (const Link< DbGridControlNavigationBarState, bool > &rExecutor)
 
void EnablePermanentCursor (bool bEnable)
 
bool IsPermanentCursorEnabled () const
 
void ForceHideScrollbars ()
 forces both scrollbars to be hidden More...
 
const css::uno::Reference< css::uno::XComponentContext > & getContext () const
 
bool canCopyCellText (sal_Int32 _nRow, sal_uInt16 _nColId)
 returns <TRUE> if the text of the given cell can be copied into the clipboard More...
 
void copyCellText (sal_Int32 _nRow, sal_uInt16 _nColId)
 copies the text of the given cell into the clipboard More...
 
void setGridListener (FmGridListener *_pListener)
 
void refreshController (sal_uInt16 _nColId, GrantControlAccess _aAccess)
 called when a controller needs to be re-initialized More...
 
CursorWrapperGetSeekCursor (GrantControlAccess) const
 
const DbGridRowRefGetSeekRow (GrantControlAccess) const
 
void SetSeekPos (sal_Int32 nPos, GrantControlAccess)
 
virtual sal_Int32 GetAccessibleControlCount () const override
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleControl (sal_Int32 _nIndex) override
 Creates the accessible object of an additional control. More...
 
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 SeekRow (sal_Int32 nRow) override
 
virtual void VisibleRowsChanged (sal_Int32 nNewTopRow, sal_uInt16 nNumRows) override
 
virtual void PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColId) const override
 
virtual RowStatus GetRowStatus (sal_Int32 nRow) const override
 
virtual bool CursorMoving (sal_Int32 nNewRow, sal_uInt16 nNewCol) override
 
virtual void CursorMoved () override
 
virtual void ArrangeControls (sal_uInt16 &nX, sal_uInt16 nY) override
 
virtual sal_uInt32 GetTotalCellWidth (sal_Int32 nRow, sal_uInt16 nColId) override
 
virtual void Command (const CommandEvent &rEvt) override
 
virtual bool PreNotify (NotifyEvent &rEvt) override
 
virtual void KeyInput (const KeyEvent &rEvt) override
 
virtual void StateChanged (StateChangedType nType) override
 
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
 
virtual void Select () override
 
virtual ::svt::CellControllerGetController (sal_Int32 nRow, sal_uInt16 nCol) override
 
virtual void CellModified () override
 
virtual bool SaveModified () override
 
virtual bool IsModified () const override
 
virtual sal_uInt16 AppendColumn (const OUString &rName, sal_uInt16 nWidth, sal_uInt16 nPos=HEADERBAR_APPEND, sal_uInt16 nId=sal_uInt16(-1)) override
 
void RemoveColumn (sal_uInt16 nId)
 
std::unique_ptr< DbGridColumnCreateColumn (sal_uInt16 nId)
 
virtual void ColumnMoved (sal_uInt16 nId) override
 
virtual bool SaveRow () override
 
virtual bool IsTabAllowed (bool bForward) const override
 
virtual void HideColumn (sal_uInt16 nId)
 hide a column More...
 
virtual void ShowColumn (sal_uInt16 nId)
 show a column More...
 
virtual void PreExecuteRowContextMenu (weld::Menu &rMenu)
 This is called before executing a context menu for a row. More...
 
virtual void PostExecuteRowContextMenu (const OUString &rExecutionResult)
 After executing the context menu for a row this method is called. More...
 
void DataSourcePropertyChanged (const css::beans::PropertyChangeEvent &evt)
 
void FieldValueChanged (sal_uInt16 _nId)
 
void FieldListenerDisposing (sal_uInt16 _nId)
 
void disposing (sal_uInt16 _nId)
 
virtual void onRowChange ()
 called when the current row changed More...
 
virtual void onColumnChange ()
 called when the current column changed More...
 
virtual void StartDrag (sal_Int8 nAction, const Point &rPosPixel) override
 
void executeRowContextMenu (const Point &_rPreferredPos)
 
void RecalcRows (sal_Int32 nNewTopRow, sal_uInt16 nLinesOnScreen, bool bUpdateCursor)
 
bool SeekCursor (sal_Int32 nRow, bool bAbsolute=false)
 
void RemoveColumns ()
 
void AdjustRows ()
 
sal_Int32 AlignSeekCursor ()
 
bool SetCurrent (sal_Int32 nNewRow)
 
OUString GetCurrentRowCellText (DbGridColumn const *pCol, const DbGridRowRef &_rRow) const
 
virtual void DeleteSelectedRows ()
 
bool IsCurrentAppending () const
 
bool IsInsertionRow (sal_Int32 nRow) const
 
void SetSeekPos (sal_Int32 nPos)
 
sal_Int32 GetCurrentPos () const
 
sal_Int32 GetSeekPos () const
 
sal_Int32 GetTotalCount () const
 
const DbGridRowRefGetEmptyRow () const
 
const DbGridRowRefGetSeekRow () const
 
const DbGridRowRefGetPaintRow () const
 
void ConnectToFields ()
 
void DisconnectFromFields ()
 
void implAdjustInSolarThread (bool _bRows)
 
void ImplInitWindow (const InitWindowFacet _eInitWhat)
 
 DECL_DLLPRIVATE_LINK (OnDelete, void *, void)
 
 DECL_DLLPRIVATE_LINK (OnAsyncAdjust, void *, void)
 
- 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 ()
 

Static Protected Member Functions

static bool IsValid (const DbGridRowRef &_xRow)
 
- Static Protected Member Functions inherited from svt::EditBrowseBox
static void ResizeController (CellControllerRef const &rController, const tools::Rectangle &)
 

Protected Attributes

std::unique_ptr< CursorWrapperm_pDataCursor
 
std::unique_ptr< CursorWrapperm_pSeekCursor
 
bool m_bUpdating: 1
 
- Protected Attributes inherited from svt::EditBrowseBox
VclPtr< BrowserHeaderpHeader
 
- Protected Attributes inherited from BrowseBox
bool m_bNavigationBar
 

Private Member Functions

void InsertHandleColumn (sal_uLong nWidth)
 

Private Attributes

Link< DbGridControlNavigationBarState, intm_aMasterStateProvider
 
Link< DbGridControlNavigationBarState, bool > m_aMasterSlotExecutor
 
css::uno::Reference< css::util::XNumberFormatter > m_xFormatter
 
css::uno::Reference< css::uno::XComponentContext > m_xContext
 
std::vector< std::unique_ptr< DbGridColumn > > m_aColumns
 
VclPtr< NavigationBarm_aBar
 
DbGridRowRef m_xDataRow
 
DbGridRowRef m_xSeekRow
 
DbGridRowRef m_xEmptyRow
 
ImplSVEventm_nAsynAdjustEvent
 
rtl::Reference<::comphelper::OPropertyChangeMultiplexerm_pDataSourcePropMultiplexer
 
FmXGridSourcePropListenerm_pDataSourcePropListener
 
css::uno::Reference< css::sdb::XRowsChangeListener > m_xRowSetListener
 
void * m_pFieldListeners
 
std::unique_ptr< DisposeListenerGridBridgem_pCursorDisposeListener
 
FmGridListenerm_pGridListener
 
DbGridRowRef m_xCurrentRow
 
DbGridRowRef m_xPaintRow
 
sal_Int32 m_nSeekPos
 
sal_Int32 m_nTotalCount
 
osl::Mutex m_aDestructionSafety
 
osl::Mutex m_aAdjustSafety
 
css::util::Date m_aNullDate
 
BrowserMode m_nMode
 
sal_Int32 m_nCurrentPos
 
ImplSVEventm_nDeleteEvent
 
DbGridControlOptions m_nOptions
 
DbGridControlOptions m_nOptionMask
 
sal_uInt16 m_nLastColId
 
sal_Int32 m_nLastRowId
 
bool m_bDesignMode: 1
 
bool m_bRecordCountFinal: 1
 
bool m_bSynchDisplay: 1
 
bool m_bHandle: 1
 
bool m_bFilterMode: 1
 
bool m_bWantDestruction: 1
 
bool m_bPendingAdjustRows: 1
 
bool m_bHideScrollbars: 1
 

Friends

class FmXGridSourcePropListener
 
class GridFieldValueListener
 
class DisposeListenerGridBridge
 
class NavigationBar
 

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
 

Detailed Description

Definition at line 219 of file gridctrl.hxx.

Constructor & Destructor Documentation

◆ DbGridControl()

DbGridControl::DbGridControl ( css::uno::Reference< css::uno::XComponentContext > const &  _rxContext,
vcl::Window pParent,
WinBits  nBits 
)

◆ ~DbGridControl()

DbGridControl::~DbGridControl ( )
overridevirtual

Definition at line 747 of file gridctrl.cxx.

Member Function Documentation

◆ AdjustDataSource()

void DbGridControl::AdjustDataSource ( bool  bFull = false)

◆ AdjustRows()

void DbGridControl::AdjustRows ( )
protected

◆ AlignSeekCursor()

sal_Int32 DbGridControl::AlignSeekCursor ( )
protected

◆ AppendColumn()

sal_uInt16 DbGridControl::AppendColumn ( const OUString &  rName,
sal_uInt16  nWidth,
sal_uInt16  nPos = HEADERBAR_APPEND,
sal_uInt16  nId = sal_uInt16(-1) 
)
overrideprotectedvirtual

◆ AppendNew()

void DbGridControl::AppendNew ( )

◆ ArrangeControls()

void DbGridControl::ArrangeControls ( sal_uInt16 &  nX,
sal_uInt16  nY 
)
overrideprotectedvirtual

◆ BeginCursorAction()

void DbGridControl::BeginCursorAction ( )
virtual

◆ canCopyCellText()

bool DbGridControl::canCopyCellText ( sal_Int32  _nRow,
sal_uInt16  _nColId 
)

returns <TRUE> if the text of the given cell can be copied into the clipboard

Definition at line 2513 of file gridctrl.cxx.

References GetModelColumnPos(), BrowseBox::GetRowCount(), GRID_COLUMN_NOT_FOUND, and BrowseBox::HandleColumnId.

Referenced by Command(), and copyCellText().

◆ CellModified()

void DbGridControl::CellModified ( )
overrideprotectedvirtual

◆ ColumnMoved()

void DbGridControl::ColumnMoved ( sal_uInt16  nId)
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Reimplemented in FmGridControl.

Definition at line 1441 of file gridctrl.cxx.

References DBG_ASSERT, GetModelColumnPos(), GetViewColumnPos(), DbGridColumn::IsHidden(), IsHidden(), m_aColumns, and nId.

Referenced by FmGridControl::ColumnMoved().

◆ Command()

void DbGridControl::Command ( const CommandEvent rEvt)
overrideprotectedvirtual

◆ ConnectToFields()

void DbGridControl::ConnectToFields ( )
protected

◆ copyCellText()

void DbGridControl::copyCellText ( sal_Int32  _nRow,
sal_uInt16  _nColId 
)

copies the text of the given cell into the clipboard

Definition at line 2521 of file gridctrl.cxx.

References canCopyCellText(), DBG_ASSERT, GetCurrentRowCellText(), GetModelColumnPos(), m_aColumns, m_xPaintRow, and SeekRow().

Referenced by Command().

◆ CreateAccessibleCell()

Reference< XAccessible > DbGridControl::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 3366 of file gridctrl.cxx.

References get(), DbGridColumn::GetCell(), BrowseBox::GetColumnId(), GetModelColumnPos(), m_aColumns, TRISTATE_FALSE, TRISTATE_INDET, and TRISTATE_TRUE.

◆ CreateAccessibleControl()

Reference< XAccessible > DbGridControl::CreateAccessibleControl ( sal_Int32  _nIndex)
overridevirtual

Creates the accessible object of an additional control.

Parameters
_nIndexThe 0-based index of the control.
Returns
The XAccessible interface of the specified control.

Reimplemented from svt::EditBrowseBox.

Definition at line 3354 of file gridctrl.cxx.

References m_aBar.

◆ CreateColumn()

std::unique_ptr< DbGridColumn > DbGridControl::CreateColumn ( sal_uInt16  nId)
protected

Definition at line 1390 of file gridctrl.cxx.

References nId.

Referenced by AppendColumn().

◆ CursorMoved()

void DbGridControl::CursorMoved ( )
overrideprotectedvirtual

◆ CursorMoving()

bool DbGridControl::CursorMoving ( sal_Int32  nNewRow,
sal_uInt16  nNewCol 
)
overrideprotectedvirtual

◆ DataChanged()

void DbGridControl::DataChanged ( const DataChangedEvent rDCEvt)
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 820 of file gridctrl.cxx.

References All, DataChangedEvent::GetFlags(), DataChangedEvent::GetType(), and ImplInitWindow().

◆ DataSourcePropertyChanged()

void DbGridControl::DataSourcePropertyChanged ( const css::beans::PropertyChangeEvent &  evt)
protected

◆ DECL_DLLPRIVATE_LINK() [1/2]

DbGridControl::DECL_DLLPRIVATE_LINK ( OnAsyncAdjust  ,
void *  ,
void   
)
protected

◆ DECL_DLLPRIVATE_LINK() [2/2]

DbGridControl::DECL_DLLPRIVATE_LINK ( OnDelete  ,
void *  ,
void   
)
protected

◆ DeleteSelectedRows()

void DbGridControl::DeleteSelectedRows ( )
protectedvirtual

Reimplemented in FmGridControl.

Definition at line 2602 of file gridctrl.cxx.

References DBG_ASSERT, BrowseBox::GetSelection(), and m_pSeekCursor.

◆ DisconnectFromFields()

void DbGridControl::DisconnectFromFields ( )
protected

Definition at line 3268 of file gridctrl.cxx.

References DBG_ASSERT, and m_pFieldListeners.

Referenced by dispose(), and setDataSource().

◆ Dispatch()

void DbGridControl::Dispatch ( sal_uInt16  nId)
overridevirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 2691 of file gridctrl.cxx.

References AppendNew(), BROWSER_CURSORENDOFFILE, Insert, m_nOptions, MoveToLast(), and nId.

◆ dispose()

void DbGridControl::dispose ( void  )
overridevirtual

◆ disposing()

void DbGridControl::disposing ( sal_uInt16  _nId)
protected

◆ EnableHandle()

void DbGridControl::EnableHandle ( bool  bEnable)

◆ EnableNavigationBar()

void DbGridControl::EnableNavigationBar ( bool  bEnable)

◆ EnablePermanentCursor()

void DbGridControl::EnablePermanentCursor ( bool  bEnable)

◆ EndCursorAction()

void DbGridControl::EndCursorAction ( )
virtual

◆ executeRowContextMenu()

void DbGridControl::executeRowContextMenu ( const Point _rPreferredPos)
protected

◆ FieldListenerDisposing()

void DbGridControl::FieldListenerDisposing ( sal_uInt16  _nId)
protected

Definition at line 3314 of file gridctrl.cxx.

References m_pFieldListeners.

Referenced by GridFieldValueListener::dispose().

◆ FieldValueChanged()

void DbGridControl::FieldValueChanged ( sal_uInt16  _nId)
protected

◆ ForceHideScrollbars()

void DbGridControl::ForceHideScrollbars ( )

forces both scrollbars to be hidden

For the horizontal scrollbar, this is overruled by enabling the navigation bar: A navigation bar always implies a horizontal scroll bar @seealso EnableNavigationBar

Definition at line 1098 of file gridctrl.cxx.

References m_bHideScrollbars, BrowseBox::m_bNavigationBar, m_nMode, and BrowseBox::SetMode().

◆ GetAccessibleControlCount()

sal_Int32 DbGridControl::GetAccessibleControlCount ( ) const
overridevirtual
Returns
The count of additional controls of the control area.

Reimplemented from svt::EditBrowseBox.

Definition at line 3349 of file gridctrl.cxx.

◆ GetCellText()

OUString DbGridControl::GetCellText ( sal_Int32  _nRow,
sal_uInt16  _nColId 
) const
overridevirtual

GetCellText returns the text at the given position.

Parameters
_nRowthe number of the row
_nColIdthe ID of the column
Returns
the text out of the cell

Reimplemented from BrowseBox.

Definition at line 2377 of file gridctrl.cxx.

References get(), GetCurrentRowCellText(), GetModelColumnPos(), m_aColumns, m_xPaintRow, and SeekRow().

◆ GetColumnIdFromModelPos()

sal_uInt16 DbGridControl::GetColumnIdFromModelPos ( sal_uInt16  nPos) const

◆ GetColumnIdFromViewPos()

sal_uInt16 DbGridControl::GetColumnIdFromViewPos ( sal_uInt16  nPos) const
inline

Definition at line 423 of file gridctrl.hxx.

References BrowseBox::GetColumnId(), and nPos.

Referenced by GetColumnIdFromModelPos(), HideColumn(), and FmGridControl::Select().

◆ GetColumns()

const std::vector< std::unique_ptr< DbGridColumn > > & DbGridControl::GetColumns ( ) const
inline

◆ getContext()

const css::uno::Reference< css::uno::XComponentContext > & DbGridControl::getContext ( ) const
inline

Definition at line 504 of file gridctrl.hxx.

References m_xContext.

Referenced by DbGridColumn::CreateControl().

◆ GetController()

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

◆ GetCurrentPos()

sal_Int32 DbGridControl::GetCurrentPos ( ) const
inlineprotected

Definition at line 572 of file gridctrl.hxx.

References m_nCurrentPos.

Referenced by FmGridControl::DeleteSelectedRows(), and FmGridControl::propertyChange().

◆ GetCurrentRow()

const DbGridRowRef & DbGridControl::GetCurrentRow ( ) const
inline

◆ GetCurrentRowCellText()

OUString DbGridControl::GetCurrentRowCellText ( DbGridColumn const *  pCol,
const DbGridRowRef _rRow 
) const
protected

◆ getDataSource()

CursorWrapper * DbGridControl::getDataSource ( ) const
inline

◆ getDisplaySynchron()

bool DbGridControl::getDisplaySynchron ( ) const
inline

Definition at line 473 of file gridctrl.hxx.

Referenced by FmXEditCell::getText(), and SeekRow().

◆ GetEmptyRow()

const DbGridRowRef & DbGridControl::GetEmptyRow ( ) const
inlineprotected

Definition at line 576 of file gridctrl.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

◆ GetModelColCount()

sal_uInt16 DbGridControl::GetModelColCount ( ) const
inline

Definition at line 421 of file gridctrl.hxx.

Referenced by FmGridControl::InitColumnsByModels().

◆ GetModelColumnPos()

sal_uInt16 DbGridControl::GetModelColumnPos ( sal_uInt16  nId) const

◆ GetNavigationBar()

NavigationBar & DbGridControl::GetNavigationBar ( )
inline

Definition at line 438 of file gridctrl.hxx.

◆ getNullDate()

const css::util::Date & DbGridControl::getNullDate ( ) const
inline

◆ getNumberFormatter()

const css::uno::Reference< css::util::XNumberFormatter > & DbGridControl::getNumberFormatter ( ) const
inline

◆ GetOptions()

DbGridControlOptions DbGridControl::GetOptions ( ) const
inline

◆ GetPaintRow()

const DbGridRowRef & DbGridControl::GetPaintRow ( ) const
inlineprotected

Definition at line 578 of file gridctrl.hxx.

◆ GetRowStatus()

svt::EditBrowseBox::RowStatus DbGridControl::GetRowStatus ( sal_Int32  nRow) const
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 1731 of file gridctrl.cxx.

References IsFilterRow(), IsInsertionRow(), IsModified(), IsValid(), m_nCurrentPos, m_xCurrentRow, and m_xSeekRow.

Referenced by FieldValueChanged().

◆ GetSeekCursor()

CursorWrapper * DbGridControl::GetSeekCursor ( GrantControlAccess  ) const
inline

Definition at line 524 of file gridctrl.hxx.

◆ GetSeekPos()

sal_Int32 DbGridControl::GetSeekPos ( ) const
inlineprotected

Definition at line 573 of file gridctrl.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

◆ GetSeekRow() [1/2]

const DbGridRowRef & DbGridControl::GetSeekRow ( ) const
inlineprotected

◆ GetSeekRow() [2/2]

const DbGridRowRef & DbGridControl::GetSeekRow ( GrantControlAccess  ) const
inline

Definition at line 525 of file gridctrl.hxx.

◆ GetTotalCellWidth()

sal_uInt32 DbGridControl::GetTotalCellWidth ( sal_Int32  nRow,
sal_uInt16  nColId 
)
overrideprotectedvirtual

◆ GetTotalCount()

sal_Int32 DbGridControl::GetTotalCount ( ) const
inlineprotected

Definition at line 574 of file gridctrl.hxx.

Referenced by FmGridControl::DeleteSelectedRows().

◆ GetViewColCount()

sal_uInt16 DbGridControl::GetViewColCount ( ) const
inline

Definition at line 420 of file gridctrl.hxx.

References BrowseBox::ColCount().

Referenced by IsTabAllowed().

◆ GetViewColumnPos()

sal_uInt16 DbGridControl::GetViewColumnPos ( sal_uInt16  nId) const
inline

◆ HasHandle()

bool DbGridControl::HasHandle ( ) const
inline

Definition at line 408 of file gridctrl.hxx.

Referenced by InsertHandleColumn().

◆ HasNavigationBar()

bool DbGridControl::HasNavigationBar ( ) const
inline

Definition at line 435 of file gridctrl.hxx.

References BrowseBox::m_bNavigationBar.

◆ HideColumn()

void DbGridControl::HideColumn ( sal_uInt16  nId)
protectedvirtual

◆ implAdjustInSolarThread()

void DbGridControl::implAdjustInSolarThread ( bool  _bRows)
protected

◆ ImplInitWindow()

void DbGridControl::ImplInitWindow ( const InitWindowFacet  _eInitWhat)
protected

◆ Init()

void DbGridControl::Init ( void  )
overridevirtual

◆ InitColumnsByFields()

virtual void DbGridControl::InitColumnsByFields ( const css::uno::Reference< css::container::XIndexAccess > &  xFields)
pure virtual

Implemented in FmGridControl.

Referenced by setDataSource().

◆ InsertHandleColumn() [1/2]

void DbGridControl::InsertHandleColumn ( )

◆ InsertHandleColumn() [2/2]

void BrowseBox::InsertHandleColumn ( sal_uLong  nWidth)
private

◆ IsCurrentAppending()

bool DbGridControl::IsCurrentAppending ( ) const
protected

◆ IsDesignMode()

bool DbGridControl::IsDesignMode ( ) const
inline

◆ IsFilterMode()

bool DbGridControl::IsFilterMode ( ) const
inline

◆ IsFilterRow()

bool DbGridControl::IsFilterRow ( sal_Int32  nRow) const
inline

Definition at line 432 of file gridctrl.hxx.

Referenced by GetRowStatus(), SeekCursor(), SeekRow(), and SetCurrent().

◆ IsInsertionRow()

bool DbGridControl::IsInsertionRow ( sal_Int32  nRow) const
protected

◆ IsModified()

bool DbGridControl::IsModified ( ) const
overrideprotectedvirtual

◆ IsOpen()

bool DbGridControl::IsOpen ( ) const
inline

Definition at line 428 of file gridctrl.hxx.

Referenced by NavigationBar::GetState().

◆ IsPermanentCursorEnabled()

bool DbGridControl::IsPermanentCursorEnabled ( ) const

Definition at line 1136 of file gridctrl.cxx.

References m_nMode.

Referenced by EnablePermanentCursor(), and setDataSource().

◆ IsTabAllowed()

bool DbGridControl::IsTabAllowed ( bool  bForward) const
overrideprotectedvirtual

◆ IsUpdating()

bool DbGridControl::IsUpdating ( ) const
inline

Definition at line 465 of file gridctrl.hxx.

Referenced by AdjustRows(), FmGridControl::commit(), and DataSourcePropertyChanged().

◆ IsValid()

static bool DbGridControl::IsValid ( const DbGridRowRef _xRow)
inlinestaticprotected

◆ KeyInput()

void DbGridControl::KeyInput ( const KeyEvent rEvt)
overrideprotectedvirtual

◆ MoveToFirst()

void DbGridControl::MoveToFirst ( )

Definition at line 2172 of file gridctrl.cxx.

References BrowseBox::GetCurRow(), m_pSeekCursor, and MoveToPosition().

Referenced by IMPL_LINK().

◆ MoveToLast()

void DbGridControl::MoveToLast ( )

◆ MoveToNext()

void DbGridControl::MoveToNext ( )

◆ MoveToPosition()

void DbGridControl::MoveToPosition ( sal_uInt32  nPos)

◆ MoveToPrev()

void DbGridControl::MoveToPrev ( )

Definition at line 2210 of file gridctrl.cxx.

References BrowseBox::GetCurRow(), and MoveToPosition().

Referenced by IMPL_LINK().

◆ onColumnChange()

void DbGridControl::onColumnChange ( )
protectedvirtual

called when the current column changed

Definition at line 1909 of file gridctrl.cxx.

References FmGridListener::columnChanged(), and m_pGridListener.

Referenced by CursorMoved().

◆ onRowChange()

void DbGridControl::onRowChange ( )
protectedvirtual

called when the current row changed

Definition at line 1904 of file gridctrl.cxx.

Referenced by CursorMoved().

◆ PaintCell()

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

◆ PostExecuteRowContextMenu()

void DbGridControl::PostExecuteRowContextMenu ( const OUString &  rExecutionResult)
protectedvirtual

After executing the context menu for a row this method is called.

Definition at line 2427 of file gridctrl.cxx.

References LINK, m_nDeleteEvent, Application::PostUserEvent(), Application::RemoveUserEvent(), SaveRow(), and Undo().

Referenced by executeRowContextMenu().

◆ PreExecuteRowContextMenu()

void DbGridControl::PreExecuteRowContextMenu ( weld::Menu rMenu)
protectedvirtual

This is called before executing a context menu for a row.

rMenu contains the initial entries handled by this base class' method (which always has to be called). Derived classes may alter the menu in any way and handle any additional entries in PostExecuteColumnContextMenu. All disabled entries will be removed before executing the menu, so be careful with separators near entries you probably wish to disable ...

Definition at line 2408 of file gridctrl.cxx.

References Link< typename Arg, typename Ret >::Call(), Delete, BrowseBox::GetRowCount(), BrowseBox::GetSelectRowCount(), Insert, IsCurrentAppending(), IsModified(), BrowseBox::IsRowSelected(), Link< typename Arg, typename Ret >::IsSet(), m_aMasterStateProvider, m_nOptions, nState, weld::Menu::set_visible(), and Undo.

Referenced by executeRowContextMenu().

◆ PreNotify()

bool DbGridControl::PreNotify ( NotifyEvent rEvt)
overrideprotectedvirtual

◆ RecalcRows()

void DbGridControl::RecalcRows ( sal_Int32  nNewTopRow,
sal_uInt16  nLinesOnScreen,
bool  bUpdateCursor 
)
protected

◆ refreshController()

void DbGridControl::refreshController ( sal_uInt16  _nColId,
GrantControlAccess  _aAccess 
)

called when a controller needs to be re-initialized

Definition at line 1141 of file gridctrl.cxx.

References svt::EditBrowseBox::ActivateCell(), svt::EditBrowseBox::DeactivateCell(), BrowseBox::GetCurColumnId(), and svt::EditBrowseBox::IsEditing().

Referenced by DbCellControl::invalidatedController().

◆ RemoveColumn()

void DbGridControl::RemoveColumn ( sal_uInt16  nId)
protected

Definition at line 1430 of file gridctrl.cxx.

References GetModelColumnPos(), GRID_COLUMN_NOT_FOUND, m_aColumns, nId, and nIndex.

Referenced by EnableHandle().

◆ RemoveColumns()

void DbGridControl::RemoveColumns ( )
protected

◆ RemoveRows() [1/2]

void DbGridControl::RemoveRows ( )
overridevirtual

◆ RemoveRows() [2/2]

void DbGridControl::RemoveRows ( bool  bNewCursor)

◆ resetCurrentRow()

void DbGridControl::resetCurrentRow ( )

◆ RowInserted()

void DbGridControl::RowInserted ( sal_Int32  nRow,
sal_Int32  nNumRows = 1,
bool  bDoPaint = true 
)

◆ RowModified()

void DbGridControl::RowModified ( sal_Int32  nRow)

◆ RowRemoved()

void DbGridControl::RowRemoved ( sal_Int32  nRow,
sal_Int32  nNumRows = 1,
bool  bDoPaint = true 
)

◆ SaveModified()

bool DbGridControl::SaveModified ( )
overrideprotectedvirtual

◆ SaveRow()

bool DbGridControl::SaveRow ( )
overrideprotectedvirtual

◆ SeekCursor()

bool DbGridControl::SeekCursor ( sal_Int32  nRow,
bool  bAbsolute = false 
)
protected

◆ SeekRow()

bool DbGridControl::SeekRow ( sal_Int32  nRow)
overrideprotectedvirtual

◆ Select()

void DbGridControl::Select ( )
overrideprotectedvirtual

Reimplemented from BrowseBox.

Reimplemented in FmGridControl.

Definition at line 831 of file gridctrl.cxx.

References Count, m_aBar, m_pGridListener, and FmGridListener::selectionChanged().

Referenced by FmGridControl::Select().

◆ SetCurrent()

bool DbGridControl::SetCurrent ( sal_Int32  nNewRow)
protected

◆ setDataSource()

void DbGridControl::setDataSource ( const css::uno::Reference< css::sdbc::XRowSet > &  rCursor,
DbGridControlOptions  nOpts = DbGridControlOptions::Insert | DbGridControlOptions::Update | DbGridControlOptions::Delete 
)

◆ SetDesignMode()

void DbGridControl::SetDesignMode ( bool  bMode)
virtual

◆ setDisplaySynchron()

void DbGridControl::setDisplaySynchron ( bool  bSync)

Definition at line 1915 of file gridctrl.cxx.

References AdjustDataSource(), and m_bSynchDisplay.

◆ SetFilterMode()

void DbGridControl::SetFilterMode ( bool  bMode)

◆ setGridListener()

void DbGridControl::setGridListener ( FmGridListener _pListener)
inline

Definition at line 512 of file gridctrl.hxx.

◆ SetOptions()

DbGridControlOptions DbGridControl::SetOptions ( DbGridControlOptions  nOpt)

◆ SetSeekPos() [1/2]

void DbGridControl::SetSeekPos ( sal_Int32  nPos)
inlineprotected

Definition at line 571 of file gridctrl.hxx.

References nPos.

◆ SetSeekPos() [2/2]

void DbGridControl::SetSeekPos ( sal_Int32  nPos,
GrantControlAccess   
)
inline

Definition at line 526 of file gridctrl.hxx.

References nPos.

Referenced by FmGridControl::DeleteSelectedRows().

◆ SetSlotExecutor()

void DbGridControl::SetSlotExecutor ( const Link< DbGridControlNavigationBarState, bool > &  rExecutor)
inline

Definition at line 488 of file gridctrl.hxx.

◆ SetStateProvider()

void DbGridControl::SetStateProvider ( const Link< DbGridControlNavigationBarState, int > &  rProvider)
inline

Definition at line 482 of file gridctrl.hxx.

◆ ShowColumn()

void DbGridControl::ShowColumn ( sal_uInt16  nId)
protectedvirtual

◆ StartDrag()

void DbGridControl::StartDrag ( sal_Int8  nAction,
const Point rPosPixel 
)
overrideprotectedvirtual

◆ StateChanged()

void DbGridControl::StateChanged ( StateChangedType  nType)
overrideprotectedvirtual

◆ Undo()

void DbGridControl::Undo ( )

◆ VisibleRowsChanged()

void DbGridControl::VisibleRowsChanged ( sal_Int32  nNewTopRow,
sal_uInt16  nNumRows 
)
overrideprotectedvirtual

Reimplemented from BrowseBox.

Definition at line 1568 of file gridctrl.cxx.

References RecalcRows().

Friends And Related Function Documentation

◆ DisposeListenerGridBridge

friend class DisposeListenerGridBridge
friend

Definition at line 223 of file gridctrl.hxx.

Referenced by setDataSource().

◆ FmXGridSourcePropListener

friend class FmXGridSourcePropListener
friend

Definition at line 221 of file gridctrl.hxx.

Referenced by setDataSource().

◆ GridFieldValueListener

friend class GridFieldValueListener
friend

Definition at line 222 of file gridctrl.hxx.

Referenced by ConnectToFields().

◆ NavigationBar

friend class NavigationBar
friend

Definition at line 227 of file gridctrl.hxx.

Member Data Documentation

◆ m_aAdjustSafety

osl::Mutex DbGridControl::m_aAdjustSafety
private

Definition at line 277 of file gridctrl.hxx.

Referenced by CellModified(), disposing(), implAdjustInSolarThread(), and setDataSource().

◆ m_aBar

VclPtr<NavigationBar> DbGridControl::m_aBar
private

◆ m_aColumns

std::vector< std::unique_ptr<DbGridColumn> > DbGridControl::m_aColumns
private

◆ m_aDestructionSafety

osl::Mutex DbGridControl::m_aDestructionSafety
private

Definition at line 276 of file gridctrl.hxx.

Referenced by dispose(), and FieldValueChanged().

◆ m_aMasterSlotExecutor

Link<DbGridControlNavigationBarState,bool> DbGridControl::m_aMasterSlotExecutor
private

Definition at line 231 of file gridctrl.hxx.

Referenced by IMPL_LINK(), and Undo().

◆ m_aMasterStateProvider

Link<DbGridControlNavigationBarState,int> DbGridControl::m_aMasterStateProvider
private

Definition at line 230 of file gridctrl.hxx.

Referenced by NavigationBar::GetState(), PreExecuteRowContextMenu(), and Undo().

◆ m_aNullDate

css::util::Date DbGridControl::m_aNullDate
private

Definition at line 280 of file gridctrl.hxx.

Referenced by setDataSource().

◆ m_bDesignMode

bool DbGridControl::m_bDesignMode
private

Definition at line 293 of file gridctrl.hxx.

Referenced by SetDesignMode().

◆ m_bFilterMode

bool DbGridControl::m_bFilterMode
private

Definition at line 298 of file gridctrl.hxx.

Referenced by SetFilterMode().

◆ m_bHandle

bool DbGridControl::m_bHandle
private

Definition at line 297 of file gridctrl.hxx.

Referenced by EnableHandle().

◆ m_bHideScrollbars

bool DbGridControl::m_bHideScrollbars
private

Definition at line 301 of file gridctrl.hxx.

Referenced by EnableNavigationBar(), ForceHideScrollbars(), and setDataSource().

◆ m_bPendingAdjustRows

bool DbGridControl::m_bPendingAdjustRows
private

Definition at line 300 of file gridctrl.hxx.

Referenced by CellModified(), and implAdjustInSolarThread().

◆ m_bRecordCountFinal

bool DbGridControl::m_bRecordCountFinal
private

◆ m_bSynchDisplay

bool DbGridControl::m_bSynchDisplay
private

Definition at line 296 of file gridctrl.hxx.

Referenced by AdjustDataSource(), AdjustRows(), and setDisplaySynchron().

◆ m_bUpdating

bool DbGridControl::m_bUpdating
protected

Definition at line 304 of file gridctrl.hxx.

Referenced by SaveRow().

◆ m_bWantDestruction

bool DbGridControl::m_bWantDestruction
private

Definition at line 299 of file gridctrl.hxx.

Referenced by dispose(), and FieldValueChanged().

◆ m_nAsynAdjustEvent

ImplSVEvent* DbGridControl::m_nAsynAdjustEvent
private

Definition at line 245 of file gridctrl.hxx.

Referenced by CellModified(), disposing(), implAdjustInSolarThread(), and setDataSource().

◆ m_nCurrentPos

sal_Int32 DbGridControl::m_nCurrentPos
private

◆ m_nDeleteEvent

ImplSVEvent* DbGridControl::m_nDeleteEvent
private

Definition at line 284 of file gridctrl.hxx.

Referenced by dispose(), PostExecuteRowContextMenu(), and PreNotify().

◆ m_nLastColId

sal_uInt16 DbGridControl::m_nLastColId
private

Definition at line 290 of file gridctrl.hxx.

Referenced by CursorMoved().

◆ m_nLastRowId

sal_Int32 DbGridControl::m_nLastRowId
private

Definition at line 291 of file gridctrl.hxx.

Referenced by CursorMoved().

◆ m_nMode

BrowserMode DbGridControl::m_nMode
private

◆ m_nOptionMask

DbGridControlOptions DbGridControl::m_nOptionMask
private

Definition at line 287 of file gridctrl.hxx.

Referenced by setDataSource(), and SetOptions().

◆ m_nOptions

DbGridControlOptions DbGridControl::m_nOptions
private

◆ m_nSeekPos

sal_Int32 DbGridControl::m_nSeekPos
private

◆ m_nTotalCount

sal_Int32 DbGridControl::m_nTotalCount
private

◆ m_pCursorDisposeListener

std::unique_ptr<DisposeListenerGridBridge> DbGridControl::m_pCursorDisposeListener
private

Definition at line 258 of file gridctrl.hxx.

Referenced by dispose(), and setDataSource().

◆ m_pDataCursor

std::unique_ptr<CursorWrapper> DbGridControl::m_pDataCursor
protected

◆ m_pDataSourcePropListener

FmXGridSourcePropListener* DbGridControl::m_pDataSourcePropListener
private

Definition at line 251 of file gridctrl.hxx.

Referenced by BeginCursorAction(), dispose(), EndCursorAction(), and setDataSource().

◆ m_pDataSourcePropMultiplexer

rtl::Reference<::comphelper::OPropertyChangeMultiplexer> DbGridControl::m_pDataSourcePropMultiplexer
private

Definition at line 250 of file gridctrl.hxx.

Referenced by dispose(), and setDataSource().

◆ m_pFieldListeners

void* DbGridControl::m_pFieldListeners
private

◆ m_pGridListener

FmGridListener* DbGridControl::m_pGridListener
private

Definition at line 263 of file gridctrl.hxx.

Referenced by onColumnChange(), and Select().

◆ m_pSeekCursor

std::unique_ptr<CursorWrapper> DbGridControl::m_pSeekCursor
protected

◆ m_xContext

css::uno::Reference< css::uno::XComponentContext > DbGridControl::m_xContext
private

Definition at line 234 of file gridctrl.hxx.

Referenced by setDataSource().

◆ m_xCurrentRow

DbGridRowRef DbGridControl::m_xCurrentRow
private

◆ m_xDataRow

DbGridRowRef DbGridControl::m_xDataRow
private

◆ m_xEmptyRow

DbGridRowRef DbGridControl::m_xEmptyRow
private

◆ m_xFormatter

css::uno::Reference< css::util::XNumberFormatter > DbGridControl::m_xFormatter
private

Definition at line 233 of file gridctrl.hxx.

Referenced by FieldValueChanged(), GetCurrentRowCellText(), and setDataSource().

◆ m_xPaintRow

DbGridRowRef DbGridControl::m_xPaintRow
private

◆ m_xRowSetListener

css::uno::Reference< css::sdb::XRowsChangeListener> DbGridControl::m_xRowSetListener
private

Definition at line 253 of file gridctrl.hxx.

Referenced by dispose(), and setDataSource().

◆ m_xSeekRow

DbGridRowRef DbGridControl::m_xSeekRow
private

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