Go to the documentation of this file.
40 #include <librevenge/librevenge.h>
123 bool sendText(
long tZoneId,
int subZone);
int m_verticalMode
the vertical position: 0: center, 1: bottom, 2: top, 3: justify
Definition: ScoopParser.cxx:98
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
bool m_flips[2]
the flip flags
Definition: ScoopParser.cxx:100
MWAWParagraph m_paragraph
the paragraph style
Definition: ScoopParser.cxx:159
MWAWVariable< Justification > m_justify
the justification
Definition: MWAWParagraph.hxx:167
MWAWFont m_font
the default font (or maybe the story font)
Definition: ScoopParser.cxx:207
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
Internal: a paragraph of a ScoopParser.
Definition: ScoopParser.cxx:137
MWAWFontConverterPtr & getFontConverter()
returns the font converter
Definition: MWAWParser.hxx:150
void set(Script const &newscript)
sets the script position
Definition: MWAWFont.hxx:314
Internal: the subdocument of a ScoopParser.
Definition: ScoopParser.cxx:294
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:268
int m_rotation
the rotation
Definition: ScoopParser.cxx:96
MWAWBox2f getBdBox() const
returns the basic bdbox
Definition: MWAWGraphicShape.hxx:197
SubDocument(ScoopParser &pars, MWAWInputStreamPtr const &input, long zoneId, int subZoneId)
Definition: ScoopParser.cxx:296
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWEntry m_storyEntry
the story name entry
Definition: ScoopParser.cxx:205
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: ScoopParser.cxx:1921
bool m_flips[2]
the flip flags
Definition: ScoopParser.cxx:186
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
void setColors(std::vector< MWAWColor > const &cols)
sets the array of indexed colors
Definition: MWAWPictBitmap.hxx:452
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
MWAWGraphicListenerPtr & getGraphicListener()
returns the graphic listener
Definition: MWAWParser.hxx:130
void setSurfaceColor(MWAWColor const &col, float opacity=1)
set the surface color
Definition: MWAWGraphicStyle.hxx:491
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
Internal: the shape of a ScoopParser.
Definition: ScoopParser.cxx:60
MWAWVariable< std::vector< MWAWTabStop > > m_tabs
the tabulations
Definition: MWAWParagraph.hxx:162
MWAWEntry m_text
the text entry
Definition: ScoopParser.cxx:151
MWAWBox2f m_box
the bounding box
Definition: ScoopParser.cxx:178
int m_page
the page
Definition: ScoopParser.cxx:92
static MWAWGraphicShape pie(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a pie
Definition: MWAWGraphicShape.hxx:147
std::vector< PathData > m_path
the list of path component
Definition: MWAWGraphicShape.hxx:234
void set(int i, int j, int v)
sets a cell contents
Definition: MWAWPictBitmap.hxx:431
@ boldBit
Definition: MWAWFont.hxx:190
VerticalAlignment m_verticalAlignment
related to text area
Definition: MWAWGraphicStyle.hxx:652
long m_textId
the text main id
Definition: ScoopParser.cxx:108
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
int m_value
the special value
Definition: ScoopParser.cxx:132
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
std::map< int, MWAWFont > m_cPosToFontMap
a map character position to font
Definition: ScoopParser.cxx:153
@ CENTER
Definition: MWAWParagraph.hxx:48
std::vector< MWAWVec2i > m_vertices
the vertices: poly, spline, ...
Definition: ScoopParser.cxx:105
void setInterline(double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
set the interline
Definition: MWAWParagraph.hxx:129
void setWidthStreching(float scale=1.0)
sets the text width streching
Definition: MWAWFont.hxx:303
the main class to read a Scoop v1 file
Definition: ScoopParser.hxx:63
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
the class to store a color
Definition: libmwaw_internal.hxx:192
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
bool readParagraph(MWAWParagraph ¶, bool define=false)
try to read a paragraph style
Definition: ScoopParser.cxx:1295
MWAWVariable< double > m_spacings[3]
the line spacing
Definition: MWAWParagraph.hxx:156
@ MWAW_T_SCOOP
Scoop: v1.
Definition: MWAWDocument.hxx:253
static MWAWGraphicShape line(MWAWVec2f const &orign, MWAWVec2f const &dest)
static constructor to create a line
Definition: MWAWGraphicShape.cxx:228
std::vector< MWAWGraphicStyle::Pattern > m_patterns
the list of patterns
Definition: ScoopParser.cxx:252
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
@ Simple
Definition: MWAWFont.hxx:49
SubDocument & operator=(SubDocument const &orig)=delete
int m_rightPage
the right-bottom page
Definition: ScoopParser.cxx:244
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
bool getBinary(MWAWEmbeddedObject &picture) const override
returns the final picture
Definition: MWAWPictBitmap.hxx:225
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type) final
the parser function
Definition: ScoopParser.cxx:330
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
MWAWVariable< double > m_margins[3]
the margins
Definition: MWAWParagraph.hxx:148
@ DECIMAL
Definition: MWAWParagraph.hxx:48
MWAWVec2i m_layoutDimension
the layout dimension
Definition: ScoopParser.cxx:248
bool readText(MWAWEntry &entry, std::string const &what)
try to read a text zone
Definition: ScoopParser.cxx:1496
std::vector< Shape > m_shapes
the main list of shapes
Definition: ScoopParser.cxx:254
long m_ids[4]
the list of ids
Definition: ScoopParser.cxx:112
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
long m_id
the textzone id
Definition: ScoopParser.cxx:322
@ embossBit
Definition: MWAWFont.hxx:190
static MWAWGraphicShape circle(MWAWBox2f const &box)
static constructor to create a circle
Definition: MWAWGraphicShape.hxx:129
std::map< int, float > m_cPosToKernelMap
a map character position to kernel modifier
Definition: ScoopParser.cxx:155
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
class to store a tab use by MWAWParagraph
Definition: MWAWParagraph.hxx:46
Internal: the structures of a ScoopParser.
Definition: ScoopParser.cxx:57
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
float m_slants[2]
the slant values: original, decal?
Definition: ScoopParser.cxx:182
TextZone()
constructor
Definition: ScoopParser.cxx:193
static MWAWGraphicShape polygon(MWAWBox2f const &box)
static constructor to create a polygon
Definition: MWAWGraphicShape.hxx:165
int m_type
the special type: 1: numeric, 2: roman, 3: Alpha, 4: time, 5: date numeric, 6: date alpha
Definition: ScoopParser.cxx:130
SubDocumentType
Definition: libmwaw_internal.hxx:188
std::map< std::pair< int, int >, Special > m_cPosToSpecialMap
a map character positions to special field
Definition: ScoopParser.cxx:157
std::shared_ptr< MWAWInputStream > m_input
the input
Definition: MWAWSubDocument.hxx:77
@ AtLeast
Definition: MWAWParagraph.hxx:94
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
std::string m_extra
extra data
Definition: MWAWFont.hxx:573
MWAWVec2i m_thumbnailSize
the number of page using in thumbnail display
Definition: ScoopParser.cxx:246
Internal: the state of a ScoopParser.
Definition: ScoopParser.cxx:216
@ V_AlignCenter
Definition: MWAWGraphicStyle.hxx:56
Shape()
constructor
Definition: ScoopParser.cxx:62
@ JustificationCenter
Definition: MWAWParagraph.hxx:90
@ shadowBit
Definition: MWAWFont.hxx:191
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
bool readPrintInfo()
try to read the print info zone
Definition: ScoopParser.cxx:2071
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:113
MWAWEntry m_entries[4]
the list of entries
Definition: ScoopParser.cxx:114
T y() const
second element
Definition: libmwaw_internal.hxx:673
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:193
void initPatterns()
init the patterns
Definition: ScoopParser.cxx:261
State()
constructor
Definition: ScoopParser.cxx:218
float m_lineWidth
the linewidth
Definition: MWAWGraphicStyle.hxx:589
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
ScoopParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: ScoopParser.cxx:351
Internal: a text zone shape of a ScoopParser.
Definition: ScoopParser.cxx:164
T x() const
first element
Definition: libmwaw_internal.hxx:668
bool readHeader()
try to the header zone
Definition: ScoopParser.cxx:1957
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
std::vector< MWAWVec2f > m_vertices
the list of vertices for lines or polygons
Definition: MWAWGraphicShape.hxx:232
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
bool operator!=(MWAWSubDocument const &doc) const final
operator!=
Definition: ScoopParser.cxx:307
~ScoopParser() final
destructor
Definition: ScoopParser.cxx:360
#define M_PI
Definition: libmwaw_internal.hxx:52
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:93
double getFormWidth() const
returns the page width
Definition: MWAWPageSpan.hxx:122
@ PageBreak
Definition: MWAWListener.hxx:58
Internal: a special field of a ScoopParser.
Definition: ScoopParser.cxx:122
std::map< long, TextZone > m_idToTextZoneMap
the text zone map: id to text zone
Definition: ScoopParser.cxx:258
MWAWBox2f m_boxes[2]
the bounding boxes: final and original
Definition: ScoopParser.cxx:94
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
Alignment m_alignment
the alignment ( left, center, ...)
Definition: MWAWParagraph.hxx:76
Definition: libmwaw_internal.hxx:144
std::string getDebugString(std::shared_ptr< MWAWFontConverter > &converter) const
returns a string which can be used for debugging
Definition: MWAWFont.cxx:181
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:83
bool createZones()
finds the different objects zones
Definition: ScoopParser.cxx:467
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
virtual function used to parse the input
Definition: ScoopParser.cxx:367
void setPattern(Pattern const &pat, float opacity=1)
set the pattern
Definition: MWAWGraphicStyle.hxx:502
std::vector< Paragraph > m_paragraphs
the paragraph list
Definition: ScoopParser.cxx:209
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
bool readTextZoneParagraph(ScoopParserInternal::Paragraph ¶, int id)
try to read a frame paragraph
Definition: ScoopParser.cxx:1061
double m_position
the tab position
Definition: MWAWParagraph.hxx:74
void setId(int newId)
sets the font id
Definition: MWAWFont.hxx:264
int m_numPages
the number of pages
Definition: ScoopParser.cxx:238
TextZoneShape()
constructor
Definition: ScoopParser.cxx:166
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:203
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:235
Special()
constructor
Definition: ScoopParser.cxx:124
static MWAWGraphicShape arc(MWAWBox2f const &box, MWAWBox2f const &circleBox, MWAWVec2f const &angles)
static constructor to create a arc
Definition: MWAWGraphicShape.hxx:137
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
void setSize(float sz, bool isRelative=false)
sets the font size
Definition: MWAWFont.hxx:275
MWAWColor m_lineColor
the line color
Definition: MWAWGraphicStyle.hxx:597
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
bool readFont(MWAWFont &font)
try to read a font style
Definition: ScoopParser.cxx:1250
@ V_AlignJustify
Definition: MWAWGraphicStyle.hxx:56
int m_displayMode
the display mode 0: thumbnail, 1: one page, 2: facings pages, 3: one page+scrap
Definition: ScoopParser.cxx:240
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
~SubDocument() final
destructor
Definition: ScoopParser.cxx:304
@ italicBit
Definition: MWAWFont.hxx:190
MWAWVariable< librevenge::RVNGUnit > m_marginsUnit
the margins INCH, ...
Definition: MWAWParagraph.hxx:150
bool readBitmap(MWAWEntry const &entry, MWAWEmbeddedObject &object, bool compressed=true)
try to read a bitmap
Definition: ScoopParser.cxx:1840
@ V_AlignBottom
Definition: MWAWGraphicStyle.hxx:56
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
a bitmap of int to store indexed bitmap
Definition: MWAWPictBitmap.hxx:361
bool send(ScoopParserInternal::Shape const &shape, MWAWVec2i const &decal)
try to send a shape
Definition: ScoopParser.cxx:501
static MWAWGraphicShape path(MWAWBox2f const &box)
static constructor to create a path
Definition: MWAWGraphicShape.hxx:173
bool readTextZone(ScoopParserInternal::TextZone &tZone)
try to read the data associated to a text zone: its name, its content, the list of shape which displa...
Definition: ScoopParser.cxx:842
@ Page
Definition: MWAWPosition.hxx:51
MWAWParser * m_parser
the main zone parser
Definition: MWAWSubDocument.hxx:75
Paragraph()
constructor
Definition: ScoopParser.cxx:139
@ JustificationFull
Definition: MWAWParagraph.hxx:90
@ JustificationRight
Definition: MWAWParagraph.hxx:91
int m_type
the shape type
Definition: ScoopParser.cxx:85
int m_leftPage
the left-top page
Definition: ScoopParser.cxx:242
bool readShape(ScoopParserInternal::Shape &shape, int id)
try to read a shape
Definition: ScoopParser.cxx:1561
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:99
#define MWAW_N_ELEMENTS(m)
Definition: libmwaw_internal.hxx:111
SubDocument(SubDocument const &orig)=delete
std::vector< TextZoneShape > m_shapes
the list of shapes displaying this text
Definition: ScoopParser.cxx:211
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
long m_id
the text zone id
Definition: ScoopParser.cxx:203
int m_verticalMode
the vertical position: 0: center, 1: bottom, 2: top, 3: justify
Definition: ScoopParser.cxx:184
static MWAWGraphicShape polyline(MWAWBox2f const &box)
static constructor to create a polyline
Definition: MWAWGraphicShape.hxx:157
MWAWGraphicStyle m_style
the graphic style
Definition: ScoopParser.cxx:87
int m_page
the page
Definition: ScoopParser.cxx:176
a small struct to define the script position in MWAWFont
Definition: MWAWFont.hxx:106
Internal: a text zone of a ScoopParser.
Definition: ScoopParser.cxx:191
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
Definition: MWAWDocument.hxx:57
bool sendText(long tZoneId, int subZone)
try to send the text of a text zone
Definition: ScoopParser.cxx:747
float m_rotate
the rotation
Definition: MWAWGraphicStyle.hxx:627
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
@ RIGHT
Definition: MWAWParagraph.hxx:48
int m_limits[2]
the paragraph id list corresponding to this shape
Definition: ScoopParser.cxx:180
Class to store font.
Definition: MWAWFont.hxx:44
bool readShapesList(std::vector< ScoopParserInternal::Shape > &shapes)
try to read a list of shape
Definition: ScoopParser.cxx:1524
std::shared_ptr< ScoopParserInternal::State > m_state
the state
Definition: ScoopParser.hxx:128
a simple path component
Definition: MWAWGraphicShape.hxx:53
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ScoopParser.cxx:425
bool hasSurface() const
returns true if the interior surface is defined
Definition: MWAWGraphicStyle.hxx:523
static MWAWGraphicShape rectangle(MWAWBox2f const &box, MWAWVec2f const &corners=MWAWVec2f(0, 0))
static constructor to create a rectangle
Definition: MWAWGraphicShape.hxx:120
int m_local[2]
the local values: circle: angles, rect: round dimension
Definition: ScoopParser.cxx:102
double getFormLength() const
returns the page length
Definition: MWAWPageSpan.hxx:117
int m_subId
the sub zone id
Definition: ScoopParser.cxx:324
int m_mode
the mode: 0 copy, 1: or, ...
Definition: ScoopParser.cxx:89
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
bool m_hasScrapPage
a flag to know if some shape are on the scrap page
Definition: ScoopParser.cxx:250
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
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
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
std::vector< Shape > m_children
the list of children: group
Definition: ScoopParser.cxx:117
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
void setFlags(uint32_t fl)
sets the font attributes bold, ...
Definition: MWAWFont.hxx:325
std::map< long, MWAWParagraph > m_idToParagraphMap
the style map: id to paragraph
Definition: ScoopParser.cxx:256
int m_textLinkId
the text link id
Definition: ScoopParser.cxx:110
int m_numChar
the number of characters
Definition: ScoopParser.cxx:149
Generated on Wed Jun 25 2025 00:00:00 for libmwaw by
doxygen 1.8.20