Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
dd709fa6
Commit
dd709fa6
authored
May 20, 2003
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Image tag added
parent
8b85be76
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
70 additions
and
10 deletions
+70
-10
src/exe/co_convert/src/cnv_classread_html.cpp
src/exe/co_convert/src/cnv_classread_html.cpp
+45
-7
src/exe/co_convert/src/cnv_classread_xtthelp.cpp
src/exe/co_convert/src/cnv_classread_xtthelp.cpp
+15
-3
src/exe/co_convert/src/cnv_help.cpp
src/exe/co_convert/src/cnv_help.cpp
+10
-0
No files found.
src/exe/co_convert/src/cnv_classread_html.cpp
View file @
dd709fa6
...
...
@@ -117,7 +117,7 @@ int ClassRead::html_class()
char
struct_file
[
100
];
char
low_volume_name
[
80
];
char
low_class_name
[
80
];
char
*
s
;
char
txt
[
200
]
;
cdh_ToLower
(
low_volume_name
,
volume_name
);
cdh_ToLower
(
low_class_name
,
class_name
);
...
...
@@ -230,12 +230,22 @@ endl <<
if
(
doc_fresh
)
{
for
(
i
=
0
;
i
<
doc_cnt
;
i
++
)
{
if
(
(
s
=
strstr
(
low
(
doc_text
[
i
]),
"@image"
))
!=
0
)
{
remove_spaces
(
doc_text
[
i
],
txt
);
if
(
strncmp
(
low
(
txt
),
"@image"
,
6
)
==
0
)
{
char
imagefile
[
80
];
remove_spaces
(
s
+
6
,
imagefile
);
remove_spaces
(
txt
+
6
,
imagefile
);
html_clf
->
f
<<
"</XMP><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><XMP>"
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@b"
,
2
)
==
0
)
{
html_clf
->
f
<<
"</XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><XMP>"
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
html_clf
->
f
<<
"</XMP><H3>"
<<
txt
+
3
<<
"</H3><XMP>"
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@h2"
,
3
)
==
0
)
{
html_clf
->
f
<<
"</XMP><H4>"
<<
txt
+
3
<<
"</H4><XMP>"
<<
endl
;
}
else
html_clf
->
f
<<
doc_text
[
i
]
<<
endl
;
}
...
...
@@ -398,7 +408,7 @@ int ClassRead::html_class_close()
int
ClassRead
::
html_attribute
()
{
int
i
;
char
*
s
;
char
txt
[
200
]
;
// Summary
...
...
@@ -427,8 +437,19 @@ int ClassRead::html_attribute()
if
(
strcmp
(
doc_summary
,
""
)
==
0
)
{
for
(
i
=
0
;
i
<
doc_cnt
;
i
++
)
{
if
(
(
s
=
strstr
(
low
(
doc_text
[
i
]),
"@image"
))
!=
0
)
remove_spaces
(
doc_text
[
i
],
txt
);
if
(
strncmp
(
low
(
txt
),
"@image"
,
6
)
==
0
)
{
continue
;
}
else
if
(
strncmp
(
low
(
txt
),
"@b"
,
2
)
==
0
)
{
html_clf
->
f
<<
"</XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><XMP>"
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
html_clf
->
f
<<
"<H3>"
<<
txt
+
3
<<
"</H3>"
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@h2"
,
3
)
==
0
)
{
html_clf
->
f
<<
"<H4>"
<<
txt
+
3
<<
"</H4>"
<<
endl
;
}
else
{
html_clf
->
f
<<
doc_text
[
i
];
if
(
i
<
doc_cnt
-
1
)
...
...
@@ -485,12 +506,22 @@ int ClassRead::html_attribute()
if
(
doc_fresh
)
{
for
(
i
=
0
;
i
<
doc_cnt
;
i
++
)
{
if
(
(
s
=
strstr
(
low
(
doc_text
[
i
]),
"@image"
))
!=
0
)
{
remove_spaces
(
doc_text
[
i
],
txt
);
if
(
strncmp
(
low
(
txt
),
"@image"
,
6
)
==
0
)
{
char
imagefile
[
80
];
remove_spaces
(
s
+
6
,
imagefile
);
remove_spaces
(
txt
+
6
,
imagefile
);
fp_tmp
<<
"</XMP><IMG SRC=
\"
"
<<
imagefile
<<
"
\"
><XMP>"
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@b"
,
2
)
==
0
)
{
fp_tmp
<<
"</XMP><B><FONT SIZE=
\"
3
\"
>"
<<
txt
+
2
<<
"</FONT></B><XMP>"
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
fp_tmp
<<
"</XMP><H3>"
<<
txt
+
3
<<
"</H3><XMP>"
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@h2"
,
3
)
==
0
)
{
fp_tmp
<<
"</XMP><H4>"
<<
txt
+
3
<<
"</H4><XMP>"
<<
endl
;
}
else
fp_tmp
<<
doc_text
[
i
]
<<
endl
;
}
...
...
@@ -501,3 +532,10 @@ int ClassRead::html_attribute()
return
1
;
}
src/exe/co_convert/src/cnv_classread_xtthelp.cpp
View file @
dd709fa6
...
...
@@ -56,6 +56,7 @@ int ClassRead::xtthelp_class()
char
full_class_name
[
80
];
char
link_ref
[
80
];
char
*
s
;
char
txt
[
256
];
strcpy
(
full_class_name
,
volume_name
);
strcat
(
full_class_name
,
":"
);
...
...
@@ -92,13 +93,24 @@ int ClassRead::xtthelp_class()
"<H1>Description"
<<
endl
;
if
(
doc_fresh
)
{
for
(
i
=
0
;
i
<
doc_cnt
;
i
++
)
{
if
(
(
s
=
strstr
(
low
(
doc_text
[
i
]),
"@image"
))
!=
0
)
{
remove_spaces
(
doc_text
[
i
],
txt
);
if
(
strncmp
(
low
(
txt
),
"@image"
,
6
)
==
0
)
{
char
imagefile
[
80
];
remove_spaces
(
s
+
6
,
imagefile
);
remove_spaces
(
txt
+
6
,
imagefile
);
fp_tmp
<<
"<IMAGE> "
<<
imagefile
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@b"
,
2
)
==
0
)
{
fp_tmp
<<
"<B> "
<<
txt
+
2
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@h1"
,
3
)
==
0
)
{
fp_tmp
<<
"<H1> "
<<
txt
+
3
<<
endl
;
}
else
if
(
strncmp
(
low
(
txt
),
"@h2"
,
3
)
==
0
)
{
fp_tmp
<<
"<H2> "
<<
txt
+
3
<<
endl
;
}
else
fp_tmp
<<
doc_text
[
i
]
<<
endl
;
}
...
...
@@ -122,7 +134,7 @@ int ClassRead::xtthelp_class()
int
ClassRead
::
xtthelp_body
()
{
fp_tmp
<<
"<H
2
>"
<<
endl
<<
"<H
R
>"
<<
endl
<<
"<H1>"
<<
body_name
<<
endl
;
return
1
;
...
...
src/exe/co_convert/src/cnv_help.cpp
View file @
dd709fa6
...
...
@@ -248,6 +248,16 @@ void *wnav_help_insert_cb( void *ctx, navh_eItemType item_type, char *text1,
xh
->
fp
<<
"<H2>"
<<
text1
<<
"</H2><BR>"
<<
endl
;
return
NULL
;
}
case
navh_eItemType_HorizontalLine
:
{
xh
->
fp
<<
"<HR>"
<<
endl
;
return
NULL
;
}
case
navh_eItemType_Image
:
{
xh
->
fp
<<
"<IMG SRC=
\"
"
<<
text1
<<
"
\"
><BR>"
<<
endl
;
return
NULL
;
}
default:
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment