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.cxx

    r49 r58  
    2222 
    2323/// 
    24 /// @brief Constructs a new DocumentIndex. 
     24/// @brief Constructs a new DocumentOutline. 
    2525/// 
    26 DocumentIndex::DocumentIndex () 
     26DocumentOutline::DocumentOutline () 
    2727{ 
    2828} 
    2929 
    3030/// 
    31 /// @brief Destroys any dynamically created object of DocumentIndex; 
     31/// @brief Destroys any dynamically allocated memory for DocumentOutline. 
    3232/// 
    33 DocumentIndex::~DocumentIndex () 
     33DocumentOutline::~DocumentOutline () 
    3434{ 
    3535} 
    3636 
    3737/// 
    38 /// @brief Get the number of children for this index. 
     38/// @brief Get the outline's destination page. 
    3939/// 
    40 /// @return The number of children this index has. 
     40/// I'm only using the outlines as a way to go to an specific page, although 
     41/// the PDF Specification says that an outline could open a page from another 
     42/// file, execute an application, etc... I won't use all those features and 
     43/// concentrate only on the pages. 
     44/// 
     45/// @return The destination page number for the outline number or 1 if the 
     46///         outline item has no page number (like the root outline item or 
     47///         other kinds of destinations). 
    4148/// 
    4249gint 
    43 DocumentIndex::getNumChildren () 
     50DocumentOutline::getDestinationPage () 
     51{ 
     52    return 1; 
     53} 
     54 
     55/// 
     56/// @brief The first children of the outline item. 
     57/// 
     58/// @return The pointer to the first children of the outline item, or 
     59///         NULL if the outline has no children. 
     60/// 
     61DocumentOutline * 
     62DocumentOutline::getFirstChild () 
     63{ 
     64    return NULL; 
     65} 
     66 
     67/// 
     68/// @brief Gets the number of children for this outline. 
     69/// 
     70/// @return The number of children this utline has. 
     71/// 
     72gint 
     73DocumentOutline::getNumChildren () 
    4474{ 
    4575    return 0; 
    4676} 
     77 
     78/// 
     79/// @brief Gets the outline's title. 
     80/// 
     81/// @return The title of the outline item or an empty string if the 
     82///         outline item has no title (like the root outline item). 
     83/// 
     84const gchar * 
     85DocumentOutline::getTitle () 
     86{ 
     87    return ""; 
     88}