1 | //======================================================================== |
2 | // |
3 | // LocalPDFDocBuilder.h |
4 | // |
5 | // This file is licensed under the GPLv2 or later |
6 | // |
7 | // Copyright 2010 Hib Eris <hib@hiberis.nl> |
8 | // Copyright 2010, 2018, 2022 Albert Astals Cid <aacid@kde.org> |
9 | // Copyright 2021 Oliver Sander <oliver.sander@tu-dresden.de> |
10 | // |
11 | //======================================================================== |
12 | |
13 | #ifndef LOCALPDFDOCBUILDER_H |
14 | #define LOCALPDFDOCBUILDER_H |
15 | |
16 | #include "PDFDocBuilder.h" |
17 | |
18 | //------------------------------------------------------------------------ |
19 | // LocalPDFDocBuilder |
20 | // |
21 | // The LocalPDFDocBuilder implements a PDFDocBuilder for local files. |
22 | //------------------------------------------------------------------------ |
23 | |
24 | class LocalPDFDocBuilder : public PDFDocBuilder |
25 | { |
26 | |
27 | public: |
28 | std::unique_ptr<PDFDoc> buildPDFDoc(const GooString &uri, const std::optional<GooString> &ownerPassword = {}, const std::optional<GooString> &userPassword = {}, void *guiDataA = nullptr) override; |
29 | bool supports(const GooString &uri) override; |
30 | }; |
31 | |
32 | #endif /* LOCALPDFDOCBUILDER_H */ |
33 | |