diff options
author | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-04 10:31:35 +0100 |
---|---|---|
committer | Cédric Bosdonnat <cedric.bosdonnat@free.fr> | 2012-12-04 12:41:05 +0100 |
commit | 708447f2a5011ef76cb5ed6aa02bbac45e93a532 (patch) | |
tree | 815d57bf6fa4ecbb1b5832bf1f9f91f7af2cfc94 /sw | |
parent | d911673a64250ece50f6ca5578385adabcae5e5d (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 'sw')
-rw-r--r-- | sw/sdi/_docsh.sdi | 6 | ||||
-rw-r--r-- | sw/sdi/annotsh.sdi | 6 | ||||
-rw-r--r-- | sw/source/ui/app/docst.cxx | 4 |
3 files changed, 15 insertions, 1 deletions
diff --git a/sw/sdi/_docsh.sdi b/sw/sdi/_docsh.sdi index cfc333719ca3..ed847319fca0 100644 --- a/sw/sdi/_docsh.sdi +++ b/sw/sdi/_docsh.sdi @@ -56,6 +56,12 @@ interface BaseTextDocument StateMethod = NoState ; ] + SID_STYLE_SHOW + [ + ExecMethod = ExecStyleSheet ; + StateMethod = NoState ; + ] + SID_TEMPLATE_LOAD [ ExecMethod = Execute ; diff --git a/sw/sdi/annotsh.sdi b/sw/sdi/annotsh.sdi index 9e566b2b6287..0506fd2487f0 100644 --- a/sw/sdi/annotsh.sdi +++ b/sw/sdi/annotsh.sdi @@ -351,6 +351,12 @@ interface Annotation : _Annotation [ StateMethod = StateDisableItems ; ] + + SID_STYLE_SHOW + [ + StateMethod = StateDisableItems ; + ] + FN_STAT_SELMODE [ StateMethod = StateStatusLine ; diff --git a/sw/source/ui/app/docst.cxx b/sw/source/ui/app/docst.cxx index 14144c2b250a..3685eb107ead 100644 --- a/sw/source/ui/app/docst.cxx +++ b/sw/source/ui/app/docst.cxx @@ -326,6 +326,7 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq ) case SID_STYLE_EDIT: case SID_STYLE_DELETE: case SID_STYLE_HIDE: + case SID_STYLE_SHOW: case SID_STYLE_WATERCAN: case SID_STYLE_FAMILY: case SID_STYLE_UPDATE_BY_EXAMPLE: @@ -452,7 +453,8 @@ void SwDocShell::ExecStyleSheet( SfxRequest& rReq ) nRet = Delete(aParam, nFamily); break; case SID_STYLE_HIDE: - nRet = Hide(aParam, nFamily, true); + case SID_STYLE_SHOW: + nRet = Hide(aParam, nFamily, nSlot == SID_STYLE_HIDE); break; case SID_STYLE_APPLY: // Shell-switch in ApplyStyles |