add more spacing
[personal-kdebase.git] / runtime / kioslave / man / man2html.h
blobbfa626803acf92d61d93f1428ca1ee8254ae1f16
1 /**
2 * \file man2html.h
4 * Converts man pages to HTML. This kioslave is not part of kdelibs and is
5 * not public API.
6 * \internal
7 */
9 #ifndef MAN2HTML_H
10 #define MAN2HTML_H
12 class QByteArray;
14 /** call this with the buffer you have */
15 void scan_man_page(const char *man_page);
17 /**
18 * Set the paths to KDE resources
20 * \param cssPath Path to the KDE resources, encoded for CSS
21 * \since 3.5
24 extern void setResourcePath(const QByteArray& _cssPath);
27 * Sets the path to a CSS file that should be included with the generated
28 * HTML output.
30 * \param HTML-encoded path to the file to reference for stylesheets.
31 * \since 4.1
33 extern void setCssFile(const QByteArray& _cssFile);
35 /** implement this somewhere. It will be called
36 with HTML contents
38 extern void output_real(const char *insert);
40 /**
41 * called for requested man pages. filename can be a
42 * relative path! Return NULL on errors. The returned
43 * char array is freed by man2html
45 extern char *read_man_page(const char *filename);
47 #endif // MAN2HTML_H