diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2019-05-07 21:22:08 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2019-05-17 19:15:02 +0200 |
commit | f60cc89ec35f8b1bf56e9f69ef15143fd002c409 (patch) | |
tree | ca6afb7b1cd0c82d78fb4c21ec35075565ee6c7e /shell/inc | |
parent | 810e1a86b0f87086f972f0b1190130ce3ec088b2 (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/inc')
-rw-r--r-- | shell/inc/spsupp/spsuppServ.hpp | 2 | ||||
-rw-r--r-- | shell/inc/spsupp/spsuppStrings.hrc | 23 |
2 files changed, 24 insertions, 1 deletions
diff --git a/shell/inc/spsupp/spsuppServ.hpp b/shell/inc/spsupp/spsuppServ.hpp index e3c78dc3fa6b..7e4d2fc54cd9 100644 --- a/shell/inc/spsupp/spsuppServ.hpp +++ b/shell/inc/spsupp/spsuppServ.hpp @@ -13,7 +13,7 @@ #include <objbase.h> ITypeLib* GetTypeLib(); -const wchar_t* GetLOPath(); +const wchar_t* GetHelperExe(); #endif diff --git a/shell/inc/spsupp/spsuppStrings.hrc b/shell/inc/spsupp/spsuppStrings.hrc new file mode 100644 index 000000000000..dc96fbb89459 --- /dev/null +++ b/shell/inc/spsupp/spsuppStrings.hrc @@ -0,0 +1,23 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * 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/. + */ + +#ifndef INCLUDED_SHELL_INC_SPSUPP_STRINGS_HRC +#define INCLUDED_SHELL_INC_SPSUPP_STRINGS_HRC + +#define NC_(Context, String) reinterpret_cast<char const *>(Context "\004" u8##String) + +#define RID_STR_SP_VIEW_OR_EDIT_TITLE NC_("RID_STR_SP_VIEW_OR_EDIT_TITLE", "Open Document") +#define RID_STR_SP_VIEW_OR_EDIT_MESSAGE NC_("RID_STR_SP_VIEW_OR_EDIT_MESSAGE", "You are opening document\n\n %DOCNAME\n\nDo you want to open it to view or to edit?") +#define RID_STR_SP_VIEW_OR_EDIT_VIEW NC_("RID_STR_SP_VIEW_OR_EDIT_VIEW", "View") +#define RID_STR_SP_VIEW_OR_EDIT_EDIT NC_("RID_STR_SP_VIEW_OR_EDIT_EDIT", "Edit") +#define RID_STR_SP_VIEW_OR_EDIT_CANCEL NC_("RID_STR_SP_VIEW_OR_EDIT_CANCEL", "Cancel") + +#endif // INCLUDED_SHELL_INC_SPSUPP_STRINGS_HRC + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |