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
This commit is contained in:
Jens-Heiner Rechtien 2004-05-10 12:09:07 +00:00
parent 0805cf10c7
commit 05c02c96fb

View file

@ -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();