1 'encoding UTF-8 Do not remove or change this line!
2 '**************************************************************************
3 '* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 '* Copyright 2008 by Sun Microsystems, Inc.
7 '* OpenOffice.org - a multi-platform office productivity suite
9 '* $RCSfile: t_toolbar_impress.inc,v $
13 '* last change: $Author: jsi $ $Date: 2008-06-13 10:27:09 $
15 '* This file is part of OpenOffice.org.
17 '* OpenOffice.org is free software: you can redistribute it and/or modify
18 '* it under the terms of the GNU Lesser General Public License version 3
19 '* only, as published by the Free Software Foundation.
21 '* OpenOffice.org is distributed in the hope that it will be useful,
22 '* but WITHOUT ANY WARRANTY; without even the implied warranty of
23 '* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 '* GNU Lesser General Public License version 3 for more details
25 '* (a copy is included in the LICENSE file that accompanied this code).
27 '* You should have received a copy of the GNU Lesser General Public License
28 '* version 3 along with OpenOffice.org. If not, see
29 '* <http://www.openoffice.org/license.html>
30 '* for a copy of the LGPLv3 License.
32 '/************************************************************************
34 '* owner : helge.delfs@sun.com
36 '* short description : Toolbar tools - Impress
38 '***************************************************************************************
40 ' #0 fGetObjectImpress
42 '\*************************************************************************************
44 '*******************************************************
45 '* This function will get the location for image button
46 '* in Commands in Tools/Customize/Toolbars from Impress
47 '*******************************************************
48 function fGetObjectImpress(sToolbar as String , sObject as String) as Integer
57 case "Extrusion On/Off" : fGetObjectImpress = 1
59 case "Tilt Down" : fGetObjectImpress = 3
60 case "Tilt Up" : fGetObjectImpress = 4
61 case "Tilt Left" : fGetObjectImpress = 5
62 case "Tilt Right" : fGetObjectImpress = 6
64 case "Depth" : fGetObjectImpress = 8
65 case "Direction" : fGetObjectImpress = 9
66 case "Lighting" : fGetObjectImpress = 10
67 case "Surfact" : fGetObjectImpress = 11
68 case "3D Color" : fGetObjectImpress = 12
69 case else : QAErrorLog "The test does not support Object : " + sObject
75 case "Left" : fGetObjectImpress = 1
76 case "Centered" : fGetObjectImpress = 2
77 case "Right" : fGetObjectImpress = 3
79 case "Top" : fGetObjectImpress = 5
80 case "Center" : fGetObjectImpress = 6
81 case "Bottom" : fGetObjectImpress = 7
82 case else : QAErrorLog "The test does not support Object : " + sObject
98 case "Bullets and Numbering"
120 case "Select" : fGetObjectImpress = 1
122 case "Line" : fGetObjectImpress = 3
123 case "Rectangle" : fGetObjectImpress = 4
124 case "Ellipse" : fGetObjectImpress = 5
125 case "Text" : fGetObjectImpress = 6
126 case "Vertical Text" : fGetObjectImpress = 7
128 case "Curve" : fGetObjectImpress = 9
129 case "Connector" : fGetObjectImpress = 10
130 case "3D Objects" : fGetObjectImpress = 11
131 case "Basic Shapes" : fGetObjectImpress = 12
132 case "Symbol Shapes" : fGetObjectImpress = 13
133 case "Block Arrows" : fGetObjectImpress = 14
134 case "Flowcharts" : fGetObjectImpress = 15
135 case "Callouts" : fGetObjectImpress = 16
136 case "Stars" : fGetObjectImpress = 17
137 '----------------- 18
138 case "Points" : fGetObjectImpress = 19
139 case "Glue Points" : fGetObjectImpress = 20
140 case "To Curve" : fGetObjectImpress = 21
141 case "To Polygon" : fGetObjectImpress = 22
142 case "To 3D" : fGetObjectImpress = 23
143 case "To 3D Rotation Objet" : fGetObjectImpress = 24
144 '----------------- 25
145 case "Fontwork Gallery" : fGetObjectImpress = 26
146 case "From File" : fGetObjectImpress = 27
147 case "Gallerty" : fGetObjectImpress = 28
148 '----------------- 29
149 case "Rotate" : fGetObjectImpress = 30
150 case "Rotation and Size" : fGetObjectImpress = 31
151 case "Flip" : fGetObjectImpress = 32
152 case "Alignment" : fGetObjectImpress = 33
153 case "Arrange" : fGetObjectImpress = 34
154 '----------------- 35
155 case "Insert" : fGetObjectImpress = 36
156 case "Controls" : fGetObjectImpress = 37
157 '----------------- 38
158 case "Extrusion On/Off" : fGetObjectImpress = 39
159 case "Custom Animation" : fGetObjectImpress = 40
160 case "Interaction" : fGetObjectImpress = 41
161 case "Animated Image" : fGetObjectImpress = 42
162 case "3D Effects" : fGetObjectImpress = 43
163 case else : QAErrorLog "The test does not support Object : " + sObject
164 fGetObjectImpress = 0
179 case "Fontwork Shape"
191 case "Form Navigation"
203 case "Graphic Filter"
209 case "Floating Frame" : fGetObjectImpress = 6
210 case "Plug-in" : fGetObjectImpress = 8
211 case "Applet" : fGetObjectImpress = 9
212 case "File" : fGetObjectImpress = 11
213 case "Sound" : fGetObjectImpress = 14
214 case "Video" : fGetObjectImpress = 15
219 case "Wrap Left" : fGetObjectImpress = 11
220 case "Wrap Right" : fGetObjectImpress = 12
221 case "Optimal Page Wrap" : fGetObjectImpress = 16
222 case else : QAErrorLog "The test does not support Object : " + sObject
223 fGetObjectImpress = 0
228 case "Load URL" : fGetObjectImpress = 1
229 case "New" : fGetObjectImpress = 2
230 case "New Document From Template" : fGetObjectImpress = 3
231 case "Open" : fGetObjectImpress = 4
232 case "Save" : fGetObjectImpress = 5
233 case "Save As" : fGetObjectImpress = 6
234 case "Document as E-mail" : fGetObjectImpress = 7
236 case "Edit File" : fGetObjectImpress = 9
237 '----------------- 10
238 case "Export Directly as PDF" : fGetObjectImpress = 11
239 case "Print File Directly" : fGetObjectImpress = 12
240 '----------------- 13
241 case "Spellcheck" : fGetObjectImpress = 14
242 case "AutoSpellcheck" : fGetObjectImpress = 15
243 '----------------- 16
244 case "Cut" : fGetObjectImpress = 17
245 case "Copy" : fGetObjectImpress = 18
246 case "Paste" : fGetObjectImpress = 19
247 case "Format Paintbrush" : fGetObjectImpress = 20
248 '----------------- 21
249 case "Can't Undo" : fGetObjectImpress = 22
250 case "Can't Restore" : fGetObjectImpress = 23
251 '----------------- 24
252 case "Chart" : fGetObjectImpress = 25
253 case "CALC" : fGetObjectImpress = 26
254 case "Hyperlink" : fGetObjectImpress = 27
255 '----------------- 28
256 case "Display Grid" : fGetObjectImpress = 29
257 '----------------- 30
258 case "Navigator" : fGetObjectImpress = 31
259 case "Zoom" : fGetObjectImpress = 32
260 '----------------- 33
261 case "StarOffice Help" : fGetObjectImpress = 34
262 case "What's This?" : fGetObjectImpress = 35
263 case else : QAErrorLog "The test does not support Object : " + sObject
264 fGetObjectImpress = 0
269 case "Table" : fGetObjectImpress = 22
270 case "Columns" : fGetObjectImpress = 23
271 case "Rows" : fGetObjectImpress = 24
276 case "Line Spacing 1" : fGetObjectImpress = 16
277 case "Line Spacing 1.5" : fGetObjectImpress = 17
278 case "Line Spacing 2" : fGetObjectImpress = 18
279 case "Font Color" : fGetObjectImpress = 20
280 case "Left-To-Right" : fGetObjectImpress = 22
281 case "Right-To-Left" : fGetObjectImpress = 23
284 case "XML Form Design"
286 case "Bring to Front" : fGetObjectImpress = 14
287 case "Send to Back" : fGetObjectImpress = 15
288 case "Group" : fGetObjectImpress = 17
289 case "UnGroup" : fGetObjectImpress = 18
290 case "Enter Group" : fGetObjectImpress = 19
291 case "Exit Group" : fGetObjectImpress = 20