Scribus
Open source desktop publishing at your fingertips
|
Public Member Functions | |
bool | run (const QString &target, ScribusDoc *doc=0) |
Public Attributes | |
QString | desmapPath |
QString | fontPath |
QString | stylePath |
QString | graphicPath |
QString | preferPath |
QString | mspreadPath |
bool ImportIdmlImpl::run | ( | const QString & | target, |
ScribusDoc * | doc = 0 |
||
) |
Here, first we parse the idml document, in the order designmap.xml,preferences.xml, fonts.xml, styles.xml, gradiant.xml, all the stories will be transformed into Story Objects, and finally all the master spreads and spreads. We set the document page width, height etc from preferences.xml, styles are defined and added into the list.
QMap are maintained with QString, Object for each item which is referred later in the document using the self attribute. This includes all styles, stories etc.