|
@@ -221,7 +221,7 @@ DOCUMENT_INTRO(CompatCommands, "cmakecompat",
|
|
|
cmDocumentation::cmDocumentation()
|
|
cmDocumentation::cmDocumentation()
|
|
|
:CurrentFormatter(0)
|
|
:CurrentFormatter(0)
|
|
|
{
|
|
{
|
|
|
- this->SetForm(TextForm);
|
|
|
|
|
|
|
+ this->SetForm(TextForm, 0);
|
|
|
this->addCommonStandardDocSections();
|
|
this->addCommonStandardDocSections();
|
|
|
this->ShowGenerators = true;
|
|
this->ShowGenerators = true;
|
|
|
}
|
|
}
|
|
@@ -594,7 +594,7 @@ bool cmDocumentation::PrintRequestedDocumentation(std::ostream& os)
|
|
|
i != this->RequestedHelpItems.end();
|
|
i != this->RequestedHelpItems.end();
|
|
|
++i)
|
|
++i)
|
|
|
{
|
|
{
|
|
|
- this->SetForm(i->HelpForm);
|
|
|
|
|
|
|
+ this->SetForm(i->HelpForm, i->ManSection);
|
|
|
this->CurrentArgument = i->Argument;
|
|
this->CurrentArgument = i->Argument;
|
|
|
// If a file name was given, use it. Otherwise, default to the
|
|
// If a file name was given, use it. Otherwise, default to the
|
|
|
// given stream.
|
|
// given stream.
|
|
@@ -1269,9 +1269,9 @@ bool cmDocumentation::CheckOptions(int argc, const char* const* argv,
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
//----------------------------------------------------------------------------
|
|
|
-void cmDocumentation::Print(Form f, std::ostream& os)
|
|
|
|
|
|
|
+void cmDocumentation::Print(Form f, int manSection, std::ostream& os)
|
|
|
{
|
|
{
|
|
|
- this->SetForm(f);
|
|
|
|
|
|
|
+ this->SetForm(f, manSection);
|
|
|
this->Print(os);
|
|
this->Print(os);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1879,7 +1879,7 @@ void cmDocumentation::CreateFullDocumentation()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------
|
|
//----------------------------------------------------------------------------
|
|
|
-void cmDocumentation::SetForm(Form f)
|
|
|
|
|
|
|
+void cmDocumentation::SetForm(Form f, int manSection)
|
|
|
{
|
|
{
|
|
|
switch(f)
|
|
switch(f)
|
|
|
{
|
|
{
|
|
@@ -1890,6 +1890,7 @@ void cmDocumentation::SetForm(Form f)
|
|
|
this->CurrentFormatter = &this->DocbookFormatter;
|
|
this->CurrentFormatter = &this->DocbookFormatter;
|
|
|
break;
|
|
break;
|
|
|
case ManForm:
|
|
case ManForm:
|
|
|
|
|
+ this->ManFormatter.SetManSection(manSection);
|
|
|
this->CurrentFormatter = &this->ManFormatter;
|
|
this->CurrentFormatter = &this->ManFormatter;
|
|
|
break;
|
|
break;
|
|
|
case TextForm:
|
|
case TextForm:
|