Salome HOME
bos #29482 Export of colors and names to STEP.
[modules/shaper.git] / src / Model / Model_Document.cpp
index 3aa8452ece4844c1228abfeaef8d91b8140edc21..72b11c77e8565323ebe981df5148813a66346818 100644 (file)
 #include <OSD_Path.hxx>
 #include <OSD_Protection.hxx>
 
-#ifdef TINSPECTOR
-#include <CDF_Directory.hxx>
-#endif
-
 #include <UTL.hxx>
 
 #include <climits>
@@ -111,13 +107,10 @@ static const Standard_GUID kEXTERNAL_SHAPE_REF("9aa5dd14-6d34-4a8d-8786-05842fd7
 Model_Document::Model_Document(const int theID, const std::string theKind)
     : myID(theID),
       myKind(theKind),
-      myDoc(new TDocStd_Document("BinOcaf")),  // binary OCAF format
       myIsActive(false),
       myIsSetCurrentFeature(false)
 {
-#ifdef TINSPECTOR
-  ModelAPI_Session::get()->application()->NewDocument("BinOcaf", myDoc);
-#endif
+  Model_Application::getApplication()->NewDocument("BinOcaf", myDoc);
   myObjs = new Model_Objects(myDoc->Main());
   myDoc->SetUndoLimit(UNDO_LIMIT);
   myTransactionSave = 0;