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 "GraphicPropertyPanel.hrc"
23#include <sfx2/sidebar/ResourceDefinitions.hrc>
24#include <svx/dialogs.hrc>
25#include "helpid.hrc"
26
27#define X0		SECTIONPAGE_MARGIN_HORIZONTAL
28#define X1		X0 + 10
29#define X2		X0 + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL
30#define X3		X2 + 10
31
32#define Y0		SECTIONPAGE_MARGIN_VERTICAL_TOP
33#define Y1		Y0 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
34#define Y2		Y1 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
35#define Y3		Y2 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
36#define Y4		Y3 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
37#define Y5		Y4 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
38
39#define PAGE_HEIGHT	 Y5 + MBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT
40
41
42
43Control RID_SIDEBAR_GRAPHIC_PANEL
44{
45	OutputSize = TRUE;
46	DialogControl = TRUE;
47	Border = FALSE;
48
49	Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT );
50	HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ;
51	Text = "Graphic";
52
53	FixedText FT_BRIGHTNESS
54	{
55		Pos = MAP_APPFONT (X0, Y0);
56        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
57		Text [ en-US ] = "~Brightness:";
58	};
59	MetricField MTR_BRIGHTNESS
60	{
61		Border = TRUE ;
62		Pos = MAP_APPFONT (X0, Y1);
63        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
64        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT;
65        QuickHelpText [ en-US ] = "Specify the luminance of the graphic.";
66		TabStop = TRUE ;
67		Repeat = TRUE ;
68		Spin = TRUE ;
69		Maximum = 100 ;
70		Minimum = -100 ;
71		StrictFormat = TRUE ;
72		Unit = FUNIT_PERCENT ;
73		SpinSize = 1 ;
74	};
75	FixedText FT_CONTRAST
76	{
77		Pos = MAP_APPFONT (X2, Y0);
78        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
79		Text [ en-US ] = "~Contrast:";
80	};
81	MetricField MTR_CONTRAST
82	{
83		Border = TRUE ;
84		Pos = MAP_APPFONT (X2, Y1);
85        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
86        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST;
87        QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic.";
88		TabStop = TRUE ;
89		Repeat = TRUE ;
90		Spin = TRUE ;
91		Maximum = 100 ;
92		Minimum = -100 ;
93		StrictFormat = TRUE ;
94		Unit = FUNIT_PERCENT ;
95		SpinSize = 1 ;
96	};
97	FixedText FT_COLOR_MODE
98	{
99		Pos = MAP_APPFONT (X0, Y2);
100        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
101		Text [ en-US ] = "Color ~mode:";
102	};
103	ListBox LB_COLOR_MODE
104	{
105		Border = TRUE ;
106        Pos = MAP_APPFONT (X0 , Y3) ;
107        Size = MAP_APPFONT ( MBOX_WIDTH , 100 ) ;
108        HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE;
109        QuickHelpText [ en-US ] = "Select the color mode of the graphic.";
110		TabStop = TRUE ;
111		DropDown = TRUE ;
112	};
113	FixedText FT_TRANSPARENT
114	{
115		Pos = MAP_APPFONT (X2, Y2);
116        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
117		Text [ en-US ] = "~Transparency:";
118	};
119	MetricField MTR_TRANSPARENT
120	{
121		Border = TRUE ;
122        Pos = MAP_APPFONT (X2, Y3) ;
123        Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ;
124        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP;
125        QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0 % is fully opaque and 100 % is fully transparent.";
126		TabStop = TRUE ;
127		Repeat = TRUE ;
128		Spin = TRUE ;
129		Maximum = 100 ;
130		StrictFormat = TRUE ;
131		Unit = FUNIT_PERCENT ;
132		SpinSize = 1 ;
133	};
134	MetricField MF_RED
135	{
136		Border = TRUE ;
137        Pos = MAP_APPFONT (X1, Y4) ;
138        Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
139        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED;
140        QuickHelpText [ en-US ] = "Red";
141		TabStop = TRUE ;
142		Repeat = TRUE ;
143		Spin = TRUE ;
144		Maximum = 100 ;
145		Minimum = -100 ;
146		StrictFormat = TRUE ;
147		Unit = FUNIT_PERCENT ;
148		SpinSize = 1 ;
149	};
150	MetricField MF_GREEN
151	{
152		Border = TRUE ;
153        Pos = MAP_APPFONT (X3, Y4) ;
154        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
155        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN;
156        QuickHelpText [ en-US ] = "Green";
157		TabStop = TRUE ;
158		Repeat = TRUE ;
159		Spin = TRUE ;
160		Maximum = 100 ;
161		Minimum = -100 ;
162		StrictFormat = TRUE ;
163		Unit = FUNIT_PERCENT ;
164		SpinSize = 1 ;
165	};
166	MetricField MF_BLUE
167	{
168		Border = TRUE ;
169        Pos = MAP_APPFONT (X1, Y5) ;
170        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
171        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE;
172        QuickHelpText [ en-US ] = "Blue";
173		TabStop = TRUE ;
174		Repeat = TRUE ;
175		Spin = TRUE ;
176		Maximum = 100 ;
177		Minimum = -100 ;
178		StrictFormat = TRUE ;
179		Unit = FUNIT_PERCENT ;
180		SpinSize = 1 ;
181	};
182	MetricField MF_GAMMA
183	{
184		Border = TRUE ;
185        Pos = MAP_APPFONT (X3, Y5) ;
186        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
187        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA;
188        QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values.";
189		TabStop = TRUE;
190		Repeat = TRUE;
191		Spin = TRUE;
192		Minimum = 10;
193		Maximum = 1000;
194		DecimalDigits = 2;
195		SpinSize = 10;
196	};
197	FixedImage IMG_RED
198    {
199        Pos = MAP_APPFONT(X0, Y4);
200        Size = MAP_APPFONT( 10, 12 );
201        Fixed = Image
202        {
203            ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png"; };
204		};
205    };
206    FixedImage IMG_GREEN
207    {
208        Pos = MAP_APPFONT(X2, Y4);
209        Size = MAP_APPFONT( 10, 12 );
210        Fixed = Image
211        {
212            ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png"; };
213		};
214    };
215	FixedImage IMG_BLUE
216    {
217        Pos = MAP_APPFONT(X0, Y5);
218        Size = MAP_APPFONT( 10, 12 );
219        Fixed = Image
220        {
221            ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png"; };
222		};
223    };
224	FixedImage IMG_GAMMA
225    {
226        Pos = MAP_APPFONT(X2, Y5);
227        Size = MAP_APPFONT( 10, 12 );
228        Fixed = Image
229        {
230            ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png"; };
231		};
232    };
233};
234
235// eof
236