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:xlink="http://www.w3.org/1999/xlink" xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml" xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint" xmlns:w10="urn:schemas-microsoft-com:office:word" 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: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="office table style text draw svg   dc config xlink meta oooc dom ooo chart math dr3d form script ooow draw">
25    <xsl:template name="ooo_custom_draw2ms_word_draw_map">
26        <xsl:param name="ooo_predefined_type"/>
27        <!-- all ooo draw names are get from EnhancedCustomShapeGeometry.idl-->
28        <xsl:choose>
29            <xsl:when test="$ooo_predefined_type = 'isosceles-triangle' ">
30                <xsl:value-of select=" '#_x0000_t5' "/>
31            </xsl:when>
32            <xsl:when test="$ooo_predefined_type = 'right-triangle' ">
33                <xsl:value-of select=" '#_x0000_t6' "/>
34            </xsl:when>
35            <xsl:when test="$ooo_predefined_type = 'trapezoid' ">
36                <xsl:value-of select=" '#_x0000_t8' "/>
37            </xsl:when>
38            <xsl:when test="$ooo_predefined_type = 'diamond' ">
39                <xsl:value-of select=" '#_x0000_t4' "/>
40            </xsl:when>
41            <xsl:when test="$ooo_predefined_type = 'hexagon' ">
42                <xsl:value-of select=" '#_x0000_t9' "/>
43            </xsl:when>
44            <xsl:when test="$ooo_predefined_type = 'parallelogram' ">
45                <xsl:value-of select=" '#_x0000_t7' "/>
46            </xsl:when>
47            <xsl:when test="$ooo_predefined_type = 'pentagon' ">
48                <xsl:value-of select=" '#_x0000_t56' "/>
49            </xsl:when>
50            <xsl:when test="$ooo_predefined_type = 'octagon' ">
51                <xsl:value-of select=" '#_x0000_t10' "/>
52            </xsl:when>
53            <xsl:when test="$ooo_predefined_type = 'cross' ">
54                <xsl:value-of select=" '#_x0000_t11' "/>
55            </xsl:when>
56            <xsl:when test="$ooo_predefined_type = 'ring' ">
57                <xsl:value-of select=" '#_x0000_t23' "/>
58            </xsl:when>
59            <xsl:when test="$ooo_predefined_type = 'block-arc' ">
60                <xsl:value-of select=" '#_x0000_t95' "/>
61            </xsl:when>
62            <xsl:when test="$ooo_predefined_type = 'can' ">
63                <xsl:value-of select=" '#_x0000_t22' "/>
64            </xsl:when>
65            <xsl:when test="$ooo_predefined_type = 'cube' ">
66                <xsl:value-of select=" '#_x0000_t16' "/>
67            </xsl:when>
68            <xsl:when test="$ooo_predefined_type = 'paper' ">
69                <xsl:value-of select=" '#_x0000_t65' "/>
70            </xsl:when>
71            <xsl:when test="$ooo_predefined_type = 'smiley' ">
72                <xsl:value-of select=" '#_x0000_t96' "/>
73            </xsl:when>
74            <xsl:when test="$ooo_predefined_type = 'sun' ">
75                <xsl:value-of select=" '#_x0000_t183' "/>
76            </xsl:when>
77            <xsl:when test="$ooo_predefined_type = 'moon' ">
78                <xsl:value-of select=" '#_x0000_t184' "/>
79            </xsl:when>
80            <xsl:when test="$ooo_predefined_type = 'heart' ">
81                <xsl:value-of select=" '#_x0000_t74' "/>
82            </xsl:when>
83            <xsl:when test="$ooo_predefined_type = 'forbidden' ">
84                <xsl:value-of select=" '#_x0000_t57' "/>
85            </xsl:when>
86            <xsl:when test="$ooo_predefined_type = 'left-bracket' ">
87                <xsl:value-of select=" '#_x0000_t85' "/>
88            </xsl:when>
89            <xsl:when test="$ooo_predefined_type = 'right-bracket' ">
90                <xsl:value-of select=" '#_x0000_t86' "/>
91            </xsl:when>
92            <xsl:when test="$ooo_predefined_type = 'left-brace' ">
93                <xsl:value-of select=" '#_x0000_t87' "/>
94            </xsl:when>
95            <xsl:when test="$ooo_predefined_type = 'right-brace' ">
96                <xsl:value-of select=" '#_x0000_t88' "/>
97            </xsl:when>
98            <xsl:when test="$ooo_predefined_type = 'bracket-pair' ">
99                <xsl:value-of select=" '#_x0000_t185' "/>
100            </xsl:when>
101            <xsl:when test="$ooo_predefined_type = 'brace-pair' ">
102                <xsl:value-of select=" '#_x0000_t186' "/>
103            </xsl:when>
104            <xsl:when test="$ooo_predefined_type = 'quad-bevel' ">
105                <xsl:value-of select=" '#_x0000_t189' "/>
106            </xsl:when>
107            <xsl:when test="$ooo_predefined_type = 'left-arrow' ">
108                <xsl:value-of select=" '#_x0000_t66' "/>
109            </xsl:when>
110            <xsl:when test="$ooo_predefined_type = 'down-arrow' ">
111                <xsl:value-of select=" '#_x0000_t67' "/>
112            </xsl:when>
113            <xsl:when test="$ooo_predefined_type = 'up-arrow' ">
114                <xsl:value-of select=" '#_x0000_t68' "/>
115            </xsl:when>
116            <xsl:when test="$ooo_predefined_type = 'right-arrow' ">
117                <xsl:value-of select=" '#_x0000_t13' "/>
118            </xsl:when>
119            <xsl:when test="$ooo_predefined_type = 'left-right-arrow' ">
120                <xsl:value-of select=" '#_x0000_t69' "/>
121            </xsl:when>
122            <xsl:when test="$ooo_predefined_type = 'up-down-arrow' ">
123                <xsl:value-of select=" '#_x0000_t70' "/>
124            </xsl:when>
125            <xsl:when test="$ooo_predefined_type = 'mso-spt89' ">
126                <xsl:value-of select=" '#_x0000_t89' "/>
127            </xsl:when>
128            <xsl:when test="$ooo_predefined_type = 'quad-arrow' ">
129                <xsl:value-of select=" '#_x0000_t76' "/>
130            </xsl:when>
131            <xsl:when test="$ooo_predefined_type = 'notched-right-arrow' ">
132                <xsl:value-of select=" '#_x0000_t94' "/>
133            </xsl:when>
134            <xsl:when test="$ooo_predefined_type = 'pentagon-right' ">
135                <xsl:value-of select=" '#_x0000_t177' "/>
136            </xsl:when>
137            <xsl:when test="$ooo_predefined_type = 'chevron' ">
138                <xsl:value-of select=" '#_x0000_t55' "/>
139            </xsl:when>
140            <xsl:when test="$ooo_predefined_type = 'up-arrow-callout' ">
141                <xsl:value-of select=" '#_x0000_t79' "/>
142            </xsl:when>
143            <xsl:when test="$ooo_predefined_type = 'down-arrow-callout' ">
144                <xsl:value-of select=" '#_x0000_t80' "/>
145            </xsl:when>
146            <xsl:when test="$ooo_predefined_type = 'up-down-arrow-callout' ">
147                <xsl:value-of select=" '#_x0000_t82' "/>
148            </xsl:when>
149            <xsl:when test="$ooo_predefined_type = 'circular-arrow' ">
150                <xsl:value-of select=" '#_x0000_t103' "/>
151            </xsl:when>
152            <xsl:when test="$ooo_predefined_type = 'flowchart-process' ">
153                <xsl:value-of select=" '#_x0000_t109' "/>
154            </xsl:when>
155            <xsl:when test="$ooo_predefined_type = 'flowchart-alternate-process' ">
156                <xsl:value-of select=" '#_x0000_t116' "/>
157            </xsl:when>
158            <xsl:when test="$ooo_predefined_type = 'flowchart-decision' ">
159                <xsl:value-of select=" '#_x0000_t110' "/>
160            </xsl:when>
161            <xsl:when test="$ooo_predefined_type = 'flowchart-data' ">
162                <xsl:value-of select=" '#_x0000_t111' "/>
163            </xsl:when>
164            <xsl:when test="$ooo_predefined_type = 'flowchart-predefined-process' ">
165                <xsl:value-of select=" '#_x0000_t112' "/>
166            </xsl:when>
167            <xsl:when test="$ooo_predefined_type = 'flowchart-internal-storage' ">
168                <xsl:value-of select=" '#_x0000_t113' "/>
169            </xsl:when>
170            <xsl:when test="$ooo_predefined_type = 'flowchart-document' ">
171                <xsl:value-of select=" '#_x0000_t114' "/>
172            </xsl:when>
173            <xsl:when test="$ooo_predefined_type = 'flowchart-multidocument' ">
174                <xsl:value-of select=" '#_x0000_t115' "/>
175            </xsl:when>
176            <xsl:when test="$ooo_predefined_type = 'flowchart-terminator' ">
177                <xsl:value-of select=" '#_x0000_t116' "/>
178            </xsl:when>
179            <xsl:when test="$ooo_predefined_type = 'flowchart-preparation' ">
180                <xsl:value-of select=" '#_x0000_t117' "/>
181            </xsl:when>
182            <xsl:when test="$ooo_predefined_type = 'flowchart-manual-input' ">
183                <xsl:value-of select=" '#_x0000_t118' "/>
184            </xsl:when>
185            <xsl:when test="$ooo_predefined_type = 'flowchart-manual-operation' ">
186                <xsl:value-of select=" '#_x0000_t119' "/>
187            </xsl:when>
188            <xsl:when test="$ooo_predefined_type = 'flowchart-connector' ">
189                <xsl:value-of select=" '#_x0000_t120' "/>
190            </xsl:when>
191            <xsl:when test="$ooo_predefined_type = 'flowchart-off-page-connector' ">
192                <xsl:value-of select=" '#_x0000_t177' "/>
193            </xsl:when>
194            <xsl:when test="$ooo_predefined_type = 'flowchart-card' ">
195                <xsl:value-of select=" '#_x0000_t121' "/>
196            </xsl:when>
197            <xsl:when test="$ooo_predefined_type = 'flowchart-punched-tape' ">
198                <xsl:value-of select=" '#_x0000_t122' "/>
199            </xsl:when>
200            <xsl:when test="$ooo_predefined_type = 'flowchart-summing-junction' ">
201                <xsl:value-of select=" '#_x0000_t123' "/>
202            </xsl:when>
203            <xsl:when test="$ooo_predefined_type = 'flowchart-or' ">
204                <xsl:value-of select=" '#_x0000_t124' "/>
205            </xsl:when>
206            <xsl:when test="$ooo_predefined_type = 'flowchart-collate' ">
207                <xsl:value-of select=" '#_x0000_t125' "/>
208            </xsl:when>
209            <xsl:when test="$ooo_predefined_type = 'flowchart-sort' ">
210                <xsl:value-of select=" '#_x0000_t126' "/>
211            </xsl:when>
212            <xsl:when test="$ooo_predefined_type = 'flowchart-extract' ">
213                <xsl:value-of select=" '#_x0000_t127' "/>
214            </xsl:when>
215            <xsl:when test="$ooo_predefined_type = 'flowchart-merge' ">
216                <xsl:value-of select=" '#_x0000_t128' "/>
217            </xsl:when>
218            <xsl:when test="$ooo_predefined_type = 'flowchart-stored-data' ">
219                <xsl:value-of select=" '#_x0000_t130' "/>
220            </xsl:when>
221            <xsl:when test="$ooo_predefined_type = 'flowchart-delay' ">
222                <xsl:value-of select=" '#_x0000_t135' "/>
223            </xsl:when>
224            <xsl:when test="$ooo_predefined_type = 'flowchart-sequential-access' ">
225                <xsl:value-of select=" '#_x0000_t131' "/>
226            </xsl:when>
227            <xsl:when test="$ooo_predefined_type = 'flowchart-magnetic-disk' ">
228                <xsl:value-of select=" '#_x0000_t132' "/>
229            </xsl:when>
230            <xsl:when test="$ooo_predefined_type = 'flowchart-direct-access-storage' ">
231                <xsl:value-of select=" '#_x0000_t133' "/>
232            </xsl:when>
233            <xsl:when test="$ooo_predefined_type = 'flowchart-display' ">
234                <xsl:value-of select=" '#_x0000_t134' "/>
235            </xsl:when>
236            <xsl:when test="$ooo_predefined_type = 'rectangular-callout' ">
237                <xsl:value-of select=" '#_x0000_t61' "/>
238            </xsl:when>
239            <xsl:when test="$ooo_predefined_type = 'round-rectangular-callout' ">
240                <xsl:value-of select=" '#_x0000_t62' "/>
241            </xsl:when>
242            <xsl:when test="$ooo_predefined_type = 'round-callout' ">
243                <xsl:value-of select=" '#_x0000_t63' "/>
244            </xsl:when>
245            <xsl:when test="$ooo_predefined_type = 'cloud-callout' ">
246                <xsl:value-of select=" '#_x0000_t106' "/>
247            </xsl:when>
248            <xsl:when test="$ooo_predefined_type = 'line-callout-1' ">
249                <xsl:value-of select=" '#_x0000_t50' "/>
250            </xsl:when>
251            <xsl:when test="$ooo_predefined_type = 'line-callout-2' ">
252                <xsl:value-of select=" '#_x0000_t51' "/>
253            </xsl:when>
254            <xsl:when test="$ooo_predefined_type = 'line-callout-3' ">
255                <xsl:value-of select=" '#_x0000_t47' "/>
256            </xsl:when>
257            <xsl:when test="$ooo_predefined_type = 'bang' ">
258                <xsl:value-of select=" '#_x0000_t72' "/>
259            </xsl:when>
260            <xsl:when test="$ooo_predefined_type = 'star4' ">
261                <xsl:value-of select=" '#_x0000_t187' "/>
262            </xsl:when>
263            <xsl:when test="$ooo_predefined_type = 'star5' ">
264                <xsl:value-of select=" '#_x0000_t12' "/>
265            </xsl:when>
266            <xsl:when test="$ooo_predefined_type = 'star8' ">
267                <xsl:value-of select=" '#_x0000_t58' "/>
268            </xsl:when>
269            <xsl:when test="$ooo_predefined_type = 'star24' ">
270                <xsl:value-of select=" '#_x0000_t92' "/>
271            </xsl:when>
272            <xsl:when test="$ooo_predefined_type = 'vertical-scroll' ">
273                <xsl:value-of select=" '#_x0000_t97' "/>
274            </xsl:when>
275            <xsl:when test="$ooo_predefined_type = 'horizontal-scroll' ">
276                <xsl:value-of select=" '#_x0000_t98' "/>
277            </xsl:when>
278        </xsl:choose>
279    </xsl:template>
280</xsl:stylesheet>
281