LibreOffice Module dbaccess (master) 1
|
#include <TEditControl.hxx>
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 |
SfxUndoManager & | GetUndoManager () 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 OTableDesignView * | GetView () 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 |
OFieldDescription * | GetFieldDescr (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 OTableDesignView * | GetView () 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 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 |
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::CellController * | GetController (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 () |
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 () |
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< OTableDesignView > | m_pView |
VclPtr< OSQLNameEditControl > | pNameCell |
VclPtr<::svt::ListBoxControl > | pTypeCell |
VclPtr<::svt::EditControl > | pHelpTextCell |
VclPtr<::svt::EditControl > | pDescrCell |
OTableFieldDescWin * | pDescrWin |
std::shared_ptr< OTableRow > | pActRow |
ImplSVEvent * | nCutEvent |
ImplSVEvent * | nPasteEvent |
ImplSVEvent * | nDeleteEvent |
ImplSVEvent * | nInsNewRowsEvent |
ImplSVEvent * | nInvalidateTypeEvent |
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 | |
MultiSelection * | pSel |
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< BrowserHeader > | pHeader |
Protected Attributes inherited from BrowseBox | |
bool | m_bNavigationBar |
Definition at line 33 of file TEditControl.hxx.
|
private |
Enumerator | |
---|---|
HELPTEXT | |
DESCRIPTION | |
NAME | |
ROW | |
NONE |
Definition at line 35 of file TEditControl.hxx.
|
explicit |
Definition at line 128 of file TEditControl.cxx.
References dbaui::OTableDesignView::getController(), BrowseBox::GetDataWindow(), dbaui::OTableController::getRows(), GetView(), HID_CTL_TABLEEDIT, HID_TABDESIGN_BACKGROUND, dbaui::OTableRowView::m_nDataPos, m_pRowList, and SetHelpId().
|
overridevirtual |
Definition at line 247 of file TEditControl.cxx.
|
private |
AdjustFieldDescription set the needed values for the description.
_pFieldDesc | the field description where to set the values |
_rMultiSel | contains the positions which changed for undo/redo |
_nPos | the current position |
_bSet | should a key be set |
_bPrimaryKey | which 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().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Referenced by dbaui::OTableFieldControl::CellModified(), cut(), and paste().
void OTableEditorCtrl::CellModified | ( | sal_Int32 | nRow, |
sal_uInt16 | nColId | ||
) |
Definition at line 636 of file TEditControl.cxx.
References SfxUndoManager::AddUndoAction(), COLUMN_DESCRIPTION, DBA_RES, dbaui::OTableFieldDescWin::DisplayData(), SfxUndoManager::EnterListAction(), FIELD_NAME, FIELD_TYPE, dbaui::OTableDesignView::getController(), BrowseBox::GetCurRow(), GetFieldDescr(), dbaui::OTableController::getTypeInfo(), GetUndoManager(), GetView(), HELP_TEXT, InvalidateFeatures(), SfxUndoManager::LeaveListAction(), LINK, nInvalidateTypeEvent, pActRow, pDescrWin, Application::PostUserEvent(), resetType(), BrowseBox::RowModified(), SaveData(), and SetDataPtr().
|
protected |
Definition at line 239 of file TEditControl.cxx.
References pDescrCell, pHelpTextCell, pNameCell, and pTypeCell.
Referenced by InitCellController().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OTableRowView.
Definition at line 1343 of file TEditControl.cxx.
References dbaui::adjustBrowseBoxColumnWidth(), BROWSER_INVALIDID, dbaui::OTableRowView::Command(), copy(), Application::CreateBuilder(), cut(), BrowseBox::FirstSelectedColumn(), BrowseBox::FirstSelectedRow(), BrowseBox::GetColumnAtXPosPixel(), BrowseBox::GetColumnId(), CommandEvent::GetCommand(), BrowseBox::GetCurRow(), BrowseBox::GetFieldRectPixel(), CommandEvent::GetMousePosPixel(), weld::GetPopupParent(), BrowseBox::GetRowAtYPosPixel(), BrowseBox::GetSelectColumnCount(), BrowseBox::GetSelectRowCount(), HANDLE_ID, BrowseBox::IsColumnSelected(), IsCopyAllowed(), IsCutAllowed(), IsDeleteAllowed(), IsInsertNewAllowed(), CommandEvent::IsMouseEvent(), IsPasteAllowed(), IsPrimaryKey(), IsPrimaryKeyAllowed(), IsReadOnly(), BrowseBox::IsRowSelected(), LINK, dbaui::OTableRowView::m_nDataPos, nDeleteEvent, nInsNewRowsEvent, pActRow, paste(), pDescrWin, Application::PostUserEvent(), Application::RemoveUserEvent(), dbaui::OTableFieldDescWin::SaveData(), BrowseBox::SelectColumnId(), SetDataPtr(), SetPrimaryKey(), tools::Rectangle::TopCenter(), Point::X(), and Point::Y().
|
overridevirtual |
Reimplemented from dbaui::OTableRowView.
Definition at line 1220 of file TEditControl.cxx.
References dbaui::OTableRowView::copy(), weld::Entry::copy_clipboard(), DESCRIPTION, BrowseBox::GetSelectRowCount(), HELPTEXT, m_eChildFocus, NAME, pDescrCell, pHelpTextCell, and pNameCell.
Referenced by Command().
|
overrideprotectedvirtual |
Implements dbaui::OTableRowView.
Definition at line 714 of file TEditControl.cxx.
References BrowseBox::FirstSelectedRow(), BrowseBox::GetSelectRowCount(), dbaui::OTableRowView::m_nDataPos, BrowseBox::NextSelectedRow(), nIndex, pActRow, pData, pDescrWin, dbaui::OTableFieldDescWin::SaveData(), SetDataPtr(), and SFX_ENDOFSELECTION.
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 465 of file TEditControl.cxx.
References COLUMN_DESCRIPTION, svt::EditBrowseBox::CursorMoved(), FIELD_NAME, FIELD_TYPE, BrowseBox::GetCurRow(), HELP_TEXT, InitController(), dbaui::OTableRowView::m_nDataPos, and nOldDataPos.
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 605 of file TEditControl.cxx.
References svt::EditBrowseBox::CursorMoving(), dbaui::OTableFieldDescWin::DisplayData(), BrowseBox::GetCurRow(), svt::EditBrowseBox::InvalidateStatusCell(), dbaui::OTableRowView::m_nDataPos, nOldDataPos, pActRow, pDescrWin, dbaui::OTableFieldDescWin::SaveData(), and SetDataPtr().
|
overridevirtual |
Reimplemented from dbaui::OTableRowView.
Definition at line 1183 of file TEditControl.cxx.
References CellModified(), COLUMN_DESCRIPTION, DESCRIPTION, FIELD_NAME, GetView(), HELP_TEXT, HELPTEXT, LINK, m_eChildFocus, NAME, nCutEvent, pDescrCell, pHelpTextCell, pNameCell, Application::PostUserEvent(), Application::RemoveUserEvent(), ROW, and SaveData().
Referenced by Command().
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1653 of file TEditControl.cxx.
References bReadOnly, svt::EditBrowseBox::DeactivateCell(), GetActRow(), BrowseBox::GetCurRow(), IsReadOnly(), pDescrWin, SetDataPtr(), and dbaui::OTableFieldDescWin::SetReadOnly().
Referenced by DisplayData(), dbaui::OTableDesignView::reSync(), and SetReadOnly().
|
private |
|
private |
|
private |
|
private |
|
private |
|
overrideprotectedvirtual |
Implements dbaui::OTableRowView.
Definition at line 815 of file TEditControl.cxx.
References svt::EditBrowseBox::ActivateCell(), SfxUndoManager::AddUndoAction(), dbaui::OTableFieldDescWin::DisplayData(), BrowseBox::FirstSelectedRow(), dbaui::OTableDesignView::getController(), BrowseBox::GetCurRow(), BrowseBox::GetRowCount(), GetUndoManager(), GetView(), InvalidateFeatures(), svt::EditBrowseBox::InvalidateStatusCell(), dbaui::OTableRowView::m_nDataPos, m_pRowList, nIndex, nOldDataPos, pActRow, pDescrWin, BrowseBox::RowInserted(), BrowseBox::RowRemoved(), SetDataPtr(), and SFX_ENDOFSELECTION.
void OTableEditorCtrl::DisplayData | ( | sal_Int32 | nRow | ) |
force displaying of the given row
Definition at line 439 of file TEditControl.cxx.
References svt::EditBrowseBox::ActivateCell(), COLUMN_DESCRIPTION, DeactivateCell(), dbaui::OTableFieldDescWin::DisplayData(), FIELD_NAME, FIELD_TYPE, BrowseBox::GetCurColumnId(), dbaui::OTableDesignView::GetDescWin(), GetFieldDescr(), GetView(), BrowseBox::GoToRow(), HELP_TEXT, InitController(), svt::EditBrowseBox::IsEditing(), BrowseBox::RowModified(), and SetDataPtr().
Referenced by dbaui::OTableDesignView::initialize().
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 252 of file TEditControl.cxx.
References SfxUndoManager::Clear(), svt::EditBrowseBox::dispose(), GetUndoManager(), m_aInvalidate, m_pView, nCutEvent, nDeleteEvent, nInsNewRowsEvent, nInvalidateTypeEvent, nPasteEvent, pDescrCell, pDescrWin, pHelpTextCell, pNameCell, pTypeCell, Application::RemoveUserEvent(), and dbaui::OTableEditorCtrl::ClipboardInvalidator::Stop().
|
private |
Definition at line 743 of file TEditControl.cxx.
References dbaui::OTableDesignView::getController(), GetView(), HasFieldName(), and i.
Referenced by InsertRows().
|
inline |
Definition at line 146 of file TEditControl.hxx.
References pActRow.
Referenced by DeactivateCell(), IsInsertNewAllowed(), and dbaui::OTableFieldControl::IsReadOnly().
|
overridevirtual |
Implements dbaui::OTableRowView.
Definition at line 988 of file TEditControl.cxx.
References Any, dbaui::OTableFieldDescWin::BoolStringUI(), COLUMN_DESCRIPTION, DBA_RES, FIELD_NAME, FIELD_PROPERTY_AUTOINC, FIELD_PROPERTY_BOOL_DEFAULT, FIELD_PROPERTY_DEFAULT, FIELD_PROPERTY_FORMAT, FIELD_PROPERTY_LENGTH, FIELD_PROPERTY_NUMTYPE, FIELD_PROPERTY_REQUIRED, FIELD_PROPERTY_SCALE, FIELD_PROPERTY_TEXTLEN, FIELD_TYPE, dbaui::OFieldDescription::GetControlDefault(), BrowseBox::GetCurRow(), dbaui::OFieldDescription::GetDescription(), dbaui::OTableDesignView::GetDescWin(), GetFieldDescr(), dbaui::OFieldDescription::GetFormatKey(), dbaui::OFieldDescription::GetHelpText(), dbaui::OFieldDescription::GetIsNullable(), dbaui::OFieldDescription::GetName(), dbaui::OFieldDescription::GetPrecision(), dbaui::OFieldDescription::GetScale(), dbaui::OFieldDescription::getTypeInfo(), GetView(), HELP_TEXT, dbaui::OFieldDescription::IsAutoIncrement(), and SetDataPtr().
Referenced by GetCellText().
|
overrideprotectedvirtual |
Reimplemented from BrowseBox.
Definition at line 1057 of file TEditControl.cxx.
References GetCellData().
Referenced by GetTotalCellWidth(), and PaintCell().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 313 of file TEditControl.cxx.
References COLUMN_DESCRIPTION, FIELD_NAME, FIELD_TYPE, dbaui::OTableDesignView::getController(), dbaui::OFieldDescription::GetName(), dbaui::OTableController::getTable(), GetView(), HELP_TEXT, IsReadOnly(), pActRow, pDescrCell, pHelpTextCell, pNameCell, PROPERTY_TYPE(), pTypeCell, and SetDataPtr().
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().
|
inline |
Definition at line 144 of file TEditControl.hxx.
References m_pRowList.
Referenced by dbaui::OTableDesignView::reSync().
|
overrideprotectedvirtual |
Reimplemented from dbaui::OTableRowView.
Definition at line 408 of file TEditControl.cxx.
References svt::EditBrowseBox::CLEAN, svt::EditBrowseBox::CURRENT, svt::EditBrowseBox::CURRENT_PRIMARYKEY, dbaui::OTableRowView::m_nDataPos, pActRow, svt::EditBrowseBox::PRIMARYKEY, and SetDataPtr().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1064 of file TEditControl.cxx.
References GetCellText().
SfxUndoManager & OTableEditorCtrl::GetUndoManager | ( | ) | const |
Definition at line 153 of file TEditControl.cxx.
References dbaui::OTableDesignView::getController(), dbaui::OSingleDocumentController::GetUndoManager(), and GetView().
Referenced by CellModified(), DeleteRows(), dispose(), InsertNewRows(), InsertRows(), SaveData(), and SetPrimaryKey().
|
overridevirtual |
Implements dbaui::OTableRowView.
Definition at line 1648 of file TEditControl.cxx.
References m_pView.
Referenced by AdjustFieldDescription(), CellModified(), cut(), DeleteRows(), DisplayData(), GenerateName(), dbaui::OTableFieldControl::getAutoIncrementValue(), GetCellData(), dbaui::OTableFieldControl::getConnection(), GetController(), dbaui::OTableFieldControl::GetFormatter(), dbaui::OTableFieldControl::GetLocale(), dbaui::OTableFieldControl::getMetaData(), dbaui::OTableFieldControl::getTypeInfo(), GetUndoManager(), HasFieldName(), Init(), InitCellController(), InitController(), InsertNewRows(), InsertRows(), InvalidateFeatures(), dbaui::OTableFieldControl::isAutoIncrementValueEnabled(), IsCopyAllowed(), IsCutAllowed(), IsDeleteAllowed(), IsInsertNewAllowed(), IsPasteAllowed(), IsPrimaryKeyAllowed(), dbaui::OTableFieldControl::IsReadOnly(), OTableEditorCtrl(), paste(), resetType(), SaveData(), dbaui::OTableFieldControl::SetModified(), SetPrimaryKey(), and SwitchType().
|
private |
Definition at line 481 of file TEditControl.cxx.
References dbaui::OTableDesignView::getController(), dbaui::OFieldDescription::GetName(), GetView(), m_pRowList, and nCount.
Referenced by GenerateName().
|
overridevirtual |
Reimplemented from dbaui::OTableRowView.
Definition at line 99 of file TEditControl.cxx.
References COLUMN_DESCRIPTION, DBA_RES, FIELD_NAME, FIELD_TYPE, FIELDDESCR_WIDTH, FIELDNAME_WIDTH, FIELDTYPE_WIDTH, dbaccess::getDataSource(), getPropertyValue(), GetView(), HELP_TEXT, dbaui::OTableRowView::Init(), InitCellController(), BrowseBox::InsertDataColumn(), m_pRowList, PROPERTY_URL(), BrowseBox::RowInserted(), SetReadOnly(), and dbaccess::ODsnTypeCollection::supportsColumnDescription().
Referenced by dbaui::OTableDesignView::initialize().
|
private |
Definition at line 185 of file TEditControl.cxx.
References ClearModified(), VclPtr< class reference_type >::Create(), dbaui::OTableDesignView::getController(), BrowseBox::GetDataWindow(), GetView(), Size::Height(), HID_TABDESIGN_COMMENTCELL, HID_TABDESIGN_HELPTEXT, HID_TABDESIGN_NAMECELL, HID_TABDESIGN_TYPECELL, dbaui::isSQL92CheckEnabled(), MAX_DESCR_LEN, pDescrCell, pHelpTextCell, pNameCell, pTypeCell, BrowseBox::SetDataRowHeight(), and Size::setHeight().
Referenced by Init().
|
overrideprotectedvirtual |
Definition at line 351 of file TEditControl.cxx.
References weld::ComboBox::append_text(), weld::ComboBox::clear(), COLUMN_DESCRIPTION, FIELD_NAME, FIELD_TYPE, dbaui::OTableDesignView::getController(), BrowseBox::GetCurRow(), dbaui::OFieldDescription::GetDescription(), dbaui::OFieldDescription::GetHelpText(), dbaui::OFieldDescription::GetName(), dbaui::OFieldDescription::getTypeInfo(), dbaui::OTableController::getTypeInfo(), GetView(), HELP_TEXT, pActRow, pDescrCell, pHelpTextCell, pNameCell, pTypeCell, weld::Entry::save_value(), SeekRow(), weld::ComboBox::set_active_text(), and weld::Entry::set_text().
Referenced by CursorMoved(), and DisplayData().
|
overrideprotectedvirtual |
Implements dbaui::OTableRowView.
Definition at line 849 of file TEditControl.cxx.
References SfxUndoManager::AddUndoAction(), dbaui::OTableDesignView::getController(), BrowseBox::GetSelectRowCount(), GetUndoManager(), GetView(), i, InvalidateFeatures(), m_pRowList, and BrowseBox::RowInserted().
|
overrideprotectedvirtual |
Implements dbaui::OTableRowView.
Definition at line 769 of file TEditControl.cxx.
References SfxUndoManager::AddUndoAction(), TransferableDataHelper::CreateFromSystemClipboard(), GenerateName(), dbaui::OTableDesignView::getController(), TransferableDataHelper::GetSotStorageStream(), GetUndoManager(), GetView(), TransferableDataHelper::HasFormat(), i, InvalidateFeatures(), tools::SvRef< typename T >::is(), m_pRowList, nType, dbaui::ReadOTableRow(), BrowseBox::RowInserted(), and STREAM_SEEK_TO_BEGIN.
|
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().
bool OTableEditorCtrl::IsCopyAllowed | ( | ) |
Definition at line 1124 of file TEditControl.cxx.
References DESCRIPTION, BrowseBox::FirstSelectedRow(), weld::Entry::get_selection_bounds(), dbaui::OTableDesignView::getController(), BrowseBox::GetSelectRowCount(), dbaui::OTableController::getTable(), GetView(), HELPTEXT, m_eChildFocus, NAME, BrowseBox::NextSelectedRow(), nIndex, pDescrCell, pHelpTextCell, pNameCell, PROPERTY_TYPE(), ROW, and SFX_ENDOFSELECTION.
Referenced by Command(), isCopyAllowed(), and IsCutAllowed().
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 164 of file TEditControl.hxx.
References IsCopyAllowed().
bool OTableEditorCtrl::IsCutAllowed | ( | ) |
Definition at line 1084 of file TEditControl.cxx.
References DESCRIPTION, weld::Entry::get_selection_bounds(), dbaui::OTableDesignView::getController(), GetView(), HELPTEXT, dbaui::OTableController::isAddAllowed(), dbaui::OTableController::isAlterAllowed(), IsCopyAllowed(), dbaui::OTableController::isDropAllowed(), m_eChildFocus, NAME, pDescrCell, pHelpTextCell, pNameCell, and ROW.
Referenced by Command(), and isCutAllowed().
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 163 of file TEditControl.hxx.
References IsCutAllowed().
|
overrideprotectedvirtual |
Implements dbaui::OTableRowView.
Definition at line 1276 of file TEditControl.cxx.
References dbaui::OTableDesignView::getController(), BrowseBox::GetSelectRowCount(), GetView(), and dbaui::OTableController::isDropAllowed().
Referenced by Command().
|
overrideprotectedvirtual |
Implements dbaui::OTableRowView.
Definition at line 1282 of file TEditControl.cxx.
References GetActRow(), dbaui::OTableDesignView::getController(), GetView(), dbaui::OTableController::isAddAllowed(), IsReadOnly(), and SetDataPtr().
Referenced by Command().
bool OTableEditorCtrl::IsPasteAllowed | ( | ) | const |
Definition at line 1167 of file TEditControl.cxx.
References TransferableDataHelper::CreateFromSystemClipboard(), dbaui::OTableDesignView::getController(), GetView(), TransferableDataHelper::HasFormat(), dbaui::OTableController::isAddAllowed(), m_eChildFocus, and ROW.
Referenced by Command(), and isPasteAllowed().
|
inlineoverridevirtual |
Implements dbaui::IClipboardTest.
Definition at line 165 of file TEditControl.hxx.
References IsPasteAllowed().
|
protected |
Definition at line 1579 of file TEditControl.cxx.
References BrowseBox::GetSelectRowCount(), BrowseBox::IsRowSelected(), and m_pRowList.
Referenced by Command().
|
overrideprotectedvirtual |
Implements dbaui::OTableRowView.
Definition at line 1297 of file TEditControl.cxx.
References BrowseBox::FirstSelectedRow(), dbaui::OTableDesignView::getController(), BrowseBox::GetSelectRowCount(), dbaui::OTableController::getTable(), dbaui::OFieldDescription::getTypeInfo(), GetView(), dbaui::OFieldDescription::IsNullable(), BrowseBox::NextSelectedRow(), nIndex, PROPERTY_TYPE(), and SFX_ENDOFSELECTION.
Referenced by Command().
|
inline |
Definition at line 156 of file TEditControl.hxx.
References bReadOnly.
Referenced by Command(), DeactivateCell(), GetController(), IsInsertNewAllowed(), and SetReadOnly().
|
overrideprotectedvirtual |
Implements svt::EditBrowseBox.
Definition at line 302 of file TEditControl.cxx.
References vcl::CLIPREGION, OutputDevice::DrawText(), GetCellText(), dbaui::OTableRowView::m_nCurrentPos, OutputDevice::Pop(), OutputDevice::Push(), and OutputDevice::SetClipRegion().
|
overridevirtual |
Reimplemented from dbaui::OTableRowView.
Definition at line 1241 of file TEditControl.cxx.
References CellModified(), TransferableDataHelper::CreateFromSystemClipboard(), DESCRIPTION, GetView(), TransferableDataHelper::HasFormat(), HELPTEXT, LINK, m_eChildFocus, NAME, nPasteEvent, pDescrCell, pHelpTextCell, pNameCell, Application::PostUserEvent(), and Application::RemoveUserEvent().
Referenced by Command().
|
overridevirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 1662 of file TEditControl.cxx.
References DESCRIPTION, NotifyEvent::GetType(), HELPTEXT, m_eChildFocus, NAME, pDescrCell, pHelpTextCell, pNameCell, svt::EditBrowseBox::PreNotify(), and ROW.
|
private |
Definition at line 693 of file TEditControl.cxx.
References GetView(), nPos, pTypeCell, and SwitchType().
Referenced by CellModified(), and SaveModified().
void OTableEditorCtrl::SaveCurRow | ( | ) |
Definition at line 427 of file TEditControl.cxx.
References BrowseBox::GetCurRow(), GetFieldDescr(), pActRow, pDescrWin, dbaui::OTableFieldDescWin::SaveData(), SaveModified(), and SetDataPtr().
|
private |
Definition at line 499 of file TEditControl.cxx.
References SfxUndoManager::AddUndoAction(), aName, COLUMN_DESCRIPTION, FIELD_NAME, FIELD_PROPERTY_AUTOINC, FIELD_PROPERTY_BOOL_DEFAULT, FIELD_PROPERTY_DEFAULT, FIELD_PROPERTY_LENGTH, FIELD_PROPERTY_NUMTYPE, FIELD_PROPERTY_REQUIRED, FIELD_PROPERTY_SCALE, FIELD_PROPERTY_TEXTLEN, FIELD_TYPE, weld::Entry::get_text(), dbaui::OTableDesignView::getController(), BrowseBox::GetCurRow(), dbaui::OFieldDescription::getTypeInfo(), GetUndoManager(), GetView(), HELP_TEXT, svt::EditBrowseBox::InvalidateHandleColumn(), dbaui::OFieldDescription::IsAutoIncrement(), dbaui::OTableController::isAutoIncrementPrimaryKey(), pActRow, pDescrCell, pDescrWin, pHelpTextCell, pNameCell, weld::Entry::save_value(), dbaui::OTableFieldDescWin::SaveData(), weld::Entry::set_text(), SetDataPtr(), dbaui::OFieldDescription::SetDescription(), dbaui::OFieldDescription::SetHelpText(), dbaui::OFieldDescription::SetName(), dbaui::OFieldDescription::SetPrimaryKey(), and SwitchType().
Referenced by CellModified(), and cut().
|
overrideprotectedvirtual |
Reimplemented from svt::EditBrowseBox.
Definition at line 588 of file TEditControl.cxx.
References FIELD_TYPE, BrowseBox::GetCurColumnId(), and resetType().
Referenced by SaveCurRow().
|
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().
|
overridevirtual |
Implements dbaui::OTableRowView.
|
overridevirtual |
Implements dbaui::OTableRowView.
|
overridevirtual |
Implements dbaui::OTableRowView.
Definition at line 866 of file TEditControl.cxx.
References svt::EditBrowseBox::Controller(), FIELD_FIRST_VIRTUAL_COLUMN, BrowseBox::GoToColumnId(), BrowseBox::GoToRow(), pDescrWin, BrowseBox::RowModified(), dbaui::OTableFieldDescWin::SetControlText(), and xController.
|
private |
Definition at line 281 of file TEditControl.cxx.
References m_pRowList, and pActRow.
Referenced by CellModified(), Command(), CopyRows(), CursorMoving(), DeactivateCell(), DeleteRows(), DisplayData(), GetCellData(), GetController(), GetRowStatus(), IsInsertNewAllowed(), SaveCurRow(), SaveData(), and SeekRow().
|
inline |
Definition at line 125 of file TEditControl.hxx.
References dbaui::OTableFieldDescWin::DisplayData(), pActRow, and pDescrWin.
|
protected |
Definition at line 1534 of file TEditControl.cxx.
References SfxUndoManager::AddUndoAction(), AdjustFieldDescription(), BrowseBox::FirstSelectedRow(), dbaui::OTableDesignView::getController(), BrowseBox::GetRowCount(), GetUndoManager(), GetView(), InvalidateFeatures(), svt::EditBrowseBox::InvalidateHandleColumn(), dbaui::OFieldDescription::IsPrimaryKey(), BrowseBox::IsRowSelected(), m_pRowList, BrowseBox::NextSelectedRow(), nIndex, MultiSelection::SetTotalRange(), and SFX_ENDOFSELECTION.
Referenced by Command().
void OTableEditorCtrl::SetReadOnly | ( | bool | bRead | ) |
Definition at line 159 of file TEditControl.cxx.
References svt::EditBrowseBox::ActivateCell(), bReadOnly, DeactivateCell(), BrowseBox::GetCurColumnId(), BrowseBox::GetCurRow(), IsReadOnly(), and BrowseBox::SetMode().
Referenced by Init(), and dbaui::OTableDesignView::setReadOnly().
void OTableEditorCtrl::SwitchType | ( | const TOTypeInfoSP & | _pType | ) |
Definition at line 1597 of file TEditControl.cxx.
References dbaui::OTableFieldDescWin::DisplayData(), weld::ComboBox::get_active(), weld::ComboBox::get_count(), dbaui::OTableDesignView::getController(), BrowseBox::GetCurRow(), GetFieldDescr(), dbaui::OFieldDescription::GetFormatKey(), getLocale(), getNumberFormats(), dbaui::getNumberFormatter(), dbaui::OFieldDescription::GetScale(), dbaui::OFieldDescription::GetType(), dbaui::OTableController::getTypeInfo(), GetView(), dbaui::OFieldDescription::IsCurrency(), m_pRowList, o3tl::make_unsigned(), pDescrWin, pTypeCell, dbaui::OTableFieldDescWin::SaveData(), weld::ComboBox::set_active(), and dbaui::OFieldDescription::SetFormatKey().
Referenced by resetType(), and SaveData().
|
friend |
Definition at line 82 of file TEditControl.hxx.
|
private |
Definition at line 64 of file TEditControl.hxx.
Referenced by DeactivateCell(), IsReadOnly(), and SetReadOnly().
|
private |
Definition at line 84 of file TEditControl.hxx.
Referenced by dispose().
|
private |
Definition at line 60 of file TEditControl.hxx.
Referenced by copy(), cut(), IsCopyAllowed(), IsCutAllowed(), IsPasteAllowed(), paste(), and PreNotify().
|
private |
Definition at line 44 of file TEditControl.hxx.
Referenced by DeleteRows(), GetFieldDescr(), GetRowList(), HasFieldName(), Init(), InsertNewRows(), InsertRows(), IsPrimaryKey(), OTableEditorCtrl(), SetDataPtr(), SetPrimaryKey(), and SwitchType().
|
private |
Definition at line 46 of file TEditControl.hxx.
|
private |
Definition at line 55 of file TEditControl.hxx.
|
private |
Definition at line 57 of file TEditControl.hxx.
|
private |
Definition at line 58 of file TEditControl.hxx.
|
private |
Definition at line 59 of file TEditControl.hxx.
Referenced by CellModified(), and dispose().
|
private |
Definition at line 62 of file TEditControl.hxx.
Referenced by CursorMoved(), CursorMoving(), and DeleteRows().
|
private |
Definition at line 56 of file TEditControl.hxx.
|
private |
Definition at line 53 of file TEditControl.hxx.
Referenced by CellModified(), Command(), CopyRows(), CursorMoving(), DeleteRows(), GetActRow(), GetController(), GetRowStatus(), InitController(), SaveCurRow(), SaveData(), SetDataPtr(), and SetDescrWin().
|
private |
Definition at line 50 of file TEditControl.hxx.
Referenced by ClearModified(), copy(), cut(), dispose(), GetController(), InitCellController(), InitController(), IsCopyAllowed(), IsCutAllowed(), paste(), PreNotify(), and SaveData().
|
private |
Definition at line 51 of file TEditControl.hxx.
Referenced by AdjustFieldDescription(), CellModified(), Command(), CopyRows(), CursorMoving(), DeactivateCell(), DeleteRows(), dispose(), SaveCurRow(), SaveData(), SetControlText(), SetDescrWin(), and SwitchType().
|
private |
Definition at line 49 of file TEditControl.hxx.
Referenced by ClearModified(), copy(), cut(), dispose(), GetController(), InitCellController(), InitController(), IsCopyAllowed(), IsCutAllowed(), paste(), PreNotify(), and SaveData().
|
private |
Definition at line 47 of file TEditControl.hxx.
Referenced by ClearModified(), copy(), cut(), dispose(), GetController(), InitCellController(), InitController(), IsCopyAllowed(), IsCutAllowed(), paste(), PreNotify(), and SaveData().
|
private |
Definition at line 48 of file TEditControl.hxx.
Referenced by ClearModified(), dispose(), GetController(), InitCellController(), InitController(), resetType(), and SwitchType().