0028066: Samples - mfc ocaf sample could not read/save any document without environme...
[occt.git] / samples / mfc / standard / 06_Ocaf / src / TOcaf_Application.cxx
index 8ad4f83..26da435 100755 (executable)
 
 TOcaf_Application::TOcaf_Application()
 {
-       // Instanciate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
-       TFunction_DriverTable::Get()->AddDriver(TOcafFunction_BoxDriver::GetID(), 
-                                                                                       new TOcafFunction_BoxDriver());
-
-       // Instanciate a TOcafFunction_CylDriver and add it to the TFunction_DriverTable
-       TFunction_DriverTable::Get()->AddDriver(TOcafFunction_CylDriver::GetID(),
-                                                                                       new TOcafFunction_CylDriver());
-
-       // Instanciate a TOcafFunction_CutDriver and add it to the TFunction_DriverTable
-       Handle(TOcafFunction_CutDriver) myCutDriver = new TOcafFunction_CutDriver();
-       TFunction_DriverTable::Get()->AddDriver(TOcafFunction_CutDriver::GetID(), 
-                                                                                       new TOcafFunction_CutDriver());
-
-}
-
-
-//=======================================================================
-//function : Formats
-//purpose  : 
-//=======================================================================
-
-void TOcaf_Application::Formats(TColStd_SequenceOfExtendedString& Formats) 
-{
-  Formats.Append(TCollection_ExtendedString("BinOcaf"));
-  Formats.Append(TCollection_ExtendedString("XmlOcaf"));
+  // Instanciate a TOcafFunction_BoxDriver and add it to the TFunction_DriverTable
+  TFunction_DriverTable::Get()->AddDriver (TOcafFunction_BoxDriver::GetID(),
+                                           new TOcafFunction_BoxDriver());
+
+  // Instanciate a TOcafFunction_Cyl  Driver and add it to the TFunction_DriverTable
+  TFunction_DriverTable::Get()->AddDriver (TOcafFunction_CylDriver::GetID(),
+                                           new TOcafFunction_CylDriver());
+
+  // Instanciate a TOcafFunction_CutDriver and add it to the TFunction_DriverTable
+  Handle(TOcafFunction_CutDriver) myCutDriver = new TOcafFunction_CutDriver();
+  TFunction_DriverTable::Get()->AddDriver (TOcafFunction_CutDriver::GetID(),
+                                           new TOcafFunction_CutDriver());
 }
-
-
-//=======================================================================
-//function : ResourcesName
-//purpose  : 
-//=======================================================================
-
-Standard_CString TOcaf_Application::ResourcesName() 
-{
-  return Standard_CString ("Standard");
-}
-
-