diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-12-04 17:01:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-12-04 22:07:34 +0100 |
commit | fc26ea9e0e8cd4873ddd1f5736d7fed071f5e3e2 (patch) | |
tree | e893eee420862e37b165772248bbc4ad065520e6 /vcl/workben | |
parent | 58784b89c22c6d63fff18fea0aa6636a1370044c (diff) |
add html to fftester
Change-Id: I85c2ce10ff6142d04310f834b16b2ded474e7a34
Reviewed-on: https://gerrit.libreoffice.org/45814
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/workben')
-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 db9b8d0f7ca6..3dd2fdb014f6 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -375,6 +375,20 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) SvFileStream aFileStream(out, StreamMode::READ); ret = (int) (*pfnImport)(aFileStream); } + else if (strcmp(argv[2], "html") == 0) + { + static FFilterCall pfnImport(nullptr); + if (!pfnImport) + { + osl::Module aLibrary; + aLibrary.loadRelative(&thisModule, "libswlo.so", SAL_LOADMODULE_LAZY); + pfnImport = reinterpret_cast<FFilterCall>( + aLibrary.getFunctionSymbol("TestImportHTML")); + aLibrary.release(); + } + SvFileStream aFileStream(out, StreamMode::READ); + ret = (int) (*pfnImport)(aFileStream); + } else if (strcmp(argv[2], "fodt") == 0) { static FFilterCall pfnImport(nullptr); |