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  ABSTRACT_BASE_CLASS(PageDef)
29 
30  // setters
31  virtual void setFileName(const QCString &name) = 0;
32  virtual void setLocalToc(const LocalToc &tl) = 0;
33  virtual void setShowLineNo(bool) = 0;
34  virtual void setTitle(const QCString &title) = 0;
35 
36  // getters
37  virtual void findSectionsInDocumentation() = 0;
38  virtual QCString title() const = 0;
39  virtual const GroupDef *getGroupDef() const = 0;
40  virtual const PageLinkedRefMap &getSubPages() const = 0;
41  virtual bool visibleInIndex() const = 0;
42  virtual bool documentedPage() const = 0;
43  virtual bool hasSubPages() const = 0;
44  virtual bool hasParentPage() const = 0;
45  virtual bool hasTitle() const = 0;
46  virtual LocalToc localToc() const = 0;
47  virtual void setPageScope(Definition *) = 0;
48  virtual Definition *getPageScope() const = 0;
49  virtual bool showLineNo() const = 0;
50 
51  virtual void writeDocumentation(OutputList &) = 0;
52  virtual void writeTagFile(TextStream &) = 0;
53  virtual void setNestingLevel(int) = 0;
54  virtual void writePageDocumentation(OutputList &) const = 0;
55 
56 };
57 
58 std::unique_ptr<PageDef> createPageDef(const QCString &f,int l,const QCString &n,const QCString &d,const QCString &t);
59 
60 // --- Cast functions
61 
62 PageDef *toPageDef(Definition *d);
63 const PageDef *toPageDef(const Definition *d);
64 
65 // ------------------
66 
67 class PageLinkedMap : public LinkedMap<PageDef>
68 {
69 };
70 
71 class PageLinkedRefMap : public LinkedRefMap<const PageDef>
72 {
73 };
74 
75 #endif
76 
The common base class of all entity definitions found in the sources.
Definition: definition.h:75
Text streaming class that buffers data.
Definition: textstream.h:35
Definition: pagedef.h:67
virtual const QCString & name() const =0
Definition: types.h:308
Definition: definition.h:305
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:530
Definition: pagedef.h:71
This is an alternative implementation of QCString.
Definition: qcstring.h:93
A model of a group of symbols.
Definition: groupdef.h:51