| 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 |
* Copyright (C) 2021, Oliver Sander <[email protected]> |
| 8 |
* |
| 9 |
* This program is free software; you can redistribute it and/or modify |
| 10 |
* it under the terms of the GNU General Public License as published by |
| 11 |
* the Free Software Foundation; either version 2, or (at your option) |
| 12 |
* any later version. |
| 13 |
* |
| 14 |
* This program is distributed in the hope that it will be useful, |
| 15 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 17 |
* GNU General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU General Public License |
| 20 |
* along with this program; if not, write to the Free Software |
| 21 |
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. |
| 22 |
*/ |
| 23 |
|
| 24 |
#ifndef _POPPLER_PAGE_PRIVATE_H_ |
| 25 |
#define _POPPLER_PAGE_PRIVATE_H_ |
| 26 |
|
| 27 |
#include "poppler-qt6.h" |
| 28 |
|
| 29 |
#include "CharTypes.h" |
| 30 |
|
| 31 |
class QRectF; |
| 32 |
|
| 33 |
class LinkAction; |
| 34 |
class Page; |
| 35 |
class TextPage; |
| 36 |
|
| 37 |
namespace Poppler { |
| 38 |
|
| 39 |
class DocumentData; |
| 40 |
class PageTransition; |
| 41 |
|
| 42 |
class PageData |
| 43 |
{ |
| 44 |
public: |
| 45 |
std::unique_ptr<Link> convertLinkActionToLink(::LinkAction *a, const QRectF &linkArea); |
| 46 |
|
| 47 |
DocumentData *parentDoc; |
| 48 |
::Page *page; |
| 49 |
int index; |
| 50 |
PageTransition *transition; |
| 51 |
|
| 52 |
static std::unique_ptr<Link> convertLinkActionToLink(::LinkAction *a, DocumentData *parentDoc, const QRectF &linkArea); |
| 53 |
|
| 54 |
TextPage *prepareTextSearch(const QString &text, Page::Rotation rotate, QVector<Unicode> *u); |
| 55 |
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); |
| 56 |
QList<QRectF> performMultipleTextSearch(TextPage *textPage, QVector<Unicode> &u, bool sCase, bool sWords, bool sDiacritics, bool sAcrossLines); |
| 57 |
}; |
| 58 |
|
| 59 |
} |
| 60 |
|
| 61 |
#endif |