Diffstat (limited to 'noncore/apps/opie-reader/CHM.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/CHM.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/noncore/apps/opie-reader/CHM.cpp b/noncore/apps/opie-reader/CHM.cpp index 9d1eb87..88d53bf 100644 --- a/noncore/apps/opie-reader/CHM.cpp +++ b/noncore/apps/opie-reader/CHM.cpp | |||
@@ -1,27 +1,26 @@ | |||
1 | #include "CHM.h" | 1 | #include "CHM.h" |
2 | #include "chm_lib.h" | 2 | #include "chm_lib.h" |
3 | #include "static.h" | ||
4 | #include <qstring.h> | 3 | #include <qstring.h> |
5 | #include <qstringlist.h> | 4 | #include <qstringlist.h> |
6 | #include <stdio.h> | 5 | #include <stdio.h> |
7 | #include <qimage.h> | 6 | #include <qimage.h> |
8 | #include <qpixmap.h> | 7 | #include <qpixmap.h> |
9 | 8 | ||
10 | #ifndef __STATIC | 9 | #ifndef __STATIC |
11 | extern "C" | 10 | extern "C" |
12 | { | 11 | { |
13 | CExpander* newcodec() { return new CHM; } | 12 | CExpander* newcodec() { return new CHM; } |
14 | } | 13 | } |
15 | #endif | 14 | #endif |
16 | 15 | ||
17 | static int _print_ui_index(struct chmFile *h, struct chmUnitInfo *ui, | 16 | static int _print_ui_index(struct chmFile *h, struct chmUnitInfo *ui, |
18 | void *context) | 17 | void *context) |
19 | { | 18 | { |
20 | CHM *chm = (CHM *)context; | 19 | CHM *chm = (CHM *)context; |
21 | QString temp = "<tr>"; | 20 | QString temp = "<tr>"; |
22 | char buff[1024]; | 21 | char buff[1024]; |
23 | sprintf( buff,"<td align=right>%8d\n</td><td><a href=\"%s\">%s</a></td></tr>",(int)ui->length, ui->path, ui->path); | 22 | sprintf( buff,"<td align=right>%8d\n</td><td><a href=\"%s\">%s</a></td></tr>",(int)ui->length, ui->path, ui->path); |
24 | temp += buff; | 23 | temp += buff; |
25 | chm->addContent(temp); | 24 | chm->addContent(temp); |
26 | return CHM_ENUMERATOR_CONTINUE; | 25 | return CHM_ENUMERATOR_CONTINUE; |
27 | } | 26 | } |