|
22 | 22 | <xsl:attribute name="id"> |
23 | 23 | <xsl:value-of select="dita-ot:name-to-id(compoundname)"/> |
24 | 24 | </xsl:attribute> |
| 25 | + <xsl:attribute name="keys"> |
| 26 | + <xsl:value-of select="concat('doxygen-',dita-ot:name-to-id(compoundname))"/> |
| 27 | + </xsl:attribute> |
| 28 | + |
25 | 29 | <xsl:attribute name="outputclass"> |
26 | 30 | <xsl:text>class</xsl:text> |
27 | 31 | </xsl:attribute> |
|
39 | 43 | <xsl:value-of select="dita-ot:prismjs(@language)"/> |
40 | 44 | </xsl:attribute> |
41 | 45 |
|
42 | | - <xsl:if test="basecompoundref/@refid"> |
43 | | - <xsl:if test="starts-with(basecompoundref/@refid, 'interface')"> |
| 46 | + <xsl:if test="basecompoundref[1]/@refid"> |
| 47 | + <xsl:if test="starts-with(basecompoundref[1]/@refid, 'interface')"> |
44 | 48 | <p class="- topic/p "> |
45 | 49 | <b class="+ topic/ph hi-d/b "> |
46 | 50 | <xsl:text>All Implemented Interfaces:</xsl:text> |
|
58 | 62 | </xsl:for-each> |
59 | 63 | </ul> |
60 | 64 | </xsl:if> |
61 | | - <xsl:if test="not(starts-with(basecompoundref/@refid, 'interface'))"> |
| 65 | + <xsl:if test="not(starts-with(basecompoundref[1]/@refid, 'interface'))"> |
62 | 66 | <p class="- topic/p "> |
63 | 67 | <b class="+ topic/ph hi-d/b "> |
64 | 68 | <xsl:text>Direct Base Classes:</xsl:text> |
|
133 | 137 | <xsl:call-template name="parse-brief-description"/> |
134 | 138 | <xsl:call-template name="parse-detailed-description"/> |
135 | 139 |
|
136 | | - <xsl:if test="sectiondef/memberdef[@kind='typedef' and @prot='public']"> |
| 140 | + <xsl:if test="sectiondef/memberdef[(@kind='typedef' or @kind='enum') and @prot='public']"> |
137 | 141 | <!-- Class typedef Summary --> |
138 | 142 | <section class="- topic/section " outputclass="typedefs_summary"> |
139 | 143 | <title class="- topic/title "> |
|
166 | 170 | <xsl:text>Method Summary</xsl:text> |
167 | 171 | </title> |
168 | 172 | <xsl:if |
169 | | - test="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']" |
| 173 | + test="sectiondef/memberdef[ (@kind='function' or @kind='slot') and not(type='') and @prot='public']" |
170 | 174 | > |
171 | 175 | <xsl:call-template name="add-method-summary"/> |
172 | 176 | </xsl:if> |
173 | 177 | <xsl:call-template name="add-inherited-method-summary"/> |
174 | 178 | </section> |
175 | 179 |
|
176 | | - <xsl:if test="sectiondef/memberdef[@kind='typedef'and @prot='public']"> |
| 180 | + <xsl:if test="sectiondef/memberdef[(@kind='typedef' or @kind='enum') and @prot='public']"> |
177 | 181 | <!-- typedef Detail --> |
178 | 182 | <section class="- topic/section " outputclass="typedefs"> |
179 | 183 | <xsl:attribute name="id"> |
|
183 | 187 | <xsl:text>Types Detail</xsl:text> |
184 | 188 | </title> |
185 | 189 | <xsl:apply-templates |
186 | | - select="sectiondef/memberdef[@kind='typedef' and @prot='public']" |
| 190 | + select="sectiondef/memberdef[(@kind='typedef' or @kind='enum') and @prot='public']" |
187 | 191 | mode="typedef" |
188 | 192 | > |
189 | 193 | <xsl:sort select="@id"/> |
|
210 | 214 | </section> |
211 | 215 | </xsl:if> |
212 | 216 |
|
213 | | - <xsl:if test="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and type='' and @prot='public']"> |
| 217 | + <xsl:if test="sectiondef/memberdef[ @kind='function' and type='' and @prot='public']"> |
214 | 218 | <!-- Constructor Detail --> |
215 | 219 | <section class="- topic/section " outputclass="constructors"> |
216 | 220 | <xsl:attribute name="id"> |
|
229 | 233 | </xsl:if> |
230 | 234 |
|
231 | 235 | <xsl:if |
232 | | - test="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']" |
| 236 | + test="sectiondef/memberdef[(@kind='function' or @kind='slot') and not(type='') and @prot='public']" |
233 | 237 | > |
234 | 238 | <!-- Method Detail--> |
235 | 239 | <section class="- topic/section " outputclass="methods"> |
|
240 | 244 | <xsl:text>Method Detail</xsl:text> |
241 | 245 | </title> |
242 | 246 | <xsl:apply-templates |
243 | | - select="sectiondef[contains(@kind,'-func')]/memberdef[@kind='function' and not(type='') and @prot='public']" |
| 247 | + select="sectiondef/memberdef[ ( @kind='function' or @kind='slot') and not(type='') and @prot='public']" |
244 | 248 | mode="method" |
245 | 249 | > |
246 | 250 | <xsl:sort select="name"/> |
|
364 | 368 | <codeph class="+ topic/ph pr-d/codeph "> |
365 | 369 | <xsl:attribute name="xtrc" select="concat('codeph:',generate-id(.),'3')"/> |
366 | 370 | <xsl:call-template name="add-modifiers"/> |
367 | | - <xsl:call-template name="add-class-link"> |
368 | | - <xsl:with-param name="class" select="type"/> |
| 371 | + <xsl:call-template name="add-type-link"> |
| 372 | + <xsl:with-param name="refid" select="type/ref/@refid"/> |
| 373 | + <xsl:with-param name="reftext" select="type"/> |
369 | 374 | </xsl:call-template> |
370 | 375 | </codeph> |
371 | 376 | </entry> |
|
411 | 416 | <xsl:if test="@final='true'"> |
412 | 417 | <xsl:text>final </xsl:text> |
413 | 418 | </xsl:if> |
414 | | - <xsl:call-template name="add-class-link"> |
415 | | - <xsl:with-param name="class" select="type"/> |
| 419 | + <xsl:call-template name="add-type-link"> |
| 420 | + <xsl:with-param name="refid" select="type/ref/@refid"/> |
| 421 | + <xsl:with-param name="reftext" select="type"/> |
416 | 422 | </xsl:call-template> |
417 | 423 | <xsl:value-of select="concat(' ',$field)"/> |
418 | 424 | </codeph> |
|
457 | 463 | </row> |
458 | 464 | </thead> |
459 | 465 | <tbody class="- topic/tbody "> |
460 | | - <xsl:for-each select="sectiondef/memberdef[@kind='typedef' and @prot='public']"> |
| 466 | + <xsl:for-each select="sectiondef/memberdef[(@kind='typedef' or @kind ='enum') and @prot='public']"> |
461 | 467 | <xsl:sort select="name"/> |
462 | 468 | <xsl:variable name="field" select="name"/> |
463 | 469 | <row class="- topic/row "> |
|
0 commit comments