aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/document.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/document.h')
-rw-r--r--src/document.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/src/document.h b/src/document.h
index 3053ea9..81700b4 100644
--- a/src/document.h
+++ b/src/document.h
@@ -26,17 +26,13 @@
#include "interface.h"
#include "undo.h"
+namespace SciTECO {
+
/*
* Classes
*/
-/*
- * NOTE: The only reason this is called TECODocument
- * is to prevent a nameclash with Scintilla which
- * does not use a proper namespace for its public
- * symbols...
- */
-class TECODocument {
+class Document {
typedef const void *SciDoc;
SciDoc doc;
@@ -45,11 +41,11 @@ class TECODocument {
gint first_line, xoffset;
public:
- TECODocument() : doc(NULL)
+ Document() : doc(NULL)
{
reset();
}
- virtual ~TECODocument()
+ virtual ~Document()
{
if (is_initialized())
interface.ssm(SCI_RELEASEDOCUMENT, 0, (sptr_t)doc);
@@ -66,7 +62,7 @@ public:
void update(void);
inline void
- update(const TECODocument &from)
+ update(const Document &from)
{
anchor = from.anchor;
dot = from.dot;
@@ -89,7 +85,7 @@ public:
undo.push_var(xoffset);
}
- void exchange(TECODocument &other);
+ void exchange(Document &other);
inline void
undo_exchange(void)
{
@@ -98,4 +94,6 @@ public:
}
};
+} /* namespace SciTECO */
+
#endif