12bdfcea1SArmin Le Grand/**************************************************************
22bdfcea1SArmin Le Grand *
32bdfcea1SArmin Le Grand * Licensed to the Apache Software Foundation (ASF) under one
42bdfcea1SArmin Le Grand * or more contributor license agreements.  See the NOTICE file
52bdfcea1SArmin Le Grand * distributed with this work for additional information
62bdfcea1SArmin Le Grand * regarding copyright ownership.  The ASF licenses this file
72bdfcea1SArmin Le Grand * to you under the Apache License, Version 2.0 (the
82bdfcea1SArmin Le Grand * "License"); you may not use this file except in compliance
92bdfcea1SArmin Le Grand * with the License.  You may obtain a copy of the License at
102bdfcea1SArmin Le Grand *
112bdfcea1SArmin Le Grand *   http://www.apache.org/licenses/LICENSE-2.0
122bdfcea1SArmin Le Grand *
132bdfcea1SArmin Le Grand * Unless required by applicable law or agreed to in writing,
142bdfcea1SArmin Le Grand * software distributed under the License is distributed on an
152bdfcea1SArmin Le Grand * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
162bdfcea1SArmin Le Grand * KIND, either express or implied.  See the License for the
172bdfcea1SArmin Le Grand * specific language governing permissions and limitations
182bdfcea1SArmin Le Grand * under the License.
192bdfcea1SArmin Le Grand *
202bdfcea1SArmin Le Grand *************************************************************/
212bdfcea1SArmin Le Grand
2202c50d82SAndre Fischer#include "GraphicPropertyPanel.hrc"
232bdfcea1SArmin Le Grand#include <sfx2/sidebar/propertypanel.hrc>
242bdfcea1SArmin Le Grand#include <svx/dialogs.hrc>
252bdfcea1SArmin Le Grand#include "helpid.hrc"
262bdfcea1SArmin Le Grand
27*87ab04d0SAndre Fischer#define X0		SECTIONPAGE_MARGIN_HORIZONTAL
28*87ab04d0SAndre Fischer#define X1		X0 + 10
29*87ab04d0SAndre Fischer#define X2		X0 + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL
30*87ab04d0SAndre Fischer#define X3		X2 + 10
31*87ab04d0SAndre Fischer
32*87ab04d0SAndre Fischer#define Y0		SECTIONPAGE_MARGIN_VERTICAL_TOP
33*87ab04d0SAndre Fischer#define Y1		Y0 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
34*87ab04d0SAndre Fischer#define Y2		Y1 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
35*87ab04d0SAndre Fischer#define Y3		Y2 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
36*87ab04d0SAndre Fischer#define Y4		Y3 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
37*87ab04d0SAndre Fischer#define Y5		Y4 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
38*87ab04d0SAndre Fischer
39*87ab04d0SAndre Fischer#define PAGE_HEIGHT	 Y5 + MBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT
40*87ab04d0SAndre Fischer
41*87ab04d0SAndre Fischer
42*87ab04d0SAndre Fischer
432bdfcea1SArmin Le GrandControl RID_SIDEBAR_GRAPHIC_PANEL
442bdfcea1SArmin Le Grand{
452bdfcea1SArmin Le Grand	OutputSize = TRUE;
462bdfcea1SArmin Le Grand	DialogControl = TRUE;
472bdfcea1SArmin Le Grand	Border = FALSE;
482bdfcea1SArmin Le Grand
492bdfcea1SArmin Le Grand	Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT );
502bdfcea1SArmin Le Grand	HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ;
512bdfcea1SArmin Le Grand	Text = "Graphic";
522bdfcea1SArmin Le Grand
532bdfcea1SArmin Le Grand	FixedText FT_BRIGHTNESS
542bdfcea1SArmin Le Grand	{
55*87ab04d0SAndre Fischer		Pos = MAP_APPFONT (X0, Y0);
562bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
572bdfcea1SArmin Le Grand		Text [ en-US ] = "~Brightness:";
582bdfcea1SArmin Le Grand	};
592bdfcea1SArmin Le Grand	MetricField MTR_BRIGHTNESS
602bdfcea1SArmin Le Grand	{
612bdfcea1SArmin Le Grand		Border = TRUE ;
62*87ab04d0SAndre Fischer		Pos = MAP_APPFONT (X0, Y1);
632bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
642bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT;
652bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Specify the luminance of the graphic.";
662bdfcea1SArmin Le Grand		TabStop = TRUE ;
672bdfcea1SArmin Le Grand		Repeat = TRUE ;
682bdfcea1SArmin Le Grand		Spin = TRUE ;
692bdfcea1SArmin Le Grand		Maximum = 100 ;
702bdfcea1SArmin Le Grand		Minimum = -100 ;
712bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
722bdfcea1SArmin Le Grand		Unit = FUNIT_CUSTOM ;
732bdfcea1SArmin Le Grand        CustomUnitText = "%" ;
742bdfcea1SArmin Le Grand		SpinSize = 1 ;
752bdfcea1SArmin Le Grand	};
762bdfcea1SArmin Le Grand	FixedText FT_CONTRAST
772bdfcea1SArmin Le Grand	{
78*87ab04d0SAndre Fischer		Pos = MAP_APPFONT (X2, Y0);
792bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
802bdfcea1SArmin Le Grand		Text [ en-US ] = "~Contrast:";
812bdfcea1SArmin Le Grand	};
822bdfcea1SArmin Le Grand	MetricField MTR_CONTRAST
832bdfcea1SArmin Le Grand	{
842bdfcea1SArmin Le Grand		Border = TRUE ;
85*87ab04d0SAndre Fischer		Pos = MAP_APPFONT (X2, Y1);
862bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
872bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST;
882bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic.";
892bdfcea1SArmin Le Grand		TabStop = TRUE ;
902bdfcea1SArmin Le Grand		Repeat = TRUE ;
912bdfcea1SArmin Le Grand		Spin = TRUE ;
922bdfcea1SArmin Le Grand		Maximum = 100 ;
932bdfcea1SArmin Le Grand		Minimum = -100 ;
942bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
952bdfcea1SArmin Le Grand		Unit = FUNIT_CUSTOM ;
962bdfcea1SArmin Le Grand        CustomUnitText = "%" ;
972bdfcea1SArmin Le Grand		SpinSize = 1 ;
982bdfcea1SArmin Le Grand	};
992bdfcea1SArmin Le Grand	FixedText FT_COLOR_MODE
1002bdfcea1SArmin Le Grand	{
101*87ab04d0SAndre Fischer		Pos = MAP_APPFONT (X0, Y2);
1022bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
1032bdfcea1SArmin Le Grand		Text [ en-US ] = "Color ~mode:";
1042bdfcea1SArmin Le Grand	};
1052bdfcea1SArmin Le Grand	ListBox LB_COLOR_MODE
1062bdfcea1SArmin Le Grand	{
1072bdfcea1SArmin Le Grand		Border = TRUE ;
108*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X0 , Y3) ;
1092bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH , 100 ) ;
1102bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE;
1112bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Select the color mode of the graphic.";
1122bdfcea1SArmin Le Grand		TabStop = TRUE ;
1132bdfcea1SArmin Le Grand		DropDown = TRUE ;
1142bdfcea1SArmin Le Grand	};
1152bdfcea1SArmin Le Grand	FixedText FT_TRANSPARENT
1162bdfcea1SArmin Le Grand	{
117*87ab04d0SAndre Fischer		Pos = MAP_APPFONT (X2, Y2);
1182bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
1192bdfcea1SArmin Le Grand		Text [ en-US ] = "~Transparency:";
1202bdfcea1SArmin Le Grand	};
1212bdfcea1SArmin Le Grand	MetricField MTR_TRANSPARENT
1222bdfcea1SArmin Le Grand	{
1232bdfcea1SArmin Le Grand		Border = TRUE ;
124*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X2, Y3) ;
1252bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ;
1262bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP;
1272bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.";
1282bdfcea1SArmin Le Grand		TabStop = TRUE ;
1292bdfcea1SArmin Le Grand		Repeat = TRUE ;
1302bdfcea1SArmin Le Grand		Spin = TRUE ;
1312bdfcea1SArmin Le Grand		Maximum = 100 ;
1322bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
1332bdfcea1SArmin Le Grand		Unit = FUNIT_CUSTOM ;
1342bdfcea1SArmin Le Grand        CustomUnitText = "%" ;
1352bdfcea1SArmin Le Grand		SpinSize = 1 ;
1362bdfcea1SArmin Le Grand	};
1372bdfcea1SArmin Le Grand	MetricField MF_RED
1382bdfcea1SArmin Le Grand	{
1392bdfcea1SArmin Le Grand		Border = TRUE ;
140*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X1, Y4) ;
1412bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
1422bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED;
1432bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Red";
1442bdfcea1SArmin Le Grand		TabStop = TRUE ;
1452bdfcea1SArmin Le Grand		Repeat = TRUE ;
1462bdfcea1SArmin Le Grand		Spin = TRUE ;
1472bdfcea1SArmin Le Grand		Maximum = 100 ;
1482bdfcea1SArmin Le Grand		Minimum = -100 ;
1492bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
1502bdfcea1SArmin Le Grand		Unit = FUNIT_CUSTOM ;
1512bdfcea1SArmin Le Grand        CustomUnitText = "%" ;
1522bdfcea1SArmin Le Grand		SpinSize = 1 ;
1532bdfcea1SArmin Le Grand	};
1542bdfcea1SArmin Le Grand	MetricField MF_GREEN
1552bdfcea1SArmin Le Grand	{
1562bdfcea1SArmin Le Grand		Border = TRUE ;
157*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X3, Y4) ;
1582bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1592bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN;
1602bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Green";
1612bdfcea1SArmin Le Grand		TabStop = TRUE ;
1622bdfcea1SArmin Le Grand		Repeat = TRUE ;
1632bdfcea1SArmin Le Grand		Spin = TRUE ;
1642bdfcea1SArmin Le Grand		Maximum = 100 ;
1652bdfcea1SArmin Le Grand		Minimum = -100 ;
1662bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
1672bdfcea1SArmin Le Grand		Unit = FUNIT_CUSTOM ;
1682bdfcea1SArmin Le Grand        CustomUnitText = "%" ;
1692bdfcea1SArmin Le Grand		SpinSize = 1 ;
1702bdfcea1SArmin Le Grand	};
1712bdfcea1SArmin Le Grand	MetricField MF_BLUE
1722bdfcea1SArmin Le Grand	{
1732bdfcea1SArmin Le Grand		Border = TRUE ;
174*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X1, Y5) ;
1752bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1762bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE;
1772bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Blue";
1782bdfcea1SArmin Le Grand		TabStop = TRUE ;
1792bdfcea1SArmin Le Grand		Repeat = TRUE ;
1802bdfcea1SArmin Le Grand		Spin = TRUE ;
1812bdfcea1SArmin Le Grand		Maximum = 100 ;
1822bdfcea1SArmin Le Grand		Minimum = -100 ;
1832bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
1842bdfcea1SArmin Le Grand		Unit = FUNIT_CUSTOM ;
1852bdfcea1SArmin Le Grand        CustomUnitText = "%" ;
1862bdfcea1SArmin Le Grand		SpinSize = 1 ;
1872bdfcea1SArmin Le Grand	};
1882bdfcea1SArmin Le Grand	MetricField MF_GAMMA
1892bdfcea1SArmin Le Grand	{
1902bdfcea1SArmin Le Grand		Border = TRUE ;
191*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X3, Y5) ;
1922bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1932bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA;
1942bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values.";
1952bdfcea1SArmin Le Grand		TabStop = TRUE;
1962bdfcea1SArmin Le Grand		Repeat = TRUE;
1972bdfcea1SArmin Le Grand		Spin = TRUE;
1982bdfcea1SArmin Le Grand		Minimum = 10;
1992bdfcea1SArmin Le Grand		Maximum = 1000;
2002bdfcea1SArmin Le Grand		DecimalDigits = 2;
2012bdfcea1SArmin Le Grand		SpinSize = 10;
2022bdfcea1SArmin Le Grand	};
2032bdfcea1SArmin Le Grand	FixedImage IMG_RED
2042bdfcea1SArmin Le Grand    {
205*87ab04d0SAndre Fischer        Pos = MAP_APPFONT(X0, Y4);
2062bdfcea1SArmin Le Grand        Size = MAP_APPFONT( 10, 12 );
2072bdfcea1SArmin Le Grand        Fixed = Image
2082bdfcea1SArmin Le Grand        {
2092bdfcea1SArmin Le Grand            ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png"; };
2102bdfcea1SArmin Le Grand		};
2112bdfcea1SArmin Le Grand    };
2122bdfcea1SArmin Le Grand    FixedImage IMG_GREEN
2132bdfcea1SArmin Le Grand    {
214*87ab04d0SAndre Fischer        Pos = MAP_APPFONT(X2, Y4);
2152bdfcea1SArmin Le Grand        Size = MAP_APPFONT( 10, 12 );
2162bdfcea1SArmin Le Grand        Fixed = Image
2172bdfcea1SArmin Le Grand        {
2182bdfcea1SArmin Le Grand            ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png"; };
2192bdfcea1SArmin Le Grand		};
2202bdfcea1SArmin Le Grand    };
2212bdfcea1SArmin Le Grand	FixedImage IMG_BLUE
2222bdfcea1SArmin Le Grand    {
223*87ab04d0SAndre Fischer        Pos = MAP_APPFONT(X0, Y5);
2242bdfcea1SArmin Le Grand        Size = MAP_APPFONT( 10, 12 );
2252bdfcea1SArmin Le Grand        Fixed = Image
2262bdfcea1SArmin Le Grand        {
2272bdfcea1SArmin Le Grand            ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png"; };
2282bdfcea1SArmin Le Grand		};
2292bdfcea1SArmin Le Grand    };
2302bdfcea1SArmin Le Grand	FixedImage IMG_GAMMA
2312bdfcea1SArmin Le Grand    {
232*87ab04d0SAndre Fischer        Pos = MAP_APPFONT(X2, Y5);
2332bdfcea1SArmin Le Grand        Size = MAP_APPFONT( 10, 12 );
2342bdfcea1SArmin Le Grand        Fixed = Image
2352bdfcea1SArmin Le Grand        {
2362bdfcea1SArmin Le Grand            ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png"; };
2372bdfcea1SArmin Le Grand		};
2382bdfcea1SArmin Le Grand    };
2392bdfcea1SArmin Le Grand};
2402bdfcea1SArmin Le Grand
2412bdfcea1SArmin Le Grand// eof
242