summaryrefslogtreecommitdiff
path: root/sw/source/uibase
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-11-18 16:07:17 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-11-18 16:39:18 +0100
commitbe28ab9aa535e36ea226bc5aeaedea95fd2ba3db (patch)
tree2b3693dcb35dac82b0d96bde68a8c8bdccbafbd8 /sw/source/uibase
parent0ea68eecddf0211f842645c4d257899531692770 (diff)
sw: handle arguments in SwXTextDocument::initializeForTiledRendering()
Change-Id: I19efc6050c78162e0889437d4c8285d1a6714e82
Diffstat (limited to 'sw/source/uibase')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index 2761a7a619cf..4bede9964e10 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3200,7 +3200,7 @@ OUString SwXTextDocument::getPartName(int nPart)
return OUString(SW_RES(STR_PAGE)) + OUString::number(nPart + 1);
}
-void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css::beans::PropertyValue>& /*rArguments*/)
+void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css::beans::PropertyValue>& rArguments)
{
SolarMutexGuard aGuard;
@@ -3222,6 +3222,12 @@ void SwXTextDocument::initializeForTiledRendering(const css::uno::Sequence<css::
// Tiled rendering defaults.
SwViewOption aViewOption(*pViewShell->GetViewOptions());
aViewOption.SetHardBlank(false);
+ for (sal_Int32 i = 0; i < rArguments.getLength(); ++i)
+ {
+ const beans::PropertyValue& rValue = rArguments[i];
+ if (rValue.Name == ".uno:HideWhitespace" && rValue.Value.has<bool>())
+ aViewOption.SetHideWhitespaceMode(rValue.Value.get<bool>());
+ }
pViewShell->ApplyViewOptions(aViewOption);
// Disable map mode, so that it's possible to send mouse event coordinates