Example #1
0
 InitOnce()
 {
     KoToolRegistry * toolRegistry = KoToolRegistry::instance();
     toolRegistry->add( new KPrPlaceholderToolFactory() );
     KoShapeRegistry * registry = KoShapeRegistry::instance();
     registry->addFactory( new KPrPlaceholderShapeFactory() );
 }
void SvgShapeFactory::addToRegistry()
{
    KoShapeRegistry *registry = KoShapeRegistry::instance();
    if (!registry->contains(QString(SVGSHAPEFACTORYID))) {
        registry->addFactory(new SvgShapeFactory);
    }
}