diff options
author | Maxim Monastirsky <momonasmon@gmail.com> | 2015-07-16 17:44:56 +0300 |
---|---|---|
committer | Maxim Monastirsky <momonasmon@gmail.com> | 2015-07-16 23:42:25 +0300 |
commit | 8ccea9c7d661da42d3e5a3f459f8f568990e8fac (patch) | |
tree | 5c251a22b910c87bc143e9a37ae5a72eed5389b7 /sc | |
parent | de48b8af6ddf272bf37be1574630986a302fd5c8 (diff) |
sc: Disable the alignment group button
... when all its items are disabled. That's the same
behavior now as in Writer.
Change-Id: Ic74d0737ae7cc709a64524c1aa43783af8f4fbcc
Diffstat (limited to 'sc')
-rw-r--r-- | sc/sdi/drawsh.sdi | 2 | ||||
-rw-r--r-- | sc/source/ui/drawfunc/drawsh2.cxx | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sc/sdi/drawsh.sdi b/sc/sdi/drawsh.sdi index 7fb2639ef6ea..2801b17a3aee 100644 --- a/sc/sdi/drawsh.sdi +++ b/sc/sdi/drawsh.sdi @@ -125,7 +125,7 @@ interface TableDraw Export = FALSE ; // PseudoPrefix = SID_OBJECT_ALIGN; ExecMethod = ExecDrawFunc ; - StateMethod = NoState ; + StateMethod = GetDrawFuncState ; GroupId = GID_FORMAT ; FastCall , Cachable ; ToolBoxConfig ; diff --git a/sc/source/ui/drawfunc/drawsh2.cxx b/sc/source/ui/drawfunc/drawsh2.cxx index bed84079a08e..e01639d9899c 100644 --- a/sc/source/ui/drawfunc/drawsh2.cxx +++ b/sc/source/ui/drawfunc/drawsh2.cxx @@ -164,6 +164,7 @@ void ScDrawShell::GetDrawFuncState( SfxItemSet& rSet ) // Funktionen disabl rSet.DisableItem( SID_OBJECT_ALIGN_UP ); rSet.DisableItem( SID_OBJECT_ALIGN_MIDDLE ); rSet.DisableItem( SID_OBJECT_ALIGN_DOWN ); + rSet.DisableItem( SID_OBJECT_ALIGN ); // pseudo slots for Format menu rSet.DisableItem( SID_ALIGN_ANY_LEFT ); |