Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
docoptions.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2025 by Dimitri van Heesch.
4
*
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation under the terms of the GNU General Public License is hereby
7
* granted. No representations are made about the suitability of this software
8
* for any purpose. It is provided "as is" without express or implied warranty.
9
* See the GNU General Public License for more details.
10
*
11
* Documents produced by Doxygen are derivative works derived from the
12
* input used in their production; they are not affected by this license.
13
*
14
*/
15
16
#ifndef DOCOPTIONS_H
17
#define DOCOPTIONS_H
18
19
#include "
config.h
"
20
#include "
qcstring.h
"
21
22
struct
DocOptions
23
{
24
public
:
25
// === getters for optional params
26
bool
indexWords
()
const
{
return
m_indexWords
; }
27
bool
isExample
()
const
{
return
m_isExample
; }
28
QCString
exampleName
()
const
{
return
m_exampleName
; }
29
bool
singleLine
()
const
{
return
m_singleLine
; }
30
bool
linkFromIndex
()
const
{
return
m_linkFromIndex
; }
31
bool
markdownSupport
()
const
{
return
m_markdownSupport
; }
32
bool
autolinkSupport
()
const
{
return
m_autolinkSupport
; }
33
int
sectionLevel
()
const
{
return
m_sectionLevel
; }
34
35
// === setters for optional params
36
37
/// Indicates whether or not words should be put in the search index.
38
DocOptions
&
setIndexWords
(
bool
b)
39
{
m_indexWords
=b;
return
*
this
; }
40
41
/// Associate this comment block with a given example
42
DocOptions
&
setExample
(
const
QCString
&name)
43
{
m_isExample
=!name.
isEmpty
();
m_exampleName
= name;
return
*
this
; }
44
45
/// Select if this is for a single line, so without starting a new paragraph at the end.
46
DocOptions
&
setSingleLine
(
bool
b)
47
{
m_singleLine
=b;
return
*
this
; }
48
49
/// Select if the documentation is generated from an
50
/// index page. In this case context is not used to determine
51
/// the relative path when making a link.
52
DocOptions
&
setLinkFromIndex
(
bool
b)
53
{
m_linkFromIndex
=b;
return
*
this
; }
54
55
/// Select if the input needs to take markdown markup into account.
56
DocOptions
&
setMarkdownSupport
(
bool
b)
57
{
m_markdownSupport
=b;
return
*
this
; }
58
59
/// Select if the input need to perform auto linking of words
60
DocOptions
&
setAutolinkSupport
(
bool
b)
61
{
m_autolinkSupport
=b;
return
*
this
; }
62
63
/// Restrict output up to the given section level
64
DocOptions
&
setSectionLevel
(
int
l)
65
{
m_sectionLevel
=l;
return
*
this
; }
66
67
private
:
68
// optional params with defaults
69
bool
m_indexWords
=
false
;
70
bool
m_isExample
=
false
;
71
QCString
m_exampleName
;
72
bool
m_singleLine
=
false
;
73
bool
m_linkFromIndex
=
false
;
74
bool
m_markdownSupport
=
Config_getBool
(MARKDOWN_SUPPORT);
75
bool
m_autolinkSupport
=
Config_getBool
(AUTOLINK_SUPPORT);
76
int
m_sectionLevel
= -1;
77
};
78
79
#endif
80
QCString
This is an alternative implementation of QCString.
Definition
qcstring.h:101
QCString::isEmpty
bool isEmpty() const
Returns TRUE iff the string is empty.
Definition
qcstring.h:163
config.h
Config_getBool
#define Config_getBool(name)
Definition
config.h:33
qcstring.h
DocOptions
Definition
docoptions.h:23
DocOptions::m_isExample
bool m_isExample
Definition
docoptions.h:70
DocOptions::m_autolinkSupport
bool m_autolinkSupport
Definition
docoptions.h:75
DocOptions::setLinkFromIndex
DocOptions & setLinkFromIndex(bool b)
Select if the documentation is generated from an index page.
Definition
docoptions.h:52
DocOptions::setSingleLine
DocOptions & setSingleLine(bool b)
Select if this is for a single line, so without starting a new paragraph at the end.
Definition
docoptions.h:46
DocOptions::setMarkdownSupport
DocOptions & setMarkdownSupport(bool b)
Select if the input needs to take markdown markup into account.
Definition
docoptions.h:56
DocOptions::autolinkSupport
bool autolinkSupport() const
Definition
docoptions.h:32
DocOptions::m_indexWords
bool m_indexWords
Definition
docoptions.h:69
DocOptions::linkFromIndex
bool linkFromIndex() const
Definition
docoptions.h:30
DocOptions::markdownSupport
bool markdownSupport() const
Definition
docoptions.h:31
DocOptions::sectionLevel
int sectionLevel() const
Definition
docoptions.h:33
DocOptions::setSectionLevel
DocOptions & setSectionLevel(int l)
Restrict output up to the given section level.
Definition
docoptions.h:64
DocOptions::m_linkFromIndex
bool m_linkFromIndex
Definition
docoptions.h:73
DocOptions::setAutolinkSupport
DocOptions & setAutolinkSupport(bool b)
Select if the input need to perform auto linking of words.
Definition
docoptions.h:60
DocOptions::m_markdownSupport
bool m_markdownSupport
Definition
docoptions.h:74
DocOptions::setIndexWords
DocOptions & setIndexWords(bool b)
Indicates whether or not words should be put in the search index.
Definition
docoptions.h:38
DocOptions::setExample
DocOptions & setExample(const QCString &name)
Associate this comment block with a given example.
Definition
docoptions.h:42
DocOptions::exampleName
QCString exampleName() const
Definition
docoptions.h:28
DocOptions::indexWords
bool indexWords() const
Definition
docoptions.h:26
DocOptions::m_exampleName
QCString m_exampleName
Definition
docoptions.h:71
DocOptions::singleLine
bool singleLine() const
Definition
docoptions.h:29
DocOptions::m_singleLine
bool m_singleLine
Definition
docoptions.h:72
DocOptions::m_sectionLevel
int m_sectionLevel
Definition
docoptions.h:76
DocOptions::isExample
bool isExample() const
Definition
docoptions.h:27
src
docoptions.h
Generated by
1.17.0