// 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 #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _Standard_Boolean_HeaderFile #include #endif #ifndef _Handle_TDocStd_Application_HeaderFile #include #endif #ifndef _Standard_CString_HeaderFile #include #endif #ifndef _Handle_TDocStd_Document_HeaderFile #include #endif #ifndef _Handle_TDF_Attribute_HeaderFile #include #endif class TDocStd_Application; class TDocStd_Document; class TDF_Label; class Standard_GUID; class TDF_Attribute; class Draw_Interpretor; 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: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } 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; }; // other Inline functions and methods (like "C++: function call" methods) #endif