コード例 #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();
}
コード例 #2
0
KisResourceServerProvider* KisResourceServerProvider::instance()
{
    K_GLOBAL_STATIC(KisResourceServerProvider, s_instance);
    return s_instance;
}
コード例 #3
0
KoHistogramProducerFactoryRegistry* KoHistogramProducerFactoryRegistry::instance()
{
    K_GLOBAL_STATIC(KoHistogramProducerFactoryRegistry, s_instance);
    return s_instance;

}
コード例 #4
0
ファイル: archiveman.cpp プロジェクト: salt4pommes/kraft-4.2
ArchiveMan *ArchiveMan::self()
{
    K_GLOBAL_STATIC(ArchiveMan, mSelf);
    return mSelf;
}
コード例 #5
0
KisMathToolboxRegistry * KisMathToolboxRegistry::instance()
{
    K_GLOBAL_STATIC(KisMathToolboxRegistry, s_instance);
    return s_instance;
}
コード例 #6
0
ReportGenerator *ReportGenerator::self()
{
  K_GLOBAL_STATIC(ReportGenerator, mSelf);
  return mSelf;
}
コード例 #7
0
ファイル: materialsaverdb.cpp プロジェクト: KDE/kraft
MaterialSaverBase *MaterialSaverDB::self()
{
  K_GLOBAL_STATIC(MaterialSaverDB, mSelf);
  return mSelf;
}
コード例 #8
0
KoColorDisplayRendererInterface* KoDumbColorDisplayRenderer::instance()
{
    K_GLOBAL_STATIC(KoDumbColorDisplayRenderer, s_instance);
    return s_instance;
}
コード例 #9
0
ファイル: kraftdb.cpp プロジェクト: KDE/kraft
KraftDB *KraftDB::self()
{
    K_GLOBAL_STATIC(KraftDB, mSelf);
    return mSelf;
}
コード例 #10
0
KisOperationRegistry* KisOperationRegistry::instance()
{
    K_GLOBAL_STATIC(KisOperationRegistry, s_instance);
    return s_instance;
}