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

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
textpage_p.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2006 by Tobias Koenig <tokoe@kde.org> *
3  * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
4  * *
5  * This program is free software; you can redistribute it and/or modify *
6  * it under the terms of the GNU General Public License as published by *
7  * the Free Software Foundation; either version 2 of the License, or *
8  * (at your option) any later version. *
9  ***************************************************************************/
10 
11 #ifndef _OKULAR_TEXTPAGE_P_H_
12 #define _OKULAR_TEXTPAGE_P_H_
13 
14 #include <QtCore/QList>
15 #include <QtCore/QMap>
16 #include <QtCore/QPair>
17 #include <QtGui/QTransform>
18 
19 class SearchPoint;
20 class TinyTextEntity;
21 class RegionText;
22 
23 namespace Okular
24 {
25 
26 class PagePrivate;
27 typedef QList< TinyTextEntity* > TextList;
28 
33 typedef bool ( *TextComparisonFunction )( const QStringRef & from, const QStringRef & to );
34 
38 typedef QList<RegionText> RegionTextList;
39 
40 class TextPagePrivate
41 {
42  public:
43  TextPagePrivate();
44  ~TextPagePrivate();
45 
46  RegularAreaRect * findTextInternalForward( int searchID, const QString &query,
47  TextComparisonFunction comparer,
48  const TextList::ConstIterator &start,
49  int start_offset,
50  const TextList::ConstIterator &end);
51  RegularAreaRect * findTextInternalBackward( int searchID, const QString &query,
52  TextComparisonFunction comparer,
53  const TextList::ConstIterator &start,
54  int start_offset,
55  const TextList::ConstIterator &end );
56 
60  void setWordList(const TextList &list);
61 
66  void correctTextOrder();
67 
68  // variables those can be accessed directly from TextPage
69  TextList m_words;
70  QMap< int, SearchPoint* > m_searchPoints;
71  PagePrivate *m_page;
72 
73  private:
74  RegularAreaRect * searchPointToArea(const SearchPoint* sp);
75 };
76 
77 }
78 
79 #endif
Okular::TextPagePrivate::m_words
TextList m_words
Definition: textpage_p.h:69
Okular::TextPagePrivate::~TextPagePrivate
~TextPagePrivate()
Definition: textpage.cpp:209
Okular::PagePrivate
Definition: page_p.h:55
Okular::RegionTextList
QList< RegionText > RegionTextList
A list of RegionText.
Definition: textpage_p.h:38
Okular::TextPagePrivate::m_page
PagePrivate * m_page
Definition: textpage_p.h:71
Okular::TextPagePrivate::correctTextOrder
void correctTextOrder()
Make necessary modifications in the TextList to make the text order correct, so that textselection wo...
Definition: textpage.cpp:1867
Okular::TextPagePrivate::findTextInternalBackward
RegularAreaRect * findTextInternalBackward(int searchID, const QString &query, TextComparisonFunction comparer, const TextList::ConstIterator &start, int start_offset, const TextList::ConstIterator &end)
Definition: textpage.cpp:940
Okular::RegularAreaRect
Definition: area.h:860
Okular::TextPagePrivate::findTextInternalForward
RegularAreaRect * findTextInternalForward(int searchID, const QString &query, TextComparisonFunction comparer, const TextList::ConstIterator &start, int start_offset, const TextList::ConstIterator &end)
Definition: textpage.cpp:831
Okular::TextPagePrivate::TextPagePrivate
TextPagePrivate()
Definition: textpage.cpp:204
Okular::TextPagePrivate::setWordList
void setWordList(const TextList &list)
Copy a TextList to m_words, the pointers of list are adopted.
Definition: textpage.cpp:1119
Okular::TextComparisonFunction
bool(* TextComparisonFunction)(const QStringRef &from, const QStringRef &to)
Returns whether the two strings match.
Definition: textpage_p.h:33
Okular::TextList
QList< TinyTextEntity * > TextList
Definition: textpage_p.h:26
Okular::TextPagePrivate::m_searchPoints
QMap< int, SearchPoint * > m_searchPoints
Definition: textpage_p.h:70
Okular::TextPagePrivate
Definition: textpage_p.h:40
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

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

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

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