Show
Ignore:
Timestamp:
04/14/06 10:13:02 (3 years ago)
Author:
jordi
Message:

I've changed the old DocumentIndex? class name to DocumentOutline?, following a little closer the PDF specifications.

Created a new test fixture for the DocumentOutline?, removing this part from the PDFDocument test fixture.

I also removed the Poppler headers from the epdfview.h header, so I don't need to specify the POPPLER_CFLAGS on the test directory.

Files:
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/DocumentOutline.h

    r49 r58  
    1616// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
    1717 
    18 #if !defined (__DOCUMENT_INDEX_H__) 
    19 #define __DOCUMENT_INDEX_H__ 
     18#if !defined (__DOCUMENT_OUTLINE_H__) 
     19#define __DOCUMENT_OUTLINE_H__ 
    2020 
    2121namespace ePDFView 
    2222{ 
    2323    /// 
    24     /// @class DocumentIndex 
    25     /// @brief Stores the document's index name, action and its children. 
     24    /// @class DocumentOutline 
     25    /// @brief Stores the document's outline title, page num. and its children. 
    2626    /// 
    2727    /// Some documents have an index with them. This index can be used to 
     
    2929    /// contents. 
    3030    /// 
    31     /// Each node contains a name, an action an possibly children nodes. The 
    32     /// only node that have an empty name and no action is the top level  
    33     /// DocumentIndex, that is only used as a container for all other 
    34     /// DocumentIndex objects. 
     31    /// Each node contains a title, a destination page an possibly children 
     32    /// nodes. The only node that have an empty name and a 0 page number is the 
     33    /// top level DocumentOutline, that is only used as a container for all  
     34    /// other DocumentOutline objects. 
    3535    /// 
    36     class DocumentIndex 
     36    class DocumentOutline 
    3737    { 
    3838        public: 
    39             DocumentIndex (void); 
    40             ~DocumentIndex (void); 
     39            DocumentOutline (void); 
     40            ~DocumentOutline (void); 
    4141 
     42            gint getDestinationPage (void); 
     43            DocumentOutline *getFirstChild (void); 
    4244            gint getNumChildren (void); 
     45            const gchar *getTitle (void); 
    4346    }; 
    4447} 
    4548 
    46 #endif // !__DOCUMENT_INDEX_H__ 
     49#endif // !__DOCUMENT_OUTLINE_H__