Kate
kateextendedattribute.h
Go to the documentation of this file.
00001 /* This file is part of the KDE libraries 00002 Copyright (C) 2001,2002 Joseph Wenninger <jowenn@kde.org> 00003 Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org> 00004 Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de> 00005 00006 This library is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU Library General Public 00008 License version 2 as published by the Free Software Foundation. 00009 00010 This library is distributed in the hope that it will be useful, 00011 but WITHOUT ANY WARRANTY; without even the implied warranty of 00012 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00013 Library General Public License for more details. 00014 00015 You should have received a copy of the GNU Library General Public License 00016 along with this library; see the file COPYING.LIB. If not, write to 00017 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 00018 Boston, MA 02110-1301, USA. 00019 */ 00020 00021 #ifndef KATEEXTENDEDATTRIBUTE_H 00022 #define KATEEXTENDEDATTRIBUTE_H 00023 00024 #include <ktexteditor/attribute.h> 00025 00026 class KateExtendedAttribute; 00027 00028 typedef QList<KTextEditor::Attribute::Ptr> KateAttributeList; 00029 00035 class KateExtendedAttribute : public KTextEditor::Attribute 00036 { 00037 public: 00038 typedef KSharedPtr<KateExtendedAttribute> Ptr; 00039 00040 explicit KateExtendedAttribute(const QString& name, int defaultStyleIndex = -1); 00041 00042 enum InternalProperties { 00043 AttributeName = AttributeInternalProperty, 00044 AttributeDefaultStyleIndex, 00045 Spellchecking 00046 }; 00047 00048 static int indexForStyleName(const QString& name); 00049 00050 QString name() const; 00051 void setName(const QString& name); 00052 00053 bool isDefaultStyle() const; 00054 int defaultStyleIndex() const; 00055 void setDefaultStyleIndex(int index); 00056 00057 bool performSpellchecking() const; 00058 void setPerformSpellchecking(bool spellchecking); 00059 }; 00060 00061 #endif
KDE 4.6 API Reference