Salome HOME
refs #1327: implementation of the scaling operations
[modules/hydro.git] / src / HYDROGUI / HYDROGUI_ExportFileOp.cxx
index 76cbf0dc732f91e297675c0ba3a0890dd2b056be..cf1565cfff4ba533c3a6ba2b6b764feaaa316b4c 100644 (file)
@@ -48,9 +48,9 @@
 #include <TopoDS_Edge.hxx>
 #include <BRep_Tool.hxx>
 #include <Precision.hxx>
-#include <Handle_Geom_Curve.hxx>
-#include <Handle_Geom_Line.hxx>
-#include <Handle_Geom_TrimmedCurve.hxx>
+#include <Geom_Curve.hxx>
+#include <Geom_Line.hxx>
+#include <Geom_TrimmedCurve.hxx>
 #include <Geom_TrimmedCurve.hxx>
 #include <HYDROData_ShapeFile.h>
 #include <SUIT_Desktop.h>
@@ -78,8 +78,8 @@ void HYDROGUI_ExportFileOp::startOperation()
   
   Handle(HYDROData_PolylineXY) aPolyXY;
   Handle(HYDROData_Polyline3D) aPoly3D;
-  NCollection_Sequence<Handle_HYDROData_PolylineXY> aPolyXYSeq;
-  NCollection_Sequence<Handle_HYDROData_Polyline3D> aPoly3DSeq;
+  NCollection_Sequence<Handle(HYDROData_PolylineXY)> aPolyXYSeq;
+  NCollection_Sequence<Handle(HYDROData_Polyline3D)> aPoly3DSeq;
   //
   HYDROData_SequenceOfObjects aSeq = HYDROGUI_Tool::GetSelectedObjects( module() );
   for( int anIndex = 1, aLength = aSeq.Length(); anIndex <= aLength; anIndex++ )
@@ -107,7 +107,7 @@ void HYDROGUI_ExportFileOp::startOperation()
     {
       QStringList aNonExpList;
       HYDROData_ShapeFile anExporter;
-      Handle_HYDROData_Document aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
+      Handle(HYDROData_Document) aDoc = HYDROData_Document::Document( application()->activeStudy()->id() );
       if (!aPolyXYSeq.IsEmpty() || !aPolyXYSeq.IsEmpty())
         //Export polylines
         anExporter.Export(aDoc, aFileName, aPolyXYSeq, aPoly3DSeq, aNonExpList);
@@ -134,7 +134,7 @@ void HYDROGUI_ExportFileOp::startOperation()
         QStringList SortedListOfAttr = anAttrNames.toList();
         SortedListOfAttr.sort();
         //
-        Handle_HYDROData_LandCoverMap aLCM = Handle(HYDROData_LandCoverMap)::DownCast( aSeq(1) );
+        Handle(HYDROData_LandCoverMap) aLCM = Handle(HYDROData_LandCoverMap)::DownCast( aSeq(1) );
         bool IsLinear = aLCM->CheckLinear();
         HYDROGUI_ExportLandCoverMapDlg aDlg( module()->getApp()->desktop(), IsLinear, SortedListOfAttr);
         if ( aDlg.exec() == HYDROGUI_ExportLandCoverMapDlg::Accepted )