From 6191f701e8cbb972acf7f56b0a9a7fcd97a4f377 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 21 Nov 2017 13:08:39 +0000 Subject: add docx support to fftester MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ia761e23c011c53f8f786ac336efd4b9e94fc6e35 Reviewed-on: https://gerrit.libreoffice.org/45033 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- vcl/workben/fftester.cxx | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'vcl/workben') diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx index 2ddcf72864c7..5615e171bfe5 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -386,6 +386,20 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) SvFileStream aFileStream(out, StreamMode::READ); ret = (int) (*pfnImport)(aFileStream); } + else if (strcmp(argv[2], "docx") == 0) + { + static FFilterCall pfnImport(nullptr); + if (!pfnImport) + { + osl::Module aLibrary; + aLibrary.loadRelative(&thisModule, "libswlo.so", SAL_LOADMODULE_LAZY); + pfnImport = reinterpret_cast( + aLibrary.getFunctionSymbol("TestImportDOCX")); + aLibrary.release(); + } + SvFileStream aFileStream(out, StreamMode::READ); + ret = (int) (*pfnImport)(aFileStream); + } else if (strcmp(argv[2], "fods") == 0) { static FFilterCall pfnImport(nullptr); -- cgit