diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-18 16:07:17 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-18 16:39:18 +0100 |
commit | be28ab9aa535e36ea226bc5aeaedea95fd2ba3db (patch) | |
tree | 2b3693dcb35dac82b0d96bde68a8c8bdccbafbd8 | |
parent | 0ea68eecddf0211f842645c4d257899531692770 (diff) |
sw: handle arguments in SwXTextDocument::initializeForTiledRendering()
Change-Id: I19efc6050c78162e0889437d4c8285d1a6714e82
-rw-r--r-- | sw/source/uibase/uno/unotxdoc.cxx | 8 |
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 |