Go to the documentation of this file.
34 #ifndef JAZZ_WRITER_PARSER
35 # define JAZZ_WRITER_PARSER
41 #include <librevenge/librevenge.h>
100 bool checkParagraphs(
unsigned id,
long &num, std::set<
unsigned> &seens) const;
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ Time
Definition: libmwaw_internal.hxx:401
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
Internal: the state of a JazzWriterParser.
Definition: JazzWriterParser.cxx:99
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
bool checkParagraphs(unsigned id, long &num, std::set< unsigned > &seens) const
check that a paragraph, its style and its followings exist (and do not create loops) and update the n...
Definition: JazzWriterParser.cxx:394
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
~SubDocument() final
destructor
Definition: JazzWriterParser.cxx:126
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
SubDocument(JazzWriterParser &pars, MWAWInputStreamPtr const &input, MWAWInputStreamPtr const &rsrcInput, unsigned id)
Definition: JazzWriterParser.cxx:118
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: JazzWriterParser.cxx:141
bool sendParagraph(unsigned pId)
try to send a paragraph
Definition: JazzWriterParser.cxx:735
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
std::map< unsigned, Zone > m_idToZones
map WDOC id to zones
Definition: JazzWriterParser.cxx:108
@ boldBit
Definition: MWAWFont.hxx:190
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
~JazzWriterParser() final
destructor
Definition: JazzWriterParser.cxx:185
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
int id() const
returns the id
Definition: MWAWEntry.hxx:164
std::shared_ptr< JazzWriterParserInternal::State > m_state
the state
Definition: JazzWriterParser.hxx:117
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
Internal: the structures of a JazzWriterParser.
Definition: JazzWriterParser.cxx:56
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
bool sendZone(unsigned zId)
try to send a zone
Definition: JazzWriterParser.cxx:717
@ Simple
Definition: MWAWFont.hxx:49
Internal: the structure used to store a paragraph/section.
Definition: JazzWriterParser.cxx:60
static MWAWPictData * get(MWAWInputStreamPtr const &input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
unsigned m_paragraphId
the paragraph id
Definition: JazzWriterParser.cxx:92
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:126
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
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 readZone(MWAWEntry const &entry)
tries to read the WDoc zones
Definition: JazzWriterParser.cxx:599
@ Date
Definition: libmwaw_internal.hxx:401
State()
constructor
Definition: JazzWriterParser.cxx:101
unsigned m_hfIds[2]
the header/footer id
Definition: JazzWriterParser.cxx:90
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: JazzWriterParser.cxx:692
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
MWAWInputStreamPtr m_rsrcInput
the resource fork input
Definition: JazzWriterParser.cxx:136
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
@ shadowBit
Definition: MWAWFont.hxx:191
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:158
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
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
bool isEmpty() const
return true if the picture contains no data
Definition: libmwaw_internal.hxx:486
unsigned m_nextParagraphId
the next paragraph id
Definition: JazzWriterParser.cxx:74
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: JazzWriterParser.cxx:189
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:153
std::map< unsigned, Paragraph > m_idToParagraphs
map WPPD id to zones
Definition: JazzWriterParser.cxx:110
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
bool countCharactersInPLC(unsigned plcId, long &n)
retrieve the number of characters corresponding to a PLC
Definition: JazzWriterParser.cxx:416
Zone()
constructor
Definition: JazzWriterParser.cxx:83
unsigned m_zId
the zone id
Definition: JazzWriterParser.cxx:138
Internal: the structure used to store a zone.
Definition: JazzWriterParser.cxx:81
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
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
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
Definition: libmwaw_internal.hxx:144
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
bool sendPLC(unsigned pId)
try to send a plc
Definition: JazzWriterParser.cxx:750
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: JazzWriterParser.cxx:163
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 readPLC(MWAWEntry const &entry)
tries to read the WSCR zones
MWAWParagraph m_paragraph
the paragraph
Definition: JazzWriterParser.cxx:70
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
bool checkZones()
checks that the main zone exists (and its potential header/footer) and that there are valid.
Definition: JazzWriterParser.cxx:360
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
bool createZones()
finds the different objects zones
Definition: JazzWriterParser.cxx:278
MWAWVec2i m_dimension
the dimension
Definition: JazzWriterParser.cxx:72
bool readParagraph(MWAWEntry const &entry)
tries to read the WPPD zones
Definition: JazzWriterParser.cxx:454
a field
Definition: libmwaw_internal.hxx:399
@ PageNumber
Definition: libmwaw_internal.hxx:401
@ Char
Definition: MWAWPosition.hxx:51
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: JazzWriterParser.cxx:202
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
MWAWEntry m_entry
the text position in the data fork
Definition: JazzWriterParser.cxx:94
@ italicBit
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Defines MWAWTextListener: the libmwaw word processor listener.
bool readString(MWAWInputStreamPtr input, librevenge::RVNGString &string, long endPos)
try to read a C-string
Definition: JazzWriterParser.cxx:662
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
@ JustificationFull
Definition: MWAWParagraph.hxx:90
Internal: the subdocument of a JazzWriterParser.
Definition: JazzWriterParser.cxx:116
@ JustificationRight
Definition: MWAWParagraph.hxx:91
@ MWAW_T_JAZZLOTUS
Jazz (Lotus): v1 ; retrieve the spreadsheet and if the resource fork is available,...
Definition: MWAWDocument.hxx:236
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
the main class to read a Jazz(Lotus) word file
Definition: JazzWriterParser.hxx:57
bool getPicture(unsigned pId, MWAWEmbeddedObject &obj)
try to retrieve a picture
Definition: JazzWriterParser.cxx:929
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: JazzWriterParser.cxx:194
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
unsigned m_plcId
the plc id
Definition: JazzWriterParser.cxx:76
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: JazzWriterParser.cxx:232
Class to store font.
Definition: MWAWFont.hxx:44
Paragraph()
constructor
Definition: JazzWriterParser.cxx:62
JazzWriterParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: JazzWriterParser.cxx:178
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
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
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