Ticket #3242: enum_internal_doxygen.diff

File enum_internal_doxygen.diff, 1.9 KB (added by Mathias Gaunard <loufoque@…>, 13 years ago)

Patch to ignore enumvalue's which have INTERNAL ONLY in their description

  • doxygen2boostbook.xsl

     
    292292  </xsl:template>
    293293
    294294  <xsl:template match="enumvalue">
    295     <enumvalue>
    296       <xsl:attribute name="name">
    297         <xsl:value-of select="name"/>
    298       </xsl:attribute>
     295    <xsl:choose>
     296      <!-- If the string INTERNAL ONLY is in the description, don't
     297           emit this entity. This hack is necessary because Doxygen doesn't
     298           tell us what is \internal and what isn't. -->
     299      <xsl:when test="contains(detaileddescription/para, 'INTERNAL ONLY')"/>
     300      <xsl:when test="contains(briefdescription/para, 'INTERNAL ONLY')"/>
     301      <xsl:when test="contains(inbodydescription/para, 'INTERNAL ONLY')"/>
     302      <xsl:otherwise>
     303 
     304        <enumvalue>
     305          <xsl:attribute name="name">
     306            <xsl:value-of select="name"/>
     307          </xsl:attribute>
    299308
    300       <xsl:if test="initializer">
    301         <default>
    302           <xsl:apply-templates select="initializer" mode="passthrough"/>
    303         </default>
    304       </xsl:if>
     309          <xsl:if test="initializer">
     310            <default>
     311              <xsl:apply-templates select="initializer" mode="passthrough"/>
     312            </default>
     313          </xsl:if>
    305314
    306       <xsl:apply-templates select="briefdescription" mode="passthrough"/>
    307       <xsl:apply-templates select="detaileddescription" mode="passthrough"/>
    308       <xsl:apply-templates select="inbodydescription" mode="passthrough"/>
    309     </enumvalue>
     315          <xsl:apply-templates select="briefdescription" mode="passthrough"/>
     316          <xsl:apply-templates select="detaileddescription" mode="passthrough"/>
     317          <xsl:apply-templates select="inbodydescription" mode="passthrough"/>
     318        </enumvalue>
     319      </xsl:otherwise>
     320    </xsl:choose>
    310321  </xsl:template>
    311322
    312323  <xsl:template name="doxygen.include.header.rec">