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 .
19 #include "AreaPropertyPanel.hrc"
20 #include <sfx2/sidebar/ResourceDefinitions.hrc>
21 #include <svx/dialogs.hrc>
24 #define TOOLBOX_WIDTH 50
25 #define TOOLBOX_HEIGHT 17
29 ImageBitmap = Bitmap{File = "symphony/axial.png";};
33 ImageBitmap = Bitmap{File = "symphony/ellipsoid.png";};
37 ImageBitmap = Bitmap{File = "symphony/Quadratic.png";};
41 ImageBitmap = Bitmap{File = "symphony/radial.png";};
45 ImageBitmap = Bitmap{File = "symphony/Square.png";};
49 ImageBitmap = Bitmap{File = "symphony/linear.png";};
53 ImageBitmap = Bitmap{File = "symphony/fill_color.png";};
57 ImageBitmap = Bitmap{File = "symphony/rotate_left.png";};
61 ImageBitmap = Bitmap{File = "symphony/rotate_right.png";};
64 Control RID_POPUPPANEL_AREAPAGE_TRGR
70 FixedText FT_TRGR_CENTER_X
72 Size = MAP_APPFONT ( CONTROL_WIDTH , FIXED_TEXT_HEIGHT ) ;
73 Text [ en-US ] = "Center ~X:";
75 MetricField MTR_TRGR_CENTER_X
78 Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
79 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_X ;
80 QuickHelpText [ en-US ] = "Specify the horizontal offset percentage from the center for the gradient shading style. 50% is the horizontal center." ;
86 Unit = FUNIT_PERCENT ;
90 FixedText FT_TRGR_CENTER_Y
92 Size = MAP_APPFONT ( CONTROL_WIDTH + POPUPPANEL_MARGIN_HORIZONTAL, FIXED_TEXT_HEIGHT ) ;//wj
93 Text [ en-US ] = "Center ~Y:";
95 MetricField MTR_TRGR_CENTER_Y
98 Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
99 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_CENTER_Y ;
100 QuickHelpText [ en-US ] = "Specify the vertical offset percentage from the center for the gradient shading style. 50% is the vertical center." ;
105 StrictFormat = TRUE ;
106 Unit = FUNIT_PERCENT ;
110 FixedText FT_TRGR_ANGLE
112 Size = MAP_APPFONT ( CONTROL_WIDTH * 2 + POPUPPANEL_MARGIN_HORIZONTAL + CONTROL_SPACING_HORIZONTAL, FIXED_TEXT_HEIGHT ) ;//wj
113 Text [ en-US ] = "~Angle:";
115 MetricField MTR_TRGR_ANGLE
118 Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
119 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_ANGLE ;
120 QuickHelpText [ en-US ] = "Specify the angle of rotation for the gradient shading style." ;
126 Unit = FUNIT_CUSTOM ;
128 CustomUnitText [ en-US ] = " degrees";
130 FixedText FT_TRGR_START_VALUE
132 Size = MAP_APPFONT ( CONTROL_WIDTH , FIXED_TEXT_HEIGHT ) ;
133 Text [ en-US ] = "~Start value:";
135 MetricField MTR_TRGR_START_VALUE
138 Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
139 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_SVALUE ;
140 QuickHelpText [ en-US ] = "Enter a transparency value for the beginning point of the gradient, where 0% is fully opaque and 100% is fully transparent." ;
145 StrictFormat = TRUE ;
146 Unit = FUNIT_PERCENT ;
150 FixedText FT_TRGR_END_VALUE
152 Size = MAP_APPFONT (CONTROL_WIDTH + POPUPPANEL_MARGIN_HORIZONTAL, FIXED_TEXT_HEIGHT ) ; //wj
153 Text [ en-US ] = "~End value:";
155 MetricField MTR_TRGR_END_VALUE
158 Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
159 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_EVALUE ;
160 QuickHelpText [ en-US ] = "Enter a transparency value for the endpoint of the gradient, where 0% is fully opaque and 100% is fully transparent." ;
165 StrictFormat = TRUE ;
166 Unit = FUNIT_PERCENT ;
170 FixedText FT_TRGR_BORDER
172 Size = MAP_APPFONT ( CONTROL_WIDTH * 2 + POPUPPANEL_MARGIN_HORIZONTAL + CONTROL_SPACING_HORIZONTAL, FIXED_TEXT_HEIGHT ) ;
173 Text [ en-US ] = "~Border:";
175 MetricField MTR_TRGR_BORDER
178 Size = MAP_APPFONT ( CONTROL_WIDTH , MBOX_HEIGHT ) ;
179 HelpID = HID_PPROPERTYPANEL_AREA_MTR_TRGR_BORDER ;
180 QuickHelpText [ en-US ] = "Specify the border value of gradient transparency." ;
185 StrictFormat = TRUE ;
186 Unit = FUNIT_PERCENT ;
191 ToolBox BTN_LEFT_SECOND
194 HelpID = HID_PPROPERTYPANEL_AREA_BTN_LEFT_SECOND ;
198 Text = "Rotate Left";
203 Identifier = TBI_LEFT ;
204 Text = "Rotate Left" ;
207 // File = "symphony/rotate_left.png" ;
212 ToolBox BTN_RIGHT_FIRST
215 HelpID = HID_PPROPERTYPANEL_AREA_BTN_RIGHT_FIRST ;
219 Text = "Rotate Right";
224 Identifier = TBI_RIGHT ;
225 Text = "Rotate Right" ;
228 // File = "symphony/rotate_right.png" ;
235 Text [ en-US ] = "Rotate counterclockwise by 45 degrees." ;
237 String STR_HELP_RIGHT
239 Text [ en-US ] = "Rotate clockwise by 45 degrees." ;
242 Control RID_POPUPPANEL_AERAPAGE_COLOR
245 DialogControl = TRUE;
247 Size = MAP_APPFONT( POPUP_COLOR_PICKER_WIDTH , POPUP_COLOR_PICKER_HEIGHT );
251 HelpID = HID_PPROPERTYPANEL_AREA_COLOR_VS;
253 Pos = MAP_APPFONT ( OFFSET_X , OFFSET_Y );
254 Size = MAP_APPFONT ( POPUP_COLOR_PICKER_WIDTH - OFFSET_X * 2, POPUP_COLOR_PICKER_HEIGHT - OFFSET_Y * 2);
260 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */