Go to the documentation of this file.
40 #include <librevenge/librevenge.h>
71 void parse(librevenge::RVNGTextInterface *documentInterface);
78 void createDocument(librevenge::RVNGTextInterface *documentInterface);
133 shared_ptr<ActaParserInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
State()
constructor
Definition: ActaParser.cxx:194
Internal: class used to store the optional preferences in ActaParser.
Definition: ActaParser.cxx:160
bool isEmpty() const
returns true if the header is empty
Definition: ActaParser.cxx:113
bool readWindowPos(MWAWEntry const &entry)
read the window position ( WSIZ resource block )
Definition: ActaParser.cxx:778
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:507
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:296
MWAWFont m_font
the font
Definition: ActaParser.cxx:153
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
bool readRSRCZones()
read the resource fork zone
Definition: ActaParser.cxx:533
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
friend std::ostream & operator<<(std::ostream &o, Printing const &print)
operator<<
Definition: ActaParser.cxx:134
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
librevenge::RVNGString m_suffix
string which follows the number if we have an ordered level
Definition: MWAWList.hxx:98
Internal: the structures of a ActaParser.
Definition: ActaParser.cxx:58
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
Label m_label
the list type
Definition: ActaParser.cxx:203
Printing m_printerPreferences
the printer preferences
Definition: ActaParser.cxx:199
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:386
@ boldBit
Definition: MWAWFont.hxx:182
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
std::string m_title
the title (if defined)
Definition: ActaParser.cxx:201
bool operator!=(Label const &lbl) const
operator=!
Definition: ActaParser.cxx:95
@ NONE
Definition: MWAWList.hxx:46
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
@ LOWER_ALPHA
Definition: MWAWList.hxx:46
int id() const
returns the id
Definition: MWAWEntry.hxx:153
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: ActaParser.cxx:233
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
Printing()
constructor
Definition: ActaParser.cxx:107
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
shared_ptr< MWAWList > getMainList()
returns a list to be used in the text
Definition: ActaParser.cxx:309
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:495
Internal: class used to store a list type in ActaParser.
Definition: ActaParser.cxx:61
int version() const
returns the works version
Definition: MWAWParser.hxx:108
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
void init()
inits all internal variables
Definition: ActaParser.cxx:273
@ Simple
Definition: MWAWFont.hxx:49
bool operator==(Label const &lbl) const
operator==
Definition: ActaParser.cxx:90
@ UPPER_ALPHA
Definition: MWAWList.hxx:46
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
@ MWAW_T_ACTA
Acta (v2 and Classic v1)
Definition: MWAWDocument.hxx:101
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
bool readOption(MWAWEntry const &entry)
read the QOPT resource block (small print change )
Definition: ActaParser.cxx:880
MWAWTextListenerPtr & getTextListener()
returns the text listener
Definition: MWAWParser.hxx:145
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: ActaParser.cxx:224
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
bool readEndDataV3()
read the end file data zones
Definition: ActaParser.cxx:601
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
virtual ~SubDocument()
destructor
Definition: ActaParser.cxx:221
@ embossBit
Definition: MWAWFont.hxx:182
bool readLabel(MWAWEntry const &entry)
read the label type
Definition: ActaParser.cxx:807
@ Date
Definition: libmwaw_internal.hxx:371
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
int m_flags
the flags
Definition: ActaParser.cxx:187
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
shared_ptr< ActaText > m_textParser
the text parser
Definition: ActaParser.hxx:136
ActaParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: ActaParser.cxx:263
SubDocumentType
Definition: libmwaw_internal.hxx:178
Internal: the subdocument of a ActaParser.
Definition: ActaParser.cxx:215
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
@ shadowBit
Definition: MWAWFont.hxx:183
void setTextListener(MWAWTextListenerPtr &listener)
sets the text listener
Definition: MWAWParser.cxx:146
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
@ UPPER_ROMAN
Definition: MWAWList.hxx:47
virtual ~ActaParser()
destructor
Definition: ActaParser.cxx:269
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
int m_actPage
the actual page
Definition: ActaParser.cxx:206
T y() const
second element
Definition: libmwaw_internal.hxx:620
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
int m_footerHeight
the footer height if known
Definition: ActaParser.cxx:209
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
T x() const
first element
Definition: libmwaw_internal.hxx:615
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: ActaParser.cxx:286
bool createZones()
finds the different objects zones
Definition: ActaParser.cxx:518
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
@ PageBreak
Definition: MWAWListener.hxx:58
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: ActaParser.cxx:910
bool readHFProperties(MWAWEntry const &entry)
read the Header/Footer property (QHDR block)
Definition: ActaParser.cxx:830
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: ActaParser.cxx:406
Internal: the state of a ActaParser.
Definition: ActaParser.cxx:192
Definition: libmwaw_internal.hxx:142
int m_flags[2]
the flags
Definition: ActaParser.cxx:155
the main class to read a Acta file
Definition: ActaParser.hxx:58
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
void newPage(int number)
adds a new page
Definition: ActaParser.cxx:390
@ LOWER_ROMAN
Definition: MWAWList.hxx:47
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
bool operator!=(Printing const &print) const
operator=!
Definition: ActaParser.cxx:129
Label(int type=-1)
constructor
Definition: ActaParser.cxx:63
a field
Definition: libmwaw_internal.hxx:369
@ PageNumber
Definition: libmwaw_internal.hxx:371
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:218
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
std::string m_stringLabel
the custom label (if defined)
Definition: ActaParser.cxx:205
int m_type
the label type
Definition: ActaParser.cxx:100
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
librevenge::RVNGString m_bullet
the bullet if we have an bullet level
Definition: MWAWList.hxx:99
@ DECIMAL
Definition: MWAWList.hxx:46
SubDocument(ActaParser &pars, MWAWInputStreamPtr input)
Definition: ActaParser.cxx:217
int m_headerHeight
the header height if known
Definition: ActaParser.cxx:208
@ italicBit
Definition: MWAWFont.hxx:182
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
friend std::ostream & operator<<(std::ostream &o, Label const &lbl)
operator<<
Definition: ActaParser.cxx:65
@ BULLET
Definition: MWAWList.hxx:46
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
small structure to keep information about a list level
Definition: MWAWList.hxx:44
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
Type m_type
the type of the level
Definition: MWAWList.hxx:86
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:223
int m_numBeforeLabels
the number of label to show before this
Definition: MWAWList.hxx:88
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
double m_labelAfterSpace
the minimum distance between the label and the text
Definition: MWAWList.hxx:91
friend std::ostream & operator<<(std::ostream &o, Option const &opt)
operator<<
Definition: ActaParser.cxx:164
bool readPrintInfo(MWAWEntry const &entry)
read a PrintInfo block ( PSET resource block )
Definition: ActaParser.cxx:724
Option(int flags=0)
constructor
Definition: ActaParser.cxx:162
void sendHeaderFooter()
sends the header/footer data
Definition: ActaParser.cxx:467
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
Class to store font.
Definition: MWAWFont.hxx:44
librevenge::RVNGString m_prefix
string which preceedes the number if we have an ordered level
Definition: MWAWList.hxx:97
@ Title
Definition: libmwaw_internal.hxx:371
Internal: class used to store the printing preferences in ActaParser.
Definition: ActaParser.cxx:105
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ActaParser.cxx:435
the main class to read the text part of Acta Text file
Definition: ActaText.hxx:58
bool operator==(Printing const &print) const
operator==
Definition: ActaParser.cxx:118
friend class ActaText
Definition: ActaParser.hxx:60
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: ActaParser.cxx:244
void setUnderlineStyle(Line::Style style=Line::None, bool doReset=true)
sets the underline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:445
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ActaParser.cxx:299
void resetTextListener()
resets the listener
Definition: MWAWParser.cxx:151
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: ActaParser.cxx:291
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
shared_ptr< ActaParserInternal::State > m_state
the state
Definition: ActaParser.hxx:133
int m_numPages
the number of page of the final document
Definition: ActaParser.cxx:206
Generated on Wed Jun 17 2020 06:30:08 for libmwaw by
doxygen 1.8.18