34 #ifndef RAG_TIME_PARSER
35 # define RAG_TIME_PARSER
76 void parse(librevenge::RVNGTextInterface *documentInterface);
107 void createDocument(librevenge::RVNGTextInterface *documentInterface);
198 shared_ptr<RagTimeParserInternal::State>
m_state;
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:502
shared_ptr< RagTimeParserInternal::State > m_state
the state
Definition: RagTimeParser.hxx:198
bool getColor(int colId, MWAWColor &color, int listId=-1) const
returns the ith color ( if possible)
Definition: RagTimeParser.cxx:400
shared_ptr< RagTimeText > m_textParser
the text parser
Definition: RagTimeParser.hxx:202
int getNewZoneId()
returns a new unique zone id
Definition: RagTimeParser.cxx:425
bool readRsrcfppr(MWAWEntry &entry)
try to read the fppr zone (zone with id=0)
Definition: RagTimeParser.cxx:2160
RagTimeParser(MWAWInputStreamPtr input, MWAWRSRCParserPtr rsrcParser, MWAWHeader *header)
constructor
Definition: RagTimeParser.cxx:366
void init()
inits all internal variables
Definition: RagTimeParser.cxx:376
bool sendPicture(int zId, MWAWPosition const &pos)
sends the picture
Definition: RagTimeParser.cxx:2370
bool readColorTable(MWAWEntry &entry)
try to read the color table zone: CHTa zones
Definition: RagTimeParser.cxx:1811
bool findPagesZones()
try to sort the zone on each page
Definition: RagTimeParser.cxx:736
bool sendZones()
try to send the different zones
Definition: RagTimeParser.cxx:2557
void createDocument(librevenge::RVNGTextInterface *documentInterface)
creates the listener which will be associated to the document
Definition: RagTimeParser.cxx:498
Internal: the subdocument of a RagTimeParser.
Definition: RagTimeParser.cxx:310
bool sendBasicPicture(int zId, MWAWPosition const &pos)
sends a basic shape
Definition: RagTimeParser.cxx:2521
Internal: a picture of a RagTimeParser.
Definition: RagTimeParser.cxx:101
the main class to read the text part of ragTime file
Definition: RagTimeText.hxx:70
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
bool readRsrcSele(MWAWEntry &entry)
try to read the Sele zone (zone with id=0), maybe related to selection
Definition: RagTimeParser.cxx:2196
bool readRsrcFHwl(MWAWEntry &entry)
try to read the FHwl zone ( one by file with id=0), maybe width length?
Definition: RagTimeParser.cxx:2028
bool readLinks(MWAWEntry &entry)
try to read the File Link zone: FLink
Definition: RagTimeParser.cxx:1725
bool readColorsMap()
try to read the color map:v3
Definition: RagTimeParser.cxx:1400
void flushExtra()
flush unsent zone (debugging function)
Definition: RagTimeParser.cxx:2628
bool findRsrcZones()
try to create the resource zones list
Definition: RagTimeParser.cxx:1056
bool sendBitmap(RagTimeParserInternal::Picture const &pict, MWAWPosition const &pos)
sends a bitmap
Definition: RagTimeParser.cxx:2463
bool readFormatsMap()
try to read the format map:v3
Definition: RagTimeParser.cxx:1798
the class to store a color
Definition: libmwaw_internal.hxx:182
the main class to read a RagTime v2-3 file
Definition: RagTimeParser.hxx:60
bool readPictZone(MWAWEntry &entry)
try to read pictZone ( a big zone)
Definition: RagTimeParser.cxx:1160
void newPage(int number)
adds a new page
Definition: RagTimeParser.cxx:448
Class to store font.
Definition: MWAWFont.hxx:43
bool createZones()
finds the different objects zones
Definition: RagTimeParser.cxx:536
virtual ~RagTimeParser()
destructor
Definition: RagTimeParser.cxx:372
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:510
bool send(int zId)
try to send a zone
Definition: RagTimeParser.cxx:2564
bool readZone6(MWAWEntry &entry)
try to read zone6 ( a big zone)
Definition: RagTimeParser.cxx:1582
bool findDataZones()
try to create the main data zones list
Definition: RagTimeParser.cxx:683
the main class to read the spreadsheet part of ragTime file
Definition: RagTimeSpreadsheet.hxx:71
bool checkHeader(MWAWHeader *header, bool strict=false)
checks if the document header is correct (or not)
Definition: RagTimeParser.cxx:2291
bool readRsrcCalc(MWAWEntry &entry)
try to read the Calc zone (zone with id=0)
Definition: RagTimeParser.cxx:1985
virtual class which defines the ancestor of all text zone parser
Definition: MWAWParser.hxx:290
bool readRsrcBtch(MWAWEntry &entry)
try to read the Btch zone (zone with id=0)
Definition: RagTimeParser.cxx:2128
void parse(librevenge::RVNGTextInterface *documentInterface)
virtual function used to parse the input
Definition: RagTimeParser.cxx:464
bool readPrintInfo(MWAWEntry &entry, bool inRSRCFork=false)
read a printInfo block (a PREC rsrc)
Definition: RagTimeParser.cxx:1513
bool getDateTimeFormat(int dtId, std::string &dtFormat) const
returns the ith date format or ""
Definition: RagTimeParser.cxx:435
bool readTextZone(MWAWEntry &entry, int width, MWAWColor const &fontColor=MWAWColor::black())
try to read a text zone (knowing the zone width in point and the font color)
Definition: RagTimeParser.cxx:430
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:500
Internal: the structures of a RagTimeParser.
Definition: RagTimeParser.cxx:62
bool readRsrcStructured(MWAWEntry &entry)
try to read a structured zone
Definition: RagTimeParser.cxx:2241
bool readColorMapV2(MWAWEntry &entry)
try to read the color map:v2
Definition: RagTimeParser.cxx:1415
int getZoneDataFieldSize(int zId) const
returns the size of a zone data field
Definition: RagTimeParser.cxx:416
bool readMacroFormats(MWAWEntry &entry)
try to read the macro format zone: RTml zones
Definition: RagTimeParser.cxx:1918
bool readRsrcBeDc(MWAWEntry &entry)
try to read the BeDc zone ( zone of size 52, one by file with id=0);
Definition: RagTimeParser.cxx:2083
bool readDataZoneHeader(int id, long endPos)
try to read a data zone header
Definition: RagTimeParser.cxx:776
bool sendText(int zId, MWAWListenerPtr listener)
try to send the text zone (interface of RagTimeText)
Definition: RagTimeParser.cxx:440
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
int getFontId(int localId) const
returns a mac font id corresponding to a local id
Definition: RagTimeParser.cxx:390
bool getCharStyle(int charId, MWAWFont &font) const
returns font style corresponding to a char style id
Definition: RagTimeParser.cxx:395
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool readPageZone(MWAWEntry &entry)
try to read page zone ( unknown content of size 40).
Definition: RagTimeParser.cxx:1680
bool sendPageZone(int page)
try to send the different zones of a page
Definition: RagTimeParser.cxx:2547
bool readPictZoneV2(MWAWEntry &entry)
try to read pictZone ( a big zone):v2
Definition: RagTimeParser.cxx:1281
shared_ptr< RagTimeSpreadsheet > m_spreadsheetParser
the spreadsheet parser
Definition: RagTimeParser.hxx:200