File indexing completed on 2024-05-19 04:39:20
0001 /* 0002 SPDX-FileCopyrightText: 2006 Hamish Rodda <rodda@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef KDEVPLATFORM_ICODEHIGHLIGHTING_H 0008 #define KDEVPLATFORM_ICODEHIGHLIGHTING_H 0009 0010 #include <language/languageexport.h> 0011 0012 namespace KDevelop { 0013 class ReferencedTopDUContext; 0014 class Declaration; 0015 class DUContext; 0016 class Use; 0017 class IndexedString; 0018 0019 /** 0020 @short KDevelop text highlighting support interface 0021 The base class for language support text highlighting 0022 routines. Languages can apply highlighting to parsed code here. 0023 */ 0024 class KDEVPLATFORMLANGUAGE_EXPORT ICodeHighlighting 0025 { 0026 public: 0027 virtual ~ICodeHighlighting() {} 0028 0029 virtual void highlightDUChain(ReferencedTopDUContext context) = 0; 0030 virtual bool hasHighlighting(IndexedString url) const = 0; 0031 }; 0032 } 0033 0034 Q_DECLARE_INTERFACE(KDevelop::ICodeHighlighting, "org.kdevelop.ICodeHighlighting") 0035 0036 #endif // KDEVPLATFORM_ICODEHIGHLIGHTING_H