#include "CAF_Study.h"
#include "CAF_Application.h"
+#include <TDocStd_Document.hxx>
+
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CAF_Operation::~CAF_Operation()
{
}
+
+Handle(TDocStd_Document) CAF_Operation::stdDoc() const
+{
+ Handle(TDocStd_Document) doc;
+ CAF_Study* s = ::qt_cast<CAF_Study*>( study() );
+ if ( s )
+ doc = s->stdDoc();
+ return doc;
+}
#include <qobject.h>
#include <qstring.h>
+#include <Standard.hxx>
+
class CAF_Study;
+class Handle(TDocStd_Document);
class CAF_EXPORT CAF_Operation : public SUIT_Operation
{
public:
CAF_Operation( SUIT_Application* );
virtual ~CAF_Operation();
+
+protected:
+ Handle(TDocStd_Document) stdDoc() const;
};
#endif