Go to the documentation of this file.
34 #ifndef CLARISDRAW_PARSER
35 # define CLARISDRAW_PARSER
40 #include <librevenge/librevenge.h>
77 void parse(librevenge::RVNGDrawingInterface *documentInterface);
91 void createDocument(librevenge::RVNGDrawingInterface *documentInterface);
106 shared_ptr<ClarisWksStruct::DSET>
readDSET(
bool isLibHeader=
false);
127 shared_ptr<ClarisDrawParserInternal::State>
m_state;
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:135
int getFileType(int zoneId) const
returns the file type corresponding to a zone id
Definition: ClarisDrawParser.cxx:145
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
int m_id
the zone identificator
Definition: ClarisWksStruct.hxx:156
bool m_createMasterPage
flag to know if we need or not to create a master
Definition: ClarisDrawParser.cxx:99
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
int m_headerId
header id
Definition: ClarisDrawParser.cxx:107
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
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:129
void setRelativePosition(AnchorTo anchor, XPos X=XLeft, YPos Y=YTop)
sets the relative position
Definition: MWAWPosition.hxx:221
Definition: ClarisDrawParser.cxx:64
bool createZones()
finds the different objects zones
Definition: ClarisDrawParser.cxx:300
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:95
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
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:166
bool m_isLibrary
flag to know if the file is a library or not
Definition: ClarisDrawParser.cxx:89
@ MWAW_T_CLARISDRAW
Claris Draw: v1.0.1-v1.0.3.
Definition: MWAWDocument.hxx:174
Layer()
constructor
Definition: ClarisDrawParser.cxx:66
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
bool readLayouts()
try to read the layout
Definition: ClarisDrawParser.cxx:1115
bool sendTextZone(int number, int subZone=-1)
sends a text zone
Definition: ClarisDrawParser.cxx:154
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
int m_endSelection
the end of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:163
long m_EOF
the last data zone size
Definition: ClarisDrawParser.cxx:93
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
ClarisDrawParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: ClarisDrawParser.cxx:122
bool readDocHeader()
try to read a document header
Definition: ClarisDrawParser.cxx:381
int m_version
the file version
Definition: ClarisDrawParser.cxx:87
shared_ptr< ClarisDrawGraph > m_graphParser
the graph parser
Definition: ClarisDrawParser.hxx:131
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:169
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:161
bool m_pageSpanSet
flag to know if the page has been set
Definition: ClarisDrawParser.cxx:105
bool readLibraryHeader()
try to read the library header
Definition: ClarisDrawParser.cxx:798
std::string const & asciiName() const
return the ascii file name
Definition: MWAWParser.hxx:232
virtual ~ClarisDrawParser()
destructor
Definition: ClarisDrawParser.cxx:128
bool m_displayAsSlide
flag to know if we need to display data as slide
Definition: ClarisDrawParser.cxx:101
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
void setMasterPageName(librevenge::RVNGString const &name)
set the page master name
Definition: MWAWPageSpan.hxx:237
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: ClarisDrawParser.cxx:1076
void reset()
writes the current file and reset to zero
Definition: MWAWDebug.hxx:85
friend class ClarisDrawText
Definition: ClarisDrawParser.hxx:66
std::vector< Layer > m_layerList
the layer list
Definition: ClarisDrawParser.cxx:103
void setAsciiName(char const *name)
Debugging: change the default ascii file.
Definition: MWAWParser.hxx:227
T y() const
second element
Definition: libmwaw_internal.hxx:620
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
State()
constructor
Definition: ClarisDrawParser.cxx:81
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
std::map< int, shared_ptr< ClarisWksStruct::DSET > > m_zonesMap
the map of zone
Definition: ClarisDrawParser.cxx:113
T x() const
first element
Definition: libmwaw_internal.hxx:615
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:146
int m_groupId
the first group id
Definition: ClarisDrawParser.cxx:70
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
void setGraphicListener(MWAWGraphicListenerPtr &listener)
sets the graphic listener
Definition: MWAWParser.cxx:113
bool readZone()
try to read a zone
Definition: ClarisDrawParser.cxx:339
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
@ PageBreak
Definition: MWAWListener.hxx:58
bool m_isHidden
true if the layer is hidden
Definition: ClarisDrawParser.cxx:72
void init()
inits all internal variables
Definition: ClarisDrawParser.cxx:132
Definition: libmwaw_internal.hxx:142
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
Internal: the state of a ClarisDrawParser.
Definition: ClarisDrawParser.cxx:79
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:58
void createDocument(librevenge::RVNGDrawingInterface *documentInterface)
creates the listener which will be associated to the document
Definition: ClarisDrawParser.cxx:233
shared_ptr< ClarisDrawText > m_textParser
the text parser
Definition: ClarisDrawParser.hxx:133
void setMarginTop(const double marginTop)
set the page top margin
Definition: MWAWPageSpan.hxx:197
bool read(MWAWInputStreamPtr input)
reads the struture in a file
Definition: MWAWPrinter.cxx:218
int m_numLayers
the number of layer
Definition: ClarisDrawParser.cxx:97
void setPageName(librevenge::RVNGString const &name)
set the page name
Definition: MWAWPageSpan.hxx:222
MWAWParserStatePtr getParserState()
returns the parser state
Definition: MWAWParser.hxx:113
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
MWAWInputStreamPtr & getInput()
returns the actual input
Definition: MWAWParser.hxx:123
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
the main class to read the graphic part of Claris Works file
Definition: ClarisDrawGraph.hxx:74
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
@ 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
void setStream(MWAWInputStreamPtr ip)
resets the input
Definition: MWAWDebug.hxx:73
int m_footerId
footer id
Definition: ClarisDrawParser.cxx:109
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
Internal: the structures of a ClarisDrawParser.
Definition: ClarisDrawParser.cxx:62
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
MWAWVec2i m_pages
the number of pages
Definition: ClarisDrawParser.cxx:111
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:91
bool readPrintInfo()
try to read the print info zone
Definition: ClarisDrawParser.cxx:1413
shared_ptr< ClarisDrawParserInternal::State > m_state
the state
Definition: ClarisDrawParser.hxx:127
librevenge::RVNGString m_name
the layer name
Definition: ClarisDrawParser.cxx:74
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:115
MWAWVec2f getPageLeftTop()
returns the page left top point ( in inches)
Definition: ClarisDrawParser.cxx:159
void setMargins(double margin, int wh=libmwaw::LeftBit|libmwaw::RightBit|libmwaw::TopBit|libmwaw::BottomBit)
set all the margins
Definition: MWAWPageSpan.hxx:207
shared_ptr< ClarisDrawStyleManager > m_styleManager
the style manager
Definition: ClarisDrawParser.hxx:129
Class to store font.
Definition: MWAWFont.hxx:44
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
bool readLibraryNames()
try to read the library names(two zone)
Definition: ClarisDrawParser.cxx:1231
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
void parse(librevenge::RVNGDrawingInterface *documentInterface)
the main parse function
Definition: ClarisDrawParser.cxx:168
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:118
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
shared_ptr< ClarisWksStruct::DSET > readDSET(bool isLibHeader=false)
try to read a DSET structure
Definition: ClarisDrawParser.cxx:1472
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
bool readDocInfo()
try to read the document info zone
Definition: ClarisDrawParser.cxx:1366
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18