1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
20 #include <svtools/controldims.hrc>
22 #include "textanim.hrc"
23 #include <svx/dialogs.hrc>
25 // direction image buttons
26 #define MA_HALFBUTTON_WIDTH 7
27 #define MA_BUTTON_WIDTH (2 * MA_HALFBUTTON_WIDTH)
28 #define MA_BUTTON_HEIGHT (2 * MA_HALFBUTTON_WIDTH)
29 #define BUTTON_SIZE MAP_APPFONT( MA_BUTTON_WIDTH, MA_BUTTON_WIDTH )
30 #define MA_MOVEBUT_GRACE_X 6
32 // height of first group Text effects
33 #define MA_EFFECTSGROUP_HEIGHT (RSC_CD_FIXEDLINE_HEIGHT + \
34 RSC_SP_FLGR_INNERBORDER_LEFT + \
35 /* direction buttons */ 3*MA_BUTTON_HEIGHT + \
36 RSC_SP_FLGR_INNERBORDER_BOTTOM + RSC_SP_FLGR_SPACE_Y)
38 // height of second group height of FIXEDTEXT
39 #define MA_PROPERTIESGROUP_HEIGHT (RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_LEFT + \
40 /* text initially visible */ RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
41 /* text finally visible */ RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
42 /* animation runs */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
43 /* number of runs */ RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
44 /* step size */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
45 /* number of pixel */ RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
46 /* step delay */ RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
47 /* delay time */ RSC_CD_TEXTBOX_HEIGHT)
50 #define MA_TOTAL_WIDTH 260
51 #define MA_TOTAL_HEIGHT RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + MA_PROPERTIESGROUP_HEIGHT + RSC_SP_TBPG_INNERBORDER_BOTTOM
53 // X position and width of effects drop down
54 #define MA_EFFECTLIST_X 50
55 #define MA_EFFECTLIST_WIDTH 95
58 // RID_SVXPAGE_TEXTANIMATION ---------------------------------------------
59 TabPage RID_SVXPAGE_TEXTANIMATION
61 HelpID = "cui:TabPage:RID_SVXPAGE_TEXTANIMATION";
64 Size = MAP_APPFONT ( MA_TOTAL_WIDTH , 185 ) ;
65 Text [ en-US ] = "Animation" ;
68 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, RSC_SP_TBPG_INNERBORDER_TOP ) ;
69 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
70 Text [ en-US ] = "Text animation effects" ;
72 #define MA_CURR_Y RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT
75 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y + 3 ) ;
76 Size = MAP_APPFONT ( MA_EFFECTLIST_X - RSC_SP_CTRL_DESC_X - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_FLGR_INNERBORDER_LEFT,
77 RSC_CD_FIXEDTEXT_HEIGHT ) ;
78 Text [ en-US ] = "E~ffect" ;
82 HelpID = "cui:ListBox:RID_SVXPAGE_TEXTANIMATION:LB_EFFECT";
84 Pos = MAP_APPFONT ( MA_EFFECTLIST_X, MA_CURR_Y + 1 ) ;
85 Size = MAP_APPFONT ( MA_EFFECTLIST_WIDTH , 57 ) ;
88 StringList [ en-US ] =
90 < "No Effect" ; Default ; > ;
91 < "Blink" ; Default ; > ;
92 < "Scroll Through" ; Default ; > ;
93 < "Scroll Back and Forth" ; Default ; > ;
94 < "Scroll In" ; Default ; > ;
97 FixedText FT_DIRECTION
99 Pos = MAP_APPFONT ( MA_EFFECTLIST_X + MA_EFFECTLIST_WIDTH + RSC_SP_CTRL_X, MA_CURR_Y + 3 ) ;
100 Size = MAP_APPFONT ( MA_TOTAL_WIDTH -
101 (MA_MOVEBUT_GRACE_X + 3*MA_BUTTON_WIDTH + RSC_SP_TBPG_INNERBORDER_RIGHT + RSC_SP_FLGR_INNERBORDER_RIGHT) -
102 (MA_EFFECTLIST_X + MA_EFFECTLIST_WIDTH + RSC_SP_CTRL_X + RSC_SP_CTRL_DESC_X + 6),
103 RSC_CD_FIXEDTEXT_HEIGHT ) ;
105 Text [ en-US ] = "Direction" ;
109 HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_UP";
110 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
111 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP );
113 Symbol = IMAGEBUTTON_ARROW_UP ;
114 QuickHelpText [ en-US ] = "To Top" ;
118 HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_LEFT";
119 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 3*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
120 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT);
122 Symbol = IMAGEBUTTON_ARROW_LEFT ;
123 QuickHelpText [ en-US ] = "To Left" ;
125 ImageButton BTN_RIGHT
127 HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_RIGHT";
128 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
129 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT ) ;
131 Symbol = IMAGEBUTTON_ARROW_RIGHT ;
132 QuickHelpText [ en-US ] = "To Right" ;
136 HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_DOWN";
137 Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
138 RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + 2*MA_BUTTON_HEIGHT ) ;
140 Symbol = IMAGEBUTTON_ARROW_DOWN ;
141 QuickHelpText [ en-US ] = "To Bottom" ;
144 FixedLine FL_PROPERTIES
146 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT , RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT ) ;
147 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
148 Text [ en-US ] = "Properties" ;
150 #define MA_CURR_Y2 RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
151 TriStateBox TSB_START_INSIDE
153 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_START_INSIDE";
155 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y2 ) ;
156 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
157 Text [ en-US ] = "S~tart inside" ;
159 #define MA_CURR_Y3 MA_CURR_Y2 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
160 TriStateBox TSB_STOP_INSIDE
162 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_STOP_INSIDE";
164 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y3 ) ;
165 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
166 Text [ en-US ] = "Text visible when exiting" ;
168 #define MA_CURR_Y4 MA_CURR_Y3 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
171 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y4 ) ;
172 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
173 RSC_CD_FIXEDTEXT_HEIGHT ) ;
174 Text [ en-US ] = "Animation cycles" ;
176 #define MA_CURR_Y5 MA_CURR_Y4 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
177 TriStateBox TSB_ENDLESS
179 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_ENDLESS";
181 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y5 + 2 ) ;
182 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
183 Text [ en-US ] = "~Continuous" ;
185 NumericField NUM_FLD_COUNT
187 HelpID = "cui:NumericField:RID_SVXPAGE_TEXTANIMATION:NUM_FLD_COUNT";
189 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
191 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
198 #define MA_CURR_Y6 MA_CURR_Y5 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
201 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y6 ) ;
202 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
203 RSC_CD_FIXEDTEXT_HEIGHT ) ;
204 Text [ en-US ] = "Increment" ;
206 #define MA_CURR_Y7 MA_CURR_Y6 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
207 TriStateBox TSB_PIXEL
209 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_PIXEL";
211 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y7 + 2 ) ;
212 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
213 Text [ en-US ] = "~Pixels" ;
215 MetricField MTR_FLD_AMOUNT
217 HelpID = "cui:MetricField:RID_SVXPAGE_TEXTANIMATION:MTR_FLD_AMOUNT";
219 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
221 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
225 StrictFormat = TRUE ;
226 Unit = FUNIT_CUSTOM ;
227 CustomUnitText [ en-US ] = " Pixel" ;
233 #define MA_CURR_Y8 MA_CURR_Y7 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
236 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y8 ) ;
237 Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
238 RSC_CD_FIXEDTEXT_HEIGHT ) ;
239 Text [ en-US ] = "Delay" ;
241 #define MA_CURR_Y9 MA_CURR_Y8 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
244 HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_AUTO";
245 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y9 + 2 ) ;
246 Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
248 Text [ en-US ] = "~Automatic" ;
250 MetricField MTR_FLD_DELAY
252 HelpID = "cui:MetricField:RID_SVXPAGE_TEXTANIMATION:MTR_FLD_DELAY";
254 Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
256 Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
261 StrictFormat = TRUE ;
262 Unit = FUNIT_CUSTOM ;
263 CustomUnitText [ en-US ] = " ms" ;
268 // RID_SVXDLG_TEXT -------------------------------------------------------
269 TabDialog RID_SVXDLG_TEXT
273 Size = MAP_APPFONT ( 289 , 185 + 46 ) ;
274 Text [ en-US ] = "Text" ;
279 Pos = MAP_APPFONT ( 3 , 3 ) ;
280 Size = MAP_APPFONT ( TP_WIDTH , TP_HEIGHT ) ;
285 PageResID = RID_SVXPAGE_TEXTATTR ;
286 Identifier = RID_SVXPAGE_TEXTATTR ;
287 Text [ en-US ] = "Text" ;
291 PageResID = RID_SVXPAGE_TEXTANIMATION ;
292 Identifier = RID_SVXPAGE_TEXTANIMATION ;
293 Text [ en-US ] = "Text Animation" ;
298 // ******************************************************************* EOF
300 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */