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(); }
KisResourceServerProvider* KisResourceServerProvider::instance() { K_GLOBAL_STATIC(KisResourceServerProvider, s_instance); return s_instance; }
KoHistogramProducerFactoryRegistry* KoHistogramProducerFactoryRegistry::instance() { K_GLOBAL_STATIC(KoHistogramProducerFactoryRegistry, s_instance); return s_instance; }
ArchiveMan *ArchiveMan::self() { K_GLOBAL_STATIC(ArchiveMan, mSelf); return mSelf; }
KisMathToolboxRegistry * KisMathToolboxRegistry::instance() { K_GLOBAL_STATIC(KisMathToolboxRegistry, s_instance); return s_instance; }
ReportGenerator *ReportGenerator::self() { K_GLOBAL_STATIC(ReportGenerator, mSelf); return mSelf; }
MaterialSaverBase *MaterialSaverDB::self() { K_GLOBAL_STATIC(MaterialSaverDB, mSelf); return mSelf; }
KoColorDisplayRendererInterface* KoDumbColorDisplayRenderer::instance() { K_GLOBAL_STATIC(KoDumbColorDisplayRenderer, s_instance); return s_instance; }
KraftDB *KraftDB::self() { K_GLOBAL_STATIC(KraftDB, mSelf); return mSelf; }
KisOperationRegistry* KisOperationRegistry::instance() { K_GLOBAL_STATIC(KisOperationRegistry, s_instance); return s_instance; }