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_TEST_PRIMITIVE2DXMLDUMP_HXX
11 #define INCLUDED_TEST_PRIMITIVE2DXMLDUMP_HXX
13 #include <sal/config.h>
14 #include <test/testdllapi.hxx>
15 #include <test/xmlwriter.hxx>
17 #include <libxml/tree.h>
18 #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
22 class OOO_DLLPUBLIC_TEST Primitive2dXmlDump final
25 std::vector
<bool> maFilter
;
26 void decomposeAndWrite(const drawinglayer::primitive2d::Primitive2DContainer
& rPrimitive2DSequence
, XmlWriter
& rWriter
);
30 ~Primitive2dXmlDump();
32 /** The actual result that will be used for testing.
34 This function normally uses a SvMemoryStream for its operation; but
35 can use a physical file when a filename is specified in
36 pTempStreamName - this is useful when creating the test, to dump the
39 xmlDocPtr
dumpAndParse(const drawinglayer::primitive2d::Primitive2DContainer
& aPrimitive2DSequence
, const OUString
& rTempStreamName
= OUString());
42 #endif // INCLUDED_TEST_PRIMITIVE2DXMLDUMP_HXX
44 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */