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

#include <TEditControl.hxx>

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

Classes

class  ClipboardInvalidator
 

Public Member Functions

 OTableEditorCtrl (vcl::Window *pParentWin, OTableDesignView *pView)
 
virtual ~OTableEditorCtrl () override
 
virtual void dispose () override
 
virtual bool CursorMoving (sal_Int32 nNewRow, sal_uInt16 nNewCol) override
 
SfxUndoManagerGetUndoManager () const
 
void SetDescrWin (OTableFieldDescWin *pWin)
 
void SaveCurRow ()
 
void SwitchType (const TOTypeInfoSP &_pType)
 
void DisplayData (sal_Int32 nRow)
 force displaying of the given row More...
 
virtual void SetCellData (sal_Int32 nRow, sal_uInt16 nColId, const TOTypeInfoSP &_pTypeInfo) override
 
virtual void SetCellData (sal_Int32 nRow, sal_uInt16 nColId, const css::uno::Any &_rSaveData) override
 
virtual css::uno::Any GetCellData (sal_Int32 nRow, sal_uInt16 nColId) override
 
virtual void SetControlText (sal_Int32 nRow, sal_uInt16 nColId, const OUString &rText) override
 
virtual OTableDesignViewGetView () const override
 
std::vector< std::shared_ptr< OTableRow > > * GetRowList ()
 
const std::shared_ptr< OTableRow > & GetActRow () const
 
void CellModified (sal_Int32 nRow, sal_uInt16 nColId)
 
void SetReadOnly (bool bRead)
 
virtual void Init () override
 
virtual void DeactivateCell (bool bUpdate=true) override
 
bool IsCutAllowed ()
 
bool IsCopyAllowed ()
 
bool IsPasteAllowed () const
 
bool IsReadOnly () const
 
OFieldDescriptionGetFieldDescr (sal_Int32 nRow)
 
virtual bool PreNotify (NotifyEvent &rNEvt) override
 
virtual bool isCutAllowed () override
 
virtual bool isCopyAllowed () override
 
virtual bool isPasteAllowed () override
 
virtual void cut () override
 
virtual void copy () override
 
virtual void paste () override
 
- Public Member Functions inherited from dbaui::OTableRowView
 OTableRowView (vcl::Window *pParent)
 
virtual void SetCellData (sal_Int32 nRow, sal_uInt16 nColId, const TOTypeInfoSP &_pTypeInfo)=0
 
virtual void SetCellData (sal_Int32 nRow, sal_uInt16 nColId, const css::uno::Any &_rNewData)=0
 
virtual css::uno::Any GetCellData (sal_Int32 nRow, sal_uInt16 nColId)=0
 
virtual void SetControlText (sal_Int32 nRow, sal_uInt16 nColId, const OUString &rText)=0
 
virtual OTableDesignViewGetView () const =0
 
sal_uInt16 GetCurUndoActId () const
 
virtual void cut () override
 
virtual void copy () override
 
virtual void paste () override
 
- 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
 
virtual bool isCutAllowed ()=0
 
virtual bool isCopyAllowed ()=0
 
virtual bool isPasteAllowed ()=0
 
virtual void copy ()=0
 
virtual void cut ()=0
 
virtual void paste ()=0
 

Protected Member Functions

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

Private Types

enum  ChildFocusState {
  HELPTEXT ,
  DESCRIPTION ,
  NAME ,
  ROW ,
  NONE
}
 

Private Member Functions

 DECL_LINK (DelayedCut, void *, void)
 
 DECL_LINK (DelayedPaste, void *, void)
 
 DECL_LINK (DelayedDelete, void *, void)
 
 DECL_LINK (DelayedInsNewRows, void *, void)
 
 DECL_LINK (InvalidateFieldType, void *, void)
 
void InitCellController ()
 
sal_Int32 HasFieldName (std::u16string_view rFieldName)
 
OUString GenerateName (const OUString &rName)
 
bool SetDataPtr (sal_Int32 nRow)
 
void SaveData (sal_Int32 nRow, sal_uInt16 nColumnId)
 
void AdjustFieldDescription (OFieldDescription *_pFieldDesc, MultiSelection &_rMultiSel, sal_Int32 _nPos, bool _bSet, bool _bPrimaryKey)
 AdjustFieldDescription set the needed values for the description. More...
 
void InvalidateFeatures ()
 InvalidateFeatures invalidates the slots SID_UNDO | SID_REDO | SID_SAVEDOC. More...
 
void resetType ()
 

Private Attributes

std::vector< std::shared_ptr< OTableRow > > * m_pRowList
 
VclPtr< OTableDesignViewm_pView
 
VclPtr< OSQLNameEditControlpNameCell
 
VclPtr<::svt::ListBoxControlpTypeCell
 
VclPtr<::svt::EditControlpHelpTextCell
 
VclPtr<::svt::EditControlpDescrCell
 
OTableFieldDescWinpDescrWin
 
std::shared_ptr< OTableRowpActRow
 
ImplSVEventnCutEvent
 
ImplSVEventnPasteEvent
 
ImplSVEventnDeleteEvent
 
ImplSVEventnInsNewRowsEvent
 
ImplSVEventnInvalidateTypeEvent
 
ChildFocusState m_eChildFocus
 
tools::Long nOldDataPos
 
bool bReadOnly
 
ClipboardInvalidator m_aInvalidate
 

Friends

class OTableEditorCtrl::ClipboardInvalidator
 

Additional Inherited Members

- Public Types inherited from svt::EditBrowseBox
enum  RowStatus
 
- Public Attributes inherited from svt::EditBrowseBox
 CLEAN
 
 CURRENT
 
 CURRENTNEW
 
 MODIFIED
 
 NEW
 
 DELETED
 
 PRIMARYKEY
 
 CURRENT_PRIMARYKEY
 
 FILTER
 
 HEADERFOOTER
 
- Public Attributes inherited from BrowseBox
MultiSelectionpSel
 
sal_Int32 nSel
 
- Static Public Attributes inherited from BrowseBox
static const sal_uInt16 HandleColumnId
 
- Static Protected Member Functions inherited from svt::EditBrowseBox
static void ResizeController (CellControllerRef const &rController, const tools::Rectangle &)
 
- Protected Attributes inherited from dbaui::OTableRowView
tools::Long m_nDataPos
 currently needed row More...
 
tools::Long m_nCurrentPos
 current position of selected column More...
 
- Protected Attributes inherited from svt::EditBrowseBox
VclPtr< BrowserHeaderpHeader
 
- Protected Attributes inherited from BrowseBox
bool m_bNavigationBar
 

Detailed Description

Definition at line 33 of file TEditControl.hxx.

Member Enumeration Documentation

◆ ChildFocusState

Enumerator
HELPTEXT 
DESCRIPTION 
NAME 
ROW 
NONE 

Definition at line 35 of file TEditControl.hxx.

Constructor & Destructor Documentation

◆ OTableEditorCtrl()

OTableEditorCtrl::OTableEditorCtrl ( vcl::Window pParentWin,
OTableDesignView pView 
)
explicit

◆ ~OTableEditorCtrl()

OTableEditorCtrl::~OTableEditorCtrl ( )
overridevirtual

Definition at line 247 of file TEditControl.cxx.

Member Function Documentation

◆ AdjustFieldDescription()

void OTableEditorCtrl::AdjustFieldDescription ( OFieldDescription _pFieldDesc,
MultiSelection _rMultiSel,
sal_Int32  _nPos,
bool  _bSet,
bool  _bPrimaryKey 
)
private

AdjustFieldDescription set the needed values for the description.

Parameters
_pFieldDescthe field description where to set the values
_rMultiSelcontains the positions which changed for undo/redo
_nPosthe current position
_bSetshould a key be set
_bPrimaryKeywhich value should the pkey have

Definition at line 1507 of file TEditControl.cxx.

References _nPos, Any, dbaui::OTableFieldDescWin::DisplayData(), dbaui::OTableDesignView::getController(), dbaui::OFieldDescription::getTypeInfo(), GetView(), MultiSelection::Insert(), dbaui::OFieldDescription::IsAutoIncrement(), dbaui::OTableController::isAutoIncrementPrimaryKey(), pDescrWin, MultiSelection::Select(), dbaui::OFieldDescription::SetAutoIncrement(), dbaui::OFieldDescription::SetControlDefault(), dbaui::OFieldDescription::SetIsNullable(), and dbaui::OFieldDescription::SetPrimaryKey().

Referenced by SetPrimaryKey().

◆ CellModified() [1/2]

virtual void dbaui::OTableEditorCtrl::CellModified ( )
overrideprotectedvirtual

◆ CellModified() [2/2]

void OTableEditorCtrl::CellModified ( sal_Int32  nRow,
sal_uInt16  nColId 
)

◆ ClearModified()

void OTableEditorCtrl::ClearModified ( )
protected

Definition at line 239 of file TEditControl.cxx.

References pDescrCell, pHelpTextCell, pNameCell, and pTypeCell.

Referenced by InitCellController().

◆ Command()

void OTableEditorCtrl::Command ( const CommandEvent rEvt)
overrideprotectedvirtual

◆ copy()

void OTableEditorCtrl::copy ( )
overridevirtual

◆ CopyRows()

void OTableEditorCtrl::CopyRows ( )
overrideprotectedvirtual

◆ CursorMoved()

void OTableEditorCtrl::CursorMoved ( )
overrideprotectedvirtual

◆ CursorMoving()

bool OTableEditorCtrl::CursorMoving ( sal_Int32  nNewRow,
sal_uInt16  nNewCol 
)
overridevirtual

◆ cut()

void OTableEditorCtrl::cut ( )
overridevirtual

◆ DeactivateCell()

void OTableEditorCtrl::DeactivateCell ( bool  bUpdate = true)
overridevirtual

◆ DECL_LINK() [1/5]

dbaui::OTableEditorCtrl::DECL_LINK ( DelayedCut  ,
void *  ,
void   
)
private

◆ DECL_LINK() [2/5]

dbaui::OTableEditorCtrl::DECL_LINK ( DelayedDelete  ,
void *  ,
void   
)
private

◆ DECL_LINK() [3/5]

dbaui::OTableEditorCtrl::DECL_LINK ( DelayedInsNewRows  ,
void *  ,
void   
)
private

◆ DECL_LINK() [4/5]

dbaui::OTableEditorCtrl::DECL_LINK ( DelayedPaste  ,
void *  ,
void   
)
private

◆ DECL_LINK() [5/5]

dbaui::OTableEditorCtrl::DECL_LINK ( InvalidateFieldType  ,
void *  ,
void   
)
private

◆ DeleteRows()

void OTableEditorCtrl::DeleteRows ( )
overrideprotectedvirtual

◆ DisplayData()

void OTableEditorCtrl::DisplayData ( sal_Int32  nRow)

◆ dispose()

void OTableEditorCtrl::dispose ( void  )
overridevirtual

◆ GenerateName()

OUString OTableEditorCtrl::GenerateName ( const OUString &  rName)
private

Definition at line 743 of file TEditControl.cxx.

References dbaui::OTableDesignView::getController(), GetView(), HasFieldName(), and i.

Referenced by InsertRows().

◆ GetActRow()

const std::shared_ptr< OTableRow > & dbaui::OTableEditorCtrl::GetActRow ( ) const
inline

Definition at line 146 of file TEditControl.hxx.

References pActRow.

Referenced by DeactivateCell(), IsInsertNewAllowed(), and dbaui::OTableFieldControl::IsReadOnly().

◆ GetCellData()

Any OTableEditorCtrl::GetCellData ( sal_Int32  nRow,
sal_uInt16  nColId 
)
overridevirtual

◆ GetCellText()

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

Reimplemented from BrowseBox.

Definition at line 1057 of file TEditControl.cxx.

References GetCellData().

Referenced by GetTotalCellWidth(), and PaintCell().

◆ GetController()

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

◆ GetFieldDescr()

OFieldDescription * OTableEditorCtrl::GetFieldDescr ( sal_Int32  nRow)

Definition at line 1069 of file TEditControl.cxx.

References m_pRowList.

Referenced by CellModified(), DisplayData(), GetCellData(), SaveCurRow(), and SwitchType().

◆ GetRowList()

std::vector< std::shared_ptr< OTableRow > > * dbaui::OTableEditorCtrl::GetRowList ( )
inline

Definition at line 144 of file TEditControl.hxx.

References m_pRowList.

Referenced by dbaui::OTableDesignView::reSync().

◆ GetRowStatus()

EditBrowseBox::RowStatus OTableEditorCtrl::GetRowStatus ( sal_Int32  nRow) const
overrideprotectedvirtual

◆ GetTotalCellWidth()

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

Reimplemented from svt::EditBrowseBox.

Definition at line 1064 of file TEditControl.cxx.

References GetCellText().

◆ GetUndoManager()

SfxUndoManager & OTableEditorCtrl::GetUndoManager ( ) const

◆ GetView()

OTableDesignView * OTableEditorCtrl::GetView ( ) const
overridevirtual

◆ HasFieldName()

sal_Int32 OTableEditorCtrl::HasFieldName ( std::u16string_view  rFieldName)
private

◆ Init()

void OTableEditorCtrl::Init ( void  )
overridevirtual

◆ InitCellController()

void OTableEditorCtrl::InitCellController ( )
private

◆ InitController()

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

◆ InsertNewRows()

void OTableEditorCtrl::InsertNewRows ( sal_Int32  nRow)
overrideprotectedvirtual

◆ InsertRows()

void OTableEditorCtrl::InsertRows ( sal_Int32  nRow)
overrideprotectedvirtual

◆ InvalidateFeatures()

void OTableEditorCtrl::InvalidateFeatures ( )
private

InvalidateFeatures invalidates the slots SID_UNDO | SID_REDO | SID_SAVEDOC.

Definition at line 707 of file TEditControl.cxx.

References dbaui::OTableDesignView::getController(), and GetView().

Referenced by CellModified(), DeleteRows(), InsertNewRows(), InsertRows(), and SetPrimaryKey().

◆ IsCopyAllowed()

bool OTableEditorCtrl::IsCopyAllowed ( )

◆ isCopyAllowed()

virtual bool dbaui::OTableEditorCtrl::isCopyAllowed ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 164 of file TEditControl.hxx.

References IsCopyAllowed().

◆ IsCutAllowed()

bool OTableEditorCtrl::IsCutAllowed ( )

◆ isCutAllowed()

virtual bool dbaui::OTableEditorCtrl::isCutAllowed ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 163 of file TEditControl.hxx.

References IsCutAllowed().

◆ IsDeleteAllowed()

bool OTableEditorCtrl::IsDeleteAllowed ( )
overrideprotectedvirtual

◆ IsInsertNewAllowed()

bool OTableEditorCtrl::IsInsertNewAllowed ( sal_Int32  nRow)
overrideprotectedvirtual

◆ IsPasteAllowed()

bool OTableEditorCtrl::IsPasteAllowed ( ) const

◆ isPasteAllowed()

virtual bool dbaui::OTableEditorCtrl::isPasteAllowed ( )
inlineoverridevirtual

Implements dbaui::IClipboardTest.

Definition at line 165 of file TEditControl.hxx.

References IsPasteAllowed().

◆ IsPrimaryKey()

bool OTableEditorCtrl::IsPrimaryKey ( )
protected

Definition at line 1579 of file TEditControl.cxx.

References BrowseBox::GetSelectRowCount(), BrowseBox::IsRowSelected(), and m_pRowList.

Referenced by Command().

◆ IsPrimaryKeyAllowed()

bool OTableEditorCtrl::IsPrimaryKeyAllowed ( )
overrideprotectedvirtual

◆ IsReadOnly()

bool dbaui::OTableEditorCtrl::IsReadOnly ( ) const
inline

Definition at line 156 of file TEditControl.hxx.

References bReadOnly.

Referenced by Command(), DeactivateCell(), GetController(), IsInsertNewAllowed(), and SetReadOnly().

◆ PaintCell()

void OTableEditorCtrl::PaintCell ( OutputDevice rDev,
const tools::Rectangle rRect,
sal_uInt16  nColumnId 
) const
overrideprotectedvirtual

◆ paste()

void OTableEditorCtrl::paste ( )
overridevirtual

◆ PreNotify()

bool OTableEditorCtrl::PreNotify ( NotifyEvent rNEvt)
overridevirtual

◆ resetType()

void OTableEditorCtrl::resetType ( )
private

Definition at line 693 of file TEditControl.cxx.

References GetView(), nPos, pTypeCell, and SwitchType().

Referenced by CellModified(), and SaveModified().

◆ SaveCurRow()

void OTableEditorCtrl::SaveCurRow ( )

◆ SaveData()

void OTableEditorCtrl::SaveData ( sal_Int32  nRow,
sal_uInt16  nColumnId 
)
private

◆ SaveModified()

bool OTableEditorCtrl::SaveModified ( )
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 588 of file TEditControl.cxx.

References FIELD_TYPE, BrowseBox::GetCurColumnId(), and resetType().

Referenced by SaveCurRow().

◆ SeekRow()

bool OTableEditorCtrl::SeekRow ( sal_Int32  nRow)
overrideprotectedvirtual

Reimplemented from svt::EditBrowseBox.

Definition at line 293 of file TEditControl.cxx.

References dbaui::OTableRowView::m_nCurrentPos, svt::EditBrowseBox::SeekRow(), and SetDataPtr().

Referenced by InitController().

◆ SetCellData() [1/2]

virtual void dbaui::OTableEditorCtrl::SetCellData ( sal_Int32  nRow,
sal_uInt16  nColId,
const css::uno::Any &  _rSaveData 
)
overridevirtual

Implements dbaui::OTableRowView.

◆ SetCellData() [2/2]

virtual void dbaui::OTableEditorCtrl::SetCellData ( sal_Int32  nRow,
sal_uInt16  nColId,
const TOTypeInfoSP _pTypeInfo 
)
overridevirtual

Implements dbaui::OTableRowView.

◆ SetControlText()

void OTableEditorCtrl::SetControlText ( sal_Int32  nRow,
sal_uInt16  nColId,
const OUString &  rText 
)
overridevirtual

◆ SetDataPtr()

bool OTableEditorCtrl::SetDataPtr ( sal_Int32  nRow)
private

◆ SetDescrWin()

void dbaui::OTableEditorCtrl::SetDescrWin ( OTableFieldDescWin pWin)
inline

Definition at line 125 of file TEditControl.hxx.

References dbaui::OTableFieldDescWin::DisplayData(), pActRow, and pDescrWin.

◆ SetPrimaryKey()

void OTableEditorCtrl::SetPrimaryKey ( bool  bSet)
protected

◆ SetReadOnly()

void OTableEditorCtrl::SetReadOnly ( bool  bRead)

◆ SwitchType()

void OTableEditorCtrl::SwitchType ( const TOTypeInfoSP _pType)

Friends And Related Function Documentation

◆ OTableEditorCtrl::ClipboardInvalidator

Definition at line 82 of file TEditControl.hxx.

Member Data Documentation

◆ bReadOnly

bool dbaui::OTableEditorCtrl::bReadOnly
private

Definition at line 64 of file TEditControl.hxx.

Referenced by DeactivateCell(), IsReadOnly(), and SetReadOnly().

◆ m_aInvalidate

ClipboardInvalidator dbaui::OTableEditorCtrl::m_aInvalidate
private

Definition at line 84 of file TEditControl.hxx.

Referenced by dispose().

◆ m_eChildFocus

ChildFocusState dbaui::OTableEditorCtrl::m_eChildFocus
private

Definition at line 60 of file TEditControl.hxx.

Referenced by copy(), cut(), IsCopyAllowed(), IsCutAllowed(), IsPasteAllowed(), paste(), and PreNotify().

◆ m_pRowList

std::vector< std::shared_ptr<OTableRow> >* dbaui::OTableEditorCtrl::m_pRowList
private

◆ m_pView

VclPtr<OTableDesignView> dbaui::OTableEditorCtrl::m_pView
private

Definition at line 46 of file TEditControl.hxx.

Referenced by dispose(), and GetView().

◆ nCutEvent

ImplSVEvent* dbaui::OTableEditorCtrl::nCutEvent
private

Definition at line 55 of file TEditControl.hxx.

Referenced by cut(), and dispose().

◆ nDeleteEvent

ImplSVEvent* dbaui::OTableEditorCtrl::nDeleteEvent
private

Definition at line 57 of file TEditControl.hxx.

Referenced by Command(), and dispose().

◆ nInsNewRowsEvent

ImplSVEvent* dbaui::OTableEditorCtrl::nInsNewRowsEvent
private

Definition at line 58 of file TEditControl.hxx.

Referenced by Command(), and dispose().

◆ nInvalidateTypeEvent

ImplSVEvent* dbaui::OTableEditorCtrl::nInvalidateTypeEvent
private

Definition at line 59 of file TEditControl.hxx.

Referenced by CellModified(), and dispose().

◆ nOldDataPos

tools::Long dbaui::OTableEditorCtrl::nOldDataPos
private

Definition at line 62 of file TEditControl.hxx.

Referenced by CursorMoved(), CursorMoving(), and DeleteRows().

◆ nPasteEvent

ImplSVEvent* dbaui::OTableEditorCtrl::nPasteEvent
private

Definition at line 56 of file TEditControl.hxx.

Referenced by dispose(), and paste().

◆ pActRow

std::shared_ptr<OTableRow> dbaui::OTableEditorCtrl::pActRow
private

◆ pDescrCell

VclPtr<::svt::EditControl> dbaui::OTableEditorCtrl::pDescrCell
private

◆ pDescrWin

OTableFieldDescWin* dbaui::OTableEditorCtrl::pDescrWin
private

◆ pHelpTextCell

VclPtr<::svt::EditControl> dbaui::OTableEditorCtrl::pHelpTextCell
private

◆ pNameCell

VclPtr<OSQLNameEditControl> dbaui::OTableEditorCtrl::pNameCell
private

◆ pTypeCell

VclPtr<::svt::ListBoxControl> dbaui::OTableEditorCtrl::pTypeCell
private

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