CMXDocument.h Source File documentation

CMXDocument.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /*
3 * This file is part of the libcdr 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 __CMXDOCUMENT_H__
11 #define __CMXDOCUMENT_H__
12
13 #include <librevenge/librevenge.h>
14 #include "libcdr_api.h"
15
16 namespace libcdr
17 {
18 class CMXDocument
19 {
20 public:
21
22 static CDRAPI bool isSupported(librevenge::RVNGInputStream *input);
23
24 static CDRAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter);
25 };
26
27 } // namespace libcdr
28
29 #endif // __CMXDOCUMENT_H__
30 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libcdr::readU8
uint8_t readU8(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:163
libcdr::CMXDocument::parse
static CDRAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter)
Parses the input stream content.
Definition: CMXDocument.cpp:58
libcdr::CDRContentCollector
Definition: CDRContentCollector.h:31
libcdr::CMXDocument
Definition: CMXDocument.h:18
CDR_FOURCC_RIFF
#define CDR_FOURCC_RIFF
Definition: CDRDocumentStructure.h:105
libcdr::CMXDocument::isSupported
static CDRAPI bool isSupported(librevenge::RVNGInputStream *input)
Analyzes the content of an input stream to see if it can be parsed.
Definition: CMXDocument.cpp:23
CMXParser.h
libcdr_api.h
libcdr::CDRParserState::m_pages
std::vector< CDRPage > m_pages
Definition: CDRCollector.h:38
libcdr::CMXParser::parseRecords
bool parseRecords(librevenge::RVNGInputStream *input, long size=-1, unsigned level=0)
Definition: CMXParser.cpp:83
CDRAPI
#define CDRAPI
Definition: libcdr_api.h:23
libcdr::CMXParser
Definition: CMXParser.h:105
libcdr::CDRParserState
Definition: CDRCollector.h:30
libcdr.h
libcdr
Definition: CDRCollector.h:24
libcdr::CDRStylesCollector
Definition: CDRStylesCollector.h:28
CDRDocumentStructure.h
libcdr::CMXParserState
Definition: CMXParser.h:87
CDRContentCollector.h
CDR_FOURCC_RIFX
#define CDR_FOURCC_RIFX
Definition: CDRDocumentStructure.h:106
libcdr_utils.h
CDRStylesCollector.h
libcdr::readU32
uint32_t readU32(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:204