From 6c1ad100eb501602b283abd688aa82516ac9ffed Mon Sep 17 00:00:00 2001 From: stv Date: Fri, 11 Nov 2005 09:51:02 +0000 Subject: [PATCH] no message --- src/CAF/CAF_Study.cxx | 10 ++++++++++ src/CAF/CAF_Study.h | 40 ++++++++++++++++++++-------------------- 2 files changed, 30 insertions(+), 20 deletions(-) diff --git a/src/CAF/CAF_Study.cxx b/src/CAF/CAF_Study.cxx index f35a76f0c..e9262e495 100755 --- a/src/CAF/CAF_Study.cxx +++ b/src/CAF/CAF_Study.cxx @@ -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() ) diff --git a/src/CAF/CAF_Study.h b/src/CAF/CAF_Study.h index b84f8e089..dc1f7fe5f 100755 --- a/src/CAF/CAF_Study.h +++ b/src/CAF/CAF_Study.h @@ -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; -- 2.39.2