1 // Scintilla source code edit control
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.
27 int xOffset
; ///< Horizontal scrolled amount in pixels
30 SpecialRepresentations reprs
;
32 SelectionPosition posDrag
;
33 Sci::Position braces
[2];
35 int highlightGuideColumn
;
37 bool primarySelection
;
39 enum IMEInteraction
{ imeWindowed
, imeInline
} imeInteraction
;
42 int foldDisplayTextStyle
;
43 UniqueString defaultFoldDisplayText
;
44 std::unique_ptr
<IContractionState
> pcs
;
47 Sci::Position hoverIndicatorPos
;
55 // Deleted so EditModel objects can not be copied.
56 EditModel(const EditModel
&) = delete;
57 EditModel(EditModel
&&) = delete;
58 EditModel
&operator=(const EditModel
&) = delete;
59 EditModel
&operator=(EditModel
&&) = delete;
61 virtual Sci::Line
TopLineOfMain() const = 0;
62 virtual Point
GetVisibleOriginInMain() const = 0;
63 virtual Sci::Line
LinesOnScreen() const = 0;
64 virtual Range
GetHotSpotRange() const noexcept
= 0;
65 void SetDefaultFoldDisplayText(const char *text
);
66 const char *GetDefaultFoldDisplayText() const noexcept
;
67 const char *GetFoldDisplayText(Sci::Line lineDoc
) const;