Salome HOME
no message
authorstv <stv@opencascade.com>
Fri, 11 Nov 2005 09:51:02 +0000 (09:51 +0000)
committerstv <stv@opencascade.com>
Fri, 11 Nov 2005 09:51:02 +0000 (09:51 +0000)
src/CAF/CAF_Study.cxx
src/CAF/CAF_Study.h

index f35a76f0cb99de05193f343c8ad0c2372ec98819..e9262e4951fe022f7d9716fe47c34e485e02f80f 100755 (executable)
@@ -31,6 +31,16 @@ CAF_Study::~CAF_Study()
 {
 }
 
+Handle(TDocStd_Document) CAF_Study::stdDocument() const
+{
+  return myStdDoc;
+}
+
+void CAF_Study::setStdDocument( Handle(TDocStd_Document)& aStdDoc )
+{
+  myStdDoc = aStdDoc;
+}
+
 bool CAF_Study::startOperation()
 {
        if ( myStdDoc.IsNull() )
index b84f8e089d70030e45bc91e486f5a7e5cf3de5b7..dc1f7fe5fdfa4ed7f53777ad7ea416bb99c73a01 100755 (executable)
@@ -20,28 +20,28 @@ class CAF_EXPORT CAF_Study : public SUIT_Study
 
 public:
        CAF_Study( SUIT_Application* theApp );
-       CAF_Study( SUIT_Application* theApp, Handle (TDocStd_Document)& aStdDoc );
+       CAF_Study( SUIT_Application* theApp, Handle(TDocStd_Document)& aStdDoc );
        virtual ~CAF_Study();
 
-       virtual bool startOperation();
-       virtual void abortOperation();
-       virtual void commitOperation();
-
-       bool         isSaved() const;
-       bool         isModified() const;
-       void         doModified( bool undoable = true);
-       void         undoModified();
-       void         clearModified();
-
-  bool         undo();
-       bool         redo();
-       bool         canUndo() const;
-       bool         canRedo() const;
-       QStringList  undoNames() const;
-       QStringList  redoNames() const;
-
-  void         setStdDocument( Handle(TDocStd_Document)& aStdDoc ) { myStdDoc = aStdDoc; }
-  Handle(TDocStd_Document) getStdDocument() { return myStdDoc; }
+       virtual bool             startOperation();
+       virtual void             abortOperation();
+       virtual void             commitOperation();
+
+       bool                     isSaved() const;
+       bool                     isModified() const;
+       void                     doModified( bool undoable = true);
+       void                     undoModified();
+       void                     clearModified();
+
+  bool                     undo();
+       bool                     redo();
+       bool                     canUndo() const;
+       bool                     canRedo() const;
+       QStringList              undoNames() const;
+       QStringList              redoNames() const;
+
+  Handle(TDocStd_Document) stdDocument() const;
+  void                     setStdDocument( Handle(TDocStd_Document)& );
 
 protected:
        Handle(TDocStd_Document) myStdDoc;