r18278 by fschmid - PUB-Importer: added support for text columns.

scribus-commit scribus-commit at lists.scribus.net
Wed May 1 18:42:42 UTC 2013


Author: fschmid
Date: Wed May  1 18:42:42 2013
New Revision: 18278

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18278
Log:
PUB-Importer: added support for text columns.

Modified:
    trunk/Scribus/scribus/plugins/import/pub/importpub.cpp

Modified: trunk/Scribus/scribus/plugins/import/pub/importpub.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18278&path=/trunk/Scribus/scribus/plugins/import/pub/importpub.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/pub/importpub.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/pub/importpub.cpp Wed May  1 18:42:42 2013
@@ -820,6 +820,10 @@
 			ite->setTextToFrameDistTop(propList["fo:padding-top"]->getDouble() * 72.0);
 		if (propList["fo:padding-bottom"])
 			ite->setTextToFrameDistBottom(propList["fo:padding-bottom"]->getDouble() * 72.0);
+		if (propList["fo:column-count"])
+			ite->setColumns(propList["fo:column-count"]->getInt());
+		if (propList["fo:padding-bottom"])
+			ite->setColumnGap(propList["fo:column-gap"]->getDouble() * 72.0);
 		ite->setFirstLineOffset(FLOPFontAscent);
 		actTextItem = ite;
 		QString pStyle = CommonStrings::DefaultParagraphStyle;




More information about the scribus-commit mailing list