sw/Library_sw.mk | 2 +- sw/source/uibase/shells/translatehelper.cxx | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-)
New commits: commit baf7b40445f1ef681d9e64a825dd34f7a8117076 Author: Thorsten Behrens <[email protected]> AuthorDate: Wed Nov 30 12:09:17 2022 +0100 Commit: Thorsten Behrens <[email protected]> CommitDate: Wed Nov 30 23:57:31 2022 +0100 WASM: need sw/../translatehelper.cxx back ..since that now contains helper methods like PasteHTMLToPaM Change-Id: Ib8752e93ca52b17c173d0e18dd727a426fde893e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143483 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <[email protected]> diff --git a/sw/Library_sw.mk b/sw/Library_sw.mk index 9c0b6d268e60..0e6c2679cb66 100644 --- a/sw/Library_sw.mk +++ b/sw/Library_sw.mk @@ -696,7 +696,7 @@ $(eval $(call gb_Library_add_exception_objects,sw,\ sw/source/uibase/shells/grfsh \ sw/source/uibase/shells/grfshex \ sw/source/uibase/shells/langhelper \ - $(if $(ENABLE_CURL),sw/source/uibase/shells/translatehelper) \ + sw/source/uibase/shells/translatehelper \ sw/source/uibase/shells/listsh \ sw/source/uibase/shells/mediash \ sw/source/uibase/shells/navsh \ diff --git a/sw/source/uibase/shells/translatehelper.cxx b/sw/source/uibase/shells/translatehelper.cxx index 92f09913730a..e57a1cc96cdc 100644 --- a/sw/source/uibase/shells/translatehelper.cxx +++ b/sw/source/uibase/shells/translatehelper.cxx @@ -16,6 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_wasm_strip.h> #include <wrtsh.hxx> #include <pam.hxx> #include <node.hxx> @@ -88,6 +89,7 @@ void PasteHTMLToPaM(SwWrtShell& rWrtSh, SwPaM* pCursor, const OString& rData, bo } } +#if !ENABLE_WASM_STRIP_EXTRA void TranslateDocument(SwWrtShell& rWrtSh, const TranslateAPIConfig& rConfig) { bool bCancel = false; @@ -205,4 +207,5 @@ void TranslateDocumentCancellable(SwWrtShell& rWrtSh, const TranslateAPIConfig& if (xStatusIndicator.is()) xStatusIndicator->end(); } +#endif // !ENABLE_WASM_STRIP_EXTRA }
