Changeset 78 for trunk/src/IDocument.h

Show
Ignore:
Timestamp:
04/17/06 07:28:50 (3 years ago)
Author:
jordi
Message:

Since version 0.5.0 and up doesn't support the old Xpdf header files and because the CairoOutputDev?.h file is not installed on version 0.5.1, I now use Poppler's glib wrapper for PDF loading.

The glib wrapper needs an URI instead of a filename (why?), so the path to the file must be specified as an absolute path to be able to convert it to an URI (file:///dir1/dir2/file.pdf). This also means that the tests files had to be changed to use absolute paths. I added a function (that I'll change to a common utils source) that transform the filename to an absolute path.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/IDocument.h

    r65 r78  
    171171             
    172172            const gchar *getTitle (void); 
    173             void setTitle (const gchar *title); 
     173            void setTitle (gchar *title); 
    174174            const gchar *getAuthor (void); 
    175             void setAuthor (const gchar *author); 
     175            void setAuthor (gchar *author); 
    176176            const gchar *getSubject (void); 
    177             void setSubject (const gchar *subject); 
     177            void setSubject (gchar *subject); 
    178178            const gchar *getKeywords (void); 
    179             void setKeywords (const gchar *keywords); 
     179            void setKeywords (gchar *keywords); 
    180180            const gchar *getCreator (void); 
    181             void setCreator (const gchar *creator); 
     181            void setCreator (gchar *creator); 
    182182            const gchar *getPassword (void); 
    183183            void setPassword (const gchar *password); 
    184184            const gchar *getProducer (void); 
    185             void setProducer (const gchar *producer); 
     185            void setProducer (gchar *producer); 
    186186            const gchar *getFileName (void); 
    187187            void setFileName (const gchar *fileName); 
    188188            const gchar *getFormat (void); 
    189             void setFormat (const gchar *format); 
     189            void setFormat (gchar *format); 
    190190            const gchar *getLinearized (void); 
    191             void setLinearized (gboolean linearized); 
     191            void setLinearized (gchar *linearized); 
    192192            const gchar *getCreationDate (void); 
    193             void setCreationDate (const gchar *date); 
     193            void setCreationDate (gchar *date); 
    194194            const gchar *getModifiedDate (void); 
    195             void setModifiedDate (const gchar *date); 
     195            void setModifiedDate (gchar *date); 
    196196            PageMode getPageMode (void); 
    197197            void setPageMode (PageMode mode); 
     
    239239            gchar *m_FileName; 
    240240            gchar *m_Keywords; 
    241             gboolean m_Linearized; 
     241            gchar *m_Linearized; 
    242242            gchar *m_ModifiedDate; 
    243243            PageLayout m_PageLayout;