Scribus
Open source desktop publishing at your fingertips
LoremParser Class Reference

XML parser for Lorem Ipsum file. This helper class reads one file. More...

#include <loremipsum.h>

Public Member Functions

 LoremParser (QString filename)
 
QString createLorem (uint parCount, bool random=true)
 

Public Attributes

bool correct
 Is the LI correct?
 
QString name
 Name to display.
 
QString author
 Author of the LI.
 
QString url
 Website of the LI.
 
QStringList loremIpsum
 Paragraphs of the LI.
 

Detailed Description

XML parser for Lorem Ipsum file. This helper class reads one file.

Author
Petr Vanek petr@.nosp@m.yarp.nosp@m.en.cz

Constructor & Destructor Documentation

LoremParser::LoremParser ( QString  filename)

parse a XML file with given name

Parameters
filenamestring fith the file name with full/relative path

Member Function Documentation

QString LoremParser::createLorem ( uint  parCount,
bool  random = true 
)

Construct a LI

Parameters
parCountcount of the paragraphs

The documentation for this class was generated from the following files: