From 05c02c96fbf65e9707a5269cf8f4464f9e69fd0d Mon Sep 17 00:00:00 2001 From: Jens-Heiner Rechtien Date: Mon, 10 May 2004 12:09:07 +0000 Subject: [PATCH] INTEGRATION: CWS dba09 (1.38.22); FILE MERGED 2004/03/18 10:21:14 fs 1.38.22.1: #i24876# proper undo strings for table design --- dbaccess/source/ui/tabledesign/TEditControl.cxx | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/dbaccess/source/ui/tabledesign/TEditControl.cxx b/dbaccess/source/ui/tabledesign/TEditControl.cxx index 2b0c62d7c363..03f03870f70f 100644 --- a/dbaccess/source/ui/tabledesign/TEditControl.cxx +++ b/dbaccess/source/ui/tabledesign/TEditControl.cxx @@ -2,9 +2,9 @@ * * $RCSfile: TEditControl.cxx,v $ * - * $Revision: 1.38 $ + * $Revision: 1.39 $ * - * last change: $Author: hr $ $Date: 2004-02-04 13:55:30 $ + * last change: $Author: hr $ $Date: 2004-05-10 13:09:07 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -808,7 +808,16 @@ void OTableEditorCtrl::CellModified( long nRow, sal_uInt16 nColId ) SetDataPtr( nRow ); OFieldDescription* pActFieldDescr = pActRow->GetActFieldDescr(); - GetUndoManager()->EnterListAction(String::CreateFromAscii("TODO"), String()); + String sActionDescription; + switch ( nColId ) + { + case FIELD_NAME: sActionDescription = String( ModuleRes( STR_CHANGE_COLUMN_NAME ) ); break; + case FIELD_TYPE: sActionDescription = String( ModuleRes( STR_CHANGE_COLUMN_TYPE ) ); break; + case FIELD_DESCR: sActionDescription = String( ModuleRes( STR_CHANGE_COLUMN_DESCRIPTION ) ); break; + default: sActionDescription = String( ModuleRes( STR_CHANGE_COLUMN_ATTRIBUTE ) ); break; + } + + GetUndoManager()->EnterListAction( sActionDescription, String() ); if (!pActFieldDescr) { const OTypeInfoMap* pTypeInfoMap = GetView()->getController()->getTypeInfo();