Go to the documentation of this file.
38 #ifndef BEAGLE_WKS_TEXT
39 # define BEAGLE_WKS_TEXT
92 shared_ptr<MWAWSubDocument>
getHeader(
int page,
int &numSimillar);
94 shared_ptr<MWAWSubDocument>
getFooter(
int page,
int &numSimillar);
100 bool sendHF(
int hfId,
int sectId);
121 shared_ptr<BeagleWksTextInternal::State>
m_state;
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ Time
Definition: libmwaw_internal.hxx:371
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
MWAWEntry getHeaderEntry(bool fPage) const
return the header entry
Definition: BeagleWksText.cxx:202
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:293
BeagleWksText(BeagleWksParser &parser)
constructor
Definition: BeagleWksText.cxx:343
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
SubDocument & operator=(SubDocument const &orig)
bool m_parsed[4]
true if the data are send to the listener
Definition: BeagleWksText.cxx:243
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:75
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
Internal: a class used to store the font data of a BeagleWksText.
Definition: BeagleWksText.cxx:64
BeagleWksText(BeagleWksText const &orig)
int m_pageNumber
the page number
Definition: BeagleWksText.cxx:247
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:156
the main class to read the text part of BeagleWorks Text file
Definition: BeagleWksText.hxx:62
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:386
int id() const
returns the font id
Definition: MWAWFont.hxx:238
@ boldBit
Definition: MWAWFont.hxx:182
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:231
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:104
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:123
Internal: a class used to store the section data of a BeagleWksText.
Definition: BeagleWksText.cxx:173
bool readParagraph(MWAWParagraph ¶, long endPos, bool inSection=false)
try to read a paragraph knowing end pos
Definition: BeagleWksText.cxx:926
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: BeagleWksText.cxx:628
BeagleWksText & operator=(BeagleWksText const &orig)
the class to store a color
Definition: libmwaw_internal.hxx:182
friend std::ostream & operator<<(std::ostream &o, Font const &fnt)
operator<<
Definition: BeagleWksText.cxx:113
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:150
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:108
bool readSection(MWAWEntry const &entry, BeagleWksTextInternal::Section §ion)
try to read a section
Definition: BeagleWksText.cxx:1031
shared_ptr< MWAWSubDocument > getHeader(int page, int &numSimillar)
return an header subdocument
Definition: BeagleWksText.cxx:373
MWAWParserStatePtr m_parserState
the parser state
Definition: BeagleWksText.hxx:118
friend std::ostream & operator<<(std::ostream &o, Section const &sec)
operator<<
Definition: BeagleWksText.cxx:212
Font()
constructor
Definition: BeagleWksText.cxx:66
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
@ Simple
Definition: MWAWFont.hxx:49
SubDocument(BeagleWksText &pars, MWAWInputStreamPtr input, int hFId, int sId)
Definition: BeagleWksText.cxx:281
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
update the page span list
virtual ~SubDocument()
destructor
Definition: BeagleWksText.cxx:287
bool sendHF(int hfId, int sectId)
try to send a header/footer id
Definition: BeagleWksText.cxx:608
BeagleWksText * m_textParser
the text parser
Definition: BeagleWksText.cxx:302
void countPages()
update the number of pages and the number of page by section
Definition: BeagleWksText.cxx:527
SubDocument(SubDocument const &orig)
bool sendMainText()
send a main zone
Definition: BeagleWksText.cxx:603
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
int m_version
the file version
Definition: BeagleWksText.cxx:272
bool m_usePageNumber
true if we need to use the page number
Definition: BeagleWksText.cxx:249
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:142
@ DECIMAL
Definition: MWAWParagraph.hxx:48
Internal: the structures of a BeagleWksText.
Definition: BeagleWksText.cxx:61
int m_heights[2]
the header/footer height
Definition: BeagleWksText.cxx:245
shared_ptr< BeagleWksTextInternal::State > m_state
the state
Definition: BeagleWksText.hxx:121
@ embossBit
Definition: MWAWFont.hxx:182
@ uppercaseBit
Definition: MWAWFont.hxx:184
@ Date
Definition: libmwaw_internal.hxx:371
int m_color
the font color
Definition: BeagleWksText.cxx:167
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
int m_flags
the font flags
Definition: BeagleWksText.cxx:165
the main class to read the structure shared between different BeagleWorks files
Definition: BeagleWksStructManager.hxx:57
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
SubDocumentType
Definition: libmwaw_internal.hxx:178
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
@ shadowBit
Definition: MWAWFont.hxx:183
BeagleWksParser * m_mainParser
the main parser;
Definition: BeagleWksText.hxx:126
int m_sectId
the section id
Definition: BeagleWksText.cxx:306
int m_numPages
Definition: BeagleWksText.cxx:273
MWAWEntry getEntry(int i) const
return the i^th entry
Definition: BeagleWksText.cxx:188
bool m_hasFirstPage
a flag to know if the first page is special
Definition: BeagleWksText.cxx:235
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
MWAWEntry m_textEntry
the main text entry
Definition: BeagleWksText.cxx:266
int numPages() const
returns the number of pages
Definition: BeagleWksText.cxx:359
a border
Definition: libmwaw_internal.hxx:314
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
int m_id
the font id
Definition: BeagleWksText.cxx:161
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
shared_ptr< BeagleWksStructManager > m_structureManager
the structure manager
Definition: BeagleWksText.hxx:123
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: BeagleWksText.cxx:323
bool m_hasHeader
a flag to know if we need to print the header
Definition: BeagleWksText.cxx:237
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:73
a class which stores section properties
Definition: MWAWSection.hxx:46
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
bool createZones(MWAWEntry &entry)
try to create the text zones
Definition: BeagleWksText.cxx:434
std::string m_extra
extra data
Definition: BeagleWksText.cxx:251
double m_position
the tab position
Definition: MWAWParagraph.hxx:71
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:243
virtual ~Section()
destructor
Definition: BeagleWksText.cxx:254
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: BeagleWksText.cxx:292
a field
Definition: libmwaw_internal.hxx:369
@ PageNumber
Definition: libmwaw_internal.hxx:371
shared_ptr< MWAWSubDocument > getFooter(int page, int &numSimillar)
return a footer subdocument
Definition: BeagleWksText.cxx:400
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:112
virtual ~BeagleWksText()
destructor
Definition: BeagleWksText.cxx:349
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
long end() const
returns the end offset
Definition: MWAWEntry.hxx:77
bool readFont(BeagleWksTextInternal::Font &font, long endPos)
try to read a font properties
Definition: BeagleWksText.cxx:891
long m_limitPos[5]
the data limits ( first page header, first page footer, header, footer, end)
Definition: BeagleWksText.cxx:241
int m_hfId
the header/footer id
Definition: BeagleWksText.cxx:304
int version() const
returns the file version
Definition: BeagleWksText.cxx:352
@ italicBit
Definition: MWAWFont.hxx:182
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:144
std::string m_extra
extra data
Definition: BeagleWksText.cxx:169
MWAWFont getFont() const
returns a MWAWFont.
Definition: BeagleWksText.cxx:71
MWAWFont getFont(BeagleWksTextInternal::Font const &ft) const
returns the font
Definition: BeagleWksText.cxx:366
std::vector< Section > m_sectionList
the section list
Definition: BeagleWksText.cxx:268
bool m_hasFooter
a flag to know if we need to print the footer
Definition: BeagleWksText.cxx:239
@ JustificationFull
Definition: MWAWParagraph.hxx:87
@ JustificationRight
Definition: MWAWParagraph.hxx:88
MWAWEntry getFooterEntry(bool fPage) const
return true if we have a header
Definition: BeagleWksText.cxx:207
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:106
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:88
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:122
std::vector< int > m_numPagesBySectionList
the number of page by section
Definition: BeagleWksText.cxx:270
@ BAR
Definition: MWAWParagraph.hxx:48
MWAWParagraph m_ruler
the default section ruler
Definition: BeagleWksText.cxx:233
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
Internal: the state of a BeagleWksText.
Definition: BeagleWksText.cxx:260
bool sendText(MWAWEntry entry)
try to send a text zone
Definition: BeagleWksText.cxx:650
Section()
constructor
Definition: BeagleWksText.cxx:175
@ RIGHT
Definition: MWAWParagraph.hxx:48
int m_size
the font size
Definition: BeagleWksText.cxx:163
Class to store font.
Definition: MWAWFont.hxx:44
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:184
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: BeagleWksText.cxx:312
int m_actualPage
Definition: BeagleWksText.cxx:273
void newPage(int number)
adds a new page
Definition: BeagleWksParser.cxx:144
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
Internal: the subdocument of a BeagleWksText.
Definition: BeagleWksText.cxx:279
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
bool sendFrame(int pId)
try to insert the pId picture (as char)
Definition: BeagleWksParser.cxx:129
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
State()
constructor
Definition: BeagleWksText.cxx:262
the main class to read a BeagleWorks file
Definition: BeagleWksParser.hxx:60
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
@ lowercaseBit
Definition: MWAWFont.hxx:185
Generated on Wed Jun 17 2020 06:30:08 for libmwaw by
doxygen 1.8.18