VisioDocument.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libvisio
3  * Version: MPL 1.1 / GPLv2+ / LGPLv2+
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License or as specified alternatively below. You may obtain a copy of
8  * the License at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * Major Contributor(s):
16  * Copyright (C) 2011 Fridrich Strba <fridrich.strba@bluewin.ch>
17  * Copyright (C) 2011 Eilidh McAdam <tibbylickle@gmail.com>
18  *
19  *
20  * All Rights Reserved.
21  *
22  * For minor contributions see the git repository.
23  *
24  * Alternatively, the contents of this file may be used under the terms of
25  * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
26  * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
27  * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
28  * instead of those above.
29  */
30 
31 #ifndef __VISIODOCUMENT_H__
32 #define __VISIODOCUMENT_H__
33 
34 #include <libwpd/libwpd.h>
35 #include <libwpg/libwpg.h>
36 #include "VSDStringVector.h"
37 
38 class WPXInputStream;
39 
40 namespace libvisio
41 {
42 
44 {
45 public:
46 
47  static bool isSupported(WPXInputStream *input);
48 
49  static bool parse(WPXInputStream *input, libwpg::WPGPaintInterface *painter);
50 
51  static bool parseStencils(WPXInputStream *input, libwpg::WPGPaintInterface *painter);
52 
53  static bool generateSVG(WPXInputStream *input, VSDStringVector &output);
54 
55  static bool generateSVGStencils(WPXInputStream *input, VSDStringVector &output);
56 };
57 
58 } // namespace libvisio
59 
60 #endif // __VISIODOCUMENT_H__
61 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
static bool parse(WPXInputStream *input, libwpg::WPGPaintInterface *painter)
Parses the input stream content.
Definition: VisioDocument.cpp:367
static bool isSupported(WPXInputStream *input)
Analyzes the content of an input stream to see if it can be parsed.
Definition: VisioDocument.cpp:348
Definition: VisioDocument.h:43
Definition: VSDStringVector.h:39
static bool generateSVGStencils(WPXInputStream *input, VSDStringVector &output)
Parses the input stream content and extracts stencil pages.
Definition: VisioDocument.cpp:444
static bool parseStencils(WPXInputStream *input, libwpg::WPGPaintInterface *painter)
Parses the input stream content and extracts stencil pages, one stencil page per output page...
Definition: VisioDocument.cpp:398
static bool generateSVG(WPXInputStream *input, VSDStringVector &output)
Parses the input stream content and generates a valid Scalable Vector Graphics Provided as a convenie...
Definition: VisioDocument.cpp:429

Generated for libvisio by doxygen 1.8.5