summaryrefslogtreecommitdiff
path: root/vcl/workben
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-08-20 20:58:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-08-21 08:09:03 +0100
commit2c387e2018ec56dcec80600bbf50f6c8c43a2b62 (patch)
tree986cef462122794a6e6fbf9ab1191c7e886dc257 /vcl/workben
parent684a210dd44ba5bb239eb07842ced767059a3fb8 (diff)
allow differentiation between ww6 and ww8
Change-Id: Ia2181b3e9d01661aee521a763b0f87c65e6bad0c
Diffstat (limited to 'vcl/workben')
-rw-r--r--vcl/workben/fftester.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/vcl/workben/fftester.cxx b/vcl/workben/fftester.cxx
index b3e0b6a45d22..8de9d18a9838 100644
--- a/vcl/workben/fftester.cxx
+++ b/vcl/workben/fftester.cxx
@@ -63,7 +63,7 @@ using namespace cppu;
extern "C" { static void SAL_CALL thisModule() {} }
-typedef bool (*WFilterCall)(const OUString &rUrl);
+typedef bool (*WFilterCall)(const OUString &rUrl, const OUString &rFlt);
/* This constant specifies the number of inputs to process before restarting.
* This is optional, but helps limit the impact of memory leaks and similar
@@ -312,7 +312,10 @@ try_again:
SvFileStream aFileStream(out, StreamMode::READ);
ret = (int) (*pfnImport)(aFileStream, aTarget, NULL);
}
- else if (strcmp(argv[2], "doc") == 0)
+ else if ( (strcmp(argv[2], "doc") == 0) ||
+ (strcmp(argv[2], "ww8") == 0) ||
+ (strcmp(argv[2], "ww6") == 0) ||
+ (strcmp(argv[2], "ww2") == 0) )
{
static WFilterCall pfnImport(0);
if (!pfnImport)
@@ -323,7 +326,12 @@ try_again:
aLibrary.getFunctionSymbol("TestImportDOC"));
aLibrary.release();
}
- ret = (int) (*pfnImport)(out);
+ if (strcmp(argv[2], "ww6") == 0)
+ ret = (int) (*pfnImport)(out, OUString("CWW6"));
+ else if (strcmp(argv[2], "ww2") == 0)
+ ret = (int) (*pfnImport)(out, OUString("WW6"));
+ else
+ ret = (int) (*pfnImport)(out, OUString("CWW8"));
}
}