xref: /trunk/main/svx/source/sidebar/graphic/GraphicPropertyPanel.src (revision 31bbceb0f9d64c0c2c3b22a794a1666c1f33396e)
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
41Control RID_SIDEBAR_GRAPHIC_PANEL
42{
43    OutputSize = TRUE ;
44    DialogControl = TRUE ;
45    Border = FALSE ;
46
47    Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT ) ;
48    HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ;
49    Text = "Graphic" ;
50
51    FixedText FT_BRIGHTNESS
52    {
53        Pos = MAP_APPFONT (X0, Y0) ;
54        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
55        Text [ en-US ] = "~Brightness:" ;
56    };
57    MetricField MTR_BRIGHTNESS
58    {
59        Border = TRUE ;
60        Pos = MAP_APPFONT (X0, Y1) ;
61        Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
62        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT ;
63        QuickHelpText [ en-US ] = "Specify the luminance of the graphic." ;
64        TabStop = TRUE ;
65        Repeat = TRUE ;
66        Spin = TRUE ;
67        Maximum = 100 ;
68        Minimum = -100 ;
69        StrictFormat = TRUE ;
70        Unit = FUNIT_PERCENT ;
71        SpinSize = 1 ;
72    };
73    FixedText FT_CONTRAST
74    {
75        Pos = MAP_APPFONT (X2, Y0) ;
76        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
77        Text [ en-US ] = "~Contrast:" ;
78    };
79    MetricField MTR_CONTRAST
80    {
81        Border = TRUE ;
82        Pos = MAP_APPFONT (X2, Y1) ;
83        Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
84        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST ;
85        QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic." ;
86        TabStop = TRUE ;
87        Repeat = TRUE ;
88        Spin = TRUE ;
89        Maximum = 100 ;
90        Minimum = -100 ;
91        StrictFormat = TRUE ;
92        Unit = FUNIT_PERCENT ;
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_PERCENT ;
130        SpinSize = 1 ;
131    };
132    MetricField MF_RED
133    {
134        Border = TRUE ;
135        Pos = MAP_APPFONT (X1, Y4) ;
136        Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
137        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED ;
138        QuickHelpText [ en-US ] = "Red" ;
139        TabStop = TRUE ;
140        Repeat = TRUE ;
141        Spin = TRUE ;
142        Maximum = 100 ;
143        Minimum = -100 ;
144        StrictFormat = TRUE ;
145        Unit = FUNIT_PERCENT ;
146        SpinSize = 1 ;
147    };
148    MetricField MF_GREEN
149    {
150        Border = TRUE ;
151        Pos = MAP_APPFONT (X3, Y4) ;
152        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
153        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN ;
154        QuickHelpText [ en-US ] = "Green" ;
155        TabStop = TRUE ;
156        Repeat = TRUE ;
157        Spin = TRUE ;
158        Maximum = 100 ;
159        Minimum = -100 ;
160        StrictFormat = TRUE ;
161        Unit = FUNIT_PERCENT ;
162        SpinSize = 1 ;
163    };
164    MetricField MF_BLUE
165    {
166        Border = TRUE ;
167        Pos = MAP_APPFONT (X1, Y5) ;
168        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
169        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE ;
170        QuickHelpText [ en-US ] = "Blue" ;
171        TabStop = TRUE ;
172        Repeat = TRUE ;
173        Spin = TRUE ;
174        Maximum = 100 ;
175        Minimum = -100 ;
176        StrictFormat = TRUE ;
177        Unit = FUNIT_PERCENT ;
178        SpinSize = 1 ;
179    };
180    MetricField MF_GAMMA
181    {
182        Border = TRUE ;
183        Pos = MAP_APPFONT (X3, Y5) ;
184        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
185        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA ;
186        QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values." ;
187        TabStop = TRUE ;
188        Repeat = TRUE ;
189        Spin = TRUE ;
190        Minimum = 10 ;
191        Maximum = 1000 ;
192        DecimalDigits = 2 ;
193        SpinSize = 10 ;
194    };
195    FixedImage IMG_RED
196    {
197        Pos = MAP_APPFONT(X0, Y4) ;
198        Size = MAP_APPFONT( 10, 12 ) ;
199        Fixed = Image
200        {
201            ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png" ; };
202        };
203    };
204    FixedImage IMG_GREEN
205    {
206        Pos = MAP_APPFONT(X2, Y4) ;
207        Size = MAP_APPFONT( 10, 12 ) ;
208        Fixed = Image
209        {
210            ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png" ; };
211        };
212    };
213    FixedImage IMG_BLUE
214    {
215        Pos = MAP_APPFONT(X0, Y5) ;
216        Size = MAP_APPFONT( 10, 12 ) ;
217        Fixed = Image
218        {
219            ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png" ; };
220        };
221    };
222    FixedImage IMG_GAMMA
223    {
224        Pos = MAP_APPFONT(X2, Y5) ;
225        Size = MAP_APPFONT( 10, 12 ) ;
226        Fixed = Image
227        {
228            ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png" ; };
229        };
230    };
231};
232
233// ********************************************************************** EOF
234