Kaydet (Commit) c4da31d3 authored tarafından Caolán McNamara's avatar Caolán McNamara

Related: fdo#63546 bundle both changes together as one undo

Change-Id: I2a9608339c372ccdeeca2ca0fd9499a4c527cff3
üst 7c3db8a6
......@@ -678,7 +678,10 @@
#define STR_INVALIDINPUT 542
#define STR_INVALIDCONDITION 543
#define STR_COUNT 544
#define STR_UNDO_L2R 544
#define STR_UNDO_R2L 545
#define STR_COUNT 546
#endif
......
......@@ -1815,6 +1815,14 @@ Resource RID_GLOBSTR
{
Text [ en-US ] = "Insert Current Time";
};
String STR_UNDO_L2R
{
Text [ en-US ] = "Left-to-right" ;
};
String STR_UNDO_R2L
{
Text [ en-US ] = "Right-to-left" ;
};
String STR_MANAGE_NAMES
{
Text [ en-US ] = "Manage Names...";
......
......@@ -2078,6 +2078,12 @@ void ScFormatShell::ExecuteTextDirection( SfxRequest& rReq )
{
SvxFrameDirection eDirection = ( nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT ) ?
FRMDIR_HORI_LEFT_TOP : FRMDIR_HORI_RIGHT_TOP;
String aUndo = ScGlobal::GetRscString( nSlot == SID_ATTR_PARA_LEFT_TO_RIGHT ?
STR_UNDO_L2R : STR_UNDO_R2L );
ScDocShell* pDocSh = GetViewData()->GetDocShell();
pDocSh->GetUndoManager()->EnterListAction( aUndo, aUndo );
pTabViewShell->ApplyAttr( SvxFrameDirectionItem( eDirection, ATTR_WRITINGDIR ) );
const SfxItemSet& rAttrSet = pTabViewShell->GetSelectionPattern()->GetItemSet();
......@@ -2102,6 +2108,7 @@ void ScFormatShell::ExecuteTextDirection( SfxRequest& rReq )
ExecuteSlot( rReq, GetInterface() );
}
pDocSh->GetUndoManager()->LeaveListAction();
}
break;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment