CanvasParser.hxx Source File documentation

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 class SubDocument;
55 }
56
57 class CanvasGraph;
58 class CanvasStyleManager;
59
63 class CanvasParser final : public MWAWGraphicParser
64 {
65 friend class CanvasGraph;
66 friend class CanvasStyleManager;
67 public:
69 CanvasParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
71 ~CanvasParser() final;
72
74 bool checkHeader(MWAWHeader *header, bool strict=false) final;
75
76 // the main parse function
77 void parse(librevenge::RVNGDrawingInterface *documentInterface) final;
78
79 protected:
81 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
82
83 //
84 // interface
85 //
86
88 bool isWindowsFile() const;
89
90 protected:
92 bool createZones();
94 MWAWInputStreamPtr &getInput();
95
96
97 // Intermediate level
98
100 bool readFileHeader();
102 bool readDocumentHeader();
104 bool readBrushes();
106 bool readGrids();
108 bool readLayers();
110 bool readMacroNames();
112 bool readFormats();
114 bool readSprays();
116 bool readViews();
117
118 //
119 // last v3 zones
120 //
121
123 bool readEndV3();
124
125 //
126 // Mac RSRC
127 //
128
130 bool readRSRCFileHeader(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
132 bool readPrintInfo(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
134 bool readLPOL(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
136 bool readUsers(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
138 bool readWindows(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile);
139
140 //
141 // Windows RSRC
142 //
143
145 bool readRSRCWindowsFile();
147 bool readCNam(MWAWEntry const &entry);
149 bool readCSet(MWAWEntry const &entry);
151 bool readPrinterDev(MWAWEntry const &entry);
153 bool readPage(MWAWEntry const &entry);
155 bool readPrinterSST(MWAWEntry const &entry);
156
158 bool readUnknownZoneHeader();
160 bool readUnknownZone0();
162 bool readUnknownZone1();
164 bool readUnknownZone2();
166 bool readUnknownZone3();
168 bool readUnknownZone4();
169
170 //
171 // send data to the listener
172 //
173
175 bool send(CanvasParserInternal::Layer const &layer);
176
177 //
178 // low level
179 //
180
182 bool readString(librevenge::RVNGString &string, int maxSize, bool canBeCString=false);
184 bool readString(MWAWInputStreamPtr input, librevenge::RVNGString &string, int maxSize, bool canBeCString=false);
185
187 bool decode(long length);
188
189 //
190 // data
191 //
193 std::shared_ptr<CanvasParserInternal::State> m_state;
195 std::shared_ptr<CanvasGraph> m_graphParser;
197 std::shared_ptr<CanvasStyleManager> m_styleManager;
198 };
199 #endif
200 // 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:117
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:565
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:2202
CanvasParserInternal::State::m_numViews
int m_numViews
the number of views
Definition: CanvasParser.cxx:513
CanvasParser::CanvasStyleManager
friend class CanvasStyleManager
Definition: CanvasParser.hxx:66
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:1773
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:558
CanvasParser::readPrinterSST
bool readPrinterSST(MWAWEntry const &entry)
read the Windows PSST RSRC: v3 (the printer, device name, ...)
Definition: CanvasParser.cxx:2321
CanvasParser::readWindows
bool readWindows(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile)
read the RSRC Windows zone: v3
Definition: CanvasParser.cxx:1977
MWAWDocument::MWAW_T_CANVAS
@ MWAW_T_CANVAS
Deneba Canvas: v2-v3.
Definition: MWAWDocument.hxx:228
CanvasParserInternal
Internal: the structures of a CanvasParser.
Definition: CanvasParser.cxx:65
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:195
CanvasParser::readViews
bool readViews()
try to read the views
Definition: CanvasParser.cxx:1562
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:69
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:1476
CanvasParserInternal::State::m_numShapes
int m_numShapes
the number of shapes
Definition: CanvasParser.cxx:511
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:1093
CanvasParserInternal::State::State
State()
constructor
Definition: CanvasParser.cxx:474
CanvasParser::readRSRCWindowsFile
bool readRSRCWindowsFile()
read the resource file which ends the file
Definition: CanvasParser.cxx:2008
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:270
CanvasParserInternal::State::m_layers
std::vector< Layer > m_layers
the layer
Definition: CanvasParser.cxx:526
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
MWAWPrinter.hxx
CanvasParser::CanvasGraph
friend class CanvasGraph
Definition: CanvasParser.hxx:65
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:529
CanvasParser::isWindowsFile
bool isWindowsFile() const
returns true if the file is a windows file
Definition: CanvasParser.cxx:577
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:78
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:503
CanvasParserInternal::State::m_numColors
int m_numColors
the number of colors
Definition: CanvasParser.cxx:515
CanvasParser::readDocumentHeader
bool readDocumentHeader()
read the document header
Definition: CanvasParser.cxx:971
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:182
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:472
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
CanvasParserInternal::Decoder::Decoder
Decoder()
constructor
Definition: CanvasParser.cxx:87
CanvasParser::readEndV3
bool readEndV3()
try to read the end zone: v3
Definition: CanvasParser.cxx:1612
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:505
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:85
CanvasParser
the main class to read a Canvas 2 and 3 files
Definition: CanvasParser.hxx:64
CanvasParser::~CanvasParser
~CanvasParser() final
destructor
Definition: CanvasParser.cxx:554
CanvasParserInternal::State::m_decoder
Decoder m_decoder
the main decoder
Definition: CanvasParser.cxx:507
CanvasParserInternal::State::m_pageDimension
MWAWVec2i m_pageDimension
the page dimension
Definition: CanvasParser.cxx:524
CanvasParserInternal::State::m_lengths
std::vector< unsigned long > m_lengths
the file header first 4+1 lengths
Definition: CanvasParser.cxx:499
CanvasParser::readUsers
bool readUsers(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile)
read the RSRC user zone: v3
Definition: CanvasParser.cxx:1912
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
CanvasParser::readLayers
bool readLayers()
try to read the layers
Definition: CanvasParser.cxx:753
MWAWRSRCParser.hxx
CanvasParser::readMacroNames
bool readMacroNames()
read the macro names
Definition: CanvasParser.cxx:1060
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:1497
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
CanvasParserInternal::s_showData
static bool s_showData
Definition: CanvasParser.cxx:268
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:1320
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
MWAWPictData.hxx
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:1294
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:497
MWAWGraphicListener.hxx
MWAWGraphicShape.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:98
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:1110
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:115
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:519
CanvasParserInternal::Decoder::m_inputPos
long m_inputPos
the input current position
Definition: CanvasParser.cxx:119
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:197
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:846
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:522
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
CanvasParser::createZones
bool createZones()
finds the different objects zones
Definition: CanvasParser.cxx:658
CanvasParser::readGrids
bool readGrids()
read the grid: or a list which begins by a grid
Definition: CanvasParser.cxx:1357
CanvasParser::readLPOL
bool readLPOL(MWAWInputStreamPtr input, MWAWEntry const &entry, libmwaw::DebugFile &ascFile)
read the RSRC LPol zone: v3
Definition: CanvasParser.cxx:1838
CanvasParserInternal::Decoder::decode
bool decode(long length=-1)
try to decode a part of the input
Definition: CanvasParser.cxx:212
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:517
CanvasParser::createDocument
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: CanvasParser.cxx:629
CanvasParser::readBrushes
bool readBrushes()
try to read the brush
Definition: CanvasParser.cxx:1216
CanvasParser::m_state
std::shared_ptr< CanvasParserInternal::State > m_state
the state
Definition: CanvasParser.hxx:193
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:1870
CanvasParser::send
bool send(CanvasParserInternal::Layer const &layer)
tries to send a layer
Definition: CanvasParser.cxx:2363
CanvasParser::readFileHeader
bool readFileHeader()
read the file header: list of unknown numbers
Definition: CanvasParser.cxx:900
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:585
CanvasParserInternal::Layer
Internal: the layer of a CanvasParser.
Definition: CanvasParser.cxx:67
CanvasParserInternal::Layer::m_name
librevenge::RVNGString m_name
the layer name
Definition: CanvasParser.cxx:76
CanvasParser::readCSet
bool readCSet(MWAWEntry const &entry)
read the Windows CSet RSRC: v3 (contains the string Default)
Definition: CanvasParser.cxx:2177
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:1718
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
MWAWPictBitmap.hxx
CanvasParser::readPrinterDev
bool readPrinterDev(MWAWEntry const &entry)
read the Windows DevM RSRC: v3 (main data of the printer device)
Definition: CanvasParser.cxx:2289
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:1523
CanvasParserInternal::State::m_brushLengths
std::vector< unsigned long > m_brushLengths
the brush lengths
Definition: CanvasParser.cxx:501
CanvasParser::readUnknownZone1
bool readUnknownZone1()
read an unknown zone
Definition: CanvasParser.cxx:1424
CanvasParserInternal::Layer::m_shapesId
std::vector< int > m_shapesId
the shape id
Definition: CanvasParser.cxx:80
CanvasParser::readCNam
bool readCNam(MWAWEntry const &entry)
read the Windows CNam RSRC: v3 (always 256 0's bytes)
Definition: CanvasParser.cxx:2146
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:162
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:537
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:509
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:121
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:124
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:113