diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-21 13:08:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-21 17:31:44 +0100 |
commit | 6191f701e8cbb972acf7f56b0a9a7fcd97a4f377 (patch) | |
tree | ace995210ffbbb006aa34a1b3545cea30bbb1388 /vcl | |
parent | a32eabb69af9fe7317fac794ec86e82fce178498 (diff) |
add docx support to fftester
Change-Id: Ia761e23c011c53f8f786ac336efd4b9e94fc6e35
Reviewed-on: https://gerrit.libreoffice.org/45033
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/workben/fftester.cxx | 14 |
1 files changed, 14 insertions, 0 deletions
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<FFilterCall>( + 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); |