summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/sdi/_docsh.sdi6
-rw-r--r--sw/sdi/annotsh.sdi6
-rw-r--r--sw/source/ui/app/docst.cxx4
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