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