#include "SalomeApp_Engine_i.hxx"
#include "SalomeApp_VisualState.h"
+#include <SALOMEDS_Study.hxx>
+
// temporary commented
//#include <OB_Browser.h>
return myStudyDS;
}
+/*!
+ Return instance of notebook
+*/
+SALOME::Notebook_ptr SalomeApp_Study::notebook() const
+{
+ SALOME::Notebook_var aRes;
+ SALOMEDS_Study* aStudy = dynamic_cast<SALOMEDS_Study*>( myStudyDS.operator->() );
+ if( aStudy )
+ aRes = aStudy->GetStudy()->GetNotebook();
+
+ return aRes._retn();
+}
+
/*!
Create document.
*/
#define SALOMEAPP_STUDY_H
#include "SalomeApp.h"
-
#include <LightApp_Study.h>
+#include CORBA_CLIENT_HEADER( SALOME_Notebook )
#ifdef WIN32
#pragma warning( disable:4251 )
virtual void restoreState(int savePoint);
void markAsSavedIn(QString theFileName);
+ SALOME::Notebook_ptr notebook() const;
+
protected:
virtual void saveModuleData ( QString theModuleName, QStringList theListOfFiles );
virtual void openModuleData ( QString theModuleName, QStringList& theListOfFiles );