ReadySetGoParser.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 READYSETGO_PARSER
35 # define READYSETGO_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 
48 {
49 struct Layout;
50 struct Shape;
51 struct State;
52 
53 class SubDocument;
54 }
55 
56 struct MWAWTabStop;
57 
61 class ReadySetGoParser final : public MWAWGraphicParser
62 {
64 public:
66  ReadySetGoParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header);
68  ~ReadySetGoParser() final;
69 
71  bool checkHeader(MWAWHeader *header, bool strict=false) final;
72 
73  // the main parse function
74  void parse(librevenge::RVNGDrawingInterface *documentInterface) final;
75 
76 protected:
78  void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
80  bool send(ReadySetGoParserInternal::Shape const &shape);
82  bool sendText(ReadySetGoParserInternal::Shape const &shape);
83 
85  bool updateTextBoxLinks();
86 
87 protected:
89  bool createZones();
91  bool readDocument();
93  bool readLayoutsList();
95  bool readIdsList();
97  bool readStyles();
99  bool readGlossary();
101  bool readFontsBlock();
102 
104  bool readShapeV1();
106  bool readShapeV2(ReadySetGoParserInternal::Layout &layout);
108  bool readShapeV3(ReadySetGoParserInternal::Layout &layout, bool &last);
110  bool readStyle(MWAWFont &font, MWAWParagraph &para, int *cPos=nullptr);
112  bool readTabulationsV1(std::vector<MWAWTabStop> &tabulations, std::string &extra);
114  bool readTabulations(std::vector<MWAWTabStop> &tabs, long len=-1, int *cPos=nullptr);
115 
116  // Intermediate level
117 
119  bool readPrintInfo();
120 
121  //
122  // low level
123  //
124 
125  //
126  // data
127  //
129  std::shared_ptr<ReadySetGoParserInternal::State> m_state;
130 };
131 #endif
132 // vim: set filetype=cpp tabstop=2 shiftwidth=2 cindent autoindent smartindent noexpandtab:
ReadySetGoParserInternal::SubDocument::m_shape
Shape const * m_shape
the text shape
Definition: ReadySetGoParser.cxx:384
MWAWEntry
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
ReadySetGoParserInternal::Shape::T_Rectangle
@ T_Rectangle
Definition: ReadySetGoParser.cxx:67
MWAWParagraph::m_justify
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
MWAWGraphicStyle::Pattern::getUniqueColor
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
MWAWInputStreamPtr
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
ReadySetGoParserInternal::Shape::m_textId
int m_textId
the text link id
Definition: ReadySetGoParser.cxx:99
MWAWParser::getFontConverter
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
MWAWFont::set
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
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
MWAWTabStop::m_leaderCharacter
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
ReadySetGoParserInternal::Shape::T_Empty
@ T_Empty
Definition: ReadySetGoParser.cxx:67
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
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
ReadySetGoParserInternal::Layout::m_useMasterPage
bool m_useMasterPage
a flag to know if we use or not the master page
Definition: ReadySetGoParser.cxx:123
MWAWGraphicStyle::setSurfaceColor
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:491
ReadySetGoParser::readShapeV3
bool readShapeV3(ReadySetGoParserInternal::Layout &layout, bool &last)
try to read a shape: v3
Definition: ReadySetGoParser.cxx:1734
MWAWPosition::setRelativePosition
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
ReadySetGoParserInternal::Shape::m_paragraph
MWAWParagraph m_paragraph
the paragraph style
Definition: ReadySetGoParser.cxx:103
MWAWParagraph::m_tabs
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
ReadySetGoParser::~ReadySetGoParser
~ReadySetGoParser() final
destructor
Definition: ReadySetGoParser.cxx:419
MWAWFont::boldBit
@ boldBit
Definition: MWAWFont.hxx:190
MWAWGraphicStyle::m_verticalAlignment
VerticalAlignment m_verticalAlignment
related to text area
Definition: MWAWGraphicStyle.hxx:652
ReadySetGoParserInternal::State::m_patterns
std::vector< MWAWGraphicStyle::Pattern > m_patterns
the list of patterns: v3
Definition: ReadySetGoParser.cxx:175
ReadySetGoParser::readStyles
bool readStyles()
try to read the list of style block: v4
Definition: ReadySetGoParser.cxx:2422
MWAWColor::white
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
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
MWAWTabStop::CENTER
@ CENTER
Definition: MWAWParagraph.hxx:48
MWAWParagraph::setInterline
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
MWAWPageSpan::setMarginBottom
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
ReadySetGoParserInternal::Shape::m_style
MWAWGraphicStyle m_style
the graphic style
Definition: ReadySetGoParser.cxx:88
ReadySetGoParser::send
bool send(ReadySetGoParserInternal::Shape const &shape)
try to send a shape
Definition: ReadySetGoParser.cxx:3020
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
MWAWParagraph::m_spacings
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
MWAWGraphicShape::line
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
MWAWParser::version
int version() const
returns the works version
Definition: MWAWParser.hxx:108
ReadySetGoParser::readPrintInfo
bool readPrintInfo()
try to read the print info zone
Definition: ReadySetGoParser.cxx:2844
ReadySetGoParserInternal::Shape
Internal: a shape in a ReadySetGoParser document.
Definition: ReadySetGoParser.cxx:65
MWAWGraphicStyle::Pattern::getAverageColor
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
ReadySetGoParserInternal::SubDocument::parse
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: ReadySetGoParser.cxx:390
MWAWPrinter.hxx
ReadySetGoParser::sendText
bool sendText(ReadySetGoParserInternal::Shape const &shape)
try to send the text corresponding to a shape
Definition: ReadySetGoParser.cxx:3100
ReadySetGoParserInternal::SubDocument::SubDocument
SubDocument(ReadySetGoParser &pars, MWAWInputStreamPtr const &input, Shape const &shape)
Definition: ReadySetGoParser.cxx:360
ReadySetGoParser::readShapeV1
bool readShapeV1()
try to read a shape: v1
Definition: ReadySetGoParser.cxx:1346
MWAWDocument::MWAW_K_DRAW
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
ReadySetGoParserInternal::Shape::T_RectOval
@ T_RectOval
Definition: ReadySetGoParser.cxx:67
MWAWParagraph
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
MWAWPageSpan::setMarginLeft
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
MWAWPosition::WDynamic
@ WDynamic
Definition: MWAWPosition.hxx:53
ReadySetGoParserInternal::Shape::m_entries
MWAWEntry m_entries[3]
the zone entries: picture or text zones
Definition: ReadySetGoParser.cxx:109
MWAWFont::Line::Simple
@ Simple
Definition: MWAWFont.hxx:49
MWAWPictData::get
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
ReadySetGoParser::ReadySetGoParser
ReadySetGoParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: ReadySetGoParser.cxx:411
libmwaw::PrinterInfo
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
ReadySetGoParserInternal::Shape::m_hasPicture
bool m_hasPicture
a flag to know if a picture is empty or not
Definition: ReadySetGoParser.cxx:106
ReadySetGoParser.hxx
libmwaw::DebugFile::addNote
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWFont::setDeltaLetterSpacing
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
MWAWSubDocument
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWGraphicStyle
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWParagraph::m_margins
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
ReadySetGoParserInternal::State::m_hasCustomColors
bool m_hasCustomColors
a flag to know if the document has custom colors: v5
Definition: ReadySetGoParser.cxx:169
MWAWTabStop::DECIMAL
@ DECIMAL
Definition: MWAWParagraph.hxx:48
ReadySetGoParserInternal::Shape::T_Unknown
@ T_Unknown
Definition: ReadySetGoParser.cxx:67
ReadySetGoParserInternal::State::State
State()
constructor
Definition: ReadySetGoParser.cxx:132
MWAWParser::ascii
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
MWAWFont::embossBit
@ embossBit
Definition: MWAWFont.hxx:190
ReadySetGoParser::readGlossary
bool readGlossary()
try to read the glossary list: v4
Definition: ReadySetGoParser.cxx:2246
MWAWField::PageCount
@ PageCount
Definition: libmwaw_internal.hxx:401
MWAWGraphicShape::circle
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:129
ReadySetGoParser::readFontsBlock
bool readFontsBlock()
try to read the list of font block: unsure, name + data?, v5
Definition: ReadySetGoParser.cxx:2157
ReadySetGoParserInternal::Shape::m_points
MWAWVec2f m_points[2]
the line points
Definition: ReadySetGoParser.cxx:92
MWAWParser::asciiName
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
ReadySetGoParser::createZones
bool createZones()
finds the different objects zones
Definition: ReadySetGoParser.cxx:524
MWAWTabStop
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
MWAWFont::setStrikeOutStyle
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:427
MWAWGraphicStyle::Pattern
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:351
MWAWSubDocument.hxx
MWAWPageSpan::setFormLength
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
ReadySetGoParserInternal::Layout
Internal: a layout in a ReadySetGoParser document.
Definition: ReadySetGoParser.cxx:114
MWAWPageSpan::setMasterPageName
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:243
ReadySetGoParserInternal::SubDocument::SubDocument
SubDocument(SubDocument const &orig)=delete
ReadySetGoParserInternal::SubDocument::operator!=
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: ReadySetGoParser.cxx:370
ReadySetGoParser::checkHeader
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: ReadySetGoParser.cxx:833
ReadySetGoParserInternal::Shape::T_Line
@ T_Line
Definition: ReadySetGoParser.cxx:67
libmwaw::SubDocumentType
SubDocumentType
Definition: libmwaw_internal.hxx:188
ReadySetGoParser
the main class to read a ReadySetGo 1.0,2.1,3.0,4.0,4.5 file
Definition: ReadySetGoParser.hxx:62
MWAWSubDocument::m_input
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MWAWParagraph::AtLeast
@ AtLeast
Definition: MWAWParagraph.hxx:94
libmwaw::DebugFile::reset
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
MWAWGraphicStyle::V_AlignCenter
@ V_AlignCenter
Definition: MWAWGraphicStyle.hxx:56
MWAWParagraph::JustificationCenter
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
MWAWFont::shadowBit
@ shadowBit
Definition: MWAWFont.hxx:191
ReadySetGoParser::m_state
std::shared_ptr< ReadySetGoParserInternal::State > m_state
the state
Definition: ReadySetGoParser.hxx:129
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
ReadySetGoParser::updateTextBoxLinks
bool updateTextBoxLinks()
try to update the textboxes link: v3
Definition: ReadySetGoParser.cxx:2906
MWAWDocument::MWAW_T_READYSETGO
@ MWAW_T_READYSETGO
Ready,Set,Go!: v1-v4.5 (only Mac)
Definition: MWAWDocument.hxx:145
ReadySetGoParser::readStyle
bool readStyle(MWAWFont &font, MWAWParagraph &para, int *cPos=nullptr)
try to read a style: v3
Definition: ReadySetGoParser.cxx:2518
MWAWVec2::y
T y() const
second element
Definition: libmwaw_internal.hxx:673
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
ReadySetGoParserInternal::Shape::m_textPositions
int m_textPositions[2]
the text limits: v4
Definition: ReadySetGoParser.cxx:97
ReadySetGoParserInternal::Shape::Shape
Shape(Type type)
constructor
Definition: ReadySetGoParser.cxx:69
MWAWGraphicStyle::m_lineWidth
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:589
MWAWPageSpan::setFormWidth
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
MWAWPosition.hxx
ReadySetGoParser::createDocument
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ReadySetGoParser.cxx:466
MWAWVec2::x
T x() const
first element
Definition: libmwaw_internal.hxx:668
MWAWPosition
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
ReadySetGoParser::readDocument
bool readDocument()
try to read the document header: v3
Definition: ReadySetGoParser.cxx:1043
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
ReadySetGoParserInternal::State::m_numLayouts
int m_numLayouts
the number of layouts: used for v3
Definition: ReadySetGoParser.cxx:163
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
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
MWAWListener::PageBreak
@ PageBreak
Definition: MWAWListener.hxx:58
libmwaw::DebugFile::setStream
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
MWAWVec2< float >
ReadySetGoParserInternal::Shape::Type
Type
the shape type
Definition: ReadySetGoParser.cxx:67
MWAWGraphicListener.hxx
MWAWTabStop::m_alignment
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
MWAWGraphicShape.hxx
libmwaw::ParseException
Definition: libmwaw_internal.hxx:144
MWAWDebug.hxx
ReadySetGoParserInternal::State::m_numGlossary
int m_numGlossary
the number of glossary: used for v4
Definition: ReadySetGoParser.cxx:165
MWAWFont::getDebugString
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
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
ReadySetGoParser::readTabulations
bool readTabulations(std::vector< MWAWTabStop > &tabs, long len=-1, int *cPos=nullptr)
try to read a list of tabulations: v3
Definition: ReadySetGoParser.cxx:2735
ReadySetGoParserInternal::Shape::m_cornerSize
MWAWVec2i m_cornerSize
the corner size: rectangle oval
Definition: ReadySetGoParser.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
MWAWBox2f
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
ReadySetGoParserInternal::Shape::m_type
Type m_type
the shape type
Definition: ReadySetGoParser.cxx:84
MWAWTabStop::m_position
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
ReadySetGoParserInternal::Shape::m_linkIds
int m_linkIds[2]
the text links: prev/next
Definition: ReadySetGoParser.cxx:101
ReadySetGoParserInternal::SubDocument::operator=
SubDocument & operator=(SubDocument const &orig)=delete
MWAWFont::setId
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MWAWField
a field
Definition: libmwaw_internal.hxx:399
MWAWField::PageNumber
@ PageNumber
Definition: libmwaw_internal.hxx:401
ReadySetGoParserInternal::Shape::m_box
MWAWBox2f m_box
the bounding box
Definition: ReadySetGoParser.cxx:86
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
ReadySetGoParserInternal::SubDocument::~SubDocument
~SubDocument() final
destructor
Definition: ReadySetGoParser.cxx:367
MWAWGraphicStyle::Pattern::m_colors
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:435
MWAWParser::getParserState
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
MWAWHeader.hxx
Defines MWAWHeader (document's type, version, kind)
ReadySetGoParserInternal::Shape::T_Text
@ T_Text
Definition: ReadySetGoParser.cxx:67
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:597
MWAWBox2i
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
MWAWGraphicStyle::V_AlignJustify
@ V_AlignJustify
Definition: MWAWGraphicStyle.hxx:56
ReadySetGoParser::parse
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: ReadySetGoParser.cxx:426
MWAWGraphicStyle.hxx
MWAWFont::italicBit
@ italicBit
Definition: MWAWFont.hxx:190
MWAWParagraph::m_marginsUnit
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
MWAWGraphicStyle::V_AlignBottom
@ V_AlignBottom
Definition: MWAWGraphicStyle.hxx:56
MWAWParser::getInput
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
ReadySetGoParserInternal::State
Internal: the state of a ReadySetGoParser.
Definition: ReadySetGoParser.cxx:130
ReadySetGoParserInternal
Internal: the structures of a ReadySetGoParser.
Definition: ReadySetGoParser.cxx:61
ReadySetGoParserInternal::State::get
bool get(int id, MWAWGraphicStyle::Pattern &pat)
try to retrieve a pattern
Definition: ReadySetGoParser.cxx:148
ReadySetGoParser::readShapeV2
bool readShapeV2(ReadySetGoParserInternal::Layout &layout)
try to read a shape: v2
Definition: ReadySetGoParser.cxx:1486
ReadySetGoParserInternal::Layout::m_shapes
std::vector< Shape > m_shapes
a map id to shape
Definition: ReadySetGoParser.cxx:125
ReadySetGoParserInternal::State::m_layouts
std::vector< Layout > m_layouts
the list of shapes
Definition: ReadySetGoParser.cxx:171
MWAWPosition::Page
@ Page
Definition: MWAWPosition.hxx:51
MWAWSubDocument::m_parser
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
MWAWParagraph::JustificationFull
@ JustificationFull
Definition: MWAWParagraph.hxx:90
MWAWParagraph::JustificationRight
@ JustificationRight
Definition: MWAWParagraph.hxx:91
ReadySetGoParserInternal::State::m_colors
std::vector< MWAWColor > m_colors
the list of colors: v45
Definition: ReadySetGoParser.cxx:173
ReadySetGoParserInternal::Shape::T_Picture
@ T_Picture
Definition: ReadySetGoParser.cxx:67
libmwaw::DebugFile::addPos
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
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
MWAW_N_ELEMENTS
#define MWAW_N_ELEMENTS(m)
Definition: libmwaw_internal.hxx:111
MWAWBox2::size
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
ReadySetGoParser::readTabulationsV1
bool readTabulationsV1(std::vector< MWAWTabStop > &tabulations, std::string &extra)
try to read a list of tabulations: v1-2
Definition: ReadySetGoParser.cxx:2661
MWAWFont::Script
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
ReadySetGoParserInternal::Shape::m_wrapRoundAround
bool m_wrapRoundAround
the round around wraping flag
Definition: ReadySetGoParser.cxx:90
ReadySetGoParserInternal::SubDocument
Internal: the subdocument of a ReadySetGoParser.
Definition: ReadySetGoParser.cxx:358
MWAWInputStream.hxx
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
librevenge
Definition: MWAWDocument.hxx:57
ReadySetGoParserInternal::State::m_numStyles
int m_numStyles
the number of styles: v4
Definition: ReadySetGoParser.cxx:167
MWAWPictBitmap.hxx
MWAWPageSpan::setMargins
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
MWAWTabStop::RIGHT
@ RIGHT
Definition: MWAWParagraph.hxx:48
MWAWBox2< float >
MWAWFont
Class to store font.
Definition: MWAWFont.hxx:44
ReadySetGoParserInternal::Shape::T_Oval
@ T_Oval
Definition: ReadySetGoParser.cxx:67
ReadySetGoParserInternal::Layout::Layout
Layout()
constructor
Definition: ReadySetGoParser.cxx:116
MWAWGraphicShape::rectangle
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
ReadySetGoParserInternal::State::initColors
void initColors()
init the color's list
Definition: ReadySetGoParser.cxx:178
ReadySetGoParser::readIdsList
bool readIdsList()
try to read an unknown list of IDs: v3
Definition: ReadySetGoParser.cxx:1220
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
MWAWFont::setUnderlineStyle
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:466
ReadySetGoParser::readLayoutsList
bool readLayoutsList()
try to read the layout list: v3
Definition: ReadySetGoParser.cxx:1274
MWAWParser::resetGraphicListener
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
ReadySetGoParserInternal::State::m_version
int m_version
the file version, used to define the patterns, ...
Definition: ReadySetGoParser.cxx:161
MWAWPageSpan
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
MWAWGraphicListener
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
ReadySetGoParserInternal::State::initPatterns
void initPatterns()
init the patterns' list
Definition: ReadySetGoParser.cxx:293
MWAWFont::setFlags
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325

Generated on Wed Jun 25 2025 00:00:00 for libmwaw by doxygen 1.8.20