~naesten/tex-live/trunk

« back to all changes in this revision

Viewing changes to libs/poppler/poppler-src/poppler/Page.h

  • Committer: karl
  • Date: 2018-01-09 18:53:05 UTC
  • Revision ID: svn-v4:c570f23f-e606-0410-a88d-b1316a301751:trunk/Build/source:46257
poppler 0.62.0, requiring C++11; luatex not updated yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
// Copyright (C) 2007 Julien Rebetez <julienr@svn.gnome.org>
21
21
// Copyright (C) 2008 Iñigo Martínez <inigomartinez@gmail.com>
22
22
// Copyright (C) 2012 Fabio D'Urso <fabiodurso@hotmail.it>
23
 
// Copyright (C) 2012 Albert Astals Cid <aacid@kde.org>
 
23
// Copyright (C) 2012, 2017 Albert Astals Cid <aacid@kde.org>
24
24
// Copyright (C) 2013 Thomas Freitag <Thomas.Freitag@alfa.de>
25
 
// Copyright (C) 2013 Adrian Johnson <ajohnson@redneon.com>
 
25
// Copyright (C) 2013, 2017 Adrian Johnson <ajohnson@redneon.com>
26
26
//
27
27
// To see a description of the changes please see the Changelog file that
28
28
// came with your tarball or type make ChangeLog if you are building from git
107
107
        ? separationInfo.getDict() : (Dict *)NULL; }
108
108
  Dict *getResourceDict()
109
109
    { return resources.isDict() ? resources.getDict() : (Dict *)NULL; }
110
 
  void replaceResource(Object obj1) 
111
 
  {  resources.free(); obj1.copy(&resources); }
 
110
  Object *getResourceDictObject()
 
111
    { return &resources; }
 
112
  void replaceResource(Object &&obj1)
 
113
  {  resources = std::move(obj1); }
112
114
 
113
115
  // Clip all other boxes to the MediaBox.
114
116
  void clipBoxes();
141
143
public:
142
144
 
143
145
  // Constructor.
144
 
  Page(PDFDoc *docA, int numA, Dict *pageDict, Ref pageRefA, PageAttrs *attrsA, Form *form);
 
146
  Page(PDFDoc *docA, int numA, Object *pageDict, Ref pageRefA, PageAttrs *attrsA, Form *form);
145
147
 
146
148
  // Destructor.
147
149
  ~Page();
177
179
 
178
180
  // Get resource dictionary.
179
181
  Dict *getResourceDict();
 
182
  Object *getResourceDictObject();
180
183
  Dict *getResourceDictCopy(XRef *xrefA);
181
184
 
182
185
  // Get annotations array.
183
 
  Object *getAnnots(Object *obj, XRef *xrefA = NULL) { return annotsObj.fetch((xrefA == NULL) ? xref : xrefA, obj); }
 
186
  Object getAnnotsObject(XRef *xrefA = nullptr) { return annotsObj.fetch(xrefA ? xrefA : xref); }
184
187
  // Add a new annotation to the page
185
188
  void addAnnot(Annot *annot);
186
189
  // Remove an existing annotation from the page
193
196
  Annots *getAnnots(XRef *xrefA = NULL);
194
197
 
195
198
  // Get contents.
196
 
  Object *getContents(Object *obj) { return contents.fetch(xref, obj); }
 
199
  Object getContents() { return contents.fetch(xref); }
197
200
 
198
201
  // Get thumb.
199
 
  Object *getThumb(Object *obj) { return thumb.fetch(xref, obj); }
 
202
  Object getThumb() { return thumb.fetch(xref); }
200
203
  GBool loadThumb(unsigned char **data, int *width, int *height, int *rowstride);
201
204
 
202
205
  // Get transition.
203
 
  Object *getTrans(Object *obj) { return trans.fetch(xref, obj); }
 
206
  Object getTrans() { return trans.fetch(xref); }
204
207
 
205
208
  // Get form.
206
209
  FormPageWidgets *getFormWidgets();
211
214
  double getDuration() { return duration; }
212
215
 
213
216
  // Get actions
214
 
  Object *getActions(Object *obj) { return actions.fetch(xref, obj); }
 
217
  Object getActions() { return actions.fetch(xref); }
215
218
 
216
219
  enum PageAdditionalActionsType {
217
220
    actionOpenPage,     ///< Performed when opening the page
279
282
  Object actions;               // page additional actions
280
283
  double duration;              // page duration
281
284
  GBool ok;                     // true if page is valid
282
 
#if MULTITHREADED
 
285
#ifdef MULTITHREADED
283
286
  GooMutex mutex;
284
287
#endif
285
288
};