|
|
@ -265,7 +265,7 @@ UBDocumentProxy* UBPersistenceManager::createDocument(const QString& pGroupName, |
|
|
|
return doc; |
|
|
|
return doc; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
UBDocumentProxy* UBPersistenceManager::createDocumentFromDir(const QString& pDocumentDirectory, const QString& pGroupName, const QString& pName, bool withEmptyPage) |
|
|
|
UBDocumentProxy* UBPersistenceManager::createDocumentFromDir(const QString& pDocumentDirectory, const QString& pGroupName, const QString& pName, bool withEmptyPage, bool addTitlePage) |
|
|
|
{ |
|
|
|
{ |
|
|
|
checkIfDocumentRepositoryExists(); |
|
|
|
checkIfDocumentRepositoryExists(); |
|
|
|
|
|
|
|
|
|
|
@ -281,6 +281,7 @@ UBDocumentProxy* UBPersistenceManager::createDocumentFromDir(const QString& pDoc |
|
|
|
doc->setMetaData(UBSettings::documentName, pName); |
|
|
|
doc->setMetaData(UBSettings::documentName, pName); |
|
|
|
} |
|
|
|
} |
|
|
|
if(withEmptyPage) createDocumentSceneAt(doc, 0); |
|
|
|
if(withEmptyPage) createDocumentSceneAt(doc, 0); |
|
|
|
|
|
|
|
if(addTitlePage) persistDocumentScene(doc, mSceneCache.createScene(doc, 0, false), 0); |
|
|
|
|
|
|
|
|
|
|
|
QMap<QString, QVariant> metadatas = UBMetadataDcSubsetAdaptor::load(pDocumentDirectory); |
|
|
|
QMap<QString, QVariant> metadatas = UBMetadataDcSubsetAdaptor::load(pDocumentDirectory); |
|
|
|
|
|
|
|
|
|
|
|