summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2021-01-12 13:22:37 +0100
committerThorsten Behrens <thorsten.behrens@allotropia.de>2021-01-28 12:44:05 +0100
commit4697b9f7a4bab4357837d1212fbc57ba6e7c50b9 (patch)
treefa266e7d6338d9d013578c2205e945e56723c34e
parent258fe9d266e27a8211274ed5d11ec7558cdf7ace (diff)
Make uno:RefreshView redo the whole document layout
This is useful when encountering layout problems, to refresh the doc layout from an extension. Change-Id: Ie2472f061ebea203a9d876782b3bb953477de7c9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109169 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> (cherry picked from commit 51ef3a3af573287b03262e96bf8298bdbe06c44d) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109506 Tested-by: Thorsten Behrens <thorsten.behrens@allotropia.de> Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
-rw-r--r--officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu2
-rw-r--r--sw/source/uibase/uiview/view2.cxx1
2 files changed, 2 insertions, 1 deletions
diff --git a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
index a41666bef3a6..1e3c642bea13 100644
--- a/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
+++ b/officecfg/registry/data/org/openoffice/Office/UI/WriterCommands.xcu
@@ -2528,7 +2528,7 @@
</node>
<node oor:name=".uno:RefreshView" oor:op="replace">
<prop oor:name="Label" oor:type="xs:string">
- <value xml:lang="en-US">Restore View</value>
+ <value xml:lang="en-US">Refresh document layout</value>
</prop>
</node>
<node oor:name=".uno:JumpToEndOfDoc" oor:op="replace">
diff --git a/sw/source/uibase/uiview/view2.cxx b/sw/source/uibase/uiview/view2.cxx
index be7a42416eae..ca91ba80828e 100644
--- a/sw/source/uibase/uiview/view2.cxx
+++ b/sw/source/uibase/uiview/view2.cxx
@@ -567,6 +567,7 @@ void SwView::Execute(SfxRequest &rReq)
break;
case FN_REFRESH_VIEW:
GetEditWin().Invalidate();
+ m_pWrtShell->Reformat();
break;
case FN_PAGEUP:
case FN_PAGEUP_SEL: