summaryrefslogtreecommitdiffstats
path: root/qtjava/designer/juic/common/properties.xsl
blob: 3f6283ad32849be6d88a7b8983d531e872bbfae0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<?xml version="1.0" encoding="utf-8"?>
<!--
  ** Author: Marco Ladermann <marco.ladermann@gmx.de>
  ** Date: Thu Sep 12 21:57:42 CEST 2002 @873 /Internet Time/
  ** 
  ** This software is free software. It is released under the terms of the
  ** GNU Lesser General Public Licence (LGPL)
  ** see http://www.gnu.org/copyleft/lesser.html
  **
  ** These stylesheets are distributed in the hope that they will be useful,
  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  -->
<xsl:stylesheet 
    version="1.0" 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:exsl="http://exslt.org/common"
    xmlns:kde="http://kde.org/functions"
>

    <!-- call user hook for string property -->
    <xsl:template match="string" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putStringProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for string property -->
    <xsl:template match="stringlist" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putStringlistProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>
    
    <xsl:template match="comment" mode="property"/>

    <!-- call user hook for boolean property -->
    <xsl:template match="bool" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putBoolProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for a cstring property-->
    <xsl:template match="cstring" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putCstringProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for a color property-->
    <xsl:template match="color" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putColorProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for cursor value properties -->
    <xsl:template match="cursor" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putCursorProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for integer value properties -->
    <xsl:template match="number" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putNumberProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for enum value properties -->
    <xsl:template match="enum" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putEnumProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for pixmap value properties -->
    <xsl:template match="pixmap" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putPixmapProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for point value properties -->
    <xsl:template match="point" mode="property">
        <xsl:param name="data"/>
        <xsl:param name="name"/>
        <xsl:call-template name="putPointProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for rectangular value properties -->
    <xsl:template match="rect" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putRectProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for set value properties -->
    <xsl:template match="set" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putSetProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for size value properties -->
    <xsl:template match="size" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putSizeProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for sizepolicy properties -->
    <xsl:template match="sizepolicy" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putSizepolicyProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for font properties -->
    <xsl:template match="font" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putFontProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for palette properties -->
    <xsl:template match="palette" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putPaletteProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <!-- call user hook for iconSet properties -->
    <xsl:template match="iconset" mode="property">
        <xsl:param name="name"/>
        <xsl:param name="data"/>
        <xsl:call-template name="putIconsetProperty">
            <xsl:with-param name="property" select="$name"/>
            <xsl:with-param name="data" select="$data"/>
        </xsl:call-template>
    </xsl:template>

    <xsl:template match="*" mode="property">
        <xsl:message>WARNING: Unknown property type "<xsl:value-of select="name()"/>" at <xsl:value-of select="kde:printPath(.)"/></xsl:message>
    </xsl:template>
    <xsl:template match="@*|text()" mode="property"/>
</xsl:stylesheet>