0031353: TDocStd_Application does not have api to set progress indicator
[occt.git] / src / XmlMDF / XmlMDF_TagSourceDriver.cxx
old mode 100755 (executable)
new mode 100644 (file)
index a9c375d..b6fda8c
@@ -1,20 +1,36 @@
-// File:      XmlMDF_TagSourceDriver.cxx
-// Created:   29.08.01 18:04:51
-// Author:    Julia DOROVSKIKH
-// Copyright: Open Cascade 2001
-// History:   AGV 150202: Changed prototype XmlObjMgt::SetStringValue()
+// Created on: 2001-08-29
+// Created by: Julia DOROVSKIKH
+// Copyright (c) 2001-2014 OPEN CASCADE SAS
+//
+// This file is part of Open CASCADE Technology software library.
+//
+// This library is free software; you can redistribute it and/or modify it under
+// the terms of the GNU Lesser General Public License version 2.1 as published
+// by the Free Software Foundation, with special exception defined in the file
+// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
+// distribution for complete text of the license and disclaimer of any warranty.
+//
+// Alternatively, this file may be used under the terms of Open CASCADE
+// commercial license or contractual agreement.
 
-#include <XmlMDF_TagSourceDriver.ixx>
-#include <XmlObjMgt.hxx>
+//AGV 150202: Changed prototype XmlObjMgt::SetStringValue()
+
+#include <Message_Messenger.hxx>
+#include <Standard_Type.hxx>
+#include <TDF_Attribute.hxx>
 #include <TDF_TagSource.hxx>
+#include <XmlMDF_TagSourceDriver.hxx>
+#include <XmlObjMgt.hxx>
+#include <XmlObjMgt_Persistent.hxx>
+
+IMPLEMENT_STANDARD_RTTIEXT(XmlMDF_TagSourceDriver,XmlMDF_ADriver)
 
 //=======================================================================
 //function : XmlMDF_TagSourceDriver
 //purpose  : Constructor
 //=======================================================================
-
 XmlMDF_TagSourceDriver::XmlMDF_TagSourceDriver
-                        (const Handle(CDM_MessageDriver)& theMsgDriver)
+                        (const Handle(Message_Messenger)& theMsgDriver)
       : XmlMDF_ADriver (theMsgDriver, NULL)
 {}
 
@@ -43,7 +59,7 @@ Standard_Boolean XmlMDF_TagSourceDriver::Paste
     TCollection_ExtendedString aMessageString =
       TCollection_ExtendedString ("Cannot retrieve TagSource attribute from \"")
         + aTagStr + "\"";
-    WriteMessage (aMessageString);
+    myMessageDriver->Send (aMessageString, Message_Fail);
     return Standard_False;
   }
 
@@ -51,7 +67,7 @@ Standard_Boolean XmlMDF_TagSourceDriver::Paste
     TCollection_ExtendedString aMessageString =
       TCollection_ExtendedString ("Invalid value of TagSource retrieved: ")
         + aTag;
-    WriteMessage (aMessageString);
+    myMessageDriver->Send (aMessageString, Message_Fail);
     return Standard_False;
   }