summaryrefslogtreecommitdiffstats
path: root/Source/cmDocumentationFormatterMan.h
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2012-06-21 21:06:08 (GMT)
committerAlex Neundorf <neundorf@kde.org>2012-06-21 21:06:08 (GMT)
commit38df155dd394efd45dff887028b2e1a4c0969b03 (patch)
tree3f4d3c0c989321d01f1cfa1a4c2d8e6d045741ff /Source/cmDocumentationFormatterMan.h
parente6a935f39b2d15677830fdba8090d8c725165ca9 (diff)
downloadCMake-38df155dd394efd45dff887028b2e1a4c0969b03.zip
CMake-38df155dd394efd45dff887028b2e1a4c0969b03.tar.gz
CMake-38df155dd394efd45dff887028b2e1a4c0969b03.tar.bz2
documentation: preparation for making the man section configurable
This patch adds a man section number, which is then used by the DocumentationFormatterMan. The section number is right now always 1, detecting this from the file name will be the next step. Alex
Diffstat (limited to 'Source/cmDocumentationFormatterMan.h')
-rw-r--r--Source/cmDocumentationFormatterMan.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmDocumentationFormatterMan.h b/Source/cmDocumentationFormatterMan.h
index 11b5acb..b3d069c 100644
--- a/Source/cmDocumentationFormatterMan.h
+++ b/Source/cmDocumentationFormatterMan.h
@@ -22,6 +22,8 @@ class cmDocumentationFormatterMan : public cmDocumentationFormatter
public:
cmDocumentationFormatterMan();
+ void SetManSection(int manSection);
+
virtual cmDocumentationEnums::Form GetForm() const
{ return cmDocumentationEnums::ManForm;}
@@ -35,6 +37,7 @@ public:
private:
void EscapeText(std::string& man_text);
+ int ManSection;
};
#endif