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/propertypanel.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_CUSTOM ;
73        CustomUnitText = "%" ;
74		SpinSize = 1 ;
75	};
76	FixedText FT_CONTRAST
77	{
78		Pos = MAP_APPFONT (X2, Y0);
79        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
80		Text [ en-US ] = "~Contrast:";
81	};
82	MetricField MTR_CONTRAST
83	{
84		Border = TRUE ;
85		Pos = MAP_APPFONT (X2, Y1);
86        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
87        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST;
88        QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic.";
89		TabStop = TRUE ;
90		Repeat = TRUE ;
91		Spin = TRUE ;
92		Maximum = 100 ;
93		Minimum = -100 ;
94		StrictFormat = TRUE ;
95		Unit = FUNIT_CUSTOM ;
96        CustomUnitText = "%" ;
97		SpinSize = 1 ;
98	};
99	FixedText FT_COLOR_MODE
100	{
101		Pos = MAP_APPFONT (X0, Y2);
102        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
103		Text [ en-US ] = "Color ~mode:";
104	};
105	ListBox LB_COLOR_MODE
106	{
107		Border = TRUE ;
108        Pos = MAP_APPFONT (X0 , Y3) ;
109        Size = MAP_APPFONT ( MBOX_WIDTH , 100 ) ;
110        HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE;
111        QuickHelpText [ en-US ] = "Select the color mode of the graphic.";
112		TabStop = TRUE ;
113		DropDown = TRUE ;
114	};
115	FixedText FT_TRANSPARENT
116	{
117		Pos = MAP_APPFONT (X2, Y2);
118        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
119		Text [ en-US ] = "~Transparency:";
120	};
121	MetricField MTR_TRANSPARENT
122	{
123		Border = TRUE ;
124        Pos = MAP_APPFONT (X2, Y3) ;
125        Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ;
126        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP;
127        QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.";
128		TabStop = TRUE ;
129		Repeat = TRUE ;
130		Spin = TRUE ;
131		Maximum = 100 ;
132		StrictFormat = TRUE ;
133		Unit = FUNIT_CUSTOM ;
134        CustomUnitText = "%" ;
135		SpinSize = 1 ;
136	};
137	MetricField MF_RED
138	{
139		Border = TRUE ;
140        Pos = MAP_APPFONT (X1, Y4) ;
141        Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
142        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED;
143        QuickHelpText [ en-US ] = "Red";
144		TabStop = TRUE ;
145		Repeat = TRUE ;
146		Spin = TRUE ;
147		Maximum = 100 ;
148		Minimum = -100 ;
149		StrictFormat = TRUE ;
150		Unit = FUNIT_CUSTOM ;
151        CustomUnitText = "%" ;
152		SpinSize = 1 ;
153	};
154	MetricField MF_GREEN
155	{
156		Border = TRUE ;
157        Pos = MAP_APPFONT (X3, Y4) ;
158        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
159        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN;
160        QuickHelpText [ en-US ] = "Green";
161		TabStop = TRUE ;
162		Repeat = TRUE ;
163		Spin = TRUE ;
164		Maximum = 100 ;
165		Minimum = -100 ;
166		StrictFormat = TRUE ;
167		Unit = FUNIT_CUSTOM ;
168        CustomUnitText = "%" ;
169		SpinSize = 1 ;
170	};
171	MetricField MF_BLUE
172	{
173		Border = TRUE ;
174        Pos = MAP_APPFONT (X1, Y5) ;
175        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
176        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE;
177        QuickHelpText [ en-US ] = "Blue";
178		TabStop = TRUE ;
179		Repeat = TRUE ;
180		Spin = TRUE ;
181		Maximum = 100 ;
182		Minimum = -100 ;
183		StrictFormat = TRUE ;
184		Unit = FUNIT_CUSTOM ;
185        CustomUnitText = "%" ;
186		SpinSize = 1 ;
187	};
188	MetricField MF_GAMMA
189	{
190		Border = TRUE ;
191        Pos = MAP_APPFONT (X3, Y5) ;
192        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
193        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA;
194        QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values.";
195		TabStop = TRUE;
196		Repeat = TRUE;
197		Spin = TRUE;
198		Minimum = 10;
199		Maximum = 1000;
200		DecimalDigits = 2;
201		SpinSize = 10;
202	};
203	FixedImage IMG_RED
204    {
205        Pos = MAP_APPFONT(X0, Y4);
206        Size = MAP_APPFONT( 10, 12 );
207        Fixed = Image
208        {
209            ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png"; };
210		};
211    };
212    FixedImage IMG_GREEN
213    {
214        Pos = MAP_APPFONT(X2, Y4);
215        Size = MAP_APPFONT( 10, 12 );
216        Fixed = Image
217        {
218            ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png"; };
219		};
220    };
221	FixedImage IMG_BLUE
222    {
223        Pos = MAP_APPFONT(X0, Y5);
224        Size = MAP_APPFONT( 10, 12 );
225        Fixed = Image
226        {
227            ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png"; };
228		};
229    };
230	FixedImage IMG_GAMMA
231    {
232        Pos = MAP_APPFONT(X2, Y5);
233        Size = MAP_APPFONT( 10, 12 );
234        Fixed = Image
235        {
236            ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png"; };
237		};
238    };
239};
240
241// eof
242