• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kpimidentities/richtextbuilders

kplaintextmarkupbuilder.h

00001 /*
00002     This file is part of KDE.
00003 
00004     Copyright (c) 2008 Stephen Kelly <steveire@gmail.com>
00005 
00006     This library is free software; you can redistribute it and/or modify it
00007     under the terms of the GNU Library General Public License as published by
00008     the Free Software Foundation; either version 2 of the License, or (at your
00009     option) any later version.
00010 
00011     This library is distributed in the hope that it will be useful, but WITHOUT
00012     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00013     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
00014     License for more details.
00015 
00016     You should have received a copy of the GNU Library General Public License
00017     along with this library; see the file COPYING.LIB.  If not, write to the
00018     Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00019     02110-1301, USA.
00020 */
00021 
00022 #ifndef KPLAINTEXTMARKUPBUILDER_H
00023 #define KPLAINTEXTMARKUPBUILDER_H
00024 
00025 #define LETTERSINALPHABET 26
00026 #define DIGITSOFFSET 10
00027 
00028 #include <kdebug.h>
00029 
00030 #include "kabstractmarkupbuilder.h"
00031 
00032 class KPlainTextMarkupBuilderPrivate;
00033 
00089 class KPlainTextMarkupBuilder : public KAbstractMarkupBuilder
00090 {
00091 public:
00093     KPlainTextMarkupBuilder();
00094 
00095     virtual void beginStrong();
00096     virtual void endStrong();
00097     virtual void beginEmph();
00098     virtual void endEmph();
00099     virtual void beginUnderline();
00100     virtual void endUnderline();
00101     virtual void beginStrikeout();
00102     virtual void endStrikeout();
00103 
00104     virtual void beginAnchor(const QString &href = QString(), const QString &name = QString());
00105 
00106     virtual void endAnchor();
00107 
00108     virtual void endParagraph();
00109     virtual void addNewline();
00110 
00111     virtual void insertHorizontalRule(int width = -1);
00112 
00113     virtual void insertImage(const QString &src, qreal width, qreal height);
00114 
00115 
00116     virtual void beginList(QTextListFormat::Style style);
00117 
00118     virtual void endList();
00119 
00120     virtual void beginListItem();
00121 
00122     virtual void endListItem();
00123 
00124 
00125     virtual void beginSuperscript();
00126 
00127     virtual void endSuperscript();
00128 
00129     virtual void beginSubscript();
00130 
00131     virtual void endSubscript();
00132 
00133     virtual void appendLiteralText(const QString &text);
00134 
00138     virtual QString& getResult();
00139 
00140 private:
00141     KPlainTextMarkupBuilderPrivate *d_ptr;
00142     Q_DECLARE_PRIVATE(KPlainTextMarkupBuilder)
00143 
00144 
00145 };
00146 
00147 #endif

kpimidentities/richtextbuilders

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal