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:44:35 +0100 |
commit | 2c134214c3276faa60a8e49055e52ad304557600 (patch) | |
tree | f1cffff4082fe96ae2c0ef09318bb43a8824115b /sw | |
parent | 511429242bea4fafd28c169d02b5e2851007a1db (diff) |
sw: handle arguments in SwXTextDocument::initializeForTiledRendering()
Change-Id: I19efc6050c78162e0889437d4c8285d1a6714e82
(cherry picked from commit be28ab9aa535e36ea226bc5aeaedea95fd2ba3db)
Diffstat (limited to 'sw')
-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 3d2cff7e30e0..060427951036 100644 --- a/sw/source/uibase/uno/unotxdoc.cxx +++ b/sw/source/uibase/uno/unotxdoc.cxx @@ -3251,7 +3251,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; @@ -3273,6 +3273,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 |