return Handle(CDF_Application)::DownCast(Plugin::Load(aGUID));
}
+//=======================================================================
+//function : NewDocument
+//purpose :
+//=======================================================================
+
+void CDF_Application::NewDocument(const TCollection_ExtendedString& /*theFormat*/, Handle(CDM_Document)& /*theDoc*/)
+{
+}
+
+//=======================================================================
+//function : InitDocument
+//purpose : do nothing
+//=======================================================================
+
+void CDF_Application::InitDocument(const Handle(CDM_Document)& /*theDoc*/) const
+{
+}
+
//=======================================================================
//function : Open
//purpose :
theDocument->RemoveAllReferences();
}
else
- theDocument=theReader->CreateDocument();
+ NewDocument(aFormat, theDocument);
SetReferenceCounter(theDocument,PCDM_RetrievalDriver::ReferenceCounter(aMetaData->FileName(), MessageDriver()));
Handle(PCDM_Reader) aReader = ReaderFromFormat (aFormat);
// 2. create document with the detected reader
- aDoc = aReader->CreateDocument();
+ NewDocument(aFormat, aDoc);
// 3. read the content of theIStream to aDoc
try