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.
25 #include "Scintilla.h"
27 #include "StringCopy.h"
28 #include "SplitVector.h"
29 #include "Partitioning.h"
30 #include "RunStyles.h"
31 #include "ContractionState.h"
32 #include "CellBuffer.h"
34 #include "Indicator.h"
36 #include "LineMarker.h"
38 #include "ViewStyle.h"
39 #include "CharClassify.h"
40 #include "Decoration.h"
41 #include "CaseFolder.h"
43 #include "UniConversion.h"
44 #include "Selection.h"
45 #include "PositionCache.h"
46 #include "EditModel.h"
49 using namespace Scintilla
;
53 active(false), on(false), period(500) {}
55 EditModel::EditModel() {
58 trackLineWidth
= false;
59 posDrag
= SelectionPosition(invalidPosition
);
60 braces
[0] = invalidPosition
;
61 braces
[1] = invalidPosition
;
62 bracesMatchStyle
= STYLE_BRACEBAD
;
63 highlightGuideColumn
= 0;
64 primarySelection
= true;
65 imeInteraction
= imeWindowed
;
67 hotspot
= Range(invalidPosition
);
68 hoverIndicatorPos
= invalidPosition
;
69 wrapWidth
= LineLayout::wrapWidthInfinite
;
70 pdoc
= new Document();
74 EditModel::~EditModel() {