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"
29 #include "SplitVector.h"
30 #include "Partitioning.h"
31 #include "RunStyles.h"
32 #include "ContractionState.h"
33 #include "CellBuffer.h"
35 #include "Indicator.h"
37 #include "LineMarker.h"
39 #include "ViewStyle.h"
40 #include "CharClassify.h"
41 #include "Decoration.h"
42 #include "CaseFolder.h"
44 #include "UniConversion.h"
45 #include "Selection.h"
46 #include "PositionCache.h"
47 #include "EditModel.h"
50 using namespace Scintilla
;
54 active(false), on(false), period(500) {}
56 EditModel::EditModel() {
59 trackLineWidth
= false;
60 posDrag
= SelectionPosition(invalidPosition
);
61 braces
[0] = invalidPosition
;
62 braces
[1] = invalidPosition
;
63 bracesMatchStyle
= STYLE_BRACEBAD
;
64 highlightGuideColumn
= 0;
65 primarySelection
= true;
66 imeInteraction
= imeWindowed
;
68 foldDisplayTextStyle
= SC_FOLDDISPLAYTEXT_HIDDEN
;
69 hotspot
= Range(invalidPosition
);
70 hoverIndicatorPos
= invalidPosition
;
71 wrapWidth
= LineLayout::wrapWidthInfinite
;
72 pdoc
= new Document();
76 EditModel::~EditModel() {