doxygen
pagedef.h
1 /******************************************************************************
2  *
3  * Copyright (C) 1997-2020 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 PAGEDEF_H
17 #define PAGEDEF_H
18 
19 #include "definition.h"
20 
21 class PageLinkedRefMap;
22 class OutputList;
23 
25 class PageDef : public DefinitionMutable, public Definition
26 {
27  public:
28  // setters
29  virtual void setFileName(const QCString &name) = 0;
30  virtual void setLocalToc(const LocalToc &tl) = 0;
31  virtual void setShowLineNo(bool) = 0;
32  virtual void setTitle(const QCString &title) = 0;
33 
34  // getters
35  virtual DefType definitionType() const = 0;
36  virtual bool isLinkableInProject() const = 0;
37  virtual bool isLinkable() const = 0;
38  virtual QCString getOutputFileBase() const = 0;
39  virtual QCString anchor() const = 0;
40  virtual void findSectionsInDocumentation() = 0;
41  virtual QCString title() const = 0;
42  virtual const GroupDef *getGroupDef() const = 0;
43  virtual const PageLinkedRefMap &getSubPages() const = 0;
44  virtual void addInnerCompound(const Definition *) = 0;
45  virtual bool visibleInIndex() const = 0;
46  virtual bool documentedPage() const = 0;
47  virtual bool hasSubPages() const = 0;
48  virtual bool hasParentPage() const = 0;
49  virtual bool hasTitle() const = 0;
50  virtual LocalToc localToc() const = 0;
51  virtual void setPageScope(Definition *) = 0;
52  virtual Definition *getPageScope() const = 0;
53  virtual QCString displayName(bool=TRUE) const = 0;
54  virtual bool showLineNo() const = 0;
55 
56  virtual void writeDocumentation(OutputList &) = 0;
57  virtual void writeTagFile(TextStream &) = 0;
58  virtual void setNestingLevel(int) = 0;
59  virtual void writePageDocumentation(OutputList &) const = 0;
60 
61 };
62 
63 PageDef *createPageDef(const QCString &f,int l,const QCString &n,const QCString &d,const QCString &t);
64 
65 // --- Cast functions
66 
67 PageDef *toPageDef(Definition *d);
68 const PageDef *toPageDef(const Definition *d);
69 
70 // ------------------
71 
72 class PageLinkedMap : public LinkedMap<PageDef>
73 {
74 };
75 
76 class PageLinkedRefMap : public LinkedRefMap<const PageDef>
77 {
78 };
79 
80 #endif
81 
The common base class of all entity definitions found in the sources.
Definition: definition.h:76
virtual DefType definitionType() const =0
virtual QCString getOutputFileBase() const =0
virtual QCString name() const =0
Text streaming class that buffers data.
Definition: textstream.h:34
Definition: pagedef.h:72
virtual bool isLinkableInProject() const =0
Definition: types.h:304
Definition: definition.h:303
virtual QCString anchor() const =0
Container class representing a vector of objects with keys.
Definition: linkedmap.h:35
Container class representing a vector of objects with keys.
Definition: linkedmap.h:231
A model of a page symbol.
Definition: pagedef.h:25
Class representing a list of output generators that are written to in parallel.
Definition: outputlist.h:105
DefType
Definition: definition.h:80
Definition: pagedef.h:76
This is an alternative implementation of QCString.
Definition: qcstring.h:108
A model of a group of symbols.
Definition: groupdef.h:49
virtual bool isLinkable() const =0
virtual QCString displayName(bool=TRUE) const =0