Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
2790daaa
Commit
2790daaa
authored
Mar 23, 2014
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #146 from albert-github/feature/extension_chm_prev_next
Enable Previous and Next buttons in chm output file
parents
030aad9a
e6a78b6b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
7 deletions
+24
-7
config.xml
src/config.xml
+2
-1
htmlhelp.cpp
src/htmlhelp.cpp
+22
-6
No files found.
src/config.xml
View file @
2790daaa
...
@@ -2029,7 +2029,8 @@ The \c DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
...
@@ -2029,7 +2029,8 @@ The \c DOCSET_PUBLISHER_NAME tag identifies the documentation publisher.
<![CDATA[
<![CDATA[
The \c BINARY_TOC flag
The \c BINARY_TOC flag
controls whether a binary table of contents is generated (\c YES) or a
controls whether a binary table of contents is generated (\c YES) or a
normal table of contents (\c NO) in the `.chm` file.
normal table of contents (\c NO) in the `.chm` file. Furthermore it enables
the `Previous` and `Next` buttons.
]]>
]]>
</docs>
</docs>
</option>
</option>
...
...
src/htmlhelp.cpp
View file @
2790daaa
...
@@ -495,9 +495,22 @@ void HtmlHelp::createProjectFile()
...
@@ -495,9 +495,22 @@ void HtmlHelp::createProjectFile()
// the font-size one is not normally settable by the HTML Help Workshop
// the font-size one is not normally settable by the HTML Help Workshop
// utility but the way to set it is described here:
// utility but the way to set it is described here:
// http://support.microsoft.com/?scid=kb%3Ben-us%3B240062&x=17&y=18
// http://support.microsoft.com/?scid=kb%3Ben-us%3B240062&x=17&y=18
t
<<
"main=
\"
"
<<
recode
(
Config_getString
(
"PROJECT_NAME"
))
<<
"
\"
,
\"
index.hhc
\"
,"
// NOTE: the 0x70387e number in addition to the above the Next and Prev button
// are shown. They can only be shown in case of a binary toc.
// dee http://www.mif2go.com/xhtml/htmlhelp_0016_943addingtabsandtoolbarbuttonstohtmlhelp.htm#Rz108x95873
// Value has been taken from htmlhelp.h file of the HTML Help Workshop
if
(
Config_getBool
(
"BINARY_TOC"
))
{
t
<<
"main=
\"
"
<<
recode
(
Config_getString
(
"PROJECT_NAME"
))
<<
"
\"
,
\"
index.hhc
\"
,"
"
\"
index.hhk
\"
,
\"
"
<<
indexName
<<
"
\"
,
\"
"
<<
indexName
<<
"
\"
,,,,,0x23520,,0x70387e,,,,,,,,0"
<<
endl
<<
endl
;
}
else
{
t
<<
"main=
\"
"
<<
recode
(
Config_getString
(
"PROJECT_NAME"
))
<<
"
\"
,
\"
index.hhc
\"
,"
"
\"
index.hhk
\"
,
\"
"
<<
indexName
<<
"
\"
,
\"
"
<<
"
\"
index.hhk
\"
,
\"
"
<<
indexName
<<
"
\"
,
\"
"
<<
indexName
<<
"
\"
,,,,,0x23520,,0x10387e,,,,,,,,0"
<<
endl
<<
endl
;
indexName
<<
"
\"
,,,,,0x23520,,0x10387e,,,,,,,,0"
<<
endl
<<
endl
;
}
t
<<
"[FILES]"
<<
endl
;
t
<<
"[FILES]"
<<
endl
;
char
*
s
=
indexFiles
.
first
();
char
*
s
=
indexFiles
.
first
();
...
@@ -620,11 +633,14 @@ void HtmlHelp::addContentsItem(bool isDir,
...
@@ -620,11 +633,14 @@ void HtmlHelp::addContentsItem(bool isDir,
Definition
*
/* def */
)
Definition
*
/* def */
)
{
{
// If we're using a binary toc then folders cannot have links.
// If we're using a binary toc then folders cannot have links.
if
(
Config_getBool
(
"BINARY_TOC"
)
&&
isDir
)
// Tried this and I didn't see any problems, when not using
{
// the resetting of file and anchor the TOC works better
file
=
0
;
// (prev / next button)
anchor
=
0
;
//if(Config_getBool("BINARY_TOC") && isDir)
}
//{
//file = 0;
//anchor = 0;
//}
int
i
;
for
(
i
=
0
;
i
<
dc
;
i
++
)
cts
<<
" "
;
int
i
;
for
(
i
=
0
;
i
<
dc
;
i
++
)
cts
<<
" "
;
cts
<<
"<LI><OBJECT type=
\"
text/sitemap
\"
>"
;
cts
<<
"<LI><OBJECT type=
\"
text/sitemap
\"
>"
;
cts
<<
"<param name=
\"
Name
\"
value=
\"
"
<<
convertToHtml
(
recode
(
name
),
TRUE
)
<<
"
\"
>"
;
cts
<<
"<param name=
\"
Name
\"
value=
\"
"
<<
convertToHtml
(
recode
(
name
),
TRUE
)
<<
"
\"
>"
;
...
...
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