diff options
author | Henry Castro <hcastro@collabora.com> | 2020-12-17 10:16:52 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-12-18 18:23:13 +0100 |
commit | fb45e5c52836cdf045da1e66c168a2dfd55b9e90 (patch) | |
tree | c790325b3e494e53c4edde84db8702065f934090 | |
parent | 00f587ecfe06274bf71356c913145a2e7847e763 (diff) |
lok: add parameter "MacroExecMode"
It is required to execute VBA scripts.
Change-Id: Ibaafc62ecedcefcd0596c701728039783b5a0de7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107891
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
-rw-r--r-- | desktop/source/lib/init.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 945f3a2adf7c..2b87faecc677 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -62,6 +62,7 @@ #include <comphelper/threadpool.hxx> #include <comphelper/sequenceashashmap.hxx> +#include <com/sun/star/document/MacroExecMode.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/container/XNameAccess.hpp> #include <com/sun/star/frame/Desktop.hpp> @@ -2232,7 +2233,7 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis, const OUString aDeviceFormFactor = extractParameter(aOptions, "DeviceFormFactor"); SfxLokHelper::setDeviceFormFactor(aDeviceFormFactor); - uno::Sequence<css::beans::PropertyValue> aFilterOptions(2); + uno::Sequence<css::beans::PropertyValue> aFilterOptions(3); aFilterOptions[0] = css::beans::PropertyValue( "FilterOptions", 0, uno::makeAny(aOptions), @@ -2251,11 +2252,11 @@ static LibreOfficeKitDocument* lo_documentLoadWithOptions(LibreOfficeKit* pThis, aFilterOptions[1].Name = "InteractionHandler"; aFilterOptions[1].Value <<= xInteraction; - /* TODO sal_Int16 nMacroExecMode = document::MacroExecMode::USE_CONFIG; aFilterOptions[2].Name = "MacroExecutionMode"; aFilterOptions[2].Value <<= nMacroExecMode; + /* TODO sal_Int16 nUpdateDoc = document::UpdateDocMode::ACCORDING_TO_CONFIG; aFilterOptions[3].Name = "UpdateDocMode"; aFilterOptions[3].Value <<= nUpdateDoc; |