Ignore:
Timestamp:
Dec 21, 2008, 8:03:13 AM (13 years ago)
Author:
Eugene Romanenko
Message:

PDF plugin: Poppler library updated to version 0.10.2

File:
1 edited

Legend:

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

    r250 r261  
    44//
    55// Copyright 2007 Brad Hards <bradh@kde.org>
     6// Copyright 2008 Carlos Garcia Campos <carlosgc@gnome.org>
    67//
    78// Released under the GPL (version 2, or later, at your option)
     
    3334  ~OCGs();
    3435
     36  // Is OCGS valid?
     37  GBool isOk() { return ok; }
     38 
    3539  bool hasOCGs();
    3640  GooList *getOCGs() const { return optionalContentGroups; }
     
    3842  OptionalContentGroup* findOcgByRef( const Ref &ref);
    3943
    40   Array* getOrderArray() const { return m_orderArray; }
    41   Array* getRBGroupsArray() const { return m_rBGroupsArray; }
     44  Array* getOrderArray()
     45    { return (order.isArray() && order.arrayGetLength() > 0) ? order.getArray() : NULL; }
     46  Array* getRBGroupsArray()
     47    { return (rbgroups.isArray() && rbgroups.arrayGetLength()) ? rbgroups.getArray() : NULL; }
    4248
    4349  bool optContentIsVisible( Object *dictRef );
    4450
    4551private:
     52  GBool ok;
     53 
    4654  bool allOn( Array *ocgArray );
    4755  bool allOff( Array *ocgArray );
     
    5159  GooList *optionalContentGroups;
    5260
    53   Array *m_orderArray;
    54   Array *m_rBGroupsArray;
     61  Object order;
     62  Object rbgroups;
    5563  XRef *m_xref;
    5664};
     
    6270  enum State { On, Off };
    6371
    64   OptionalContentGroup(Dict *dict, XRef *xrefA);
     72  OptionalContentGroup(Dict *dict);
    6573
    6674  OptionalContentGroup(GooString *label);
     
    6876  ~OptionalContentGroup();
    6977
    70   GooString* name() const;
     78  GooString* getName() const;
    7179
    72   Ref ref() const;
     80  Ref getRef() const;
    7381  void setRef(const Ref ref);
    7482
    75   State state() { return m_state; };
     83  State getState() { return m_state; };
    7684  void setState(State state) { m_state = state; };
    7785
Note: See TracChangeset for help on using the changeset viewer.