bump product version to 4.1.6.2
[LibreOffice.git] / svx / source / sidebar / graphic / GraphicPropertyPanel.src
blob209d4633e6643d305c5079b6adae9a411f5caa1a
1 /*
2  * This file is part of the LibreOffice project.
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  *
8  * This file incorporates work covered by the following license notice:
9  *
10  *   Licensed to the Apache Software Foundation (ASF) under one or more
11  *   contributor license agreements. See the NOTICE file distributed
12  *   with this work for additional information regarding copyright
13  *   ownership. The ASF licenses this file to you under the Apache
14  *   License, Version 2.0 (the "License"); you may not use this file
15  *   except in compliance with the License. You may obtain a copy of
16  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
17  */
18 #include "GraphicPropertyPanel.hrc"
19 #include <sfx2/sidebar/ResourceDefinitions.hrc>
20 #include <svx/dialogs.hrc>
21 #include "helpid.hrc"
23 #define X0      SECTIONPAGE_MARGIN_HORIZONTAL
24 #define X1      X0 + 10
25 #define X2      X0 + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL
26 #define X3      X2 + 10
28 #define Y0      SECTIONPAGE_MARGIN_VERTICAL_TOP
29 #define Y1      Y0 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
30 #define Y2      Y1 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
31 #define Y3      Y2 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
32 #define Y4      Y3 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
33 #define Y5      Y4 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
35 #define PAGE_HEIGHT  Y5 + MBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT
39 Control RID_SIDEBAR_GRAPHIC_PANEL
41     OutputSize = TRUE;
42     DialogControl = TRUE;
43     Border = FALSE;
45     Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT );
46     HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ;
47     Text = "Graphic";
49     FixedText FT_BRIGHTNESS
50     {
51         Pos = MAP_APPFONT (X0, Y0);
52         Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
53         Text [ en-US ] = "~Brightness:";
54     };
55     MetricField MTR_BRIGHTNESS
56     {
57         Border = TRUE ;
58         Pos = MAP_APPFONT (X0, Y1);
59         Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
60         HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT;
61         QuickHelpText [ en-US ] = "Specify the luminance of the graphic.";
62         TabStop = TRUE ;
63         Repeat = TRUE ;
64         Spin = TRUE ;
65         Maximum = 100 ;
66         Minimum = -100 ;
67         StrictFormat = TRUE ;
68         Unit = FUNIT_CUSTOM ;
69         CustomUnitText = "%" ;
70         SpinSize = 1 ;
71     };
72     FixedText FT_CONTRAST
73     {
74         Pos = MAP_APPFONT (X2, Y0);
75         Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
76         Text [ en-US ] = "~Contrast:";
77     };
78     MetricField MTR_CONTRAST
79     {
80         Border = TRUE ;
81         Pos = MAP_APPFONT (X2, Y1);
82         Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
83         HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST;
84         QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic.";
85         TabStop = TRUE ;
86         Repeat = TRUE ;
87         Spin = TRUE ;
88         Maximum = 100 ;
89         Minimum = -100 ;
90         StrictFormat = TRUE ;
91         Unit = FUNIT_CUSTOM ;
92         CustomUnitText = "%" ;
93         SpinSize = 1 ;
94     };
95     FixedText FT_COLOR_MODE
96     {
97         Pos = MAP_APPFONT (X0, Y2);
98         Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
99         Text [ en-US ] = "Color ~mode:";
100     };
101     ListBox LB_COLOR_MODE
102     {
103         Border = TRUE ;
104         Pos = MAP_APPFONT (X0 , Y3) ;
105         Size = MAP_APPFONT ( MBOX_WIDTH , 100 ) ;
106         HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE;
107         QuickHelpText [ en-US ] = "Select the color mode of the graphic.";
108         TabStop = TRUE ;
109         DropDown = TRUE ;
110     };
111     FixedText FT_TRANSPARENT
112     {
113         Pos = MAP_APPFONT (X2, Y2);
114         Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
115         Text [ en-US ] = "~Transparency:";
116     };
117     MetricField MTR_TRANSPARENT
118     {
119         Border = TRUE ;
120         Pos = MAP_APPFONT (X2, Y3) ;
121         Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ;
122         HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP;
123         QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.";
124         TabStop = TRUE ;
125         Repeat = TRUE ;
126         Spin = TRUE ;
127         Maximum = 100 ;
128         StrictFormat = TRUE ;
129         Unit = FUNIT_CUSTOM ;
130         CustomUnitText = "%" ;
131         SpinSize = 1 ;
132     };
133     MetricField MF_RED
134     {
135         Border = TRUE ;
136         Pos = MAP_APPFONT (X1, Y4) ;
137         Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
138         HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED;
139         QuickHelpText [ en-US ] = "Red";
140         TabStop = TRUE ;
141         Repeat = TRUE ;
142         Spin = TRUE ;
143         Maximum = 100 ;
144         Minimum = -100 ;
145         StrictFormat = TRUE ;
146         Unit = FUNIT_CUSTOM ;
147         CustomUnitText = "%" ;
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_CUSTOM ;
164         CustomUnitText = "%" ;
165         SpinSize = 1 ;
166     };
167     MetricField MF_BLUE
168     {
169         Border = TRUE ;
170         Pos = MAP_APPFONT (X1, Y5) ;
171         Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
172         HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE;
173         QuickHelpText [ en-US ] = "Blue";
174         TabStop = TRUE ;
175         Repeat = TRUE ;
176         Spin = TRUE ;
177         Maximum = 100 ;
178         Minimum = -100 ;
179         StrictFormat = TRUE ;
180         Unit = FUNIT_CUSTOM ;
181         CustomUnitText = "%" ;
182         SpinSize = 1 ;
183     };
184     MetricField MF_GAMMA
185     {
186         Border = TRUE ;
187         Pos = MAP_APPFONT (X3, Y5) ;
188         Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
189         HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA;
190         QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values.";
191         TabStop = TRUE;
192         Repeat = TRUE;
193         Spin = TRUE;
194         Minimum = 10;
195         Maximum = 1000;
196         DecimalDigits = 2;
197         SpinSize = 10;
198     };
199     FixedImage IMG_RED
200     {
201         Pos = MAP_APPFONT(X0, Y4);
202         Size = MAP_APPFONT( 10, 12 );
203         Fixed = Image
204         {
205             ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png"; };
206         };
207     };
208     FixedImage IMG_GREEN
209     {
210         Pos = MAP_APPFONT(X2, Y4);
211         Size = MAP_APPFONT( 10, 12 );
212         Fixed = Image
213         {
214             ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png"; };
215         };
216     };
217     FixedImage IMG_BLUE
218     {
219         Pos = MAP_APPFONT(X0, Y5);
220         Size = MAP_APPFONT( 10, 12 );
221         Fixed = Image
222         {
223             ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png"; };
224         };
225     };
226     FixedImage IMG_GAMMA
227     {
228         Pos = MAP_APPFONT(X2, Y5);
229         Size = MAP_APPFONT( 10, 12 );
230         Fixed = Image
231         {
232             ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png"; };
233         };
234     };
237 // eof