0031353: TDocStd_Application does not have api to set progress indicator
[occt.git] / src / BinDrivers / BinDrivers_DocumentStorageDriver.cxx
index 3c1f9e5..799b1a8 100644 (file)
@@ -99,7 +99,8 @@ void BinDrivers_DocumentStorageDriver::SetWithTriangles (const Handle(Message_Me
 //=======================================================================
 void BinDrivers_DocumentStorageDriver::WriteShapeSection
                                (BinLDrivers_DocumentSection&   theSection,
-                                Standard_OStream&              theOS)
+                                Standard_OStream&              theOS,
+                                const Handle(Message_ProgressIndicator)& theProgress)
 {
   const Standard_Size aShapesSectionOffset = (Standard_Size) theOS.tellp();
   
@@ -110,7 +111,7 @@ void BinDrivers_DocumentStorageDriver::WriteShapeSection
       OCC_CATCH_SIGNALS
       Handle(BinMNaming_NamedShapeDriver) aNamedShapeDriver =
         Handle(BinMNaming_NamedShapeDriver)::DownCast (aDriver);
-      aNamedShapeDriver->WriteShapeSection (theOS);
+      aNamedShapeDriver->WriteShapeSection (theOS, theProgress);
     }
     catch(Standard_Failure const& anException) {
       TCollection_ExtendedString anErrorStr ("BinDrivers_DocumentStorageDriver, Shape Section :");