mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 19:38:12 +00:00
LibManual: Add SubsectionNode
This commit is contained in:
parent
2aa374eba1
commit
a9fe80550d
3 changed files with 54 additions and 0 deletions
27
Userland/Libraries/LibManual/SubsectionNode.h
Normal file
27
Userland/Libraries/LibManual/SubsectionNode.h
Normal file
|
@ -0,0 +1,27 @@
|
|||
/*
|
||||
* Copyright (c) 2022, kleines Filmröllchen <filmroellchen@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibManual/SectionNode.h>
|
||||
|
||||
namespace Manual {
|
||||
|
||||
// A non-toplevel (i.e. not numbered) manual section.
|
||||
class SubsectionNode : public SectionNode {
|
||||
public:
|
||||
SubsectionNode(NonnullRefPtr<SectionNode> parent, StringView name);
|
||||
virtual ~SubsectionNode() = default;
|
||||
|
||||
virtual Node const* parent() const override;
|
||||
virtual ErrorOr<String> path() const override;
|
||||
virtual ErrorOr<String> name() const override;
|
||||
|
||||
protected:
|
||||
NonnullRefPtr<SectionNode> m_parent;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue