34 #ifndef GREAT_WKS_DOCUMENT
35 # define GREAT_WKS_DOCUMENT
40 #include <librevenge/librevenge.h>
114 bool readString(
long endPos, std::string &res);
116 bool readNumber(
long endPos,
double &res,
bool &isNan);
119 std::vector<MWAWCellContent::FormulaInstruction> &formula, std::string &error);
156 shared_ptr<GreatWksDocumentInternal::State>
m_state;
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:441
small class use to define a formula instruction
Definition: MWAWCell.hxx:360
bool readNumber(long endPos, double &res, bool &isNan)
try to read a number
Definition: GreatWksDocument.cxx:583
GreatWksDocument(MWAWParser &parser)
constructor
Definition: GreatWksDocument.cxx:79
the main class to read a GreatWorks database file
Definition: GreatWksDBParser.hxx:61
shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: GreatWksDocument.hxx:159
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:65
the main class to read/store generic data of a GreatWorks document
Definition: GreatWksDocument.hxx:59
bool canSendTextboxAsGraphic(MWAWEntry const &entry)
check if a textbox can be send in a graphic zone, ie. does not contains any graphic ...
Definition: GreatWksDocument.cxx:138
void newPage(int page)
send a page break
Definition: GreatWksDocument.cxx:116
bool readWPSN(MWAWEntry const &entry)
read the windows positions ( WPSN resource block )
Definition: GreatWksDocument.cxx:223
MWAWParser * m_parser
the main parser
Definition: GreatWksDocument.hxx:163
bool readPrintInfo(MWAWEntry const &entry)
read a PrintInfo block ( PRNT resource block )
Definition: GreatWksDocument.cxx:279
NewPage m_newPage
the new page callback
Definition: GreatWksDocument.hxx:177
shared_ptr< GreatWksGraph > m_graphParser
the graph document
Definition: GreatWksDocument.hxx:165
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: GreatWksDocument.cxx:474
bool sendPicture(MWAWEntry const &entry, MWAWPosition pos)
send a picture
Definition: GreatWksDocument.cxx:150
bool readFormula(MWAWVec2i const &cPos, long endPos, std::vector< MWAWCellContent::FormulaInstruction > &formula, std::string &error)
read to read a formula
Definition: GreatWksDocument.cxx:625
GetMainSection m_getMainSection
the getMainSection callback
Definition: GreatWksDocument.hxx:175
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: GreatWksDocument.cxx:99
the main class to read the text part of GreatWorks Text file
Definition: GreatWksText.hxx:62
shared_ptr< GreatWksText > m_textParser
the text document
Definition: GreatWksDocument.hxx:167
bool readCellInFormula(MWAWVec2i const &pos, MWAWCellContent::FormulaInstruction &instr)
reads a cell
Definition: GreatWksDocument.cxx:539
shared_ptr< GreatWksGraph > getGraphParser()
returns the graph parser
Definition: GreatWksDocument.hxx:80
bool readRSRCZones()
read the resource fork zone
Definition: GreatWksDocument.cxx:164
MWAWSection(MWAWParser::* GetMainSection)() const
callback used to return the main section
Definition: GreatWksDocument.hxx:170
virtual ~GreatWksDocument()
destructor
Definition: GreatWksDocument.cxx:90
the main class to read a GreatWorks graphic file
Definition: GreatWksDRParser.hxx:55
void(MWAWParser::* NewPage)(int page)
callback used to send a page break
Definition: GreatWksDocument.hxx:172
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: GreatWksDocument.cxx:94
the main class to read a GreatWorks text file
Definition: GreatWksParser.hxx:56
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:439
shared_ptr< GreatWksDocumentInternal::State > m_state
the state
Definition: GreatWksDocument.hxx:156
bool readDaHS(MWAWEntry const &entry)
read a unknown zone ( DaHS resource block: v2 )
Definition: GreatWksDocument.cxx:360
the main class to read the graphic part of a HanMac Word-J file
Definition: GreatWksGraph.hxx:75
shared_ptr< GreatWksText > getTextParser()
returns the text parser
Definition: GreatWksDocument.hxx:85
bool readARRs(MWAWEntry const &entry)
read a unknown zone ( ARRs resource block: v2 )
Definition: GreatWksDocument.cxx:333
bool readNxEd(MWAWEntry const &entry)
read a unknown zone ( NxED resource block: v2 )
Definition: GreatWksDocument.cxx:442
Defines MWAWCell (cell content and format)
bool readGrDS(MWAWEntry const &entry)
read a unknown zone ( GrDS resource block: v2 )
Definition: GreatWksDocument.cxx:401
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:97
MWAWParser & getMainParser()
returns the main parser
Definition: GreatWksDocument.hxx:75
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
bool sendTextbox(MWAWEntry const &entry, MWAWListenerPtr listener)
try to send textbox
Definition: GreatWksDocument.cxx:129
the main class to read a GreatWorks spreadsheet file
Definition: GreatWksSSParser.hxx:58
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool readString(long endPos, std::string &res)
try to read a string
Definition: GreatWksDocument.cxx:568
GreatWksDocument & operator=(GreatWksDocument const &orig)
MWAWSection getMainSection() const
return the main section
Definition: GreatWksDocument.cxx:107
Internal: the structures of a GreatWksDocument.
Definition: GreatWksDocument.cxx:57