Changeset View
Changeset View
Standalone View
Standalone View
src/lib/definition.h
Show First 20 Lines • Show All 299 Lines • ▼ Show 20 Line(s) | 86 | public: | |||
---|---|---|---|---|---|
300 | 300 | | |||
301 | /** | 301 | /** | ||
302 | * Returns the markers that start and end multiline comments. | 302 | * Returns the markers that start and end multiline comments. | ||
303 | * For instance, in XML this is defined as "<!--" and "-->". | 303 | * For instance, in XML this is defined as "<!--" and "-->". | ||
304 | * @since 5.50 | 304 | * @since 5.50 | ||
305 | */ | 305 | */ | ||
306 | QPair<QString, QString> multiLineCommentMarker() const; | 306 | QPair<QString, QString> multiLineCommentMarker() const; | ||
307 | 307 | | |||
308 | /** | ||||
309 | * Returns a list of character/string mapping that can be used for spell | ||||
310 | * checking. This is useful for instance when spell checking LaTeX, where | ||||
311 | * the string \"{A} represents the character Ä. | ||||
312 | * @since 5.50 | ||||
313 | */ | ||||
314 | QVector<QPair<QChar, QString>> characterEncodings() const; | ||||
315 | | ||||
308 | private: | 316 | private: | ||
309 | friend class DefinitionData; | 317 | friend class DefinitionData; | ||
310 | friend class DefinitionRef; | 318 | friend class DefinitionRef; | ||
311 | explicit Definition(const std::shared_ptr<DefinitionData> &dd); | 319 | explicit Definition(const std::shared_ptr<DefinitionData> &dd); | ||
312 | std::shared_ptr<DefinitionData> d; | 320 | std::shared_ptr<DefinitionData> d; | ||
313 | }; | 321 | }; | ||
314 | 322 | | |||
315 | } | 323 | } | ||
316 | 324 | | |||
317 | Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Definition, Q_MOVABLE_TYPE); | 325 | Q_DECLARE_TYPEINFO(KSyntaxHighlighting::Definition, Q_MOVABLE_TYPE); | ||
318 | 326 | | |||
319 | #endif | 327 | #endif |