Go to the documentation of this file.
34 #ifndef GREAT_WKS_DOCUMENT
35 # define GREAT_WKS_DOCUMENT
40 #include <librevenge/librevenge.h>
115 bool readString(
long endPos, std::string &res);
117 bool readNumber(
long endPos,
double &res,
bool &isNan);
120 std::vector<MWAWCellContent::FormulaInstruction> &formula, std::string &error);
157 shared_ptr<GreatWksDocumentInternal::State>
m_state;
@ F_CellList
Definition: MWAWCell.hxx:360
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ MWAW_K_DATABASE
database
Definition: MWAWDocument.hxx:87
@ MWAW_K_SPREADSHEET
spreadsheet
Definition: MWAWDocument.hxx:86
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:127
int m_headerHeight
the header height if known
Definition: GreatWksDocument.cxx:70
void addDelimiter(long pos, char c)
adds a not breaking delimiter in position pos
Definition: MWAWDebug.cxx:73
bool readWPSN(MWAWEntry const &entry)
read the windows positions ( WPSN resource block )
Definition: GreatWksDocument.cxx:223
libmwaw::DebugFile & rsrcAscii()
a DebugFile used to write what we recognize when we parse the document in rsrc
Definition: GreatWksDocument.cxx:99
@ F_Operator
Definition: MWAWCell.hxx:360
bool readPrintInfo(MWAWEntry const &entry)
read a PrintInfo block ( PRNT resource block )
Definition: GreatWksDocument.cxx:279
bool readFormula(MWAWVec2i const &cPos, long endPos, std::vector< MWAWCellContent::FormulaInstruction > &formula, std::string &error)
read to read a formula
Definition: GreatWksDocument.cxx:625
bool readNxEd(MWAWEntry const &entry)
read a unknown zone ( NxED resource block: v2 )
Definition: GreatWksDocument.cxx:442
MWAWSection(MWAWParser::* GetMainSection)() const
callback used to return the main section
Definition: GreatWksDocument.hxx:171
Definition: GreatWksDocument.cxx:596
small class use to define a formula instruction
Definition: MWAWCell.hxx:359
void setMarginBottom(const double marginBottom)
set the page bottom margin
Definition: MWAWPageSpan.hxx:202
@ MWAW_T_GREATWORKS
GreatWorks (v1-v2): export text, drawing, paint and spreadsheet document.
Definition: MWAWDocument.hxx:116
the class to store a color
Definition: libmwaw_internal.hxx:182
the main class to read a GreatWorks text file
Definition: GreatWksParser.hxx:57
MWAWSection getMainSection() const
return the main section
Definition: GreatWksDocument.cxx:107
shared_ptr< GreatWksText > getTextParser()
returns the text parser
Definition: GreatWksDocument.hxx:86
GetMainSection m_getMainSection
the getMainSection callback
Definition: GreatWksDocument.hxx:176
@ MWAW_K_DRAW
vectorized grphic
Definition: MWAWDocument.hxx:83
int m_numPages
the number of page of the final document
Definition: GreatWksDocument.cxx:68
void setMarginLeft(const double marginLeft)
set the page left margin
Definition: MWAWPageSpan.hxx:187
@ F_Function
Definition: MWAWCell.hxx:360
the main class to read a GreatWorks database file
Definition: GreatWksDBParser.hxx:62
the AppleŠ printer information : TPrint
Definition: MWAWPrinter.hxx:82
void setParsed(bool ok=true) const
sets the flag m_parsed to true or false
Definition: MWAWEntry.hxx:115
void addNote(char const *note)
adds a note in the file, in actual position
Definition: MWAWDebug.cxx:59
void(MWAWParser::* NewPage)(int page)
callback used to send a page break
Definition: GreatWksDocument.hxx:173
std::string m_content
the content ( if type == F_Operator or type = F_Function or type==F_Text)
Definition: MWAWCell.hxx:376
shared_ptr< GreatWksText > m_textParser
the text document
Definition: GreatWksDocument.hxx:168
bool readARRs(MWAWEntry const &entry)
read a unknown zone ( ARRs resource block: v2 )
Definition: GreatWksDocument.cxx:333
shared_ptr< GreatWksDocumentInternal::State > m_state
the state
Definition: GreatWksDocument.hxx:157
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
bool readDaHS(MWAWEntry const &entry)
read a unknown zone ( DaHS resource block: v2 )
Definition: GreatWksDocument.cxx:360
void setFormLength(const double formLength)
set the total page length
Definition: MWAWPageSpan.hxx:172
@ F_Text
Definition: MWAWCell.hxx:360
Internal: the state of a GreatWksDocument.
Definition: GreatWksDocument.cxx:62
GreatWksDocument(MWAWParser &parser)
constructor
Definition: GreatWksDocument.cxx:79
T y() const
second element
Definition: libmwaw_internal.hxx:620
MWAWRSRCParserPtr & getRSRCParser()
returns the rsrc parser
Definition: MWAWParser.hxx:190
void setFormWidth(const double formWidth)
set the total page width
Definition: MWAWPageSpan.hxx:177
@ MWAW_K_TEXT
word processing file
Definition: MWAWDocument.hxx:82
Type m_type
the type
Definition: MWAWCell.hxx:374
T x() const
first element
Definition: libmwaw_internal.hxx:615
void newPage(int page)
send a page break
Definition: GreatWksDocument.cxx:116
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:265
bool readNumber(long endPos, double &res, bool &isNan)
try to read a number
Definition: GreatWksDocument.cxx:583
the main class to read the text part of GreatWorks Text file
Definition: GreatWksText.hxx:63
long length() const
returns the length of the zone
Definition: MWAWEntry.hxx:82
bool sendPicture(MWAWEntry const &entry, MWAWPosition pos)
send a picture
Definition: GreatWksDocument.cxx:150
a class which stores section properties
Definition: MWAWSection.hxx:46
long begin() const
returns the begin offset
Definition: MWAWEntry.hxx:72
MWAWPageSpan const & getPageSpan() const
returns the actual page dimension
Definition: MWAWParser.hxx:160
GreatWksDocument & operator=(GreatWksDocument const &orig)
GreatWksDocument(GreatWksDocument const &orig)
double m_longValue
value ( if type==F_Long )
Definition: MWAWCell.hxx:378
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
double m_doubleValue
value ( if type==F_Double )
Definition: MWAWCell.hxx:380
bool readGrDS(MWAWEntry const &entry)
read a unknown zone ( GrDS resource block: v2 )
Definition: GreatWksDocument.cxx:401
@ F_Cell
Definition: MWAWCell.hxx:360
MWAWParser * m_parser
the main parser
Definition: GreatWksDocument.hxx:164
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
Internal: the structures of a GreatWksDocument.
Definition: GreatWksDocument.cxx:58
@ F_Long
Definition: MWAWCell.hxx:360
MWAWParser & getMainParser()
returns the main parser
Definition: GreatWksDocument.hxx:76
shared_ptr< GreatWksGraph > getGraphParser()
returns the graph parser
Definition: GreatWksDocument.hxx:81
int m_actPage
the actual page
Definition: GreatWksDocument.cxx:68
the main class to read/store generic data of a GreatWorks document
Definition: GreatWksDocument.hxx:61
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
the main class to read a GreatWorks graphic file
Definition: GreatWksDRParser.hxx:56
bool readString(long endPos, std::string &res)
try to read a string
Definition: GreatWksDocument.cxx:568
@ F_Double
Definition: MWAWCell.hxx:360
shared_ptr< MWAWParserState > m_parserState
the parser state
Definition: GreatWksDocument.hxx:160
MWAWVec2i m_position[2]
cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:382
bool readCellInFormula(MWAWVec2i const &pos, MWAWCellContent::FormulaInstruction &instr)
reads a cell
Definition: GreatWksDocument.cxx:539
State()
constructor
Definition: GreatWksDocument.cxx:64
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:192
bool valid() const
returns true if the zone length is positive
Definition: MWAWEntry.hxx:88
shared_ptr< GreatWksGraph > m_graphParser
the graph document
Definition: GreatWksDocument.hxx:166
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: GreatWksDocument.cxx:474
int m_footerHeight
the footer height if known
Definition: GreatWksDocument.cxx:71
an interface used to insert comment in a binary file, written in ascii form (if debug_with_files is n...
Definition: MWAWDebug.hxx:66
MWAWVec2b m_positionRelative[2]
relative cell position ( if type==F_Cell or F_CellList )
Definition: MWAWCell.hxx:384
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
the main class to read the graphic part of a HanMac Word-J file
Definition: GreatWksGraph.hxx:76
static Functions const s_listFunctions[]
Definition: GreatWksDocument.cxx:601
char const * m_name
Definition: GreatWksDocument.cxx:597
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:779
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
int m_arity
Definition: GreatWksDocument.cxx:598
NewPage m_newPage
the new page callback
Definition: GreatWksDocument.hxx:178
MWAWInputStreamPtr rsrcInput()
return the input input
Definition: GreatWksDocument.cxx:94
virtual ~GreatWksDocument()
destructor
Definition: GreatWksDocument.cxx:90
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:59
bool readRSRCZones()
read the resource fork zone
Definition: GreatWksDocument.cxx:164
Generated on Wed Jun 17 2020 06:30:09 for libmwaw by
doxygen 1.8.18