/
DataList.h
53 lines (42 loc) · 1.51 KB
/
DataList.h
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*******************************************************************************
*
* Copyright (C) 2009, Alexander Stigsen, e-texteditor.com
*
* This software is licensed under the Open Company License as described
* in the file license.txt, which you should have received as part of this
* distribution. The terms are also available at http://opencompany.org/license.
*
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
* KIND, either express or implied.
*
******************************************************************************/
#ifndef __DATALIST_H__
#define __DATALIST_H__
#include "Catalyst.h"
// pre-declarations
class cDataList;
class DataList {
public:
DataList(const Catalyst& cat, const doc_id& di, const node_ref& headnode_id);
~DataList();
// Document
void Create();
// Property handling
bool HasProperty(const wxString& name) const;
void DeleteProperty(const wxString& name);
bool GetProperty(const wxString& name, bool& value) const;
bool GetProperty(const wxString& name, wxLongLong_t& value) const;
bool GetProperty(const wxString& name, wxString& value) const;
void SetProperty(const wxString& name, const bool value);
void SetProperty(const wxString& name, const wxLongLong_t value);
void SetProperty(const wxString& name, const wxString& value);
// Nodes
node_ref GetHeadnode() const;
void SetHeadnode(node_ref new_headnode);
// Consolidation
void Freeze();
node_ref Consolidate(const doc_id& di);
private:
cDataList* m_dl;
};
#endif // __CDATALIST_H__