CDRDocument.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 __CDRDOCUMENT_H__
11 #define __CDRDOCUMENT_H__
12
13 #include <librevenge/librevenge.h>
14 #include "libcdr_api.h"
15
16 namespace libcdr
17 {
18 class CDRDocument
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 // __CDRDOCUMENT_H__
30 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libcdr::CDRDummyDeleter
Definition: libcdr_utils.h:63
libcdr::EndOfStreamException
Definition: libcdr_utils.h:99
libcdr::readU8
uint8_t readU8(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:163
CDRParser.h
libcdr::CDRContentCollector
Definition: CDRContentCollector.h:31
libcdr::CDRParserState::setColorTransform
void setColorTransform(const std::vector< unsigned char > &profile)
Definition: CDRCollector.cpp:45
libcdr::CDRParser::parseRecords
bool parseRecords(librevenge::RVNGInputStream *input, const std::vector< unsigned > &blockLengths=std::vector< unsigned >(), unsigned level=0)
Definition: CDRParser.cpp:491
CDR_FOURCC_RIFF
#define CDR_FOURCC_RIFF
Definition: CDRDocumentStructure.h:105
CDR_DEBUG_MSG
#define CDR_DEBUG_MSG(M)
Definition: libcdr_utils.h:56
libcdr_api.h
libcdr::CDRParserState::m_pages
std::vector< CDRPage > m_pages
Definition: CDRCollector.h:38
CDRAPI
#define CDRAPI
Definition: libcdr_api.h:23
libcdr::CDRParserState
Definition: CDRCollector.h:30
libcdr::CDRDocument
Definition: CDRDocument.h:18
libcdr.h
libcdr
Definition: CDRCollector.h:24
libcdr::CDRDocument::parse
static CDRAPI bool parse(librevenge::RVNGInputStream *input, librevenge::RVNGDrawingInterface *painter)
Parses the input stream content.
Definition: CDRDocument.cpp:102
libcdr::CDRStylesCollector
Definition: CDRStylesCollector.h:28
libcdr::CDRParser
Definition: CDRParser.h:26
libcdr::CDRDocument::isSupported
static CDRAPI bool isSupported(librevenge::RVNGInputStream *input)
Analyzes the content of an input stream to see if it can be parsed.
Definition: CDRDocument.cpp:62
CDRDocumentStructure.h
libcdr::CDRParser::parseWaldo
bool parseWaldo(librevenge::RVNGInputStream *input)
Definition: CDRParser.cpp:169
CDRContentCollector.h
libcdr_utils.h
CDRStylesCollector.h
libcdr::readU32
uint32_t readU32(librevenge::RVNGInputStream *input, bool bigEndian=false)
Definition: libcdr_utils.cpp:204