|
Revision 226, 2.2 kB
(checked in by jordi, 2 years ago)
|
Added all missing virtual function to be able to execute the test suites.
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
#if !defined(__DUMB_DOCUMENT_H__) |
|---|
| 19 |
#define __DUMB_DOCUMENT_H__ |
|---|
| 20 |
|
|---|
| 21 |
namespace ePDFView |
|---|
| 22 |
{ |
|---|
| 23 |
class DumbDocument: public IDocument |
|---|
| 24 |
{ |
|---|
| 25 |
public: |
|---|
| 26 |
DumbDocument (); |
|---|
| 27 |
~DumbDocument (); |
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
IDocument *copy (void) const; |
|---|
| 31 |
GList *findTextInPage (gint pageNum, const gchar *text); |
|---|
| 32 |
gboolean isLoaded (void); |
|---|
| 33 |
gboolean loadFile (const gchar *filename, const gchar *password, |
|---|
| 34 |
GError **error); |
|---|
| 35 |
void getPageSizeForPage (gint pageNum, gdouble *width, |
|---|
| 36 |
gdouble *height); |
|---|
| 37 |
void outputPostscriptBegin (const gchar *fileName, guint numberOfPages, gfloat pageWidth, gfloat pageHeight); |
|---|
| 38 |
void outputPostscriptEnd (void); |
|---|
| 39 |
void outputPostscriptPage (guint pageNumber); |
|---|
| 40 |
DocumentPage *renderPage (gint pageNum); |
|---|
| 41 |
gboolean saveFile (const gchar *fileName, GError **error); |
|---|
| 42 |
|
|---|
| 43 |
|
|---|
| 44 |
const gchar *getSavedFileName (void); |
|---|
| 45 |
void setOpenError (DocumentError error); |
|---|
| 46 |
void setOutline (DocumentOutline *outline); |
|---|
| 47 |
void setTestPassword (const gchar *password); |
|---|
| 48 |
|
|---|
| 49 |
private: |
|---|
| 50 |
gboolean m_Loaded; |
|---|
| 51 |
DocumentError m_OpenError; |
|---|
| 52 |
gchar *m_TestPassword; |
|---|
| 53 |
gchar *m_SavedFileName; |
|---|
| 54 |
}; |
|---|
| 55 |
} |
|---|
| 56 |
|
|---|
| 57 |
#endif // !__DUMB_DOCUMENT_H__ |
|---|