summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui/tabledesign
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 12:09:07 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2004-05-10 12:09:07 +0000
commit05c02c96fbf65e9707a5269cf8f4464f9e69fd0d (patch)
tree07176fdf5f6044b270a3ad9112f9bccd7c0e0fca /dbaccess/source/ui/tabledesign
parent0805cf10c71aa1d7c5eadbb4aed283aa818d4bcd (diff)
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
Diffstat (limited to 'dbaccess/source/ui/tabledesign')
-rw-r--r--dbaccess/source/ui/tabledesign/TEditControl.cxx15
1 files 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();