summaryrefslogtreecommitdiff
path: root/sd/source/ui/func
diff options
context:
space:
mode:
authorCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-12-04 10:31:35 +0100
committerCédric Bosdonnat <cedric.bosdonnat@free.fr>2012-12-04 12:41:05 +0100
commit708447f2a5011ef76cb5ed6aa02bbac45e93a532 (patch)
tree815d57bf6fa4ecbb1b5832bf1f9f91f7af2cfc94 /sd/source/ui/func
parentd911673a64250ece50f6ca5578385adabcae5e5d (diff)
Styles & Formatting: added Show menu item on hidden styles
The command to show hidden styles again was missing. Change-Id: Ic25b0cfc4d021d949124b8c4ef4016d6dba7e39f
Diffstat (limited to 'sd/source/ui/func')
-rw-r--r--sd/source/ui/func/futempl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sd/source/ui/func/futempl.cxx b/sd/source/ui/func/futempl.cxx
index f1d9feae1487..80f57490d7bd 100644
--- a/sd/source/ui/func/futempl.cxx
+++ b/sd/source/ui/func/futempl.cxx
@@ -136,6 +136,7 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
case SID_STYLE_EDIT:
case SID_STYLE_DELETE:
case SID_STYLE_HIDE:
+ case SID_STYLE_SHOW:
case SID_STYLE_FAMILY:
case SID_STYLE_NEW_BY_EXAMPLE:
{
@@ -227,8 +228,9 @@ void FuTemplate::DoExecute( SfxRequest& rReq )
break;
case SID_STYLE_HIDE:
+ case SID_STYLE_SHOW:
pStyleSheet = pSSPool->Find( aStyleName, (SfxStyleFamily) nFamily);
- pStyleSheet->SetHidden( true );
+ pStyleSheet->SetHidden( nSId == SID_STYLE_HIDE );
nRetMask = sal_True;
break;