2013-09-15 10:48:57 +00:00
|
|
|
#ifndef CSM_DOC_SAVING_H
|
|
|
|
#define CSM_DOC_SAVING_H
|
|
|
|
|
2013-09-27 09:36:06 +00:00
|
|
|
#include <boost/filesystem/path.hpp>
|
|
|
|
|
2014-05-12 08:32:57 +00:00
|
|
|
#include <components/to_utf8/to_utf8.hpp>
|
|
|
|
|
2013-09-15 10:48:57 +00:00
|
|
|
#include "operation.hpp"
|
|
|
|
#include "savingstate.hpp"
|
|
|
|
|
|
|
|
namespace CSMDoc
|
|
|
|
{
|
|
|
|
class Document;
|
|
|
|
|
|
|
|
class Saving : public Operation
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Document& mDocument;
|
|
|
|
SavingState mState;
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
2014-05-12 08:32:57 +00:00
|
|
|
Saving (Document& document, const boost::filesystem::path& projectPath,
|
|
|
|
ToUTF8::FromType encoding);
|
2013-09-15 10:48:57 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|