MarinerWrtGraph.hxx Source File documentation

MarinerWrtGraph.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 /*
35 * Parser to Mariner Write text document ( graphic part )
36 *
37 */
38 #ifndef MARINER_WRT_GRAPH
39 # define MARINER_WRT_GRAPH
40
41 #include <string>
42 #include <vector>
43
44 #include <librevenge/librevenge.h>
45
46 #include "libmwaw_internal.hxx"
47
48 #include "MWAWDebug.hxx"
49 #include "MWAWInputStream.hxx"
50
51 namespace MarinerWrtGraphInternal
52 {
53 struct State;
54 struct PSZone;
55 struct Token;
56 class SubDocument;
57 }
58
59 struct MarinerWrtEntry;
60 struct MarinerWrtStruct;
61 class MarinerWrtParser;
62
68 class MarinerWrtGraph
69 {
70 friend class MarinerWrtParser;
71 friend class MarinerWrtGraphInternal::SubDocument;
72
73 public:
75 explicit MarinerWrtGraph(MarinerWrtParser &parser);
77 virtual ~MarinerWrtGraph();
78
80 int version() const;
81
83 int numPages() const;
84
85 protected:
87 bool sendPageGraphics();
89 void flushExtra();
91 float getPatternPercent(int id) const;
92
93 //
94 // Intermediate level
95 //
96
98 bool readPostscript(MarinerWrtEntry const &entry, int zoneId);
99
101 bool readToken(MarinerWrtEntry const &entry, int zoneId);
103 bool readTokenBlock0(MarinerWrtStruct const &data, MarinerWrtGraphInternal::Token &tkn, std::string &res);
105 void sendPicture(MarinerWrtGraphInternal::Token const &tkn);
107 void sendRule(MarinerWrtGraphInternal::Token const &tkn);
109 void sendPSZone(MarinerWrtGraphInternal::PSZone const &ps, MWAWPosition const &pos);
110
111 // interface with mainParser
112
114 void sendToken(int zoneId, long tokenId);
116 void sendText(int zoneId);
117
118 private:
119 MarinerWrtGraph(MarinerWrtGraph const &orig) = delete;
120 MarinerWrtGraph &operator=(MarinerWrtGraph const &orig) = delete;
121
122 protected:
123 //
124 // data
125 //
127 MWAWParserStatePtr m_parserState;
128
130 std::shared_ptr<MarinerWrtGraphInternal::State> m_state;
131
133 MarinerWrtParser *m_mainParser;
134 };
135 #endif
136 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
MWAWTextListenerPtr
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
MarinerWrtGraph::sendToken
void sendToken(int zoneId, long tokenId)
try to send a token
Definition: MarinerWrtGraph.cxx:554
MWAWField::Time
@ Time
Definition: libmwaw_internal.hxx:401
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
MarinerWrtGraphInternal::Token::hasPictBorders
bool hasPictBorders() const
return true if the picture has some border
Definition: MarinerWrtGraph.cxx:131
MarinerWrtGraph::readTokenBlock0
bool readTokenBlock0(MarinerWrtStruct const &data, MarinerWrtGraphInternal::Token &tkn, std::string &res)
try to read the first token zone ( which can contains some field text )
Definition: MarinerWrtGraph.cxx:1018
MarinerWrtGraphInternal::PSZone::m_extra
std::string m_extra
some extra data
Definition: MarinerWrtGraph.cxx:374
MarinerWrtGraphInternal::Zone::Zone
Zone()
constructor
Definition: MarinerWrtGraph.cxx:381
MWAWNote
a note
Definition: libmwaw_internal.hxx:445
MarinerWrtGraph::getPatternPercent
float getPatternPercent(int id) const
return the pattern percent which corresponds to an id (or -1)
Definition: MarinerWrtGraph.cxx:536
MarinerWrtGraph::~MarinerWrtGraph
virtual ~MarinerWrtGraph()
destructor
Definition: MarinerWrtGraph.cxx:518
MarinerWrtGraph::readToken
bool readToken(MarinerWrtEntry const &entry, int zoneId)
try to read a token zone (can be a picture or a field)
Definition: MarinerWrtGraph.cxx:815
MWAW_DEBUG_MSG
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MarinerWrtGraphInternal::Token::m_pictId
long m_pictId
a picture id
Definition: MarinerWrtGraph.cxx:217
MarinerWrtGraphInternal::State::m_patternList
std::vector< Pattern > m_patternList
a list patternId -> percent
Definition: MarinerWrtGraph.cxx:419
MWAWVec2f
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
MarinerWrtGraphInternal::Token::m_pictBorderColor
MWAWColor m_pictBorderColor
the pict border color
Definition: MarinerWrtGraph.cxx:221
MarinerWrtGraphInternal::Token::m_refType
int m_refType
the zone to used type
Definition: MarinerWrtGraph.cxx:205
MWAWBorder::m_type
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
MWAWBorder::Dash
@ Dash
Definition: libmwaw_internal.hxx:335
MarinerWrtGraphInternal::Token::m_ruleType
int m_ruleType
the rule type
Definition: MarinerWrtGraph.cxx:228
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
MarinerWrtEntry::name
std::string name() const
returns the entry name;
Definition: MarinerWrtParser.cxx:1541
MarinerWrtStruct::value
long value(int i) const
returns the ith value (or 0 if it does not exists )
Definition: MarinerWrtParser.cxx:1594
MarinerWrtGraphInternal::SubDocument::m_graphParser
MarinerWrtGraph * m_graphParser
the graph parser
Definition: MarinerWrtGraph.cxx:472
MWAWBorder::Simple
@ Simple
Definition: libmwaw_internal.hxx:335
MarinerWrtGraphInternal::PSZone::m_parsed
bool m_parsed
a flag to know if the data has been sent
Definition: MarinerWrtGraph.cxx:372
MarinerWrtGraphInternal::operator<<
std::ostream & operator<<(std::ostream &o, Token const &tkn)
Definition: MarinerWrtGraph.cxx:237
MarinerWrtGraphInternal::Token
Internal: the struct use to store a token entry.
Definition: MarinerWrtGraph.cxx:107
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
libmwaw::BottomBit
@ BottomBit
Definition: libmwaw_internal.hxx:178
MarinerWrtGraph::sendPSZone
void sendPSZone(MarinerWrtGraphInternal::PSZone const &ps, MWAWPosition const &pos)
try to send a ps picture as pos
Definition: MarinerWrtGraph.cxx:778
MarinerWrtGraphInternal::Pattern::Pattern
Pattern(uint16_t const *pat, bool uniform)
constructor ( 4 uint16_t by pattern )
Definition: MarinerWrtGraph.cxx:74
MarinerWrtGraphInternal::Token::m_pictBorderType
int m_pictBorderType[4]
the pict border type
Definition: MarinerWrtGraph.cxx:223
MWAWGraphicShape
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
MWAWFontConverter.hxx
MWAWColor
the class to store a color
Definition: libmwaw_internal.hxx:192
MarinerWrtGraph::operator=
MarinerWrtGraph & operator=(MarinerWrtGraph const &orig)=delete
MWAWEmbeddedObject
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWSubDocumentPtr
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
MarinerWrtGraph::sendPicture
void sendPicture(MarinerWrtGraphInternal::Token const &tkn)
try to send a picture token as char
Definition: MarinerWrtGraph.cxx:743
MarinerWrtGraphInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
MarinerWrtGraphInternal::Pattern::m_percent
float m_percent
the percent color
Definition: MarinerWrtGraph.cxx:102
MarinerWrtGraph::m_state
std::shared_ptr< MarinerWrtGraphInternal::State > m_state
the state
Definition: MarinerWrtGraph.hxx:130
MarinerWrtGraph::sendPageGraphics
bool sendPageGraphics()
try to send the page graphic
Definition: MarinerWrtGraph.cxx:1200
MarinerWrtGraphInternal::Token::m_id
long m_id[2]
the token id and the graph? id
Definition: MarinerWrtGraph.cxx:196
MWAWBorder::None
@ None
Definition: libmwaw_internal.hxx:335
MWAW_FALLTHROUGH
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
MWAWBorder::m_width
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MarinerWrtGraphInternal::Token::operator<<
friend std::ostream & operator<<(std::ostream &o, Token const &tkn)
operator<<
Definition: MarinerWrtGraph.cxx:237
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:41
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
MWAWGraphicShape::m_bdBox
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:218
MarinerWrtGraph::sendRule
void sendRule(MarinerWrtGraphInternal::Token const &tkn)
try to send a rule
Definition: MarinerWrtGraph.cxx:649
MWAWBorder::Dot
@ Dot
Definition: libmwaw_internal.hxx:335
MWAWGraphicStyle::Pattern::m_data
std::vector< unsigned char > m_data
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1],...
Definition: MWAWGraphicStyle.hxx:266
MWAWPosition::size
const MWAWVec2f & size() const
returns the frame size
Definition: MWAWPosition.hxx:135
MarinerWrtGraph::numPages
int numPages() const
returns the number of pages
Definition: MarinerWrtGraph.cxx:527
MarinerWrtGraphInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: MarinerWrtGraph.cxx:497
MarinerWrtGraphInternal
Internal: the structures of a MarinerWrtGraph.
Definition: MarinerWrtGraph.cxx:61
MarinerWrtGraph::sendText
void sendText(int zoneId)
ask the main parser to send a text zone
Definition: MarinerWrtGraph.cxx:548
MarinerWrtGraph::m_mainParser
MarinerWrtParser * m_mainParser
the main parser;
Definition: MarinerWrtGraph.hxx:133
MarinerWrtGraphInternal::Token::Token
Token()
constructor
Definition: MarinerWrtGraph.cxx:109
MarinerWrtGraphInternal::PSZone::PSZone
PSZone()
constructor
Definition: MarinerWrtGraph.cxx:349
MWAWField::PageCount
@ PageCount
Definition: libmwaw_internal.hxx:401
MWAWCell.hxx
MWAWField::Date
@ Date
Definition: libmwaw_internal.hxx:401
MarinerWrtGraphInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MarinerWrtGraph.cxx:481
MarinerWrtGraph::readPostscript
bool readPostscript(MarinerWrtEntry const &entry, int zoneId)
try to read a postscript zone
Definition: MarinerWrtGraph.cxx:1124
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:180
MWAWSubDocument.hxx
MarinerWrtGraphInternal::Token::m_fieldType
int m_fieldType
the field type
Definition: MarinerWrtGraph.cxx:210
MWAWColor::barycenter
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
MarinerWrtGraphInternal::PSZone::operator<<
friend std::ostream & operator<<(std::ostream &o, PSZone const &file)
operator<<
Definition: MarinerWrtGraph.cxx:358
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MarinerWrtGraphInternal::PSZone
Internal: the struct use to store a ps zone of a MarinerWrtGraph.
Definition: MarinerWrtGraph.cxx:347
MarinerWrtGraphInternal::Token::m_extra
std::string m_extra
some extra data
Definition: MarinerWrtGraph.cxx:234
MWAWBorder::m_widthsList
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
MarinerWrtParser::decodeZone
bool decodeZone(std::vector< MarinerWrtStruct > &dataList, long numData=999999)
try to decode a zone
Definition: MarinerWrtParser.cxx:1440
MarinerWrtGraphInternal::Token::m_pictData
MWAWEntry m_pictData
the picture data
Definition: MarinerWrtGraph.cxx:215
MWAWParagraph.hxx
libmwaw::DebugFile::skipZone
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
MWAWGraphicEncoder.hxx
MarinerWrtGraphInternal::State::setDefaultPatternList
void setDefaultPatternList(int version)
set the default pattern map
Definition: MarinerWrtGraph.cxx:424
MarinerWrtGraphInternal::Zone::m_psZoneMap
std::map< long, PSZone > m_psZoneMap
the map id->entry to a psfile
Definition: MarinerWrtGraph.cxx:389
MarinerWrtGraphInternal::Token::m_parsed
bool m_parsed
true if the token has been send to a listener
Definition: MarinerWrtGraph.cxx:232
MarinerWrtGraph::version
int version() const
returns the file version
Definition: MarinerWrtGraph.cxx:522
MWAWFont::getColor
void getColor(MWAWColor &c) const
returns the font color
Definition: MWAWFont.hxx:336
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
MarinerWrtGraphInternal::Pattern::m_uniform
bool m_uniform
a flag to know if the pattern is uniform or not
Definition: MarinerWrtGraph.cxx:98
libmwaw_internal.hxx
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:418
MWAWGraphicListener::endDocument
void endDocument(bool delayed=true) final
ends the actual document
Definition: MWAWGraphicListener.cxx:481
MWAWPosition.hxx
MWAWPosition::setSize
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:215
MarinerWrtGraphInternal::Token::m_rulePattern
int m_rulePattern
the rule pattern
Definition: MarinerWrtGraph.cxx:230
MarinerWrtGraphInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: MarinerWrtGraph.cxx:462
MarinerWrtGraphInternal::Zone
Internal: the struct use to store a zone of a MarinerWrtGraph.
Definition: MarinerWrtGraph.cxx:379
MarinerWrtGraph
the main class to read the graphic part of a Mariner Write file
Definition: MarinerWrtGraph.hxx:68
MarinerWrtGraphInternal::Token::m_highType
int m_highType
the high byte of the field type
Definition: MarinerWrtGraph.cxx:200
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:47
MWAWBorder
a border
Definition: libmwaw_internal.hxx:333
MWAWColor::isBlack
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
MarinerWrtGraphInternal::Token::m_refId
uint32_t m_refId
the zone to used id
Definition: MarinerWrtGraph.cxx:207
MWAWGraphicStyle::Pattern::m_dim
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:261
MWAWGraphicEncoder::getBinaryResult
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:77
MWAWEntry::length
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
MWAWGraphicStyle::setBorders
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
libmwaw::RightBit
@ RightBit
Definition: libmwaw_internal.hxx:178
MWAWVec2< int >
MarinerWrtGraphInternal::PSZone::m_id
long m_id
an id
Definition: MarinerWrtGraph.cxx:370
MWAWFont::size
float size() const
returns the font size
Definition: MWAWFont.hxx:270
MWAWGraphicListener.hxx
MWAWPictMac.hxx
MWAWGraphicShape.hxx
MWAWDebug.hxx
MWAWEntry::begin
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
MWAWGraphicListener::insertShape
void insertShape(MWAWPosition const &pos, MWAWGraphicShape const &shape, MWAWGraphicStyle const &style) final
adds a shape picture in given position
Definition: MWAWGraphicListener.cxx:1032
MarinerWrtGraphInternal::Zone::m_tokenMap
std::map< long, Token > m_tokenMap
the map id->token
Definition: MarinerWrtGraph.cxx:387
MarinerWrtStruct::m_pos
MWAWEntry m_pos
the file data position (for type=0 data )
Definition: MarinerWrtParser.hxx:122
MarinerWrtParser
the main class to read a Mariner Write file
Definition: MarinerWrtParser.hxx:134
MWAWGraphicStyle::setPattern
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:336
MWAWColor::black
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
MarinerWrtGraphInternal::Token::m_type
int m_type
the field type
Definition: MarinerWrtGraph.cxx:198
MarinerWrtGraphInternal::Token::m_value
std::string m_value
the token value
Definition: MarinerWrtGraph.cxx:212
MarinerWrtParser::getZoneId
int getZoneId(uint32_t fileId, bool &endNote)
return a zoneid corresponding to a fileId (or -1) and set the endnote flag
Definition: MarinerWrtParser.cxx:311
MarinerWrtStruct::m_type
int m_type
the data type
Definition: MarinerWrtParser.hxx:124
MarinerWrtGraphInternal::SubDocument
Internal: the subdocument of a MarinerWrtGraph.
Definition: MarinerWrtGraph.cxx:450
MWAWField
a field
Definition: libmwaw_internal.hxx:399
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:401
MarinerWrtGraph::flushExtra
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: MarinerWrtGraph.cxx:1205
MarinerWrtGraphInternal::State::m_zoneMap
std::map< int, Zone > m_zoneMap
a map id -> textZone
Definition: MarinerWrtGraph.cxx:417
MarinerWrtGraphInternal::Token::addPictBorder
void addPictBorder(MWAWGraphicStyle &style) const
add border properties
Definition: MarinerWrtGraph.cxx:138
MWAWPosition::Char
@ Char
Definition: MWAWPosition.hxx:51
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:264
MWAWBorder::m_style
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
MarinerWrtEntry
a entry to store a zone structure
Definition: MarinerWrtParser.hxx:62
MWAWEntry::end
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
MWAWGraphicStyle::m_lineColor
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:426
MarinerWrtParser::sendText
void sendText(int zoneId)
ask the text parser to send a zone
Definition: MarinerWrtParser.cxx:324
MarinerWrtStruct::isBasic
bool isBasic() const
returns true if this corresponds to a simple container
Definition: MarinerWrtParser.hxx:113
MWAWGraphicEncoder
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:55
MarinerWrtGraphInternal::Token::m_valPictId
long m_valPictId
a optional picture id
Definition: MarinerWrtGraph.cxx:219
MarinerWrtGraphInternal::Pattern::Pattern
Pattern()
constructor with default pattern
Definition: MarinerWrtGraph.cxx:67
libmwaw::LeftBit
@ LeftBit
Definition: libmwaw_internal.hxx:178
MWAWBorder::Double
@ Double
Definition: libmwaw_internal.hxx:337
MarinerWrtStruct
Internal: a struct used to read some field.
Definition: MarinerWrtParser.hxx:96
MWAWGraphicStyle.hxx
MWAWGraphicListener::startDocument
void startDocument() final
starts a new document
Definition: MWAWGraphicListener.cxx:470
MWAWTextListener.hxx
MarinerWrtGraphInternal::Pattern
Internal: the struct use to store a pattern in MarinerWrtGraph.
Definition: MarinerWrtGraph.cxx:65
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
MWAWParserStatePtr
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MarinerWrtGraph::MarinerWrtGraph
MarinerWrtGraph(MarinerWrtParser &parser)
constructor
Definition: MarinerWrtGraph.cxx:511
libmwaw::TopBit
@ TopBit
Definition: libmwaw_internal.hxx:178
MarinerWrtGraphInternal::SubDocument::m_id
int m_id
the zone id
Definition: MarinerWrtGraph.cxx:474
MarinerWrtGraphInternal::Pattern::m_pattern
MWAWGraphicStyle::Pattern m_pattern
the graphic style pattern
Definition: MarinerWrtGraph.cxx:100
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
MWAWEntry::valid
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
MarinerWrtGraphInternal::State
Internal: the state of a MarinerWrtGraph.
Definition: MarinerWrtGraph.cxx:394
MarinerWrtGraphInternal::Token::m_dim
MWAWVec2i m_dim
the dimension
Definition: MarinerWrtGraph.cxx:202
MarinerWrtGraphInternal::PSZone::m_pos
MWAWEntry m_pos
the file position
Definition: MarinerWrtGraph.cxx:366
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:65
MWAWNote::FootNote
@ FootNote
Definition: libmwaw_internal.hxx:447
MarinerWrtGraphInternal::Token::m_pictBorderWidth
float m_pictBorderWidth[4]
the pict border width
Definition: MarinerWrtGraph.cxx:225
MWAWInputStream.hxx
MWAWListenerPtr
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWFont.hxx
MWAWPosition::m_anchorTo
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:270
MWAWBox2< float >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:43
MWAWNote::EndNote
@ EndNote
Definition: libmwaw_internal.hxx:447
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
MarinerWrtParser.hxx
MWAWBorder::m_color
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
MarinerWrtGraphInternal::PSZone::m_type
int m_type
a local type?
Definition: MarinerWrtGraph.cxx:368
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
MarinerWrtGraphInternal::State::getZone
Zone & getZone(int id)
return a reference to a textzone ( if zone not exists, created it )
Definition: MarinerWrtGraph.cxx:406
MarinerWrtGraph.hxx
MarinerWrtGraphInternal::State::m_numPages
int m_numPages
Definition: MarinerWrtGraph.cxx:421
MarinerWrtGraphInternal::SubDocument::SubDocument
SubDocument(MarinerWrtGraph &pars, MWAWInputStreamPtr const &input, int id)
constructor
Definition: MarinerWrtGraph.cxx:454
MarinerWrtGraphInternal::State::State
State()
constructor
Definition: MarinerWrtGraph.cxx:396
MWAWGraphicListener
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:59
MarinerWrtGraph::m_parserState
MWAWParserStatePtr m_parserState
the parser state
Definition: MarinerWrtGraph.hxx:127