~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tests/poppler/poppler/PDFDocFactory.h

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//========================================================================
 
2
//
 
3
// PDFDocFactory.h
 
4
//
 
5
// This file is licensed under the GPLv2 or later
 
6
//
 
7
// Copyright 2010 Hib Eris <hib@hiberis.nl>
 
8
// Copyright 2010 Albert Astals Cid <aacid@kde.org>
 
9
//
 
10
//========================================================================
 
11
 
 
12
#ifndef PDFDOCFACTORY_H
 
13
#define PDFDOCFACTORY_H
 
14
 
 
15
#include "PDFDoc.h"
 
16
 
 
17
class GooList;
 
18
class GooString;
 
19
class PDFDocBuilder;
 
20
 
 
21
//------------------------------------------------------------------------
 
22
// PDFDocFactory
 
23
//
 
24
// PDFDocFactory allows the construction of PDFDocs from different URIs.
 
25
//
 
26
// By default, it supports local files, 'file://' and 'fd:0' (stdin). When
 
27
// compiled with libcurl, it also supports 'http://' and 'https://'.
 
28
//
 
29
// You can extend the supported URIs by giving a list of PDFDocBuilders to
 
30
// the constructor, or by registering a new PDFDocBuilder afterwards.
 
31
//------------------------------------------------------------------------
 
32
 
 
33
class PDFDocFactory {
 
34
 
 
35
public:
 
36
 
 
37
  PDFDocFactory(GooList *pdfDocBuilders = NULL);
 
38
  ~PDFDocFactory();
 
39
 
 
40
  // Create a PDFDoc. Returns a PDFDoc. You should check this PDFDoc
 
41
  // with PDFDoc::isOk() for failures.
 
42
  // The caller is responsible for deleting ownerPassword, userPassWord and guiData.
 
43
  PDFDoc *createPDFDoc(const GooString &uri, GooString *ownerPassword = NULL,
 
44
      GooString *userPassword = NULL, void *guiDataA = NULL);
 
45
 
 
46
  // Extend supported URIs with the ones from the PDFDocBuilder.
 
47
  void registerPDFDocBuilder(PDFDocBuilder *pdfDocBuilder);
 
48
 
 
49
private:
 
50
 
 
51
  GooList *builders;
 
52
 
 
53
};
 
54
 
 
55
#endif /* PDFDOCFACTORY_H */