// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _DDocStd_HeaderFile
#define _DDocStd_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <Standard_Boolean.hxx>
#include <Handle_TDocStd_Application.hxx>
#include <Standard_CString.hxx>
#include <Handle_TDocStd_Document.hxx>
#include <Handle_TDF_Attribute.hxx>
#include <Draw_Interpretor.hxx>
class TDocStd_Application;
class TDocStd_Document;
class TDF_Label;
class Standard_GUID;
class TDF_Attribute;
class DDocStd_DrawDocument;


//! This package   provides Draw services to test  CAF
//! standard documents (see TDocStd package)
//!
//! It provides :
//!
//! * Modification registration and Update management.
//!
//! * External references mechanism
//!
//! * UNDO/REDO
//!
//! * Document Creation, Save and Restore
class DDocStd 
{
public:

  DEFINE_STANDARD_ALLOC

  
  //! return the application of the session. False
  //! if there is noone current application.
  Standard_EXPORT static   Standard_Boolean Find (Handle(TDocStd_Application)& Appli, const Standard_Boolean Complain = Standard_True) ;
  
  Standard_EXPORT static   Standard_Boolean GetDocument (Standard_CString& Name, Handle(TDocStd_Document)& Doc, const Standard_Boolean Complain = Standard_True) ;
  
  Standard_EXPORT static   Standard_Boolean Find (const Handle(TDocStd_Document)& Document, const Standard_CString Entry, TDF_Label& Label, const Standard_Boolean Complain = Standard_True) ;
  
  Standard_EXPORT static   Standard_Boolean Find (const Handle(TDocStd_Document)& Document, const Standard_CString Entry, const Standard_GUID& ID, Handle(TDF_Attribute)& A, const Standard_Boolean Complain = Standard_True) ;
  
  Standard_EXPORT static   Draw_Interpretor& ReturnLabel (Draw_Interpretor& theCommands, const TDF_Label& L) ;
  
  Standard_EXPORT static   void AllCommands (Draw_Interpretor& theCommands) ;
  
  //! NewDocument, Open, SaveAs, Save
  Standard_EXPORT static   void ApplicationCommands (Draw_Interpretor& theCommands) ;
  
  //! Undo, Redo, SetModified, Propagate
  Standard_EXPORT static   void DocumentCommands (Draw_Interpretor& theCommands) ;
  
  //! Modified, Update
  Standard_EXPORT static   void ToolsCommands (Draw_Interpretor& theCommands) ;
  
  //! Create, Add, Remove, Open, Commit, Undo, Redo, SetNestedMode
  Standard_EXPORT static   void MTMCommands (Draw_Interpretor& theCommands) ;




protected:





private:




friend class DDocStd_DrawDocument;

};







#endif // _DDocStd_HeaderFile
