Doxygen
Loading...
Searching...
No Matches
pagedef.h
Go to the documentation of this file.
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
22class OutputList;
23
24/** @brief A model of a page symbol. */
25class PageDef : public DefinitionMutable, public Definition
26{
27 public:
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 virtual void addSectionsToIndex() = 0;
56
57};
58
59std::unique_ptr<PageDef> createPageDef(const QCString &f,int l,const QCString &n,const QCString &d,const QCString &t);
60
61// --- Cast functions
62
64const PageDef *toPageDef(const Definition *d);
65
66// ------------------
67
69{
70};
71
72class PageLinkedRefMap : public LinkedRefMap<PageDef>
73{
74};
75
76#endif
77
The common base class of all entity definitions found in the sources.
Definition definition.h:76
virtual const QCString & name() const =0
A model of a group of symbols.
Definition groupdef.h:52
Container class representing a vector of objects with keys.
Definition linkedmap.h:36
Container class representing a vector of objects with keys.
Definition linkedmap.h:232
Class representing a list of output generators that are written to in parallel.
Definition outputlist.h:314
A model of a page symbol.
Definition pagedef.h:26
virtual bool documentedPage() const =0
virtual void writePageDocumentation(OutputList &) const =0
virtual bool hasParentPage() const =0
virtual void addSectionsToIndex()=0
virtual bool visibleInIndex() const =0
virtual void setTitle(const QCString &title)=0
virtual void setLocalToc(const LocalToc &tl)=0
virtual void setNestingLevel(int)=0
virtual const PageLinkedRefMap & getSubPages() const =0
virtual bool hasTitle() const =0
virtual void setFileName(const QCString &name)=0
virtual bool hasSubPages() const =0
virtual void setShowLineNo(bool)=0
virtual LocalToc localToc() const =0
virtual bool showLineNo() const =0
virtual QCString title() const =0
virtual void writeDocumentation(OutputList &)=0
virtual void setPageScope(Definition *)=0
virtual const GroupDef * getGroupDef() const =0
virtual void writeTagFile(TextStream &)=0
virtual Definition * getPageScope() const =0
virtual void findSectionsInDocumentation()=0
This is an alternative implementation of QCString.
Definition qcstring.h:101
Text streaming class that buffers data.
Definition textstream.h:36
#define ABSTRACT_BASE_CLASS(cls)
Macro to implement rule of 5 for an abstract base class.
Definition construct.h:20
std::unique_ptr< PageDef > createPageDef(const QCString &f, int l, const QCString &n, const QCString &d, const QCString &t)
Definition pagedef.cpp:79
PageDef * toPageDef(Definition *d)
Definition pagedef.cpp:467