r15967 by craig - #9517: Backport fix from #9406 commit 15785 related to render frame code
scribus-commit
scribus-commit at lists.scribus.net
Tue Nov 23 22:33:33 CET 2010
Author: craig
Date: Tue Nov 23 21:33:32 2010
New Revision: 15967
URL: http://scribus.info/websvn/listing.php?repname=Scribus&sc=1&rev=15967
Log:
#9517: Backport fix from #9406 commit 15785 related to render frame code
Modified:
branches/Version135/Scribus/scribus/pageitem_desaxe.cpp
Modified: branches/Version135/Scribus/scribus/pageitem_desaxe.cpp
URL: http://scribus.info/websvn/diff.php?repname=Scribus&rev=15967&path=/branches/Version135/Scribus/scribus/pageitem_desaxe.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/pageitem_desaxe.cpp (original)
+++ branches/Version135/Scribus/scribus/pageitem_desaxe.cpp Tue Nov 23 21:33:32 2010
@@ -548,6 +548,25 @@
struct LatexParams : public MakeAction<LatexParams_body>
{};
+class LatexParamsExtra_body : public Action_body
+{
+ void begin (const Xml_string& tagName, Xml_attr attr)
+ {
+ if (tagName=="property")
+ {
+ if (this->dig->top<PageItem>()->realItemType() == PageItem::LatexFrame)
+ {
+ PageItem_LatexFrame* obj = dynamic_cast<PageItem_LatexFrame *> (this->dig->top<PageItem>());
+ QString name = attr["name"];
+ QString value = attr["value"];
+ obj->editorProperties[name] = value;
+ }
+ }
+ }
+};
+
+class LatexParamsExtra : public MakeAction<LatexParamsExtra_body>
+{};
const Xml_string PageItem::saxxDefaultElem("item");
@@ -678,7 +697,11 @@
ruleset.addRule(itemPrefix, SetAttribute<PageItem,QString>( & PageItem::setFileIconRollover, "icon-rollover-file" ));
ruleset.addRule("latex-source", LatexSource());
ruleset.addRule(itemPrefix, LatexParams());
-
+ LatexParamsExtra laExtra;
+ Xml_string latexPrefixMG(Digester::concat(itemPrefix, "latex-source"));
+ ruleset.addRule(latexPrefixMG, laExtra);
+ ruleset.addRule(Digester::concat(latexPrefixMG, "property"), laExtra);
+
ruleset.addRule(itemPrefix, SetAttributeWithConversion<PageItem,QVector<double> >( & PageItem::setDashes, "line-dashes", &parseDoubleVector ));
ruleset.addRule(itemPrefix, SetAttributeWithConversion<PageItem,double>( & PageItem::setDashOffset, "line-dash-offset", &parseDouble ));
More information about the scribus-commit
mailing list