xref: /aoo42x/main/cui/source/tabpages/textanim.src (revision e7b79185)
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
24// pragma ----------------------------------------------------------------
25
26#include <svtools/controldims.hrc>
27#include <cuires.hrc>
28#include "textanim.hrc"
29#include <svx/dialogs.hrc>
30
31// direction image buttons
32#define MA_HALFBUTTON_WIDTH		7
33#define MA_BUTTON_WIDTH			(2 * MA_HALFBUTTON_WIDTH)
34#define MA_BUTTON_HEIGHT		(2 * MA_HALFBUTTON_WIDTH)
35#define BUTTON_SIZE				MAP_APPFONT ( MA_BUTTON_WIDTH, MA_BUTTON_WIDTH )
36#define MA_MOVEBUT_GRACE_X		6
37
38// height of first group		Text effects
39#define MA_EFFECTSGROUP_HEIGHT	(RSC_CD_FIXEDLINE_HEIGHT + \
40								 RSC_SP_FLGR_INNERBORDER_LEFT + \
41/* direction buttons */			 3*MA_BUTTON_HEIGHT + \
42								 RSC_SP_FLGR_INNERBORDER_BOTTOM + RSC_SP_FLGR_SPACE_Y)
43
44// height of second group				 height of FIXEDTEXT
45#define MA_PROPERTIESGROUP_HEIGHT		(RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_LEFT + \
46/* text initially visible */			 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
47/* text finally visible */				 RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
48/* animation runs */					 RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
49/* number of runs */					 RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
50/* step size */							 RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
51/* number of pixel */					 RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
52/* step delay */						 RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_CTRL_GROUP_Y + \
53/* delay time */						 RSC_CD_TEXTBOX_HEIGHT)
54
55
56// left space for real controls
57#define MA_LEFT_SPACE					(RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT)
58
59// tabpage total size
60#define MA_TOTAL_WIDTH			260
61#define MA_TOTAL_HEIGHT			RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + MA_PROPERTIESGROUP_HEIGHT + RSC_SP_TBPG_INNERBORDER_BOTTOM
62
63// X position and width of effects drop down
64#define MA_EFFECTLIST_X					50
65#define MA_EFFECTLIST_WIDTH				95
66
67
68// RID_SVXPAGE_TEXTANIMATION ---------------------------------------------
69TabPage RID_SVXPAGE_TEXTANIMATION
70{
71	HelpID = "cui:TabPage:RID_SVXPAGE_TEXTANIMATION" ;
72	SVLook = TRUE ;
73	Hide = TRUE ;
74	Size = MAP_APPFONT ( MA_TOTAL_WIDTH, 185 ) ;
75	Text [ en-US ] = "Animation" ;
76	FixedLine FL_EFFECT
77	{
78		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, RSC_SP_TBPG_INNERBORDER_TOP ) ;
79		Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
80		Text [ en-US ] = "Text animation effects" ;
81	};
82#define MA_CURR_Y		RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT
83	FixedText FT_EFFECTS
84	{
85		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y + 3 ) ;
86		Size = MAP_APPFONT ( MA_EFFECTLIST_X - RSC_SP_CTRL_DESC_X - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_FLGR_INNERBORDER_LEFT,
87							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
88		Text [ en-US ] = "E~ffect" ;
89	};
90	ListBox LB_EFFECT
91	{
92		HelpID = "cui:ListBox:RID_SVXPAGE_TEXTANIMATION:LB_EFFECT" ;
93		Border = TRUE ;
94		Pos = MAP_APPFONT ( MA_EFFECTLIST_X, MA_CURR_Y + 1 ) ;
95		Size = MAP_APPFONT ( MA_EFFECTLIST_WIDTH, 57 ) ;
96		TabStop = TRUE ;
97		DropDown = TRUE ;
98		StringList [ en-US ] =
99		{
100			< "No Effect" ; Default ;				> ;
101			< "Blink" ; Default ;					> ;
102			< "Scroll Through" ; Default ;			> ;
103			< "Scroll Back and Forth" ; Default ;	> ;
104			< "Scroll In" ; Default ;				> ;
105		};
106	};
107	FixedText FT_DIRECTION
108	{
109		Pos = MAP_APPFONT ( MA_EFFECTLIST_X + MA_EFFECTLIST_WIDTH + RSC_SP_CTRL_X, MA_CURR_Y + 3 ) ;
110		Size = MAP_APPFONT ( MA_TOTAL_WIDTH -
111							 (MA_MOVEBUT_GRACE_X + 3*MA_BUTTON_WIDTH + RSC_SP_TBPG_INNERBORDER_RIGHT + RSC_SP_FLGR_INNERBORDER_RIGHT) -
112							 (MA_EFFECTLIST_X + MA_EFFECTLIST_WIDTH + RSC_SP_CTRL_X + RSC_SP_CTRL_DESC_X + 6),
113							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
114		Right = TRUE ;
115		Text [ en-US ] = "Direction" ;
116	};
117	ImageButton BTN_UP
118	{
119		HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_UP" ;
120		Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
121							RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP );
122		Size = BUTTON_SIZE ;
123		Symbol = IMAGEBUTTON_ARROW_UP ;
124		QuickHelpText [ en-US ] = "To Top" ;
125	};
126	ImageButton BTN_LEFT
127	{
128		HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_LEFT" ;
129		Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 3*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
130							RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + MA_BUTTON_HEIGHT);
131		Size = BUTTON_SIZE ;
132		Symbol = IMAGEBUTTON_ARROW_LEFT ;
133		QuickHelpText [ en-US ] = "To Left" ;
134	};
135	ImageButton BTN_RIGHT
136	{
137		HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION: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 ) ;
140		Size = BUTTON_SIZE ;
141		Symbol = IMAGEBUTTON_ARROW_RIGHT ;
142		QuickHelpText [ en-US ] = "To Right" ;
143	};
144	ImageButton BTN_DOWN
145	{
146		HelpID = "cui:ImageButton:RID_SVXPAGE_TEXTANIMATION:BTN_DOWN" ;
147		Pos = MAP_APPFONT ( MA_TOTAL_WIDTH - MA_MOVEBUT_GRACE_X - 2*MA_BUTTON_WIDTH - RSC_SP_TBPG_INNERBORDER_RIGHT - RSC_SP_FLGR_INNERBORDER_RIGHT,
148							RSC_SP_TBPG_INNERBORDER_TOP + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP + 2*MA_BUTTON_HEIGHT ) ;
149		Size = BUTTON_SIZE ;
150		Symbol = IMAGEBUTTON_ARROW_DOWN ;
151		QuickHelpText [ en-US ] = "To Bottom" ;
152	};
153
154	FixedLine FL_PROPERTIES
155	{
156		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT, RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT ) ;
157		Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT, RSC_CD_FIXEDLINE_HEIGHT ) ;
158		Text [ en-US ] = "Properties" ;
159	};
160#define MA_CURR_Y2		RSC_SP_TBPG_INNERBORDER_TOP + MA_EFFECTSGROUP_HEIGHT + RSC_CD_FIXEDLINE_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
161	TriStateBox TSB_START_INSIDE
162	{
163		HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_START_INSIDE" ;
164		TabStop = TRUE ;
165		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y2 ) ;
166		Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
167		Text [ en-US ] = "S~tart inside" ;
168	};
169#define MA_CURR_Y3		MA_CURR_Y2 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
170	TriStateBox TSB_STOP_INSIDE
171	{
172		HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_STOP_INSIDE" ;
173		TabStop = TRUE ;
174		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y3 ) ;
175		Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12, RSC_CD_CHECKBOX_HEIGHT );
176		Text [ en-US ] = "Text visible when exiting" ;
177	};
178#define MA_CURR_Y4		MA_CURR_Y3 + RSC_CD_CHECKBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
179	FixedText FT_COUNT
180	{
181		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y4 ) ;
182		Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
183							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
184		Text [ en-US ] = "Animation cycles" ;
185	};
186#define MA_CURR_Y5		MA_CURR_Y4 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
187	TriStateBox TSB_ENDLESS
188	{
189		HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_ENDLESS" ;
190		TabStop = TRUE ;
191		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9, MA_CURR_Y5 + 2 ) ;
192		Size = MAP_APPFONT ( 71, RSC_CD_CHECKBOX_HEIGHT ) ;
193		Text [ en-US ] = "~Continuous" ;
194	};
195	NumericField NUM_FLD_COUNT
196	{
197		HelpID = "cui:NumericField:RID_SVXPAGE_TEXTANIMATION:NUM_FLD_COUNT" ;
198		Border = TRUE ;
199		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
200							MA_CURR_Y5 ) ;
201		Size = MAP_APPFONT ( 50, RSC_CD_TEXTBOX_HEIGHT ) ;
202		TabStop = TRUE ;
203		Repeat = TRUE ;
204		Spin = TRUE ;
205		Minimum = 1 ;
206		First = 1 ;
207	};
208#define MA_CURR_Y6		MA_CURR_Y5 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
209	FixedText FT_AMOUNT
210	{
211		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y6 ) ;
212		Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
213							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
214		Text [ en-US ] = "Increment" ;
215	};
216#define MA_CURR_Y7		MA_CURR_Y6 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
217	TriStateBox TSB_PIXEL
218	{
219		HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_PIXEL" ;
220		TabStop = TRUE ;
221		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9, MA_CURR_Y7 + 2 ) ;
222		Size = MAP_APPFONT ( 71, RSC_CD_CHECKBOX_HEIGHT ) ;
223		Text [ en-US ] = "~Pixels" ;
224	};
225	MetricField MTR_FLD_AMOUNT
226	{
227		HelpID = "cui:MetricField:RID_SVXPAGE_TEXTANIMATION:MTR_FLD_AMOUNT" ;
228		Border = TRUE ;
229		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
230							MA_CURR_Y7 ) ;
231		Size = MAP_APPFONT ( 50, RSC_CD_TEXTBOX_HEIGHT ) ;
232		TabStop = TRUE ;
233		Repeat = TRUE ;
234		Spin = TRUE ;
235		StrictFormat = TRUE ;
236		Unit = FUNIT_CUSTOM ;
237		CustomUnitText = " Pixel" ;
238		Minimum = 1 ;
239		First = 1 ;
240		Maximum = 10000 ;
241		Last = 10000 ;
242	};
243#define MA_CURR_Y8		MA_CURR_Y7 + RSC_CD_TEXTBOX_HEIGHT + RSC_SP_CTRL_GROUP_Y
244	FixedText FT_DELAY
245	{
246		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT, MA_CURR_Y8 ) ;
247		Size = MAP_APPFONT ( MA_TOTAL_WIDTH - RSC_SP_TBPG_INNERBORDER_LEFT - RSC_SP_TBPG_INNERBORDER_RIGHT - 12,
248							 RSC_CD_FIXEDTEXT_HEIGHT ) ;
249		Text [ en-US ] = "Delay" ;
250	};
251#define MA_CURR_Y9		MA_CURR_Y8 + RSC_CD_FIXEDTEXT_HEIGHT + RSC_SP_FLGR_INNERBORDER_TOP
252	TriStateBox TSB_AUTO
253	{
254		HelpID = "cui:TriStateBox:RID_SVXPAGE_TEXTANIMATION:TSB_AUTO" ;
255		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 9, MA_CURR_Y9 + 2 ) ;
256		Size = MAP_APPFONT ( 71, RSC_CD_CHECKBOX_HEIGHT ) ;
257		TabStop = TRUE ;
258		Text [ en-US ] = "~Automatic" ;
259	};
260	MetricField MTR_FLD_DELAY
261	{
262		HelpID = "cui:MetricField:RID_SVXPAGE_TEXTANIMATION:MTR_FLD_DELAY" ;
263		Border = TRUE ;
264		Pos = MAP_APPFONT ( RSC_SP_TBPG_INNERBORDER_LEFT + RSC_SP_FLGR_INNERBORDER_LEFT + 80 + RSC_SP_CTRL_GROUP_X,
265							MA_CURR_Y9 ) ;
266		Size = MAP_APPFONT ( 50, RSC_CD_TEXTBOX_HEIGHT ) ;
267		TabStop = TRUE ;
268		Repeat = TRUE ;
269		Spin = TRUE ;
270		Spinsize = 50 ;
271		StrictFormat = TRUE ;
272		Unit = FUNIT_CUSTOM ;
273		CustomUnitText = " ms" ;
274		Maximum = 30000 ;
275		Last = 30000 ;
276	};
277};
278// RID_SVXDLG_TEXT -------------------------------------------------------
279TabDialog RID_SVXDLG_TEXT
280{
281	OutputSize = TRUE ;
282	SVLook = TRUE ;
283	Size = MAP_APPFONT ( 289, 185 + 46 ) ;
284	Text [ en-US ] = "Text" ;
285	Moveable = TRUE ;
286	TabControl 1
287	{
288		OutputSize = TRUE ;
289		Pos = MAP_APPFONT ( 3, 3 ) ;
290		Size = MAP_APPFONT ( 260, 185 ) ;
291		PageList =
292		{
293			PageItem
294			{
295				PageResID = RID_SVXPAGE_TEXTATTR ;
296				Identifier = RID_SVXPAGE_TEXTATTR ;
297				Text [ en-US ] = "Text" ;
298			};
299			PageItem
300			{
301				PageResID = RID_SVXPAGE_TEXTANIMATION ;
302				Identifier = RID_SVXPAGE_TEXTANIMATION ;
303				Text [ en-US ] = "Text Animation" ;
304			};
305		};
306	};
307};
308
309// ******************************************************************* EOF
310