Go to the documentation of this file.
34 #ifndef MAC_WRT_PRO_STRUCTURES
35 # define MAC_WRT_PRO_STRUCTURES
81 bool send(
int blockId);
99 MWAW_DEBUG_MSG((
"MacWrtProStructuresListenerState::numSection: not called in main zone\n"));
118 bool newPage(
bool softBreak=
false);
144 std::shared_ptr<MacWrtProStructuresInternal::Font>
m_font;
146 std::shared_ptr<MacWrtProStructuresInternal::Paragraph>
m_paragraph;
228 std::shared_ptr<MacWrtProStructuresInternal::Block>
readBlock();
231 std::shared_ptr<MacWrtProStructuresInternal::Block>
readBlockV2(
int id);
246 bool readSections(std::vector<MacWrtProStructuresInternal::Section> §ions);
261 bool getPattern(
int patId,
float &patternPercent)
const;
273 bool send(
int blockId,
bool mainZone=
false);
305 std::shared_ptr<MacWrtProStructuresInternal::State>
m_state;
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:565
static bool updateLineType(int lineType, MWAWBorder &border)
try to set the line properties of a border
Definition: MacWrtProStructures.cxx:563
librevenge::RVNGBinaryData m_inputData
the input data
Definition: MacWrtProStructures.cxx:596
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:113
MWAWParserStatePtr m_parserState
the parser state
Definition: MacWrtProStructures.hxx:296
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:549
Type m_contentType
the type
Definition: MacWrtProStructures.cxx:264
an noop deleter used to transform a libwpd pointer in a false std::shared_ptr
Definition: libmwaw_internal.hxx:101
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
YPos
an enum used to define the relative Y position
Definition: MWAWPosition.hxx:57
std::vector< int > m_footnotesList
the foonote list (for MWII)
Definition: MacWrtProStructures.cxx:611
MacWrtProStructuresListenerState(std::shared_ptr< MacWrtProStructures > const &structures, bool mainZone, int version)
the constructor
Definition: MacWrtProStructures.cxx:2781
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:474
bool m_send
true if we have send the data
Definition: MacWrtProStructures.cxx:317
bool hasSameBorders() const
Definition: MacWrtProStructures.cxx:200
std::set< MWAWVec2i > m_blocksSendSet
a list of block use to avoid potential loop in bad file
Definition: MacWrtProStructures.cxx:617
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:266
Definition: MWAWFont.hxx:192
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
bool getColor(int colId, MWAWColor &color) const
try to return the color corresponding to colId
Definition: MacWrtProStructures.cxx:714
MWAWTextListenerPtr & getTextListener()
returns the actual listener
Definition: MacWrtProStructures.cxx:655
bool readSelection()
try to read a 16 bytes the zone which follow the char styles zone ( the selection?...
Definition: MacWrtProStructures.cxx:2516
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
StartType
Definition: MacWrtProStructures.cxx:455
int m_fileBlock
the file block id
Definition: MacWrtProStructures.cxx:267
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:840
void flushExtra()
flush not send zones
Definition: MacWrtProStructures.cxx:2735
bool readStyle(int styleId)
try to read a style
Definition: MacWrtProStructures.cxx:1738
Definition: MWAWListener.hxx:58
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
const MWAWVec2< T > & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1042
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
void setBdBox(MWAWBox2f box)
set the bdbox (unit point)
Definition: MWAWCell.hxx:208
bool readBlocksList()
try to read the list of block entries
Definition: MacWrtProStructures.cxx:1834
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:356
void updatePageSpan(int page, bool hasTitlePage, MWAWPageSpan &pageSpan)
update the page span
Definition: MacWrtProStructures.cxx:667
bool readSections(std::vector< MacWrtProStructuresInternal::Section > §ions)
try to read the section info ?
Definition: MacWrtProStructures.cxx:2394
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:236
int m_token
the token type(checkme)
Definition: MacWrtProStructures.cxx:354
StartType m_start
the way to start the new section
Definition: MacWrtProStructures.cxx:528
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:161
Internal: the section of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:454
std::vector< Font > m_fontsList
the list of fonts
Definition: MacWrtProStructures.cxx:599
bool getPattern(int patId, float &patternPercent) const
try to return the pattern corresponding to patId
Definition: MacWrtProStructures.cxx:772
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:204
bool isTable() const
returns true is this is a table zone
Definition: MacWrtProStructures.cxx:196
State()
constructor
Definition: MacWrtProStructures.cxx:545
Definition: MWAWFont.hxx:190
MacWrtProParser & m_mainParser
the main parser
Definition: MacWrtProStructures.hxx:302
int m_blockId
the block id
Definition: MacWrtProStructures.cxx:421
void setAsciiName(char const *name)
Debugging: change the default ascii file (by default struct )
Definition: MacWrtProStructures.hxx:172
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
const MWAWVec2< T > & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1037
Definition: libmwaw_internal.hxx:178
Definition: MWAWParagraph.hxx:48
std::string m_extra
extra data
Definition: MacWrtProStructures.cxx:314
int numSection() const
returns the actual section
Definition: MacWrtProStructures.hxx:96
~MacWrtProStructuresListenerState()
the destructor
Definition: MacWrtProStructures.cxx:2804
const std::string & asciiName() const
return the ascii file name
Definition: MacWrtProStructures.hxx:285
Definition: MWAWPosition.hxx:57
std::vector< Section > m_sectionsList
the list of section
Definition: MacWrtProStructures.cxx:603
the class to store a color
Definition: libmwaw_internal.hxx:192
MacWrtProStructures & m_parser
the text parser
Definition: MacWrtProStructures.cxx:419
bool m_attachment
true if this is an attachment
Definition: MacWrtProStructures.cxx:273
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:109
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:354
MWAWBorder m_borderCellList[4]
the cell borders
Definition: MacWrtProStructures.cxx:285
int m_numTab
Definition: MacWrtProStructures.hxx:134
std::string getFontDebugString(int fontId)
debug function which returns a string corresponding to a fontId
Definition: MacWrtProStructures.cxx:2977
std::shared_ptr< MacWrtProStructuresInternal::Paragraph > m_paragraph
Definition: MacWrtProStructures.hxx:146
MWAWInputStreamPtr m_input
the main input
Definition: MacWrtProStructures.hxx:299
std::vector< std::shared_ptr< Block > > m_blocksList
the list of block
Definition: MacWrtProStructures.cxx:605
Definition: MacWrtProStructures.cxx:63
bool createZones()
finds the different objects zones
Definition: MacWrtProStructures.cxx:813
class to store the paragraph properties
Definition: MWAWParagraph.hxx:84
Definition: MWAWPosition.hxx:53
Internal: the fonts.
Definition: MacWrtProStructures.cxx:322
Definition: MWAWFont.hxx:49
long m_textLength
the number of character in the sections
Definition: MacWrtProStructures.cxx:536
bool readFont(MacWrtProStructuresInternal::Font &font)
try to read a font
Definition: MacWrtProStructures.cxx:1310
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
Internal: the cell of a MacWrtProStructure.
Definition: MacWrtProStructures.cxx:388
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:319
int m_col
number of columns, filled for table
Definition: MacWrtProStructures.cxx:308
std::shared_ptr< MacWrtProStructuresInternal::Block > readBlock()
try to read a block entry
Definition: MacWrtProStructures.cxx:2121
bool readStyles()
try to read the paragraph styles zone which begins at address 0x200
Definition: MacWrtProStructures.cxx:1697
Block()
the constructor
Definition: MacWrtProStructures.cxx:65
int m_version
Definition: MacWrtProStructures.hxx:128
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
void setDeltaLetterSpacing(float d, librevenge::RVNGUnit unit=librevenge::RVNG_POINT)
sets the letter spacing ( delta value in point )
Definition: MWAWFont.hxx:292
bool newPage(bool softBreak=false)
create a new page
Definition: MacWrtProStructures.cxx:2827
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
std::map< int, std::shared_ptr< Table > > m_tablesMap
a map block id -> table
Definition: MacWrtProStructures.cxx:609
bool parseDataZone(int blockId, int type)
parse a data zone
Definition: MacWrtProParser.cxx:953
Definition: MWAWParagraph.hxx:48
std::shared_ptr< MWAWSubDocument > getSubDocument(int blockId)
returns a subdocument corresponding to a blockid
Definition: MacWrtProParser.cxx:389
bool readCharStyles()
try to read the character styles zone
Definition: MacWrtProStructures.cxx:1609
Definition: MWAWFont.hxx:190
int m_flags
some unknown flag
Definition: MacWrtProStructures.cxx:352
bool sendEmptyFrameZone(MWAWPosition const &pos, MWAWGraphicStyle const &style)
try to send an empty zone (can exist in MacWrtPro1.5)
Definition: MacWrtProParser.cxx:1325
Definition: MWAWFont.hxx:192
~Table() final
destructor
Definition: MacWrtProStructures.cxx:448
libmwaw::DebugFile & ascii()
returns the debug file
Definition: MacWrtProStructures.hxx:279
std::shared_ptr< MacWrtProStructures > m_structures
Definition: MacWrtProStructures.hxx:142
virtual ~MacWrtProStructures()
destructor
Definition: MacWrtProStructures.cxx:637
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
void setStrikeOutStyle(Line::Style style=Line::None, bool doReset=true)
sets the strikeoutline style ( by default, we also reset the style)
Definition: MWAWFont.hxx:427
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
bool readFontsName()
try to read the fonts zone
Definition: MacWrtProStructures.cxx:1192
int m_row
number of row, filled for table
Definition: MacWrtProStructures.cxx:305
Internal: the data block.
Definition: MacWrtProStructures.cxx:62
bool resendAll()
force resent data : font + paragraph
Definition: MacWrtProStructures.cxx:2945
Definition: MWAWParagraph.hxx:94
Definition: MacWrtProStructures.cxx:63
int m_type
the type
Definition: MacWrtProStructures.cxx:261
std::shared_ptr< MacWrtProStructuresInternal::State > m_state
the state
Definition: MacWrtProStructures.hxx:305
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
Cell(MacWrtProStructures &parser, Block *block)
constructor
Definition: MacWrtProStructures.cxx:390
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
std::vector< Paragraph > m_paragraphsList
the list of paragraph
Definition: MacWrtProStructures.cxx:601
std::string m_asciiName
the debug file name
Definition: MacWrtProStructures.hxx:311
Definition: MWAWParagraph.hxx:90
double m_borderWList[4]
the borders width
Definition: MacWrtProStructures.cxx:282
Definition: MWAWFont.hxx:191
bool readStructB()
try to read a zone which follow the fonts zone(checkme)
Definition: MacWrtProStructures.cxx:2589
int findNumHardBreaks(int blockId)
compute the number of hard page break
Definition: MacWrtProParser.cxx:1337
bool sendTextBoxZone(int blockId, MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
send a textbox zone
Definition: MacWrtProParser.cxx:1382
Definition: libmwaw_internal.hxx:176
int m_actTab
Definition: MacWrtProStructures.hxx:132
void buildTableStructures()
look for tables structures and if so, prepare data
Definition: MacWrtProStructures.cxx:1135
Internal: the state of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:543
std::shared_ptr< MacWrtProStructuresInternal::Font > m_font
Definition: MacWrtProStructures.hxx:144
Cell * get(int id)
return a cell corresponding to id
Definition: MacWrtProStructures.cxx:438
bool m_isHeader
filled for header/footer
Definition: MacWrtProStructures.cxx:300
bool intersects(MWAWBox2f const &box) const
Definition: MacWrtProStructures.cxx:249
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:47
int m_numCols
Definition: MacWrtProStructures.hxx:138
int numColumns() const
return the number of columns
Definition: MacWrtProStructures.cxx:486
a border
Definition: libmwaw_internal.hxx:333
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:107
std::map< int, std::shared_ptr< Block > > m_blocksMap
a map block id -> block
Definition: MacWrtProStructures.cxx:607
Definition: MacWrtProStructures.cxx:455
Font()
the constructor
Definition: MacWrtProStructures.cxx:324
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:277
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:172
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:51
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
Definition: libmwaw_internal.hxx:178
float size() const
returns the font size
Definition: MWAWFont.hxx:270
Paragraph()
Constructor.
Definition: MacWrtProStructures.cxx:363
bool getZoneData(librevenge::RVNGBinaryData &data, int blockId)
retrieve the data which corresponds to a zone
Definition: MacWrtProParser.cxx:448
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
a class which stores section properties
Definition: MWAWSection.hxx:45
bool sendContent(MWAWListenerPtr listener, MWAWTable &) final
send the content
Definition: MacWrtProStructures.cxx:409
Paragraph & operator=(Paragraph const &)=default
bool m_isMainZone
Definition: MacWrtProStructures.hxx:126
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
Table()
constructor
Definition: MacWrtProStructures.cxx:432
bool readFontsDef()
try to read the list of fonts
Definition: MacWrtProStructures.cxx:1258
int m_actPage
Definition: MacWrtProStructures.hxx:130
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1191
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: MacWrtProStructures.cxx:332
bool isText() const
returns true is this is a text zone (or a not)
Definition: MacWrtProStructures.cxx:191
bool sendPictureZone(int blockId, MWAWPosition const &pictPos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
try to send a picture
Definition: MacWrtProParser.cxx:1613
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
MacWrtProStructures(MacWrtProParser &mainParser)
constructor
Definition: MacWrtProStructures.cxx:626
Internal: the structures of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:58
uint16_t m_decimalCharacter
the decimal char
Definition: MWAWParagraph.hxx:80
std::vector< float > m_colsPos
the columns position ( series of end columns <-> new column begin)
Definition: MacWrtProStructures.cxx:530
Definition: MWAWPosition.hxx:51
std::map< int, int > m_footersMap
a map page -> footer id
Definition: MacWrtProStructures.cxx:615
MWAWColor m_surfaceColor
the background color
Definition: MacWrtProStructures.cxx:291
MWAWPosition getPosition() const
Definition: MacWrtProStructures.cxx:220
std::vector< int > getPageBreaksPos() const
return a list of page break position ( as some page break are soft )
Definition: MacWrtProStructures.cxx:2858
bool m_newPageDone
Definition: MacWrtProStructures.hxx:140
std::shared_ptr< MacWrtProStructuresInternal::Block > readBlockV2(int id)
try to read a block entry
Definition: MacWrtProStructures.cxx:1915
bool sendTextZone(int blockId, bool mainZone=false)
send a text box
Definition: MacWrtProParser.cxx:1371
friend std::ostream & operator<<(std::ostream &o, Block const &bl)
operator<<
Definition: MacWrtProStructures.cxx:89
Definition: libmwaw_internal.hxx:176
Definition: MacWrtProStructures.cxx:455
friend std::ostream & operator<<(std::ostream &o, Section const &sec)
operator<<
Definition: MacWrtProStructures.cxx:492
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:267
float m_baseline
the baseline ( in point 0=bottom aligned)
Definition: MacWrtProStructures.cxx:288
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
bool contains(MWAWBox2f const &box) const
Definition: MacWrtProStructures.cxx:244
void sendChar(char c)
send a character
Definition: MacWrtProStructures.cxx:2870
std::map< int, int > m_headersMap
a map page -> header id
Definition: MacWrtProStructures.cxx:613
Definition: libmwaw_internal.hxx:337
Definition: libmwaw_internal.hxx:178
Definition: MacWrtProStructures.cxx:455
std::string m_extra
extra data
Definition: MacWrtProStructures.cxx:538
MWAWSection getSection() const
returns a MWAWSection
Definition: MacWrtProStructures.cxx:468
Definition: MWAWFont.hxx:190
bool sendParagraph(int id)
try to send a paragraph
Definition: MacWrtProStructures.cxx:3000
MWAWFont m_font
the font
Definition: MacWrtProStructures.cxx:350
bool hasBorders() const
Definition: MacWrtProStructures.cxx:209
Section()
constructor
Definition: MacWrtProStructures.cxx:458
std::string getParagraphDebugString(int paraId)
debug function which returns a string corresponding to a paragrapId
Definition: MacWrtProStructures.cxx:3023
static bool readString(MWAWInputStreamPtr input, std::string &res)
try to read a string
Definition: MacWrtProStructures.cxx:2556
int version() const
returns the file version.
Definition: MacWrtProStructures.cxx:648
Definition: MWAWParagraph.hxx:88
bool send(int blockId, bool mainZone=false)
try to send a block which corresponds to blockid
Definition: MacWrtProStructures.cxx:2650
int m_section
Definition: MacWrtProStructures.hxx:136
bool createZonesV2()
finds the different objects zones in a MacWriteII file
Definition: MacWrtProStructures.cxx:931
Definition: MacWrtProStructures.cxx:430
int m_values[5]
unknown values
Definition: MacWrtProStructures.cxx:356
Definition: libmwaw_internal.hxx:176
int m_numPages
the number of pages
Definition: MacWrtProStructures.cxx:593
bool isGraphic() const
returns true is this is a graphic zone
Definition: MacWrtProStructures.cxx:186
bool sendMainZone()
send the main zone
Definition: MacWrtProStructures.cxx:1040
Definition: MWAWPosition.hxx:51
Definition: MacWrtProStructures.cxx:63
Definition: MWAWParagraph.hxx:90
Definition: MWAWParagraph.hxx:91
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:555
Definition: libmwaw_internal.hxx:178
int m_id
the block id
Definition: MacWrtProStructures.cxx:270
the main class to read the structures part of MacWrite Pro file
Definition: MacWrtProStructures.hxx:154
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:379
void sendSection(int numSection)
try to send the i^th section
Definition: MacWrtProStructures.cxx:3040
std::string m_extra
extra data ( if needed)
Definition: libmwaw_internal.hxx:395
bool isSent(int blockId)
returns true if the block is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2808
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:130
int m_headerFooterFlags
the header/footer flags(MWII)
Definition: MacWrtProStructures.cxx:302
Definition: MWAWPosition.hxx:57
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:227
an interface to transmit the info of MacWrtProStructures to a listener
Definition: MacWrtProStructures.hxx:70
bool readParagraph(MacWrtProStructuresInternal::Paragraph ¶)
try to read a paragraph
Definition: MacWrtProStructures.cxx:1452
~Cell() final
destructor
Definition: MacWrtProStructures.cxx:424
Definition: libmwaw_internal.hxx:176
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1065
MWAWPosition::YPos getRelativeYPos() const
Definition: MacWrtProStructures.cxx:237
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
int m_version
the file version
Definition: MacWrtProStructures.cxx:590
Definition: MWAWPosition.hxx:53
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
Definition: MWAWFont.hxx:51
Definition: MWAWPosition.hxx:55
Definition: MWAWPosition.hxx:57
Definition: MacWrtProStructures.cxx:63
Type
Definition: MacWrtProStructures.cxx:63
Definition: MacWrtProStructures.cxx:455
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:551
MWAWBox2f m_box
the bdbox
Definition: MacWrtProStructures.cxx:279
Internal: class to store the paragraph properties.
Definition: MacWrtProStructures.cxx:361
const std::vector< int > & getBlocksCalledByToken() const
return the list of blockid called by token.
Definition: MacWrtProParser.cxx:384
std::shared_ptr< MWAWCell > get(int id)
returns the i^th cell
Definition: MWAWTable.cxx:122
bool sendFont(int id)
try to send a character style
Definition: MacWrtProStructures.cxx:2954
Definition: MWAWParagraph.hxx:48
int m_headerIds[2]
the header block ids
Definition: MacWrtProStructures.cxx:532
Internal: the structures of a MacWrtProParser.
Definition: MacWrtProParser.cxx:61
void fillFrame(MWAWGraphicStyle &style) const
update the style to include frame style
Definition: MacWrtProStructures.cxx:169
Class to store font.
Definition: MWAWFont.hxx:43
int m_value
a unknown value
Definition: MacWrtProStructures.cxx:379
int m_page
the page (if absolute)
Definition: MacWrtProStructures.cxx:276
a structure used to define a cell and its format
Definition: MWAWCell.hxx:52
void setLanguage(std::string const &lang)
set the language ( in the for en_US, en_GB, en, ...)
Definition: MWAWFont.hxx:500
int m_textboxCellType
filled for textbox : 0: unknown/textbox, 1: cell, 2: textbox(opened)
Definition: MacWrtProStructures.cxx:311
int m_textPos
filled for pagebreak pos
Definition: MacWrtProStructures.cxx:297
void buildPageStructures()
look for pages structures
Definition: MacWrtProStructures.cxx:1070
MWAWBorder m_lineBorder
the line border
Definition: MacWrtProStructures.cxx:294
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
bool send(int blockId)
try to send a block which corresponds to blockid
Definition: MacWrtProStructures.cxx:2814
void insertSoftPageBreak()
insert a page break ( if we are not on a new page )
Definition: MacWrtProStructures.cxx:2821
the main class to read a MacWrite II and MacWrite Pro file
Definition: MacWrtProParser.hxx:67
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
bool readParagraphs()
try to read a list of paragraph
Definition: MacWrtProStructures.cxx:1397
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
int m_footerIds[2]
the footerer block ids
Definition: MacWrtProStructures.cxx:534
libmwaw::DebugFile m_asciiFile
the debug file
Definition: MacWrtProStructures.hxx:308
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:97
~Paragraph() final
destructor
Definition: MacWrtProStructures.cxx:382
int numPages() const
returns the number of pages
Definition: MacWrtProStructures.cxx:660
bool isSent(int blockId)
returns true if the block is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2631
Definition: MWAWParagraph.hxx:88
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
Definition: MWAWFont.hxx:193
void init()
inits all internal variables
Definition: MacWrtProStructures.cxx:642
Generated on Sun Aug 18 2019 09:48:30 for libmwaw by
doxygen 1.8.16