Scribus
Open source desktop publishing at your fingertips
LoremManager Class Reference

This module provides simple interface to the various Lorem Ipsum variants. Scribus LI are stored in the set of XML files. The file has followind structure: <?xml version="1.0" encoding="utf8"?> <lorem> <name>name to display</name> <author>person name</author> <url>web interface</url> <p>text</p> <p>...</p> </lorem> Files are in UTF8 encoding. More...

#include <loremipsum.h>

Inheritance diagram for LoremManager:
Collaboration diagram for LoremManager:

Public Member Functions

 LoremManager (ScribusDoc *doc, QWidget *parent=0)
 
void insertLoremIpsum (QString name, int paraCount, bool random=true)
 
QString loremIpsum ()
 Lorem Ipsum as QString.
 
int paragraphCount ()
 Count of the paragraphs selected in GUI.
 
QString getName ()
 Name of the Lorem Ipsum file including extension.
 
bool randomize ()
 Flag if use "random" paragraphs, taken from GUI.
 

Protected Slots

virtual void languageChange ()
 

Detailed Description

This module provides simple interface to the various Lorem Ipsum variants. Scribus LI are stored in the set of XML files. The file has followind structure: <?xml version="1.0" encoding="utf8"?> <lorem> <name>name to display</name> <author>person name</author> <url>web interface</url> <p>text</p> <p>...</p> </lorem> Files are in UTF8 encoding.

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

Constructor & Destructor Documentation

LoremManager::LoremManager ( ScribusDoc doc,
QWidget *  parent = 0 
)

Reads all XML files in cfg directory.

Member Function Documentation

void LoremManager::insertLoremIpsum ( QString  name,
int  paraCount,
bool  random = true 
)

Apply created LI into a frame

Parameters
namefilename of the selected LI
paraCountcount of the paragraphs

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