CorelPainterParser.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 CORELPAINTER_PARSER
35 # define CORELPAINTER_PARSER
36 
37 #include <string>
38 #include <vector>
39 
40 #include <librevenge/librevenge.h>
41 
42 #include "MWAWDebug.hxx"
43 #include "MWAWInputStream.hxx"
44 
45 #include "MWAWParser.hxx"
46 
47 class MWAWPict;
48 
50 {
51 struct Node;
52 struct ZoneHeader;
53 struct State;
54 
55 class SubDocument;
56 }
57 
63 {
64 public:
67  CorelPainterParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
69  ~CorelPainterParser() final;
70 
72  bool checkHeader(MWAWHeader *header, bool strict=false) final;
73 
75  void parse(librevenge::RVNGDrawingInterface *documentInterface) final;
76 
77 protected:
79  void init();
80 
82  void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
84  bool sendBitmap(CorelPainterParserInternal::ZoneHeader const &zone);
86  bool sendZone(CorelPainterParserInternal::ZoneHeader const &zone);
87 protected:
89  bool createZones();
91  std::shared_ptr<CorelPainterParserInternal::Node> readCompressionTree(long endPos, int numNodes);
92 
94  bool decompressData(CorelPainterParserInternal::ZoneHeader const &zone, long endPos, int &value, int &buffer, int &numBitsInBuffer);
95  // Intermediate level
96 
98  bool readZoneHeader(CorelPainterParserInternal::ZoneHeader &zone);
100  std::shared_ptr<MWAWPict> readBitmap(CorelPainterParserInternal::ZoneHeader const &zone);
102  bool readBitmapRow(CorelPainterParserInternal::ZoneHeader const &zone,
103  std::vector<MWAWColor> &colorList, std::vector<unsigned char> &previousValues);
105  bool readResourcesList(CorelPainterParserInternal::ZoneHeader &zone);
107  bool readResource(MWAWEntry &entry);
109  bool sendText(MWAWEntry const &entry, MWAWEntry const &unicodeEntry);
111  bool readPolygon(long endPos, MWAWGraphicShape &shape, MWAWGraphicStyle &style);
112 
114  MWAWPosition getZonePosition(CorelPainterParserInternal::ZoneHeader const &zone) const;
115 
116  // low level
118  bool readDouble(double &res);
119  //
120  // data
121  //
123  std::shared_ptr<CorelPainterParserInternal::State> m_state;
124 };
125 #endif
126 // 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
CorelPainterParserInternal::State::State
State()
constructor
Definition: CorelPainterParser.cxx:126
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
CorelPainterParser::readZoneHeader
bool readZoneHeader(CorelPainterParserInternal::ZoneHeader &zone)
try to read the header zone
Definition: CorelPainterParser.cxx:1328
CorelPainterParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: CorelPainterParser.cxx:149
MWAWSubDocument::m_zone
MWAWEntry m_zone
if valid the zone to parse
Definition: MWAWSubDocument.hxx:79
MWAWGraphicStyle::m_lineCap
LineCap m_lineCap
the line cap
Definition: MWAWGraphicStyle.hxx:510
MWAWParser::getFontConverter
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
CorelPainterParserInternal::ZoneHeader::m_dimension
MWAWVec2i m_dimension
the bitmap dimension
Definition: CorelPainterParser.cxx:101
MWAWGraphicListenerPtr
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
MWAWPageSpan::setPageSpan
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
CorelPainterParserInternal::ZoneHeader::m_origin
MWAWVec2i m_origin
the bitmap origin
Definition: CorelPainterParser.cxx:103
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
MWAWGraphicStyle::J_Bevel
@ J_Bevel
Definition: MWAWGraphicStyle.hxx:53
MWAWPictBitmapIndexed::setColors
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:446
CorelPainterParser::readBitmapRow
bool readBitmapRow(CorelPainterParserInternal::ZoneHeader const &zone, std::vector< MWAWColor > &colorList, std::vector< unsigned char > &previousValues)
try to read a bitmap line
Definition: CorelPainterParser.cxx:357
MWAWDocument::Type
Type
an enum to define the different type of document
Definition: MWAWDocument.hxx:99
libmwaw::DebugFile::addDelimiter
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
CorelPainterParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: CorelPainterParser.cxx:170
CorelPainterParser::readResourcesList
bool readResourcesList(CorelPainterParserInternal::ZoneHeader &zone)
try to read the list of resource zone (in the data fork)
Definition: CorelPainterParser.cxx:998
MWAWParser::getGraphicListener
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:415
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
MWAWDocument::MWAW_K_PAINT
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
MWAWEntry::isParsed
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
CorelPainterParser::decompressData
bool decompressData(CorelPainterParserInternal::ZoneHeader const &zone, long endPos, int &value, int &buffer, int &numBitsInBuffer)
try to decompress a data
Definition: CorelPainterParser.cxx:481
MWAWGraphicShape::m_path
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:228
CorelPainterParserInternal::ZoneHeader::isBitmap
bool isBitmap() const
check if it is a picture header
Definition: CorelPainterParser.cxx:89
CorelPainterParser::getZonePosition
MWAWPosition getZonePosition(CorelPainterParserInternal::ZoneHeader const &zone) const
update the position beforing sending a bitmap, shape, ...
Definition: CorelPainterParser.cxx:542
MWAWGraphicStyle::m_fillRuleEvenOdd
bool m_fillRuleEvenOdd
true if the fill rule is evenod
Definition: MWAWGraphicStyle.hxx:563
MWAWEmbeddedObject::m_dataList
std::vector< librevenge::RVNGBinaryData > m_dataList
the picture content: one data by representation
Definition: libmwaw_internal.hxx:512
MWAWFont::setColor
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
libmwaw::DebugFile::open
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWEntry::type
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
CorelPainterParserInternal::State::m_zoneList
std::vector< ZoneHeader > m_zoneList
the main zone header
Definition: CorelPainterParser.cxx:132
CorelPainterParserInternal::ZoneHeader::ZoneHeader
ZoneHeader()
constructor
Definition: CorelPainterParser.cxx:74
CorelPainterParserInternal::Node
Internal: a node of a CorelPainterParser.
Definition: CorelPainterParser.cxx:59
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
CorelPainterParserInternal::SubDocument::m_unicodeEntry
MWAWEntry m_unicodeEntry
the unicode entry
Definition: CorelPainterParser.cxx:164
MWAWEntry::setParsed
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
MWAWPictBitmap::getBinary
bool getBinary(MWAWEmbeddedObject &picture) const override
returns the final picture
Definition: MWAWPictBitmap.hxx:225
MWAWFont::engraveBit
@ engraveBit
Definition: MWAWFont.hxx:190
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
CorelPainterParserInternal::ZoneHeader::m_tree
std::shared_ptr< Node > m_tree
the Huffman tree
Definition: CorelPainterParser.cxx:109
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWPageSpan::getMarginLeft
double getMarginLeft() const
returns the left margin
Definition: MWAWPageSpan.hxx:132
CorelPainterParser::createZones
bool createZones()
finds the different objects zones
Definition: CorelPainterParser.cxx:280
CorelPainterParser::readResource
bool readResource(MWAWEntry &entry)
try to parse the resource data
Definition: CorelPainterParser.cxx:1084
CorelPainterParserInternal::Node::m_values
int m_values[2]
the values
Definition: CorelPainterParser.cxx:68
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
CorelPainterParser::readDouble
bool readDouble(double &res)
try to read a double 1 bytes exponent, 3 mantisse
Definition: CorelPainterParser.cxx:509
MWAWGraphicStyle::m_lineOpacity
float m_lineOpacity
the line opacity: 0=transparent
Definition: MWAWGraphicStyle.hxx:514
CorelPainterParserInternal::State::m_pixelByInch
int m_pixelByInch
number of pixel by inch
Definition: CorelPainterParser.cxx:134
CorelPainterParserInternal::SubDocument::SubDocument
SubDocument(CorelPainterParser &pars, MWAWInputStreamPtr const &input, MWAWEntry const &entry, MWAWEntry const &unicodeEntry)
Definition: CorelPainterParser.cxx:142
MWAWPictBitmapColor::setRow
void setRow(int j, MWAWColor const *val)
sets all cell contents of a row
Definition: MWAWPictBitmap.hxx:534
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
CorelPainterParser::m_state
std::shared_ptr< CorelPainterParserInternal::State > m_state
the state
Definition: CorelPainterParser.hxx:123
MWAWGraphicStyle::J_Round
@ J_Round
Definition: MWAWGraphicStyle.hxx:53
MWAWSubDocument.hxx
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
CorelPainterParserInternal
Internal: the structures of a CorelPainterParser.
Definition: CorelPainterParser.cxx:56
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
CorelPainterParserInternal::ZoneHeader::m_bitmapPos
long m_bitmapPos
the bitmap position
Definition: CorelPainterParser.cxx:111
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
MWAWPageSpan::getMarginRight
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:137
CorelPainterParserInternal::Node::m_childs
std::shared_ptr< Node > m_childs[2]
the child
Definition: CorelPainterParser.cxx:66
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWGraphicStyle::emptyStyle
static MWAWGraphicStyle emptyStyle()
returns an empty style.
Definition: MWAWGraphicStyle.hxx:401
CorelPainterParser::sendText
bool sendText(MWAWEntry const &entry, MWAWEntry const &unicodeEntry)
try to parse the text data
Definition: CorelPainterParser.cxx:653
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
MWAWEntry::setType
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
CorelPainterParser::~CorelPainterParser
~CorelPainterParser() final
destructor
Definition: CorelPainterParser.cxx:198
MWAWParser::setAsciiName
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
MWAWParagraph.hxx
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
libmwaw::Debug::dumpFile
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:193
MWAWEmbeddedObject::isEmpty
bool isEmpty() const
return true if the picture contains no data
Definition: libmwaw_internal.hxx:486
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:508
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
MWAWEntry::setEnd
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
CorelPainterParser::sendBitmap
bool sendBitmap(CorelPainterParserInternal::ZoneHeader const &zone)
try to send a bitmap zone (main bitmap or floater)
Definition: CorelPainterParser.cxx:559
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
MWAWEntry::setBegin
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
MWAWColor::isBlack
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
MWAWParser::setGraphicListener
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
MWAWParser::setVersion
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
CorelPainterParser::readPolygon
bool readPolygon(long endPos, MWAWGraphicShape &shape, MWAWGraphicStyle &style)
try to read a polygon data
Definition: CorelPainterParser.cxx:1459
CorelPainterParserInternal::ZoneHeader::m_isMainZone
bool m_isMainZone
a flag to know if this is the main picture
Definition: CorelPainterParser.cxx:99
MWAWRSRCParserPtr
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
MWAWPosition::m_wrapping
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWPictData.hxx
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
MWAWPict
Generic function used to define/store a picture.
Definition: MWAWPict.hxx:52
MWAWVec2< int >
MWAWGraphicListener.hxx
MWAWPictBitmapIndexed::setRow
void setRow(int j, U const *val)
sets all cell contents of a row
Definition: MWAWPictBitmap.hxx:430
MWAWGraphicShape.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
CorelPainterParserInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)=delete
CorelPainterParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: CorelPainterParser.cxx:152
CorelPainterParserInternal::ZoneHeader
Internal: a zone header of a CorelPainterParser.
Definition: CorelPainterParser.cxx:72
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
MWAWParser::getPageSpan
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
MWAWGraphicParser
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
CorelPainterParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: CorelPainterParser.cxx:926
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
CorelPainterParser::sendZone
bool sendZone(CorelPainterParserInternal::ZoneHeader const &zone)
try to send a not bitmap zone
Definition: CorelPainterParser.cxx:599
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWFont::setSize
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:516
MWAWGraphicStyle::C_Square
@ C_Square
Definition: MWAWGraphicStyle.hxx:51
CorelPainterParserInternal::ZoneHeader::m_flags
int m_flags[2]
the main zone flags
Definition: CorelPainterParser.cxx:117
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
MWAWDocument::MWAW_T_CORELPAINTER
@ MWAW_T_CORELPAINTER
Corel Painter: Fractal Design Painter Mac v1-v4, MetaCreations Mac v5-v6, Corel Painter Mac v7-v10 an...
Definition: MWAWDocument.hxx:224
CorelPainterParserInternal::ZoneHeader::m_numTreeNodes
int m_numTreeNodes
the number of Huffman node
Definition: CorelPainterParser.cxx:107
CorelPainterParser::readCompressionTree
std::shared_ptr< CorelPainterParserInternal::Node > readCompressionTree(long endPos, int numNodes)
try to read the Hoffman tree
Definition: CorelPainterParser.cxx:953
MWAWGraphicStyle::C_Round
@ C_Round
Definition: MWAWGraphicStyle.hxx:51
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
MWAWPictBitmapIndexed
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:357
MWAWGraphicShape::path
static MWAWGraphicShape path(MWAWBox2f const &box)
static constructor to create a path
Definition: MWAWGraphicShape.hxx:173
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
CorelPainterParserInternal::ZoneHeader::m_nextPos
long m_nextPos
the next zone position
Definition: CorelPainterParser.cxx:115
MWAWSubDocument::m_parser
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWGraphicStyle::m_lineJoin
LineJoin m_lineJoin
the line join
Definition: MWAWGraphicStyle.hxx:512
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
CorelPainterParser.hxx
MWAWGraphicShape::scale
void scale(MWAWVec2f const &factor)
rescale all the coordinate
Definition: MWAWGraphicShape.cxx:368
CorelPainterParser::parse
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
the main parser function
Definition: CorelPainterParser.cxx:215
CorelPainterParser::init
void init()
inits all internal variables
Definition: CorelPainterParser.cxx:202
CorelPainterParserInternal::SubDocument
Internal: the subdocument of a CorelPainterParser.
Definition: CorelPainterParser.cxx:140
MWAWInputStream.hxx
MWAWColor::isWhite
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
MWAWHeader::reset
void reset(MWAWDocument::Type type, int vers, Kind kind=MWAWDocument::MWAW_K_TEXT)
resets the data
Definition: MWAWHeader.hxx:84
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWPosition::WNone
@ WNone
Definition: MWAWPosition.hxx:53
librevenge
Definition: MWAWDocument.hxx:57
CorelPainterParser::createDocument
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: CorelPainterParser.cxx:248
CorelPainterParser::readBitmap
std::shared_ptr< MWAWPict > readBitmap(CorelPainterParserInternal::ZoneHeader const &zone)
try to read a bitmap
Definition: CorelPainterParser.cxx:306
MWAWPictBitmap.hxx
CorelPainterParser::CorelPainterParser
CorelPainterParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: CorelPainterParser.cxx:191
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
MWAWBox2< float >
MWAWPictBitmapColor
a bitmap of MWAWColor to store true color bitmap
Definition: MWAWPictBitmap.hxx:469
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
CorelPainterParserInternal::ZoneHeader::m_rsrcDataPos
long m_rsrcDataPos
the resource data position
Definition: CorelPainterParser.cxx:113
CorelPainterParserInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
MWAWGraphicShape::PathData
a simple path component
Definition: MWAWGraphicShape.hxx:53
CorelPainterParser
the main class to read a Painter's file, actually, read Fractal Design Painter 1-4,...
Definition: CorelPainterParser.hxx:63
CorelPainterParserInternal::ZoneHeader::m_pixelByInch
int m_pixelByInch
number of pixel by inch
Definition: CorelPainterParser.cxx:105
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
CorelPainterParserInternal::State
Internal: the state of a CorelPainterParser.
Definition: CorelPainterParser.cxx:124
MWAWParser::resetGraphicListener
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
CorelPainterParserInternal::ZoneHeader::m_rsrcMap
std::map< std::string, MWAWEntry > m_rsrcMap
the different rsrc zone (v7)
Definition: CorelPainterParser.cxx:119
MWAWGraphicListener
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
CorelPainterParserInternal::Node::Node
Node()
constructor
Definition: CorelPainterParser.cxx:61
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20