diff options
author | Caolán McNamara <caolanm@redhat.com> | 2017-11-29 10:02:31 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2017-11-29 11:44:56 +0100 |
commit | 434036d8100fbb6845a55eff2e544983163ed277 (patch) | |
tree | e7efa2144cf7745ecf76f24be09987e05ee88eb6 /vcl/workben | |
parent | 454d1f464c3979a50d8b02ceb518e65703ac751d (diff) |
add pptx support to fftester
Change-Id: I517fa449ec75d8817cc3e03d0d90ab4c289a7c0f
Reviewed-on: https://gerrit.libreoffice.org/45477
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 7e78903a625f..4c9c131e39b2 100644 --- a/vcl/workben/fftester.cxx +++ b/vcl/workben/fftester.cxx @@ -445,6 +445,20 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) SvFileStream aFileStream(out, StreamMode::READ); ret = (int) (*pfnImport)(aFileStream); } + else if (strcmp(argv[2], "pptx") == 0) + { + static FFilterCall pfnImport(nullptr); + if (!pfnImport) + { + osl::Module aLibrary; + aLibrary.loadRelative(&thisModule, "libsdlo.so", SAL_LOADMODULE_LAZY); + pfnImport = reinterpret_cast<FFilterCall>( + aLibrary.getFunctionSymbol("TestImportPPTX")); + aLibrary.release(); + } + SvFileStream aFileStream(out, StreamMode::READ); + ret = (int) (*pfnImport)(aFileStream); + } else if (strcmp(argv[2], "xls") == 0) { static FFilterCall pfnImport(nullptr); |