6 #include "SUIT_Study.h"
10 #include <TDocStd_Document.hxx>
11 #include <TDocStd_Application.hxx>
13 class CAF_Application;
16 #pragma warning ( disable: 4251 )
19 class CAF_EXPORT CAF_Study : public SUIT_Study
24 CAF_Study( SUIT_Application* theApp );
25 CAF_Study( SUIT_Application* theApp, Handle(TDocStd_Document)& aStdDoc );
28 virtual void createDocument();
29 virtual void closeDocument( bool = true );
30 virtual bool openDocument( const QString& );
32 virtual bool saveDocumentAs( const QString& );
35 bool isModified() const;
36 void doModified( bool = true );
44 QStringList undoNames() const;
45 QStringList redoNames() const;
47 Handle(TDocStd_Document) stdDoc() const;
50 Handle(TDocStd_Application) stdApp() const;
51 CAF_Application* cafApplication() const;
53 virtual bool openTransaction();
54 virtual bool abortTransaction();
55 virtual bool hasTransaction() const;
56 virtual bool commitTransaction( const QString& = QString::null );
58 virtual void setStdDoc( Handle(TDocStd_Document)& );
61 Handle(TDocStd_Document) myStdDoc;
64 friend class CAF_Operation;
68 #pragma warning ( default: 4251 )