Go to the documentation of this file.
38 #ifndef BEAGLE_WKS_TEXT
39 # define BEAGLE_WKS_TEXT
92 std::shared_ptr<MWAWSubDocument>
getHeader(
int page,
int &numSimillar);
94 std::shared_ptr<MWAWSubDocument>
getFooter(
int page,
int &numSimillar);
100 bool sendHF(
int hfId,
int sectId);
121 std::shared_ptr<BeagleWksTextInternal::State>
m_state;
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
MWAWEntry getHeaderEntry(bool fPage) const
return the header entry
Definition: BeagleWksText.cxx:215
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
BeagleWksText(BeagleWksParser &parser)
constructor
Definition: BeagleWksText.cxx:360
bool m_parsed[4]
true if the data are send to the listener
Definition: BeagleWksText.cxx:256
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
BeagleWksText & operator=(BeagleWksText const &orig)=delete
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
int m_pageNumber
the page number
Definition: BeagleWksText.cxx:260
Section & operator=(Section const &)=default
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
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:424
int id() const
returns the font id
Definition: MWAWFont.hxx:259
@ boldBit
Definition: MWAWFont.hxx:190
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
MWAWBorder m_columnSeparator
the vertical separator between columns
Definition: MWAWSection.hxx:112
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
@ CENTER
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
Internal: a class used to store the section data of a BeagleWksText.
Definition: BeagleWksText.cxx:178
bool readParagraph(MWAWParagraph ¶, long endPos, bool inSection=false)
try to read a paragraph knowing end pos
Definition: BeagleWksText.cxx:944
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: BeagleWksText.cxx:648
std::shared_ptr< MWAWSubDocument > getFooter(int page, int &numSimillar)
return a footer subdocument
Definition: BeagleWksText.cxx:420
the class to store a color
Definition: libmwaw_internal.hxx:192
friend std::ostream & operator<<(std::ostream &o, Font const &fnt)
operator<<
Definition: BeagleWksText.cxx:118
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:109
bool readSection(MWAWEntry const &entry, BeagleWksTextInternal::Section §ion)
try to read a section
Definition: BeagleWksText.cxx:1049
MWAWParserStatePtr m_parserState
the parser state
Definition: BeagleWksText.hxx:118
friend std::ostream & operator<<(std::ostream &o, Section const &sec)
operator<<
Definition: BeagleWksText.cxx:225
Font()
constructor
Definition: BeagleWksText.cxx:66
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
@ Simple
Definition: MWAWFont.hxx:49
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
update the page span list
bool sendHF(int hfId, int sectId)
try to send a header/footer id
Definition: BeagleWksText.cxx:628
BeagleWksText * m_textParser
the text parser
Definition: BeagleWksText.cxx:319
void countPages()
update the number of pages and the number of page by section
Definition: BeagleWksText.cxx:547
bool sendMainText()
send a main zone
Definition: BeagleWksText.cxx:623
int m_version
the file version
Definition: BeagleWksText.cxx:291
bool m_usePageNumber
true if we need to use the page number
Definition: BeagleWksText.cxx:262
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
@ 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:258
@ embossBit
Definition: MWAWFont.hxx:190
@ uppercaseBit
Definition: MWAWFont.hxx:192
@ Date
Definition: libmwaw_internal.hxx:401
int m_color
the font color
Definition: BeagleWksText.cxx:172
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
int m_flags
the font flags
Definition: BeagleWksText.cxx:170
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:188
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
@ shadowBit
Definition: MWAWFont.hxx:191
BeagleWksParser * m_mainParser
the main parser;
Definition: BeagleWksText.hxx:126
int m_sectId
the section id
Definition: BeagleWksText.cxx:323
int m_numPages
Definition: BeagleWksText.cxx:292
MWAWEntry getEntry(int i) const
return the i^th entry
Definition: BeagleWksText.cxx:201
bool m_hasFirstPage
a flag to know if the first page is special
Definition: BeagleWksText.cxx:248
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:77
MWAWEntry m_textEntry
the main text entry
Definition: BeagleWksText.cxx:285
SubDocument & operator=(SubDocument const &orig)=delete
int numPages() const
returns the number of pages
Definition: BeagleWksText.cxx:379
a border
Definition: libmwaw_internal.hxx:333
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
int m_id
the font id
Definition: BeagleWksText.cxx:166
std::shared_ptr< MWAWSubDocument > getHeader(int page, int &numSimillar)
return an header subdocument
Definition: BeagleWksText.cxx:393
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
std::shared_ptr< BeagleWksStructManager > m_structureManager
the structure manager
Definition: BeagleWksText.hxx:123
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: BeagleWksText.cxx:329
bool m_hasHeader
a flag to know if we need to print the header
Definition: BeagleWksText.cxx:250
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
a class which stores section properties
Definition: MWAWSection.hxx:46
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: BeagleWksText.cxx:340
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
bool createZones(MWAWEntry &entry)
try to create the text zones
Definition: BeagleWksText.cxx:454
std::string m_extra
extra data
Definition: BeagleWksText.cxx:264
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
BeagleWksText(BeagleWksText 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
SubDocument(SubDocument const &orig)=delete
SubDocument(BeagleWksText &pars, MWAWInputStreamPtr &input, int hFId, int sId)
Definition: BeagleWksText.cxx:300
static Script sub()
return a yposition which correspond to a basic subscript
Definition: MWAWFont.hxx:120
std::shared_ptr< BeagleWksTextInternal::State > m_state
the state
Definition: BeagleWksText.hxx:121
virtual ~BeagleWksText()
destructor
Definition: BeagleWksText.cxx:368
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
bool readFont(BeagleWksTextInternal::Font &font, long endPos)
try to read a font properties
Definition: BeagleWksText.cxx:909
~Section() final
destructor
Definition: BeagleWksText.cxx:267
long m_limitPos[5]
the data limits ( first page header, first page footer, header, footer, end)
Definition: BeagleWksText.cxx:254
int m_hfId
the header/footer id
Definition: BeagleWksText.cxx:321
int version() const
returns the file version
Definition: BeagleWksText.cxx:372
@ italicBit
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
std::string m_extra
extra data
Definition: BeagleWksText.cxx:174
MWAWFont getFont() const
returns a MWAWFont.
Definition: BeagleWksText.cxx:76
~SubDocument() final
destructor
Definition: BeagleWksText.cxx:309
MWAWFont getFont(BeagleWksTextInternal::Font const &ft) const
returns the font
Definition: BeagleWksText.cxx:386
Defines MWAWTextListener: the libmwaw word processor listener.
std::vector< Section > m_sectionList
the section list
Definition: BeagleWksText.cxx:287
bool m_hasFooter
a flag to know if we need to print the footer
Definition: BeagleWksText.cxx:252
@ JustificationFull
Definition: MWAWParagraph.hxx:90
@ JustificationRight
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
MWAWEntry getFooterEntry(bool fPage) const
return true if we have a header
Definition: BeagleWksText.cxx:220
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:114
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
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:130
std::vector< int > m_numPagesBySectionList
the number of page by section
Definition: BeagleWksText.cxx:289
@ BAR
Definition: MWAWParagraph.hxx:48
Section & operator=(Section &&)=default
MWAWParagraph m_ruler
the default section ruler
Definition: BeagleWksText.cxx:246
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:273
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Section()
constructor
Definition: BeagleWksText.cxx:180
@ RIGHT
Definition: MWAWParagraph.hxx:48
int m_size
the font size
Definition: BeagleWksText.cxx:168
Class to store font.
Definition: MWAWFont.hxx:44
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:190
bool sendText(MWAWEntry const &entry)
try to send a text zone
Definition: BeagleWksText.cxx:668
int m_actualPage
Definition: BeagleWksText.cxx:292
void newPage(int number)
adds a new page
Definition: BeagleWksParser.cxx:153
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
Internal: the subdocument of a BeagleWksText.
Definition: BeagleWksText.cxx:298
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 sendFrame(int pId)
try to insert the pId picture (as char)
Definition: BeagleWksParser.cxx:138
Section(Section const &)=default
State()
constructor
Definition: BeagleWksText.cxx:275
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:325
@ lowercaseBit
Definition: MWAWFont.hxx:193
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20