Ipelib
|
XML Parser for Ipe documents and style sheets. More...
#include <ipeiml.h>
Inherits ipe::XmlParser.
Inherited by PdfStreamParser, and PsStreamParser.
XML Parser for Ipe documents and style sheets.
A recursive descent parser for the XML streams.
After experimenting with various XML parsing frameworks, this turned out to work best for Ipe.
ImlParser::ImlParser | ( | DataSource & | source | ) | [explicit] |
int ImlParser::parseDocument | ( | Document & | doc | ) |
Read a complete document from IML stream.
Returns an error code.
parse an Object.
On calling, stream must be just past the tag.
StyleSheet * ImlParser::parseStyleSheet | ( | ) |
parse a complete style sheet.
On calling, stream must be before the 'ipestyle' tag. A <?xml> tag is allowed.
bool ImlParser::parseStyle | ( | StyleSheet & | sheet | ) |
Parse a style sheet.
On calling, stream must be just past the style tag.
Page * ImlParser::parsePageSelection | ( | ) |
parse an <ipepage> element (used on clipboard).
Buffer ImlParser::pdfStream | ( | int | objNum | ) | [virtual] |
XML contents can refer to data in PDF.
If the XML stream is embedded in a PDF file, XML contents can refer to PDF objects. A derived parser must implement this method to access PDF data.
It is assumed that PDF object objNum is a stream. Its contents (uncompressed!) is returned in a buffer.
bool ImlParser::parseBitmap | ( | ) |
Parse an Bitmap.
On calling, stream must be just past bitmap
.