~ubuntu-branches/ubuntu/vivid/notecase/vivid

« back to all changes in this revision

Viewing changes to src/lib/NoteFormatIO.h

  • Committer: Bazaar Package Importer
  • Author(s): Vijay(Vijay)
  • Date: 2007-06-14 00:13:48 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20070614001348-z9e2vbgtenb9nhoo
Tags: 1.5.6-0ubuntu1
* New Upstream release 
*  The libgnomevfs2-dev is also added to Build-Depends 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
////////////////////////////////////////////////////////////////////////////
2
 
// NoteCase notes manager project <http://notecase.sf.net>
3
 
//
4
 
// This code is licensed under BSD license.See "license.txt" for more details.
5
 
//
6
 
// File: Abstract class for different document formats I/O
7
 
////////////////////////////////////////////////////////////////////////////
8
 
 
9
 
#ifndef NODEFORMATIO_H__
10
 
#define NODEFORMATIO_H__
11
 
 
12
 
#if _MSC_VER > 1000
13
 
#pragma once
14
 
#endif // _MSC_VER > 1000
15
 
 
16
 
//supported formats
17
 
#define FORMAT_NONE                     0
18
 
#define FORMAT_HTML                     1
19
 
#define FORMAT_HTML_ENC         2
20
 
#define FORMAT_GJOTS2           3
21
 
#define FORMAT_STICKY           4
22
 
 
23
 
#include "NoteDocument.h"
24
 
class NoteDocument;
25
 
 
26
 
class NoteFormatIO  
27
 
{
28
 
public:
29
 
        NoteFormatIO();
30
 
        virtual ~NoteFormatIO();
31
 
 
32
 
        virtual int  Load(const char *szFile, NoteDocument &doc) = 0;
33
 
        virtual bool Save(const char *szFile, NoteDocument &doc) = 0;
34
 
        virtual int  GetFormat() = 0;
35
 
 
36
 
protected:
37
 
        NoteDocument *m_objDoc;
38
 
};
39
 
 
40
 
#endif // NODEFORMATIO_H__