[Libreoffice-commits] core.git: vcl/workben

Caolán McNamara caolanm at redhat.com
Thu Jun 15 12:50:34 UTC 2017


 vcl/workben/fftester.cxx |   14 ++++++++++++++
 1 file changed, 14 insertions(+)

New commits:
commit 83a4d5790cb5b27c19e82b6c9186b69e836defc6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Thu Jun 15 13:49:27 2017 +0100

    add quattro pro filter to fftester
    
    Change-Id: If59114dca8adb94266838f496d8b5d60d322bca2

diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index eae827a81e9f..2f0f8b0b4dc8 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -476,6 +476,20 @@ try_again:
                 SvFileStream aFileStream(out, StreamMode::READ);
                 ret = (int) (*pfnImport)(aFileStream);
             }
+            else if (strcmp(argv[2], "qpw") == 0)
+            {
+                static FFilterCall pfnImport(nullptr);
+                if (!pfnImport)
+                {
+                    osl::Module aLibrary;
+                    aLibrary.loadRelative(&thisModule, "libscfiltlo.so", SAL_LOADMODULE_LAZY);
+                    pfnImport = reinterpret_cast<FFilterCall>(
+                        aLibrary.getFunctionSymbol("TestImportQPW"));
+                    aLibrary.release();
+                }
+                SvFileStream aFileStream(out, StreamMode::READ);
+                ret = (int) (*pfnImport)(aFileStream);
+            }
 
 #endif
         }


More information about the Libreoffice-commits mailing list