1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_UNOTEST_FILTERS_TEST_HXX
11 #define INCLUDED_UNOTEST_FILTERS_TEST_HXX
13 #include <comphelper/documentconstants.hxx>
14 #include <rtl/ustring.hxx>
15 #include <unotest/detail/unotestdllapi.hxx>
16 #include <sot/formats.hxx>
28 * NOTE, any files beginning with CVE-, BID- or EDB- will be assumed to be
29 * encrypted using arcfour with key 0x435645, this is to silence panicky
30 * virus/malware-checkers
32 * e.g. m[de]crypt --bare -a arcfour -o hex -k 435645 -s 3
34 /* Implementation of Filters test */
35 class OOO_DLLPUBLIC_UNOTEST FiltersTest
40 const OUString
&rFilter
,
41 //root dir of test files, must contain pass, fail, indeterminate
43 //additional filter data for SfxFilter
44 const OUString
&rUserData
= OUString(),
45 //SfxFilterFlags for SfxFilter
46 SfxFilterFlags nFilterFlags
= SfxFilterFlags::IMPORT
,
47 //Clipboard id for SfxFilter
48 SotClipboardFormatId nClipboardID
= SotClipboardFormatId::NONE
,
49 //additional filter version for SfxFilter
50 unsigned int nFilterVersion
= 0,
52 bool bExport
= false);
55 const OUString
&rFilter
,
57 const OUString
&rUserData
,
58 SfxFilterFlags nFilterFlags
,
59 SotClipboardFormatId nClipboardID
,
60 unsigned int nFilterVersion
) = 0;
63 const OUString
&/*rFilter*/,
64 const OUString
&/*rURL*/,
65 const OUString
&/*rUserData*/,
66 SfxFilterFlags
/*nFilterFlags*/,
67 SotClipboardFormatId
/*nClipboardID*/,
68 unsigned int /*nFilterVersion*/)
77 filterStatus nExpected
,
78 const OUString
&rFilter
,
80 const OUString
&rUserData
,
81 SfxFilterFlags nFilterFlags
,
82 SotClipboardFormatId nClipboardID
,
83 unsigned int nFilterVersion
,
89 #endif // INCLUDED_UNOTEST_FILTERS_TEST_HXX
91 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */