Ejemplo n.º 1
0
void KPrDocument::initEmpty()
{
    QString fileName(KStandardDirs::locate( "stage_template", "Screen/.source/emptyLandscape.otp", KGlobal::mainComponent()));
    setModified( true );
    bool ok = loadNativeFormat( fileName );
    if ( !ok ) {
        // use initEmpty from  kopageapp
        documentPart()->showLoadingErrorDialog();
        KoPADocument::initEmpty();
    }
    resetURL();
}
Ejemplo n.º 2
0
void KPrDocument::initEmpty()
{
    QString fileName(KStandardDirs::locate( "data", "stage/templates/Screen/.source/emptyLandscape.otp"));
    setModified( true );
    bool ok = loadNativeFormat( fileName );
    if ( !ok ) {
        // use initEmpty from  kopageapp
        showLoadingErrorDialog();
        KoPADocument::initEmpty();
    }
    resetURL();
}