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

#include <fmgridcl.hxx>

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

Public Member Functions

 FmGridControl (const css::uno::Reference< css::uno::XComponentContext > &, vcl::Window *pParent, FmXGridPeer *_pPeer, WinBits nBits)
 
virtual void KeyInput (const KeyEvent &rKEvt) override
 
void propertyChange (const css::beans::PropertyChangeEvent &evt)
 
void positioned ()
 
bool commit ()
 
void inserted ()
 
void markColumn (sal_uInt16 nId)
 
bool isColumnMarked (sal_uInt16 nId) const
 
sal_Int32 GetSelectedColumn () const
 
virtual OUString GetAccessibleObjectName (::vcl::AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override
 return the name of the specified object. More...
 
virtual OUString GetAccessibleObjectDescription (::vcl::AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override
 return the description of the specified object. More...
 
- Public Member Functions inherited from DbGridControl
 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 RemoveRows () override
 
virtual OUString GetCellText (long _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
 
bool IsDesignMode () const
 
bool IsOpen () const
 
void SetFilterMode (bool bMode)
 
bool IsFilterMode () const
 
bool IsFilterRow (long 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 ()
 
bool IsUpdating () const
 
void RowRemoved (long nRow, long nNumRows=1, bool bDoPaint=true)
 
void RowInserted (long nRow, long nNumRows=1, bool bDoPaint=true)
 
void RowModified (long 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
 
bool IsEditing () const
 
void InvalidateStatusCell (long nRow)
 
void InvalidateHandleColumn ()
 
const CellControllerRefController () const
 
EditBrowseBoxFlags GetBrowserFlags () const
 
void SetBrowserFlags (EditBrowseBoxFlags nFlags)
 
virtual void ActivateCell (long nRow, sal_uInt16 nCol, bool bSetCellFocus=true)
 
virtual void DeactivateCell (bool bUpdate=true)
 
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
 
css::uno::Reference< css::accessibility::XAccessible > CreateAccessibleCheckBoxCell (long _nRow, sal_uInt16 _nColumnPos, const TriState &eState)
 
- Public Member Functions inherited from BrowseBox
virtual long GetRowCount () const override
 
 BrowseBox (vcl::Window *pParent, WinBits nBits, BrowserMode nMode=BrowserMode::NONE)
 
virtual ~BrowseBox () override
 
virtual void MouseButtonDown (const MouseEvent &rEvt) override
 
virtual void MouseMove (const MouseEvent &rEvt) override
 
virtual void MouseButtonUp (const MouseEvent &rEvt) override
 
virtual void Paint (vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
 
virtual void Draw (OutputDevice *pDev, const Point &rPos, const Size &rSize, DrawFlags nFlags) 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)
 
void StartScroll ()
 
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, 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 (long nPixel)
 
long GetDataRowHeight () const
 
void SetTitleLines (sal_uInt16 nLines)
 
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
 
long ScrollColumns (long nColumns)
 
long ScrollRows (long nRows)
 
void MakeFieldVisible (long nRow, sal_uInt16 nColId)
 
long GetCurRow () const
 
sal_uInt16 GetCurColumnId () const
 
bool GoToRow (long nRow)
 
bool GoToColumnId (sal_uInt16 nColId)
 
bool GoToRowColumnId (long nRow, sal_uInt16 nColId)
 
virtual void SetNoSelection () override
 
virtual void SelectAll () override
 
virtual void SelectRow (long nRow, bool _bSelect=true, bool bExpand=true) override
 
void SelectColumnPos (sal_uInt16 nCol, bool _bSelect=true)
 
void SelectColumnId (sal_uInt16 nColId)
 
long GetSelectRowCount () const
 
sal_uInt16 GetSelectColumnCount () const
 
virtual bool IsRowSelected (long nRow) const override
 
bool IsColumnSelected (sal_uInt16 nColumnId) const
 
long FirstSelectedRow ()
 
long LastSelectedRow ()
 
long NextSelectedRow ()
 
const MultiSelectionGetColumnSelection () const
 
const MultiSelectionGetSelection () const
 
long FirstSelectedColumn () const
 
bool IsResizing () const
 
vcl::WindowGetDataWindow () const
 
tools::Rectangle GetRowRectPixel (long nRow) const
 
tools::Rectangle GetFieldRectPixel (long nRow, sal_uInt16 nColId, bool bRelToBrowser=true) const
 
bool IsFieldVisible (long nRow, sal_uInt16 nColId, bool bComplete=false) const
 
long GetRowAtYPosPixel (long nY, bool bRelToBrowser=true) const
 
sal_uInt16 GetColumnAtXPosPixel (long nX) const
 
void Clear ()
 
void RowRemoved (long nRow, long nNumRows=1, bool bDoPaint=true)
 
void RowModified (long nRow, sal_uInt16 nColId=BROWSER_INVALIDID)
 
void RowInserted (long nRow, long nNumRows=1, bool bDoPaint=true, bool bKeepSelection=false)
 
bool ReserveControlArea (sal_uInt16 nWidth=USHRT_MAX)
 
tools::Rectangle GetControlArea () const
 
bool ProcessKey (const KeyEvent &rEvt)
 
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
 
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 GetFieldRectPixelAbs (sal_Int32 _nRowId, sal_uInt16 _nColId, bool _bIsHeader, bool _bOnScreen=true) override
 
bool isAccessibleAlive () const
 
virtual css::uno::Reference< css::accessibility::XAccessible > CreateAccessible () 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 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 GetRowDescription (sal_Int32 nRow) const override
 
virtual OUString GetColumnDescription (sal_uInt16 _nColumn) const override
 
virtual void FillAccessibleStateSet (::utl::AccessibleStateSetHelper &rStateSet,::vcl::AccessibleBrowseBoxObjType eObjType) const override
 
virtual void FillAccessibleStateSetForCell (::utl::AccessibleStateSetHelper &_rStateSet, sal_Int32 _nRow, sal_uInt16 _nColumn) const 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 (long _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 (long _nRow, sal_uInt16 _nColPos) const override
 
virtual bool GetGlyphBoundRects (const Point &rOrigin, const OUString &rStr, int nIndex, int nLen, MetricVector &rVector) override
 
virtual tools::Rectangle GetWindowExtentsRelative (vcl::Window *pRelativeWindow) 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 void Command (const CommandEvent &rEvt) override
 
virtual VclPtr< BrowserHeaderimp_CreateHeaderBar (BrowseBox *pParent) override
 
virtual long QueryMinimumRowHeight () override
 
virtual void RowHeightChanged () override
 
virtual void ColumnResized (sal_uInt16 nId) override
 
virtual void ColumnMoved (sal_uInt16 nId) override
 
virtual void DeleteSelectedRows () override
 
virtual void SetDesignMode (bool bMode) override
 
virtual void CellModified () override
 
virtual void HideColumn (sal_uInt16 nId) override
 hide a column More...
 
virtual void ShowColumn (sal_uInt16 nId) override
 show a column More...
 
bool IsInColumnMove () const
 
virtual void BeginCursorAction () override
 
virtual void EndCursorAction () override
 
virtual void Select () override
 
void InitColumnsByModels (const css::uno::Reference< css::container::XIndexContainer > &xColumns)
 
virtual void InitColumnsByFields (const css::uno::Reference< css::container::XIndexAccess > &xFields) override
 
FmXGridPeerGetPeer () const
 
css::uno::Sequence< css::uno::Any > getSelectionBookmarks ()
 
bool selectBookmarks (const css::uno::Sequence< css::uno::Any > &_rBookmarks)
 
bool isColumnSelected (DbGridColumn const *_pColumn)
 returns if a column is selected More...
 
- Protected Member Functions inherited from DbGridControl
virtual bool SeekRow (long nRow) override
 
virtual void VisibleRowsChanged (long nNewTopRow, sal_uInt16 nNumRows) override
 
virtual void PaintCell (OutputDevice &rDev, const tools::Rectangle &rRect, sal_uInt16 nColId) const override
 
virtual RowStatus GetRowStatus (long nRow) const override
 
virtual bool CursorMoving (long nNewRow, sal_uInt16 nNewCol) override
 
virtual void CursorMoved () override
 
virtual void ArrangeControls (sal_uInt16 &nX, sal_uInt16 nY) override
 
virtual sal_uInt32 GetTotalCellWidth (long nRow, sal_uInt16 nColId) override
 
virtual bool PreNotify (NotifyEvent &rEvt) override
 
virtual void StateChanged (StateChangedType nType) override
 
virtual void DataChanged (const DataChangedEvent &rDCEvt) override
 
virtual ::svt::CellControllerGetController (long nRow, sal_uInt16 nCol) 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) const
 
virtual bool SaveRow () override
 
virtual bool IsTabAllowed (bool bForward) const override
 
virtual void PreExecuteRowContextMenu (sal_uInt16 nRow, PopupMenu &rMenu)
 This is called before executing a context menu for a row. More...
 
virtual void PostExecuteRowContextMenu (sal_uInt16 nRow, const PopupMenu &rMenu, sal_uInt16 nExecutionResult)
 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 (long _nRow, const Point &_rPreferredPos)
 
void RecalcRows (long nNewTopRow, sal_uInt16 nLinesOnScreen, bool bUpdateCursor)
 
bool SeekCursor (long nRow, bool bAbsolute=false)
 
void RemoveColumns ()
 
void AdjustRows ()
 
sal_Int32 AlignSeekCursor ()
 
bool SetCurrent (long nNewRow)
 
OUString GetCurrentRowCellText (DbGridColumn const *pCol, const DbGridRowRef &_rRow) const
 
bool IsCurrentAppending () const
 
bool IsInsertionRow (long 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_LINK (OnDelete, void *, void)
 
 DECL_LINK (OnAsyncAdjust, void *, void)
 
- Protected Member Functions inherited from svt::EditBrowseBox
BrowserMouseEventPtr & getMouseEvent ()
 
BrowserHeaderGetHeaderBar () const
 
virtual VclPtr< BrowserHeaderCreateHeaderBar (BrowseBox *pParent) override
 
virtual void Resize () override
 
virtual void GetFocus () override
 
virtual void LoseFocus () override
 
virtual void MouseButtonDown (const BrowserMouseEvent &rEvt) override
 
virtual void MouseButtonUp (const BrowserMouseEvent &rEvt) override
 
virtual bool EventNotify (NotifyEvent &rNEvt) override
 
virtual void EndScroll () override
 
tools::Rectangle GetCellRect (long nRow, sal_uInt16 nColId, bool bRelToBrowser=true) const
 
sal_uInt32 GetAutoColumnWidth (sal_uInt16 nColId)
 
virtual void PaintStatusCell (OutputDevice &rDev, const tools::Rectangle &rRect) const
 
virtual void ImplStartTracking () override
 
virtual void ImplEndTracking () override
 
virtual void InitController (CellControllerRef &rController, long nRow, sal_uInt16 nCol)
 
virtual void DoubleClick (const BrowserMouseEvent &) override
 
void ActivateCell ()
 
Image GetImage (RowStatus) const
 
virtual bool IsCursorMoveAllowed (long nNewRow, sal_uInt16 nNewColId) const override
 
void PaintTristate (const tools::Rectangle &rRect, const TriState &eState, bool _bEnabled=true) const
 
void AsynchGetFocus ()
 
void implCreateActiveAccessible ()
 
- Protected Member Functions inherited from BrowseBox
::vcl::IAccessibleFactorygetAccessibleFactory ()
 
sal_uInt16 ColCount () const
 
void SetRealRowCount (const OUString &rRealRowCount)
 
void DrawCursor ()
 
void PaintData (vcl::Window const &rWin, vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
 
sal_uInt16 GetVisibleRows () const
 
long GetTopRow () const
 
sal_uInt16 GetFirstVisibleColNumber () const
 
void DoShowCursor (const char *pWhoLog)
 
void DoHideCursor (const char *pWhoLog)
 
short GetCursorHideCount () const
 
void SetHeaderBar (BrowserHeader *)
 
long CalcReverseZoom (long nVal)
 
const DataFlavorExVectorGetDataFlavors () const
 
bool IsDropFormatSupported (SotClipboardFormatId nFormat)
 

Static Protected Member Functions

static void InitColumnByField (DbGridColumn *_pColumn, const css::uno::Reference< css::beans::XPropertySet > &_rxColumnModel, const css::uno::Reference< css::container::XNameAccess > &_rxFieldsByNames, const css::uno::Reference< css::container::XIndexAccess > &_rxFieldsByIndex)
 
- Static Protected Member Functions inherited from DbGridControl
static bool IsValid (const DbGridRowRef &_xRow)
 
- Static Protected Member Functions inherited from svt::EditBrowseBox
static void ResizeController (CellControllerRef const &rController, const tools::Rectangle &)
 

Private Attributes

FmXGridPeerm_pPeer
 
sal_Int32 m_nCurrentSelectedColumn
 
sal_uInt16 m_nMarkedColumnId
 
bool m_bSelecting
 
bool m_bInColumnMove: 1
 

Friends

class FmGridHeader
 
class FmXGridPeer
 

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
 
long nSel
 
- Static Public Attributes inherited from BrowseBox
static const sal_uInt16 HandleColumnId
 
- Protected Attributes inherited from DbGridControl
std::unique_ptr< CursorWrapperm_pDataCursor
 
std::unique_ptr< CursorWrapperm_pSeekCursor
 
bool m_bUpdating: 1
 
- Protected Attributes inherited from svt::EditBrowseBox
VclPtr< BrowserHeaderpHeader
 

Detailed Description

Definition at line 89 of file fmgridcl.hxx.

Constructor & Destructor Documentation

FmGridControl::FmGridControl ( const css::uno::Reference< css::uno::XComponentContext > &  ,
vcl::Window pParent,
FmXGridPeer _pPeer,
WinBits  nBits 
)

Definition at line 1025 of file fmgridcl.cxx.

References BROWSER_INVALIDID, and BrowseBox::EnableInteractiveRowHeight().

Member Function Documentation

void FmGridControl::BeginCursorAction ( )
overrideprotectedvirtual

Reimplemented from DbGridControl.

Definition at line 1514 of file fmgridcl.cxx.

References DbGridControl::BeginCursorAction(), m_pPeer, and FmXGridPeer::stopCursorListening().

Referenced by DeleteSelectedRows().

void FmGridControl::CellModified ( )
overrideprotectedvirtual

Reimplemented from DbGridControl.

Definition at line 1508 of file fmgridcl.cxx.

References DbGridControl::CellModified(), FmXGridPeer::CellModified(), and GetPeer().

void FmGridControl::ColumnMoved ( sal_uInt16  nId)
overrideprotectedvirtual
void FmGridControl::ColumnResized ( sal_uInt16  nId)
overrideprotectedvirtual
void FmGridControl::Command ( const CommandEvent rEvt)
overrideprotectedvirtual
bool FmGridControl::commit ( )
void FmGridControl::DeleteSelectedRows ( )
overrideprotectedvirtual
void FmGridControl::EndCursorAction ( )
overrideprotectedvirtual

Reimplemented from DbGridControl.

Definition at line 1520 of file fmgridcl.cxx.

References DbGridControl::EndCursorAction(), m_pPeer, and FmXGridPeer::startCursorListening().

Referenced by DeleteSelectedRows().

OUString FmGridControl::GetAccessibleObjectDescription ( ::vcl::AccessibleBrowseBoxObjType  eObjType,
sal_Int32  _nPosition = -1 
) const
overridevirtual

return the description of the specified object.

Parameters
eObjTypeThe type to ask for
_nPositionThe position of a tablecell (index position), header bar column/row cell
Returns
The description of the specified object.

Reimplemented from BrowseBox.

Definition at line 1920 of file fmgridcl.cxx.

References FM_PROP_DESCRIPTION, FM_PROP_HELPTEXT, BrowseBox::GetAccessibleObjectDescription(), DbGridControl::GetModelColumnPos(), and GetPeer().

OUString FmGridControl::GetAccessibleObjectName ( ::vcl::AccessibleBrowseBoxObjType  eObjType,
sal_Int32  _nPosition = -1 
) const
overridevirtual

return the name of the specified object.

Parameters
eObjTypeThe type to ask for
_nPositionThe position of a tablecell (index position), header bar column/row cell
Returns
The name of the specified object.

Reimplemented from BrowseBox.

Definition at line 1894 of file fmgridcl.cxx.

References FM_PROP_LABEL, FM_PROP_NAME, BrowseBox::GetAccessibleObjectName(), DbGridControl::GetModelColumnPos(), and GetPeer().

FmXGridPeer* FmGridControl::GetPeer ( ) const
inlineprotected
sal_Int32 FmGridControl::GetSelectedColumn ( ) const
inline

Definition at line 126 of file fmgridcl.hxx.

Sequence< Any > FmGridControl::getSelectionBookmarks ( )
protected
void FmGridControl::HideColumn ( sal_uInt16  nId)
overrideprotectedvirtual
VclPtr< BrowserHeader > FmGridControl::imp_CreateHeaderBar ( BrowseBox pParent)
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 1430 of file fmgridcl.cxx.

References VclPtr< reference_type >::Create(), and DBG_ASSERT.

void FmGridControl::InitColumnByField ( DbGridColumn _pColumn,
const css::uno::Reference< css::beans::XPropertySet > &  _rxColumnModel,
const css::uno::Reference< css::container::XNameAccess > &  _rxFieldsByNames,
const css::uno::Reference< css::container::XIndexAccess > &  _rxFieldsByIndex 
)
staticprotected
void FmGridControl::InitColumnsByFields ( const css::uno::Reference< css::container::XIndexAccess > &  xFields)
overrideprotectedvirtual

Implements DbGridControl.

Definition at line 1691 of file fmgridcl.cxx.

References DbGridControl::GetColumns(), GetPeer(), i, and InitColumnByField().

void FmGridControl::InitColumnsByModels ( const css::uno::Reference< css::container::XIndexContainer > &  xColumns)
protected
void FmGridControl::inserted ( )
bool FmGridControl::isColumnMarked ( sal_uInt16  nId) const

Definition at line 1457 of file fmgridcl.cxx.

References m_nMarkedColumnId.

bool FmGridControl::isColumnSelected ( DbGridColumn const *  _pColumn)
protected

returns if a column is selected

Parameters
_pColumnThe column to compare with.
Returns
<TRUE> if the column is selected, otherwise <FALSE>

Definition at line 1731 of file fmgridcl.cxx.

References DbGridColumn::getModel(), and GetPeer().

Referenced by ColumnMoved(), and ShowColumn().

bool FmGridControl::IsInColumnMove ( ) const
inlineprotected
void FmGridControl::KeyInput ( const KeyEvent rKEvt)
overridevirtual
void FmGridControl::markColumn ( sal_uInt16  nId)
void FmGridControl::positioned ( )
void FmGridControl::propertyChange ( const css::beans::PropertyChangeEvent &  evt)
long FmGridControl::QueryMinimumRowHeight ( )
overrideprotectedvirtual

Reimplemented from BrowseBox.

Definition at line 1462 of file fmgridcl.cxx.

void FmGridControl::RowHeightChanged ( )
overrideprotectedvirtual
void FmGridControl::Select ( )
overrideprotectedvirtual
bool FmGridControl::selectBookmarks ( const css::uno::Sequence< css::uno::Any > &  _rBookmarks)
protected
void FmGridControl::SetDesignMode ( bool  bMode)
overrideprotectedvirtual
void FmGridControl::ShowColumn ( sal_uInt16  nId)
overrideprotectedvirtual

Friends And Related Function Documentation

friend class FmGridHeader
friend

Definition at line 92 of file fmgridcl.hxx.

friend class FmXGridPeer
friend

Definition at line 93 of file fmgridcl.hxx.

Member Data Documentation

bool FmGridControl::m_bInColumnMove
private

Definition at line 99 of file fmgridcl.hxx.

Referenced by ColumnMoved().

bool FmGridControl::m_bSelecting
private

Definition at line 98 of file fmgridcl.hxx.

Referenced by Select().

sal_Int32 FmGridControl::m_nCurrentSelectedColumn
private

Definition at line 96 of file fmgridcl.hxx.

Referenced by KeyInput(), and Select().

sal_uInt16 FmGridControl::m_nMarkedColumnId
private

Definition at line 97 of file fmgridcl.hxx.

Referenced by HideColumn(), isColumnMarked(), and markColumn().

FmXGridPeer* FmGridControl::m_pPeer
private

Definition at line 95 of file fmgridcl.hxx.

Referenced by BeginCursorAction(), and EndCursorAction().


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