Go to the documentation of this file.
34 #ifndef READYSETGO_PARSER
35 # define READYSETGO_PARSER
40 #include <librevenge/librevenge.h>
Shape const * m_shape
the text shape
Definition: ReadySetGoParser.cxx:384
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ T_Rectangle
Definition: ReadySetGoParser.cxx:67
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
bool getUniqueColor(MWAWColor &col) const
check if the pattern has only one color; if so returns true...
Definition: MWAWGraphicStyle.cxx:86
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
int m_textId
the text link id
Definition: ReadySetGoParser.cxx:99
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
@ T_Empty
Definition: ReadySetGoParser.cxx:67
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
bool m_useMasterPage
a flag to know if we use or not the master page
Definition: ReadySetGoParser.cxx:123
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:491
bool readShapeV3(ReadySetGoParserInternal::Layout &layout, bool &last)
try to read a shape: v3
Definition: ReadySetGoParser.cxx:1734
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
MWAWParagraph m_paragraph
the paragraph style
Definition: ReadySetGoParser.cxx:103
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
~ReadySetGoParser() final
destructor
Definition: ReadySetGoParser.cxx:419
@ boldBit
Definition: MWAWFont.hxx:190
VerticalAlignment m_verticalAlignment
related to text area
Definition: MWAWGraphicStyle.hxx:652
std::vector< MWAWGraphicStyle::Pattern > m_patterns
the list of patterns: v3
Definition: ReadySetGoParser.cxx:175
bool readStyles()
try to read the list of style block: v4
Definition: ReadySetGoParser.cxx:2422
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
MWAWGraphicStyle m_style
the graphic style
Definition: ReadySetGoParser.cxx:88
bool send(ReadySetGoParserInternal::Shape const &shape)
try to send a shape
Definition: ReadySetGoParser.cxx:3020
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
int version() const
returns the works version
Definition: MWAWParser.hxx:108
bool readPrintInfo()
try to read the print info zone
Definition: ReadySetGoParser.cxx:2844
Internal: a shape in a ReadySetGoParser document.
Definition: ReadySetGoParser.cxx:65
bool getAverageColor(MWAWColor &col) const
return the average color
Definition: MWAWGraphicStyle.cxx:101
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: ReadySetGoParser.cxx:390
bool sendText(ReadySetGoParserInternal::Shape const &shape)
try to send the text corresponding to a shape
Definition: ReadySetGoParser.cxx:3100
SubDocument(ReadySetGoParser &pars, MWAWInputStreamPtr const &input, Shape const &shape)
Definition: ReadySetGoParser.cxx:360
bool readShapeV1()
try to read a shape: v1
Definition: ReadySetGoParser.cxx:1346
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
@ T_RectOval
Definition: ReadySetGoParser.cxx:67
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
@ WDynamic
Definition: MWAWPosition.hxx:53
MWAWEntry m_entries[3]
the zone entries: picture or text zones
Definition: ReadySetGoParser.cxx:109
@ Simple
Definition: MWAWFont.hxx:49
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
ReadySetGoParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: ReadySetGoParser.cxx:411
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
bool m_hasPicture
a flag to know if a picture is empty or not
Definition: ReadySetGoParser.cxx:106
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
bool m_hasCustomColors
a flag to know if the document has custom colors: v5
Definition: ReadySetGoParser.cxx:169
@ DECIMAL
Definition: MWAWParagraph.hxx:48
@ T_Unknown
Definition: ReadySetGoParser.cxx:67
State()
constructor
Definition: ReadySetGoParser.cxx:132
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
@ embossBit
Definition: MWAWFont.hxx:190
bool readGlossary()
try to read the glossary list: v4
Definition: ReadySetGoParser.cxx:2246
@ PageCount
Definition: libmwaw_internal.hxx:401
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:129
bool readFontsBlock()
try to read the list of font block: unsure, name + data?, v5
Definition: ReadySetGoParser.cxx:2157
MWAWVec2f m_points[2]
the line points
Definition: ReadySetGoParser.cxx:92
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
bool createZones()
finds the different objects zones
Definition: ReadySetGoParser.cxx:524
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
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
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:351
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
Internal: a layout in a ReadySetGoParser document.
Definition: ReadySetGoParser.cxx:114
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:243
SubDocument(SubDocument const &orig)=delete
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: ReadySetGoParser.cxx:370
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: ReadySetGoParser.cxx:833
@ T_Line
Definition: ReadySetGoParser.cxx:67
SubDocumentType
Definition: libmwaw_internal.hxx:188
the main class to read a ReadySetGo 1.0,2.1,3.0,4.0,4.5 file
Definition: ReadySetGoParser.hxx:62
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
@ AtLeast
Definition: MWAWParagraph.hxx:94
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
@ V_AlignCenter
Definition: MWAWGraphicStyle.hxx:56
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
@ shadowBit
Definition: MWAWFont.hxx:191
std::shared_ptr< ReadySetGoParserInternal::State > m_state
the state
Definition: ReadySetGoParser.hxx:129
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
bool updateTextBoxLinks()
try to update the textboxes link: v3
Definition: ReadySetGoParser.cxx:2906
@ MWAW_T_READYSETGO
Ready,Set,Go!: v1-v4.5 (only Mac)
Definition: MWAWDocument.hxx:145
bool readStyle(MWAWFont &font, MWAWParagraph ¶, int *cPos=nullptr)
try to read a style: v3
Definition: ReadySetGoParser.cxx:2518
T y() const
second element
Definition: libmwaw_internal.hxx:673
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
int m_textPositions[2]
the text limits: v4
Definition: ReadySetGoParser.cxx:97
Shape(Type type)
constructor
Definition: ReadySetGoParser.cxx:69
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:589
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ReadySetGoParser.cxx:466
T x() const
first element
Definition: libmwaw_internal.hxx:668
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
bool readDocument()
try to read the document header: v3
Definition: ReadySetGoParser.cxx:1043
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
int m_numLayouts
the number of layouts: used for v3
Definition: ReadySetGoParser.cxx:163
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
@ PageBreak
Definition: MWAWListener.hxx:58
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
Type
the shape type
Definition: ReadySetGoParser.cxx:67
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
Definition: libmwaw_internal.hxx:144
int m_numGlossary
the number of glossary: used for v4
Definition: ReadySetGoParser.cxx:165
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
bool readTabulations(std::vector< MWAWTabStop > &tabs, long len=-1, int *cPos=nullptr)
try to read a list of tabulations: v3
Definition: ReadySetGoParser.cxx:2735
MWAWVec2i m_cornerSize
the corner size: rectangle oval
Definition: ReadySetGoParser.cxx:94
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
Type m_type
the shape type
Definition: ReadySetGoParser.cxx:84
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
int m_linkIds[2]
the text links: prev/next
Definition: ReadySetGoParser.cxx:101
SubDocument & operator=(SubDocument const &orig)=delete
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
a field
Definition: libmwaw_internal.hxx:399
@ PageNumber
Definition: libmwaw_internal.hxx:401
MWAWBox2f m_box
the bounding box
Definition: ReadySetGoParser.cxx:86
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
~SubDocument() final
destructor
Definition: ReadySetGoParser.cxx:367
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:435
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
@ T_Text
Definition: ReadySetGoParser.cxx:67
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:597
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
@ V_AlignJustify
Definition: MWAWGraphicStyle.hxx:56
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: ReadySetGoParser.cxx:426
@ italicBit
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
@ V_AlignBottom
Definition: MWAWGraphicStyle.hxx:56
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Internal: the state of a ReadySetGoParser.
Definition: ReadySetGoParser.cxx:130
Internal: the structures of a ReadySetGoParser.
Definition: ReadySetGoParser.cxx:61
bool get(int id, MWAWGraphicStyle::Pattern &pat)
try to retrieve a pattern
Definition: ReadySetGoParser.cxx:148
bool readShapeV2(ReadySetGoParserInternal::Layout &layout)
try to read a shape: v2
Definition: ReadySetGoParser.cxx:1486
std::vector< Shape > m_shapes
a map id to shape
Definition: ReadySetGoParser.cxx:125
std::vector< Layout > m_layouts
the list of shapes
Definition: ReadySetGoParser.cxx:171
@ Page
Definition: MWAWPosition.hxx:51
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
@ JustificationFull
Definition: MWAWParagraph.hxx:90
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::vector< MWAWColor > m_colors
the list of colors: v45
Definition: ReadySetGoParser.cxx:173
@ T_Picture
Definition: ReadySetGoParser.cxx:67
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
#define MWAW_N_ELEMENTS(m)
Definition: libmwaw_internal.hxx:111
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
bool readTabulationsV1(std::vector< MWAWTabStop > &tabulations, std::string &extra)
try to read a list of tabulations: v1-2
Definition: ReadySetGoParser.cxx:2661
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
bool m_wrapRoundAround
the round around wraping flag
Definition: ReadySetGoParser.cxx:90
Internal: the subdocument of a ReadySetGoParser.
Definition: ReadySetGoParser.cxx:358
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
int m_numStyles
the number of styles: v4
Definition: ReadySetGoParser.cxx:167
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
@ RIGHT
Definition: MWAWParagraph.hxx:48
Class to store font.
Definition: MWAWFont.hxx:44
@ T_Oval
Definition: ReadySetGoParser.cxx:67
Layout()
constructor
Definition: ReadySetGoParser.cxx:116
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
void initColors()
init the color's list
Definition: ReadySetGoParser.cxx:178
bool readIdsList()
try to read an unknown list of IDs: v3
Definition: ReadySetGoParser.cxx:1220
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
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
bool readLayoutsList()
try to read the layout list: v3
Definition: ReadySetGoParser.cxx:1274
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
int m_version
the file version, used to define the patterns, ...
Definition: ReadySetGoParser.cxx:161
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
void initPatterns()
init the patterns' list
Definition: ReadySetGoParser.cxx:293
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