1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
27 // pragma ----------------------------------------------------------------
29 #include <svtools/controldims.hrc>
31 #include "textanim.hrc"
32 #include <svx/dialogs.hrc>
34 // direction image buttons
35 #define MA_HALFBUTTON_WIDTH 7
36 #define MA_BUTTON_WIDTH (2 * MA_HALFBUTTON_WIDTH)
37 #define MA_BUTTON_HEIGHT (2 * MA_HALFBUTTON_WIDTH)
38 #define BUTTON_SIZE MAP_APPFONT( MA_BUTTON_WIDTH, MA_BUTTON_WIDTH )
39 #define MA_MOVEBUT_GRACE_X 6
41 // height of first group Text effects
42 #define MA_EFFECTSGROUP_HEIGHT (RSC_CD_FIXEDLINE_HEIGHT + \
43 RSC_SP_FLGR_INNERBORDER_LEFT + \
44 /* direction buttons */ 3*MA_BUTTON_HEIGHT + \
45 RSC_SP_FLGR_INNERBORDER_BOTTOM + RSC_SP_FLGR_SPACE_Y)
47 // height of second group height of FIXEDTEXT
48 #define MA_PROPERTIESGROUP_HEIGHT (RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_LEFT + \
49 /* text initially visible */ RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
50 /* text finally visible */ RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
51 /* animation runs */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
52 /* number of runs */ RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
53 /* step size */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
54 /* number of pixel */ RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
55 /* step delay */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
56 /* delay time */ RSC_CD_TEXTBOX_HEIGHT)
59 // left space for real controls
60 #define MA_LEFT_SPACE (RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT)
63 #define MA_TOTAL_WIDTH 260
64 #define MA_TOTAL_HEIGHT RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + MA_PROPERTIESGROUP_HEIGHT + RSC_SP_TBPG_INNERBORDER_BOTTOM
66 // X position and width of effects drop down
67 #define MA_EFFECTLIST_X 50
68 #define MA_EFFECTLIST_WIDTH 95
71 // RID_SVXPAGE_TEXTANIMATION ---------------------------------------------
72 TabPage RID_SVXPAGE_TEXTANIMATION
74 HelpID = "cui:TabPage:RID_SVXPAGE_TEXTANIMATION";
77 Size = MAP_APPFONT ( MA_TOTAL_WIDTH , 185 ) ;
78 Text [ en-US ] = "Animation" ;
81 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, RSC_SP_TBPG_INNERBORDER_TOP ) ;
82 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
83 Text [ en-US ] = "Text animation effects" ;
85 #define MA_CURR_Y RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT
88 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y + 3 ) ;
89 Size = MAP_APPFONT ( MA_EFFECTLIST_X - RSC_SP_CTRL_DESC_X - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_FLGR_INNERBORDER_LEFT,
90 RSC_CD_FIXEDTEXT_HEIGHT ) ;
91 Text [ en-US ] = "E~ffect" ;
95 HelpID = "cui:ListBox:RID_SVXPAGE_TEXTANIMATION:LB_EFFECT";
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 HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_UP";
123 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
124 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP );
126 Symbol = IMAGEBUTTON_ARROW_UP ;
127 QuickHelpText [ en-US ] = "To Top" ;
131 HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_LEFT";
132 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 3*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
133 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT);
135 Symbol = IMAGEBUTTON_ARROW_LEFT ;
136 QuickHelpText [ en-US ] = "To Left" ;
138 ImageButton BTN_RIGHT
140 HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_RIGHT";
141 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
142 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT ) ;
144 Symbol = IMAGEBUTTON_ARROW_RIGHT ;
145 QuickHelpText [ en-US ] = "To Right" ;
149 HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_DOWN";
150 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
151 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + 2*MA_BUTTON_HEIGHT ) ;
153 Symbol = IMAGEBUTTON_ARROW_DOWN ;
154 QuickHelpText [ en-US ] = "To Bottom" ;
157 FixedLine FL_PROPERTIES
159 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT , RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT ) ;
160 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
161 Text [ en-US ] = "Properties" ;
163 #define MA_CURR_Y2 RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
164 TriStateBox TSB_START_INSIDE
166 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_START_INSIDE";
168 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y2 ) ;
169 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
170 Text [ en-US ] = "S~tart inside" ;
172 #define MA_CURR_Y3 MA_CURR_Y2 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
173 TriStateBox TSB_STOP_INSIDE
175 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_STOP_INSIDE";
177 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y3 ) ;
178 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
179 Text [ en-US ] = "Text visible when exiting" ;
181 #define MA_CURR_Y4 MA_CURR_Y3 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
184 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y4 ) ;
185 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
186 RSC_CD_FIXEDTEXT_HEIGHT ) ;
187 Text [ en-US ] = "Animation cycles" ;
189 #define MA_CURR_Y5 MA_CURR_Y4 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
190 TriStateBox TSB_ENDLESS
192 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_ENDLESS";
194 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y5 + 2 ) ;
195 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
196 Text [ en-US ] = "~Continuous" ;
198 NumericField NUM_FLD_COUNT
200 HelpID = "cui:NumericField:RID_SVXPAGE_TEXTANIMATION:NUM_FLD_COUNT";
202 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
204 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
211 #define MA_CURR_Y6 MA_CURR_Y5 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
214 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y6 ) ;
215 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
216 RSC_CD_FIXEDTEXT_HEIGHT ) ;
217 Text [ en-US ] = "Increment" ;
219 #define MA_CURR_Y7 MA_CURR_Y6 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
220 TriStateBox TSB_PIXEL
222 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_PIXEL";
224 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y7 + 2 ) ;
225 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
226 Text [ en-US ] = "~Pixels" ;
228 MetricField MTR_FLD_AMOUNT
230 HelpID = "cui:MetricField:RID_SVXPAGE_TEXTANIMATION:MTR_FLD_AMOUNT";
232 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
234 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
238 StrictFormat = TRUE ;
239 Unit = FUNIT_CUSTOM ;
240 CustomUnitText = " Pixel" ;
246 #define MA_CURR_Y8 MA_CURR_Y7 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
249 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y8 ) ;
250 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
251 RSC_CD_FIXEDTEXT_HEIGHT ) ;
252 Text [ en-US ] = "Delay" ;
254 #define MA_CURR_Y9 MA_CURR_Y8 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
257 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_AUTO";
258 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y9 + 2 ) ;
259 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
261 Text [ en-US ] = "~Automatic" ;
263 MetricField MTR_FLD_DELAY
265 HelpID = "cui:MetricField:RID_SVXPAGE_TEXTANIMATION:MTR_FLD_DELAY";
267 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
269 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
274 StrictFormat = TRUE ;
275 Unit = FUNIT_CUSTOM ;
276 CustomUnitText = " ms" ;
281 // RID_SVXDLG_TEXT -------------------------------------------------------
282 TabDialog RID_SVXDLG_TEXT
286 Size = MAP_APPFONT ( 289 , 185 + 46 ) ;
287 Text [ en-US ] = "Text" ;
292 Pos = MAP_APPFONT ( 3 , 3 ) ;
293 Size = MAP_APPFONT ( 260 , 185 ) ;
298 PageResID = RID_SVXPAGE_TEXTATTR ;
299 Identifier = RID_SVXPAGE_TEXTATTR ;
300 Text [ en-US ] = "Text" ;
304 PageResID = RID_SVXPAGE_TEXTANIMATION ;
305 Identifier = RID_SVXPAGE_TEXTANIMATION ;
306 Text [ en-US ] = "Text Animation" ;
311 // ******************************************************************* EOF