/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying file Copyright.txt or https://cmake.org/licensing for details. */ #ifndef _cmDocumentationFormatter_h #define _cmDocumentationFormatter_h #include "cmConfigure.h" // IWYU pragma: keep #include /** This is just a helper class to make it build with MSVC 6.0. Actually the enums and internal classes could directly go into cmDocumentation, but then MSVC6 complains in RequestedHelpItem that cmDocumentation is an undefined type and so it doesn't know the enums. Moving the enums to a class which is then already completely parsed helps against this. */ class cmDocumentationEnums { public: /** Types of help provided. */ enum Type { None, Version, Usage, Help, Full, ListManuals, ListCommands, ListModules, ListProperties, ListVariables, ListPolicies, ListGenerators, OneManual, OneCommand, OneModule, OneProperty, OneVariable, OnePolicy, OldCustomModules }; }; class cmDocumentationSection; /** Print documentation in a simple text format. */ class cmDocumentationFormatter { public: cmDocumentationFormatter(); virtual ~cmDocumentationFormatter(); void PrintFormatted(std::ostream& os, const char* text); virtual void PrintSection(std::ostream& os, cmDocumentationSection const& section); virtual void PrintPreformatted(std::ostream& os, const char* text); virtual void PrintParagraph(std::ostream& os, const char* text); void PrintColumn(std::ostream& os, const char* text); void SetIndent(const char* indent); private: int TextWidth = 77; const char* TextIndent = ""; }; #endif on.git/tree/Misc?h=v2.4.1c1&id=f64509e348f6928810c565c133b4176fe3c23b81'>treecommitdiffstats
path: root/Misc
Commit message (Expand)AuthorAgeFilesLines
* Fix caseAndrew M. Kuchling2003-04-241-1/+1
* [Patch #679505] Document that the rotor module is deprecatedAndrew M. Kuchling2003-04-241-0/+4
* New module platform.py, submitted by Marc-Andre Lemburg.Marc-André Lemburg2003-04-241-0/+3
* Revert the previous enhancement to the bytecode optimizer.Raymond Hettinger2003-04-241-7/+0
* Mention the new getargs.c format codes.Thomas Heller2003-04-231-0/+3
* SF patch 557704: netrc module can't handle all passwordsRaymond Hettinger2003-04-231-0/+2
* Enable os.fsync() for Windows, mapping it to MS's _commit() there. TheTim Peters2003-04-231-0/+3
* Adding new built-in function sum, with docs and tests.Alex Martelli2003-04-221-0/+4
* Improved the bytecode optimizer.Raymond Hettinger2003-04-221-0/+7
* Patch #553171: Add writeback parameter. Also add protocol parameter.Martin v. Löwis2003-04-191-0/+3
* - bool() called without arguments now returns False rather thanGuido van Rossum2003-04-191-0/+5
* - Several methods of nntplib.NNTP have grown an optional file argumentGuido van Rossum2003-04-192-0/+5
* Patch #536883: SimpleXMLRPCServer auto-docing subclass.Martin v. Löwis2003-04-18