LibreOffice Module svx (master) 1
|
#include <fmgridcl.hxx>
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 (AccessibleBrowseBoxObjType eObjType, sal_Int32 _nPosition=-1) const override |
return the name of the specified object. More... | |
virtual OUString | GetAccessibleObjectDescription (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 | 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 |
CursorWrapper * | getDataSource () 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 |
NavigationBar & | GetNavigationBar () |
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 DbGridRowRef & | GetCurrentRow () 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... | |
CursorWrapper * | GetSeekCursor (GrantControlAccess) const |
const DbGridRowRef & | GetSeekRow (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 CellControllerRef & | Controller () 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::Font & | GetFont () 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 MultiSelection * | GetColumnSelection () const |
const MultiSelection * | GetSelection () const |
sal_Int32 | FirstSelectedColumn () const |
bool | IsResizing () const |
BrowserDataWin & | GetDataWindow () 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::Window * | GetAccessibleParentWindow () const override |
virtual vcl::Window * | GetWindowInstance () override |
Protected Member Functions | |
virtual void | Command (const CommandEvent &rEvt) override |
virtual VclPtr< BrowserHeader > | imp_CreateHeaderBar (BrowseBox *pParent) override |
virtual tools::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 |
FmXGridPeer * | GetPeer () const |
css::uno::Sequence< css::uno::Any > | getSelectionBookmarks () |
bool | selectBookmarks (const css::uno::Sequence< css::uno::Any > &_rBookmarks) |
bool | isColumnSelected (DbGridColumn const *_pColumn) const |
returns if a column is selected More... | |
Protected Member Functions inherited from DbGridControl | |
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::CellController * | GetController (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< DbGridColumn > | CreateColumn (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 DbGridRowRef & | GetEmptyRow () const |
const DbGridRowRef & | GetSeekRow () const |
const DbGridRowRef & | GetPaintRow () 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 () |
BrowserHeader * | GetHeaderBar () const |
virtual VclPtr< BrowserHeader > | CreateHeaderBar (BrowseBox *pParent) override |
virtual VclPtr< BrowserHeader > | imp_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 CellController * | GetController (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::IAccessibleFactory & | getAccessibleFactory () |
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< BrowserHeader > | CreateHeaderBar (BrowseBox *pParent) |
void | SetHeaderBar (BrowserHeader *) |
tools::Long | CalcReverseZoom (tools::Long nVal) const |
const DataFlavorExVector & | GetDataFlavors () const |
bool | IsDropFormatSupported (SotClipboardFormatId nFormat) const |
void | DisposeAccessible () |
virtual void | ImplStartTracking () |
virtual void | ImplEndTracking () |
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 | |
FmXGridPeer * | m_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 | |
MultiSelection * | pSel |
sal_Int32 | nSel |
Static Public Attributes inherited from BrowseBox | |
static const sal_uInt16 | HandleColumnId |
Protected Attributes inherited from DbGridControl | |
std::unique_ptr< CursorWrapper > | m_pDataCursor |
std::unique_ptr< CursorWrapper > | m_pSeekCursor |
bool | m_bUpdating: 1 |
Protected Attributes inherited from svt::EditBrowseBox | |
VclPtr< BrowserHeader > | pHeader |
Protected Attributes inherited from BrowseBox | |
bool | m_bNavigationBar |
Definition at line 90 of file fmgridcl.hxx.
FmGridControl::FmGridControl | ( | const css::uno::Reference< css::uno::XComponentContext > & | , |
vcl::Window * | pParent, | ||
FmXGridPeer * | _pPeer, | ||
WinBits | nBits | ||
) |
Definition at line 1056 of file fmgridcl.cxx.
References BROWSER_INVALIDID, and BrowseBox::EnableInteractiveRowHeight().
|
overrideprotectedvirtual |
Reimplemented from DbGridControl.
Definition at line 1545 of file fmgridcl.cxx.
References DbGridControl::BeginCursorAction(), m_pPeer, and FmXGridPeer::stopCursorListening().
Referenced by DeleteSelectedRows().
|
overrideprotectedvirtual |
Reimplemented from DbGridControl.
Definition at line 1539 of file fmgridcl.cxx.
References FmXGridPeer::CellModified(), DbGridControl::CellModified(), and GetPeer().
|
overrideprotectedvirtual |
Reimplemented from DbGridControl.
Definition at line 1557 of file fmgridcl.cxx.
References Any, DbGridControl::ColumnMoved(), DBG_ASSERT, DbGridControl::GetColumns(), DbGridColumn::getModel(), DbGridControl::GetModelColumnPos(), GetPeer(), i, isColumnSelected(), m_bInColumnMove, markColumn(), nId, and DbGridColumn::setModel().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1521 of file fmgridcl.cxx.
References Any, BrowseBox::CalcReverseZoom(), svt::EditBrowseBox::ColumnResized(), FM_PROP_WIDTH, DbGridControl::GetColumns(), BrowseBox::GetColumnWidth(), DbGridColumn::getModel(), DbGridControl::GetModelColumnPos(), nId, and X.
|
overrideprotectedvirtual |
Reimplemented from DbGridControl.
Definition at line 1071 of file fmgridcl.cxx.
References DbGridControl::Command(), BrowseBox::FirstSelectedColumn(), BrowseBox::GetColumnId(), CommandEvent::GetCommand(), BrowseBox::GetFieldRectPixel(), svt::EditBrowseBox::GetHeaderBar(), BrowseBox::GetSelectColumnCount(), DbGridControl::IsDesignMode(), CommandEvent::IsMouseEvent(), tools::Rectangle::TopCenter(), and FmGridHeader::triggerColumnContextMenu().
bool FmGridControl::commit | ( | ) |
Definition at line 1434 of file fmgridcl.cxx.
References svt::EditBrowseBox::Controller(), DbGridControl::IsUpdating(), and DbGridControl::SaveModified().
|
overrideprotectedvirtual |
Reimplemented from DbGridControl.
Definition at line 1161 of file fmgridcl.cxx.
References svt::EditBrowseBox::ActivateCell(), DbGridControl::AdjustDataSource(), aEvent, Any, CursorWrapper::beforeFirst(), BeginCursorAction(), EndCursorAction(), Exception, CursorWrapper::first(), BrowseBox::FirstSelectedRow(), FM_PROP_ROWCOUNT, FMURL_CONFIRM_DELETION, DbGridControl::GetCurrentPos(), DbGridControl::GetCurrentRow(), DbGridControl::getDataSource(), DbGridControl::GetEmptyRow(), GetPeer(), BrowseBox::GetRowCount(), DbGridControl::GetSeekPos(), DbGridControl::GetSeekRow(), BrowseBox::GetSelection(), getSelectionBookmarks(), BrowseBox::GetSelectRowCount(), DbGridControl::GetTotalCount(), i, MultiSelection::IsAllSelected(), DbGridControl::IsCurrentAppending(), DbGridControl::IsInsertionRow(), BrowseBox::IsRowSelected(), BrowseBox::LastSelectedRow(), DbGridControl::m_pDataCursor, DbGridControl::m_pSeekCursor, CursorWrapper::moveToBookmark(), CursorWrapper::next(), CursorWrapper::refreshRow(), DbGridControl::SeekCursor(), BrowseBox::SelectAll(), BrowseBox::SelectRow(), BrowseBox::SetNoSelection(), DbGridControl::SetSeekPos(), BrowseBox::SetUpdateMode(), TOOLS_WARN_EXCEPTION, and xDispatch.
|
overrideprotectedvirtual |
Reimplemented from DbGridControl.
Definition at line 1551 of file fmgridcl.cxx.
References DbGridControl::EndCursorAction(), m_pPeer, and FmXGridPeer::startCursorListening().
Referenced by DeleteSelectedRows().
|
overridevirtual |
return the description of the specified object.
eObjType | The type to ask for |
_nPosition | The position of a tablecell (index position), header bar column/row cell |
Reimplemented from BrowseBox.
Definition at line 1951 of file fmgridcl.cxx.
References FM_PROP_DESCRIPTION, FM_PROP_HELPTEXT, BrowseBox::GetAccessibleObjectDescription(), DbGridControl::GetModelColumnPos(), and GetPeer().
|
overridevirtual |
return the name of the specified object.
eObjType | The type to ask for |
_nPosition | The position of a tablecell (index position), header bar column/row cell |
Reimplemented from BrowseBox.
Definition at line 1925 of file fmgridcl.cxx.
References FM_PROP_LABEL, FM_PROP_NAME, BrowseBox::GetAccessibleObjectName(), DbGridControl::GetModelColumnPos(), and GetPeer().
|
inlineprotected |
Definition at line 183 of file fmgridcl.hxx.
Referenced by CellModified(), ColumnMoved(), DeleteSelectedRows(), GetAccessibleObjectDescription(), GetAccessibleObjectName(), HideColumn(), InitColumnsByFields(), isColumnSelected(), KeyInput(), RowHeightChanged(), Select(), SetDesignMode(), and ShowColumn().
|
inline |
Definition at line 127 of file fmgridcl.hxx.
Definition at line 1828 of file fmgridcl.cxx.
References Any, BROWSER_ENDOFSELECTION, DBG_ASSERT, BrowseBox::FirstSelectedRow(), DbGridControl::GetSeekRow(), BrowseBox::GetSelectRowCount(), i, DbGridControl::IsInsertionRow(), DbGridControl::m_pSeekCursor, BrowseBox::NextSelectedRow(), DbGridControl::SeekCursor(), BrowseBox::SelectRow(), and BrowseBox::SetUpdateMode().
Referenced by DeleteSelectedRows().
|
overrideprotectedvirtual |
hide a column
Reimplemented from DbGridControl.
Definition at line 1746 of file fmgridcl.cxx.
References FmXGridPeer::columnHidden(), DbGridControl::GetColumns(), DbGridControl::GetModelColumnPos(), GetPeer(), DbGridControl::HideColumn(), DbGridColumn::IsHidden(), m_nMarkedColumnId, nId, and nPos.
Referenced by InitColumnsByModels().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1461 of file fmgridcl.cxx.
References VclPtr< class reference_type >::Create(), and DBG_ASSERT.
|
staticprotected |
Definition at line 1650 of file fmgridcl.cxx.
References DbGridColumn::CreateControl(), DBG_ASSERT, FM_PROP_BOUNDFIELD, FM_PROP_CONTROLSOURCE, FM_PROP_FIELDTYPE, getColumnTypeByModelName(), i, nDataType, DbGridColumn::setModel(), DbGridColumn::SetObject(), and u.
Referenced by FmXGridPeer::elementReplaced(), and InitColumnsByFields().
|
overrideprotectedvirtual |
Implements DbGridControl.
Definition at line 1722 of file fmgridcl.cxx.
References DbGridControl::GetColumns(), GetPeer(), i, and InitColumnByField().
|
protected |
Definition at line 1598 of file fmgridcl.cxx.
References aName, Any, DbGridControl::AppendColumn(), FM_PROP_HIDDEN, FM_PROP_LABEL, FM_PROP_WIDTH, DbGridControl::GetColumnIdFromModelPos(), DbGridControl::GetColumns(), DbGridControl::GetModelColCount(), comphelper::getString(), HideColumn(), i, DbGridControl::InsertHandleColumn(), DbGridControl::RemoveColumns(), DbGridColumn::setModel(), and BrowseBox::SetUpdateMode().
void FmGridControl::inserted | ( | ) |
Definition at line 1449 of file fmgridcl.cxx.
References DbGridControl::GetCurrentRow(), tools::SvRef< typename T >::is(), and DbGridControl::m_pDataCursor.
bool FmGridControl::isColumnMarked | ( | sal_uInt16 | nId | ) | const |
Definition at line 1488 of file fmgridcl.cxx.
References m_nMarkedColumnId, and nId.
|
protected |
returns if a column is selected
_pColumn | The column to compare with. |
Definition at line 1762 of file fmgridcl.cxx.
References DbGridColumn::getModel(), GetPeer(), and xColumn.
Referenced by ColumnMoved(), and ShowColumn().
|
inlineprotected |
Definition at line 163 of file fmgridcl.hxx.
|
overridevirtual |
Reimplemented from DbGridControl.
Definition at line 2050 of file fmgridcl.cxx.
References Exception, vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), GetPeer(), BrowseBox::GetSelectColumnCount(), DbGridControl::IsDesignMode(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsShift(), KEY_DELETE, KEY_ESCAPE, DbGridControl::KeyInput(), m_nCurrentSelectedColumn, and TOOLS_WARN_EXCEPTION.
void FmGridControl::markColumn | ( | sal_uInt16 | nId | ) |
Definition at line 1467 of file fmgridcl.cxx.
References BROWSER_INVALIDID, svt::EditBrowseBox::GetHeaderBar(), m_nMarkedColumnId, and nId.
Referenced by ColumnMoved(), SetDesignMode(), and ShowColumn().
void FmGridControl::positioned | ( | ) |
Definition at line 1427 of file fmgridcl.cxx.
References DbGridControl::implAdjustInSolarThread(), and SAL_INFO.
void FmGridControl::propertyChange | ( | const css::beans::PropertyChangeEvent & | evt | ) |
Definition at line 1097 of file fmgridcl.cxx.
References Clean, CompareBookmark(), FM_PROP_ISMODIFIED, FM_PROP_ISNEW, FM_PROP_ROWCOUNT, DbGridControl::GetCurrentPos(), DbGridControl::GetCurrentRow(), DbGridControl::getDataSource(), DbGridControl::implAdjustInSolarThread(), tools::SvRef< typename T >::is(), Modified, and DbGridControl::RowModified().
|
overrideprotectedvirtual |
Reimplemented from BrowseBox.
Definition at line 1493 of file fmgridcl.cxx.
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1500 of file fmgridcl.cxx.
References Any, BrowseBox::CalcReverseZoom(), DBG_ASSERT, Exception, FM_PROP_ROWHEIGHT, BrowseBox::GetDataRowHeight(), GetPeer(), svt::EditBrowseBox::RowHeightChanged(), TOOLS_WARN_EXCEPTION, xModel, and Y.
|
overrideprotectedvirtual |
Reimplemented from DbGridControl.
Definition at line 1988 of file fmgridcl.cxx.
References Any, Exception, DbGridControl::GetColumnIdFromViewPos(), FmXGridPeer::getColumns(), BrowseBox::GetColumnSelection(), DbGridControl::GetModelColumnPos(), GetPeer(), MultiSelection::GetSelectCount(), m_bSelecting, m_nCurrentSelectedColumn, SAL_MAX_UINT16, DbGridControl::Select(), and xColumn.
|
protected |
Definition at line 1794 of file fmgridcl.cxx.
References Any, Exception, DbGridControl::m_pSeekCursor, BrowseBox::SelectRow(), and BrowseBox::SetNoSelection().
|
overrideprotectedvirtual |
Reimplemented from DbGridControl.
Definition at line 1125 of file fmgridcl.cxx.
References Any, DbGridControl::GetColumnIdFromModelPos(), GetPeer(), i, DbGridControl::IsDesignMode(), markColumn(), DbGridControl::SetDesignMode(), and xColumn.
|
overrideprotectedvirtual |
show a column
Reimplemented from DbGridControl.
Definition at line 1777 of file fmgridcl.cxx.
References FmXGridPeer::columnVisible(), DbGridControl::GetColumns(), DbGridControl::GetModelColumnPos(), GetPeer(), isColumnSelected(), DbGridColumn::IsHidden(), markColumn(), nId, nPos, and DbGridControl::ShowColumn().
|
friend |
Definition at line 93 of file fmgridcl.hxx.
|
friend |
Definition at line 94 of file fmgridcl.hxx.
|
private |
Definition at line 100 of file fmgridcl.hxx.
Referenced by ColumnMoved().
|
private |
Definition at line 99 of file fmgridcl.hxx.
Referenced by Select().
|
private |
Definition at line 97 of file fmgridcl.hxx.
Referenced by KeyInput(), and Select().
|
private |
Definition at line 98 of file fmgridcl.hxx.
Referenced by HideColumn(), isColumnMarked(), and markColumn().
|
private |
Definition at line 96 of file fmgridcl.hxx.
Referenced by BeginCursorAction(), and EndCursorAction().