build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / include / test / primitive2dxmldump.hxx
blob80ef271ee720418b93e0bb7af69c4913c5ddc2d6
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
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>
20 #include <vector>
22 class OOO_DLLPUBLIC_TEST Primitive2dXmlDump final
24 private:
25 std::vector<bool> maFilter;
26 void decomposeAndWrite(const drawinglayer::primitive2d::Primitive2DContainer& rPrimitive2DSequence, XmlWriter& rWriter);
28 public:
29 Primitive2dXmlDump();
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
37 file for examination.
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: */