Correctly handle <set> directly within <component>.
This commit is contained in:
parent
d11f2ccdce
commit
d24bd09360
1 changed files with 32 additions and 34 deletions
|
@ -94,6 +94,7 @@
|
|||
<xsl:text>
</xsl:text>
|
||||
<xsl:text>#include "sal/config.h"
</xsl:text>
|
||||
<xsl:text>
</xsl:text>
|
||||
<xsl:if test=".//prop or .//set">
|
||||
<xsl:if test=".//prop/@oor:nillable = 'true'">
|
||||
<xsl:text>#include "boost/optional.hpp"
</xsl:text>
|
||||
</xsl:if>
|
||||
|
@ -103,16 +104,12 @@
|
|||
<xsl:if test=".//prop/@oor:type = 'xs:hexBinary' or .//prop/@oor:type = 'oor:boolean-list' or .//prop/@oor:type = 'oor:short-list' or .//prop/@oor:type = 'oor:int-list' or .//prop/@oor:type = 'oor:long-list' or .//prop/@oor:type = 'oor:double-list' or .//prop/@oor:type = 'oor:string-list'">
|
||||
<xsl:text>#include "com/sun/star/uno/Sequence.hxx"
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test=".//prop or .//set">
|
||||
<xsl:text>#include "rtl/ustring.h"
</xsl:text>
|
||||
<xsl:text>#include "rtl/ustring.hxx"
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test=".//prop/@oor:type = 'xs:short' or .//prop/@oor:type = 'xs:int' or .//prop/@oor:type = 'xs:long' or .//prop/@oor:type = 'xs:hexBinary'">
|
||||
<xsl:text>#include "sal/types.h"
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test=".//prop or .//set">
|
||||
<xsl:text>#include "unotools/configuration.hxx"
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:text>
</xsl:text>
|
||||
<xsl:text>namespace officecfg { namespace </xsl:text>
|
||||
<xsl:value-of select="$ns1"/>
|
||||
|
@ -126,7 +123,7 @@
|
|||
</xsl:if>
|
||||
<xsl:text> {
</xsl:text>
|
||||
<xsl:text>
</xsl:text>
|
||||
<xsl:apply-templates select="group">
|
||||
<xsl:apply-templates select="group|set|prop">
|
||||
<xsl:with-param name="path" select="$path"/>
|
||||
</xsl:apply-templates>
|
||||
<xsl:if test="$ns2">
|
||||
|
@ -137,6 +134,7 @@
|
|||
</xsl:if>
|
||||
<xsl:text>} }
</xsl:text>
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:text>#endif
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
|
Loading…
Reference in a new issue