Go to the documentation of this file.
34 #ifndef MAC_WRT_PRO_STRUCTURES
35 # define MAC_WRT_PRO_STRUCTURES
78 bool isSent(
int graphicId);
80 bool send(
int graphicId);
95 MWAW_DEBUG_MSG((
"MacWrtProStructuresListenerState::numSection: not called in main zone\n"));
108 bool newPage(
bool softBreak=
false);
188 bool readStyles(std::shared_ptr<MWAWStream> &stream);
191 bool readStyle(std::shared_ptr<MWAWStream> &stream,
int styleId);
205 std::shared_ptr<MacWrtProStructuresInternal::Graphic>
readGraphic(std::shared_ptr<MWAWStream> &stream);
224 bool readSections(std::shared_ptr<MWAWStream> &stream, std::vector<MacWrtProStructuresInternal::Section> §ions);
230 bool readStructB(std::shared_ptr<MWAWStream> &stream);
239 bool getPattern(
int patId,
float &patternPercent)
const;
245 bool isSent(
int graphicId);
251 bool send(
int graphicId,
bool mainZone=
false);
268 std::shared_ptr<MacWrtProStructuresInternal::State>
m_state;
bool intersects(MWAWBox2f const &box) const
Definition: MacWrtProStructures.cxx:305
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
static bool updateLineType(int lineType, MWAWBorder &border)
try to set the line properties of a border
Definition: MacWrtProStructures.cxx:670
librevenge::RVNGBinaryData m_inputData
the input data
Definition: MacWrtProStructures.cxx:703
bool readStyle(std::shared_ptr< MWAWStream > &stream, int styleId)
try to read a style
Definition: MacWrtProStructures.cxx:1780
int numCells() const
returns the number of cell
Definition: MWAWTable.hxx:113
MWAWParserStatePtr m_parserState
the parser state
Definition: MacWrtProStructures.hxx:262
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
std::string m_extra
extra data
Definition: MacWrtProStructures.cxx:391
bool isSent(int graphicId)
returns true if the graphic is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2677
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
int m_graphicId
the graphic id
Definition: MacWrtProStructures.cxx:528
std::vector< Page > m_pagesList
the pages list (for MWII)
Definition: MacWrtProStructures.cxx:710
MacWrtProStructuresListenerState(std::shared_ptr< MacWrtProStructures > const &structures, bool mainZone, int version)
the constructor
Definition: MacWrtProStructures.cxx:2838
void setUnderlineType(Line::Type type=Line::Single)
sets the underline type
Definition: MWAWFont.hxx:474
bool readPageII(std::shared_ptr< MWAWStream > const &stream, int wh, MacWrtProStructuresInternal::Page &page)
try to read a page entry: II
Definition: MacWrtProStructures.cxx:1894
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
@ smallCapsBit
Definition: MWAWFont.hxx:192
uint16_t m_leaderCharacter
the leader char
Definition: MWAWParagraph.hxx:78
int m_page
the page (if absolute)
Definition: MacWrtProStructures.cxx:416
bool getColor(int colId, MWAWColor &color) const
try to return the color corresponding to colId
Definition: MacWrtProStructures.cxx:822
MWAWTextListenerPtr & getTextListener()
returns the actual listener
Definition: MacWrtProStructures.cxx:758
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWBox2f m_box
the bdbox
Definition: MacWrtProStructures.cxx:338
StartType
Definition: MacWrtProStructures.cxx:562
Graphic(int vers)
the constructor
Definition: MacWrtProStructures.cxx:64
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void flushExtra()
flush not send zones
Definition: MacWrtProStructures.cxx:2774
@ ColumnBreak
Definition: MWAWListener.hxx:58
bool contains(MWAWBox2f const &box) const
Definition: MacWrtProStructures.cxx:300
std::vector< int > const & getGraphicIdCalledByToken() const
return the list of graphicid called by token.
Definition: MacWrtProParser.cxx:371
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
void setBdBox(MWAWBox2f box)
set the bdbox (unit point)
Definition: MWAWCell.hxx:211
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:356
MWAWBorder m_borderCellList[4]
the cell borders
Definition: MacWrtProStructures.cxx:367
void updatePageSpan(int page, bool hasTitlePage, MWAWPageSpan &pageSpan)
update the page span
Definition: MacWrtProStructures.cxx:770
bool m_send
true if we have send the data
Definition: MacWrtProStructures.cxx:394
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
int m_token
the token type(checkme)
Definition: MacWrtProStructures.cxx:460
StartType m_start
the way to start the new section
Definition: MacWrtProStructures.cxx:635
Internal: the section of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:561
std::vector< Font > m_fontsList
the list of fonts
Definition: MacWrtProStructures.cxx:706
bool getPattern(int patId, float &patternPercent) const
try to return the pattern corresponding to patId
Definition: MacWrtProStructures.cxx:880
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:205
State()
constructor
Definition: MacWrtProStructures.cxx:652
@ boldBit
Definition: MWAWFont.hxx:190
MacWrtProParser & m_mainParser
the main parser
Definition: MacWrtProStructures.hxx:265
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:341
@ BottomBit
Definition: libmwaw_internal.hxx:178
@ CENTER
Definition: MWAWParagraph.hxx:48
int numSection() const
returns the actual section
Definition: MacWrtProStructures.hxx:92
~MacWrtProStructuresListenerState()
the destructor
Definition: MacWrtProStructures.cxx:2859
@ TEXT
Definition: MacWrtProStructures.cxx:62
std::string m_extra
extra data
Definition: MacWrtProStructures.cxx:420
bool readGraphicII(std::shared_ptr< MWAWStream > const &stream, int id, bool mainGraphic, MacWrtProStructuresInternal::Graphic &graphic)
try to read a graphic structure: II
Definition: MacWrtProStructures.cxx:1949
@ YCenter
Definition: MWAWPosition.hxx:57
std::vector< Section > m_sectionsList
the list of section
Definition: MacWrtProStructures.cxx:712
the class to store a color
Definition: libmwaw_internal.hxx:192
MacWrtProStructures & m_parser
the text parser
Definition: MacWrtProStructures.cxx:526
bool readParagraphs(std::shared_ptr< MWAWStream > &stream)
try to read a list of paragraph
Definition: MacWrtProStructures.cxx:1444
void setColumns(int num, double width, librevenge::RVNGUnit widthUnit, double colSep=0)
a function which sets n uniform columns
Definition: MWAWSection.cxx:109
int m_lastFlag
the last flag
Definition: MacWrtProStructures.cxx:357
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:447
Type
Definition: MacWrtProStructures.cxx:62
int m_numTab
Definition: MacWrtProStructures.hxx:119
bool readSections(std::shared_ptr< MWAWStream > &stream, std::vector< MacWrtProStructuresInternal::Section > §ions)
try to read the section info ?
Definition: MacWrtProStructures.cxx:2437
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
@ WDynamic
Definition: MWAWPosition.hxx:53
@ UNKNOWN
Definition: MacWrtProStructures.cxx:62
Internal: the fonts.
Definition: MacWrtProStructures.cxx:428
Page()
the constructor
Definition: MacWrtProStructures.cxx:400
@ Simple
Definition: MWAWFont.hxx:49
long m_textLength
the number of character in the sections
Definition: MacWrtProStructures.cxx:643
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
Internal: the cell of a MacWrtProStructure.
Definition: MacWrtProStructures.cxx:495
MWAWPosition getPosition() const
Definition: MacWrtProStructures.cxx:276
void setBackgroundColor(MWAWColor color)
sets the background color
Definition: MWAWCell.hxx:332
bool m_isHeader
filled for header/footer
Definition: MacWrtProStructures.cxx:379
int m_headerFooterFlag
the header footer flag
Definition: MacWrtProStructures.cxx:348
int m_version
Definition: MacWrtProStructures.hxx:113
Paragraph(Paragraph const &)=default
int m_col
number of columns, filled for table
Definition: MacWrtProStructures.cxx:385
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:2885
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
static std::string convertDateToDebugString(unsigned date)
convert a date in a string (for debugging)
Definition: MacWrtProParser.cxx:1765
std::map< int, std::shared_ptr< Table > > m_tablesMap
a map graphic id -> table
Definition: MacWrtProStructures.cxx:716
bool parseDataZone(int blockId, int type)
parse a data zone
Definition: MacWrtProParser.cxx:953
@ DECIMAL
Definition: MWAWParagraph.hxx:48
std::shared_ptr< MWAWSubDocument > getSubDocument(int blockId)
returns a subdocument corresponding to a blockid
Definition: MacWrtProParser.cxx:376
@ NOTE
Definition: MacWrtProStructures.cxx:62
@ embossBit
Definition: MWAWFont.hxx:190
int m_flags
some unknown flag
Definition: MacWrtProStructures.cxx:458
bool send(int graphicId)
try to send a graphic which corresponds to graphicid
Definition: MacWrtProStructures.cxx:2869
bool sendEmptyFrameZone(MWAWPosition const &pos, MWAWGraphicStyle const &style)
try to send an empty zone (can exist in MacWrtPro1.5)
Definition: MacWrtProParser.cxx:1319
int m_column
the number of columns
Definition: MacWrtProStructures.cxx:351
@ uppercaseBit
Definition: MWAWFont.hxx:192
~Table() final
destructor
Definition: MacWrtProStructures.cxx:555
Defines MWAWCell (cell content and format)
std::shared_ptr< MacWrtProStructures > m_structures
Definition: MacWrtProStructures.hxx:127
virtual ~MacWrtProStructures()
destructor
Definition: MacWrtProStructures.cxx:742
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
@ NoBreakBit
Definition: MWAWParagraph.hxx:88
bool m_attachment
true if this is an attachment 1.0 or 1.5
Definition: MacWrtProStructures.cxx:332
bool hasBorders() const
Definition: MacWrtProStructures.cxx:265
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
Cell(MacWrtProStructures &parser, Graphic *graphic)
constructor
Definition: MacWrtProStructures.cxx:497
@ AtLeast
Definition: MWAWParagraph.hxx:94
std::shared_ptr< MacWrtProStructuresInternal::State > m_state
the state
Definition: MacWrtProStructures.hxx:268
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
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:708
std::string m_asciiName
the debug file name
Definition: MacWrtProStructures.hxx:271
Internal: the graphic structure.
Definition: MacWrtProStructures.cxx:61
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
@ shadowBit
Definition: MWAWFont.hxx:191
bool readStructB(std::shared_ptr< MWAWStream > &stream)
try to read a zone which follow the fonts zone(checkme)
Definition: MacWrtProStructures.cxx:2633
int findNumHardBreaks(int blockId)
compute the number of hard page break
Definition: MacWrtProParser.cxx:1331
bool sendTextBoxZone(int blockId, MWAWPosition const &pos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
send a textbox zone
Definition: MacWrtProParser.cxx:1376
@ Bottom
Definition: libmwaw_internal.hxx:176
int m_actTab
Definition: MacWrtProStructures.hxx:117
void buildTableStructures()
look for tables structures and if so, prepare data
Definition: MacWrtProStructures.cxx:1186
Internal: the state of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:650
Cell * get(int id)
return a cell corresponding to id
Definition: MacWrtProStructures.cxx:545
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
int m_numCols
Definition: MacWrtProStructures.hxx:123
int numColumns() const
return the number of columns
Definition: MacWrtProStructures.cxx:593
a border
Definition: libmwaw_internal.hxx:333
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:108
bool readFontsDef(std::shared_ptr< MWAWStream > &stream)
try to read the list of fonts
Definition: MacWrtProStructures.cxx:1309
@ S_Page
Definition: MacWrtProStructures.cxx:562
bool send(int graphicId, bool mainZone=false)
try to send a graphic which corresponds to graphicid
Definition: MacWrtProStructures.cxx:2688
Font()
the constructor
Definition: MacWrtProStructures.cxx:430
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:278
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWGraphicStyle.cxx:232
bool readPagesListII(std::shared_ptr< MWAWStream > const &stream, int numPages)
try to parse the list of page: II
Definition: MacWrtProStructures.cxx:1874
a class used to recreate the table structure using cell informations, ....
Definition: MWAWTable.hxx:52
std::set< MWAWVec2i > m_graphicsSendSet
a list of graphic use to avoid potential loop in bad file
Definition: MacWrtProStructures.cxx:724
@ RightBit
Definition: libmwaw_internal.hxx:178
bool readSelection(std::shared_ptr< MWAWStream > &stream)
try to read a 16 bytes the zone which follow the char styles zone ( the selection?...
Definition: MacWrtProStructures.cxx:2561
float size() const
returns the font size
Definition: MWAWFont.hxx:270
Paragraph()
Constructor.
Definition: MacWrtProStructures.cxx:469
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
a class which stores section properties
Definition: MWAWSection.hxx:46
bool sendContent(MWAWListenerPtr listener, MWAWTable &) final
send the content
Definition: MacWrtProStructures.cxx:516
Paragraph & operator=(Paragraph const &)=default
bool m_isMainZone
Definition: MacWrtProStructures.hxx:111
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
float m_colSeparator
the columns separator
Definition: MacWrtProStructures.cxx:353
Table()
constructor
Definition: MacWrtProStructures.cxx:539
bool isText() const
returns true is this is a text zone (or a not)
Definition: MacWrtProStructures.cxx:247
int m_actPage
Definition: MacWrtProStructures.hxx:115
bool readParagraph(std::shared_ptr< MWAWStream > &stream, MacWrtProStructuresInternal::Paragraph ¶)
try to read a paragraph
Definition: MacWrtProStructures.cxx:1494
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
bool isTable() const
returns true is this is a table zone
Definition: MacWrtProStructures.cxx:252
friend std::ostream & operator<<(std::ostream &o, Font const &font)
operator<<
Definition: MacWrtProStructures.cxx:438
int m_type
the type
Definition: MacWrtProStructures.cxx:320
Internal: a page.
Definition: MacWrtProStructures.cxx:398
bool sendPictureZone(int blockId, MWAWPosition const &pictPos, MWAWGraphicStyle const &style=MWAWGraphicStyle::emptyStyle())
try to send a picture
Definition: MacWrtProParser.cxx:1601
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
bool isSent(int graphicId)
returns true if the graphic is already sent ( or does not exists)
Definition: MacWrtProStructures.cxx:2863
int m_page
the page (if absolute)
Definition: MacWrtProStructures.cxx:335
bool hasSameBorders() const
Definition: MacWrtProStructures.cxx:256
std::vector< std::shared_ptr< Graphic > > m_graphicsList
the graphic list
Definition: MacWrtProStructures.cxx:418
MacWrtProStructures(MacWrtProParser &mainParser)
constructor
Definition: MacWrtProStructures.cxx:733
Internal: the structures of a MacWrtProStructures.
Definition: MacWrtProStructures.cxx:59
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:637
@ Char
Definition: MWAWPosition.hxx:51
std::map< int, int > m_footersMap
a map page -> footer id
Definition: MacWrtProStructures.cxx:722
std::vector< int > getPageBreaksPos() const
return a list of page break position ( as some page break are soft )
Definition: MacWrtProStructures.cxx:2916
bool m_newPageDone
Definition: MacWrtProStructures.hxx:125
bool sendTextZone(int blockId, bool mainZone=false)
send a text box
Definition: MacWrtProParser.cxx:1365
bool readGraphicsList(std::shared_ptr< MWAWStream > &stream, int nuumPages)
try to read the list of graphic entries: 1.0 1.5
Definition: MacWrtProStructures.cxx:2076
@ Top
Definition: libmwaw_internal.hxx:176
@ S_PageRight
Definition: MacWrtProStructures.cxx:562
friend std::ostream & operator<<(std::ostream &o, Section const &sec)
operator<<
Definition: MacWrtProStructures.cxx:599
double m_borderWList[4]
the borders width
Definition: MacWrtProStructures.cxx:364
Internal: the subdocument of a MacWrtProParser.
Definition: MacWrtProParser.cxx:255
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
bool readFontsName(std::shared_ptr< MWAWStream > &stream)
try to read the fonts zone
Definition: MacWrtProStructures.cxx:1243
void sendChar(char c)
send a character
Definition: MacWrtProStructures.cxx:2939
Paragraph & operator=(Paragraph &&)=default
std::map< int, int > m_headersMap
a map page -> header id
Definition: MacWrtProStructures.cxx:720
@ Double
Definition: libmwaw_internal.hxx:337
@ LeftBit
Definition: libmwaw_internal.hxx:178
@ S_Line
Definition: MacWrtProStructures.cxx:562
std::string m_extra
extra data
Definition: MacWrtProStructures.cxx:645
int m_textboxCellType
filled for textbox : 0: unknown/textbox, 1: cell, 2: textbox(opened)
Definition: MacWrtProStructures.cxx:388
MWAWSection getSection() const
returns a MWAWSection
Definition: MacWrtProStructures.cxx:575
@ italicBit
Definition: MWAWFont.hxx:190
int m_version
the version
Definition: MacWrtProStructures.cxx:317
bool sendParagraph(int id)
try to send a paragraph
Definition: MacWrtProStructures.cxx:3028
MWAWFont m_font
the font
Definition: MacWrtProStructures.cxx:456
Section()
constructor
Definition: MacWrtProStructures.cxx:565
static bool readString(MWAWInputStreamPtr input, std::string &res)
try to read a string
Definition: MacWrtProStructures.cxx:2600
int version() const
returns the file version.
Definition: MacWrtProStructures.cxx:751
int m_textPos
filled for pagebreak pos
Definition: MacWrtProStructures.cxx:341
Defines MWAWTextListener: the libmwaw word processor listener.
int m_section
Definition: MacWrtProStructures.hxx:121
Definition: MacWrtProStructures.cxx:537
bool readStyles(std::shared_ptr< MWAWStream > &stream)
try to read the paragraph styles zone which begins at address 0x200
Definition: MacWrtProStructures.cxx:1738
bool isGraphic() const
returns true is this is a graphic zone
Definition: MacWrtProStructures.cxx:242
int m_values[5]
unknown values
Definition: MacWrtProStructures.cxx:462
@ Right
Definition: libmwaw_internal.hxx:176
int m_numPages
the number of pages
Definition: MacWrtProStructures.cxx:700
bool sendMainZone()
send the main zone
Definition: MacWrtProStructures.cxx:1091
@ Page
Definition: MWAWPosition.hxx:51
@ 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
friend std::ostream & operator<<(std::ostream &o, Graphic const &bl)
operator<<
Definition: MacWrtProStructures.cxx:96
@ TopBit
Definition: libmwaw_internal.hxx:178
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1039
the main class to read the structures part of MacWrite Pro file
Definition: MacWrtProStructures.hxx:136
void setBorders(int wh, MWAWBorder const &border)
sets the cell border: wh=libmwaw::LeftBit|...
Definition: MWAWCell.cxx:382
Type m_contentType
the type 1.0 or 1.5
Definition: MacWrtProStructures.cxx:323
void sendSection(int numSection)
try to send the i^th section
Definition: MacWrtProStructures.cxx:3043
std::string m_extra
extra data ( if needed)
Definition: libmwaw_internal.hxx:395
static Script super()
return a yposition which correspond to a basic superscript
Definition: MWAWFont.hxx:130
@ YTop
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 readFont(std::shared_ptr< MWAWStream > &stream, MacWrtProStructuresInternal::Font &font)
try to read a font
Definition: MacWrtProStructures.cxx:1356
~Cell() final
destructor
Definition: MacWrtProStructures.cxx:531
@ Left
Definition: libmwaw_internal.hxx:176
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
int m_row
number of row, filled for table
Definition: MacWrtProStructures.cxx:382
int m_fileBlock
the file block id
Definition: MacWrtProStructures.cxx:326
float m_baseline
the baseline ( in point 0=bottom aligned)
Definition: MacWrtProStructures.cxx:370
bool readCharStyles(std::shared_ptr< MWAWStream > &stream)
try to read the character styles zone
Definition: MacWrtProStructures.cxx:1650
int m_version
the file version
Definition: MacWrtProStructures.cxx:697
@ WRunThrough
Definition: MWAWPosition.hxx:53
std::shared_ptr< MacWrtProStructuresInternal::Graphic > readGraphic(std::shared_ptr< MWAWStream > &stream)
try to read a graphic entry: 1.0, 1.5
Definition: MacWrtProStructures.cxx:2162
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
@ Double
Definition: MWAWFont.hxx:51
@ XLeft
Definition: MWAWPosition.hxx:55
@ YBottom
Definition: MWAWPosition.hxx:57
friend std::ostream & operator<<(std::ostream &o, Page const &bl)
operator<<
Definition: MacWrtProStructures.cxx:408
@ S_PageLeft
Definition: MacWrtProStructures.cxx:562
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
std::map< int, std::shared_ptr< Graphic > > m_idGraphicMap
a map graphic id -> graphic
Definition: MacWrtProStructures.cxx:718
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
MWAWColor m_surfaceColor
the background color
Definition: MacWrtProStructures.cxx:373
Internal: class to store the paragraph properties.
Definition: MacWrtProStructures.cxx:467
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:3014
MWAWBorder m_lineBorder
the line border
Definition: MacWrtProStructures.cxx:376
bool createZones(std::shared_ptr< MWAWStream > &stream, int numPages)
finds the different objects zones
Definition: MacWrtProStructures.cxx:921
@ RIGHT
Definition: MWAWParagraph.hxx:48
int m_headerIds[2]
the header graphic ids
Definition: MacWrtProStructures.cxx:639
Internal: the structures of a MacWrtProParser.
Definition: MacWrtProParser.cxx:62
bool m_send
true if we have send the data
Definition: MacWrtProStructures.cxx:423
Class to store font.
Definition: MWAWFont.hxx:44
int m_value
a unknown value
Definition: MacWrtProStructures.cxx:486
a structure used to define a cell and its format
Definition: MWAWCell.hxx:53
void setLanguage(std::string const &lang)
set the language ( in the for en_US, en_GB, en, ...)
Definition: MWAWFont.hxx:500
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1044
std::vector< std::shared_ptr< Graphic > > m_graphicsList
the list of graphic
Definition: MacWrtProStructures.cxx:714
void buildPageStructures()
look for pages structures
Definition: MacWrtProStructures.cxx:1121
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
void insertSoftPageBreak()
insert a page break ( if we are not on a new page )
Definition: MacWrtProStructures.cxx:2879
the main class to read a MacWrite II and MacWrite Pro file
Definition: MacWrtProParser.hxx:68
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
@ NoBreakWithNextBit
Definition: MWAWParagraph.hxx:88
int m_id
the graphic id
Definition: MacWrtProStructures.cxx:329
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 graphic ids
Definition: MacWrtProStructures.cxx:641
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
bool createZonesII(std::shared_ptr< MWAWStream > &stream, int numPages)
finds the different objects zones in a MacWriteII file
Definition: MacWrtProStructures.cxx:1024
~Paragraph() final
destructor
Definition: MacWrtProStructures.cxx:489
int numPages() const
returns the number of pages
Definition: MacWrtProStructures.cxx:763
@ GRAPHIC
Definition: MacWrtProStructures.cxx:62
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
void fillFrame(MWAWGraphicStyle &style) const
update the style to include frame style
Definition: MacWrtProStructures.cxx:225
@ lowercaseBit
Definition: MWAWFont.hxx:193
MWAWPosition::YPos getRelativeYPos() const
Definition: MacWrtProStructures.cxx:293
int m_textboxType
the header footer type
Definition: MacWrtProStructures.cxx:346
void init()
inits all internal variables
Definition: MacWrtProStructures.cxx:746
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20