document nested classes and nested enums

[SVN r37183]
This commit is contained in:
Eric Niebler 2007-03-14 22:33:58 +00:00
parent 18eced6070
commit f9d3ce76c5
2 changed files with 25 additions and 7 deletions

View File

@ -46,7 +46,6 @@
<xsl:key name="compounds-by-kind" match="compounddef" use="@kind"/> <xsl:key name="compounds-by-kind" match="compounddef" use="@kind"/>
<xsl:key name="compounds-by-id" match="compounddef" use="@id"/> <xsl:key name="compounds-by-id" match="compounddef" use="@id"/>
<xsl:key name="inner-classes" match="compounddef[not(attribute::kind='namespace') and not(attribute::kind='file')]/innerclass" use="@refid"/>
<xsl:strip-space elements="briefdescription detaileddescription"/> <xsl:strip-space elements="briefdescription detaileddescription"/>
@ -184,8 +183,8 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
<xsl:param name="with-namespace-refs"/> <xsl:param name="with-namespace-refs"/>
<xsl:if test="contains(string(location/attribute::file), <xsl:if test="contains(string(location/attribute::file),
concat('/', $in-file)) and concat('/', $in-file)) ">
not (key('inner-classes', @id))">
<!-- The short name of this class --> <!-- The short name of this class -->
<xsl:variable name="name-with-spec"> <xsl:variable name="name-with-spec">
<xsl:call-template name="strip-qualifiers"> <xsl:call-template name="strip-qualifiers">

View File

@ -720,24 +720,29 @@ Unknown type element "<xsl:value-of select="local-name(.)"/>" in type.display.na
mode="reference"> mode="reference">
<xsl:with-param name="indentation" select="$indentation + 2"/> <xsl:with-param name="indentation" select="$indentation + 2"/>
</xsl:apply-templates> </xsl:apply-templates>
<!-- Enums -->
<xsl:apply-templates select="enum" mode="synopsis">
<xsl:with-param name="indentation" select="$indentation + 2"/>
</xsl:apply-templates>
<!-- Construct/Copy/Destruct --> <!-- Construct/Copy/Destruct -->
<xsl:call-template name="construct-copy-destruct-synopsis"> <xsl:call-template name="construct-copy-destruct-synopsis">
<xsl:with-param name="indentation" select="$indentation + 2"/> <xsl:with-param name="indentation" select="$indentation + 2"/>
</xsl:call-template> </xsl:call-template>
<!-- Member functions --> <!-- Member functions -->
<xsl:apply-templates <xsl:apply-templates
select="method-group|method|overloaded-method" select="method-group|method|overloaded-method"
mode="synopsis"> mode="synopsis">
<xsl:with-param name="indentation" select="$indentation + 2"/> <xsl:with-param name="indentation" select="$indentation + 2"/>
</xsl:apply-templates> </xsl:apply-templates>
<!-- Data members --> <!-- Data members -->
<xsl:apply-templates select="data-member" mode="synopsis"> <xsl:apply-templates select="data-member" mode="synopsis">
<xsl:with-param name="indentation" select="$indentation + 2"/> <xsl:with-param name="indentation" select="$indentation + 2"/>
</xsl:apply-templates> </xsl:apply-templates>
<!-- Closing brace --> <!-- Closing brace -->
<xsl:text>&#10;</xsl:text> <xsl:text>&#10;</xsl:text>
<xsl:call-template name="indent"> <xsl:call-template name="indent">
@ -803,9 +808,23 @@ Unknown type element "<xsl:value-of select="local-name(.)"/>" in type.display.na
<xsl:apply-templates select="description"/> <xsl:apply-templates select="description"/>
<xsl:call-template name="construct-copy-destruct-reference"/> <xsl:call-template name="construct-copy-destruct-reference"/>
<xsl:apply-templates <xsl:apply-templates
select="method-group|method|overloaded-method" select="method-group|method|overloaded-method"
mode="reference"/> mode="reference"/>
<!-- Emit reference docs for nested classes -->
<xsl:apply-templates
select="class|class-specialization|
struct|struct-specialization|
union|union-specialization"
mode="namespace-reference"/>
<!-- Emit reference docs for nested enums -->
<xsl:apply-templates
select="enum"
mode="namespace-reference"/>
<xsl:apply-templates select="free-function-group" mode="reference"> <xsl:apply-templates select="free-function-group" mode="reference">
<xsl:with-param name="class" select="@name"/> <xsl:with-param name="class" select="@name"/>
</xsl:apply-templates> </xsl:apply-templates>