File indexing completed on 2024-04-21 03:57:43
0001 /* 0002 SPDX-FileCopyrightText: 2001, 2002 Joseph Wenninger <jowenn@kde.org> 0003 SPDX-FileCopyrightText: 2001 Christoph Cullmann <cullmann@kde.org> 0004 SPDX-FileCopyrightText: 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de> 0005 0006 SPDX-License-Identifier: LGPL-2.0-or-later 0007 */ 0008 0009 #ifndef KATEEXTENDEDATTRIBUTE_H 0010 #define KATEEXTENDEDATTRIBUTE_H 0011 0012 #include <ktexteditor/attribute.h> 0013 0014 /** 0015 * Custom property types, which may or may not be supported by implementations. 0016 * Internally used 0017 */ 0018 enum CustomProperties { 0019 /// Draws an outline around the text 0020 Outline = QTextFormat::UserProperty, 0021 /// Changes the brush used to paint the text when it is selected 0022 SelectedForeground, 0023 /// Changes the brush used to paint the background when it is selected 0024 SelectedBackground, 0025 /// Determines whether background color is drawn over whitespace. Defaults to true. 0026 BackgroundFillWhitespace, 0027 /// Defined to allow storage of dynamic effect information 0028 AttributeDynamicEffect = 0x10A00, 0029 /// Defined for internal usage of KTextEditor implementations 0030 AttributeInternalProperty = 0x10E00, 0031 AttributeName = AttributeInternalProperty, 0032 AttributeDefaultStyleIndex, 0033 Spellchecking, 0034 /// Defined to allow 3rd party code to create their own custom attributes - you may use values at or above this property. 0035 AttributeUserProperty = 0x110000 0036 }; 0037 0038 typedef QList<KTextEditor::Attribute::Ptr> KateAttributeList; 0039 0040 #endif