cmDocumentationFormatterHTML.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 _cmDocumentationFormatterHTML_h
  11. #define _cmDocumentationFormatterHTML_h
  12. #include "cmStandardIncludes.h"
  13. #include "cmDocumentationFormatter.h"
  14. /** Class to print the documentation as HTML. */
  15. class cmDocumentationFormatterHTML : public cmDocumentationFormatter
  16. {
  17. public:
  18. cmDocumentationFormatterHTML();
  19. virtual cmDocumentationEnums::Form GetForm() const
  20. { return cmDocumentationEnums::HTMLForm;}
  21. virtual void PrintHeader(const char* docname, const char* appname,
  22. std::ostream& os);
  23. virtual void PrintFooter(std::ostream& os);
  24. virtual void PrintSection(std::ostream& os,
  25. const cmDocumentationSection& section,
  26. const char* name);
  27. virtual void PrintPreformatted(std::ostream& os, const char* text);
  28. virtual void PrintParagraph(std::ostream& os, const char* text);
  29. virtual void PrintIndex(std::ostream& ,
  30. std::vector<const cmDocumentationSection *>&);
  31. private:
  32. void PrintHTMLEscapes(std::ostream& os, const char* text);
  33. };
  34. #endif