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#include "AlignmentPropertyPanel.hrc"
23#include <sfx2/sidebar/propertypanel.hrc>
24#include "sc.hrc"
25#include "helpids.h"
26
27Control RID_PROPERTYPANEL_SC_ALIGNMENT
28{
29	OutputSize = TRUE;
30	DialogControl = TRUE;
31	Border = FALSE;
32
33	Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PANEL_HEIGHT );
34	HelpID = HID_PROPERTYPANEL_SC_ALIGN_SECTION;
35	Text [ en-US ] = "Alignment";
36
37	//------------ Alignment -------------
38	ToolBox TBX_HORIZONTAL_ALIGNMENT
39	{
40        Pos = MAP_APPFONT ( ALIGNMENT_X , ALIGNMENT_Y );
41        Size = MAP_APPFONT ( ALIGNMENT_TBX_WIDTH*4 ,ALIGNMENT_TBX_HEIGHT);
42		SVLook = TRUE ;
43		Border = FALSE ;
44		HelpID = HID_PROPERTY_PANEL_ALIGN_TBX_HOR;
45		Text [ en-US ] = "Horizontal Alignment" ;
46		ItemList =
47		{
48			ToolBoxItem
49			{
50				Identifier = ID_SUBSTLEFT ;
51				Text [ en-US ] = "Align Left" ;
52				HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_HOR_L;
53			};
54			ToolBoxItem
55			{
56				Identifier = ID_SUBSTCENTER ;
57				Text [ en-US ] = "Align Center" ;
58				HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_HOR_C;
59			};
60			ToolBoxItem
61			{
62				Identifier = ID_SUBSTRIGHT ;
63				Text [ en-US ] = "Align Right" ;
64				HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_HOR_R;
65			};
66			ToolBoxItem
67			{
68				Identifier = ID_SUBSTJUSTIFY ;
69				Text [ en-US ] = "Align Justified" ;
70				HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_HOR_J;
71			};
72		};
73	};
74	ToolBox TBX_VERTICAL_ALIGN
75	{
76		SVLook = TRUE ;
77		Border = FALSE ;
78		Pos = MAP_APPFONT ( ALIGNMENT_VERT_X,  ALIGNMENT_VERT_Y ) ;
79		Size = MAP_APPFONT ( TOOLBOX_ITEM_WIDTH * 3 ,  TOOLBOX_ITEM_HEIGHT) ;
80		TabStop = TRUE ;
81		HelpID = HID_PROPERTY_PANEL_ALIGN_TBX_VER;
82		Text [ en-US ] = "Vertical Alignment" ;
83		ItemList =
84		{
85			ToolBoxItem
86			{
87				Identifier = IID_VERT_TOP ;
88				Text [ en-US ] = "Align Top" ;
89				HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_VER_T;
90			};
91
92			ToolBoxItem
93			{
94				Identifier = IID_VERT_CENTER ;
95				Text [ en-US ] = "Align Center Vertically" ;
96				HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_VER_C;
97			};
98
99			ToolBoxItem
100			{
101				Identifier = IID_VERT_BOTTOM ;
102				Text [ en-US ] = "Align Bottom" ;
103				HelpID = HID_PROPERTY_PANEL_ALIGN_TBI_VER_B;
104			};
105		};
106	};
107	//------------ Left indent ------------
108	FixedText FT_LEFT_INDENT
109	{
110		Pos = MAP_APPFONT ( FT_LEFTINDENT_X, FT_LEFTINDENT_Y );
111		Size = MAP_APPFONT (CBX_WRAP_X - FT_LEFTINDENT_X - 1 , TEXT_HEIGHT) ; //MBOX_WIDTH
112		Text [ en-US ] = "Left ~indent:";
113	};
114	MetricField MF_LEFT_INDENT
115	{
116		Border = TRUE;
117		Pos = MAP_APPFONT ( MTR_LEFTINDENT_X , MTR_LEFTINDENT_Y );
118		Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
119		TabStop = TRUE;
120		Repeat = TRUE;
121		Spin = TRUE;
122		Minimum = 0;
123		Maximum = 990;
124		Unit = FUNIT_POINT;
125		SpinSize = 10;
126		QuickHelpText [ en-US ] = "Indents from the left edge.";
127		HelpID = HID_PROPERTY_PANEL_ALIGN_MBX_INDENT;
128	};
129	CheckBox CBX_WRAP
130	{
131		Pos = MAP_APPFONT ( CBX_WRAP_X , CBX_WRAP_Y ) ;
132        Size = MAP_APPFONT (PROPERTYPAGE_WIDTH - CBX_WRAP_X - 1 , CBOX_HEIGHT ) ;//
133		TabStop = TRUE ;
134		Text [ en-US ] = "~Wrap text" ;
135		QuickHelpText [ en-US ] = "Wrap texts automatically.";
136		HelpID = HID_PROPERTY_PANEL_ALIGN_CBX_WRAP;
137	};
138	CheckBox CBX_MERGE
139	{
140		Pos = MAP_APPFONT ( CBX_MERGE_X , CBX_MERGE_Y ) ;
141        Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH - CBX_WRAP_X - 1 , CBOX_HEIGHT ) ;//
142		TabStop = TRUE ;
143		Text [ en-US ] = "~Merge cells" ;
144		QuickHelpText [ en-US ] = "Joins the selected cells into one.";
145		HelpID = HID_PROPERTY_PANEL_ALIGN_CBX_MERGE;
146	};
147	//------------ Text orientation ------------
148	FixedText FT_ORIENT
149	{
150	    Pos = MAP_APPFONT ( FT_ORIENT_X, FT_ORIENT_Y );
151        Size = MAP_APPFONT ( TEXT_WIDTH + 50, TEXT_HEIGHT) ;
152		Text [ en-US ] = "Text ~orientation:";
153	};
154	MetricBox CBOX_ANGLE
155	{
156		Border = TRUE ;
157        Pos = MAP_APPFONT ( COMOBX_ROTATION_X , COMOBX_ROTATION_Y );
158        Size = MAP_APPFONT ( MBOX_WIDTH + 20, MBOX_HEIGHT ) ;
159        Unit = FUNIT_CUSTOM ;
160		CustomUnitText [ en-US ] = " degrees";
161		DecimalDigits = 0;
162		Minimum = 0;
163		Maximum = 359;
164		TabStop = TRUE ;
165		DropDown = TRUE ;
166		QuickHelpText [ en-US ] = "Select the angle for rotation.";
167		HelpID = HID_PROPERTY_PANEL_ALIGN_MBX_ANGLE;
168	};
169
170	Control	DIAL_CONTROL
171	{
172		Pos = MAP_APPFONT ( ROTATE_CONTROL_X , ROTATE_CONTROL_Y );
173		Size = MAP_PIXEL( 50, 50 );
174		HelpID = HID_PROPERTY_PANEL_ALIGN_DIAL_CONTROL;
175		QuickHelpText [ en-US ] = "Drag to change the rotation value.";
176	};
177	CheckBox CBX_VERT
178	{
179		Pos = MAP_APPFONT ( CBX_VERT_X , CBX_VERT_Y ) ;
180        Size = MAP_APPFONT ( MBOX_WIDTH + 20 , CBOX_HEIGHT + 5 ) ;
181		TabStop = TRUE ;
182		Text [ en-US ] = "~Vertically stacked" ;
183		QuickHelpText [ en-US ] = "Aligns text vertically.";
184		HelpID = HID_PROPERTY_PANEL_ALIGN_CBX_VERT;
185	};
186
187	Image IMG_ALIGN_LEFT
188	{
189		ImageBitmap = Bitmap{File = "sidebar/sc_alignleft.png";};
190	};
191	Image IMG_ALIGN_CENTER
192	{
193		ImageBitmap = Bitmap{File = "sidebar/sc_aligncenter.png";};
194	};
195	Image IMG_ALIGN_RIGHT
196	{
197		ImageBitmap = Bitmap{File = "sidebar/sc_alignright.png";};
198	};
199	Image IMG_ALIGN_JUST
200	{
201		ImageBitmap = Bitmap{File = "sidebar/sc_alignjust.png";};
202	};
203	Image IMG_ALIGN_TOP
204	{
205		ImageBitmap = Bitmap{File = "sidebar/sc_aligntop.png";};
206	};
207	Image IMG_ALIGN_CENTER_V
208	{
209		ImageBitmap = Bitmap{File = "sidebar/sc_aligncenter_v.png";};
210	};
211	Image IMG_ALIGN_BOTTOM
212	{
213		ImageBitmap = Bitmap{File = "sidebar/sc_alignbottom.png";};
214	};
215};
216
217// eof
218