Go to the documentation of this file.
40 #include <librevenge/librevenge.h>
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
friend std::ostream & operator<<(std::ostream &o, Pattern const &pat)
operator<<
Definition: MoreParser.cxx:1280
bool readSlideList(MWAWEntry const &entry)
read the list of slide definitions
Definition: MoreParser.cxx:774
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Pattern()
constructor
Definition: MoreParser.hxx:61
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:299
bool readUnknown9(MWAWEntry const &entry)
read a unknown zone ( block 9 )
Definition: MoreParser.cxx:974
~SubDocument() final
destructor
Definition: MoreParser.cxx:112
std::multimap< std::string, MWAWEntry > m_typeEntryMap
a map type -> entry
Definition: MoreParser.cxx:76
~MoreParser() final
destructor
Definition: MoreParser.cxx:151
std::ostream & operator<<(std::ostream &o, Pattern const &pat)
Definition: MoreParser.cxx:1280
the main class to read the text part of More Text file
Definition: MoreText.hxx:65
@ MWAW_T_MORE
More (v2-3): retrieve the organization part but not the slide/tree parts.
Definition: MWAWDocument.hxx:129
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
bool readBackside(long endPos, std::string &extra)
read a backside ( some sub zone of block 9)
Definition: MoreParser.cxx:1102
#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
MWAWColor m_backColor
the back color
Definition: MoreParser.hxx:74
bool isParsed() const
a flag to know if the entry was parsed or not
Definition: MWAWEntry.hxx:121
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
unsigned char m_pattern[8]
the pattern
Definition: MoreParser.hxx:70
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
the main class to read a More file
Definition: MoreParser.hxx:81
void setDefaultColorList(int version)
set the default color map
Definition: MoreParser.cxx:84
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
bool readPrintInfo(MWAWEntry const &entry)
read a PrintInfo zone ( first block )
Definition: MoreParser.cxx:459
the class to store a color
Definition: libmwaw_internal.hxx:192
bool readDocumentInfo(MWAWEntry const &entry)
read a docinfo zone ( second block )
Definition: MoreParser.cxx:512
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
int version() const
returns the works version
Definition: MWAWParser.hxx:108
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:137
Internal: the subdocument of a MoreParser.
Definition: MoreParser.cxx:104
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:232
MoreParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: MoreParser.cxx:143
void parse(librevenge::RVNGTextInterface *documentInterface) final
virtual function used to parse the input
Definition: MoreParser.cxx:249
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
Definition: MoreParser.hxx:59
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
bool readSlide(MWAWEntry const &entry)
read a slide definitions
Definition: MoreParser.cxx:835
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
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
void newPage(int number)
adds a new page
Definition: MoreParser.cxx:220
bool createZones()
finds the different objects zones
Definition: MoreParser.cxx:322
std::shared_ptr< MoreText > m_textParser
the text parser
Definition: MoreParser.hxx:176
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
MWAWColor m_frontColor
the front color
Definition: MoreParser.hxx:72
bool getColor(int id, MWAWColor &col) const
return the color which corresponds to an id (if possible)
Definition: MoreParser.cxx:233
int m_actPage
the actual page
Definition: MoreParser.cxx:81
SubDocument(MoreParser &pars, MWAWInputStreamPtr const &input)
Definition: MoreParser.cxx:106
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
bool readFreePos(MWAWEntry const &entry)
read the list of free file position
Definition: MoreParser.cxx:627
State()
constructor
Definition: MoreParser.cxx:64
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: MoreParser.cxx:173
SubDocumentType
Definition: libmwaw_internal.hxx:188
void setBackgroundColor(MWAWColor color=MWAWColor::white())
set the background color
Definition: MWAWPageSpan.hxx:258
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
a namespace used to define basic structures in a More file
Definition: MoreParser.cxx:1279
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:132
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
T y() const
second element
Definition: libmwaw_internal.hxx:673
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
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
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
bool readPattern(long endPos, MoreStruct::Pattern &pattern)
read a pattern ( some sub zone of block 9)
Definition: MoreParser.cxx:1148
T x() const
first element
Definition: libmwaw_internal.hxx:668
bool checkAndFindSize(MWAWEntry &entry)
check if the entry is valid defined by the begin pos points to a zone: dataSz data
Definition: MoreParser.cxx:201
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
void init()
inits all internal variables
Definition: MoreParser.cxx:155
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
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
Definition: libmwaw_internal.hxx:144
bool readColors(long endPos)
read a color zone ( beginning of block 9 )
Definition: MoreParser.cxx:1061
MWAWColor m_backgroundColor
the organization back page color
Definition: MoreParser.cxx:78
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
double getFormWidth() const
returns the form width
Definition: MWAWParser.hxx:175
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
Internal: the structures of a MoreParser.
Definition: MoreParser.cxx:59
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: MoreParser.cxx:115
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: MoreParser.cxx:720
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
int m_numPages
the number of page of the final document
Definition: MoreParser.cxx:81
friend class MoreText
Definition: MoreParser.hxx:83
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
bool readZonesList()
read the list of zones ( v2-3) : first 0x80 bytes
Definition: MoreParser.cxx:391
static ReadResult check(MWAWInputStreamPtr const &input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
std::shared_ptr< MoreParserInternal::State > m_state
the state
Definition: MoreParser.hxx:173
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: MoreParser.cxx:278
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
Defines MWAWTextListener: the libmwaw word processor listener.
Internal: the state of a MoreParser.
Definition: MoreParser.cxx:62
bool checkAndStore(MWAWEntry const &entry)
check if the entry is valid, if so store it in the list of entry
Definition: MoreParser.cxx:187
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: MoreParser.cxx:168
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
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
bool readGraphic(MWAWEntry const &entry)
read a graphic ( in a slide )
Definition: MoreParser.cxx:920
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
std::vector< MWAWColor > m_colorList
a list colorId -> color
Definition: MoreParser.cxx:80
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: MoreParser.cxx:181
bool readUnkn9Sub(long endPos)
read the last subzone find in a block 9 ( unknown meaning)
Definition: MoreParser.cxx:1174
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
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:163
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: MoreParser.cxx:128
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20