source: trunk/include/helpers/textv_html.h@ 115

Last change on this file since 115 was 113, checked in by umoeller, 24 years ago

Misc updates.

  • Property svn:eol-style set to CRLF
  • Property svn:keywords set to Author Date Id Revision
File size: 2.7 KB
Line 
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 M”ller.
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 "helpers\linklist.h"
23 *@@include #include "helpers\textv_html.h"
24 */
25
26#if __cplusplus
27extern "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 // (auto-free mode; use lstClear)
69 } XHTMLDATA, *PXHTMLDATA;
70 #endif
71
72 BOOL txvConvertFromHTML(char **ppszText,
73 PVOID pxhtml,
74 PULONG pulProgress,
75 PBOOL pfCancel);
76
77#endif
78
79#if __cplusplus
80}
81#endif
82
Note: See TracBrowser for help on using the repository browser.