summaryrefslogtreecommitdiff
path: root/shell/Executable_spsupp_helper.mk
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2019-05-07 21:22:08 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2019-05-17 19:15:02 +0200
commitf60cc89ec35f8b1bf56e9f69ef15143fd002c409 (patch)
treeca6afb7b1cd0c82d78fb4c21ec35075565ee6c7e /shell/Executable_spsupp_helper.mk
parent810e1a86b0f87086f972f0b1190130ce3ec088b2 (diff)
SharePoint: Add dialog to choose opening in read-only or edit mode.
ViewDocument3 method takes OpenType parameter, which allows to decide if user can choose opening the document read-only or to edit. Since we need to show localizable strings, we need to bootstrap part of LO (l10n), which is impossible when e.g. 64-bit ActiveX DLL tries to load installed 32-bit sal DLLs. Thus, we need a separate helper .exe, which architecture matches the rest of installed LO, and which handles user interaction. Change-Id: I0ad53ba64272fb84728d2221e3dc85d3eefdda68 Reviewed-on: https://gerrit.libreoffice.org/72355 Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'shell/Executable_spsupp_helper.mk')
-rw-r--r--shell/Executable_spsupp_helper.mk37
1 files changed, 37 insertions, 0 deletions
diff --git a/shell/Executable_spsupp_helper.mk b/shell/Executable_spsupp_helper.mk
new file mode 100644
index 000000000000..5daeff28da56
--- /dev/null
+++ b/shell/Executable_spsupp_helper.mk
@@ -0,0 +1,37 @@
+# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
+#
+# This file is part of the LibreOffice project.
+#
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+#
+
+$(eval $(call gb_Executable_Executable,spsupp_helper))
+
+$(eval $(call gb_Executable_set_targettype_gui,spsupp_helper,YES))
+
+$(eval $(call gb_Executable_set_include,spsupp_helper,\
+ -I$(SRCDIR)/shell/inc/spsupp \
+ $$(INCLUDE) \
+))
+
+$(eval $(call gb_Executable_use_sdk_api,spsupp_helper))
+
+$(eval $(call gb_Executable_use_libraries,spsupp_helper,\
+ i18nlangtag \
+ sal \
+ utl \
+))
+
+$(eval $(call gb_Executable_add_exception_objects,spsupp_helper,\
+ shell/source/win32/spsupp/spsuppHelper \
+))
+
+$(eval $(call gb_Executable_add_nativeres,spsupp_helper,spsupp_dlg))
+
+$(eval $(call gb_Executable_use_system_win32_libs,spsupp_helper,\
+ shell32 \
+))
+
+# vim:set noet sw=4 ts=4: