1 /*************************************************************************
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: textanim.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 // pragma ----------------------------------------------------------------
32 #include <svtools/controldims.hrc>
33 #include <svx/dialogs.hrc>
34 #include "textanim.hrc"
36 // direction image buttons
37 #define MA_HALFBUTTON_WIDTH 7
38 #define MA_BUTTON_WIDTH (2 * MA_HALFBUTTON_WIDTH)
39 #define MA_BUTTON_HEIGHT (2 * MA_HALFBUTTON_WIDTH)
40 #define BUTTON_SIZE MAP_APPFONT( MA_BUTTON_WIDTH, MA_BUTTON_WIDTH )
41 #define MA_MOVEBUT_GRACE_X 6
43 // height of first group Text effects
44 #define MA_EFFECTSGROUP_HEIGHT (RSC_CD_FIXEDLINE_HEIGHT + \
45 RSC_SP_FLGR_INNERBORDER_LEFT + \
46 /* direction buttons */ 3*MA_BUTTON_HEIGHT + \
47 RSC_SP_FLGR_INNERBORDER_BOTTOM + RSC_SP_FLGR_SPACE_Y)
49 // height of second group height of FIXEDTEXT
50 #define MA_PROPERTIESGROUP_HEIGHT (RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_LEFT + \
51 /* text initially visible */ RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
52 /* text finally visible */ RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
53 /* animation runs */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
54 /* number of runs */ RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
55 /* step size */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
56 /* number of pixel */ RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
57 /* step delay */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
58 /* delay time */ RSC_CD_TEXTBOX_HEIGHT)
61 // left space for real controls
62 #define MA_LEFT_SPACE (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT)
65 #define MA_TOTAL_WIDTH 260
66 #define MA_TOTAL_HEIGHT RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + MA_PROPERTIESGROUP_HEIGHT + RSC_SP_TBPG_INNERBORDER_BOTTOM
68 // X position and width of effects drop down
69 #define MA_EFFECTLIST_X 50
70 #define MA_EFFECTLIST_WIDTH 95
73 // RID_SVXPAGE_TEXTANIMATION ---------------------------------------------
74 TabPage RID_SVXPAGE_TEXTANIMATION
78 Size = MAP_APPFONT ( MA_TOTAL_WIDTH , 185 ) ;
79 Text [ en-US ] = "Animation" ;
82 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, RSC_SP_TBPG_INNERBORDER_TOP ) ;
83 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
84 Text [ en-US ] = "Text animation effects" ;
86 #define MA_CURR_Y RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT
89 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y + 3 ) ;
90 Size = MAP_APPFONT ( MA_EFFECTLIST_X - RSC_SP_CTRL_DESC_X - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_FLGR_INNERBORDER_LEFT,
91 RSC_CD_FIXEDTEXT_HEIGHT ) ;
92 Text [ en-US ] = "E~ffect" ;
97 Pos = MAP_APPFONT ( MA_EFFECTLIST_X, MA_CURR_Y + 1 ) ;
98 Size = MAP_APPFONT ( MA_EFFECTLIST_WIDTH , 57 ) ;
101 StringList [ en-US ] =
103 < "No Effect" ; Default ; > ;
104 < "Blink" ; Default ; > ;
105 < "Scroll Through" ; Default ; > ;
106 < "Scroll Back and Forth" ; Default ; > ;
107 < "Scroll In" ; Default ; > ;
110 FixedText FT_DIRECTION
112 Pos = MAP_APPFONT ( MA_EFFECTLIST_X + MA_EFFECTLIST_WIDTH + RSC_SP_CTRL_X, MA_CURR_Y + 3 ) ;
113 Size = MAP_APPFONT ( MA_TOTAL_WIDTH -
114 (MA_MOVEBUT_GRACE_X + 3*MA_BUTTON_WIDTH + RSC_SP_TBPG_INNERBORDER_RIGHT + RSC_SP_FLGR_INNERBORDER_RIGHT) -
115 (MA_EFFECTLIST_X + MA_EFFECTLIST_WIDTH + RSC_SP_CTRL_X + RSC_SP_CTRL_DESC_X + 6),
116 RSC_CD_FIXEDTEXT_HEIGHT ) ;
118 Text [ en-US ] = "Direction" ;
122 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
123 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP );
125 Symbol = IMAGEBUTTON_ARROW_UP ;
126 QuickHelpText [ en-US ] = "To Top" ;
130 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 3*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
131 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT);
133 Symbol = IMAGEBUTTON_ARROW_LEFT ;
134 QuickHelpText [ en-US ] = "To Left" ;
136 ImageButton BTN_RIGHT
138 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
139 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT ) ;
141 Symbol = IMAGEBUTTON_ARROW_RIGHT ;
142 QuickHelpText [ en-US ] = "To Right" ;
146 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
147 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + 2*MA_BUTTON_HEIGHT ) ;
149 Symbol = IMAGEBUTTON_ARROW_DOWN ;
150 QuickHelpText [ en-US ] = "To Bottom" ;
153 FixedLine FL_PROPERTIES
155 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT , RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT ) ;
156 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
157 Text [ en-US ] = "Properties" ;
159 #define MA_CURR_Y2 RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
160 TriStateBox TSB_START_INSIDE
163 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y2 ) ;
164 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
165 Text [ en-US ] = "S~tart inside" ;
167 #define MA_CURR_Y3 MA_CURR_Y2 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
168 TriStateBox TSB_STOP_INSIDE
171 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y3 ) ;
172 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
173 Text [ en-US ] = "Text visible when exiting" ;
175 #define MA_CURR_Y4 MA_CURR_Y3 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
178 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y4 ) ;
179 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
180 RSC_CD_FIXEDTEXT_HEIGHT ) ;
181 Text [ en-US ] = "Animation cycles" ;
183 #define MA_CURR_Y5 MA_CURR_Y4 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
184 TriStateBox TSB_ENDLESS
187 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y5 + 2 ) ;
188 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
189 Text [ en-US ] = "~Continuous" ;
191 NumericField NUM_FLD_COUNT
194 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
196 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
203 #define MA_CURR_Y6 MA_CURR_Y5 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
206 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y6 ) ;
207 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
208 RSC_CD_FIXEDTEXT_HEIGHT ) ;
209 Text [ en-US ] = "Increment" ;
211 #define MA_CURR_Y7 MA_CURR_Y6 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
212 TriStateBox TSB_PIXEL
215 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y7 + 2 ) ;
216 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
217 Text [ en-US ] = "~Pixels" ;
219 MetricField MTR_FLD_AMOUNT
222 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
224 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
228 StrictFormat = TRUE ;
229 Unit = FUNIT_CUSTOM ;
230 CustomUnitText [ en-US ] = " Pixel" ;
236 #define MA_CURR_Y8 MA_CURR_Y7 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
239 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y8 ) ;
240 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
241 RSC_CD_FIXEDTEXT_HEIGHT ) ;
242 Text [ en-US ] = "Delay" ;
244 #define MA_CURR_Y9 MA_CURR_Y8 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
247 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y9 + 2 ) ;
248 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
250 Text [ en-US ] = "~Automatic" ;
252 MetricField MTR_FLD_DELAY
255 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
257 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
262 StrictFormat = TRUE ;
263 Unit = FUNIT_CUSTOM ;
264 CustomUnitText = " ms" ;
269 // RID_SVXDLG_TEXT -------------------------------------------------------
270 TabDialog RID_SVXDLG_TEXT
274 Size = MAP_APPFONT ( 289 , 185 + 46 ) ;
275 Text [ en-US ] = "Text" ;
280 Pos = MAP_APPFONT ( 3 , 3 ) ;
281 Size = MAP_APPFONT ( 260 , 185 ) ;
286 PageResID = RID_SVXPAGE_TEXTATTR ;
287 Identifier = RID_SVXPAGE_TEXTATTR ;
288 Text [ en-US ] = "Text" ;
292 PageResID = RID_SVXPAGE_TEXTANIMATION ;
293 Identifier = RID_SVXPAGE_TEXTANIMATION ;
294 Text [ en-US ] = "Text Animation" ;
299 // ******************************************************************* EOF