Go to the documentation of this file.
38 #ifndef CLARIS_WKS_DOCUMENT
39 # define CLARIS_WKS_DOCUMENT
110 shared_ptr<ClarisWksStruct::DSET>
getZone(
int zId)
const;
114 void newPage(
int page,
bool softBreak=
false);
209 shared_ptr<ClarisWksStruct::DSET>
readDSET(
bool &complete);
222 bool readStructCellZone(
char const *zoneName,
bool hasEntete, std::vector<MWAWVec2i> &res);
224 bool readStringList(
char const *zoneName,
bool hasEntete, std::vector<std::string> &res);
229 void checkOrdering(std::vector<int16_t> &vec16, std::vector<int32_t> &vec32)
const;
236 shared_ptr<ClarisWksDocumentInternal::State>
m_state;
long m_size
the size of the DSET header
Definition: ClarisWksStruct.hxx:135
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
@ MWAW_K_DATABASE
database
Definition: MWAWDocument.hxx:87
std::vector< int > m_hFZonesList
the list of header/footer group
Definition: ClarisWksDocument.cxx:117
the main class to read the text part of Claris Works file
Definition: ClarisWksTable.hxx:70
@ MWAW_K_UNKNOWN
unknown
Definition: MWAWDocument.hxx:81
bool m_pageSpanSet
a flag to know if pageSpan is filled
Definition: ClarisWksDocument.cxx:88
shared_ptr< ClarisWksPresentation > getPresentationParser()
returns the presentation parser
Definition: ClarisWksDocument.hxx:147
void setPageSpan(const int pageSpan)
set the page span ( default 1)
Definition: MWAWPageSpan.hxx:262
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
bool readPrintInfo()
read the print info zone
Definition: ClarisWksDocument.cxx:2183
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
ClarisWksDocument(ClarisWksDocument const &orig)
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
@ P_Table
Definition: ClarisWksStruct.hxx:62
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
State()
constructor
Definition: ClarisWksDocument.cxx:73
bool readStructZone(MWAWParserState &parserState, char const *zoneName, bool hasEntete)
try to read a structured zone with unknown content
Definition: ClarisWksStruct.cxx:129
@ MWAW_K_PAINT
bitmap graphic
Definition: MWAWDocument.hxx:84
shared_ptr< ClarisWksTable > m_tableParser
the table parser
Definition: ClarisWksDocument.hxx:256
the main class to read a bitmap AppleWorks/ClarisWorks file
Definition: ClarisWksBMParser.hxx:66
void checkOrdering(std::vector< int16_t > &vec16, std::vector< int32_t > &vec32) const
small fonction used to check unusual endian ordering of a list of int16_t, int32_t
Definition: ClarisWksDocument.cxx:356
librevenge::RVNGPropertyList m_metaData
the metadata
Definition: ClarisWksDocument.cxx:97
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
the main class to read the text part of Claris Works file
Definition: ClarisWksDatabase.hxx:72
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
@ Presentation
Definition: MWAWListener.hxx:56
int m_textType
the text type (header/footer,footnote, ...)
Definition: ClarisWksStruct.hxx:166
int m_footerId
the footer zone if known
Definition: ClarisWksDocument.cxx:99
int m_footerHeight
the footer height if known
Definition: ClarisWksDocument.cxx:101
std::string const & type() const
returns the type of the entry
Definition: MWAWEntry.hxx:126
Kind
an enum to define the kind of document
Definition: MWAWDocument.hxx:80
shared_ptr< ClarisWksStyleManager > getStyleManager()
returns the style manager
Definition: ClarisWksDocument.hxx:132
MWAWVec2i m_pages
the number of pages find in the header ( if known )
Definition: ClarisWksDocument.cxx:93
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
bool sendZone(int zoneId, MWAWListenerPtr listener=MWAWListenerPtr(), MWAWPosition pos=MWAWPosition())
try to send a zone
Definition: ClarisWksDocument.cxx:433
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
MWAWVec2f getPageLeftTop() const
returns the page left top point ( in inches)
Definition: ClarisWksDocument.cxx:297
shared_ptr< ClarisWksStruct::DSET > readDSET(bool &complete)
reads the zone DSET
Definition: ClarisWksDocument.cxx:827
shared_ptr< ClarisWksDatabase > m_databaseParser
the database parser
Definition: ClarisWksDocument.hxx:248
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
main document information used to create a ClarisWorks file
Definition: ClarisWksDocument.hxx:74
bool readZone()
read a zone
Definition: ClarisWksDocument.cxx:719
shared_ptr< ClarisWksDatabase > getDatabaseParser()
returns the database parser
Definition: ClarisWksDocument.hxx:137
Internal: the state of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:71
the main class to read the text part of Claris Works file
Definition: ClarisWksSpreadsheet.hxx:71
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
bool readDocHeader()
reads the document header
Definition: ClarisWksDocument.cxx:1037
int m_flags[4]
some unknown flag
Definition: ClarisWksStruct.hxx:169
shared_ptr< ClarisWksText > m_textParser
the text parser
Definition: ClarisWksDocument.hxx:258
shared_ptr< ClarisWksPresentation > m_presentationParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:252
int m_columns
the number of columns
Definition: ClarisWksDocument.cxx:104
ClarisWksDocument(MWAWParser &parser)
constructor
Definition: ClarisWksDocument.cxx:178
int m_beginSelection
the begin of selection ( at least in text header)
Definition: ClarisWksStruct.hxx:161
bool exploreZonesGraph()
try to find the zone dags structure...
Definition: ClarisWksDocument.cxx:2504
@ MWAW_T_CLARISWORKS
ClarisWorks/AppleWorks: all versions, export database (as spreadsheet), draw(as text),...
Definition: MWAWDocument.hxx:105
shared_ptr< ClarisWksGraph > getGraphParser()
returns the graph parser
Definition: ClarisWksDocument.hxx:142
std::vector< int > const & getMainZonesList() const
returns the list of the main zones
Definition: ClarisWksDocument.cxx:390
bool readTNAM(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1971
void newPage(int page, bool softBreak=false)
send a page break
Definition: ClarisWksDocument.cxx:306
void typeMainZones()
try to type the main zones
Definition: ClarisWksDocument.cxx:2626
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
double getPageWidth() const
returns the page width (form width without margin )
Definition: MWAWParser.hxx:185
SubDocumentType
Definition: libmwaw_internal.hxx:178
@ MWAW_K_PRESENTATION
presentation graphic
Definition: MWAWDocument.hxx:85
the main class to create presentation Claris Works file
Definition: ClarisWksPRParser.hxx:68
std::map< int, ClarisWksStruct::DSET::Position > m_zonesTypeMap
the type of each zone
Definition: ClarisWksDocument.cxx:113
double getMarginRight() const
returns the right margin
Definition: MWAWPageSpan.hxx:131
shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: ClarisWksDocument.hxx:239
int m_headerId
the header zone if known
Definition: ClarisWksDocument.cxx:98
void setType(std::string const &newType)
sets the type of the entry: BTEP,FDPP, BTEC, FDPC, PLC , TEXT, ...
Definition: MWAWEntry.hxx:121
shared_ptr< ClarisWksTable > getTableParser()
returns the table parser
Definition: ClarisWksDocument.hxx:157
void skipZone(long beginPos, long endPos)
skips the file zone defined by beginPos-endPos
Definition: MWAWDebug.hxx:105
bool readCPRT(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1544
T y() const
second element
Definition: libmwaw_internal.hxx:620
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
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
@ MWAW_K_TEXT
word processing file
Definition: MWAWDocument.hxx:82
the main class to read the text part of Claris Works file
Definition: ClarisWksPresentation.hxx:71
void setEnd(long off)
sets the end offset
Definition: MWAWEntry.hxx:66
double getFormLength() const
returns the form length
Definition: MWAWParser.hxx:170
@ P_Header
Definition: ClarisWksStruct.hxx:62
T x() const
first element
Definition: libmwaw_internal.hxx:615
NewPage m_newPage
the new page callback
Definition: ClarisWksDocument.hxx:270
void parse(MWAWListenerPtr &listener, libmwaw::SubDocumentType type)
the parser function
Definition: ClarisWksDocument.cxx:159
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
void setBegin(long off)
sets the begin offset
Definition: MWAWEntry.hxx:56
SubDocument(ClarisWksDocument &doc, MWAWInputStreamPtr input, int zoneId)
Definition: ClarisWksDocument.cxx:127
std::vector< Column > m_columns
the different column
Definition: MWAWSection.hxx:100
void(MWAWParser::* NewPage)(int page, bool softBreak)
callback used to send a page break
Definition: ClarisWksDocument.hxx:265
shared_ptr< ClarisWksDocumentInternal::State > m_state
the state
Definition: ClarisWksDocument.hxx:236
MWAWVec2i getDocumentPages()
returns the number of expected pages ( accross pages x down page)
Definition: ClarisWksDocument.cxx:201
MWAWParser & getMainParser()
returns the main parser
Definition: ClarisWksDocument.hxx:127
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
shared_ptr< ClarisWksSpreadsheet > m_spreadsheetParser
the spreadsheet parser
Definition: ClarisWksDocument.hxx:254
std::vector< int > m_columnsSep
the columns separator in Points
Definition: ClarisWksDocument.cxx:108
SendFootnote m_sendFootnote
the send footnote callback
Definition: ClarisWksDocument.hxx:272
the main class to read the text part of Claris Works file
Definition: ClarisWksText.hxx:76
Internal: the structures of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:68
bool readDSUM(MWAWEntry const &entry, bool inHeader)
Definition: ClarisWksDocument.cxx:2016
a class which stores section properties
Definition: MWAWSection.hxx:46
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
double getFormWidth() const
returns the form width
Definition: MWAWParser.hxx:175
void setLength(long l)
sets the zone size
Definition: MWAWEntry.hxx:61
virtual bool operator!=(MWAWSubDocument const &doc) const
operator!=
Definition: ClarisWksDocument.cxx:134
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
bool readStructCellZone(char const *zoneName, bool hasEntete, std::vector< MWAWVec2i > &res)
try to read a structured zone list of cells
Definition: ClarisWksDocument.cxx:2253
main structure which correspond to a document part
Definition: ClarisWksStruct.hxx:58
int m_numPages
the number of pages (computed)
Definition: ClarisWksDocument.cxx:91
bool readMARKList(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:1597
ClarisWksStruct::DSET::Position getZoneType(int id) const
returns a zone's type
Definition: ClarisWksDocument.cxx:81
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
MWAWSection getMainSection() const
returns the main document section
Definition: ClarisWksDocument.cxx:315
MWAWPageSpan getFinalPageSpan() const
returns the final page span to use for the document
Definition: ClarisWksDocument.cxx:277
the main class to read the graphic part of Claris Works file
Definition: ClarisWksGraph.hxx:78
virtual ~SubDocument()
destructor
Definition: ClarisWksDocument.cxx:131
void sendFootnote(int zoneId)
ask the main parser to create a document to send a footnote
Definition: ClarisWksDocument.cxx:347
int m_id
the subdocument id
Definition: ClarisWksDocument.cxx:156
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: ClarisWksDocument.cxx:615
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
a structure to store the style list and the lookup zone
Definition: ClarisWksStyleManager.hxx:61
double getMarginBottom() const
returns the bottom margin
Definition: MWAWPageSpan.hxx:141
shared_ptr< ClarisWksStyleManager > m_styleManager
the style manager
Definition: ClarisWksDocument.hxx:245
librevenge::RVNGPropertyList const & getDocumentMetaData() const
returns the document meta data
Definition: ClarisWksDocument.cxx:243
bool readEndTable(long &eof)
reads the end table ( appears in v3.0 : file version ? )
Definition: ClarisWksDocument.cxx:1438
Internal: the subdocument of a ClarisWksDocument.
Definition: ClarisWksDocument.cxx:125
Position
the zone position
Definition: ClarisWksStruct.hxx:62
bool readDocumentMark(long endPos)
Definition: ClarisWksDocument.cxx:1815
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
the main class to read a Claris Works file
Definition: ClarisWksParser.hxx:68
bool readURL(long endPos)
Definition: ClarisWksDocument.cxx:1760
void updateChildPositions()
try to update the child page of each zone
Definition: ClarisWksDocument.cxx:2440
bool readEndMark(long endPos)
Definition: ClarisWksDocument.cxx:1929
@ P_Footer
Definition: ClarisWksStruct.hxx:62
long m_numData
the number of header
Definition: ClarisWksStruct.hxx:137
bool readSNAP(MWAWEntry const &entry)
Definition: ClarisWksDocument.cxx:2127
void(MWAWParser::* SendFootnote)(int zoneId)
callback used to send a footnote
Definition: ClarisWksDocument.hxx:267
shared_ptr< ClarisWksSpreadsheet > getSpreadsheetParser()
returns the spreadsheet parser
Definition: ClarisWksDocument.hxx:152
shared_ptr< ClarisWksStruct::DSET > getZone(int zId) const
return the zone corresponding to an id ( low level)
Definition: ClarisWksDocument.cxx:395
bool exploreZonesGraphRec(int zId, std::set< int > ¬DoneList)
try to find the zone tree graph ( DSF) function
Definition: ClarisWksDocument.cxx:2575
long m_dataSz
the data size
Definition: ClarisWksStruct.hxx:139
@ Right
Definition: libmwaw_internal.hxx:166
double getTextHeight() const
returns the page height, ie. paper size less margin (in inches) less header/footer size
Definition: ClarisWksDocument.cxx:292
std::vector< int > m_rootZonesList
the list of root zones
Definition: ClarisWksDocument.cxx:115
shared_ptr< ClarisWksText > getTextParser()
returns the text parser
Definition: ClarisWksDocument.hxx:162
~ClarisWksDocument()
virtual destructor
Definition: ClarisWksDocument.cxx:194
void cleanZonesGraph()
remove uneeded edge (mainly header/footer edges in main graph)
Definition: ClarisWksDocument.cxx:2735
ClarisWksDocument operator=(ClarisWksDocument const &orig)
void addPos(long pos)
adds a new position in the file
Definition: MWAWDebug.cxx:53
bool canSendZoneAsGraphic(int number) const
check if we can send a zone as a graphic
Definition: ClarisWksDocument.cxx:403
void setMarginRight(const double marginRight)
set the page right margin
Definition: MWAWPageSpan.hxx:192
bool createZones()
finds the different objects zones
Definition: ClarisWksDocument.cxx:489
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
@ P_Main
Definition: ClarisWksStruct.hxx:62
void setHeaderFooter(MWAWHeaderFooter const &headerFooter)
add a header/footer on some page
Definition: MWAWPageSpan.cxx:223
@ Left
Definition: libmwaw_internal.hxx:166
virtual bool operator==(MWAWSubDocument const &doc) const
operator!==
Definition: ClarisWksDocument.cxx:145
int typeMainZonesRec(int zId, ClarisWksStruct::DSET::Position type, int maxHeight)
try to type the main zones recursif, returns the father id
Definition: ClarisWksDocument.cxx:2710
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 readStringList(char const *zoneName, bool hasEntete, std::vector< std::string > &res)
Definition: ClarisWksDocument.cxx:2073
@ P_Unknown
Definition: ClarisWksStruct.hxx:64
ClarisWksDocument & m_document
the document manager
Definition: ClarisWksDocument.cxx:154
bool readBookmark(long endPos)
Definition: ClarisWksDocument.cxx:1876
the main class to read a AppleWorks/ClarisWorks spreadsheet file
Definition: ClarisWksSSParser.hxx:68
std::map< int, shared_ptr< ClarisWksStruct::DSET > > m_zonesMap
the map of zone
Definition: ClarisWksDocument.cxx:111
bool readZoneA()
try to read a unknown zone which appear to be filled at least in some v2 database file
Definition: ClarisWksDocument.cxx:2328
AnchorTo m_anchorTo
anchor position
Definition: MWAWPosition.hxx:254
bool m_pagesVerified
true if the number pages of pages has been verified
Definition: ClarisWksDocument.cxx:95
bool readDocInfo()
reads the document info part ( end of the header)
Definition: ClarisWksDocument.cxx:963
shared_ptr< ClarisWksGraph > m_graphParser
the graph parser
Definition: ClarisWksDocument.hxx:250
Class to store font.
Definition: MWAWFont.hxx:44
std::set< MWAWVec2i > m_zonesSentSet
a stack of send zone (id,anchor) used to avoid unsolved potential loop
Definition: ClarisWksDocument.cxx:119
long m_headerSz
the header size
Definition: ClarisWksStruct.hxx:141
void updatePageSpanList(std::vector< MWAWPageSpan > &spanList)
updates the page span list
Definition: ClarisWksDocument.cxx:248
std::vector< int > m_columnsWidth
the columns witdh in Points
Definition: ClarisWksDocument.cxx:106
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
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
void forceParsed(int zoneId)
indicates that a zone is parser
Definition: ClarisWksDocument.cxx:2498
@ P_Slide
Definition: ClarisWksStruct.hxx:64
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
int numPages() const
returns the document number of page
Definition: ClarisWksDocument.cxx:225
MWAWParser * m_parser
the main parser
Definition: ClarisWksDocument.hxx:243
int m_headerHeight
the header height if known
Definition: ClarisWksDocument.cxx:100
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18