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:565
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
Definition: libmwaw_internal.hxx:401
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:166
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
MWAWEntry getHeaderEntry(bool fPage) const
return the header entry
Definition: BeagleWksText.cxx:214
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
BeagleWksText(BeagleWksParser &parser)
constructor
Definition: BeagleWksText.cxx:359
bool m_parsed[4]
true if the data are send to the listener
Definition: BeagleWksText.cxx:255
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:259
Section & operator=(Section const &)=default
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:161
the main class to read the text part of BeagleWorks Text file
Definition: BeagleWksText.hxx:61
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
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:111
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
Definition: MWAWParagraph.hxx:48
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:128
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:943
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: BeagleWksText.cxx:647
std::shared_ptr< MWAWSubDocument > getFooter(int page, int &numSimillar)
return a footer subdocument
Definition: BeagleWksText.cxx:419
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:155
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:1048
MWAWParserStatePtr m_parserState
the parser state
Definition: BeagleWksText.hxx:118
friend std::ostream & operator<<(std::ostream &o, Section const &sec)
operator<<
Definition: BeagleWksText.cxx:224
Font()
constructor
Definition: BeagleWksText.cxx:66
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
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:627
BeagleWksText * m_textParser
the text parser
Definition: BeagleWksText.cxx:318
void countPages()
update the number of pages and the number of page by section
Definition: BeagleWksText.cxx:546
bool sendMainText()
send a main zone
Definition: BeagleWksText.cxx:622
int m_version
the file version
Definition: BeagleWksText.cxx:290
bool m_usePageNumber
true if we need to use the page number
Definition: BeagleWksText.cxx:261
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:41
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:147
Definition: MWAWParagraph.hxx:48
Internal: the structures of a BeagleWksText.
Definition: BeagleWksText.cxx:60
int m_heights[2]
the header/footer height
Definition: BeagleWksText.cxx:257
Definition: MWAWFont.hxx:190
Definition: MWAWFont.hxx:192
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:56
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
Definition: MWAWParagraph.hxx:90
Definition: MWAWFont.hxx:191
BeagleWksParser * m_mainParser
the main parser;
Definition: BeagleWksText.hxx:126
int m_sectId
the section id
Definition: BeagleWksText.cxx:322
int m_numPages
Definition: BeagleWksText.cxx:291
MWAWEntry getEntry(int i) const
return the i^th entry
Definition: BeagleWksText.cxx:200
bool m_hasFirstPage
a flag to know if the first page is special
Definition: BeagleWksText.cxx:247
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:76
MWAWEntry m_textEntry
the main text entry
Definition: BeagleWksText.cxx:284
SubDocument & operator=(SubDocument const &orig)=delete
int numPages() const
returns the number of pages
Definition: BeagleWksText.cxx:378
a border
Definition: libmwaw_internal.hxx:333
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:66
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:392
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:92
std::shared_ptr< BeagleWksStructManager > m_structureManager
the structure manager
Definition: BeagleWksText.hxx:123
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: BeagleWksText.cxx:328
bool m_hasHeader
a flag to know if we need to print the header
Definition: BeagleWksText.cxx:249
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
a class which stores section properties
Definition: MWAWSection.hxx:45
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: BeagleWksText.cxx:339
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:82
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:71
bool createZones(MWAWEntry &entry)
try to create the text zones
Definition: BeagleWksText.cxx:453
std::string m_extra
extra data
Definition: BeagleWksText.cxx:263
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
a field
Definition: libmwaw_internal.hxx:399
Definition: libmwaw_internal.hxx:401
SubDocument(BeagleWksText &pars, MWAWInputStreamPtr &input, int hFId, int sId)
Definition: BeagleWksText.cxx:299
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:367
long end() const
returns the end offset
Definition: MWAWEntry.hxx:87
bool readFont(BeagleWksTextInternal::Font &font, long endPos)
try to read a font properties
Definition: BeagleWksText.cxx:908
~Section() final
destructor
Definition: BeagleWksText.cxx:266
long m_limitPos[5]
the data limits ( first page header, first page footer, header, footer, end)
Definition: BeagleWksText.cxx:253
int m_hfId
the header/footer id
Definition: BeagleWksText.cxx:320
int version() const
returns the file version
Definition: BeagleWksText.cxx:371
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:149
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:308
MWAWFont getFont(BeagleWksTextInternal::Font const &ft) const
returns the font
Definition: BeagleWksText.cxx:385
std::vector< Section > m_sectionList
the section list
Definition: BeagleWksText.cxx:286
bool m_hasFooter
a flag to know if we need to print the footer
Definition: BeagleWksText.cxx:251
Definition: MWAWParagraph.hxx:90
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:555
MWAWEntry getFooterEntry(bool fPage) const
return true if we have a header
Definition: BeagleWksText.cxx:219
bool m_balanceText
true if the text is balanced between different columns
Definition: MWAWSection.hxx:113
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:98
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:288
Definition: MWAWParagraph.hxx:48
MWAWParagraph m_ruler
the default section ruler
Definition: BeagleWksText.cxx:245
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
Internal: the state of a BeagleWksText.
Definition: BeagleWksText.cxx:272
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:551
Section()
constructor
Definition: BeagleWksText.cxx:180
Definition: MWAWParagraph.hxx:48
int m_size
the font size
Definition: BeagleWksText.cxx:168
Class to store font.
Definition: MWAWFont.hxx:43
std::string m_extra
a string to store some errors
Definition: MWAWParagraph.hxx:189
bool sendText(MWAWEntry const &entry)
try to send a text zone
Definition: BeagleWksText.cxx:667
int m_actualPage
Definition: BeagleWksText.cxx:291
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:296
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
State()
constructor
Definition: BeagleWksText.cxx:274
the main class to read a BeagleWorks file
Definition: BeagleWksParser.hxx:59
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Definition: MWAWFont.hxx:193
Generated on Wed Jul 24 2024 03:31:50 for libmwaw by
doxygen 1.8.16