"Fossies" - the Fresh Open Source Software Archive

Member "poppler-0.82.0/poppler/PDFDocBuilder.h" (25 Oct 2019, 1415 Bytes) of package /linux/misc/poppler-0.82.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "PDFDocBuilder.h" see the Fossies "Dox" file reference documentation.

    1 //========================================================================
    2 //
    3 // PDFDocBuilder.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 Albert Astals Cid <aacid@kde.org>
    9 //
   10 //========================================================================
   11 
   12 #ifndef PDFDOCBUILDER_H
   13 #define PDFDOCBUILDER_H
   14 
   15 #include "PDFDoc.h"
   16 class GooString;
   17 
   18 //------------------------------------------------------------------------
   19 // PDFDocBuilder
   20 //
   21 // PDFDocBuilder is an abstract class that specifies the interface for
   22 // constructing PDFDocs.
   23 //------------------------------------------------------------------------
   24 
   25 class PDFDocBuilder {
   26 
   27 public:
   28 
   29   PDFDocBuilder() = default;
   30   virtual ~PDFDocBuilder() = default;
   31 
   32   PDFDocBuilder(const PDFDocBuilder &) = delete;
   33   PDFDocBuilder& operator=(const PDFDocBuilder &) = delete;
   34 
   35   // Builds a new PDFDoc. Returns a PDFDoc. You should check this PDFDoc
   36   // with PDFDoc::isOk() for failures.
   37   // The caller is responsible for deleting ownerPassword, userPassWord and guiData.
   38   virtual PDFDoc *buildPDFDoc(const GooString &uri, GooString *ownerPassword = nullptr,
   39       GooString *userPassword = nullptr, void *guiDataA = nullptr) = 0;
   40 
   41   // Returns true if the builder supports building a PDFDoc from the URI.
   42   virtual bool supports(const GooString &uri) = 0;
   43 
   44 };
   45 
   46 #endif /* PDFDOCBUILDER_H */