Exemplo n.º 1
0
KPrDocument::KPrDocument(KoPart *part)
: KoPADocument(part)
, m_customSlideShows(new KPrCustomSlideShows())
, m_presentationMonitor( 0 )
, m_presenterViewEnabled( false )
, m_declarations( new KPrDeclarations() )
{
    K_GLOBAL_STATIC( InitOnce, s_initOnce );
    InitOnce * initOnce = s_initOnce;
    // have this is as otherwise we get a warning from the compiler
    // the variable is used and the way it is done is to only call it once
    Q_UNUSED( initOnce );

    KoShapeLoadingContext::addAdditionalAttributeData( KoShapeLoadingContext::AdditionalAttributeData(
                                                       KoXmlNS::presentation, "placeholder",
                                                       "presentation:placeholder" ) );

    KoShapeLoadingContext::addAdditionalAttributeData( KoShapeLoadingContext::AdditionalAttributeData(
                                                       KoXmlNS::presentation, "class",
                                                       "presentation:class" ) );

    QVariant variant;
    variant.setValue(new KPrSoundCollection(this));
    resourceManager()->setResource(KPresenter::SoundCollection, variant);

    variant.setValue(new KPrPageLayouts(this));
    resourceManager()->setResource(KPresenter::PageLayouts, variant);

    loadKPrConfig();
}
Exemplo n.º 2
0
KisResourceServerProvider* KisResourceServerProvider::instance()
{
    K_GLOBAL_STATIC(KisResourceServerProvider, s_instance);
    return s_instance;
}
Exemplo n.º 3
0
KoHistogramProducerFactoryRegistry* KoHistogramProducerFactoryRegistry::instance()
{
    K_GLOBAL_STATIC(KoHistogramProducerFactoryRegistry, s_instance);
    return s_instance;

}
Exemplo n.º 4
0
ArchiveMan *ArchiveMan::self()
{
    K_GLOBAL_STATIC(ArchiveMan, mSelf);
    return mSelf;
}
Exemplo n.º 5
0
KisMathToolboxRegistry * KisMathToolboxRegistry::instance()
{
    K_GLOBAL_STATIC(KisMathToolboxRegistry, s_instance);
    return s_instance;
}
Exemplo n.º 6
0
ReportGenerator *ReportGenerator::self()
{
  K_GLOBAL_STATIC(ReportGenerator, mSelf);
  return mSelf;
}
Exemplo n.º 7
0
MaterialSaverBase *MaterialSaverDB::self()
{
  K_GLOBAL_STATIC(MaterialSaverDB, mSelf);
  return mSelf;
}
Exemplo n.º 8
0
KoColorDisplayRendererInterface* KoDumbColorDisplayRenderer::instance()
{
    K_GLOBAL_STATIC(KoDumbColorDisplayRenderer, s_instance);
    return s_instance;
}
Exemplo n.º 9
0
KraftDB *KraftDB::self()
{
    K_GLOBAL_STATIC(KraftDB, mSelf);
    return mSelf;
}
KisOperationRegistry* KisOperationRegistry::instance()
{
    K_GLOBAL_STATIC(KisOperationRegistry, s_instance);
    return s_instance;
}