2013-09-15 10:48:57 +00:00
|
|
|
|
|
|
|
#include "saving.hpp"
|
|
|
|
|
|
|
|
#include "state.hpp"
|
|
|
|
|
|
|
|
#include "savingstages.hpp"
|
|
|
|
|
|
|
|
CSMDoc::Saving::Saving (Document& document)
|
|
|
|
: Operation (State_Saving, true, true), mDocument (document), mState (*this)
|
|
|
|
{
|
2013-09-15 13:00:41 +00:00
|
|
|
appendStage (new OpenSaveStage (mDocument, mState));
|
2013-09-15 10:48:57 +00:00
|
|
|
|
|
|
|
|
2013-09-15 13:00:41 +00:00
|
|
|
appendStage (new CloseSaveStage (mState));
|
|
|
|
|
2013-09-15 10:48:57 +00:00
|
|
|
appendStage (new FinalSavingStage (mDocument, mState));
|
|
|
|
}
|