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

kpimtextedit/richtextbuilders

  • kpimtextedit
  • richtextbuilders
kmarkupdirector_p.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 KMARKUPDIRECTOR_P_H
23 #define KMARKUPDIRECTOR_P_H
24 
25 #include "kmarkupdirector.h"
26 
27 #include <QSet>
28 
29 //@cond PRIVATE
30 
35 class KMarkupDirector::Private
36 {
37 public:
38  Private(KMarkupDirector *md)
39  : q(md) {
40  }
41 
42  void processClosingElements(QTextBlock::iterator it);
43  void processOpeningElements(QTextBlock::iterator it);
44  QSet< int > getElementsToClose(QTextBlock::iterator it);
45  QList< int > getElementsToOpen(QTextBlock::iterator it);
46  QList< int > sortOpeningOrder(QSet< int > openingOrder, QTextBlock::iterator it);
47 
48  KMarkupDirector *q;
49  KAbstractMarkupBuilder *builder;
50 
51  enum OpenElementValues {
52  None = 0x0,
53  SuperScript = 0x01,
54  SubScript = 0x02,
55  Anchor = 0x04,
56  SpanForeground = 0x08,
57  SpanBackground = 0x10,
58  SpanFontFamily = 0x20,
59  SpanFontPointSize = 0x40,
60  Strong = 0x80,
61  Emph = 0x100,
62  Underline = 0x200,
63  StrikeOut = 0x400
64  };
65 // Q_DECLARE_FLAGS(OpenElements, OpenElementValues)
66 
67  QString openAnchorHref;
68  QString anchorHrefToOpen;
69  QString openAnchorName;
70 
71  QBrush openForeground;
72  QBrush foregroundToOpen;
73  QBrush openBackground;
74  QBrush backgroundToOpen;
75  int openFontPointSize;
76  int fontPointSizeToOpen;
77  QString openFontFamily;
78  QString fontFamilyToOpen;
79 
80  // An ordered list containing the order elements were opened in.
81  QList< int > openElements;
82 
83  // Elements that have yet to be opened. Used while determine the order to open them.
84  QSet< int > elementsToOpen;
85 
86 };
87 // Q_DECLARE_OPERATORS_FOR_FLAGS(KMarkupDirector::Private::OpenElements)
88 
89 #endif
90 //@endcond
This file is part of the KDE documentation.
Documentation copyright © 1996-2012 The KDE developers.
Generated on Mon Dec 10 2012 13:47: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