• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

  • kde-4.14
  • applications
  • kate
  • part
  • syntax
kateextendedattribute.h
Go to the documentation of this file.
1 /* This file is part of the KDE libraries
2  Copyright (C) 2001,2002 Joseph Wenninger <jowenn@kde.org>
3  Copyright (C) 2001 Christoph Cullmann <cullmann@kde.org>
4  Copyright (C) 1999 Jochen Wilhelmy <digisnap@cs.tu-berlin.de>
5 
6  This library is free software; you can redistribute it and/or
7  modify it under the terms of the GNU Library General Public
8  License version 2 as published by the Free Software Foundation.
9 
10  This library is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  Library General Public License for more details.
14 
15  You should have received a copy of the GNU Library General Public License
16  along with this library; see the file COPYING.LIB. If not, write to
17  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  Boston, MA 02110-1301, USA.
19 */
20 
21 #ifndef KATEEXTENDEDATTRIBUTE_H
22 #define KATEEXTENDEDATTRIBUTE_H
23 
24 #include <ktexteditor/attribute.h>
25 
26 class KateExtendedAttribute;
27 
28 typedef QList<KTextEditor::Attribute::Ptr> KateAttributeList;
29 
35 class KateExtendedAttribute : public KTextEditor::Attribute
36 {
37  public:
38  typedef KSharedPtr<KateExtendedAttribute> Ptr;
39 
40  explicit KateExtendedAttribute(const QString& name, int defaultStyleIndex = -1);
41 
42  enum InternalProperties {
43  AttributeName = AttributeInternalProperty,
44  AttributeDefaultStyleIndex,
45  Spellchecking
46  };
47 
48  static int indexForStyleName(const QString& name);
49 
50  QString name() const;
51  void setName(const QString& name);
52 
53  bool isDefaultStyle() const;
54  int defaultStyleIndex() const;
55  void setDefaultStyleIndex(int index);
56 
57  bool performSpellchecking() const;
58  void setPerformSpellchecking(bool spellchecking);
59 };
60 
61 #endif
KateExtendedAttribute::AttributeName
Definition: kateextendedattribute.h:43
KateExtendedAttribute::defaultStyleIndex
int defaultStyleIndex() const
Definition: kateextendedattribute.cpp:69
KateExtendedAttribute::Ptr
KSharedPtr< KateExtendedAttribute > Ptr
Definition: kateextendedattribute.h:38
KateExtendedAttribute::AttributeDefaultStyleIndex
Definition: kateextendedattribute.h:44
KateExtendedAttribute::setDefaultStyleIndex
void setDefaultStyleIndex(int index)
Definition: kateextendedattribute.cpp:74
KateExtendedAttribute::name
QString name() const
Definition: kateextendedattribute.cpp:54
KateExtendedAttribute::performSpellchecking
bool performSpellchecking() const
Definition: kateextendedattribute.cpp:79
QString
QList< KTextEditor::Attribute::Ptr >
KateExtendedAttribute::Spellchecking
Definition: kateextendedattribute.h:45
KateExtendedAttribute::indexForStyleName
static int indexForStyleName(const QString &name)
Definition: kateextendedattribute.cpp:34
KateExtendedAttribute::KateExtendedAttribute
KateExtendedAttribute(const QString &name, int defaultStyleIndex=-1)
Definition: kateextendedattribute.cpp:27
KateExtendedAttribute::isDefaultStyle
bool isDefaultStyle() const
Definition: kateextendedattribute.cpp:64
KateExtendedAttribute::setName
void setName(const QString &name)
Definition: kateextendedattribute.cpp:59
KateExtendedAttribute::setPerformSpellchecking
void setPerformSpellchecking(bool spellchecking)
Definition: kateextendedattribute.cpp:84
KateExtendedAttribute::InternalProperties
InternalProperties
Definition: kateextendedattribute.h:42
KateExtendedAttribute
An extension of the KTextEditor::Attribute class, with convenience functions for access to extra kate...
Definition: kateextendedattribute.h:35
KateAttributeList
QList< KTextEditor::Attribute::Ptr > KateAttributeList
Definition: kateextendedattribute.h:26
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat May 9 2020 03:56:58 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal