diff options
author | Alex Turbov <i.zaufi@gmail.com> | 2022-08-23 18:08:25 (GMT) |
---|---|---|
committer | Alex Turbov <i.zaufi@gmail.com> | 2022-11-17 12:37:12 (GMT) |
commit | e06bd68b36d675465a46196194efa55aecd81d08 (patch) | |
tree | 3f9710d456d2657c2ce85bada1a045d0aec7ae14 /Source/cmDocumentationFormatter.h | |
parent | 5ef97a0182e72abd12f19b0d396ff8b77324772f (diff) | |
download | CMake-e06bd68b36d675465a46196194efa55aecd81d08.zip CMake-e06bd68b36d675465a46196194efa55aecd81d08.tar.gz CMake-e06bd68b36d675465a46196194efa55aecd81d08.tar.bz2 |
cmDocumentationFormatter: Hide internal methods into `private` section
Diffstat (limited to 'Source/cmDocumentationFormatter.h')
-rw-r--r-- | Source/cmDocumentationFormatter.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Source/cmDocumentationFormatter.h b/Source/cmDocumentationFormatter.h index ca942bc..e269f6a 100644 --- a/Source/cmDocumentationFormatter.h +++ b/Source/cmDocumentationFormatter.h @@ -13,14 +13,15 @@ class cmDocumentationSection; class cmDocumentationFormatter { public: + void SetIndent(std::size_t indent) { this->TextIndent = indent; } void PrintFormatted(std::ostream& os, std::string const& text) const; - void PrintPreformatted(std::ostream& os, std::string const& text) const; void PrintSection(std::ostream& os, cmDocumentationSection const& section); - void PrintParagraph(std::ostream& os, std::string const& text) const; - void PrintColumn(std::ostream& os, std::string const& text) const; - void SetIndent(std::size_t indent) { this->TextIndent = indent; } private: + void PrintPreformatted(std::ostream& os, std::string const&) const; + void PrintParagraph(std::ostream& os, std::string const&) const; + void PrintColumn(std::ostream& os, std::string const&) const; + std::size_t TextWidth = 77u; std::size_t TextIndent = 0u; }; |