Kaydet (Commit) 6c3d10d8 authored tarafından Maxim Monastirsky's avatar Maxim Monastirsky

Enable the align group button for frames

Change-Id: I6ba8b5fe0d185817e61986c90f5264493b6d5339
Reviewed-on: https://gerrit.libreoffice.org/59951
Tested-by: Jenkins
Reviewed-by: 's avatarMaxim Monastirsky <momonasmon@gmail.com>
üst a8aaffa6
......@@ -330,6 +330,12 @@ interface BaseTextFrame
DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
]
SID_OBJECT_ALIGN
[
StateMethod = GetState ;
DisableFlags="SfxDisableFlags::SwOnProtectedCursor";
]
FN_FORMAT_FOOTNOTE_DLG // status()
[
ExecMethod = Execute;
......
......@@ -735,6 +735,12 @@ void SwFrameShell::GetState(SfxItemSet& rSet)
rSet.Put(aSet.Get(GetPool().GetWhich(nWhich)));
}
break;
case SID_OBJECT_ALIGN:
{
if ( bProtect )
rSet.DisableItem( nWhich );
}
break;
case SID_OBJECT_ALIGN_LEFT :
case SID_OBJECT_ALIGN_CENTER :
case SID_OBJECT_ALIGN_RIGHT :
......
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