LibreOffice Module drawinglayer (master) 1
primitive2dxmldump.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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 */
9
10#ifndef INCLUDED_DRAWINGLAYER_TOOLS_PRIMITIVE2DXMLDUMP_HXX
11#define INCLUDED_DRAWINGLAYER_TOOLS_PRIMITIVE2DXMLDUMP_HXX
12
13#include <sal/config.h>
15#include <libxml/tree.h>
17#include <test/xmldocptr.hxx>
18#include <vector>
19
20namespace tools { class XmlWriter; }
21
22namespace drawinglayer
23{
24
26{
27private:
28 std::vector<bool> maFilter;
29 void decomposeAndWrite(const drawinglayer::primitive2d::Primitive2DContainer& rPrimitive2DSequence, tools::XmlWriter& rWriter);
30
31public:
34
42 xmlDocUniquePtr dumpAndParse(const drawinglayer::primitive2d::Primitive2DContainer& aPrimitive2DSequence, const OUString& rStreamName = OUString());
43
45 void dump(const drawinglayer::primitive2d::Primitive2DContainer& rPrimitive2DSequence, const OUString& rStreamName);
46
47};
48
49}
50
51#endif // INCLUDED_DRAWINGLAYER_TOOLS_PRIMITIVE2DXMLDUMP_HXX
52
53/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define DRAWINGLAYER_DLLPUBLIC
VCL_DLLPUBLIC void dump(const SkBitmap &bitmap, const char *file)
std::unique_ptr< xmlDoc, xmlDocDeleter > xmlDocUniquePtr