cvs: php-gtk-doc /stylesheets/common en.xml /stylesheets/html class.xsl hierarchy.xsl

From: Date: Wed, 28 Dec 2005 12:42:58 +0000
Subject: cvs: php-gtk-doc /stylesheets/common en.xml /stylesheets/html class.xsl hierarchy.xsl
Groups: php.gtk.doc 
Request: Send a blank email to php-gtk-doc+get-1739@lists.php.net to get a copy of this message
cweiske Wed Dec 28 12:42:58 2005 EDT Modified files: /php-gtk-doc/stylesheets/html class.xsl hierarchy.xsl /php-gtk-doc/stylesheets/common en.xml Log: Interface support for classes, and class support for interfaces To brandmark a class as an interface, add a >type="interface"< attribute to the classentry. The description of the class will get a interface warning, and a list of all classes implementing this interface will be generated http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/html/class.xsl?r1=1.22&r2=1.23&diff_format=u Index: php-gtk-doc/stylesheets/html/class.xsl diff -u php-gtk-doc/stylesheets/html/class.xsl:1.22 php-gtk-doc/stylesheets/html/class.xsl:1.23 --- php-gtk-doc/stylesheets/html/class.xsl:1.22 Thu Dec 22 00:21:16 2005 +++ php-gtk-doc/stylesheets/html/class.xsl Wed Dec 28 12:42:58 2005 @@ -385,6 +385,7 @@ </xsl:if> <xsl:call-template name="implementedinterfaces" /> + <xsl:call-template name="implementedby" /> <p> <h3> @@ -392,6 +393,15 @@ <xsl:with-param name="key">description</xsl:with-param> </xsl:call-template> </h3> + <xsl:if test="@type='interface'"> + <blockquote> + <strong> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">interfacewarning</xsl:with-param> + </xsl:call-template> + </strong> + </blockquote> + </xsl:if> <blockquote> <xsl:apply-templates select="./classmeta/desc"/> </blockquote> http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/html/hierarchy.xsl?r1=1.11&r2=1.12&diff_format=u Index: php-gtk-doc/stylesheets/html/hierarchy.xsl diff -u php-gtk-doc/stylesheets/html/hierarchy.xsl:1.11 php-gtk-doc/stylesheets/html/hierarchy.xsl:1.12 --- php-gtk-doc/stylesheets/html/hierarchy.xsl:1.11 Thu Dec 22 00:21:16 2005 +++ php-gtk-doc/stylesheets/html/hierarchy.xsl Wed Dec 28 12:42:58 2005 @@ -290,5 +290,45 @@ </xsl:if> </xsl:template> +<!-- + Lists all classes which implement this interface - if it's an interface +--> + <xsl:template name="implementedby"> + <xsl:if test="@type='interface'"> + <h3> + <xsl:call-template name="gentext"> + <xsl:with-param name="key">implementedby</xsl:with-param> + </xsl:call-template> + </h3> + <blockquote> + <div class="literallayout"> + <xsl:for-each select="/set/book/classset/classentry[classmeta/implements=classmeta/classtitle]"> + <xsl:variable name="id"> + <xsl:call-template name="get_id_from_name"> + <xsl:with-param name="classname" select="classmeta/classtitle"/> + </xsl:call-template> + </xsl:variable> + <xsl:variable name="link"> + <xsl:call-template name="href.target"> + <xsl:with-param name="object" select="id($id)"/> + </xsl:call-template> + </xsl:variable> + <span dir="ltr"> + <a> + <xsl:attribute name="href"> + <xsl:value-of select="$link" /> + </xsl:attribute> + <xsl:value-of select="classmeta/classtitle" /> + </a> + </span> + <xsl:if test="position()!=last()"> + <xsl:text>, </xsl:text> + </xsl:if> + </xsl:for-each> + </div> + </blockquote> + </xsl:if> + </xsl:template> + </xsl:stylesheet> \ No newline at end of file http://cvs.php.net/viewcvs.cgi/php-gtk-doc/stylesheets/common/en.xml?r1=1.14&r2=1.15&diff_format=u Index: php-gtk-doc/stylesheets/common/en.xml diff -u php-gtk-doc/stylesheets/common/en.xml:1.14 php-gtk-doc/stylesheets/common/en.xml:1.15 --- php-gtk-doc/stylesheets/common/en.xml:1.14 Thu Dec 22 00:21:16 2005 +++ php-gtk-doc/stylesheets/common/en.xml Wed Dec 28 12:42:58 2005 @@ -8,7 +8,9 @@ <gentext key="description" text="Description"/> <gentext key="directsubclasses" text="Direct subclasses"/> <gentext key="editedby" text="Edited by"/> + <gentext key="implementedby" text="Implemented by"/> <gentext key="implementedinterfaces" text="Implemented interfaces"/> + <gentext key="interfacewarning" text="This is an interface and cannot be instantiated directly."/> <gentext key="listofexamples" text="List of Examples"/> <gentext key="listoffigures" text="List of Figures"/> <gentext key="listoftables" text="List of Tables"/>

« previous php.gtk.doc (#1739) next »