aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
AgeCommit message (Collapse)AuthorFilesLines
2021-09-28Widen styleNumber in PositionCacheEntry from 8 to 16 bits to allow stylesNeil1-0/+1
larger than 255 to be represented. Before this, it may have been possible but extremely rare for a cache entry to wrongly match a styled lexeme and produce incorrect layout. Using uint16_t from cstdint instead of a bit field as tools perform more checking on that.
2021-08-22Encapsulate an ILexer5* in LexerInstance class to simplify client code.Neil1-31/+2
2021-07-17Add SCI_AUTOCSETOPTIONS to allow choosing a non-resizeable autocompletion listNeil1-4/+12
on Win32. This also avoids a header rectangle above the list.
2021-06-11Use more natural type avoiding cast and warning.Neil1-2/+2
2021-06-09Reduce casts by defining methods for common conversions.Neil1-6/+6
2021-05-24Define C++ version of the Scintilla API in ScintillaTypes.h, ScintillaMessages.hNeil1-169/+172
and ScintillaStructures.h using scoped enumerations. Use these headers instead of Scintilla.h internally. External definitions go in the Scintilla namespace and internal definitio0ns in Scintilla::Internal.
2021-05-22Rename ColourAlpha to ColourRGBA to avoid clashes when a ColourAlpha typedefNeil1-3/+3
will be published in externally visible header.
2021-05-05Remove deprecated AddCharUTF method.Neil1-4/+0
2021-04-27Rename CharacterSet and CharacterCategory modules in Scintilla to CharacterTypeNeil1-1/+1
and CharacterCategoryMap to avoid clashes with Lexilla when building an executable that includes both.
2021-04-25Feature [feature-requests:#1402]. Unify colour type with ColourAlpha.Neil1-3/+3
Change ColourDesired to ColourAlpha in styles. Remove ColourDesired.
2021-04-20Bug [#2027]. Implement font locale SCI_SETFONTLOCALE on Win32 using DirectWrite.Neil1-0/+1
2021-03-29Add SCI_SETELEMENTCOLOUR and related APIs to change colours of visible elements.Neil1-0/+9
Implement SC_ELEMENT_LIST* to change colours of autocompletion lists.
2021-03-19Protect against exceptions from ILexer5::Release as called inside destructor.Neil1-2/+10
2021-03-18std::optional is a basic vocabulary type that may be used widely so includeNeil1-0/+1
almost everywhere.
2021-03-18Move assert and debug trace functions into their own header Debugging.h.Neil1-0/+1
PLATFORM_ASSERT is used in data structure headers which led to including graphics and windowing APIs in data structure modules.
2021-03-17Change Font to an interface and stop using FontID. Fonts are shared andNeil1-1/+1
reference counted using std::shared_ptr. This optimizes memory and reduces potential for allocation bugs.
2021-03-17Extract geometry and colour definitions from Platform.h into src/Geometry.h.Neil1-0/+1
2021-02-04Use message parameter converter as passing pointers in sptr_t is a standard partNeil1-2/+2
of message handling and this avoids reinterpret-cast warnings.
2021-02-04Make LexState constructor noexcept as it only calls its superclass constructorNeil1-2/+2
which is noexcept.
2021-02-04Feature [feature-requests:1391]. Remove unused fields from LexState.Zufu Liu1-15/+5
Removes checks for ILexer version so requires ILexer5 to be fully implemented.
2020-11-02Remove support for local lexers and loading lexers from ScintillaBase.Neil1-82/+26
2020-04-05Implement access to the identifier of an ILexer5. This also stops unexpectedNeil1-2/+14
container lexing when a lexer is set.
2020-03-31Pass argument as unique_ptr to show transfer of ownership. Add const and ↵Neil1-1/+1
noexcept.
2020-03-27Avoid casts by returning size_t from GetExpanded.Neil1-2/+2
2020-03-29Widen types to size_t to match change from int to position of CallTipSetHltNeil1-3/+3
in Scintilla.iface.
2020-03-25Replace static_cast with dynamic_cast for better type safety and adherence toNeil1-1/+1
C++ Core Guidelines C.146.
2019-12-31Implement SCI_SETILEXER.Neil1-16/+27
2019-12-13Lexilla implemented as loadable lexer.Neil1-2/+0
2019-12-31Move collection of modules from Catalogue.cxx to CatalogueModules.h so it canNeil1-0/+3
be reused.
2019-12-13Hide details of ExternalLexer and export ExternalLexerLoad function only.Neil1-1/+1
2019-12-13Move SCI_LOADLEXERLIBRARY from platform layers to ScintillaBase.cxx.Neil1-0/+8
This allows removal of related #include statements.
2019-06-30Bug [#2038]. Source of input reported in SCN_CHARADDED.Zufu Liu1-4/+4
This may be SC_CHARACTERSOURCE_DIRECT_INPUT, SC_CHARACTERSOURCE_TENTATIVE_INPUT, or SC_CHARACTERSOURCE_IME_RESULT.
2019-06-17Feature [feature-requests:#1293]. InsertCharacter replaces AddCharUTF.Zufu Liu1-5/+9
2019-03-29Include "CharacterCategory.h" in all files that include "Document.h" as it willNeil1-0/+1
be needed for adding a CharacterCategory feature.
2019-03-18Add some operators to Point to simplify client code.Neil1-6/+2
2018-10-11Replace NULL and 0 with nullptr in clear cases of pure C++ code.Neil1-13/+13
2018-05-14Modernize Platform.h (2) - noexcept, const, constexpr.Neil1-3/+3
ColourDesired is an int instead of long for consistency over different platforms. Changes made to Point, PRectangle, and ColourDesired. RoundXYPosition removed.
2018-05-14Modernize Platform.h (1) - noexcept, const, standard methods.Neil1-5/+5
Changes made to FontParameters, Font, Window, ListBoxEvent, ListBox, Menu, DynamicLibrary, and Platform.
2018-05-14Include <string_view> to allow future use in Platform interface and Unicode.Neil1-0/+1
2018-05-03Simplify PropSetSimple, avoid casts, use nullptr.Neil1-1/+1
2018-05-01Bug [#2012]. Use '0' instead of '0l'.Neil1-1/+1
2018-04-28Delete standard functions on classes where there could be attempts to copy.Neil1-0/+5
2018-04-25Use set of coercion functions for transforming WndProc parameters into pointers.Neil1-20/+20
2018-04-25Remove casts that are not needed since sptr_t and Sci::Position are the same ↵Neil1-3/+2
type.
2018-04-19Casting changed in many places, due to change to 64-bit variables for 64-bitNeil1-11/+11
builds. Some of the changes ensure no truncation while others remove casts that are no longer needed because the externally visible Sci_Position is now identical to Sci::Position. Some extra methods (CellBuffer::UCharAt and Document::SciLineFromPosition) added to avoid casting in client code. Sci::Line is currently identical to Sci::Position but it could be made smaller so lines have Sci::Line types and are cast. Some arguments widened.
2018-04-05Backed out changeset: 7402342dc7a3 Caching client rectangle on EditView.Neil1-2/+2
This change was not compatible with Cocoa as it uses document-based coordinates rather than view-based.
2018-04-04Cache client rectangle on EditView so it can be used easily inside EditView.Neil1-2/+2
2018-03-15Use forward class definitions of XPM and RGBAImage so only code that uses themNeil1-1/+0
needs to #include "XPM.h". Move definition of standard methods on LineMarker from header to implementation to reduce included text and further isolate use of XPM and RGBAImage.
2018-03-09Use Position/Line/int more accurately in preparation for large documents.Neil1-6/+6
2018-03-01Mark variables as const where simple.Neil1-15/+15