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
66d184ce
Commit
66d184ce
authored
Aug 04, 2013
by
Dimitri van Heesch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 688858 - SHORT_NAMES break references to \page in PDF output
parent
4fcc4168
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
3 deletions
+20
-3
index.cpp
src/index.cpp
+5
-2
pagedef.cpp
src/pagedef.cpp
+14
-0
pagedef.h
src/pagedef.h
+1
-1
No files found.
src/index.cpp
View file @
66d184ce
...
...
@@ -4129,16 +4129,19 @@ static void writeIndex(OutputList &ol)
}
QCString
title
=
pd
->
title
();
if
(
title
.
isEmpty
())
title
=
pd
->
name
();
ol
.
startIndexSection
(
isPageDocumentation
);
ol
.
parseText
(
title
);
ol
.
endIndexSection
(
isPageDocumentation
);
ol
.
pushGeneratorState
();
// write TOC title (RTF only)
ol
.
disableAllBut
(
OutputGenerator
::
RTF
);
ol
.
startIndexSection
(
isPageDocumentation2
);
ol
.
parseText
(
title
);
ol
.
endIndexSection
(
isPageDocumentation2
);
ol
.
popGeneratorState
();
ol
.
writeAnchor
(
0
,
pd
->
name
());
ol
.
popGeneratorState
();
ol
.
writeAnchor
(
0
,
pd
->
getOutputFileBase
());
ol
.
writePageLink
(
pd
->
getOutputFileBase
(),
first
);
first
=
FALSE
;
...
...
src/pagedef.cpp
View file @
66d184ce
...
...
@@ -61,6 +61,20 @@ QCString PageDef::getOutputFileBase() const
return
m_fileName
;
}
void
PageDef
::
setFileName
(
const
char
*
name
)
{
static
bool
shortNames
=
Config_getBool
(
"SHORT_NAMES"
);
if
(
shortNames
)
{
m_fileName
=
convertNameToFile
(
name
);
}
else
{
m_fileName
=
name
;
}
}
void
PageDef
::
addInnerCompound
(
Definition
*
def
)
{
if
(
def
->
definitionType
()
==
Definition
::
TypePage
)
...
...
src/pagedef.h
View file @
66d184ce
...
...
@@ -32,7 +32,7 @@ class PageDef : public Definition
~
PageDef
();
// setters
void
setFileName
(
const
char
*
name
)
{
m_fileName
=
name
;
}
void
setFileName
(
const
char
*
name
)
;
void
setShowToc
(
bool
b
);
// getters
...
...
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