CanvasParser.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; c-default-style: "k&r"; indent-tabs-mode: nil; tab-width: 2; c-basic-offset: 2 -*- */
2 
3 /* libmwaw
4 * Version: MPL 2.0 / LGPLv2+
5 *
6 * The contents of this file are subject to the Mozilla Public License Version
7 * 2.0 (the "License"); you may not use this file except in compliance with
8 * the License or as specified alternatively below. You may obtain a copy of
9 * the License at http://www.mozilla.org/MPL/
10 *
11 * Software distributed under the License is distributed on an "AS IS" basis,
12 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
13 * for the specific language governing rights and limitations under the
14 * License.
15 *
16 * Major Contributor(s):
17 * Copyright (C) 2002 William Lachance (wrlach@gmail.com)
18 * Copyright (C) 2002,2004 Marc Maurer (uwog@uwog.net)
19 * Copyright (C) 2004-2006 Fridrich Strba (fridrich.strba@bluewin.ch)
20 * Copyright (C) 2006, 2007 Andrew Ziem
21 * Copyright (C) 2011, 2012 Alonso Laurent (alonso@loria.fr)
22 *
23 *
24 * All Rights Reserved.
25 *
26 * For minor contributions see the git repository.
27 *
28 * Alternatively, the contents of this file may be used under the terms of
29 * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
30 * in which case the provisions of the LGPLv2+ are applicable
31 * instead of those above.
32 */
33 
34 #ifndef CANVAS_PARSER
35 # define CANVAS_PARSER
36 
37 #include <string>
38 #include <vector>
39 
40 #include <librevenge/librevenge.h>
41 
42 #include "MWAWDebug.hxx"
43 #include "MWAWGraphicStyle.hxx"
44 #include "MWAWInputStream.hxx"
45 #include "MWAWPosition.hxx"
46 
47 #include "MWAWParser.hxx"
48 
49 namespace CanvasParserInternal
50 {
51 struct Layer;
52 struct State;
53 }
54 
55 class CanvasGraph;
56 class CanvasStyleManager;
57 
61 class CanvasParser final : public MWAWGraphicParser
62 {
63  friend class CanvasGraph;
64  friend class CanvasStyleManager;
65 public:
67  CanvasParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
69  ~CanvasParser() final;
70 
72  bool checkHeader(MWAWHeader *header, bool strict=false) final;
73 
74  // the main parse function
75  void parse(librevenge::RVNGDrawingInterface *documentInterface) final;
76 
77 protected:
79  void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
80 
81  //
82  // interface
83  //
84 
86  bool isWindowsFile() const;
87 
88 protected:
90  bool createZones();
93 
94 
95  // Intermediate level
96 
98  bool readFileHeader();
100  bool readDocumentHeader();
102  bool readBrushes();
104  bool readGrids();
106  bool readLayers();
108  bool readMacroNames();
110  bool readFormats();
112  bool readSprays();
114  bool readViews();
115 
116  //
117  // last v3 zones
118  //
119 
121  bool readEndV3();
122 
123  //
124  // Mac RSRC
125  //
126 
128  bool readRSRCFileHeader(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
130  bool readPrintInfo(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
132  bool readLPOL(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
134  bool readUsers(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
136  bool readWindows(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
137 
138  //
139  // Windows RSRC
140  //
141 
143  bool readRSRCWindowsFile();
145  bool readCNam(MWAWEntry const &entry);
147  bool readCSet(MWAWEntry const &entry);
149  bool readPrinterDev(MWAWEntry const &entry);
151  bool readPage(MWAWEntry const &entry);
153  bool readPrinterSST(MWAWEntry const &entry);
154 
156  bool readUnknownZoneHeader();
158  bool readUnknownZone0();
160  bool readUnknownZone1();
162  bool readUnknownZone2();
164  bool readUnknownZone3();
166  bool readUnknownZone4();
167 
168  //
169  // send data to the listener
170  //
171 
173  bool send(CanvasParserInternal::Layer const &layer);
174 
175  //
176  // low level
177  //
178 
180  bool readString(librevenge::RVNGString &string, int maxSize, bool canBeCString=false);
182  bool readString(MWAWInputStreamPtr input, librevenge::RVNGString &string, int maxSize, bool canBeCString=false);
183 
185  bool decode(long length);
186 
187  //
188  // data
189  //
191  std::shared_ptr<CanvasParserInternal::State> m_state;
193  std::shared_ptr<CanvasGraph> m_graphParser;
196 };
197 #endif
198 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
CanvasParserInternal::Decoder::m_input
MWAWInputStreamPtr m_input
the initial input
Definition: CanvasParser.cxx:113
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
CanvasParser::decode
bool decode(long length)
try to decode some data: length==-1 means decode end of input
Definition: CanvasParser.cxx:562
MWAWParser::getFontConverter
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
CanvasStyleManager.hxx
CanvasParser::readPage
bool readPage(MWAWEntry const &entry)
read the Windows Page RSRC: v3
Definition: CanvasParser.cxx:2199
CanvasParserInternal::State::m_numViews
int m_numViews
the number of views
Definition: CanvasParser.cxx:510
CanvasParser::CanvasStyleManager
friend class CanvasStyleManager
Definition: CanvasParser.hxx:64
MWAWGraphicListenerPtr
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
CanvasParser::readPrintInfo
bool readPrintInfo(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile)
read the print info zone
Definition: CanvasParser.cxx:1770
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWParser::getGraphicListener
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
CanvasParser::getInput
MWAWInputStreamPtr & getInput()
returns the current input
Definition: CanvasParser.cxx:555
CanvasParser::readPrinterSST
bool readPrinterSST(MWAWEntry const &entry)
read the Windows PSST RSRC: v3 (the printer, device name, ...)
Definition: CanvasParser.cxx:2318
CanvasParser::readWindows
bool readWindows(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile)
read the RSRC Windows zone: v3
Definition: CanvasParser.cxx:1974
MWAWDocument::MWAW_T_CANVAS
@ MWAW_T_CANVAS
Deneba Canvas mac: v2-v3 and v5-v8, windows: v3 and v5-v6 and probably v7-v8 ADC Canvas mac: v9-v10,...
Definition: MWAWDocument.hxx:229
CanvasParserInternal
Internal: the structures of a CanvasParser.
Definition: CanvasParser.cxx:61
MWAWInputStream
Internal class used to read the file stream Internal class used to read the file stream,...
Definition: MWAWInputStream.hxx:54
CanvasParser::m_graphParser
std::shared_ptr< CanvasGraph > m_graphParser
the graph parser
Definition: CanvasParser.hxx:193
CanvasParser::readViews
bool readViews()
try to read the views
Definition: CanvasParser.cxx:1559
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
CanvasParserInternal::Layer::Layer
Layer()
constructor
Definition: CanvasParser.cxx:65
CanvasGraph.hxx
MWAWEntry::id
int id() const
returns the id
Definition: MWAWEntry.hxx:164
CanvasParser::readUnknownZone2
bool readUnknownZone2()
read an unknown zone
Definition: CanvasParser.cxx:1473
CanvasParserInternal::State::m_numShapes
int m_numShapes
the number of shapes
Definition: CanvasParser.cxx:508
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
CanvasParser::readUnknownZoneHeader
bool readUnknownZoneHeader()
read the first unknown zone
Definition: CanvasParser.cxx:1090
CanvasParserInternal::State::State
State()
constructor
Definition: CanvasParser.cxx:471
CanvasParser::readRSRCWindowsFile
bool readRSRCWindowsFile()
read the resource file which ends the file
Definition: CanvasParser.cxx:2005
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
libmwaw::appendUnicode
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
CanvasParserInternal::Decoder::decode3
bool decode3(long length)
try to decode a part of the input: v3
Definition: CanvasParser.cxx:267
CanvasParserInternal::State::m_layers
std::vector< Layer > m_layers
the layer
Definition: CanvasParser.cxx:523
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
MWAWPrinter.hxx
CanvasParser::CanvasGraph
friend class CanvasGraph
Definition: CanvasParser.hxx:63
MWAWDocument::MWAW_K_DRAW
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
CanvasParserInternal::State::m_metaData
librevenge::RVNGPropertyList m_metaData
the meta data
Definition: CanvasParser.cxx:526
CanvasParser::isWindowsFile
bool isWindowsFile() const
returns true if the file is a windows file
Definition: CanvasParser.cxx:574
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
CanvasParserInternal::Layer::m_numShapes
int m_numShapes
the number of shape
Definition: CanvasParser.cxx:74
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
CanvasParserInternal::State::m_bitmapSize
long m_bitmapSize
the file bitmap size (Windows v3)
Definition: CanvasParser.cxx:500
CanvasParserInternal::State::m_numColors
int m_numColors
the number of colors
Definition: CanvasParser.cxx:512
CanvasParser::readDocumentHeader
bool readDocumentHeader()
read the document header
Definition: CanvasParser.cxx:968
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
CanvasParserInternal::Decoder::append
bool append(long length)
try to read the following sz bytes and append them to the output
Definition: CanvasParser.cxx:178
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
CanvasParserInternal::State
Internal: the state of a CanvasParser.
Definition: CanvasParser.cxx:469
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
CanvasParserInternal::Decoder::Decoder
Decoder()
constructor
Definition: CanvasParser.cxx:83
CanvasParser::readEndV3
bool readEndV3()
try to read the end zone: v3
Definition: CanvasParser.cxx:1609
CanvasStyleManager
the main class to read the style part of Canvas file
Definition: CanvasStyleManager.hxx:67
CanvasParserInternal::State::m_input
MWAWInputStreamPtr m_input
the uncompressed input
Definition: CanvasParser.cxx:502
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
CanvasParserInternal::Decoder
Internal and low level: the decoder of a canvas file.
Definition: CanvasParser.cxx:81
CanvasParser
the main class to read a Canvas 2 and 3 files
Definition: CanvasParser.hxx:62
CanvasParser::~CanvasParser
~CanvasParser() final
destructor
Definition: CanvasParser.cxx:551
CanvasParserInternal::State::m_decoder
Decoder m_decoder
the main decoder
Definition: CanvasParser.cxx:504
CanvasParserInternal::State::m_pageDimension
MWAWVec2i m_pageDimension
the page dimension
Definition: CanvasParser.cxx:521
CanvasParserInternal::State::m_lengths
std::vector< unsigned long > m_lengths
the file header first 4+1 lengths
Definition: CanvasParser.cxx:496
CanvasParser::readUsers
bool readUsers(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile)
read the RSRC user zone: v3
Definition: CanvasParser.cxx:1909
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
CanvasParser::readLayers
bool readLayers()
try to read the layers
Definition: CanvasParser.cxx:750
MWAWRSRCParser.hxx
CanvasParser::readMacroNames
bool readMacroNames()
read the macro names
Definition: CanvasParser.cxx:1057
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
MWAWParser::getRSRCParser
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
CanvasParser::readUnknownZone3
bool readUnknownZone3()
read an unknown zone
Definition: CanvasParser.cxx:1494
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
CanvasParserInternal::s_showData
static bool s_showData
Definition: CanvasParser.cxx:265
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWParser::setGraphicListener
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
CanvasParser::readFormats
bool readFormats()
read the formats' zone, mainly an unit's conversion table
Definition: CanvasParser.cxx:1317
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWPageSpan::getFormWidth
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:122
CanvasParser::readSprays
bool readSprays()
try to read the spray
Definition: CanvasParser.cxx:1291
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
MWAWVec2< int >
CanvasParserInternal::State::m_isWindowsFile
bool m_isWindowsFile
true if this is a windows file
Definition: CanvasParser.cxx:494
MWAWGraphicListener.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
MWAWHeader
a function used by MWAWDocument to store the version of document
Definition: MWAWHeader.hxx:57
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWEntry::setLength
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
CanvasParserInternal::Decoder::isEnd
bool isEnd() const
returns true if the input is completly decoded
Definition: CanvasParser.cxx:94
MWAWGraphicParser
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
CanvasParser::readUnknownZone0
bool readUnknownZone0()
read an unknown zone: contains a layer name, some font id,sz, ...
Definition: CanvasParser.cxx:1107
MWAWEntry::setId
void setId(int newId)
sets the id
Definition: MWAWEntry.hxx:169
CanvasParserInternal::Decoder::m_isWindows
bool m_isWindows
a flag to know if the file is a windows file
Definition: CanvasParser.cxx:111
MWAWPageSpan::setMarginTop
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
libmwaw::PrinterInfo::read
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
CanvasParserInternal::State::m_sprayLengths
std::vector< unsigned long > m_sprayLengths
the list of spray size
Definition: CanvasParser.cxx:516
CanvasParserInternal::Decoder::m_inputPos
long m_inputPos
the input current position
Definition: CanvasParser.cxx:115
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
CanvasParser::m_styleManager
std::shared_ptr< CanvasStyleManager > m_styleManager
the style manager
Definition: CanvasParser.hxx:195
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
CanvasParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: CanvasParser.cxx:843
CanvasParser.hxx
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
CanvasParserInternal::State::m_numPages
MWAWVec2i m_numPages
the number of pages
Definition: CanvasParser.cxx:519
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
CanvasParser::createZones
bool createZones()
finds the different objects zones
Definition: CanvasParser.cxx:655
CanvasParser::readGrids
bool readGrids()
read the grid: or a list which begins by a grid
Definition: CanvasParser.cxx:1354
CanvasParser::readLPOL
bool readLPOL(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile)
read the RSRC LPol zone: v3
Definition: CanvasParser.cxx:1835
CanvasParserInternal::Decoder::decode
bool decode(long length=-1)
try to decode a part of the input
Definition: CanvasParser.cxx:208
MWAWGraphicStyle.hxx
MWAWGraphicStyle::Gradient
a basic gradient used in a MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:139
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
CanvasParserInternal::State::m_numPatterns
int m_numPatterns
the number of patterns
Definition: CanvasParser.cxx:514
CanvasParser::createDocument
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: CanvasParser.cxx:626
CanvasParser::readBrushes
bool readBrushes()
try to read the brush
Definition: CanvasParser.cxx:1213
CanvasParser::m_state
std::shared_ptr< CanvasParserInternal::State > m_state
the state
Definition: CanvasParser.hxx:191
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
CanvasGraph
the main class to read the graphic part of Canvas file
Definition: CanvasGraph.hxx:71
MWAWPageSpan::setMarginRight
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
CanvasParser::readRSRCFileHeader
bool readRSRCFileHeader(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile)
read the RSRC HeAd(a copy of file header) zone: v3
Definition: CanvasParser.cxx:1867
CanvasParser::send
bool send(CanvasParserInternal::Layer const &layer)
tries to send a layer
Definition: CanvasParser.cxx:2360
CanvasParser::readFileHeader
bool readFileHeader()
read the file header: list of unknown numbers
Definition: CanvasParser.cxx:897
libmwaw::DebugFile
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
CanvasParser::parse
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: CanvasParser.cxx:582
CanvasParserInternal::Layer
Internal: the layer of a CanvasParser.
Definition: CanvasParser.cxx:63
CanvasParserInternal::Layer::m_name
librevenge::RVNGString m_name
the layer name
Definition: CanvasParser.cxx:72
CanvasParser::readCSet
bool readCSet(MWAWEntry const &entry)
read the Windows CSet RSRC: v3 (contains the string Default)
Definition: CanvasParser.cxx:2174
libmwaw
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
CanvasParser::readString
bool readString(librevenge::RVNGString &string, int maxSize, bool canBeCString=false)
try to read a pascal string in the data fork or a Pascal/C string depending on the file type
Definition: CanvasParser.cxx:1715
MWAWStringStream.hxx
MWAWInputStream.hxx
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
librevenge
Definition: MWAWDocument.hxx:57
CanvasParser::readPrinterDev
bool readPrinterDev(MWAWEntry const &entry)
read the Windows DevM RSRC: v3 (main data of the printer device)
Definition: CanvasParser.cxx:2286
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
CanvasParser::readUnknownZone4
bool readUnknownZone4()
read an unknown zone: the last zone of a v2 files
Definition: CanvasParser.cxx:1520
CanvasParserInternal::State::m_brushLengths
std::vector< unsigned long > m_brushLengths
the brush lengths
Definition: CanvasParser.cxx:498
CanvasParser::readUnknownZone1
bool readUnknownZone1()
read an unknown zone
Definition: CanvasParser.cxx:1421
CanvasParserInternal::Layer::m_shapesId
std::vector< int > m_shapesId
the shape id
Definition: CanvasParser.cxx:76
CanvasParser::readCNam
bool readCNam(MWAWEntry const &entry)
read the Windows CNam RSRC: v3 (always 256 0's bytes)
Definition: CanvasParser.cxx:2143
CanvasParserInternal::Decoder::initOutput
bool initOutput(MWAWInputStreamPtr &input, unsigned long const headerSize=0x89c)
first function to init the output (and copy the first headerSize characters)
Definition: CanvasParser.cxx:158
MWAWPageSpan::getFormLength
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:117
CanvasParser::CanvasParser
CanvasParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: CanvasParser.cxx:534
MWAWVec2i
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
libmwaw::DebugStream
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
MWAWParser.hxx
CanvasParserInternal::State::m_numLayers
int m_numLayers
the number of layer
Definition: CanvasParser.cxx:506
MWAWParser::resetGraphicListener
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
CanvasParserInternal::Decoder::m_stream
std::shared_ptr< MWAWStringStream > m_stream
the current stream
Definition: CanvasParser.cxx:117
MWAWGraphicListener
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
CanvasParserInternal::Decoder::unpackBits
bool unpackBits(unsigned char const(&buffer)[256], int n, unsigned char(&buffer2)[256], int &n2) const
try to unpack some bits from buffer into buffer2, assuming buffer and buffer2 differs
Definition: CanvasParser.cxx:120
MWAWStringStream
internal class used to create a RVNGInputStream from a unsigned char's pointer
Definition: MWAWStringStream.hxx:37
CanvasParserInternal::Decoder::m_version
int m_version
the file version
Definition: CanvasParser.cxx:109

Generated on Mon Jul 26 2021 00:00:00 for libmwaw by doxygen 1.8.20