xref: /aoo4110/main/cui/source/tabpages/textanim.src (revision b1cdbd2c)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23 // pragma ----------------------------------------------------------------
24
25#include <svtools/controldims.hrc>
26#include <cuires.hrc>
27#include "textanim.hrc"
28#include <svx/dialogs.hrc>
29
30// direction image buttons
31#define MA_HALFBUTTON_WIDTH		7
32#define MA_BUTTON_WIDTH			(2 * MA_HALFBUTTON_WIDTH)
33#define MA_BUTTON_HEIGHT		(2 * MA_HALFBUTTON_WIDTH)
34#define BUTTON_SIZE				MAP_APPFONT( MA_BUTTON_WIDTH, MA_BUTTON_WIDTH )
35#define MA_MOVEBUT_GRACE_X      6
36
37// height of first group         Text effects
38#define MA_EFFECTSGROUP_HEIGHT	(RSC_CD_FIXEDLINE_HEIGHT + \
39								 RSC_SP_FLGR_INNERBORDER_LEFT + \
40/* direction buttons */			 3*MA_BUTTON_HEIGHT + \
41								 RSC_SP_FLGR_INNERBORDER_BOTTOM + RSC_SP_FLGR_SPACE_Y)
42
43// height of second group				 height of FIXEDTEXT
44#define MA_PROPERTIESGROUP_HEIGHT		(RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_LEFT + \
45/* text initially visible */			 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
46/* text finally visible */				 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
47/* animation runs */					 RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
48/* number of runs */					 RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
49/* step size */							 RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
50/* number of pixel */					 RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
51/* step delay */						 RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
52/* delay time */						 RSC_CD_TEXTBOX_HEIGHT)
53
54
55// left space for real controls
56#define MA_LEFT_SPACE					(RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT)
57
58// tabpage total size
59#define MA_TOTAL_WIDTH			260
60#define MA_TOTAL_HEIGHT			RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + MA_PROPERTIESGROUP_HEIGHT + RSC_SP_TBPG_INNERBORDER_BOTTOM
61
62// X position and width of effects drop down
63#define MA_EFFECTLIST_X					50
64#define MA_EFFECTLIST_WIDTH				95
65
66
67 // RID_SVXPAGE_TEXTANIMATION ---------------------------------------------
68TabPage RID_SVXPAGE_TEXTANIMATION
69{
70    HelpID = "cui:TabPage:RID_SVXPAGE_TEXTANIMATION";
71	SVLook = TRUE ;
72	Hide = TRUE ;
73	Size = MAP_APPFONT ( MA_TOTAL_WIDTH , 185 ) ;
74	Text [ en-US ] = "Animation" ;
75	FixedLine FL_EFFECT
76	{
77		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, RSC_SP_TBPG_INNERBORDER_TOP  ) ;
78		Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
79		Text [ en-US ] = "Text animation effects" ;
80	};
81#define MA_CURR_Y		RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT
82	FixedText FT_EFFECTS
83	{
84        Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y + 3 ) ;
85		Size = MAP_APPFONT ( MA_EFFECTLIST_X - RSC_SP_CTRL_DESC_X - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_FLGR_INNERBORDER_LEFT,
86							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
87        Text [ en-US ] = "E~ffect" ;
88	};
89	ListBox LB_EFFECT
90	{
91	    HelpID = "cui:ListBox:RID_SVXPAGE_TEXTANIMATION:LB_EFFECT";
92		Border = TRUE ;
93		Pos = MAP_APPFONT ( MA_EFFECTLIST_X, MA_CURR_Y + 1 ) ;
94		Size = MAP_APPFONT ( MA_EFFECTLIST_WIDTH , 57 ) ;
95		TabStop = TRUE ;
96		DropDown = TRUE ;
97		StringList [ en-US ] =
98		{
99			< "No Effect" ; Default ; > ;
100			< "Blink" ; Default ; > ;
101			< "Scroll Through" ; Default ; > ;
102			< "Scroll Back and Forth" ; Default ; > ;
103			< "Scroll In" ; Default ; > ;
104		};
105	};
106	FixedText FT_DIRECTION
107	{
108        Pos = MAP_APPFONT ( MA_EFFECTLIST_X + MA_EFFECTLIST_WIDTH + RSC_SP_CTRL_X, MA_CURR_Y + 3 ) ;
109		Size = MAP_APPFONT ( MA_TOTAL_WIDTH -
110                             (MA_MOVEBUT_GRACE_X + 3*MA_BUTTON_WIDTH + RSC_SP_TBPG_INNERBORDER_RIGHT + RSC_SP_FLGR_INNERBORDER_RIGHT) -
111							 (MA_EFFECTLIST_X + MA_EFFECTLIST_WIDTH + RSC_SP_CTRL_X + RSC_SP_CTRL_DESC_X + 6),
112							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
113		Right = TRUE;
114        Text [ en-US ] = "Direction" ;
115	};
116	ImageButton BTN_UP
117	{
118	    HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_UP";
119        Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*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 );
121		Size = BUTTON_SIZE ;
122		Symbol = IMAGEBUTTON_ARROW_UP ;
123		QuickHelpText [ en-US ] = "To Top" ;
124	};
125	ImageButton BTN_LEFT
126	{
127	    HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_LEFT";
128        Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 3*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);
130		Size = BUTTON_SIZE ;
131		Symbol = IMAGEBUTTON_ARROW_LEFT ;
132		QuickHelpText [ en-US ] = "To Left" ;
133	};
134	ImageButton BTN_RIGHT
135	{
136	    HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_RIGHT";
137        Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 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 + MA_BUTTON_HEIGHT ) ;
139		Size = BUTTON_SIZE ;
140		Symbol = IMAGEBUTTON_ARROW_RIGHT ;
141		QuickHelpText [ en-US ] = "To Right" ;
142	};
143	ImageButton BTN_DOWN
144	{
145	    HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_DOWN";
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 ) ;
148		Size = BUTTON_SIZE ;
149		Symbol = IMAGEBUTTON_ARROW_DOWN ;
150		QuickHelpText [ en-US ] = "To Bottom" ;
151	};
152
153	FixedLine FL_PROPERTIES
154	{
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" ;
158	};
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
161	{
162	    HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_START_INSIDE";
163		TabStop = TRUE ;
164		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y2 ) ;
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 ] = "S~tart inside" ;
167	};
168#define MA_CURR_Y3		MA_CURR_Y2 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
169	TriStateBox TSB_STOP_INSIDE
170	{
171	    HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_STOP_INSIDE";
172		TabStop = TRUE ;
173		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y3 ) ;
174        Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
175        Text [ en-US ] = "Text visible when exiting" ;
176	};
177#define MA_CURR_Y4		MA_CURR_Y3 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
178	FixedText FT_COUNT
179	{
180		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y4 ) ;
181        Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
182							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
183		Text [ en-US ] = "Animation cycles" ;
184	};
185#define MA_CURR_Y5		MA_CURR_Y4 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
186	TriStateBox TSB_ENDLESS
187	{
188	    HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_ENDLESS";
189		TabStop = TRUE ;
190        Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y5 + 2 ) ;
191		Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
192		Text [ en-US ] = "~Continuous" ;
193	};
194	NumericField NUM_FLD_COUNT
195	{
196	    HelpID = "cui:NumericField:RID_SVXPAGE_TEXTANIMATION:NUM_FLD_COUNT";
197		Border = TRUE ;
198        Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
199							MA_CURR_Y5 ) ;
200		Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
201		TabStop = TRUE ;
202		Repeat = TRUE ;
203		Spin = TRUE ;
204		Minimum = 1 ;
205		First = 1 ;
206	};
207#define MA_CURR_Y6		MA_CURR_Y5 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
208	FixedText FT_AMOUNT
209	{
210		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y6 ) ;
211        Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
212							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
213		Text [ en-US ] = "Increment" ;
214	};
215#define MA_CURR_Y7		MA_CURR_Y6 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
216	TriStateBox TSB_PIXEL
217	{
218	    HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_PIXEL";
219		TabStop = TRUE ;
220        Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y7 + 2 ) ;
221		Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
222		Text [ en-US ] = "~Pixels" ;
223	};
224	MetricField MTR_FLD_AMOUNT
225	{
226	    HelpID = "cui:MetricField:RID_SVXPAGE_TEXTANIMATION:MTR_FLD_AMOUNT";
227		Border = TRUE ;
228        Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
229							MA_CURR_Y7 ) ;
230		Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
231		TabStop = TRUE ;
232		Repeat = TRUE ;
233		Spin = TRUE ;
234		StrictFormat = TRUE ;
235		Unit = FUNIT_CUSTOM ;
236		CustomUnitText = " Pixel" ;
237		Minimum = 1 ;
238		First = 1 ;
239		Maximum = 10000 ;
240		Last = 10000 ;
241	};
242#define MA_CURR_Y8		MA_CURR_Y7 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
243	FixedText FT_DELAY
244	{
245		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y8 ) ;
246        Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
247							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
248		Text [ en-US ] = "Delay" ;
249	};
250#define MA_CURR_Y9		MA_CURR_Y8 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
251	TriStateBox TSB_AUTO
252	{
253	    HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_AUTO";
254        Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9 , MA_CURR_Y9 + 2 ) ;
255		Size = MAP_APPFONT ( 71 , RSC_CD_CHECKBOX_HEIGHT ) ;
256		TabStop = TRUE ;
257		Text [ en-US ] = "~Automatic" ;
258	};
259	MetricField MTR_FLD_DELAY
260	{
261	    HelpID = "cui:MetricField:RID_SVXPAGE_TEXTANIMATION:MTR_FLD_DELAY";
262		Border = TRUE ;
263        Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
264							MA_CURR_Y9 ) ;
265		Size = MAP_APPFONT ( 50 , RSC_CD_TEXTBOX_HEIGHT ) ;
266		TabStop = TRUE ;
267		Repeat = TRUE ;
268		Spin = TRUE ;
269		Spinsize = 50 ;
270		StrictFormat = TRUE ;
271		Unit = FUNIT_CUSTOM ;
272		CustomUnitText = " ms" ;
273		Maximum = 30000 ;
274		Last = 30000 ;
275	};
276};
277 // RID_SVXDLG_TEXT -------------------------------------------------------
278TabDialog RID_SVXDLG_TEXT
279{
280	OutputSize = TRUE ;
281	SVLook = TRUE ;
282	Size = MAP_APPFONT ( 289 , 185 + 46 ) ;
283	Text [ en-US ] = "Text" ;
284	Moveable = TRUE ;
285	TabControl 1
286	{
287		OutputSize = TRUE ;
288		Pos = MAP_APPFONT ( 3 , 3 ) ;
289		Size = MAP_APPFONT ( 260 , 185 ) ;
290		PageList =
291		{
292			PageItem
293			{
294				PageResID = RID_SVXPAGE_TEXTATTR ;
295				Identifier = RID_SVXPAGE_TEXTATTR ;
296				Text [ en-US ] = "Text" ;
297			};
298			PageItem
299			{
300				PageResID = RID_SVXPAGE_TEXTANIMATION ;
301				Identifier = RID_SVXPAGE_TEXTANIMATION ;
302				Text [ en-US ] = "Text Animation" ;
303			};
304		};
305	};
306};
307 // ******************************************************************* EOF
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331