summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAniket Anvit <[email protected]>2014-06-23 19:00:50 +0530
committerAniket Anvit <[email protected]>2014-06-23 19:00:50 +0530
commit0c435f137bc147e37b9baf82101c05b4e58f5d9f (patch)
tree03494fa7d5a805ce260c48b9ea8d93ef91521bcc
parentafe969f714bf4317a47e9a133f02551195962a50 (diff)
Added support for Geogebra's circumcircular arc.
REVIEW: 118892
-rw-r--r--filters/geogebra-filter.cpp5
-rw-r--r--filters/geogebra.xsl5
2 files changed, 10 insertions, 0 deletions
diff --git a/filters/geogebra-filter.cpp b/filters/geogebra-filter.cpp
index 86a8887..d40f976 100644
--- a/filters/geogebra-filter.cpp
+++ b/filters/geogebra-filter.cpp
@@ -31,6 +31,7 @@
#include <objects/line_type.h>
#include <objects/circle_type.h>
#include <objects/conic_types.h>
+#include <objects/arc_type.h>
#include <KZip>
#include <KDebug>
@@ -258,6 +259,10 @@ void KigFilterGeogebra::startElement( const QXmlName& name )
{
m_currentObject = CircleBTPType::instance();
}
+ else if( name.localName( m_np ) == QLatin1String( "ArcBTPType" ) )
+ {
+ m_currentObject = ArcBTPType::instance();
+ }
else if( name.localName( m_np ) == QLatin1String( "ParabolaBDPType" ) )
{
m_currentObject = ParabolaBDPType::instance();
diff --git a/filters/geogebra.xsl b/filters/geogebra.xsl
index d4741e0..668d758 100644
--- a/filters/geogebra.xsl
+++ b/filters/geogebra.xsl
@@ -98,6 +98,11 @@
</xsl:when>
</xsl:choose>
</xsl:when>
+ <xsl:when test="(name(.) = 'command') and (./@name = 'CircumcircleArc')">
+ <xsl:call-template name="argsTemplate">
+ <xsl:with-param name="objectType" select="'ArcBTPType'"/>
+ </xsl:call-template>
+ </xsl:when>
<xsl:when test="(name(.) = 'command') and (./@name = 'Parabola')">
<xsl:call-template name="argsTemplate">
<xsl:with-param name="objectType" select="'ParabolaBDPType'"/>