1 // Scintilla source code edit control
2 /** @file EditModel.cxx
3 ** Defines the editor state that must be visible to EditorView.
5 // Copyright 1998-2014 by Neil Hodgson <neilh@scintilla.org>
6 // The License.txt file describes the conditions under which this software may be distributed.
24 #include "Scintilla.h"
26 #include "StringCopy.h"
27 #include "SplitVector.h"
28 #include "Partitioning.h"
29 #include "RunStyles.h"
30 #include "ContractionState.h"
31 #include "CellBuffer.h"
33 #include "Indicator.h"
35 #include "LineMarker.h"
37 #include "ViewStyle.h"
38 #include "CharClassify.h"
39 #include "Decoration.h"
40 #include "CaseFolder.h"
42 #include "UniConversion.h"
43 #include "Selection.h"
44 #include "PositionCache.h"
45 #include "EditModel.h"
48 using namespace Scintilla
;
52 active(false), on(false), period(500) {}
54 EditModel::EditModel() {
57 trackLineWidth
= false;
58 posDrag
= SelectionPosition(invalidPosition
);
59 braces
[0] = invalidPosition
;
60 braces
[1] = invalidPosition
;
61 bracesMatchStyle
= STYLE_BRACEBAD
;
62 highlightGuideColumn
= 0;
63 primarySelection
= true;
65 hotspot
= Range(invalidPosition
);
66 wrapWidth
= LineLayout::wrapWidthInfinite
;
67 pdoc
= new Document();
71 EditModel::~EditModel() {