Changeset 58 for trunk/src/IDocument.cxx

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 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/IDocument.cxx

    r49 r58  
    127127    m_Creator = NULL; 
    128128    m_CurrentPage = 0; 
    129     m_DocumentIndex = new DocumentIndex (); 
     129    m_Outline = new DocumentOutline (); 
    130130    m_FileName = NULL; 
    131131    m_Format = NULL; 
     
    148148IDocument::~IDocument () 
    149149{ 
    150     delete m_DocumentIndex; 
     150    delete m_Outline; 
    151151    g_free (m_Author); 
    152152    g_free (m_CreationDate); 
     
    557557 
    558558/// 
    559 /// @brief Get the document's index. 
    560 /// 
    561 /// @return The top level DocumentIndex for this document. 
    562 /// 
    563 DocumentIndex & 
    564 IDocument::getDocumentIndex () 
    565 { 
    566     g_assert (NULL != m_DocumentIndex && "The document index is NULL."); 
    567      
    568     return *(m_DocumentIndex); 
     559/// @brief Get the document's outline. 
     560/// 
     561/// @return The top level DocumentOutline for this document. 
     562///         The returned object must not be freed, the  
     563///         IDocument class will do it. 
     564/// 
     565DocumentOutline * 
     566IDocument::getOutline () 
     567{ 
     568    return m_Outline; 
    569569} 
    570570