summaryrefslogtreecommitdiffstats
path: root/src/pdf/qpdffile.cpp
blob: a54f6a568e8486cb305940e7d5e8c2105e76a482 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// Copyright (C) 2022 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only

#include "qpdffile_p.h"

QT_BEGIN_NAMESPACE

/*!
    \internal
    \class QPdfFile
    \inmodule QtPdf

    QPdfFile is a means of passing a PDF file along with the associated
    QPdfDocument together into QPdfIOHandler::load(QIODevice *device) so that
    QPdfIOHandler does not need to construct its own redundant QPdfDocument
    instance. If it succeeds in casting the QIODevice to a QPdfFile, it is
    expected to use the QPdfDocument operations for all I/O, and thus the
    normal QFile I/O functions are not needed for that use case.
*/

QPdfFile::QPdfFile(QPdfDocument *doc)
  : QFile(doc->fileName()), m_document(doc)
{
}

QT_END_NAMESPACE

//#include "moc_qpdffile_p.cpp"