2 * This file is part of the LibreOffice project.
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/.
8 * This file incorporates work covered by the following license notice:
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 .
18 #include "GraphicPropertyPanel.hrc"
19 #include <sfx2/sidebar/ResourceDefinitions.hrc>
20 #include <svx/dialogs.hrc>
23 #define X0 SECTIONPAGE_MARGIN_HORIZONTAL
25 #define X2 X0 + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL
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
45 Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT );
46 HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ;
49 FixedText FT_BRIGHTNESS
51 Pos = MAP_APPFONT (X0, Y0);
52 Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
53 Text [ en-US ] = "~Brightness:";
55 MetricField MTR_BRIGHTNESS
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.";
69 CustomUnitText = "%" ;
74 Pos = MAP_APPFONT (X2, Y0);
75 Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
76 Text [ en-US ] = "~Contrast:";
78 MetricField MTR_CONTRAST
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.";
92 CustomUnitText = "%" ;
95 FixedText FT_COLOR_MODE
97 Pos = MAP_APPFONT (X0, Y2);
98 Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
99 Text [ en-US ] = "Color ~mode:";
101 ListBox LB_COLOR_MODE
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.";
111 FixedText FT_TRANSPARENT
113 Pos = MAP_APPFONT (X2, Y2);
114 Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
115 Text [ en-US ] = "~Transparency:";
117 MetricField MTR_TRANSPARENT
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.";
128 StrictFormat = TRUE ;
129 Unit = FUNIT_CUSTOM ;
130 CustomUnitText = "%" ;
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";
145 StrictFormat = TRUE ;
146 Unit = FUNIT_CUSTOM ;
147 CustomUnitText = "%" ;
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";
162 StrictFormat = TRUE ;
163 Unit = FUNIT_CUSTOM ;
164 CustomUnitText = "%" ;
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";
179 StrictFormat = TRUE ;
180 Unit = FUNIT_CUSTOM ;
181 CustomUnitText = "%" ;
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.";
201 Pos = MAP_APPFONT(X0, Y4);
202 Size = MAP_APPFONT( 10, 12 );
205 ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png"; };
210 Pos = MAP_APPFONT(X2, Y4);
211 Size = MAP_APPFONT( 10, 12 );
214 ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png"; };
219 Pos = MAP_APPFONT(X0, Y5);
220 Size = MAP_APPFONT( 10, 12 );
223 ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png"; };
228 Pos = MAP_APPFONT(X2, Y5);
229 Size = MAP_APPFONT( 10, 12 );
232 ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png"; };