forked from bruderstein/PythonScript
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathNotepadPlusBuffer.h
More file actions
37 lines (29 loc) · 654 Bytes
/
NotepadPlusBuffer.h
File metadata and controls
37 lines (29 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef _NOTEPADPLUSBUFFER_H
#define _NOTEPADPLUSBUFFER_H
enum DOCUMENTSTATUS
{
DOCSTA_SAVED,
DOCSTA_UNSAVED,
DOCSTA_READONLY
};
class NotepadPlusBuffer
{
public:
NotepadPlusBuffer();
NotepadPlusBuffer(const TCHAR *filename);
NotepadPlusBuffer(intptr_t bufferID);
intptr_t getBufferID();
void setBufferID(intptr_t bufferID);
tstring& getFilename();
void setFilename(const TCHAR *filename);
DOCUMENTSTATUS getStatus();
void setStatus(DOCUMENTSTATUS status);
int getView();
void setView(int view);
private:
int m_view;
intptr_t m_bufferID;
tstring m_filename;
DOCUMENTSTATUS m_status;
};
#endif