xref: /AOO41X/main/svx/source/sidebar/graphic/GraphicPropertyPanel.src (revision ff0525f24f03981d56b7579b645949f111420994)
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
27Control RID_SIDEBAR_GRAPHIC_PANEL
28{
29    OutputSize = TRUE;
30    DialogControl = TRUE;
31    Border = FALSE;
32
33    Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT );
34    HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ;
35    Text = "Graphic";
36
37    FixedText FT_BRIGHTNESS
38    {
39        Pos = MAP_APPFONT ( FT_BRIGHTNESS_X, FT_BRIGHTNESS_Y );
40        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
41        Text [ en-US ] = "~Brightness:";
42    };
43    MetricField MTR_BRIGHTNESS
44    {
45        Border = TRUE ;
46        Pos = MAP_APPFONT ( MTR_BRIGHTNESS_X, MTR_BRIGHTNESS_Y );
47        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
48        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT;
49        QuickHelpText [ en-US ] = "Specify the luminance of the graphic.";
50        TabStop = TRUE ;
51        Repeat = TRUE ;
52        Spin = TRUE ;
53        Maximum = 100 ;
54        Minimum = -100 ;
55        StrictFormat = TRUE ;
56        Unit = FUNIT_CUSTOM ;
57        CustomUnitText = "%" ;
58        SpinSize = 1 ;
59    };
60    FixedText FT_CONTRAST
61    {
62        Pos = MAP_APPFONT ( FT_CONTRAST_X, FT_CONTRAST_Y );
63        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
64        Text [ en-US ] = "~Contrast:";
65    };
66    MetricField MTR_CONTRAST
67    {
68        Border = TRUE ;
69        Pos = MAP_APPFONT ( MTR_CONTRAST_X, MTR_CONTRAST_Y );
70        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
71        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST;
72        QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic.";
73        TabStop = TRUE ;
74        Repeat = TRUE ;
75        Spin = TRUE ;
76        Maximum = 100 ;
77        Minimum = -100 ;
78        StrictFormat = TRUE ;
79        Unit = FUNIT_CUSTOM ;
80        CustomUnitText = "%" ;
81        SpinSize = 1 ;
82    };
83    FixedText FT_COLOR_MODE
84    {
85        Pos = MAP_APPFONT ( FT_COLOR_MODE_X, FT_COLOR_MODE_Y );
86        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
87        Text [ en-US ] = "Color ~mode:";
88    };
89    ListBox LB_COLOR_MODE
90    {
91        Border = TRUE ;
92        Pos = MAP_APPFONT ( LBX_COLOR_MODE_X , LBX_COLOR_MODE_Y ) ;
93        Size = MAP_APPFONT ( MBOX_WIDTH , 100 ) ;
94        HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE;
95        QuickHelpText [ en-US ] = "Select the color mode of the graphic.";
96        TabStop = TRUE ;
97        DropDown = TRUE ;
98    };
99    FixedText FT_TRANSPARENT
100    {
101        Pos = MAP_APPFONT ( FT_TRANSPARENT_X, FT_TRANSPARENT_Y );
102        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
103        Text [ en-US ] = "~Transparency:";
104    };
105    MetricField MTR_TRANSPARENT
106    {
107        Border = TRUE ;
108        Pos = MAP_APPFONT ( MTR_TRANS_X, MTR_TRANS_Y ) ;
109        Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ;
110        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP;
111        QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.";
112        TabStop = TRUE ;
113        Repeat = TRUE ;
114        Spin = TRUE ;
115        Maximum = 100 ;
116        StrictFormat = TRUE ;
117        Unit = FUNIT_CUSTOM ;
118        CustomUnitText = "%" ;
119        SpinSize = 1 ;
120    };
121    MetricField MF_RED
122    {
123        Border = TRUE ;
124        Pos = MAP_APPFONT ( MF_RED_X + 10, MF_RED_Y ) ;
125        Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
126        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED;
127        QuickHelpText [ en-US ] = "Red";
128        TabStop = TRUE ;
129        Repeat = TRUE ;
130        Spin = TRUE ;
131        Maximum = 100 ;
132        Minimum = -100 ;
133        StrictFormat = TRUE ;
134        Unit = FUNIT_CUSTOM ;
135        CustomUnitText = "%" ;
136        SpinSize = 1 ;
137    };
138    MetricField MF_GREEN
139    {
140        Border = TRUE ;
141        Pos = MAP_APPFONT ( MF_GREEN_X + 10, MF_GREEN_Y ) ;
142        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
143        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN;
144        QuickHelpText [ en-US ] = "Green";
145        TabStop = TRUE ;
146        Repeat = TRUE ;
147        Spin = TRUE ;
148        Maximum = 100 ;
149        Minimum = -100 ;
150        StrictFormat = TRUE ;
151        Unit = FUNIT_CUSTOM ;
152        CustomUnitText = "%" ;
153        SpinSize = 1 ;
154    };
155    MetricField MF_BLUE
156    {
157        Border = TRUE ;
158        Pos = MAP_APPFONT ( MF_BLUE_X + 10, MF_BLUE_Y ) ;
159        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
160        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE;
161        QuickHelpText [ en-US ] = "Blue";
162        TabStop = TRUE ;
163        Repeat = TRUE ;
164        Spin = TRUE ;
165        Maximum = 100 ;
166        Minimum = -100 ;
167        StrictFormat = TRUE ;
168        Unit = FUNIT_CUSTOM ;
169        CustomUnitText = "%" ;
170        SpinSize = 1 ;
171    };
172    MetricField MF_GAMMA
173    {
174        Border = TRUE ;
175        Pos = MAP_APPFONT ( MF_GAMMA_X + 10, MF_GAMMA_Y ) ;
176        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
177        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA;
178        QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values.";
179        TabStop = TRUE;
180        Repeat = TRUE;
181        Spin = TRUE;
182        Minimum = 10;
183        Maximum = 1000;
184        DecimalDigits = 2;
185        SpinSize = 10;
186    };
187    Image IMG_NORMAL
188    {
189        ImageBitmap = Bitmap{File = "symphony/ColorModeNormal_16x16.png";};
190    };
191    Image IMG_BW
192    {
193        ImageBitmap = Bitmap{File = "symphony/ColorModeBlackWhite_16x16.png";};
194    };
195    Image IMG_GRAY
196    {
197        ImageBitmap = Bitmap{File = "symphony/ColorModeGrey_16x16.png";};
198    };
199    Image IMG_WATER
200    {
201        ImageBitmap = Bitmap{File = "symphony/ColorModeWaterMark_16x16.png";};
202    };
203    FixedImage IMG_RED
204    {
205        Pos = MAP_APPFONT( MF_RED_X, MF_RED_Y );
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( MF_GREEN_X, MF_GREEN_Y );
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( MF_BLUE_X, MF_BLUE_Y );
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( MF_GAMMA_X, MF_GAMMA_Y );
233        Size = MAP_APPFONT( 10, 12 );
234        Fixed = Image
235        {
236            ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png"; };
237        };
238    };
239    String STR_NORMAL
240    {
241        Text [ en-US ] = "Normal";
242    };
243    String STR_BW
244    {
245        Text [ en-US ] = "Black/White";
246    };
247    String STR_GRAY
248    {
249        Text [ en-US ] = "Grayscale";
250    };
251    String STR_WATER
252    {
253        Text [ en-US ] = "Watermark";
254    };
255};
256
257// eof
258