1<?xml version="1.0" encoding="UTF-8"?>
2<!--***********************************************************
3 *
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements.  See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership.  The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License.  You may obtain a copy of the License at
11 *
12 *   http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied.  See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 *
21 ***********************************************************-->
22
23
24<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:aml="http://schemas.microsoft.com/aml/2001/core" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" exclude-result-prefixes="w wx aml o dt fo v">
25    <xsl:template name="ms_word_draw_map2ooo_custom_draw">
26        <xsl:param name="ms_word_draw_type"/>
27        <!-- all ooo draw names are get from EnhancedCustomShapeGeometry.idl-->
28        <xsl:choose>
29            <xsl:when test="$ms_word_draw_type = '#_x0000_t5'  ">
30                <xsl:value-of select=" 'isosceles-triangle'"/>
31            </xsl:when>
32            <xsl:when test="$ms_word_draw_type ='#_x0000_t6' ">
33                <xsl:value-of select="  'right-triangle' "/>
34            </xsl:when>
35            <xsl:when test="$ms_word_draw_type =  '#_x0000_t8' ">
36                <xsl:value-of select=" 'trapezoid' "/>
37            </xsl:when>
38            <xsl:when test="$ms_word_draw_type =  '#_x0000_t4' ">
39                <xsl:value-of select=" 'diamond' "/>
40            </xsl:when>
41            <xsl:when test="$ms_word_draw_type = '#_x0000_t9'  ">
42                <xsl:value-of select=" 'hexagon' "/>
43            </xsl:when>
44            <xsl:when test="$ms_word_draw_type =   '#_x0000_t7' ">
45                <xsl:value-of select="'parallelogram' "/>
46            </xsl:when>
47            <xsl:when test="$ms_word_draw_type = '#_x0000_t56' ">
48                <xsl:value-of select=" 'pentagon' "/>
49            </xsl:when>
50            <xsl:when test="$ms_word_draw_type = '#_x0000_t10' ">
51                <xsl:value-of select=" 'octagon' "/>
52            </xsl:when>
53            <xsl:when test="$ms_word_draw_type = '#_x0000_t11' ">
54                <xsl:value-of select=" 'cross' "/>
55            </xsl:when>
56            <xsl:when test="$ms_word_draw_type = '#_x0000_t23' ">
57                <xsl:value-of select=" 'ring' "/>
58            </xsl:when>
59            <xsl:when test="$ms_word_draw_type = '#_x0000_t95' ">
60                <xsl:value-of select=" 'block-arc'  "/>
61            </xsl:when>
62            <xsl:when test="$ms_word_draw_type =  '#_x0000_t22' ">
63                <xsl:value-of select=" 'can' "/>
64            </xsl:when>
65            <xsl:when test="$ms_word_draw_type = '#_x0000_t16' ">
66                <xsl:value-of select=" 'cube' "/>
67            </xsl:when>
68            <xsl:when test="$ms_word_draw_type = '#_x0000_t65' ">
69                <xsl:value-of select=" 'paper' "/>
70            </xsl:when>
71            <xsl:when test="$ms_word_draw_type = '#_x0000_t96' ">
72                <xsl:value-of select=" 'smiley' "/>
73            </xsl:when>
74            <xsl:when test="$ms_word_draw_type = '#_x0000_t183' ">
75                <xsl:value-of select=" 'sun' "/>
76            </xsl:when>
77            <xsl:when test="$ms_word_draw_type = '#_x0000_t184' ">
78                <xsl:value-of select=" 'moon' "/>
79            </xsl:when>
80            <xsl:when test="$ms_word_draw_type = '#_x0000_t74' ">
81                <xsl:value-of select=" 'heart' "/>
82            </xsl:when>
83            <xsl:when test="$ms_word_draw_type = '#_x0000_t57' ">
84                <xsl:value-of select=" 'forbidden' "/>
85            </xsl:when>
86            <xsl:when test="$ms_word_draw_type ='#_x0000_t85' ">
87                <xsl:value-of select="  'left-bracket'  "/>
88            </xsl:when>
89            <xsl:when test="$ms_word_draw_type = '#_x0000_t86' ">
90                <xsl:value-of select=" 'right-bracket' "/>
91            </xsl:when>
92            <xsl:when test="$ms_word_draw_type = '#_x0000_t87' ">
93                <xsl:value-of select=" 'left-brace'  "/>
94            </xsl:when>
95            <xsl:when test="$ms_word_draw_type = '#_x0000_t88' ">
96                <xsl:value-of select=" 'right-brace' "/>
97            </xsl:when>
98            <xsl:when test="$ms_word_draw_type = '#_x0000_t185' ">
99                <xsl:value-of select=" 'bracket-pair' "/>
100            </xsl:when>
101            <xsl:when test="$ms_word_draw_type = '#_x0000_t186' ">
102                <xsl:value-of select=" 'brace-pair' "/>
103            </xsl:when>
104            <xsl:when test="$ms_word_draw_type =  '#_x0000_t189' ">
105                <xsl:value-of select=" 'quad-bevel' "/>
106            </xsl:when>
107            <xsl:when test="$ms_word_draw_type =  '#_x0000_t66' ">
108                <xsl:value-of select=" 'left-arrow' "/>
109            </xsl:when>
110            <xsl:when test="$ms_word_draw_type = '#_x0000_t67' ">
111                <xsl:value-of select=" 'down-arrow' "/>
112            </xsl:when>
113            <xsl:when test="$ms_word_draw_type = '#_x0000_t68' ">
114                <xsl:value-of select=" 'up-arrow' "/>
115            </xsl:when>
116            <xsl:when test="$ms_word_draw_type = '#_x0000_t13' ">
117                <xsl:value-of select=" 'right-arrow' "/>
118            </xsl:when>
119            <xsl:when test="$ms_word_draw_type = '#_x0000_t69' ">
120                <xsl:value-of select=" 'left-right-arrow' "/>
121            </xsl:when>
122            <xsl:when test="$ms_word_draw_type = '#_x0000_t70' ">
123                <xsl:value-of select=" 'up-down-arrow' "/>
124            </xsl:when>
125            <xsl:when test="$ms_word_draw_type = '#_x0000_t89' ">
126                <xsl:value-of select=" 'mso-spt89' "/>
127            </xsl:when>
128            <xsl:when test="$ms_word_draw_type = '#_x0000_t76' ">
129                <xsl:value-of select=" 'quad-arrow' "/>
130            </xsl:when>
131            <xsl:when test="$ms_word_draw_type = '#_x0000_t94' ">
132                <xsl:value-of select=" 'notched-right-arrow' "/>
133            </xsl:when>
134            <xsl:when test="$ms_word_draw_type =  '#_x0000_t177' ">
135                <xsl:value-of select=" 'pentagon-right' "/>
136            </xsl:when>
137            <xsl:when test="$ms_word_draw_type = '#_x0000_t55' ">
138                <xsl:value-of select=" 'chevron' "/>
139            </xsl:when>
140            <xsl:when test="$ms_word_draw_type = '#_x0000_t79' ">
141                <xsl:value-of select=" 'up-arrow-callout' "/>
142            </xsl:when>
143            <xsl:when test="$ms_word_draw_type = '#_x0000_t80' ">
144                <xsl:value-of select=" 'down-arrow-callout' "/>
145            </xsl:when>
146            <xsl:when test="$ms_word_draw_type = '#_x0000_t82' ">
147                <xsl:value-of select=" 'up-down-arrow-callout' "/>
148            </xsl:when>
149            <xsl:when test="$ms_word_draw_type = '#_x0000_t103' ">
150                <xsl:value-of select=" 'circular-arrow' "/>
151            </xsl:when>
152            <xsl:when test="$ms_word_draw_type =  '#_x0000_t109' ">
153                <xsl:value-of select=" 'flowchart-process'  "/>
154            </xsl:when>
155            <xsl:when test="$ms_word_draw_type =  '#_x0000_t116' ">
156                <xsl:value-of select=" 'flowchart-alternate-process' "/>
157            </xsl:when>
158            <xsl:when test="$ms_word_draw_type =  '#_x0000_t110' ">
159                <xsl:value-of select=" 'flowchart-decision' "/>
160            </xsl:when>
161            <xsl:when test="$ms_word_draw_type = '#_x0000_t111' ">
162                <xsl:value-of select=" 'flowchart-data' "/>
163            </xsl:when>
164            <xsl:when test="$ms_word_draw_type =   '#_x0000_t112' ">
165                <xsl:value-of select=" 'flowchart-predefined-process' "/>
166            </xsl:when>
167            <xsl:when test="$ms_word_draw_type =  '#_x0000_t113' ">
168                <xsl:value-of select=" 'flowchart-internal-storage'  "/>
169            </xsl:when>
170            <xsl:when test="$ms_word_draw_type = '#_x0000_t114' ">
171                <xsl:value-of select=" 'flowchart-document'  "/>
172            </xsl:when>
173            <xsl:when test="$ms_word_draw_type = '#_x0000_t115' ">
174                <xsl:value-of select=" 'flowchart-multidocument' "/>
175            </xsl:when>
176            <xsl:when test="$ms_word_draw_type = '#_x0000_t116' ">
177                <xsl:value-of select=" 'flowchart-terminator' "/>
178            </xsl:when>
179            <xsl:when test="$ms_word_draw_type = '#_x0000_t117' ">
180                <xsl:value-of select=" 'flowchart-preparation' "/>
181            </xsl:when>
182            <xsl:when test="$ms_word_draw_type = '#_x0000_t118' ">
183                <xsl:value-of select=" 'flowchart-manual-input' "/>
184            </xsl:when>
185            <xsl:when test="$ms_word_draw_type = '#_x0000_t119' ">
186                <xsl:value-of select=" 'flowchart-manual-operation' "/>
187            </xsl:when>
188            <xsl:when test="$ms_word_draw_type = '#_x0000_t120' ">
189                <xsl:value-of select=" 'flowchart-connector' "/>
190            </xsl:when>
191            <xsl:when test="$ms_word_draw_type =  '#_x0000_t177' ">
192                <xsl:value-of select=" 'flowchart-off-page-connector' "/>
193            </xsl:when>
194            <xsl:when test="$ms_word_draw_type = '#_x0000_t121' ">
195                <xsl:value-of select=" 'flowchart-card' "/>
196            </xsl:when>
197            <xsl:when test="$ms_word_draw_type = '#_x0000_t122'  ">
198                <xsl:value-of select=" 'flowchart-punched-tape' "/>
199            </xsl:when>
200            <xsl:when test="$ms_word_draw_type = '#_x0000_t123' ">
201                <xsl:value-of select=" 'flowchart-summing-junction'  "/>
202            </xsl:when>
203            <xsl:when test="$ms_word_draw_type = '#_x0000_t124' ">
204                <xsl:value-of select=" 'flowchart-or'  "/>
205            </xsl:when>
206            <xsl:when test="$ms_word_draw_type = '#_x0000_t125'  ">
207                <xsl:value-of select=" 'flowchart-collate' "/>
208            </xsl:when>
209            <xsl:when test="$ms_word_draw_type =  '#_x0000_t126' ">
210                <xsl:value-of select=" 'flowchart-sort' "/>
211            </xsl:when>
212            <xsl:when test="$ms_word_draw_type = '#_x0000_t127'  ">
213                <xsl:value-of select=" 'flowchart-extract' "/>
214            </xsl:when>
215            <xsl:when test="$ms_word_draw_type =  '#_x0000_t128' ">
216                <xsl:value-of select=" 'flowchart-merge' "/>
217            </xsl:when>
218            <xsl:when test="$ms_word_draw_type = '#_x0000_t130'  ">
219                <xsl:value-of select="  'flowchart-stored-data' "/>
220            </xsl:when>
221            <xsl:when test="$ms_word_draw_type = '#_x0000_t135' ">
222                <xsl:value-of select=" 'flowchart-delay'  "/>
223            </xsl:when>
224            <xsl:when test="$ms_word_draw_type = '#_x0000_t131'  ">
225                <xsl:value-of select=" 'flowchart-sequential-access' "/>
226            </xsl:when>
227            <xsl:when test="$ms_word_draw_type = '#_x0000_t132' ">
228                <xsl:value-of select=" 'flowchart-magnetic-disk' "/>
229            </xsl:when>
230            <xsl:when test="$ms_word_draw_type = '#_x0000_t133' ">
231                <xsl:value-of select=" 'flowchart-direct-access-storage' "/>
232            </xsl:when>
233            <xsl:when test="$ms_word_draw_type =  '#_x0000_t134' ">
234                <xsl:value-of select=" 'flowchart-display'  "/>
235            </xsl:when>
236            <xsl:when test="$ms_word_draw_type = '#_x0000_t61' ">
237                <xsl:value-of select=" 'rectangular-callout' "/>
238            </xsl:when>
239            <xsl:when test="$ms_word_draw_type = '#_x0000_t62' ">
240                <xsl:value-of select=" 'round-rectangular-callout'  "/>
241            </xsl:when>
242            <xsl:when test="$ms_word_draw_type = '#_x0000_t63' ">
243                <xsl:value-of select=" 'round-callout' "/>
244            </xsl:when>
245            <xsl:when test="$ms_word_draw_type = '#_x0000_t106' ">
246                <xsl:value-of select=" 'cloud-callout' "/>
247            </xsl:when>
248            <xsl:when test="$ms_word_draw_type =  '#_x0000_t50' ">
249                <xsl:value-of select=" 'line-callout-1' "/>
250            </xsl:when>
251            <xsl:when test="$ms_word_draw_type = '#_x0000_t51' ">
252                <xsl:value-of select=" 'line-callout-2' "/>
253            </xsl:when>
254            <xsl:when test="$ms_word_draw_type = '#_x0000_t47' ">
255                <xsl:value-of select=" 'line-callout-3' "/>
256            </xsl:when>
257            <xsl:when test="$ms_word_draw_type = '#_x0000_t72' ">
258                <xsl:value-of select=" 'bang' "/>
259            </xsl:when>
260            <xsl:when test="$ms_word_draw_type = '#_x0000_t187' ">
261                <xsl:value-of select=" 'star4' "/>
262            </xsl:when>
263            <xsl:when test="$ms_word_draw_type = '#_x0000_t12' ">
264                <xsl:value-of select=" 'star5' "/>
265            </xsl:when>
266            <xsl:when test="$ms_word_draw_type = '#_x0000_t58' ">
267                <xsl:value-of select=" 'star8' "/>
268            </xsl:when>
269            <xsl:when test="$ms_word_draw_type = '#_x0000_t92' ">
270                <xsl:value-of select=" 'star24' "/>
271            </xsl:when>
272            <xsl:when test="$ms_word_draw_type = '#_x0000_t97' ">
273                <xsl:value-of select=" 'vertical-scroll' "/>
274            </xsl:when>
275            <xsl:when test="$ms_word_draw_type = '#_x0000_t98' ">
276                <xsl:value-of select=" 'horizontal-scroll' "/>
277            </xsl:when>
278        </xsl:choose>
279    </xsl:template>
280</xsl:stylesheet>
281