Debian Codegraph @

qt5/src/poppler-page-private.h

raw
1 /* poppler-page.cc: qt interface to poppler
2 * Copyright (C) 2005, Net Integration Technologies, Inc.
3 * Copyright (C) 2007, 2012, 2025, Albert Astals Cid <[email protected]>
4 * Copyright (C) 2008, Pino Toscano <[email protected]>
5 * Copyright (C) 2015 Adam Reichold <[email protected]>
6 * Copyright (C) 2018, 2021 Nelson Benítez León <[email protected]>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2, or (at your option)
11 * any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
21 */
22
23 #ifndef _POPPLER_PAGE_PRIVATE_H_
24 #define _POPPLER_PAGE_PRIVATE_H_
25
26 #include "CharTypes.h"
27
28 #include "poppler-qt5.h"
29
30 #include <QtCore/QVector>
31
32 class QRectF;
33 class QString;
34
35 class LinkAction;
36 class Page;
37 class TextPage;
38
39 namespace Poppler {
40
41 class DocumentData;
42 class PageTransition;
43
44 class PageData
45 {
46 public:
47 Link *convertLinkActionToLink(::LinkAction *a, const QRectF &linkArea);
48
49 DocumentData *parentDoc;
50 ::Page *page;
51 int index;
52 PageTransition *transition;
53
54 static Link *convertLinkActionToLink(::LinkAction *a, DocumentData *parentDoc, const QRectF &linkArea);
55
56 TextPage *prepareTextSearch(const QString &text, Page::Rotation rotate, QVector<Unicode> *u);
57 bool performSingleTextSearch(TextPage *textPage, QVector<Unicode> &u, double &sLeft, double &sTop, double &sRight, double &sBottom, Page::SearchDirection direction, bool sCase, bool sWords, bool sDiacritics, bool sAcrossLines);
58 QList<QRectF> performMultipleTextSearch(TextPage *textPage, QVector<Unicode> &u, bool sCase, bool sWords, bool sDiacritics, bool sAcrossLines);
59 };
60
61 }
62
63 #endif