Ignore:
Timestamp:
Dec 30, 2009, 7:13:45 PM (12 years ago)
Author:
rbri
Message:

PDF plugin: Poppler library updated to version 0.12.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/poppler/mypoppler/poppler/Annot.h

    r263 r277  
    1616// Copyright (C) 2006 Scott Turner <scotty1024@mac.com>
    1717// Copyright (C) 2007, 2008 Julien Rebetez <julienr@svn.gnome.org>
    18 // Copyright (C) 2007, 2008 Carlos Garcia Campos <carlosgc@gnome.org>
     18// Copyright (C) 2007-2009 Carlos Garcia Campos <carlosgc@gnome.org>
    1919// Copyright (C) 2007, 2008 Iñigo Martínez <inigomartinez@gmail.com>
    2020// Copyright (C) 2008 Michael Vrable <mvrable@cs.ucsd.edu>
     
    288288
    289289  AnnotColor();
     290  AnnotColor(double gray);
     291  AnnotColor(double r, double g, double b);
     292  AnnotColor(double c, double m, double y, double k);
    290293  AnnotColor(Array *array);
    291294  ~AnnotColor();
     
    481484  };
    482485
    483   Annot(XRef *xrefA, Dict *dict, Catalog* catalog);
     486  Annot(XRef *xrefA, PDFRectangle *rectA, Catalog *catalog);
     487  Annot(XRef *xrefA, Dict *dict, Catalog *catalog);
    484488  Annot(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    485489  virtual ~Annot();
     
    498502  double getFontSize() { return fontSize; }
    499503
     504  // Sets the annot contents to new_content
     505  // new_content should never be NULL
     506  void setContents(GooString *new_content);
     507
     508  // The annotation takes the ownership of
     509  // new_color.
     510  void setColor(AnnotColor *new_color);
     511
    500512  // getters
     513  Ref getRef() const { return ref; }
    501514  AnnotSubtype getType() const { return type; }
    502515  PDFRectangle *getRect() const { return rect; }
     
    526539  void drawCircleTopLeft(double cx, double cy, double r);
    527540  void drawCircleBottomRight(double cx, double cy, double r);
     541
     542  // Updates the field key of the annotation dictionary
     543  // and sets M to the current time
     544  void update(const char *key, Object *value);
     545
     546  Object annotObj;
    528547 
    529548  // required data
     
    563582class AnnotPopup: public Annot {
    564583public:
     584  AnnotPopup(XRef *xrefA, PDFRectangle *rect, Catalog *catalog);
    565585  AnnotPopup(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    566586  ~AnnotPopup();
    567587
    568   Dict *getParent() const { return parent; }
     588  Object *getParent(Object *obj) { return parent.fetch (xref, obj); }
     589  Object *getParentNF(Object *obj) { return &parent; }
     590  void setParent(Object *parentA);
     591  void setParent(Annot *parentA);
    569592  GBool getOpen() const { return open; }
     593  void setOpen(GBool openA);
    570594
    571595protected:
    572596  void initialize(XRef *xrefA, Dict *dict, Catalog *catalog);
    573597
    574   Dict *parent; // Parent
     598  Object parent; // Parent
    575599  GBool open;   // Open
    576600};
     
    587611  };
    588612
     613  AnnotMarkup(XRef *xrefA, PDFRectangle *rect, Catalog *catalog);
    589614  AnnotMarkup(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    590615  virtual ~AnnotMarkup();
     
    600625  AnnotMarkupReplyType getReplyTo() const { return replyTo; }
    601626  AnnotExternalDataType getExData() const { return exData; }
     627
     628  // The annotation takes the ownership of new_popup
     629  void setPopup(AnnotPopup *new_popup);
     630  void setLabel(GooString *new_label);
    602631
    603632protected:
     
    638667  };
    639668
     669  AnnotText(XRef *xrefA, PDFRectangle *rect, Catalog *catalog);
    640670  AnnotText(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    641671  ~AnnotText();
     
    646676  AnnotTextState getState() const { return state; }
    647677
    648   // setters
    649   void setModified(GooString *date);
     678  void setOpen(GBool openA);
     679  void setIcon(GooString *new_icon);
    650680
    651681private:
     
    687717  };
    688718
     719  AnnotMovie(XRef *xrefA, PDFRectangle *rect, Movie *movieA, Catalog *catalog);
    689720  AnnotMovie(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    690721  ~AnnotMovie();
     
    760791 public:
    761792
     793  AnnotScreen(XRef *xrefA, PDFRectangle *rect, Catalog *catalog);
    762794  AnnotScreen(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    763795  ~AnnotScreen();
     
    795827  };
    796828
     829  AnnotLink(XRef *xrefA, PDFRectangle *rect, Catalog *catalog);
    797830  AnnotLink(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    798831  virtual ~AnnotLink();
     
    838871  };
    839872
     873  AnnotFreeText(XRef *xrefA, PDFRectangle *rect, GooString *da, Catalog *catalog);
    840874  AnnotFreeText(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    841875  ~AnnotFreeText();
     
    889923  };
    890924
     925  AnnotLine(XRef *xrefA, PDFRectangle *rect, PDFRectangle *lRect, Catalog *catalog);
    891926  AnnotLine(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    892927  ~AnnotLine();
     
    941976public:
    942977
     978  AnnotTextMarkup(XRef *xrefA, PDFRectangle *rect, AnnotSubtype subType,
     979                  AnnotQuadrilaterals *quadPoints, Catalog *catalog);
    943980  AnnotTextMarkup(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    944981  virtual ~AnnotTextMarkup();
     
    960997public:
    961998
     999  AnnotStamp(XRef *xrefA, PDFRectangle *rect, Catalog *catalog);
    9621000  AnnotStamp(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    9631001  ~AnnotStamp();
     
    9801018public:
    9811019
     1020  AnnotGeometry(XRef *xrefA, PDFRectangle *rect, AnnotSubtype subType, Catalog *catalog);
    9821021  AnnotGeometry(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    9831022  ~AnnotGeometry();
     
    10101049  };
    10111050
     1051  AnnotPolygon(XRef *xrefA, PDFRectangle *rect, AnnotSubtype subType,
     1052               AnnotPath *path, Catalog *catalog);
    10121053  AnnotPolygon(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    10131054  ~AnnotPolygon();
     
    10511092  };
    10521093
     1094  AnnotCaret(XRef *xrefA, PDFRectangle *rect, Catalog *catalog);
    10531095  AnnotCaret(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    10541096  ~AnnotCaret();
     
    10731115public:
    10741116
     1117  AnnotInk(XRef *xrefA, PDFRectangle *rect, AnnotPath **paths, int n_paths, Catalog *catalog);
    10751118  AnnotInk(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    10761119  ~AnnotInk();
     
    11001143public:
    11011144
     1145  AnnotFileAttachment(XRef *xrefA, PDFRectangle *rect, GooString *filename, Catalog *catalog);
    11021146  AnnotFileAttachment(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    11031147  ~AnnotFileAttachment();
     
    11251169public:
    11261170
     1171  AnnotSound(XRef *xrefA, PDFRectangle *rect, Sound *soundA, Catalog *catalog);
    11271172  AnnotSound(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    11281173  ~AnnotSound();
     
    12451290public:
    12461291
     1292  Annot3D(XRef *xrefA, PDFRectangle *rect, Catalog *catalog);
    12471293  Annot3D(XRef *xrefA, Dict *dict, Catalog *catalog, Object *obj);
    12481294  ~Annot3D();
Note: See TracChangeset for help on using the changeset viewer.