1 |
|
---|
2 | /*
|
---|
3 | *@@sourcefile textv_html.h:
|
---|
4 | * header file for textv_html.c. See remarks there.
|
---|
5 | *
|
---|
6 | * Note: Version numbering in this file relates to XWorkplace version
|
---|
7 | * numbering.
|
---|
8 | */
|
---|
9 |
|
---|
10 | /* Copyright (C) 2000 Ulrich Mller.
|
---|
11 | * This file is part of the "XWorkplace helpers" source package.
|
---|
12 | * This is free software; you can redistribute it and/or modify
|
---|
13 | * it under the terms of the GNU General Public License as published
|
---|
14 | * by the Free Software Foundation, in version 2 as it comes in the
|
---|
15 | * "COPYING" file of the XWorkplace main distribution.
|
---|
16 | * This program is distributed in the hope that it will be useful,
|
---|
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
19 | * GNU General Public License for more details.
|
---|
20 | *
|
---|
21 | *@@include #include <os2.h>
|
---|
22 | *@@include #include "linklist.h"
|
---|
23 | *@@include #include "textv_html.h"
|
---|
24 | */
|
---|
25 |
|
---|
26 | #if __cplusplus
|
---|
27 | extern "C" {
|
---|
28 | #endif
|
---|
29 |
|
---|
30 | #ifndef TXV_HTML_HEADER_INCLUDED
|
---|
31 | #define TXV_HTML_HEADER_INCLUDED
|
---|
32 |
|
---|
33 | /* ******************************************************************
|
---|
34 | *
|
---|
35 | * HTML converter
|
---|
36 | *
|
---|
37 | ********************************************************************/
|
---|
38 |
|
---|
39 | /*
|
---|
40 | *@@ XHTMLLINK:
|
---|
41 | * describes a link.
|
---|
42 | *
|
---|
43 | *@@added V0.9.3 (2000-05-19) [umoeller]
|
---|
44 | */
|
---|
45 |
|
---|
46 | typedef struct _XHTMLLINK
|
---|
47 | {
|
---|
48 | USHORT usLinkIndex; // >= 1; this is stored in the XTextView control
|
---|
49 | PSZ pszTargetFile; // target file (HREF="...") without anchors;
|
---|
50 | // this is NULL if the target is an anchor only
|
---|
51 | // (HREF="#anchor")
|
---|
52 | PSZ pszTargetAnchor; // anchor in target file; this is NULL if the
|
---|
53 | // target has no anchor
|
---|
54 | } XHTMLLINK, *PXHTMLLINK;
|
---|
55 |
|
---|
56 | #ifdef LINKLIST_HEADER_INCLUDED
|
---|
57 | /*
|
---|
58 | *@@ XHTMLDATA:
|
---|
59 | * for storing output from txvConvertFromHTML.
|
---|
60 | *
|
---|
61 | *@@added V0.9.3 (2000-05-19) [umoeller]
|
---|
62 | */
|
---|
63 |
|
---|
64 | typedef struct _XHTMLDATA
|
---|
65 | {
|
---|
66 | PSZ pszTitle; // contents of TITLE tag (must be freed)
|
---|
67 | LINKLIST llLinks; // list of XHTMLLINK structures; empty if none
|
---|
68 | } XHTMLDATA, *PXHTMLDATA;
|
---|
69 | #endif
|
---|
70 |
|
---|
71 | BOOL txvConvertFromHTML(char **ppszText,
|
---|
72 | PVOID pxhtml,
|
---|
73 | PULONG pulProgress,
|
---|
74 | PBOOL pfCancel);
|
---|
75 |
|
---|
76 | #endif
|
---|
77 |
|
---|
78 | #if __cplusplus
|
---|
79 | }
|
---|
80 | #endif
|
---|
81 |
|
---|