Go to the documentation of this file.
38 #ifndef MS_WKS_MWAW_GRAPH
39 # define MS_WKS_MWAW_GRAPH
106 void sendAll(
int zoneId,
bool mainZone);
129 void computePositions(
int zoneId, std::vector<int> &linesHeight, std::vector<int> &pagesHeight);
214 o << static_cast<MWAWGraphicStyle const &>(st);
241 shared_ptr<MsWksGraphInternal::State>
m_state;
int m_zoneId
the zone id
Definition: MsWksGraph.cxx:177
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
std::vector< shared_ptr< Zone > > m_zonesList
the list of zone
Definition: MsWksGraph.cxx:754
@ CharBaseLine
Definition: MWAWPosition.hxx:51
@ Time
Definition: libmwaw_internal.hxx:371
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:161
MWAWEntry m_zone
if valid the zone to parse
Definition: MWAWSubDocument.hxx:79
ReadResult
an enum to defined the result of a parsing use by some picture's classes which can read their data
Definition: MWAWPict.hxx:73
bool isEmpty() const
returns true if there is no arrow
Definition: MWAWGraphicStyle.hxx:116
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:654
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MsWksDocument.hxx:108
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:293
MWAWPosition getPosition(MWAWPosition::AnchorTo rel) const
Definition: MsWksGraph.cxx:145
int m_numPositions
the number of positions
Definition: MsWksGraph.cxx:594
std::string m_frame
the frame name: for textv4
Definition: MsWksGraph.cxx:895
int m_tableId
the table id
Definition: MsWksGraph.cxx:538
void setFont(int newId)
sets the font id and resets size to the previous size for this font
Definition: MWAWFont.hxx:231
MWAWVec2i m_dim
the dimension
Definition: MsWksGraph.cxx:638
TextBoxv4(Zone const &z)
constructor
Definition: MsWksGraph.cxx:649
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:555
the main class to read/store generic data of a MsWorks document v1-v3
Definition: MsWksDocument.hxx:69
~DataBitmap()
destructor
Definition: MsWksGraph.cxx:518
RBZone()
Definition: MsWksGraph.cxx:68
virtual float needExtraBorderWidth() const
return the extra border space ( if needed)
Definition: MsWksGraph.cxx:117
friend std::ostream & operator<<(std::ostream &o, Zone const &pict)
operator<<
Definition: MsWksGraph.cxx:98
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
bool readRB(MWAWInputStreamPtr input, MWAWEntry const &entry, int kind)
reads the RBDR or a RBIL zone: a zone which seems to regroup all pages pictures in v3-v4 document
Definition: MsWksGraph.cxx:1974
@ RBILZone
Definition: MsWksGraph.cxx:862
MWAWGraphicStyle getStyle() const
return the shape type
Definition: MsWksGraph.cxx:351
virtual void fillFrame(MWAWGraphicStyle &style) const
add frame parameters to propList (if needed )
Definition: MsWksGraph.cxx:587
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
MWAWGraphicShape m_shape
the basic shape
Definition: MsWksGraph.cxx:360
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:432
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
bool canCreateGraphic(MsWksGraphInternal::GroupZone const &group) const
returns true if we can create a graphic for the whole group
Definition: MsWksGraph.cxx:2362
int m_line
the line position(v1)
Definition: MsWksGraph.cxx:195
MWAWColor m_baseSurfaceColor
the 2D surface color
Definition: MsWksGraph.hxx:226
std::string m_extra
extra data
Definition: MWAWGraphicStyle.hxx:442
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:282
the main class to read a Microsoft Works graphic file
Definition: MsWksDRParser.hxx:60
int m_page
the page ( used if anchor==page)
Definition: MsWksGraph.hxx:121
std::vector< MWAWColor > const & getPalette(int vers)
returns a list of color corresponding to a version
Definition: MsWksDocument.cxx:557
@ Table
Definition: MsWksGraph.cxx:862
AnchorTo
a list of enum used to defined the anchor
Definition: MWAWPosition.hxx:51
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: MsWksGraph.cxx:949
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
MsWksGraph * m_graphParser
the graph parser
Definition: MsWksGraph.cxx:889
int m_id
the rbil id
Definition: MsWksGraph.hxx:117
Internal: the graphic style of MsWksGraph.
Definition: MsWksGraph.hxx:203
bool get(int id, MWAWGraphicStyle::Pattern &pat) const
return the pattern corresponding to an id
Definition: MsWksGraph.cxx:704
Internal: the table of a MsWksGraph.
Definition: MsWksGraph.cxx:372
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:203
void setPage(int pg) const
sets the page
Definition: MWAWPosition.hxx:189
GradientType m_gradientType
the gradient type
Definition: MWAWGraphicStyle.hxx:396
bool m_fillRuleEvenOdd
true if the fill rule is evenod
Definition: MWAWGraphicStyle.hxx:440
static Script sub100()
return a yposition which correspond to a basic subscript100
Definition: MWAWFont.hxx:117
static Arrow plain()
returns a basic plain arrow
Definition: MWAWGraphicStyle.hxx:69
@ boldBit
Definition: MWAWFont.hxx:182
@ TextBoxv4
Definition: MsWksGraph.cxx:862
void setColor(MWAWColor color)
sets the font color
Definition: MWAWFont.hxx:320
std::string m_text
the text
Definition: MsWksGraph.cxx:602
virtual void print(std::ostream &o) const
the virtual print function
Definition: MsWksGraph.cxx:208
MsWksGraph & operator=(MsWksGraph const &orig)
void startDocument()
starts a new document
Definition: MWAWGraphicListener.cxx:432
int id() const
returns the id
Definition: MWAWEntry.hxx:153
@ WBackground
Definition: MWAWPosition.hxx:53
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
the class to store a color
Definition: libmwaw_internal.hxx:182
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:659
Internal: the state of a MsWksGraph.
Definition: MsWksGraph.cxx:740
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
DataPict()
empty constructor
Definition: MsWksGraph.cxx:399
MWAWPosition::AnchorTo m_anchor
the anchor
Definition: MsWksGraph.hxx:119
virtual bool getBinaryData(MWAWInputStreamPtr, MWAWEmbeddedObject &picture) const
return a binary data (if known)
Definition: MsWksGraph.cxx:110
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:227
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:126
void setBackgroundColor(MWAWColor const &col, float opacity=1)
set the background color
Definition: MWAWGraphicStyle.hxx:314
bool getColor(int id, MWAWColor &col, int vers)
returns the color which correspond to an index
Definition: MsWksDocument.cxx:562
@ JustificationFullAllLines
Definition: MWAWParagraph.hxx:88
@ G_Rectangular
Definition: MWAWGraphicStyle.hxx:55
MWAWBox2f m_box
local bdbox
Definition: MsWksGraph.cxx:193
the main class to read a Microsoft Works file: v1-v4
Definition: MsWksParser.hxx:60
State()
constructor
Definition: MsWksGraph.cxx:742
virtual ~SubDocument()
destructor
Definition: MsWksGraph.cxx:871
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1063
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:560
int m_numPages
the number of pages
Definition: MsWksGraph.cxx:764
std::string m_extra
extra data
Definition: MsWksGraph.cxx:201
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
the main class to read the graphic of a Microsoft Works file
Definition: MsWksGraph.hxx:74
MWAWParserStatePtr m_parserState
the parser state
Definition: MsWksGraph.hxx:238
@ Graphic
Definition: MWAWListener.hxx:56
long m_dataSize
the bitmap data size
Definition: MsWksGraph.cxx:485
void endDocument(bool delayed=true)
ends the actual document
Definition: MWAWGraphicListener.cxx:443
Table(Zone const &z)
constructor
Definition: MsWksGraph.cxx:526
@ Simple
Definition: MWAWFont.hxx:49
int getEntryPictureV1(int zoneId, MWAWEntry &zone, bool autoSend=true)
checks if the next zone is a v1 picture and returns a zone id ( or -1).
Definition: MsWksGraph.cxx:1909
bool m_isSent
true if the zone is send
Definition: MsWksGraph.cxx:205
Type
Definition: MsWksGraph.cxx:87
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:334
Internal: the ole zone of a MsWksGraph ( v4)
Definition: MsWksGraph.cxx:616
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
BasicShape & operator=(BasicShape const &)
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
int m_id
the subdocument id
Definition: MsWksGraph.cxx:893
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
MWAWParagraph::Justification m_justify
the paragraph alignment
Definition: MsWksGraph.cxx:604
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
MWAWVec2f m_leftTopPos
the page left top position in points
Definition: MsWksGraph.cxx:752
virtual ~Style()
destructor
Definition: MsWksGraph.cxx:2970
virtual float needExtraBorderWidth() const
return the extra border size
Definition: MsWksGraph.cxx:340
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWBox2f m_bdBox
the shape bdbox
Definition: MWAWGraphicShape.hxx:193
void checkTextBoxLinks(MsWksGraphInternal::RBZone &rbZone)
check the text box link v4
Definition: MsWksGraph.cxx:2130
std::vector< unsigned char > m_data
the pattern data: a sequence of data: p[0..7,0],p[8..15,0]...p[0..7,1],p[8..15,1],...
Definition: MWAWGraphicStyle.hxx:247
SubDocument(SubDocument const &orig)
MWAWBox2f getLocalBox(bool extendWithBord=true) const
return the box
Definition: MsWksGraph.cxx:126
std::vector< MWAWFont > m_fontsList
the list of fonts
Definition: MsWksGraph.cxx:596
virtual ~TextBoxv4()
destructor
Definition: MsWksGraph.cxx:735
Internal the pattern ressource of a MsWksGraph.
Definition: MsWksGraph.cxx:679
void setOrder(int ord) const
set background/foward order
Definition: MWAWPosition.hxx:248
@ Group
Definition: MsWksGraph.cxx:862
std::vector< GradientStop > m_gradientStopList
the list of gradient limits
Definition: MWAWGraphicStyle.hxx:402
static Script super100()
return a yposition which correspond to a basic superscript100
Definition: MWAWFont.hxx:127
@ embossBit
Definition: MWAWFont.hxx:182
void send(int id, MWAWPosition const &pos)
send a zone (textbox, ...).
Definition: MsWksGraph.cxx:2739
MWAWFont m_font
the actual font
Definition: MsWksGraph.cxx:758
bool hasType(std::string const &typ) const
returns true if the type entry == type
Definition: MWAWEntry.hxx:131
std::vector< float > m_percentList
the pattern percent values
Definition: MsWksGraph.cxx:732
std::vector< int > m_childs
list of child id
Definition: MsWksGraph.cxx:312
@ Date
Definition: libmwaw_internal.hxx:371
@ TableZone
Definition: MsWksGraph.cxx:87
@ Chart
Definition: MsWksGraph.cxx:862
int numPages(int zoneId) const
returns the number of pages
Definition: MsWksGraph.cxx:989
int m_chartId
an index used to store chart
Definition: MsWksGraph.cxx:760
a basic pattern used in a MWAWGraphicStyle:
Definition: MWAWGraphicStyle.hxx:171
shared_ptr< MsWksGraphInternal::GroupZone > readGroup(MsWksGraphInternal::Zone &group)
try to read the group data
Definition: MsWksGraph.cxx:2435
bool m_doNotSend
a flag used to know if we need to send the data ( or if this is the part of a sub group)
Definition: MsWksGraph.cxx:203
MWAWVec2f const & size() const
returns the frame size
Definition: MWAWPosition.hxx:119
std::vector< int > m_positions
the list of positions
Definition: MsWksGraph.cxx:598
int m_numCols
the number of columns
Definition: MsWksGraph.cxx:484
static MWAWGraphicShape polygon(MWAWBox2f const &box)
static constructor to create a polygon
Definition: MWAWGraphicShape.hxx:140
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:205
void initPatterns(int vers)
init the pattern value
Definition: MsWksGraph.cxx:769
std::map< long, Patterns > m_rsrcPatternsMap
a map ressource id -> patterns
Definition: MsWksGraph.cxx:766
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1070
~BasicShape()
destructor
Definition: MsWksGraph.cxx:366
@ Empty
Definition: MsWksGraph.cxx:862
@ Rectangle
Definition: MWAWGraphicShape.hxx:49
static ReadResult check(MWAWInputStreamPtr input, int size, MWAWBox2f &box)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:100
SubDocumentType
Definition: libmwaw_internal.hxx:178
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:623
std::string m_extra
extra data
Definition: MWAWFont.hxx:552
void sendGroup(int zoneId, MWAWPosition const &pos)
try to send a group
Definition: MsWksGraph.cxx:2222
@ JustificationCenter
Definition: MWAWParagraph.hxx:87
@ ChartZone
Definition: MsWksGraph.cxx:87
Chart()
empty constructor
Definition: MsWksGraph.cxx:378
Justification
an enum used to defined the paragraph justification: left, center, right, full ...
Definition: MWAWParagraph.hxx:87
@ ALL
Definition: MsWksGraph.hxx:115
MWAWColor m_surfaceColor
the surface color
Definition: MWAWGraphicStyle.hxx:385
@ shadowBit
Definition: MWAWFont.hxx:183
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:121
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
std::string getDebugString(shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
MWAWVec2i m_size
the size of the data ( used by rbil )
Definition: MsWksGraph.hxx:123
T y() const
second element
Definition: libmwaw_internal.hxx:620
int m_numRows
the number of rows
Definition: MsWksGraph.cxx:484
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
bool dumpFile(librevenge::RVNGBinaryData &data, char const *fileName)
a debug function to store in a datafile in the current directory WARNING: this function erase the fil...
Definition: MWAWDebug.cxx:197
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:375
void setSize(MWAWVec2f const &sz)
sets the frame size
Definition: MWAWPosition.hxx:199
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
@ Text
Definition: MWAWParser.hxx:53
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MsWksDocument.hxx:127
T x() const
first element
Definition: libmwaw_internal.hxx:615
bool readGradient(Style &style)
read the gradient structure ( v4)
Definition: MsWksGraph.cxx:1252
virtual ~OLEZone()
destructor
Definition: MsWksGraph.cxx:641
void sendOLE(int id, MWAWPosition const &pos, MWAWGraphicStyle const &style)
send an OLE zone
Definition: MsWksDocument.cxx:492
@ G_Radial
Definition: MWAWGraphicStyle.hxx:55
void sendFrameText(MWAWEntry const &entry, std::string const &frame)
ask m_mainParser to send a frame text(v4)
Definition: MsWksGraph.cxx:1006
int m_order
the picture order
Definition: MsWksGraph.cxx:199
@ Group
Definition: MsWksGraph.cxx:87
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
TextBox & operator=(TextBox const &)
std::string const & name() const
name of the entry
Definition: MWAWEntry.hxx:142
MsWksDocument & m_document
the main document
Definition: MsWksGraph.hxx:246
MsWksGraph(MsWksDocument &document)
constructor
Definition: MsWksGraph.cxx:966
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:201
bool getZonePosition(int zoneId, MWAWPosition::AnchorTo anchor, MWAWPosition &pos) const
returns the position of the zone defined by zoneId
Definition: MsWksGraph.cxx:1036
@ RBIL
Definition: MsWksGraph.hxx:115
virtual void fillFrame(MWAWGraphicStyle &style) const
add frame parameters to propList (if needed )
Definition: MsWksGraph.cxx:666
MWAWVec2i m_dim
the dimension width x height
Definition: MWAWGraphicStyle.hxx:242
bool getBinaryResult(MWAWEmbeddedObject &result)
return the final graphic
Definition: MWAWGraphicEncoder.cxx:74
Wrapping m_wrapping
Wrapping.
Definition: MWAWPosition.hxx:262
Type m_type
the type
Definition: MWAWGraphicShape.hxx:191
Internal: the table of a MsWksGraph.
Definition: MsWksGraph.cxx:524
@ MWAW_R_BAD
Definition: MWAWPict.hxx:73
The class which parses the main zones of a mac MS Works document v4.
Definition: MsWks4Zone.hxx:74
@ Textv4
Definition: MsWksGraph.cxx:87
void setRow(int j, U const *val)
sets all cell contents of a row
Definition: MWAWPictBitmap.hxx:416
void sendTextBox(int zId, MWAWListenerPtr listener)
try to send a text box zone v1-3
Definition: MsWksGraph.cxx:2671
void setOrigin(MWAWVec2f const &orig)
sets the frame origin
Definition: MWAWPosition.hxx:194
@ RBDR
Definition: MsWksGraph.hxx:115
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
the main class to read a Microsoft Works database file and convert it in a spreadsheet file
Definition: MsWksDBParser.hxx:66
DataBitmap()
empty constructor
Definition: MsWksGraph.cxx:464
Arrow m_arrows[2]
the two arrows corresponding to start and end extremity
Definition: MWAWGraphicStyle.hxx:430
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:293
virtual ~MsWksGraph()
destructor
Definition: MsWksGraph.cxx:974
Zone()
constructor
Definition: MsWksGraph.cxx:89
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:402
MWAWParser * m_mainParser
the main parser;
Definition: MsWksGraph.hxx:244
MsWksGraph::Style m_style
the style
Definition: MsWksGraph.cxx:197
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
shared_ptr< MsWksGraphInternal::State > m_state
the state
Definition: MsWksGraph.hxx:241
std::map< int, RBZone > m_RBsMap
the RBIL zone id->list id
Definition: MsWksGraph.cxx:756
BasicShape(BasicShape const &)
Internal: the group of a MsWksGraph.
Definition: MsWksGraph.cxx:292
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: MsWksGraph.cxx:898
Internal: the subdocument of a MsWksGraph.
Definition: MsWksGraph.cxx:860
bool readText(MsWksGraphInternal::TextBox &textBox)
try to read a text zone
Definition: MsWksGraph.cxx:2476
SendData()
constructor
Definition: MsWksGraph.hxx:111
@ G_Linear
Definition: MWAWGraphicStyle.hxx:55
a field
Definition: libmwaw_internal.hxx:369
@ PageNumber
Definition: libmwaw_internal.hxx:371
virtual void fillFrame(MWAWGraphicStyle &) const
add frame parameters to propList (if needed )
Definition: MsWksGraph.cxx:123
a structure used to define the gradient limit in MWAWGraphicStyle
Definition: MWAWGraphicStyle.hxx:134
MWAWBox2f m_naturalBox
the pict box (if known )
Definition: MsWksGraph.cxx:487
Type
the type
Definition: MsWksGraph.hxx:115
@ JustificationLeft
Definition: MWAWParagraph.hxx:87
std::vector< int > m_formats
the list of format
Definition: MsWksGraph.cxx:600
the main class to read a Microsoft Works spreadsheet file
Definition: MsWksSSParser.hxx:66
MWAWVec2f m_cornerWidth
the rectangle round corner
Definition: MWAWGraphicShape.hxx:197
@ TextBox
Definition: MsWksGraph.cxx:862
@ Char
Definition: MWAWPosition.hxx:51
SubDocument(MsWksGraph &pars, MWAWInputStreamPtr input, Type type, MWAWEntry const &entry, std::string frame=std::string(""))
Definition: MsWksGraph.cxx:866
void sendAll(int zoneId, bool mainZone)
send all the picture corresponding to a zone
Definition: MsWksGraph.cxx:2864
void flushExtra()
sends the data which have not yet been sent to the listener
Definition: MsWksGraph.cxx:2956
static MWAWGraphicShape arc(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a arc
Definition: MWAWGraphicShape.hxx:120
friend class MsWksTable
Definition: MsWksGraph.hxx:76
virtual ~TextBox()
destructor
Definition: MsWksGraph.cxx:610
long m_dataPos
the data begin position
Definition: MsWksGraph.cxx:181
MWAWColor m_colors[2]
the two indexed colors
Definition: MWAWGraphicStyle.hxx:245
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
int getId() const
returns a unique id
Definition: MsWksGraph.cxx:70
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
~Table()
destructor
Definition: MsWksGraph.cxx:541
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:254
std::vector< int > m_idList
the list of rb
Definition: MsWksGraph.cxx:79
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:383
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
std::string m_frameName
the frame name
Definition: MWAWGraphicStyle.hxx:425
void sendObjects(SendData const &what)
sends all the object of a page, frame, ...
Definition: MsWksGraph.cxx:2878
Internal: the structures of a MsWksGraph.
Definition: MsWksGraph.cxx:64
@ Line
Definition: MWAWGraphicShape.hxx:49
int m_chartId
the chart id
Definition: MsWksGraph.cxx:386
small struct used which picture need to be send
Definition: MsWksGraph.hxx:109
SubDocument & operator=(SubDocument const &orig)
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:628
int m_tableId
an index used to store table
Definition: MsWksGraph.cxx:762
TextBox(Zone const &z)
constructor
Definition: MsWksGraph.cxx:549
int m_num
the number of patterns
Definition: MsWksGraph.cxx:728
GroupZone(Zone const &z)
constructor
Definition: MsWksGraph.cxx:294
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
@ italicBit
Definition: MWAWFont.hxx:182
Chart(Zone const &z)
constructor
Definition: MsWksGraph.cxx:374
long m_dataEndPos
the end of data (only defined when different to m_pos.end())
Definition: MsWksGraph.cxx:415
MWAWBox2f m_naturalBox
the pict box (if known )
Definition: MsWksGraph.cxx:417
Internal: the simple form of a MsWksGraph ( line, rect, ...)
Definition: MsWksGraph.cxx:321
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:348
static MWAWGraphicShape path(MWAWBox2f const &box)
static constructor to create a path
Definition: MWAWGraphicShape.hxx:148
std::string m_frameNextName
the frame next name (if there is a link)
Definition: MWAWGraphicStyle.hxx:427
bool getPictureData(MWAWInputStreamPtr ip, MWAWEmbeddedObject &picture, std::vector< MWAWColor > const &palette) const
return a binary data (if known)
Definition: MsWksGraph.cxx:490
long m_ids[3]
the zones id (main, previous, next)
Definition: MsWksGraph.cxx:185
@ Page
Definition: MWAWPosition.hxx:51
bool getPattern(MWAWGraphicStyle::Pattern &pat, int id, long rsid=-1)
return the pattern corresponding to an id
Definition: MsWksGraph.cxx:846
@ JustificationFull
Definition: MWAWParagraph.hxx:87
bool readPictureV4(MWAWInputStreamPtr input, MWAWEntry const &entry)
reads a Pict zone: a zone which seems to code in v4 : header/footer picture
Definition: MsWksGraph.cxx:2190
@ JustificationRight
Definition: MWAWParagraph.hxx:88
int m_version
the version
Definition: MsWksGraph.cxx:750
Internal: the picture of a MsWksGraph.
Definition: MsWksGraph.cxx:395
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:410
Type
Definition: MsWksGraph.cxx:862
float getPercent(int id) const
return the percentage corresponding to a pattern
Definition: MsWksGraph.cxx:718
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:329
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:980
shared_ptr< MsWksTable > m_tableParser
the table manager
Definition: MsWksGraph.hxx:249
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:104
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
@ Unknown
Definition: MsWksGraph.cxx:87
void sendGroupChild(int zoneId, MWAWPosition const &pos)
try to send a group elements by elemenys
Definition: MsWksGraph.cxx:2260
MWAWVec2f const & origin() const
return the frame origin
Definition: MWAWPosition.hxx:114
bool readPictHeader(MsWksGraphInternal::Zone &pict)
read the picture header
Definition: MsWksGraph.cxx:1046
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:533
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
MWAWVec2f m_gradientPercentCenter
the gradient center
Definition: MWAWGraphicStyle.hxx:408
@ YTop
Definition: MWAWPosition.hxx:57
void sendTable(int id)
try to a table zone
Definition: MsWksGraph.cxx:1016
MsWksGraph(MsWksGraph const &orig)
MWAWEntry m_text
the text of positions (0-0: means no text)
Definition: MsWksGraph.cxx:673
@ OLE
Definition: MsWksGraph.cxx:87
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:467
Internal: the textbox of a MsWksGraph ( v4)
Definition: MsWksGraph.cxx:647
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
@ Frame
Definition: MWAWPosition.hxx:51
void setPageLeftTop(MWAWVec2f const &leftTop)
define the page left top dimension in point
Definition: MsWksGraph.cxx:977
SubDocument(MsWksGraph &pars, MWAWInputStreamPtr input, Type type, int zoneId)
Definition: MsWksGraph.cxx:863
Type m_type
the type
Definition: MsWksGraph.cxx:891
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
bool getZoneGraphicStyle(int zoneId, MWAWGraphicStyle &style) const
returns the graphic style of the zone defined by zoneId
Definition: MsWksGraph.cxx:1026
std::string m_frame
the frame name ( if it exist )
Definition: MsWksGraph.cxx:81
@ Spreadsheet
Definition: MWAWParser.hxx:53
Internal: the generic pict.
Definition: MsWksGraph.cxx:86
MWAWBox2f m_decal
the local position
Definition: MsWksGraph.cxx:189
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:100
virtual ~Chart()
destructor
Definition: MsWksGraph.cxx:389
@ XLeft
Definition: MWAWPosition.hxx:55
@ Paragraph
Definition: MWAWPosition.hxx:51
float m_gradientAngle
the gradient angle
Definition: MWAWGraphicStyle.hxx:404
void sendChart(int zoneId)
try to send a chart
Definition: MsWksGraph.cxx:1011
int m_oleId
the ole id
Definition: MsWksGraph.cxx:636
int m_page
the page
Definition: MsWksGraph.cxx:187
Internal: a list of zones ( for v4)
Definition: MsWksGraph.cxx:67
std::string m_frame
the frame name
Definition: MsWksGraph.cxx:675
@ Circle
Definition: MWAWGraphicShape.hxx:49
@ Graphic
Definition: MWAWParser.hxx:53
Table()
empty constructor
Definition: MsWksGraph.cxx:530
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
int m_id
the zone id
Definition: MsWksGraph.cxx:77
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
MWAWVec2f m_finalDecal
the final local position
Definition: MsWksGraph.cxx:191
int getEntryPicture(int zoneId, MWAWEntry &zone, bool autoSend=true, int order=-1000)
checks if the next zone is a v2 picture and returns a zone id ( or -1)
Definition: MsWksGraph.cxx:1351
OLEZone(Zone const &z)
constructor
Definition: MsWksGraph.cxx:618
DataBitmap(Zone const &z)
constructor
Definition: MsWksGraph.cxx:459
virtual ~Zone()
destructor
Definition: MsWksGraph.cxx:95
@ Pict
Definition: MsWksGraph.cxx:87
std::vector< unsigned char > m_valuesList
the pattern values (8 data by pattern)
Definition: MsWksGraph.cxx:730
void insertTextBox(MWAWPosition const &pos, MWAWSubDocumentPtr subDocument, MWAWGraphicStyle const &style)
adds a textbox in given position
Definition: MWAWGraphicListener.cxx:1074
Class to store font.
Definition: MWAWFont.hxx:44
Patterns(int num, uint16_t const *data)
constructor ( 4 int by patterns )
Definition: MsWksGraph.cxx:681
@ Bitmap
Definition: MsWksGraph.cxx:87
friend std::ostream & operator<<(std::ostream &o, Style const &st)
operator<<
Definition: MsWksGraph.hxx:212
MWAWEntry m_pos
the file position
Definition: MsWksGraph.cxx:179
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:381
BasicShape(Zone const &z)
constructor
Definition: MsWksGraph.cxx:323
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:985
a simple path component
Definition: MWAWGraphicShape.hxx:53
int version() const
returns the file version
Definition: MsWksGraph.cxx:982
float getPatternPercent(int id, long rsid=-1)
return the percentage corresponding to a pattern
Definition: MsWksGraph.cxx:835
@ Title
Definition: libmwaw_internal.hxx:371
Internal: the bitmap of a MsWksGraph.
Definition: MsWksGraph.cxx:457
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:475
@ Text
Definition: MsWksGraph.cxx:87
enum MsWksGraph::SendData::Type m_type
bool readFont(MWAWFont &font)
reads the textbox font
Definition: MsWksGraph.cxx:2623
virtual Type type() const
return the type
Definition: MsWksGraph.cxx:298
void sendTextbox(MWAWEntry const &entry, std::string const &frame)
send a textbox
Definition: MsWksDocument.cxx:518
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
virtual bool getBinaryData(MWAWInputStreamPtr ip, MWAWEmbeddedObject &picture) const
return a binary data (if known)
Definition: MsWksGraph.cxx:420
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
int m_fileId
the file id
Definition: MsWksGraph.cxx:183
static MWAWPictData * get(MWAWInputStreamPtr input, int size)
checks if the data pointed by input is known
Definition: MWAWPictData.hxx:108
virtual void print(std::ostream &o) const
operator<<
Definition: MsWksGraph.cxx:303
virtual ~GroupZone()
destructor
Definition: MsWksGraph.cxx:315
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
shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
@ Shape
Definition: MsWksGraph.cxx:87
Internal: the textbox of a MsWksGraph ( v2-v3)
Definition: MsWksGraph.cxx:547
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
bool m_isMain
the zone type: rbdr(true) or rbil
Definition: MsWksGraph.cxx:75
@ G_Axial
Definition: MWAWGraphicStyle.hxx:55
MWAWBox2f m_formBox
the internal shape bdbox ( used for arc, circle to store the circle bdbox )
Definition: MWAWGraphicShape.hxx:195
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: MsWksGraph.cxx:876
DataPict(Zone const &z)
constructor
Definition: MsWksGraph.cxx:397
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:304
void computePositions(int zoneId, std::vector< int > &linesHeight, std::vector< int > &pagesHeight)
try to update positions knowing pages and lines height
Definition: MsWksGraph.cxx:1874
a structure used to define an arrow
Definition: MWAWGraphicStyle.hxx:58
int m_subType
the type
Definition: MsWksGraph.cxx:175
the main class to read the table ( or a chart ) of a Microsoft Works file
Definition: MsWksTable.hxx:59
Style()
constructor
Definition: MsWksGraph.hxx:205
MWAWColor m_baseLineColor
the line color
Definition: MsWksGraph.hxx:224
Generated on Wed Jun 17 2020 06:30:11 for libmwaw by
doxygen 1.8.18