|
|
@ -109,7 +109,7 @@ KigDocument* KigFilterDrgeo::load( const TQString& file )
|
|
|
|
"figures." ).arg( file ) );
|
|
|
|
"figures." ).arg( file ) );
|
|
|
|
else
|
|
|
|
else
|
|
|
|
warning( i18n( "There are no figures in Dr. Geo file \"%1\"." ).arg( file ) );
|
|
|
|
warning( i18n( "There are no figures in Dr. Geo file \"%1\"." ).arg( file ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
int nfig = figures.count();
|
|
|
|
int nfig = figures.count();
|
|
|
@ -335,7 +335,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( domelem.attribute( "type" ) == "Intersection" )
|
|
|
|
else if ( domelem.attribute( "type" ) == "Intersection" )
|
|
|
@ -371,7 +371,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
{
|
|
|
|
{
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains an intersection type, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains an intersection type, "
|
|
|
|
"which Kig does not currently support." ) );
|
|
|
|
"which Kig does not currently support." ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
oc = new ObjectTypeCalcer( type, args );
|
|
|
|
oc = new ObjectTypeCalcer( type, args );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -389,7 +389,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
@ -421,7 +421,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
oc = new ObjectTypeCalcer( type, parents );
|
|
|
|
oc = new ObjectTypeCalcer( type, parents );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -434,7 +434,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
oc = new ObjectTypeCalcer( type, parents );
|
|
|
|
oc = new ObjectTypeCalcer( type, parents );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -455,7 +455,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
oc = new ObjectTypeCalcer( type, parents );
|
|
|
|
oc = new ObjectTypeCalcer( type, parents );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -471,7 +471,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
oc = new ObjectTypeCalcer( type, parents );
|
|
|
|
oc = new ObjectTypeCalcer( type, parents );
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -492,7 +492,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
@ -620,7 +620,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
@ -638,7 +638,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
@ -679,7 +679,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else if ( domelem.tagName() == "locus" )
|
|
|
|
else if ( domelem.tagName() == "locus" )
|
|
|
@ -691,7 +691,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
#ifdef DRGEO_DEBUG
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
|
kdDebug() << "+++++++++ oc:" << oc << endl;
|
|
|
@ -711,7 +711,7 @@ KigDocument* KigFilterDrgeo::importFigure( TQDomNode f, const TQString& file, co
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
notSupported( file, i18n( "This Dr. Geo file contains a \"%1 %2\" object, "
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
"which Kig does not currently support." ).arg( domelem.tagName() ).arg(
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
domelem.attribute( "type" ) ) );
|
|
|
|
return false;
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
curid++;
|
|
|
|
curid++;
|
|
|
|
if ( oc == 0 )
|
|
|
|
if ( oc == 0 )
|
|
|
|