Go to the documentation of this file.
34 #ifndef CLARISDRAW_PARSER
35 # define CLARISDRAW_PARSER
40 #include <librevenge/librevenge.h>
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:178
int getFileType(int zoneId) const
returns the file type corresponding to a zone id
Definition: ClarisDrawParser.cxx:166
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:199
bool m_createMasterPage
flag to know if we need or not to create a master
Definition: ClarisDrawParser.cxx:116
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
~ClarisDrawParser() final
destructor
Definition: ClarisDrawParser.cxx:149
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_headerId
header id
Definition: ClarisDrawParser.cxx:124
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
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
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:162
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:237
Definition: ClarisDrawParser.cxx:65
bool createZones()
finds the different objects zones
Definition: ClarisDrawParser.cxx:321
bool open(std::string const &filename)
opens/creates a file to store a result
Definition: MWAWDebug.cxx:46
int m_actualLayer
the actual layer
Definition: ClarisDrawParser.cxx:112
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:208
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
int m_textType
the text type (header/footer,footnote, ...)
Definition: ClarisWksStruct.hxx:209
bool m_isLibrary
flag to know if the file is a library or not
Definition: ClarisDrawParser.cxx:106
@ MWAW_T_CLARISDRAW
Claris Draw: v1.0.1-v1.0.3.
Definition: MWAWDocument.hxx:198
Layer()
constructor
Definition: ClarisDrawParser.cxx:67
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:193
bool readLayouts()
try to read the layout
Definition: ClarisDrawParser.cxx:1134
bool sendTextZone(int number, int subZone=-1)
sends a text zone
Definition: ClarisDrawParser.cxx:175
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
int m_endSelection
the end of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:206
long m_EOF
the last data zone size
Definition: ClarisDrawParser.cxx:110
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
bool readDocHeader()
try to read a document header
Definition: ClarisDrawParser.cxx:402
int m_version
the file version
Definition: ClarisDrawParser.cxx:104
namespace to store the main structure which appears in a ClarisDraw/ClarisWorks file
Definition: ClarisWksStruct.cxx:50
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:212
libmwaw::DebugFile & ascii()
a DebugFile used to write what we recognize when we parse the document
Definition: MWAWParser.hxx:195
int m_beginSelection
the begin of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:204
bool m_pageSpanSet
flag to know if the page has been set
Definition: ClarisDrawParser.cxx:122
bool readLibraryHeader()
try to read the library header
Definition: ClarisDrawParser.cxx:817
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
bool m_displayAsSlide
flag to know if we need to display data as slide
Definition: ClarisDrawParser.cxx:118
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:178
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:243
std::shared_ptr< ClarisDrawText > m_textParser
the text parser
Definition: ClarisDrawParser.hxx:133
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:93
friend class ClarisDrawText
Definition: ClarisDrawParser.hxx:66
std::vector< Layer > m_layerList
the layer list
Definition: ClarisDrawParser.cxx:120
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
T y() const
second element
Definition: libmwaw_internal.hxx:673
State()
constructor
Definition: ClarisDrawParser.cxx:85
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:183
T x() const
first element
Definition: libmwaw_internal.hxx:668
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
int m_fileType
the type ( 0: text, -1: graphic, ...)
Definition: ClarisWksStruct.hxx:189
int m_groupId
the first group id
Definition: ClarisDrawParser.cxx:74
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:67
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:125
bool readZone()
try to read a zone
Definition: ClarisDrawParser.cxx:360
the main class to read a ClarisDraw style
Definition: ClarisDrawStyleManager.hxx:60
void setVersion(int vers)
sets the document's version
Definition: MWAWParser.hxx:206
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
@ PageBreak
Definition: MWAWListener.hxx:58
bool m_isHidden
true if the layer is hidden
Definition: ClarisDrawParser.cxx:76
void setStream(MWAWInputStreamPtr const &ip)
resets the input
Definition: MWAWDebug.hxx:81
bool readHeader(MWAWInputStreamPtr input, bool strict=false)
try to read the header
Definition: ClarisWksStruct.cxx:72
void init()
inits all internal variables
Definition: ClarisDrawParser.cxx:153
Definition: libmwaw_internal.hxx:144
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
Internal: the state of a ClarisDrawParser.
Definition: ClarisDrawParser.cxx:83
bool checkHeader(MWAWHeader *header, bool strict=false) final
checks if the document header is correct (or not)
Definition: ClarisDrawParser.cxx:1095
virtual class which defines the ancestor of all graphic zone parser
Definition: MWAWParser.hxx:251
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:87
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ClarisDrawParser.cxx:254
void parse(librevenge::RVNGDrawingInterface *documentInterface) final
the main parse function
Definition: ClarisDrawParser.cxx:189
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
int m_numLayers
the number of layer
Definition: ClarisDrawParser.cxx:114
void setPageName(librevenge::RVNGString const &name)
set the page name
Definition: MWAWPageSpan.hxx:228
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
long end() const
returns the end offset
Definition: MWAWEntry.hxx:88
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:69
std::shared_ptr< ClarisDrawStyleManager > m_styleManager
the style manager
Definition: ClarisDrawParser.hxx:129
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:180
the main class to read the graphic part of ClarisDraw file
Definition: ClarisDrawGraph.hxx:74
std::shared_ptr< ClarisWksStruct::DSET > readDSET(bool isLibHeader=false)
try to read a DSET structure
Definition: ClarisDrawParser.cxx:1453
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:182
@ Page
Definition: MWAWPosition.hxx:51
friend class ClarisDrawGraph
Definition: ClarisDrawParser.hxx:65
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
std::shared_ptr< ClarisDrawParserInternal::State > m_state
the state
Definition: ClarisDrawParser.hxx:127
int m_footerId
footer id
Definition: ClarisDrawParser.cxx:126
ClarisDrawParser(MWAWInputStreamPtr const &input, MWAWRSRCParserPtr const &rsrcParser, MWAWHeader *header)
constructor
Definition: ClarisDrawParser.cxx:139
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:198
Internal: the structures of a ClarisDrawParser.
Definition: ClarisDrawParser.cxx:63
MWAWVec2i m_pages
the number of pages
Definition: ClarisDrawParser.cxx:128
the main class to read the text part of ClarisDraw file
Definition: ClarisDrawText.hxx:73
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
int m_numDSET
the number of DSET+FNTM
Definition: ClarisDrawParser.cxx:108
bool readPrintInfo()
try to read the print info zone
Definition: ClarisDrawParser.cxx:1394
a basic structure
Definition: ClarisWksStruct.hxx:53
librevenge::RVNGString m_name
the layer name
Definition: ClarisDrawParser.cxx:78
the main class to read a ClarisDraw v1 file
Definition: ClarisDrawParser.hxx:64
std::map< int, int > m_zoneIdToFileTypeMap
map zone id to file type
Definition: ClarisDrawParser.cxx:132
Definition: MWAWDocument.hxx:57
MWAWVec2f getPageLeftTop()
returns the page left top point ( in inches)
Definition: ClarisDrawParser.cxx:180
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:213
Class to store font.
Definition: MWAWFont.hxx:44
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:184
bool readLibraryNames()
try to read the library names(two zone)
Definition: ClarisDrawParser.cxx:1231
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
std::stringstream DebugStream
a basic stream (if debug_with_files is not defined, does nothing)
Definition: MWAWDebug.hxx:61
void resetGraphicListener()
resets the listener
Definition: MWAWParser.cxx:130
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
std::map< int, std::shared_ptr< ClarisWksStruct::DSET > > m_zonesMap
the map of zone
Definition: ClarisDrawParser.cxx:130
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
std::shared_ptr< ClarisDrawGraph > m_graphParser
the graph parser
Definition: ClarisDrawParser.hxx:131
bool readDocInfo()
try to read the document info zone
Definition: ClarisDrawParser.cxx:1348
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20