Salome HOME
83cd7b16f17ee2553f1ba74ecf3ce7c4efcc1770
[modules/gui.git] / src / CAF / CAF_Operation.cxx
1 #include "CAF_Operation.h"
2
3 #include "CAF_Study.h"
4 #include "CAF_Application.h"
5
6 #include <TDocStd_Document.hxx>
7
8 //////////////////////////////////////////////////////////////////////
9 // Construction/Destruction
10 //////////////////////////////////////////////////////////////////////
11
12 CAF_Operation::CAF_Operation(SUIT_Application* theApp)
13 :SUIT_Operation(theApp)
14 {
15 }
16
17 CAF_Operation::~CAF_Operation()
18 {
19 }
20
21 Handle(TDocStd_Document) CAF_Operation::stdDoc() const
22 {
23   Handle(TDocStd_Document) doc;
24   CAF_Study* s = ::qt_cast<CAF_Study*>( study() );
25   if ( s )
26     doc = s->stdDoc();
27   return doc;
28 }