cmDocumentationFormatterText.h 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*============================================================================
  2. CMake - Cross Platform Makefile Generator
  3. Copyright 2000-2009 Kitware, Inc., Insight Software Consortium
  4. Distributed under the OSI-approved BSD License (the "License");
  5. see accompanying file Copyright.txt for details.
  6. This software is distributed WITHOUT ANY WARRANTY; without even the
  7. implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  8. See the License for more information.
  9. ============================================================================*/
  10. #ifndef _cmDocumentationFormatterText_h
  11. #define _cmDocumentationFormatterText_h
  12. #include "cmStandardIncludes.h"
  13. #include "cmDocumentationFormatter.h"
  14. /** Class to print the documentation as plain text. */
  15. class cmDocumentationFormatterText : public cmDocumentationFormatter
  16. {
  17. public:
  18. cmDocumentationFormatterText();
  19. virtual cmDocumentationEnums::Form GetForm() const
  20. { return cmDocumentationEnums::TextForm;}
  21. virtual void PrintSection(std::ostream& os,
  22. const cmDocumentationSection& section,
  23. const char* name);
  24. virtual void PrintPreformatted(std::ostream& os, const char* text);
  25. virtual void PrintParagraph(std::ostream& os, const char* text);
  26. void PrintColumn(std::ostream& os, const char* text);
  27. void SetIndent(const char* indent);
  28. protected:
  29. int TextWidth;
  30. const char* TextIndent;
  31. };
  32. #endif