mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
1d829c862c
Automate with: git grep -l '#include <cm_' -- Source \ | xargs sed -i 's/#include <\(cm_.*\)>/#include "\1"/g' git grep -l '#include <cmsys/' -- Source \ | xargs sed -i 's/#include <\(cmsys\/.*\)>/#include "\1"/g' git grep -l '#include <cm[A-Z]' -- Source \ | xargs sed -i 's/#include <\(cm[A-Z].*\)>/#include "\1"/g'
67 lines
1.7 KiB
C++
67 lines
1.7 KiB
C++
/* 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 <iosfwd>
|
|
|
|
/** 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;
|
|
const char* TextIndent;
|
|
};
|
|
|
|
#endif
|