geany
1.38
About: Geany is a text editor (using GTK2) with basic features of an integrated development environment (syntax highlighting, code folding, symbol name auto-completion, ...). F: office T: editor programming GTK+ IDE
![]() ![]() |
#include <Document.h>
Classes | |
struct | CharacterExtracted |
struct | WatcherWithUserData |
Used to pair watcher pointer with user data. More... | |
Public Member Functions | |
Document (int options) | |
Document (const Document &)=delete | |
Document (Document &&)=delete | |
void | operator= (const Document &)=delete |
Document & | operator= (Document &&)=delete |
~Document () override | |
int | AddRef () |
int SCI_METHOD | Release () override |
void | Init () override |
void | InsertLine (Sci::Line line) override |
void | InsertLines (Sci::Line line, Sci::Line lines) override |
void | RemoveLine (Sci::Line line) override |
int | LineEndTypesSupported () const |
bool | SetDBCSCodePage (int dbcsCodePage_) |
int | GetLineEndTypesAllowed () const noexcept |
bool | SetLineEndTypesAllowed (int lineEndBitSet_) |
int | GetLineEndTypesActive () const noexcept |
int SCI_METHOD | Version () const override |
void SCI_METHOD | SetErrorStatus (int status) override |
Sci_Position SCI_METHOD | LineFromPosition (Sci_Position pos) const override |
Sci::Line | SciLineFromPosition (Sci::Position pos) const noexcept |
Sci::Position | ClampPositionIntoDocument (Sci::Position pos) const noexcept |
bool | ContainsLineEnd (const char *s, Sci::Position length) const noexcept |
bool | IsCrLf (Sci::Position pos) const noexcept |
int | LenChar (Sci::Position pos) const noexcept |
bool | InGoodUTF8 (Sci::Position pos, Sci::Position &start, Sci::Position &end) const noexcept |
Sci::Position | MovePositionOutsideChar (Sci::Position pos, Sci::Position moveDir, bool checkLineEnd=true) const noexcept |
Sci::Position | NextPosition (Sci::Position pos, int moveDir) const noexcept |
bool | NextCharacter (Sci::Position &pos, int moveDir) const noexcept |
Document::CharacterExtracted | CharacterAfter (Sci::Position position) const noexcept |
Document::CharacterExtracted | CharacterBefore (Sci::Position position) const noexcept |
Sci_Position SCI_METHOD | GetRelativePosition (Sci_Position positionStart, Sci_Position characterOffset) const override |
Sci::Position | GetRelativePositionUTF16 (Sci::Position positionStart, Sci::Position characterOffset) const noexcept |
int SCI_METHOD | GetCharacterAndWidth (Sci_Position position, Sci_Position *pWidth) const override |
int SCI_METHOD | CodePage () const override |
bool SCI_METHOD | IsDBCSLeadByte (char ch) const override |
bool | IsDBCSLeadByteNoExcept (char ch) const noexcept |
bool | IsDBCSLeadByteInvalid (char ch) const noexcept |
bool | IsDBCSTrailByteInvalid (char ch) const noexcept |
int | DBCSDrawBytes (const char *text, int len) const noexcept |
int | SafeSegment (const char *text, int length, int lengthSegment) const noexcept |
EncodingFamily | CodePageFamily () const noexcept |
void | ModifiedAt (Sci::Position pos) noexcept |
void | CheckReadOnly () |
bool | DeleteChars (Sci::Position pos, Sci::Position len) |
Sci::Position | InsertString (Sci::Position position, const char *s, Sci::Position insertLength) |
Insert a string with a length. More... | |
void | ChangeInsertion (const char *s, Sci::Position length) |
int SCI_METHOD | AddData (const char *data, Sci_Position length) override |
void *SCI_METHOD | ConvertToDocument () override |
Sci::Position | Undo () |
Sci::Position | Redo () |
bool | CanUndo () const noexcept |
bool | CanRedo () const noexcept |
void | DeleteUndoHistory () |
bool | SetUndoCollection (bool collectUndo) |
bool | IsCollectingUndo () const noexcept |
void | BeginUndoAction () |
void | EndUndoAction () |
void | AddUndoAction (Sci::Position token, bool mayCoalesce) |
void | SetSavePoint () |
bool | IsSavePoint () const noexcept |
void | TentativeStart () |
void | TentativeCommit () |
void | TentativeUndo () |
bool | TentativeActive () const noexcept |
const char *SCI_METHOD | BufferPointer () override |
const char * | RangePointer (Sci::Position position, Sci::Position rangeLength) noexcept |
Sci::Position | GapPosition () const noexcept |
int SCI_METHOD | GetLineIndentation (Sci_Position line) override |
Sci::Position | SetLineIndentation (Sci::Line line, Sci::Position indent) |
Sci::Position | GetLineIndentPosition (Sci::Line line) const |
Sci::Position | GetColumn (Sci::Position pos) |
Sci::Position | CountCharacters (Sci::Position startPos, Sci::Position endPos) const noexcept |
Sci::Position | CountUTF16 (Sci::Position startPos, Sci::Position endPos) const noexcept |
Sci::Position | FindColumn (Sci::Line line, Sci::Position column) |
void | Indent (bool forwards, Sci::Line lineBottom, Sci::Line lineTop) |
void | ConvertLineEnds (int eolModeSet) |
void | SetReadOnly (bool set) |
bool | IsReadOnly () const noexcept |
bool | IsLarge () const noexcept |
int | Options () const noexcept |
void | DelChar (Sci::Position pos) |
void | DelCharBack (Sci::Position pos) |
char | CharAt (Sci::Position position) const noexcept |
void SCI_METHOD | GetCharRange (char *buffer, Sci_Position position, Sci_Position lengthRetrieve) const override |
char SCI_METHOD | StyleAt (Sci_Position position) const override |
int | StyleIndexAt (Sci_Position position) const noexcept |
void | GetStyleRange (unsigned char *buffer, Sci::Position position, Sci::Position lengthRetrieve) const |
int | GetMark (Sci::Line line) const noexcept |
Sci::Line | MarkerNext (Sci::Line lineStart, int mask) const noexcept |
int | AddMark (Sci::Line line, int markerNum) |
void | AddMarkSet (Sci::Line line, int valueSet) |
void | DeleteMark (Sci::Line line, int markerNum) |
void | DeleteMarkFromHandle (int markerHandle) |
void | DeleteAllMarks (int markerNum) |
Sci::Line | LineFromHandle (int markerHandle) const noexcept |
int | MarkerNumberFromLine (Sci::Line line, int which) const noexcept |
int | MarkerHandleFromLine (Sci::Line line, int which) const noexcept |
Sci_Position SCI_METHOD | LineStart (Sci_Position line) const override |
bool | IsLineStartPosition (Sci::Position position) const |
Sci_Position SCI_METHOD | LineEnd (Sci_Position line) const override |
Sci::Position | LineEndPosition (Sci::Position position) const |
bool | IsLineEndPosition (Sci::Position position) const |
bool | IsPositionInLineEnd (Sci::Position position) const |
Sci::Position | VCHomePosition (Sci::Position position) const |
Sci::Position | IndexLineStart (Sci::Line line, int lineCharacterIndex) const noexcept |
Sci::Line | LineFromPositionIndex (Sci::Position pos, int lineCharacterIndex) const noexcept |
int SCI_METHOD | SetLevel (Sci_Position line, int level) override |
int SCI_METHOD | GetLevel (Sci_Position line) const override |
void | ClearLevels () |
Sci::Line | GetLastChild (Sci::Line lineParent, int level=-1, Sci::Line lastLine=-1) |
Sci::Line | GetFoldParent (Sci::Line line) const |
void | GetHighlightDelimiters (HighlightDelimiter &highlightDelimiter, Sci::Line line, Sci::Line lastLine) |
Sci::Position | ExtendWordSelect (Sci::Position pos, int delta, bool onlyWordCharacters=false) const |
Used by commands that want to select whole words. More... | |
Sci::Position | NextWordStart (Sci::Position pos, int delta) const |
Find the start of the next word in either a forward (delta >= 0) or backwards direction (delta < 0). More... | |
Sci::Position | NextWordEnd (Sci::Position pos, int delta) const |
Find the end of the next word in either a forward (delta >= 0) or backwards direction (delta < 0). More... | |
Sci_Position SCI_METHOD | Length () const override |
Sci::Position | LengthNoExcept () const noexcept |
void | Allocate (Sci::Position newSize) |
CharacterExtracted | ExtractCharacter (Sci::Position position) const noexcept |
bool | IsWordStartAt (Sci::Position pos) const |
Check that the character at the given position is a word or punctuation character and that the previous character is of a different character class. More... | |
bool | IsWordEndAt (Sci::Position pos) const |
Check that the character at the given position is a word or punctuation character and that the next character is of a different character class. More... | |
bool | IsWordAt (Sci::Position start, Sci::Position end) const |
Check that the given range is has transitions between character classes at both ends and where the characters on the inside are word or punctuation characters. More... | |
bool | MatchesWordOptions (bool word, bool wordStart, Sci::Position pos, Sci::Position length) const |
bool | HasCaseFolder () const noexcept |
void | SetCaseFolder (CaseFolder *pcf_) noexcept |
Sci::Position | FindText (Sci::Position minPos, Sci::Position maxPos, const char *search, int flags, Sci::Position *length) |
Find text in document, supporting both forward and backward searches (just pass minPos > maxPos to do a backward search) Has not been tested with backwards DBCS searches yet. More... | |
const char * | SubstituteByPosition (const char *text, Sci::Position *length) |
int | LineCharacterIndex () const noexcept |
void | AllocateLineCharacterIndex (int lineCharacterIndex) |
void | ReleaseLineCharacterIndex (int lineCharacterIndex) |
Sci::Line | LinesTotal () const noexcept |
void | SetDefaultCharClasses (bool includeWordClass) |
void | SetCharClasses (const unsigned char *chars, CharClassify::cc newCharClass) |
int | GetCharsOfClass (CharClassify::cc characterClass, unsigned char *buffer) const |
void | SetCharacterCategoryOptimization (int countCharacters) |
int | CharacterCategoryOptimization () const noexcept |
void SCI_METHOD | StartStyling (Sci_Position position, char mask) override |
bool SCI_METHOD | SetStyleFor (Sci_Position length, char style) override |
bool SCI_METHOD | SetStyles (Sci_Position length, const char *styles) override |
Sci::Position | GetEndStyled () const noexcept |
void | EnsureStyledTo (Sci::Position pos) |
void | StyleToAdjustingLineDuration (Sci::Position pos) |
void | LexerChanged () |
int | GetStyleClock () const noexcept |
void | IncrementStyleClock () noexcept |
void SCI_METHOD | DecorationSetCurrentIndicator (int indicator) override |
void SCI_METHOD | DecorationFillRange (Sci_Position position, int value, Sci_Position fillLength) override |
LexInterface * | GetLexInterface () const noexcept |
void | SetLexInterface (std::unique_ptr< LexInterface > pLexInterface) noexcept |
int SCI_METHOD | SetLineState (Sci_Position line, int state) override |
int SCI_METHOD | GetLineState (Sci_Position line) const override |
Sci::Line | GetMaxLineState () const noexcept |
void SCI_METHOD | ChangeLexerState (Sci_Position start, Sci_Position end) override |
StyledText | MarginStyledText (Sci::Line line) const noexcept |
void | MarginSetStyle (Sci::Line line, int style) |
void | MarginSetStyles (Sci::Line line, const unsigned char *styles) |
void | MarginSetText (Sci::Line line, const char *text) |
void | MarginClearAll () |
StyledText | AnnotationStyledText (Sci::Line line) const noexcept |
void | AnnotationSetText (Sci::Line line, const char *text) |
void | AnnotationSetStyle (Sci::Line line, int style) |
void | AnnotationSetStyles (Sci::Line line, const unsigned char *styles) |
int | AnnotationLines (Sci::Line line) const noexcept |
void | AnnotationClearAll () |
StyledText | EOLAnnotationStyledText (Sci::Line line) const noexcept |
void | EOLAnnotationSetStyle (Sci::Line line, int style) |
void | EOLAnnotationSetText (Sci::Line line, const char *text) |
void | EOLAnnotationClearAll () |
bool | AddWatcher (DocWatcher *watcher, void *userData) |
bool | RemoveWatcher (DocWatcher *watcher, void *userData) |
CharClassify::cc | WordCharacterClass (unsigned int ch) const |
bool | IsWordPartSeparator (unsigned int ch) const |
Sci::Position | WordPartLeft (Sci::Position pos) const |
Sci::Position | WordPartRight (Sci::Position pos) const |
Sci::Position | ExtendStyleRange (Sci::Position pos, int delta, bool singleLine) noexcept |
bool | IsWhiteLine (Sci::Line line) const |
Sci::Position | ParaUp (Sci::Position pos) const |
Sci::Position | ParaDown (Sci::Position pos) const |
int | IndentSize () const noexcept |
Sci::Position | BraceMatch (Sci::Position position, Sci::Position maxReStyle, Sci::Position startPos, bool useStartPos) noexcept |
virtual Sci_Position | LineEnd (Sci_Position line) const =0 |
virtual Sci_Position | GetRelativePosition (Sci_Position positionStart, Sci_Position characterOffset) const =0 |
virtual int | GetCharacterAndWidth (Sci_Position position, Sci_Position *pWidth) const =0 |
virtual int | Version () const =0 |
virtual void | SetErrorStatus (int status)=0 |
virtual Sci_Position | Length () const =0 |
virtual void | GetCharRange (char *buffer, Sci_Position position, Sci_Position lengthRetrieve) const =0 |
virtual char | StyleAt (Sci_Position position) const =0 |
virtual Sci_Position | LineFromPosition (Sci_Position position) const =0 |
virtual Sci_Position | LineStart (Sci_Position line) const =0 |
virtual int | GetLevel (Sci_Position line) const =0 |
virtual int | SetLevel (Sci_Position line, int level)=0 |
virtual int | GetLineState (Sci_Position line) const =0 |
virtual int | SetLineState (Sci_Position line, int state)=0 |
virtual void | StartStyling (Sci_Position position, char mask)=0 |
virtual bool | SetStyleFor (Sci_Position length, char style)=0 |
virtual bool | SetStyles (Sci_Position length, const char *styles)=0 |
virtual void | DecorationSetCurrentIndicator (int indicator)=0 |
virtual void | DecorationFillRange (Sci_Position position, int value, Sci_Position fillLength)=0 |
virtual void | ChangeLexerState (Sci_Position start, Sci_Position end)=0 |
virtual int | CodePage () const =0 |
virtual bool | IsDBCSLeadByte (char ch) const =0 |
virtual const char * | BufferPointer ()=0 |
virtual int | GetLineIndentation (Sci_Position line)=0 |
virtual int | Release ()=0 |
virtual int | AddData (const char *data, Sci_Position length)=0 |
virtual void * | ConvertToDocument ()=0 |
Static Public Member Functions | |
static std::string | TransformLineEnds (const char *s, size_t len, int eolModeWanted) |
Public Attributes | |
int | eolMode |
int | dbcsCodePage |
Can also be SC_CP_UTF8 to enable UTF-8 mode. More... | |
int | lineEndBitSet |
int | tabInChars |
int | indentInChars |
int | actualIndentInChars |
bool | useTabs |
bool | tabIndents |
bool | backspaceUnindents |
ActionDuration | durationStyleOneLine |
std::unique_ptr< IDecorationList > | decorations |
Private Types | |
enum | lineData { ldMarkers , ldLevels , ldState , ldMargin , ldAnnotation , ldEOLAnnotation , ldSize } |
Private Member Functions | |
LineMarkers * | Markers () const noexcept |
LineLevels * | Levels () const noexcept |
LineState * | States () const noexcept |
LineAnnotation * | Margins () const noexcept |
LineAnnotation * | Annotations () const noexcept |
LineAnnotation * | EOLAnnotations () const noexcept |
void | NotifyModifyAttempt () |
void | NotifySavePoint (bool atSavePoint) |
void | NotifyModified (DocModification mh) |
![]() | |
virtual | ~PerLine () |
virtual void | Init ()=0 |
virtual void | InsertLine (Sci::Line line)=0 |
virtual void | InsertLines (Sci::Line line, Sci::Line lines)=0 |
virtual void | RemoveLine (Sci::Line line)=0 |
Private Attributes | |
int | refCount |
CellBuffer | cb |
CharClassify | charClass |
CharacterCategoryMap | charMap |
std::unique_ptr< CaseFolder > | pcf |
Sci::Position | endStyled |
int | styleClock |
int | enteredModification |
int | enteredStyling |
int | enteredReadOnlyCount |
bool | insertionSet |
std::string | insertion |
std::vector< WatcherWithUserData > | watchers |
std::unique_ptr< PerLine > | perLineData [ldSize] |
bool | matchesValid |
std::unique_ptr< RegexSearchBase > | regex |
std::unique_ptr< LexInterface > | pli |
Definition at line 214 of file Document.h.
|
private |
Enumerator | |
---|---|
ldMarkers | |
ldLevels | |
ldState | |
ldMargin | |
ldAnnotation | |
ldEOLAnnotation | |
ldSize |
Definition at line 247 of file Document.h.
Document::Document | ( | int | options | ) |
Definition at line 112 of file Document.cxx.
References actualIndentInChars, backspaceUnindents, cb, dbcsCodePage, Scintilla::DecorationListCreate(), decorations, endStyled, enteredModification, enteredReadOnlyCount, enteredStyling, eolMode, indentInChars, insertionSet, IsLarge(), ldAnnotation, ldEOLAnnotation, ldLevels, ldMargin, ldMarkers, ldState, lineEndBitSet, matchesValid, perLineData, refCount, SC_CP_UTF8, SC_EOL_CRLF, SC_EOL_LF, SC_LINE_END_TYPE_DEFAULT, Scintilla::CellBuffer::SetPerLine(), Scintilla::CellBuffer::SetUTF8Substance(), styleClock, tabInChars, tabIndents, and useTabs.
|
delete |
|
delete |
|
override |
Definition at line 151 of file Document.cxx.
References watchers.
|
overridevirtual |
Implements ILoader.
Definition at line 1298 of file Document.cxx.
References InsertString(), Length(), position, SC_STATUS_BADALLOC, and SC_STATUS_FAILURE.
int Document::AddMark | ( | Sci::Line | line, |
int | markerNum | ||
) |
Definition at line 333 of file Document.cxx.
References Scintilla::LineMarkers::AddMark(), line, LineStart(), LinesTotal(), Markers(), NotifyModified(), and SC_MOD_CHANGEMARKER.
Referenced by Scintilla::Editor::WndProc().
void Document::AddMarkSet | ( | Sci::Line | line, |
int | valueSet | ||
) |
Definition at line 344 of file Document.cxx.
References Scintilla::LineMarkers::AddMark(), line, LineStart(), LinesTotal(), Markers(), NotifyModified(), and SC_MOD_CHANGEMARKER.
Referenced by Scintilla::Editor::WndProc().
int Document::AddRef | ( | ) |
Definition at line 158 of file Document.cxx.
References refCount.
Referenced by Scintilla::EditModel::EditModel(), Scintilla::Editor::SetDocPointer(), Scintilla::ScintillaGTK::SetDocPointer(), and Scintilla::Editor::WndProc().
|
inline |
Definition at line 360 of file Document.h.
References Scintilla::CellBuffer::AddUndoAction().
Referenced by Scintilla::Editor::WndProc().
bool Document::AddWatcher | ( | DocWatcher * | watcher, |
void * | userData | ||
) |
Definition at line 2448 of file Document.cxx.
References watchers.
Referenced by Scintilla::Editor::Editor(), and Scintilla::Editor::SetDocPointer().
|
inline |
Definition at line 432 of file Document.h.
References Scintilla::CellBuffer::Allocate().
Referenced by Scintilla::Editor::WndProc().
void Document::AllocateLineCharacterIndex | ( | int | lineCharacterIndex | ) |
Definition at line 2175 of file Document.cxx.
References Scintilla::CellBuffer::AllocateLineCharacterIndex(), and cb.
Referenced by Scintilla::ScintillaGTKAccessible::SetAccessibility(), and Scintilla::Editor::WndProc().
void Document::AnnotationClearAll | ( | ) |
Definition at line 2390 of file Document.cxx.
References Annotations(), AnnotationSetText(), Scintilla::LineAnnotation::ClearAll(), and LinesTotal().
Referenced by Scintilla::Editor::ClearAll(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2386 of file Document.cxx.
References line.
Referenced by AnnotationSetText(), Scintilla::EditView::DrawAnnotation(), Scintilla::MarginView::PaintMargin(), Scintilla::Editor::PositionUpOrDown(), Scintilla::Editor::SetAnnotationHeights(), Scintilla::Editor::SetAnnotationVisible(), Scintilla::Editor::WndProc(), Scintilla::Editor::WrapLines(), and Scintilla::Editor::WrapOneLine().
|
privatenoexcept |
Definition at line 215 of file Document.cxx.
References ldAnnotation, and perLineData.
Referenced by AnnotationClearAll(), AnnotationSetStyle(), AnnotationSetStyles(), and AnnotationSetText().
void Document::AnnotationSetStyle | ( | Sci::Line | line, |
int | style | ||
) |
Definition at line 2371 of file Document.cxx.
References Annotations(), line, LineStart(), LinesTotal(), NotifyModified(), SC_MOD_CHANGEANNOTATION, and Scintilla::LineAnnotation::SetStyle().
Referenced by Scintilla::Editor::WndProc().
void Document::AnnotationSetStyles | ( | Sci::Line | line, |
const unsigned char * | styles | ||
) |
Definition at line 2380 of file Document.cxx.
References Annotations(), line, LinesTotal(), and Scintilla::LineAnnotation::SetStyles().
Referenced by Scintilla::Editor::WndProc().
void Document::AnnotationSetText | ( | Sci::Line | line, |
const char * | text | ||
) |
Definition at line 2359 of file Document.cxx.
References AnnotationLines(), Scintilla::DocModification::annotationLinesAdded, Annotations(), line, LineStart(), LinesTotal(), NotifyModified(), SC_MOD_CHANGEANNOTATION, Scintilla::LineAnnotation::SetText(), and text.
Referenced by AnnotationClearAll(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2353 of file Document.cxx.
References Scintilla::LineAnnotation::Length(), line, Scintilla::LineAnnotation::MultipleStyles(), Scintilla::LineAnnotation::Style(), Scintilla::LineAnnotation::Styles(), and Scintilla::LineAnnotation::Text().
Referenced by Scintilla::EditView::DrawAnnotation(), and Scintilla::Editor::WndProc().
|
inline |
Definition at line 358 of file Document.h.
References Scintilla::CellBuffer::BeginUndoAction().
Referenced by Scintilla::UndoGroup::UndoGroup(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2667 of file Document.cxx.
References BraceOpposite(), and position.
Referenced by Scintilla::Editor::WndProc().
|
inlineoverridevirtual |
Implements Scintilla::IDocument.
Definition at line 369 of file Document.h.
References Scintilla::CellBuffer::BufferPointer().
Referenced by Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 352 of file Document.h.
References Scintilla::CellBuffer::CanRedo().
Referenced by Scintilla::ScintillaBase::ContextMenu(), Scintilla::Editor::Redo(), and Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 351 of file Document.h.
References Scintilla::CellBuffer::CanUndo().
Referenced by Scintilla::ScintillaBase::ContextMenu(), Scintilla::Editor::Undo(), and Scintilla::Editor::WndProc().
void Document::ChangeInsertion | ( | const char * | s, |
Sci::Position | length | ||
) |
Definition at line 1293 of file Document.cxx.
References insertion, and insertionSet.
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 2314 of file Document.cxx.
References NotifyModified(), and SC_MOD_LEXERSTATE.
Referenced by Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 853 of file Document.cxx.
References position, SC_CP_UTF8, Scintilla::UnicodeFromUTF8(), Scintilla::unicodeReplacementChar, Scintilla::UTF8BytesOfLead, Scintilla::UTF8Classify(), Scintilla::UTF8IsAscii(), Scintilla::UTF8MaskInvalid, Scintilla::UTF8MaskWidth, and Scintilla::UTF8MaxBytes.
Referenced by ExtendWordSelect(), IsWordEndAt(), IsWordStartAt(), NextWordEnd(), NextWordStart(), WordPartLeft(), and WordPartRight().
|
noexcept |
Definition at line 883 of file Document.cxx.
References position, SC_CP_UTF8, Scintilla::UnicodeFromUTF8(), Scintilla::unicodeReplacementChar, Scintilla::UTF8Classify(), Scintilla::UTF8IsAscii(), Scintilla::UTF8IsTrailByte(), Scintilla::UTF8MaskInvalid, Scintilla::UTF8MaskWidth, and Scintilla::UTF8MaxBytes.
Referenced by ExtendWordSelect(), IsWordEndAt(), IsWordStartAt(), NextWordEnd(), NextWordStart(), WordPartLeft(), and WordPartRight().
|
noexcept |
Definition at line 2203 of file Document.cxx.
References charMap, and Scintilla::CharacterCategoryMap::Size().
Referenced by Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 391 of file Document.h.
References Scintilla::CellBuffer::CharAt(), and position.
Referenced by FindText(), Scintilla::EditView::LayoutLine(), Scintilla::Editor::LinesJoin(), and Scintilla::Editor::WndProc().
void Document::CheckReadOnly | ( | ) |
Definition at line 1193 of file Document.cxx.
References cb, enteredReadOnlyCount, Scintilla::CellBuffer::IsReadOnly(), and NotifyModifyAttempt().
Referenced by Scintilla::Editor::Cut(), DeleteChars(), InsertString(), Redo(), TentativeUndo(), and Undo().
|
noexcept |
Definition at line 618 of file Document.cxx.
References pos.
Referenced by Scintilla::Editor::CopyRangeToClipboard().
void Document::ClearLevels | ( | ) |
Definition at line 495 of file Document.cxx.
References Scintilla::LineLevels::ClearLevels(), and Levels().
Referenced by Scintilla::Editor::ClearDocumentStyle().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 1005 of file Document.cxx.
References dbcsCodePage.
|
noexcept |
Definition at line 1179 of file Document.cxx.
References Scintilla::dbcs, dbcsCodePage, Scintilla::eightBit, SC_CP_UTF8, and Scintilla::unicode.
|
inlinenoexcept |
Definition at line 320 of file Document.h.
References Scintilla::CellBuffer::ContainsLineEnd().
Referenced by Scintilla::Editor::NotifyModified().
void Document::ConvertLineEnds | ( | int | eolModeSet | ) |
Definition at line 1654 of file Document.cxx.
References cb, Scintilla::CellBuffer::CharAt(), DeleteChars(), InsertString(), Length(), pos, SC_EOL_CR, SC_EOL_CRLF, and SC_EOL_LF.
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
Implements ILoader.
Definition at line 1310 of file Document.cxx.
|
noexcept |
Definition at line 1565 of file Document.cxx.
References count.
Referenced by Scintilla::ScintillaGTKAccessible::ChangeDocument(), Scintilla::ScintillaGTKAccessible::CharacterOffsetFromByteOffset(), Scintilla::ScintillaGTKAccessible::CharacterRangeFromByteRange(), Scintilla::ScintillaGTKAccessible::GetCharacterCount(), Scintilla::ScintillaGTKAccessible::InsertText(), Scintilla::ScintillaGTKAccessible::Notify(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 1577 of file Document.cxx.
References count.
Referenced by Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 1119 of file Document.cxx.
References text.
Referenced by Scintilla::BreakFinder::Next().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 2438 of file Document.cxx.
References Scintilla::FillResult< DISTANCE >::changed, decorations, Scintilla::FillResult< DISTANCE >::fillLength, NotifyModified(), Scintilla::FillResult< DISTANCE >::position, position, SC_MOD_CHANGEINDICATOR, and SC_PERFORMED_USER.
Referenced by Scintilla::ScintillaGTK::DrawImeIndicator(), and Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 2434 of file Document.cxx.
References decorations.
Referenced by Scintilla::ScintillaGTK::DrawImeIndicator(), and Scintilla::Editor::WndProc().
void Document::DelChar | ( | Sci::Position | pos | ) |
Definition at line 1459 of file Document.cxx.
References DeleteChars(), LenChar(), and pos.
Referenced by Scintilla::Editor::Clear(), Scintilla::Editor::InsertCharacter(), and Scintilla::Editor::LinesJoin().
void Document::DelCharBack | ( | Sci::Position | pos | ) |
Definition at line 1463 of file Document.cxx.
References dbcsCodePage, DeleteChars(), IsCrLf(), NextPosition(), and pos.
Referenced by Scintilla::Editor::DelCharBack().
void Document::DeleteAllMarks | ( | int | markerNum | ) |
Definition at line 370 of file Document.cxx.
References Scintilla::LineMarkers::DeleteMark(), line, Scintilla::DocModification::line, LinesTotal(), Markers(), NotifyModified(), and SC_MOD_CHANGEMARKER.
Referenced by Scintilla::Editor::WndProc().
bool Document::DeleteChars | ( | Sci::Position | pos, |
Sci::Position | len | ||
) |
Definition at line 1204 of file Document.cxx.
References cb, CheckReadOnly(), Scintilla::CellBuffer::DeleteChars(), enteredModification, Scintilla::CellBuffer::IsCollectingUndo(), Scintilla::CellBuffer::IsReadOnly(), Scintilla::CellBuffer::IsSavePoint(), LengthNoExcept(), LinesTotal(), ModifiedAt(), NotifyModified(), NotifySavePoint(), pos, SC_MOD_BEFOREDELETE, SC_MOD_DELETETEXT, SC_PERFORMED_USER, SC_STARTACTION, and text.
Referenced by Scintilla::ScintillaBase::AutoCompleteInsert(), Scintilla::Editor::ButtonUpWithModifiers(), Scintilla::Editor::ChangeCaseOfSelection(), Scintilla::Editor::ClearAll(), Scintilla::Editor::ClearBeforeTentativeStart(), Scintilla::Editor::ClearSelection(), ConvertLineEnds(), DelChar(), DelCharBack(), Scintilla::ScintillaGTKAccessible::DeleteText(), Scintilla::Editor::DelWordOrLine(), Scintilla::Editor::Indent(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::InsertPaste(), Scintilla::Editor::KeyCommand(), Scintilla::Editor::LineReverse(), Scintilla::Editor::LineTranspose(), Scintilla::Editor::ReplaceTarget(), SetLineIndentation(), and Scintilla::Editor::WndProc().
void Document::DeleteMark | ( | Sci::Line | line, |
int | markerNum | ||
) |
Definition at line 357 of file Document.cxx.
References Scintilla::LineMarkers::DeleteMark(), line, LineStart(), Markers(), NotifyModified(), and SC_MOD_CHANGEMARKER.
Referenced by Scintilla::Editor::WndProc().
void Document::DeleteMarkFromHandle | ( | int | markerHandle | ) |
Definition at line 363 of file Document.cxx.
References Scintilla::LineMarkers::DeleteMarkFromHandle(), Scintilla::DocModification::line, Markers(), NotifyModified(), and SC_MOD_CHANGEMARKER.
Referenced by Scintilla::Editor::WndProc().
|
inline |
Definition at line 353 of file Document.h.
References Scintilla::CellBuffer::DeleteUndoHistory().
Referenced by Scintilla::Editor::WndProc().
|
inline |
Definition at line 359 of file Document.h.
References Scintilla::CellBuffer::EndUndoAction().
Referenced by Scintilla::Editor::WndProc(), and Scintilla::UndoGroup::~UndoGroup().
void Document::EnsureStyledTo | ( | Sci::Position | pos | ) |
Definition at line 2256 of file Document.cxx.
References enteredStyling, GetEndStyled(), IncrementStyleClock(), LineStart(), pli, pos, SciLineFromPosition(), and watchers.
Referenced by Scintilla::Editor::FoldAll(), Scintilla::EditView::FormatRange(), GetLastChild(), Scintilla::ScintillaGTKAccessible::StyleAt(), StyleToAdjustingLineDuration(), Scintilla::Editor::StyleToPositionInView(), and Scintilla::Editor::WrapLines().
void Document::EOLAnnotationClearAll | ( | ) |
Definition at line 2422 of file Document.cxx.
References Scintilla::LineAnnotation::ClearAll(), EOLAnnotations(), EOLAnnotationSetText(), and LinesTotal().
Referenced by Scintilla::Editor::ClearAll(), and Scintilla::Editor::WndProc().
|
privatenoexcept |
Definition at line 219 of file Document.cxx.
References ldEOLAnnotation, and perLineData.
Referenced by EOLAnnotationClearAll(), EOLAnnotationSetStyle(), and EOLAnnotationSetText().
void Document::EOLAnnotationSetStyle | ( | Sci::Line | line, |
int | style | ||
) |
Definition at line 2413 of file Document.cxx.
References EOLAnnotations(), line, LineStart(), LinesTotal(), NotifyModified(), SC_MOD_CHANGEEOLANNOTATION, and Scintilla::LineAnnotation::SetStyle().
Referenced by Scintilla::Editor::WndProc().
void Document::EOLAnnotationSetText | ( | Sci::Line | line, |
const char * | text | ||
) |
Definition at line 2404 of file Document.cxx.
References EOLAnnotations(), line, LineStart(), LinesTotal(), NotifyModified(), SC_MOD_CHANGEEOLANNOTATION, Scintilla::LineAnnotation::SetText(), and text.
Referenced by EOLAnnotationClearAll(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2398 of file Document.cxx.
References Scintilla::LineAnnotation::Length(), line, Scintilla::LineAnnotation::MultipleStyles(), Scintilla::LineAnnotation::Style(), Scintilla::LineAnnotation::Styles(), and Scintilla::LineAnnotation::Text().
Referenced by Scintilla::EditView::DrawEOL(), Scintilla::EditView::DrawEOLAnnotationText(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2630 of file Document.cxx.
References IsLineEndChar(), and pos.
Referenced by Scintilla::Editor::SetHotSpotRange().
Sci::Position Document::ExtendWordSelect | ( | Sci::Position | pos, |
int | delta, | ||
bool | onlyWordCharacters = false |
||
) | const |
Used by commands that want to select whole words.
Finds the start of word at pos when delta < 0 or the end of the word when delta >= 0.
Definition at line 1802 of file Document.cxx.
References Scintilla::CharClassify::ccWord, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), MovePositionOutsideChar(), pos, Scintilla::Document::CharacterExtracted::widthBytes, and WordCharacterClass().
Referenced by Scintilla::ScintillaBase::AutoCompleteCompleted(), Scintilla::Editor::ButtonDownWithModifiers(), Scintilla::Editor::MultipleSelectAdd(), Scintilla::Editor::WndProc(), and Scintilla::Editor::WordSelection().
|
noexcept |
Definition at line 1980 of file Document.cxx.
References position, Scintilla::UnicodeFromUTF8(), Scintilla::unicodeReplacementChar, Scintilla::UTF8BytesOfLead, Scintilla::UTF8Classify(), Scintilla::UTF8IsAscii(), Scintilla::UTF8MaskInvalid, Scintilla::UTF8MaskWidth, and Scintilla::UTF8MaxBytes.
Sci::Position Document::FindColumn | ( | Sci::Line | line, |
Sci::Position | column | ||
) |
Definition at line 1592 of file Document.cxx.
References cb, Scintilla::CellBuffer::CharAt(), Length(), line, LineStart(), LinesTotal(), NextPosition(), NextTab(), position, and tabInChars.
Referenced by Scintilla::EditView::LayoutLine(), and Scintilla::Editor::WndProc().
Sci::Position Document::FindText | ( | Sci::Position | minPos, |
Sci::Position | maxPos, | ||
const char * | search, | ||
int | flags, | ||
Sci::Position * | length | ||
) |
Find text in document, supporting both forward and backward searches (just pass minPos > maxPos to do a backward search) Has not been tested with backwards DBCS searches yet.
Definition at line 2004 of file Document.cxx.
References bytes, cb, Scintilla::CellBuffer::CharAt(), CharAt(), charClass, Scintilla::CreateRegexSearch(), dbcsCodePage, IsDBCSLeadByteNoExcept(), MatchesWordOptions(), max, MovePositionOutsideChar(), NextCharacter(), NextPosition(), pcf, pos, regex, SC_CP_UTF8, SCFIND_MATCHCASE, SCFIND_REGEXP, SCFIND_WHOLEWORD, SCFIND_WORDSTART, Scintilla::CellBuffer::UCharAt(), Scintilla::UTF8BytesOfLead, Scintilla::UTF8Classify(), Scintilla::UTF8IsAscii(), Scintilla::UTF8MaskWidth, Scintilla::UTF8MaxBytes, and Scintilla::word.
Referenced by Scintilla::Editor::FindText(), Scintilla::Editor::MultipleSelectAdd(), Scintilla::Editor::SearchInTarget(), and Scintilla::Editor::SearchText().
|
inlinenoexcept |
Definition at line 371 of file Document.h.
References Scintilla::CellBuffer::GapPosition().
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocumentWithLineEnd.
Definition at line 965 of file Document.cxx.
References cb, Scintilla::character, dbcsCodePage, IsDBCSLeadByteNoExcept(), position, SC_CP_UTF8, Scintilla::CellBuffer::UCharAt(), Scintilla::UnicodeFromUTF8(), Scintilla::UTF8BytesOfLead, Scintilla::UTF8Classify(), Scintilla::UTF8IsAscii(), Scintilla::UTF8MaskInvalid, Scintilla::UTF8MaskWidth, and Scintilla::UTF8MaxBytes.
|
inlineoverridevirtual |
Implements Scintilla::IDocument.
Definition at line 392 of file Document.h.
References Scintilla::CellBuffer::GetCharRange(), and position.
Referenced by Scintilla::ScintillaGTKAccessible::GetCharacterExtents(), Scintilla::ScintillaGTKAccessible::GetTextRangeUTF8(), Scintilla::EditView::LayoutLine(), Scintilla::Editor::RangeText(), Scintilla::ScintillaGTK::TargetAsUTF8(), and Scintilla::Editor::WndProc().
int Document::GetCharsOfClass | ( | CharClassify::cc | characterClass, |
unsigned char * | buffer | ||
) | const |
Definition at line 2195 of file Document.cxx.
References charClass, and Scintilla::CharClassify::GetCharsOfClass().
Referenced by Scintilla::Editor::WndProc().
Sci::Position Document::GetColumn | ( | Sci::Position | pos | ) |
Definition at line 1541 of file Document.cxx.
References cb, Scintilla::CellBuffer::CharAt(), Length(), line, LineStart(), LinesTotal(), NextPosition(), NextTab(), pos, SciLineFromPosition(), and tabInChars.
Referenced by Scintilla::Editor::DelCharBack(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::Indent(), and Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 458 of file Document.h.
Referenced by EnsureStyledTo(), Scintilla::Editor::IdleStyling(), Scintilla::ScintillaBase::NotifyStyleToNeeded(), Scintilla::Editor::PositionAfterMaxStyling(), Scintilla::Editor::StartIdleStyling(), StyleToAdjustingLineDuration(), and Scintilla::Editor::WndProc().
Definition at line 531 of file Document.cxx.
References GetLevel(), Scintilla::LevelNumber(), line, and SC_FOLDLEVELHEADERFLAG.
Referenced by Scintilla::Editor::EnsureLineVisible(), Scintilla::Editor::FoldChanged(), Scintilla::Editor::FoldLine(), GetHighlightDelimiters(), and Scintilla::Editor::WndProc().
void Document::GetHighlightDelimiters | ( | HighlightDelimiter & | highlightDelimiter, |
Sci::Line | line, | ||
Sci::Line | lastLine | ||
) |
Definition at line 548 of file Document.cxx.
References Scintilla::HighlightDelimiter::beginFoldBlock, Scintilla::HighlightDelimiter::Clear(), Scintilla::HighlightDelimiter::endFoldBlock, Scintilla::HighlightDelimiter::firstChangeableLineAfter, Scintilla::HighlightDelimiter::firstChangeableLineBefore, GetFoldParent(), GetLastChild(), GetLevel(), Scintilla::LevelNumber(), line, max, SC_FOLDLEVELBASE, SC_FOLDLEVELHEADERFLAG, and SC_FOLDLEVELWHITEFLAG.
Referenced by Scintilla::MarginView::PaintMargin().
Definition at line 506 of file Document.cxx.
References EnsureStyledTo(), GetLevel(), IsSubordinate(), Scintilla::LevelNumber(), LineStart(), LinesTotal(), and SC_FOLDLEVELWHITEFLAG.
Referenced by Scintilla::Editor::ExpandLine(), Scintilla::Editor::FoldAll(), Scintilla::Editor::FoldExpand(), Scintilla::Editor::FoldLine(), GetHighlightDelimiters(), Scintilla::Editor::NotifyModified(), and Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 491 of file Document.cxx.
References Scintilla::LineLevels::GetLevel(), Levels(), and line.
Referenced by Scintilla::Editor::ContractedFoldNext(), DrawFoldLines(), Scintilla::EditView::DrawIndentGuidesOverEmpty(), Scintilla::Editor::EnsureLineVisible(), Scintilla::Editor::ExpandLine(), Scintilla::Editor::FoldAll(), Scintilla::Editor::FoldChanged(), Scintilla::Editor::FoldExpand(), Scintilla::Editor::FoldLine(), GetFoldParent(), GetHighlightDelimiters(), GetLastChild(), Scintilla::Editor::NotifyMarginClick(), Scintilla::MarginView::PaintMargin(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2288 of file Document.cxx.
References pli.
|
inlinenoexcept |
Definition at line 309 of file Document.h.
References Scintilla::CellBuffer::GetLineEndTypes().
Referenced by Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 307 of file Document.h.
References Scintilla::CellBuffer::GetLineEndTypes().
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 1495 of file Document.cxx.
References cb, Scintilla::CellBuffer::CharAt(), indent, Length(), line, LineStart(), LinesTotal(), NextTab(), and tabInChars.
Referenced by Scintilla::Editor::DelCharBack(), Scintilla::EditView::DrawAnnotation(), Scintilla::EditView::DrawIndentGuidesOverEmpty(), Scintilla::Editor::Indent(), Indent(), Scintilla::Editor::RealizeVirtualSpace(), SetLineIndentation(), and Scintilla::Editor::WndProc().
Sci::Position Document::GetLineIndentPosition | ( | Sci::Line | line | ) | const |
Definition at line 1530 of file Document.cxx.
References cb, Scintilla::CellBuffer::CharAt(), Scintilla::IsSpaceOrTab(), Length(), line, LineStart(), and pos.
Referenced by Scintilla::EditView::DrawIndentGuidesOverEmpty(), Scintilla::Editor::Indent(), Scintilla::Editor::RealizeVirtualSpace(), SetLineIndentation(), and Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 2306 of file Document.cxx.
References Scintilla::LineState::GetLineState(), line, and States().
Referenced by Scintilla::MarginView::PaintMargin(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 325 of file Document.cxx.
References line.
Referenced by Scintilla::EditView::DrawEOLAnnotationText(), Scintilla::EditView::DrawFoldDisplayText(), Scintilla::EditView::DrawLine(), DrawMarkUnderline(), DrawTranslucentLineState(), Scintilla::EditView::FillLineRemainder(), Scintilla::MarginView::PaintMargin(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2310 of file Document.cxx.
References Scintilla::LineState::GetMaxLineState(), and States().
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocumentWithLineEnd.
Definition at line 925 of file Document.cxx.
References dbcsCodePage, INVALID_POSITION, Length(), NextPosition(), and pos.
Referenced by Scintilla::ScintillaGTKAccessible::ByteOffsetFromCharacterOffset(), Scintilla::ScintillaGTK::PreeditChangedInlineThis(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 944 of file Document.cxx.
References INVALID_POSITION, and pos.
Referenced by Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 462 of file Document.h.
Referenced by Scintilla::EditView::RetrieveLineLayout().
|
inline |
Definition at line 397 of file Document.h.
References Scintilla::CellBuffer::GetStyleRange(), and position.
Referenced by Scintilla::EditView::LayoutLine().
|
noexcept |
Definition at line 1972 of file Document.cxx.
References pcf.
Referenced by Scintilla::Editor::FindText(), Scintilla::Editor::MultipleSelectAdd(), Scintilla::Editor::SearchInTarget(), and Scintilla::Editor::SearchText().
|
noexcept |
Definition at line 2430 of file Document.cxx.
References styleClock.
Referenced by EnsureStyledTo(), and Scintilla::Editor::NotifyModified().
Definition at line 1616 of file Document.cxx.
References GetLineIndentation(), IndentSize(), line, LineEnd(), LineStart(), and SetLineIndentation().
Referenced by Scintilla::Editor::Indent().
|
inlinenoexcept |
Definition at line 503 of file Document.h.
Referenced by Scintilla::Editor::DelCharBack(), Scintilla::EditView::DrawForeground(), Scintilla::EditView::DrawIndentGuidesOverEmpty(), Scintilla::Editor::Indent(), Indent(), and Scintilla::EditView::LayoutLine().
|
noexcept |
Definition at line 471 of file Document.cxx.
References line.
Referenced by Scintilla::ScintillaGTKAccessible::ByteOffsetFromCharacterOffset(), Scintilla::ScintillaGTKAccessible::CharacterOffsetFromByteOffset(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 665 of file Document.cxx.
References pos, Scintilla::UTF8BytesOfLead, Scintilla::UTF8Classify(), Scintilla::UTF8IsTrailByte(), Scintilla::UTF8MaskInvalid, and Scintilla::UTF8MaxBytes.
|
overridevirtual |
|
overridevirtual |
Implements Scintilla::PerLine.
Definition at line 178 of file Document.cxx.
References line, and perLineData.
Implements Scintilla::PerLine.
Definition at line 185 of file Document.cxx.
References line, lines, and perLineData.
Sci::Position Document::InsertString | ( | Sci::Position | position, |
const char * | s, | ||
Sci::Position | insertLength | ||
) |
Insert a string with a length.
Definition at line 1246 of file Document.cxx.
References cb, CheckReadOnly(), enteredModification, insertion, insertionSet, Scintilla::CellBuffer::InsertString(), Scintilla::CellBuffer::IsCollectingUndo(), Scintilla::CellBuffer::IsReadOnly(), Scintilla::CellBuffer::IsSavePoint(), LinesTotal(), ModifiedAt(), NotifyModified(), NotifySavePoint(), position, SC_MOD_BEFOREINSERT, SC_MOD_INSERTCHECK, SC_MOD_INSERTTEXT, SC_PERFORMED_USER, SC_STARTACTION, and text.
Referenced by AddData(), Scintilla::Editor::AddStyledText(), Scintilla::ScintillaBase::AutoCompleteInsert(), Scintilla::Editor::ButtonUpWithModifiers(), Scintilla::Editor::ChangeCaseOfSelection(), ConvertLineEnds(), Scintilla::Editor::DropAt(), Scintilla::Editor::Duplicate(), Scintilla::Editor::Indent(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::InsertPaste(), Scintilla::Editor::InsertPasteShape(), Scintilla::ScintillaGTKAccessible::InsertStringUTF8(), Scintilla::ScintillaGTK::KeyThis(), Scintilla::Editor::LineReverse(), Scintilla::Editor::LinesJoin(), Scintilla::Editor::LinesSplit(), Scintilla::Editor::LineTranspose(), Scintilla::Editor::MoveSelectedLines(), Scintilla::Editor::NewLine(), Scintilla::Editor::PasteRectangular(), Scintilla::Editor::RealizeVirtualSpace(), Scintilla::Editor::ReplaceTarget(), SetLineIndentation(), and Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 357 of file Document.h.
References Scintilla::CellBuffer::IsCollectingUndo().
Referenced by Scintilla::Editor::WndProc().
|
noexcept |
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 1009 of file Document.cxx.
References IsDBCSLeadByteNoExcept().
|
noexcept |
Definition at line 1043 of file Document.cxx.
Referenced by Scintilla::Editor::SetRepresentations().
|
noexcept |
Definition at line 1014 of file Document.cxx.
Referenced by FindText(), GetCharacterAndWidth(), IsDBCSLeadByte(), and Scintilla::Editor::SetRepresentations().
|
noexcept |
Definition at line 1080 of file Document.cxx.
|
inlinenoexcept |
Definition at line 385 of file Document.h.
References Scintilla::CellBuffer::IsLarge().
Referenced by Document(), Scintilla::EditModel::EditModel(), Options(), Scintilla::Editor::SetDocPointer(), and Scintilla::Editor::WndProc().
bool Document::IsLineEndPosition | ( | Sci::Position | position | ) | const |
Definition at line 450 of file Document.cxx.
References LineEnd(), LineFromPosition(), and position.
Referenced by Scintilla::Editor::ButtonDownWithModifiers(), Scintilla::Editor::ClampPositionIntoDocument(), Scintilla::Editor::HorizontalMove(), and Scintilla::Editor::WordSelection().
bool Document::IsLineStartPosition | ( | Sci::Position | position | ) | const |
Definition at line 399 of file Document.cxx.
References LineFromPosition(), LineStart(), and position.
bool Document::IsPositionInLineEnd | ( | Sci::Position | position | ) | const |
Definition at line 454 of file Document.cxx.
References LineEnd(), LineFromPosition(), and position.
Referenced by Scintilla::Editor::Clear(), Scintilla::Editor::InsertCharacter(), and Scintilla::Editor::LinesJoin().
|
inlinenoexcept |
Definition at line 384 of file Document.h.
References Scintilla::CellBuffer::IsReadOnly().
Referenced by Scintilla::Editor::CanPaste(), Scintilla::ScintillaGTKAccessible::ChangeDocument(), Scintilla::Editor::ClearAll(), Scintilla::Editor::Cut(), Scintilla::ScintillaGTKAccessible::CutText(), Scintilla::ScintillaGTKAccessible::DeleteText(), Scintilla::ScintillaGTKAccessible::InsertStringUTF8(), Scintilla::ScintillaGTKAccessible::NotifyReadOnly(), Scintilla::Editor::PasteRectangular(), Scintilla::ScintillaGTKAccessible::PasteText(), Scintilla::ScintillaGTK::PreeditChangedInlineThis(), Scintilla::ScintillaGTKAccessible::SetTextContents(), and Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 362 of file Document.h.
References Scintilla::CellBuffer::IsSavePoint().
Referenced by Scintilla::Editor::WndProc().
bool Document::IsWhiteLine | ( | Sci::Line | line | ) | const |
Definition at line 1697 of file Document.cxx.
References cb, Scintilla::CellBuffer::CharAt(), Scintilla::IsSpaceOrTab(), line, LineEnd(), and LineStart().
Referenced by Scintilla::EditView::DrawIndentGuidesOverEmpty(), ParaDown(), and ParaUp().
bool Document::IsWordAt | ( | Sci::Position | start, |
Sci::Position | end | ||
) | const |
Check that the given range is has transitions between character classes at both ends and where the characters on the inside are word or punctuation characters.
Definition at line 1962 of file Document.cxx.
References IsWordEndAt(), and IsWordStartAt().
Referenced by MatchesWordOptions(), and Scintilla::Editor::WndProc().
bool Document::IsWordEndAt | ( | Sci::Position | pos | ) | const |
Check that the character at the given position is a word or punctuation character and that the next character is of a different character class.
Definition at line 1944 of file Document.cxx.
References Scintilla::CharClassify::ccPunctuation, Scintilla::CharClassify::ccWord, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), pos, and WordCharacterClass().
Referenced by IsWordAt().
bool Document::IsWordPartSeparator | ( | unsigned int | ch | ) | const |
Definition at line 2532 of file Document.cxx.
References Scintilla::CharClassify::ccWord, IsASCIIPunctuationCharacter(), and WordCharacterClass().
Referenced by WordPartLeft(), and WordPartRight().
bool Document::IsWordStartAt | ( | Sci::Position | pos | ) | const |
Check that the character at the given position is a word or punctuation character and that the previous character is of a different character class.
Definition at line 1926 of file Document.cxx.
References Scintilla::CharClassify::ccPunctuation, Scintilla::CharClassify::ccWord, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), pos, and WordCharacterClass().
Referenced by IsWordAt(), and MatchesWordOptions().
|
noexcept |
Definition at line 630 of file Document.cxx.
References pos, SC_CP_UTF8, Scintilla::UTF8BytesOfLead, Scintilla::UTF8Classify(), Scintilla::UTF8IsAscii(), Scintilla::UTF8MaskInvalid, Scintilla::UTF8MaskWidth, and Scintilla::UTF8MaxBytes.
Referenced by DelChar(), Scintilla::EditView::DrawCarets(), and Scintilla::Editor::LinesJoin().
|
inlineoverridevirtual |
Implements Scintilla::IDocument.
Definition at line 430 of file Document.h.
References Scintilla::CellBuffer::Length().
Referenced by AddData(), Scintilla::ScintillaGTKAccessible::ByteOffsetFromCharacterOffset(), Scintilla::ScintillaGTKAccessible::ChangeDocument(), Scintilla::Editor::ClampPositionIntoDocument(), Scintilla::Editor::ClearAll(), Scintilla::Editor::ClearDocumentStyle(), Scintilla::LexInterface::Colourise(), ConvertLineEnds(), Scintilla::EditView::DrawCarets(), FindColumn(), Scintilla::Editor::FoldAll(), Scintilla::EditView::FormatRange(), Scintilla::ScintillaGTKAccessible::GetCharacterCount(), GetColumn(), GetLineIndentation(), GetLineIndentPosition(), GetRelativePosition(), Scintilla::ScintillaGTKAccessible::GetRunAttributes(), Scintilla::ScintillaGTKAccessible::GetText(), Scintilla::Editor::IdleStyling(), Scintilla::Editor::KeyCommand(), Scintilla::Editor::MovePositionOutsideChar(), Scintilla::Editor::MoveSelectedLines(), Scintilla::Editor::NotifyModified(), Scintilla::Editor::ParaUpOrDown(), Scintilla::Editor::PasteRectangular(), Scintilla::Editor::PositionAfterArea(), Scintilla::Editor::PositionUpOrDown(), Scintilla::Editor::SearchText(), Scintilla::Editor::SelectAll(), SetStyles(), Scintilla::Editor::SPositionFromLineX(), Scintilla::EditView::SPositionFromLocation(), Scintilla::Editor::StartIdleStyling(), BuiltinRegex::SubstituteByPosition(), Scintilla::Editor::WndProc(), and Scintilla::ScintillaBase::WndProc().
|
inlinenoexcept |
Definition at line 431 of file Document.h.
References Scintilla::CellBuffer::Length().
Referenced by DeleteChars(), ExtendWordSelect(), IsWordEndAt(), IsWordStartAt(), NextWordEnd(), NextWordStart(), and WordPartRight().
|
privatenoexcept |
Definition at line 203 of file Document.cxx.
References ldLevels, and perLineData.
Referenced by ClearLevels(), GetLevel(), and SetLevel().
void Document::LexerChanged | ( | ) |
Definition at line 2281 of file Document.cxx.
References watchers.
|
noexcept |
Definition at line 2171 of file Document.cxx.
References cb, and Scintilla::CellBuffer::LineCharacterIndex().
Referenced by Scintilla::ScintillaGTKAccessible::ByteOffsetFromCharacterOffset(), Scintilla::ScintillaGTKAccessible::CharacterOffsetFromByteOffset(), and Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocumentWithLineEnd.
Definition at line 403 of file Document.cxx.
References bytes, cb, Scintilla::CellBuffer::CharAt(), Scintilla::CellBuffer::GetLineEndTypes(), line, LineStart(), LinesTotal(), position, SC_LINE_END_TYPE_UNICODE, Scintilla::CellBuffer::UCharAt(), Scintilla::UTF8IsNEL(), Scintilla::UTF8IsSeparator(), Scintilla::UTF8NELLength, and Scintilla::UTF8SeparatorLength.
Referenced by Scintilla::Editor::CopySelectionRange(), Scintilla::Editor::DelWordOrLine(), Scintilla::EditView::DrawEOL(), Scintilla::EditView::DrawEOLAnnotationText(), Scintilla::EditView::DrawFoldDisplayText(), DrawTranslucentSelection(), Scintilla::Editor::Duplicate(), BuiltinRegex::FindText(), Indent(), IsLineEndPosition(), IsPositionInLineEnd(), IsWhiteLine(), Scintilla::EditView::LayoutLine(), LineEndPosition(), Scintilla::Editor::LineReverse(), Scintilla::Editor::LineSelectionRange(), Scintilla::Editor::LineTranspose(), Scintilla::Editor::MovePositionSoVisible(), Scintilla::Editor::NotifyModified(), ParaDown(), VCHomePosition(), and Scintilla::Editor::WndProc().
Sci::Position Document::LineEndPosition | ( | Sci::Position | position | ) | const |
Definition at line 446 of file Document.cxx.
References LineEnd(), LineFromPosition(), and position.
Referenced by Scintilla::Editor::HorizontalMove(), Scintilla::Editor::LineEndWrapPosition(), and Scintilla::Editor::ParaUpOrDown().
int Document::LineEndTypesSupported | ( | ) | const |
Definition at line 223 of file Document.cxx.
References dbcsCodePage, pli, and SC_CP_UTF8.
Referenced by SetDBCSCodePage(), and SetLineEndTypesAllowed().
|
noexcept |
Definition at line 383 of file Document.cxx.
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 437 of file Document.cxx.
References cb, Scintilla::CellBuffer::LineFromPosition(), and pos.
Referenced by Scintilla::Editor::ButtonDownWithModifiers(), Scintilla::ScintillaGTKAccessible::ByteOffsetFromCharacterOffset(), Scintilla::ScintillaGTKAccessible::CharacterOffsetFromByteOffset(), Scintilla::Editor::DelWordOrLine(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::IdleWork(), Scintilla::Editor::InsertPasteShape(), IsLineEndPosition(), IsLineStartPosition(), IsPositionInLineEnd(), LineEndPosition(), Scintilla::Editor::LineSelectionRange(), Scintilla::Editor::WndProc(), and Scintilla::Editor::WordSelection().
|
noexcept |
Definition at line 475 of file Document.cxx.
References pos.
Referenced by Scintilla::ScintillaGTKAccessible::ByteOffsetFromCharacterOffset(), and Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 395 of file Document.cxx.
References cb, line, and Scintilla::CellBuffer::LineStart().
Referenced by AddMark(), AddMarkSet(), AnnotationSetStyle(), AnnotationSetText(), Scintilla::Editor::ButtonDownWithModifiers(), Scintilla::ScintillaGTKAccessible::ByteOffsetFromCharacterOffset(), Scintilla::ScintillaGTKAccessible::CharacterOffsetFromByteOffset(), Scintilla::Editor::CopySelectionRange(), Scintilla::Editor::DelCharBack(), DeleteMark(), Scintilla::Editor::DelWordOrLine(), Scintilla::EditView::DisplayFromPosition(), Scintilla::EditView::DrawCarets(), Scintilla::EditView::DrawEOL(), Scintilla::EditView::DrawFoldDisplayText(), Scintilla::EditView::DrawIndentGuidesOverEmpty(), DrawIndicators(), Scintilla::EditView::DrawLine(), DrawTranslucentSelection(), Scintilla::Editor::Duplicate(), EnsureStyledTo(), EOLAnnotationSetStyle(), EOLAnnotationSetText(), Scintilla::EditView::FillLineRemainder(), FindColumn(), BuiltinRegex::FindText(), Scintilla::EditView::FormatRange(), GetColumn(), GetLastChild(), GetLineIndentation(), GetLineIndentPosition(), Scintilla::Editor::GoToLine(), Scintilla::Editor::HorizontalMove(), Scintilla::Editor::IdleWork(), Scintilla::Editor::Indent(), Indent(), Scintilla::Editor::InsertPasteShape(), IsLineStartPosition(), IsWhiteLine(), Scintilla::Editor::KeyCommand(), Scintilla::EditView::LayoutLine(), LineEnd(), Scintilla::Editor::LineReverse(), Scintilla::Editor::LineSelection(), Scintilla::Editor::LineSelectionRange(), Scintilla::Editor::LinesSplit(), Scintilla::Editor::LineTranspose(), Scintilla::EditView::LocationFromPosition(), MarginSetStyle(), MarginSetStyles(), MarginSetText(), Scintilla::Editor::MovePositionSoVisible(), Scintilla::Editor::MoveSelectedLines(), Scintilla::Editor::NotifyMarginClick(), Scintilla::Editor::NotifyMarginRightClick(), Scintilla::Editor::NotifyModified(), Scintilla::ScintillaBase::NotifyStyleToNeeded(), Scintilla::EditView::PaintText(), ParaDown(), ParaUp(), Scintilla::Editor::PositionAfterArea(), Scintilla::Editor::PositionAfterMaxStyling(), Scintilla::Editor::PositionUpOrDown(), Scintilla::EditView::RangeDisplayLine(), Scintilla::Editor::RedrawSelMargin(), Scintilla::EditView::RetrieveLineLayout(), SetLevel(), SetLineIndentation(), SetLineState(), Scintilla::Editor::SetTopLine(), Scintilla::EditView::SPositionFromLineX(), Scintilla::EditView::SPositionFromLocation(), Scintilla::EditView::StartEndDisplayLine(), VCHomePosition(), Scintilla::Editor::WndProc(), Scintilla::Editor::WordSelection(), and Scintilla::Editor::WrapLines().
|
noexcept |
Definition at line 2183 of file Document.cxx.
References cb, and Scintilla::CellBuffer::Lines().
Referenced by AddMark(), AddMarkSet(), AnnotationClearAll(), AnnotationSetStyle(), AnnotationSetStyles(), AnnotationSetText(), Scintilla::Editor::ClearDocumentStyle(), Scintilla::Editor::ContractedFoldNext(), DeleteAllMarks(), DeleteChars(), Scintilla::EditView::DrawIndentGuidesOverEmpty(), EOLAnnotationClearAll(), EOLAnnotationSetStyle(), EOLAnnotationSetText(), FindColumn(), Scintilla::Editor::FoldAll(), GetColumn(), GetLastChild(), GetLineIndentation(), Scintilla::Editor::GoToLine(), InsertString(), LineEnd(), MarginClearAll(), Scintilla::Editor::MoveSelectedLines(), ParaDown(), Scintilla::Editor::PasteRectangular(), Scintilla::Editor::PositionAfterMaxStyling(), Redo(), Scintilla::EditView::RetrieveLineLayout(), Scintilla::Editor::SetAnnotationHeights(), Scintilla::Editor::SetAnnotationVisible(), Scintilla::Editor::SetDocPointer(), SetLevel(), Scintilla::Editor::SPositionFromLineX(), Scintilla::EditView::SPositionFromLocation(), TentativeUndo(), Undo(), Scintilla::Editor::WndProc(), and Scintilla::Editor::WrapLines().
void Document::MarginClearAll | ( | ) |
Definition at line 2345 of file Document.cxx.
References Scintilla::LineAnnotation::ClearAll(), LinesTotal(), Margins(), and MarginSetText().
Referenced by Scintilla::Editor::ClearAll(), and Scintilla::Editor::WndProc().
|
privatenoexcept |
Definition at line 211 of file Document.cxx.
References ldMargin, and perLineData.
Referenced by MarginClearAll(), MarginSetStyle(), MarginSetStyles(), and MarginSetText().
void Document::MarginSetStyle | ( | Sci::Line | line, |
int | style | ||
) |
Definition at line 2333 of file Document.cxx.
References line, LineStart(), Margins(), NotifyModified(), SC_MOD_CHANGEMARGIN, and Scintilla::LineAnnotation::SetStyle().
Referenced by Scintilla::Editor::WndProc().
void Document::MarginSetStyles | ( | Sci::Line | line, |
const unsigned char * | styles | ||
) |
Definition at line 2339 of file Document.cxx.
References line, LineStart(), Margins(), NotifyModified(), SC_MOD_CHANGEMARGIN, and Scintilla::LineAnnotation::SetStyles().
Referenced by Scintilla::Editor::WndProc().
void Document::MarginSetText | ( | Sci::Line | line, |
const char * | text | ||
) |
Definition at line 2326 of file Document.cxx.
References line, LineStart(), Margins(), NotifyModified(), SC_MOD_CHANGEMARGIN, Scintilla::LineAnnotation::SetText(), and text.
Referenced by MarginClearAll(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2320 of file Document.cxx.
References Scintilla::LineAnnotation::Length(), line, Scintilla::LineAnnotation::MultipleStyles(), Scintilla::LineAnnotation::Style(), Scintilla::LineAnnotation::Styles(), and Scintilla::LineAnnotation::Text().
Referenced by Scintilla::MarginView::PaintMargin(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 391 of file Document.cxx.
References line.
Referenced by Scintilla::Editor::WndProc().
Definition at line 329 of file Document.cxx.
Referenced by Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 387 of file Document.cxx.
References line.
Referenced by Scintilla::Editor::WndProc().
|
privatenoexcept |
Definition at line 199 of file Document.cxx.
References ldMarkers, and perLineData.
Referenced by AddMark(), AddMarkSet(), DeleteAllMarks(), DeleteMark(), and DeleteMarkFromHandle().
bool Document::MatchesWordOptions | ( | bool | word, |
bool | wordStart, | ||
Sci::Position | pos, | ||
Sci::Position | length | ||
) | const |
Definition at line 1966 of file Document.cxx.
References IsWordAt(), IsWordStartAt(), pos, and Scintilla::word.
Referenced by FindText().
|
noexcept |
Definition at line 1188 of file Document.cxx.
References pos.
Referenced by DeleteChars(), InsertString(), Redo(), SetDBCSCodePage(), SetLineEndTypesAllowed(), TentativeUndo(), Undo(), and Scintilla::ScintillaBase::WndProc().
|
noexcept |
Definition at line 697 of file Document.cxx.
References pos, SC_CP_UTF8, and Scintilla::UTF8IsTrailByte().
Referenced by Scintilla::Editor::ButtonDownWithModifiers(), DrawBlockCaret(), Scintilla::EditView::DrawCarets(), DrawIndicators(), ExtendWordSelect(), BuiltinRegex::FindText(), FindText(), Scintilla::EditView::LayoutLine(), Scintilla::Editor::LineSelection(), Scintilla::Editor::MovePositionOutsideChar(), Scintilla::Editor::MoveSelectedLines(), Scintilla::ScintillaGTKAccessible::PositionAfter(), Scintilla::ScintillaGTKAccessible::PositionBefore(), Scintilla::EditView::SPositionFromLineX(), Scintilla::EditView::SPositionFromLocation(), Scintilla::Editor::WndProc(), and Scintilla::Editor::WordSelection().
|
noexcept |
|
noexcept |
Definition at line 764 of file Document.cxx.
References pos, SC_CP_UTF8, Scintilla::UTF8BytesOfLead, Scintilla::UTF8Classify(), Scintilla::UTF8IsAscii(), Scintilla::UTF8IsTrailByte(), Scintilla::UTF8MaskInvalid, Scintilla::UTF8MaskWidth, and Scintilla::UTF8MaxBytes.
Referenced by DelCharBack(), FindColumn(), FindText(), GetColumn(), and GetRelativePosition().
Sci::Position Document::NextWordEnd | ( | Sci::Position | pos, |
int | delta | ||
) | const |
Find the end of the next word in either a forward (delta >= 0) or backwards direction (delta < 0).
This is looking for a transition between character classes although there is also some additional movement to transit white space. Used by cursor movement by word commands.
Definition at line 1881 of file Document.cxx.
References Scintilla::CharClassify::ccSpace, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), pos, Scintilla::Document::CharacterExtracted::widthBytes, and WordCharacterClass().
Referenced by Scintilla::Editor::DelWordOrLine(), and Scintilla::Editor::HorizontalMove().
Sci::Position Document::NextWordStart | ( | Sci::Position | pos, |
int | delta | ||
) | const |
Find the start of the next word in either a forward (delta >= 0) or backwards direction (delta < 0).
This is looking for a transition between character classes although there is also some additional movement to transit white space. Used by cursor movement by word commands.
Definition at line 1837 of file Document.cxx.
References Scintilla::CharClassify::ccSpace, Scintilla::Document::CharacterExtracted::character, CharacterAfter(), CharacterBefore(), LengthNoExcept(), pos, Scintilla::Document::CharacterExtracted::widthBytes, and WordCharacterClass().
Referenced by Scintilla::Editor::DelWordOrLine(), and Scintilla::Editor::HorizontalMove().
|
private |
Definition at line 2480 of file Document.cxx.
References decorations, Scintilla::DocModification::length, Scintilla::DocModification::modificationType, Scintilla::DocModification::position, SC_MOD_DELETETEXT, SC_MOD_INSERTTEXT, and watchers.
Referenced by AddMark(), AddMarkSet(), AnnotationSetStyle(), AnnotationSetText(), ChangeLexerState(), DecorationFillRange(), DeleteAllMarks(), DeleteChars(), DeleteMark(), DeleteMarkFromHandle(), EOLAnnotationSetStyle(), EOLAnnotationSetText(), InsertString(), MarginSetStyle(), MarginSetStyles(), MarginSetText(), Redo(), SetLevel(), SetLineState(), SetStyleFor(), SetStyles(), TentativeUndo(), and Undo().
|
private |
|
private |
Definition at line 2474 of file Document.cxx.
References watchers.
Referenced by DeleteChars(), InsertString(), Redo(), SetSavePoint(), TentativeUndo(), and Undo().
|
delete |
|
noexcept |
Definition at line 1692 of file Document.cxx.
References cb, Scintilla::CellBuffer::HasStyles(), IsLarge(), SC_DOCUMENTOPTION_STYLES_NONE, and SC_DOCUMENTOPTION_TEXT_LARGE.
Referenced by Scintilla::Editor::WndProc().
Sci::Position Document::ParaDown | ( | Sci::Position | pos | ) | const |
Definition at line 1722 of file Document.cxx.
References IsWhiteLine(), line, LineEnd(), LineStart(), LinesTotal(), pos, and SciLineFromPosition().
Referenced by Scintilla::Editor::ParaUpOrDown().
Sci::Position Document::ParaUp | ( | Sci::Position | pos | ) | const |
Definition at line 1709 of file Document.cxx.
References IsWhiteLine(), line, LineStart(), pos, and SciLineFromPosition().
Referenced by Scintilla::Editor::ParaUpOrDown().
|
inlinenoexcept |
Definition at line 370 of file Document.h.
References position, and Scintilla::CellBuffer::RangePointer().
Referenced by Scintilla::Editor::WndProc().
Sci::Position Document::Redo | ( | ) |
Definition at line 1399 of file Document.cxx.
References Scintilla::Action::at, cb, CheckReadOnly(), Scintilla::containerAction, Scintilla::Action::data, enteredModification, Scintilla::CellBuffer::GetRedoStep(), Scintilla::insertAction, Scintilla::CellBuffer::IsCollectingUndo(), Scintilla::CellBuffer::IsReadOnly(), Scintilla::CellBuffer::IsSavePoint(), Scintilla::Action::lenData, LinesTotal(), ModifiedAt(), NotifyModified(), NotifySavePoint(), Scintilla::CellBuffer::PerformRedoStep(), Scintilla::Action::position, Scintilla::removeAction, SC_LASTSTEPINUNDOREDO, SC_MOD_BEFOREDELETE, SC_MOD_BEFOREINSERT, SC_MOD_CONTAINER, SC_MOD_DELETETEXT, SC_MOD_INSERTTEXT, SC_MULTILINEUNDOREDO, SC_MULTISTEPUNDOREDO, SC_PERFORMED_REDO, Scintilla::CellBuffer::StartRedo(), and Scintilla::DocModification::token.
Referenced by Scintilla::Editor::Redo().
|
overridevirtual |
Implements ILoader.
Definition at line 164 of file Document.cxx.
References refCount.
Referenced by Scintilla::Editor::SetDocPointer(), Scintilla::ScintillaGTK::SetDocPointer(), and Scintilla::EditModel::~EditModel().
void Document::ReleaseLineCharacterIndex | ( | int | lineCharacterIndex | ) |
Definition at line 2179 of file Document.cxx.
References cb, and Scintilla::CellBuffer::ReleaseLineCharacterIndex().
Referenced by Scintilla::ScintillaGTKAccessible::SetAccessibility(), and Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::PerLine.
Definition at line 192 of file Document.cxx.
References line, and perLineData.
bool Document::RemoveWatcher | ( | DocWatcher * | watcher, |
void * | userData | ||
) |
Definition at line 2458 of file Document.cxx.
References watchers.
Referenced by Scintilla::Editor::SetDocPointer(), and Scintilla::Editor::~Editor().
|
noexcept |
Definition at line 1145 of file Document.cxx.
References Scintilla::IsSpaceOrTab(), SC_CP_UTF8, text, and Scintilla::UTF8BytesOfLead.
Referenced by Scintilla::PositionCache::MeasureWidths(), and Scintilla::BreakFinder::Next().
|
noexcept |
Definition at line 441 of file Document.cxx.
References pos.
Referenced by Scintilla::Editor::CheckModificationForWrap(), Scintilla::Editor::CopySelectionRange(), Scintilla::Editor::DelCharBack(), Scintilla::EditView::DisplayFromPosition(), Scintilla::Editor::Duplicate(), EnsureStyledTo(), Scintilla::Editor::FoldLine(), Scintilla::EditView::FormatRange(), GetColumn(), Scintilla::Editor::Indent(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::KeyCommand(), Scintilla::Editor::LineReverse(), Scintilla::Editor::LineSelection(), Scintilla::Editor::LinesSplit(), Scintilla::Editor::LineTranspose(), Scintilla::EditView::LocationFromPosition(), Scintilla::Editor::MovedCaret(), Scintilla::Editor::MovePositionSoVisible(), Scintilla::Editor::MoveSelectedLines(), Scintilla::Editor::NeedShown(), Scintilla::Editor::NotifyMarginClick(), Scintilla::Editor::NotifyModified(), Scintilla::ScintillaBase::NotifyStyleToNeeded(), Scintilla::Editor::PageMove(), Scintilla::MarginView::PaintMargin(), Scintilla::EditView::PaintText(), ParaDown(), ParaUp(), Scintilla::Editor::ParaUpOrDown(), Scintilla::Editor::PasteRectangular(), Scintilla::Editor::PositionAfterMaxStyling(), Scintilla::Editor::PositionUpOrDown(), Scintilla::Editor::RealizeVirtualSpace(), Scintilla::Editor::RectangleFromRange(), Scintilla::EditView::RetrieveLineLayout(), Scintilla::Editor::SetEmptySelection(), Scintilla::Editor::SetRectangularRange(), Scintilla::Editor::SetSelection(), Scintilla::EditView::StartEndDisplayLine(), StyleToAdjustingLineDuration(), VCHomePosition(), Scintilla::Editor::VerticalCentreCaret(), and Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 1976 of file Document.cxx.
Referenced by Scintilla::Editor::FindText(), Scintilla::Editor::MultipleSelectAdd(), Scintilla::Editor::SearchInTarget(), Scintilla::Editor::SearchText(), SetDBCSCodePage(), and Scintilla::Editor::StyleSetMessage().
void Document::SetCharacterCategoryOptimization | ( | int | countCharacters | ) |
Definition at line 2199 of file Document.cxx.
References charMap, and Scintilla::CharacterCategoryMap::Optimize().
Referenced by Scintilla::Editor::WndProc().
void Document::SetCharClasses | ( | const unsigned char * | chars, |
CharClassify::cc | newCharClass | ||
) |
Definition at line 2191 of file Document.cxx.
References charClass, chars, and Scintilla::CharClassify::SetCharClasses().
Referenced by Scintilla::Editor::WndProc().
bool Document::SetDBCSCodePage | ( | int | dbcsCodePage_ | ) |
Definition at line 230 of file Document.cxx.
References cb, dbcsCodePage, lineEndBitSet, LineEndTypesSupported(), ModifiedAt(), SC_CP_UTF8, SetCaseFolder(), Scintilla::CellBuffer::SetLineEndTypes(), and Scintilla::CellBuffer::SetUTF8Substance().
Referenced by Scintilla::Editor::WndProc().
void Document::SetDefaultCharClasses | ( | bool | includeWordClass | ) |
Definition at line 2187 of file Document.cxx.
References charClass, and Scintilla::CharClassify::SetDefaultCharClasses().
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 479 of file Document.cxx.
References Scintilla::DocModification::foldLevelNow, Scintilla::DocModification::foldLevelPrev, Levels(), line, LineStart(), LinesTotal(), NotifyModified(), SC_MOD_CHANGEFOLD, SC_MOD_CHANGEMARKER, and Scintilla::LineLevels::SetLevel().
Referenced by Scintilla::Editor::WndProc().
|
noexcept |
Definition at line 2292 of file Document.cxx.
bool Document::SetLineEndTypesAllowed | ( | int | lineEndBitSet_ | ) |
Definition at line 243 of file Document.cxx.
References cb, Scintilla::CellBuffer::GetLineEndTypes(), lineEndBitSet, LineEndTypesSupported(), ModifiedAt(), and Scintilla::CellBuffer::SetLineEndTypes().
Referenced by Scintilla::Editor::WndProc().
Sci::Position Document::SetLineIndentation | ( | Sci::Line | line, |
Sci::Position | indent | ||
) |
Definition at line 1513 of file Document.cxx.
References CreateIndentation(), DeleteChars(), GetLineIndentation(), GetLineIndentPosition(), indent, InsertString(), line, LineStart(), tabInChars, and useTabs.
Referenced by Scintilla::Editor::DelCharBack(), Scintilla::Editor::Indent(), Indent(), Scintilla::Editor::RealizeVirtualSpace(), and Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 2296 of file Document.cxx.
References line, LineStart(), NotifyModified(), SC_MOD_CHANGELINESTATE, Scintilla::LineState::SetLineState(), and States().
Referenced by Scintilla::Editor::WndProc().
|
inline |
Definition at line 383 of file Document.h.
References set, and Scintilla::CellBuffer::SetReadOnly().
Referenced by Scintilla::Editor::WndProc().
void Document::SetSavePoint | ( | ) |
Definition at line 259 of file Document.cxx.
References cb, NotifySavePoint(), and Scintilla::CellBuffer::SetSavePoint().
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 2211 of file Document.cxx.
References cb, endStyled, enteredStyling, NotifyModified(), SC_MOD_CHANGESTYLE, SC_PERFORMED_USER, and Scintilla::CellBuffer::SetStyleFor().
Referenced by Scintilla::Editor::ClearDocumentStyle(), and Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 2228 of file Document.cxx.
References cb, endStyled, enteredStyling, Length(), NotifyModified(), PLATFORM_ASSERT, SC_MOD_CHANGESTYLE, SC_PERFORMED_USER, and Scintilla::CellBuffer::SetStyleAt().
Referenced by Scintilla::Editor::AddStyledText(), and Scintilla::Editor::WndProc().
|
inline |
Definition at line 354 of file Document.h.
References Scintilla::CellBuffer::SetUndoCollection().
Referenced by Scintilla::Editor::WndProc().
|
overridevirtual |
Implements Scintilla::IDocument.
Definition at line 2207 of file Document.cxx.
References endStyled, and position.
Referenced by Scintilla::Editor::AddStyledText(), Scintilla::Editor::ClearDocumentStyle(), and Scintilla::Editor::WndProc().
|
privatenoexcept |
Definition at line 207 of file Document.cxx.
References ldState, and perLineData.
Referenced by GetLineState(), GetMaxLineState(), and SetLineState().
|
inlineoverridevirtual |
Implements Scintilla::IDocument.
Definition at line 395 of file Document.h.
References position, and Scintilla::CellBuffer::StyleAt().
Referenced by Scintilla::LexInterface::Colourise(), Scintilla::ScintillaGTKAccessible::GetRunAttributes(), Scintilla::ScintillaGTKAccessible::StyleAt(), and Scintilla::Editor::WndProc().
|
inlinenoexcept |
Definition at line 396 of file Document.h.
References position, and Scintilla::CellBuffer::StyleAt().
Referenced by Scintilla::EditView::LayoutLine(), Scintilla::Editor::MovePositionOutsideChar(), Scintilla::Editor::PositionIsHotspot(), and Scintilla::Editor::StyleToPositionInView().
void Document::StyleToAdjustingLineDuration | ( | Sci::Position | pos | ) |
Definition at line 2273 of file Document.cxx.
References Scintilla::ActionDuration::AddSample(), Scintilla::ElapsedPeriod::Duration(), durationStyleOneLine, EnsureStyledTo(), GetEndStyled(), pos, and SciLineFromPosition().
Referenced by Scintilla::Editor::IdleStyling(), and Scintilla::Editor::StyleAreaBounded().
const char * Document::SubstituteByPosition | ( | const char * | text, |
Sci::Position * | length | ||
) |
Definition at line 2164 of file Document.cxx.
Referenced by Scintilla::Editor::GetTag(), and Scintilla::Editor::ReplaceTarget().
|
inlinenoexcept |
Definition at line 367 of file Document.h.
References Scintilla::CellBuffer::TentativeActive().
Referenced by Scintilla::ScintillaGTK::CommitThis(), Scintilla::ScintillaGTK::PreeditChangedInlineThis(), and TentativeUndo().
|
inline |
Definition at line 365 of file Document.h.
References Scintilla::CellBuffer::TentativeCommit().
|
inline |
Definition at line 364 of file Document.h.
References Scintilla::CellBuffer::TentativeStart().
Referenced by Scintilla::ScintillaGTK::PreeditChangedInlineThis().
void Document::TentativeUndo | ( | ) |
Definition at line 264 of file Document.cxx.
References Scintilla::Action::at, cb, CheckReadOnly(), Scintilla::containerAction, Scintilla::Action::data, enteredModification, Scintilla::CellBuffer::GetUndoStep(), Scintilla::insertAction, Scintilla::CellBuffer::IsReadOnly(), Scintilla::CellBuffer::IsSavePoint(), Scintilla::Action::lenData, LinesTotal(), ModifiedAt(), NotifyModified(), NotifySavePoint(), Scintilla::CellBuffer::PerformUndoStep(), Scintilla::Action::position, Scintilla::removeAction, SC_LASTSTEPINUNDOREDO, SC_MOD_BEFOREDELETE, SC_MOD_BEFOREINSERT, SC_MOD_CONTAINER, SC_MOD_DELETETEXT, SC_MOD_INSERTTEXT, SC_MULTILINEUNDOREDO, SC_MULTISTEPUNDOREDO, SC_PERFORMED_UNDO, TentativeActive(), Scintilla::CellBuffer::TentativeCommit(), Scintilla::CellBuffer::TentativeSteps(), and Scintilla::DocModification::token.
Referenced by Scintilla::ScintillaGTK::CommitThis(), and Scintilla::ScintillaGTK::PreeditChangedInlineThis().
|
static |
Definition at line 1632 of file Document.cxx.
References SC_EOL_CR, and SC_EOL_LF.
Referenced by Scintilla::Editor::DropAt(), Scintilla::ScintillaGTK::GetSelection(), Scintilla::Editor::InsertPasteShape(), and Scintilla::ScintillaGTKAccessible::PasteText().
Sci::Position Document::Undo | ( | ) |
Definition at line 1314 of file Document.cxx.
References Scintilla::Action::at, cb, CheckReadOnly(), Scintilla::containerAction, Scintilla::Action::data, enteredModification, Scintilla::CellBuffer::GetUndoStep(), Scintilla::insertAction, Scintilla::CellBuffer::IsCollectingUndo(), Scintilla::CellBuffer::IsReadOnly(), Scintilla::CellBuffer::IsSavePoint(), Scintilla::Action::lenData, LinesTotal(), Scintilla::Action::mayCoalesce, ModifiedAt(), NotifyModified(), NotifySavePoint(), Scintilla::CellBuffer::PerformUndoStep(), Scintilla::Action::position, Scintilla::removeAction, SC_LASTSTEPINUNDOREDO, SC_MOD_BEFOREDELETE, SC_MOD_BEFOREINSERT, SC_MOD_CONTAINER, SC_MOD_DELETETEXT, SC_MOD_INSERTTEXT, SC_MULTILINEUNDOREDO, SC_MULTISTEPUNDOREDO, SC_PERFORMED_UNDO, Scintilla::CellBuffer::StartUndo(), and Scintilla::DocModification::token.
Referenced by Scintilla::Editor::Undo().
Sci::Position Document::VCHomePosition | ( | Sci::Position | position | ) | const |
Definition at line 458 of file Document.cxx.
References cb, Scintilla::CellBuffer::CharAt(), line, LineEnd(), LineStart(), position, and SciLineFromPosition().
Referenced by Scintilla::Editor::HorizontalMove(), Scintilla::Editor::VCHomeDisplayPosition(), and Scintilla::Editor::VCHomeWrapPosition().
|
inlineoverridevirtual |
Implements Scintilla::IDocument.
Definition at line 311 of file Document.h.
References Scintilla::dvLineEnd.
CharClassify::cc Document::WordCharacterClass | ( | unsigned int | ch | ) | const |
Definition at line 1736 of file Document.cxx.
References Scintilla::CharacterCategoryMap::CategoryFor(), Scintilla::ccCc, Scintilla::ccCf, Scintilla::ccCn, Scintilla::ccCo, Scintilla::ccCs, Scintilla::ccLl, Scintilla::ccLm, Scintilla::ccLo, Scintilla::ccLt, Scintilla::ccLu, Scintilla::ccMc, Scintilla::ccMe, Scintilla::ccMn, Scintilla::ccNd, Scintilla::CharClassify::ccNewLine, Scintilla::ccNl, Scintilla::ccNo, Scintilla::ccPc, Scintilla::ccPd, Scintilla::ccPe, Scintilla::ccPf, Scintilla::ccPi, Scintilla::ccPo, Scintilla::ccPs, Scintilla::CharClassify::ccPunctuation, Scintilla::ccSc, Scintilla::ccSk, Scintilla::ccSm, Scintilla::ccSo, Scintilla::CharClassify::ccSpace, Scintilla::CharClassify::ccWord, Scintilla::ccZl, Scintilla::ccZp, Scintilla::ccZs, charClass, charMap, dbcsCodePage, Scintilla::CharClassify::GetClass(), SC_CP_UTF8, and Scintilla::UTF8IsAscii().
Referenced by ExtendWordSelect(), IsWordEndAt(), IsWordPartSeparator(), IsWordStartAt(), NextWordEnd(), and NextWordStart().
Sci::Position Document::WordPartLeft | ( | Sci::Position | pos | ) | const |
Definition at line 2536 of file Document.cxx.
References Scintilla::Document::CharacterExtracted::character, Scintilla::character, CharacterAfter(), CharacterBefore(), Scintilla::IsADigit(), Scintilla::IsASCII(), IsASCIIPunctuationCharacter(), Scintilla::IsLowerCase(), Scintilla::isspacechar(), Scintilla::IsUpperCase(), IsWordPartSeparator(), pos, and Scintilla::Document::CharacterExtracted::widthBytes.
Referenced by Scintilla::Editor::HorizontalMove().
Sci::Position Document::WordPartRight | ( | Sci::Position | pos | ) | const |
Definition at line 2586 of file Document.cxx.
References Scintilla::Document::CharacterExtracted::character, Scintilla::character, CharacterAfter(), CharacterBefore(), Scintilla::IsADigit(), Scintilla::IsASCII(), IsASCIIPunctuationCharacter(), Scintilla::IsLowerCase(), Scintilla::isspacechar(), Scintilla::IsUpperCase(), IsWordPartSeparator(), LengthNoExcept(), pos, and Scintilla::Document::CharacterExtracted::widthBytes.
Referenced by Scintilla::Editor::HorizontalMove().
int Scintilla::Document::actualIndentInChars |
Definition at line 280 of file Document.h.
Referenced by Document(), and Scintilla::Editor::WndProc().
bool Scintilla::Document::backspaceUnindents |
Definition at line 283 of file Document.h.
Referenced by Scintilla::Editor::DelCharBack(), Document(), and Scintilla::Editor::WndProc().
|
private |
Definition at line 231 of file Document.h.
Referenced by AllocateLineCharacterIndex(), CheckReadOnly(), ConvertLineEnds(), DeleteChars(), Document(), FindColumn(), FindText(), GetCharacterAndWidth(), GetColumn(), GetLineIndentation(), GetLineIndentPosition(), InsertString(), IsWhiteLine(), LineCharacterIndex(), LineEnd(), LineFromPosition(), LineStart(), LinesTotal(), Options(), Redo(), ReleaseLineCharacterIndex(), SetDBCSCodePage(), SetLineEndTypesAllowed(), SetSavePoint(), SetStyleFor(), SetStyles(), TentativeUndo(), Undo(), and VCHomePosition().
|
private |
Definition at line 232 of file Document.h.
Referenced by FindText(), GetCharsOfClass(), SetCharClasses(), SetDefaultCharClasses(), and WordCharacterClass().
|
private |
Definition at line 233 of file Document.h.
Referenced by CharacterCategoryOptimization(), SetCharacterCategoryOptimization(), and WordCharacterClass().
int Scintilla::Document::dbcsCodePage |
Can also be SC_CP_UTF8 to enable UTF-8 mode.
Definition at line 276 of file Document.h.
Referenced by Scintilla::ScintillaGTK::CaseFolderForEncoding(), Scintilla::Editor::CodePage(), CodePage(), CodePageFamily(), Scintilla::Editor::CopyRangeToClipboard(), Scintilla::Editor::CopySelectionRange(), Scintilla::Editor::CopyText(), DelCharBack(), Document(), FindText(), GetCharacterAndWidth(), Scintilla::ScintillaGTK::GetGtkSelectionText(), GetRelativePosition(), Scintilla::Editor::InsertCharacter(), Scintilla::Editor::IsUnicodeMode(), LineEndTypesSupported(), Scintilla::EditView::PaintText(), SetDBCSCodePage(), Scintilla::Editor::SetRepresentations(), Scintilla::Editor::WndProc(), and WordCharacterClass().
std::unique_ptr<IDecorationList> Scintilla::Document::decorations |
Definition at line 286 of file Document.h.
Referenced by Scintilla::BreakFinder::BreakFinder(), Scintilla::Editor::ClearDocumentStyle(), DecorationFillRange(), DecorationSetCurrentIndicator(), Document(), Scintilla::EditView::DrawForeground(), DrawIndicators(), Scintilla::Editor::NotifyIndicatorClick(), NotifyModified(), Scintilla::Editor::SetHoverIndicatorPosition(), and Scintilla::Editor::WndProc().
ActionDuration Scintilla::Document::durationStyleOneLine |
Definition at line 284 of file Document.h.
Referenced by Scintilla::Editor::PositionAfterMaxStyling(), and StyleToAdjustingLineDuration().
|
private |
Definition at line 235 of file Document.h.
Referenced by Document(), SetStyleFor(), SetStyles(), and StartStyling().
|
private |
Definition at line 237 of file Document.h.
Referenced by DeleteChars(), Document(), InsertString(), Redo(), TentativeUndo(), and Undo().
|
private |
Definition at line 239 of file Document.h.
Referenced by CheckReadOnly(), and Document().
|
private |
Definition at line 238 of file Document.h.
Referenced by Document(), EnsureStyledTo(), SetStyleFor(), and SetStyles().
int Scintilla::Document::eolMode |
Definition at line 274 of file Document.h.
Referenced by Scintilla::Editor::CopySelectionRange(), Document(), Scintilla::Editor::DropAt(), Scintilla::Editor::Duplicate(), Scintilla::Editor::InsertPasteShape(), Scintilla::Editor::LinesSplit(), Scintilla::Editor::MoveSelectedLines(), Scintilla::Editor::NewLine(), Scintilla::Editor::PasteRectangular(), Scintilla::ScintillaGTKAccessible::PasteText(), and Scintilla::Editor::WndProc().
int Scintilla::Document::indentInChars |
Definition at line 279 of file Document.h.
Referenced by Document(), and Scintilla::Editor::WndProc().
|
private |
Definition at line 242 of file Document.h.
Referenced by ChangeInsertion(), and InsertString().
|
private |
Definition at line 241 of file Document.h.
Referenced by ChangeInsertion(), Document(), and InsertString().
int Scintilla::Document::lineEndBitSet |
Definition at line 277 of file Document.h.
Referenced by Document(), SetDBCSCodePage(), and SetLineEndTypesAllowed().
|
private |
Definition at line 256 of file Document.h.
Referenced by Document().
|
private |
Definition at line 234 of file Document.h.
Referenced by FindText(), and HasCaseFolder().
Definition at line 248 of file Document.h.
Referenced by Annotations(), Document(), EOLAnnotations(), Init(), InsertLine(), InsertLines(), Levels(), Margins(), Markers(), RemoveLine(), and States().
|
private |
Definition at line 258 of file Document.h.
Referenced by EnsureStyledTo(), GetLexInterface(), and LineEndTypesSupported().
|
private |
Definition at line 230 of file Document.h.
Referenced by AddRef(), Document(), and Release().
|
private |
Definition at line 257 of file Document.h.
Referenced by FindText(), and SubstituteByPosition().
|
private |
Definition at line 236 of file Document.h.
Referenced by Document(), and IncrementStyleClock().
int Scintilla::Document::tabInChars |
Definition at line 278 of file Document.h.
Referenced by Document(), FindColumn(), Scintilla::EditView::FormatRange(), GetColumn(), GetLineIndentation(), Scintilla::Editor::Indent(), Scintilla::Editor::RefreshStyleData(), SetLineIndentation(), and Scintilla::Editor::WndProc().
bool Scintilla::Document::tabIndents |
Definition at line 282 of file Document.h.
Referenced by Document(), Scintilla::Editor::Indent(), and Scintilla::Editor::WndProc().
bool Scintilla::Document::useTabs |
Definition at line 281 of file Document.h.
Referenced by Document(), Scintilla::Editor::Indent(), SetLineIndentation(), and Scintilla::Editor::WndProc().
|
private |
Definition at line 244 of file Document.h.
Referenced by AddWatcher(), EnsureStyledTo(), LexerChanged(), NotifyModified(), NotifyModifyAttempt(), NotifySavePoint(), RemoveWatcher(), SetErrorStatus(), and ~Document().