diff options
author | Noel Grandin <noel@peralex.com> | 2016-08-18 10:52:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-08-19 08:18:37 +0200 |
commit | 4625dcc13cbe6d5277e7c8bc99879b1c060796c0 (patch) | |
tree | cf879bb4d188189b2ea0579da186dfa28a10023c /svx | |
parent | e5301736046340812162a75ac88ca735f176c93a (diff) |
convert ObjStrAttrType to scoped enum
Change-Id: Ief45dea1a9a687777fe6e9b1c0efede90f1e71ee
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 6 | ||||
-rw-r--r-- | svx/source/svdraw/svdundo.cxx | 18 |
2 files changed, 12 insertions, 12 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index defafc5ab92b..6379c4f02793 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -657,7 +657,7 @@ void SdrObject::SetName(const OUString& rStr) SdrUndoAction* pUndoAction = SdrUndoFactory::CreateUndoObjectStrAttr( *this, - SdrUndoObjStrAttr::OBJ_NAME, + SdrUndoObjStrAttr::ObjStrAttrType::Name, GetName(), rStr ); GetModel()->BegUndo( pUndoAction->GetComment() ); @@ -701,7 +701,7 @@ void SdrObject::SetTitle(const OUString& rStr) SdrUndoAction* pUndoAction = SdrUndoFactory::CreateUndoObjectStrAttr( *this, - SdrUndoObjStrAttr::OBJ_TITLE, + SdrUndoObjStrAttr::ObjStrAttrType::Title, GetTitle(), rStr ); GetModel()->BegUndo( pUndoAction->GetComment() ); @@ -745,7 +745,7 @@ void SdrObject::SetDescription(const OUString& rStr) SdrUndoAction* pUndoAction = SdrUndoFactory::CreateUndoObjectStrAttr( *this, - SdrUndoObjStrAttr::OBJ_DESCRIPTION, + SdrUndoObjStrAttr::ObjStrAttrType::Description, GetDescription(), rStr ); GetModel()->BegUndo( pUndoAction->GetComment() ); diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx index 42b8337db3b1..71af6719d067 100644 --- a/svx/source/svdraw/svdundo.cxx +++ b/svx/source/svdraw/svdundo.cxx @@ -1245,13 +1245,13 @@ void SdrUndoObjStrAttr::Undo() switch ( meObjStrAttr ) { - case OBJ_NAME: + case ObjStrAttrType::Name: pObj->SetName( msOldStr ); break; - case OBJ_TITLE: + case ObjStrAttrType::Title: pObj->SetTitle( msOldStr ); break; - case OBJ_DESCRIPTION: + case ObjStrAttrType::Description: pObj->SetDescription( msOldStr ); break; } @@ -1261,13 +1261,13 @@ void SdrUndoObjStrAttr::Redo() { switch ( meObjStrAttr ) { - case OBJ_NAME: + case ObjStrAttrType::Name: pObj->SetName( msNewStr ); break; - case OBJ_TITLE: + case ObjStrAttrType::Title: pObj->SetTitle( msNewStr ); break; - case OBJ_DESCRIPTION: + case ObjStrAttrType::Description: pObj->SetDescription( msNewStr ); break; } @@ -1280,14 +1280,14 @@ OUString SdrUndoObjStrAttr::GetComment() const OUString aStr; switch ( meObjStrAttr ) { - case OBJ_NAME: + case ObjStrAttrType::Name: ImpTakeDescriptionStr( STR_UndoObjName, aStr ); aStr += " '" + msNewStr + "'"; break; - case OBJ_TITLE: + case ObjStrAttrType::Title: ImpTakeDescriptionStr( STR_UndoObjTitle, aStr ); break; - case OBJ_DESCRIPTION: + case ObjStrAttrType::Description: ImpTakeDescriptionStr( STR_UndoObjDescription, aStr ); break; } |