1
////////////////////////////////////////////////////////////////////////////
2
// NoteCase notes manager project <http://notecase.sf.net>
4
// This code is licensed under BSD license.See "license.txt" for more details.
6
// File: Implements Blowfish encrypted NoteCase HTML format I/O
7
////////////////////////////////////////////////////////////////////////////
9
#ifndef FormatIOEncHTML_H__
10
#define FormatIOEncHTML_H__
14
#endif // _MSC_VER > 1000
16
#include "FormatIOHtml.h"
17
#include "types.h" //INT64
20
// encrypted HTML format support
23
class FormatIO_EncHTML : public FormatIO_HTML
27
virtual ~FormatIO_EncHTML();
29
virtual int Load(const char *szFile, NoteDocument &doc);
30
virtual int Save(const char *szFile, NoteDocument &doc);
31
virtual int GetFormat(){ return FORMAT_NOTECASE_HTML_ENC; };
33
void SetPassword(const char *szPass);
34
int Save(const char *szFile, NoteDocument &doc, bool bAppendMode);
35
void SetLoadEmbedded(INT64 nStart, INT64 nEnd){ m_nStartOffset = nStart; m_nEndOffset = nEnd; }
38
int m_nEncFormatVersion;
39
std::string m_strPass;
40
INT64 m_nOrigSize; //unencrypted file size
47
#endif // FORMATENCHTML_H__