summaryrefslogtreecommitdiffstats
path: root/kivio/kiviopart/kiviosdk/diapathparser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/kiviopart/kiviosdk/diapathparser.cpp')
-rw-r--r--kivio/kiviopart/kiviosdk/diapathparser.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/kivio/kiviopart/kiviosdk/diapathparser.cpp b/kivio/kiviopart/kiviosdk/diapathparser.cpp
index e071a8e6..1af85056 100644
--- a/kivio/kiviopart/kiviosdk/diapathparser.cpp
+++ b/kivio/kiviopart/kiviosdk/diapathparser.cpp
@@ -48,8 +48,8 @@ void DiaPointFinder::svgClosePath()
{
}
-DiaPathParser::DiaPathParser(TQDomDocument *doc, TQDomElement *shape, float xscale, float yscale, float lowestx, float lowesty) :
- SVGPathParser(), m_doc(doc), m_shape(shape),
+DiaPathParser::DiaPathParser(TQDomDocument *doc, TQDomElement *tqshape, float xscale, float yscale, float lowestx, float lowesty) :
+ SVGPathParser(), m_doc(doc), m_tqshape(tqshape),
m_xscale(xscale), m_yscale(yscale),
m_lowestx(lowestx), m_lowesty(lowesty)
{
@@ -72,12 +72,12 @@ void DiaPathParser::svgLineTo( double x1, double y1, bool )
TQDomElement kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x", TQString::number(diaPointToKivio(lastX,true) * m_xscale));
kivioPointElement.setAttribute("y", TQString::number(diaPointToKivio(lastY, false) * m_yscale));
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x", TQString::number(diaPointToKivio(currentX,true) * m_xscale));
kivioPointElement.setAttribute("y", TQString::number(diaPointToKivio(currentY, false) * m_yscale));
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
lastX = currentX;
lastY = currentY;
}
@@ -99,7 +99,7 @@ void DiaPathParser::svgCurveToCubic( double x1, double y1, double x2, double y2,
kivioPointElement.setAttribute("y",
TQString::number(diaPointToKivio(lastY, false) * m_yscale));
kivioPointElement.setAttribute("type", "bezier");
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x",
@@ -107,7 +107,7 @@ void DiaPathParser::svgCurveToCubic( double x1, double y1, double x2, double y2,
kivioPointElement.setAttribute("y",
TQString::number(diaPointToKivio(lastControlY, false) * m_yscale));
kivioPointElement.setAttribute("type", "bezier");
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x",
@@ -115,7 +115,7 @@ void DiaPathParser::svgCurveToCubic( double x1, double y1, double x2, double y2,
kivioPointElement.setAttribute("y",
TQString::number(diaPointToKivio(currentControlY, false) * m_yscale));
kivioPointElement.setAttribute("type", "bezier");
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
kivioPointElement = m_doc->createElement("KivioPoint");
kivioPointElement.setAttribute("x",
@@ -123,7 +123,7 @@ void DiaPathParser::svgCurveToCubic( double x1, double y1, double x2, double y2,
kivioPointElement.setAttribute("y",
TQString::number(diaPointToKivio(currentY, false) * m_yscale));
kivioPointElement.setAttribute("type", "bezier");
- m_shape->appendChild(kivioPointElement);
+ m_tqshape->appendChild(kivioPointElement);
lastX = currentX;
lastY = currentY;
}