• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.9.4 API Reference
  • KDE Home
  • Contact Us
 

kpimtextedit/richtextbuilders

  • kpimtextedit
  • richtextbuilders
kplaintextmarkupbuilder.h
1 /*
2  This file is part of KDE.
3 
4  Copyright (c) 2008 Stephen Kelly <steveire@gmail.com>
5 
6  This library is free software; you can redistribute it and/or modify it
7  under the terms of the GNU Library General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or (at your
9  option) any later version.
10 
11  This library is distributed in the hope that it will be useful, but WITHOUT
12  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
14  License for more details.
15 
16  You should have received a copy of the GNU Library General Public License
17  along with this library; see the file COPYING.LIB. If not, write to the
18  Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19  02110-1301, USA.
20 */
21 
22 #ifndef KPLAINTEXTMARKUPBUILDER_H
23 #define KPLAINTEXTMARKUPBUILDER_H
24 
25 #define LETTERSINALPHABET 26
26 #define DIGITSOFFSET 10
27 
28 #include <kdebug.h>
29 
30 #include "kabstractmarkupbuilder.h"
31 
32 class KPlainTextMarkupBuilderPrivate;
33 
89 class KPlainTextMarkupBuilder : public KAbstractMarkupBuilder
90 {
91 public:
93  KPlainTextMarkupBuilder();
94 
95  virtual void beginStrong();
96  virtual void endStrong();
97  virtual void beginEmph();
98  virtual void endEmph();
99  virtual void beginUnderline();
100  virtual void endUnderline();
101  virtual void beginStrikeout();
102  virtual void endStrikeout();
103 
104  virtual void beginAnchor(const QString &href = QString(), const QString &name = QString());
105 
106  virtual void endAnchor();
107 
108  virtual void endParagraph();
109  virtual void addNewline();
110 
111  virtual void insertHorizontalRule(int width = -1);
112 
113  virtual void insertImage(const QString &src, qreal width, qreal height);
114 
115 
116  virtual void beginList(QTextListFormat::Style style);
117 
118  virtual void endList();
119 
120  virtual void beginListItem();
121 
122  virtual void endListItem();
123 
124 
125  virtual void beginSuperscript();
126 
127  virtual void endSuperscript();
128 
129  virtual void beginSubscript();
130 
131  virtual void endSubscript();
132 
133  virtual void appendLiteralText(const QString &text);
134 
138  virtual QString& getResult();
139 
140 private:
141  KPlainTextMarkupBuilderPrivate *d_ptr;
142  Q_DECLARE_PRIVATE(KPlainTextMarkupBuilder)
143 
144 
145 };
146 
147 #endif
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Tue Dec 11 2012 12:13:25 by doxygen 1.8.1.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kpimtextedit/richtextbuilders

Skip menu "kpimtextedit/richtextbuilders"
  • Main Page
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Related Pages

kdepimlibs-4.9.4 API Reference

Skip menu "kdepimlibs-4.9.4 API Reference"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
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