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"
23d29c2fc2SAndre Fischer#include <sfx2/sidebar/ResourceDefinitions.hrc>
242bdfcea1SArmin Le Grand#include <svx/dialogs.hrc>
252bdfcea1SArmin Le Grand#include "helpid.hrc"
262bdfcea1SArmin Le Grand
2787ab04d0SAndre Fischer#define X0		SECTIONPAGE_MARGIN_HORIZONTAL
2887ab04d0SAndre Fischer#define X1		X0 + 10
2987ab04d0SAndre Fischer#define X2		X0 + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL
3087ab04d0SAndre Fischer#define X3		X2 + 10
3187ab04d0SAndre Fischer
3287ab04d0SAndre Fischer#define Y0		SECTIONPAGE_MARGIN_VERTICAL_TOP
3387ab04d0SAndre Fischer#define Y1		Y0 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
3487ab04d0SAndre Fischer#define Y2		Y1 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
3587ab04d0SAndre Fischer#define Y3		Y2 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL
3687ab04d0SAndre Fischer#define Y4		Y3 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
3787ab04d0SAndre Fischer#define Y5		Y4 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL
3887ab04d0SAndre Fischer
3987ab04d0SAndre Fischer#define PAGE_HEIGHT	 Y5 + MBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT
4087ab04d0SAndre Fischer
4187ab04d0SAndre Fischer
4287ab04d0SAndre 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	{
5587ab04d0SAndre 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 ;
6287ab04d0SAndre 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 ;
72*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
732bdfcea1SArmin Le Grand		SpinSize = 1 ;
742bdfcea1SArmin Le Grand	};
752bdfcea1SArmin Le Grand	FixedText FT_CONTRAST
762bdfcea1SArmin Le Grand	{
7787ab04d0SAndre Fischer		Pos = MAP_APPFONT (X2, Y0);
782bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
792bdfcea1SArmin Le Grand		Text [ en-US ] = "~Contrast:";
802bdfcea1SArmin Le Grand	};
812bdfcea1SArmin Le Grand	MetricField MTR_CONTRAST
822bdfcea1SArmin Le Grand	{
832bdfcea1SArmin Le Grand		Border = TRUE ;
8487ab04d0SAndre Fischer		Pos = MAP_APPFONT (X2, Y1);
852bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
862bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST;
872bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic.";
882bdfcea1SArmin Le Grand		TabStop = TRUE ;
892bdfcea1SArmin Le Grand		Repeat = TRUE ;
902bdfcea1SArmin Le Grand		Spin = TRUE ;
912bdfcea1SArmin Le Grand		Maximum = 100 ;
922bdfcea1SArmin Le Grand		Minimum = -100 ;
932bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
94*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
952bdfcea1SArmin Le Grand		SpinSize = 1 ;
962bdfcea1SArmin Le Grand	};
972bdfcea1SArmin Le Grand	FixedText FT_COLOR_MODE
982bdfcea1SArmin Le Grand	{
9987ab04d0SAndre Fischer		Pos = MAP_APPFONT (X0, Y2);
1002bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
1012bdfcea1SArmin Le Grand		Text [ en-US ] = "Color ~mode:";
1022bdfcea1SArmin Le Grand	};
1032bdfcea1SArmin Le Grand	ListBox LB_COLOR_MODE
1042bdfcea1SArmin Le Grand	{
1052bdfcea1SArmin Le Grand		Border = TRUE ;
10687ab04d0SAndre Fischer        Pos = MAP_APPFONT (X0 , Y3) ;
1072bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH , 100 ) ;
1082bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE;
1092bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Select the color mode of the graphic.";
1102bdfcea1SArmin Le Grand		TabStop = TRUE ;
1112bdfcea1SArmin Le Grand		DropDown = TRUE ;
1122bdfcea1SArmin Le Grand	};
1132bdfcea1SArmin Le Grand	FixedText FT_TRANSPARENT
1142bdfcea1SArmin Le Grand	{
11587ab04d0SAndre Fischer		Pos = MAP_APPFONT (X2, Y2);
1162bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
1172bdfcea1SArmin Le Grand		Text [ en-US ] = "~Transparency:";
1182bdfcea1SArmin Le Grand	};
1192bdfcea1SArmin Le Grand	MetricField MTR_TRANSPARENT
1202bdfcea1SArmin Le Grand	{
1212bdfcea1SArmin Le Grand		Border = TRUE ;
12287ab04d0SAndre Fischer        Pos = MAP_APPFONT (X2, Y3) ;
1232bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ;
1242bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP;
125*7ea7a1ccSTsutomu Uchino        QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0 % is fully opaque and 100 % is fully transparent.";
1262bdfcea1SArmin Le Grand		TabStop = TRUE ;
1272bdfcea1SArmin Le Grand		Repeat = TRUE ;
1282bdfcea1SArmin Le Grand		Spin = TRUE ;
1292bdfcea1SArmin Le Grand		Maximum = 100 ;
1302bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
131*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
1322bdfcea1SArmin Le Grand		SpinSize = 1 ;
1332bdfcea1SArmin Le Grand	};
1342bdfcea1SArmin Le Grand	MetricField MF_RED
1352bdfcea1SArmin Le Grand	{
1362bdfcea1SArmin Le Grand		Border = TRUE ;
13787ab04d0SAndre Fischer        Pos = MAP_APPFONT (X1, Y4) ;
1382bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
1392bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED;
1402bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Red";
1412bdfcea1SArmin Le Grand		TabStop = TRUE ;
1422bdfcea1SArmin Le Grand		Repeat = TRUE ;
1432bdfcea1SArmin Le Grand		Spin = TRUE ;
1442bdfcea1SArmin Le Grand		Maximum = 100 ;
1452bdfcea1SArmin Le Grand		Minimum = -100 ;
1462bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
147*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
1482bdfcea1SArmin Le Grand		SpinSize = 1 ;
1492bdfcea1SArmin Le Grand	};
1502bdfcea1SArmin Le Grand	MetricField MF_GREEN
1512bdfcea1SArmin Le Grand	{
1522bdfcea1SArmin Le Grand		Border = TRUE ;
15387ab04d0SAndre Fischer        Pos = MAP_APPFONT (X3, Y4) ;
1542bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1552bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN;
1562bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Green";
1572bdfcea1SArmin Le Grand		TabStop = TRUE ;
1582bdfcea1SArmin Le Grand		Repeat = TRUE ;
1592bdfcea1SArmin Le Grand		Spin = TRUE ;
1602bdfcea1SArmin Le Grand		Maximum = 100 ;
1612bdfcea1SArmin Le Grand		Minimum = -100 ;
1622bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
163*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
1642bdfcea1SArmin Le Grand		SpinSize = 1 ;
1652bdfcea1SArmin Le Grand	};
1662bdfcea1SArmin Le Grand	MetricField MF_BLUE
1672bdfcea1SArmin Le Grand	{
1682bdfcea1SArmin Le Grand		Border = TRUE ;
16987ab04d0SAndre Fischer        Pos = MAP_APPFONT (X1, Y5) ;
1702bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1712bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE;
1722bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Blue";
1732bdfcea1SArmin Le Grand		TabStop = TRUE ;
1742bdfcea1SArmin Le Grand		Repeat = TRUE ;
1752bdfcea1SArmin Le Grand		Spin = TRUE ;
1762bdfcea1SArmin Le Grand		Maximum = 100 ;
1772bdfcea1SArmin Le Grand		Minimum = -100 ;
1782bdfcea1SArmin Le Grand		StrictFormat = TRUE ;
179*7ea7a1ccSTsutomu Uchino		Unit = FUNIT_PERCENT ;
1802bdfcea1SArmin Le Grand		SpinSize = 1 ;
1812bdfcea1SArmin Le Grand	};
1822bdfcea1SArmin Le Grand	MetricField MF_GAMMA
1832bdfcea1SArmin Le Grand	{
1842bdfcea1SArmin Le Grand		Border = TRUE ;
18587ab04d0SAndre Fischer        Pos = MAP_APPFONT (X3, Y5) ;
1862bdfcea1SArmin Le Grand        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1872bdfcea1SArmin Le Grand        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA;
1882bdfcea1SArmin Le Grand        QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values.";
1892bdfcea1SArmin Le Grand		TabStop = TRUE;
1902bdfcea1SArmin Le Grand		Repeat = TRUE;
1912bdfcea1SArmin Le Grand		Spin = TRUE;
1922bdfcea1SArmin Le Grand		Minimum = 10;
1932bdfcea1SArmin Le Grand		Maximum = 1000;
1942bdfcea1SArmin Le Grand		DecimalDigits = 2;
1952bdfcea1SArmin Le Grand		SpinSize = 10;
1962bdfcea1SArmin Le Grand	};
1972bdfcea1SArmin Le Grand	FixedImage IMG_RED
1982bdfcea1SArmin Le Grand    {
19987ab04d0SAndre Fischer        Pos = MAP_APPFONT(X0, Y4);
2002bdfcea1SArmin Le Grand        Size = MAP_APPFONT( 10, 12 );
2012bdfcea1SArmin Le Grand        Fixed = Image
2022bdfcea1SArmin Le Grand        {
2032bdfcea1SArmin Le Grand            ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png"; };
2042bdfcea1SArmin Le Grand		};
2052bdfcea1SArmin Le Grand    };
2062bdfcea1SArmin Le Grand    FixedImage IMG_GREEN
2072bdfcea1SArmin Le Grand    {
20887ab04d0SAndre Fischer        Pos = MAP_APPFONT(X2, Y4);
2092bdfcea1SArmin Le Grand        Size = MAP_APPFONT( 10, 12 );
2102bdfcea1SArmin Le Grand        Fixed = Image
2112bdfcea1SArmin Le Grand        {
2122bdfcea1SArmin Le Grand            ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png"; };
2132bdfcea1SArmin Le Grand		};
2142bdfcea1SArmin Le Grand    };
2152bdfcea1SArmin Le Grand	FixedImage IMG_BLUE
2162bdfcea1SArmin Le Grand    {
21787ab04d0SAndre Fischer        Pos = MAP_APPFONT(X0, Y5);
2182bdfcea1SArmin Le Grand        Size = MAP_APPFONT( 10, 12 );
2192bdfcea1SArmin Le Grand        Fixed = Image
2202bdfcea1SArmin Le Grand        {
2212bdfcea1SArmin Le Grand            ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png"; };
2222bdfcea1SArmin Le Grand		};
2232bdfcea1SArmin Le Grand    };
2242bdfcea1SArmin Le Grand	FixedImage IMG_GAMMA
2252bdfcea1SArmin Le Grand    {
22687ab04d0SAndre Fischer        Pos = MAP_APPFONT(X2, Y5);
2272bdfcea1SArmin Le Grand        Size = MAP_APPFONT( 10, 12 );
2282bdfcea1SArmin Le Grand        Fixed = Image
2292bdfcea1SArmin Le Grand        {
2302bdfcea1SArmin Le Grand            ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png"; };
2312bdfcea1SArmin Le Grand		};
2322bdfcea1SArmin Le Grand    };
2332bdfcea1SArmin Le Grand};
2342bdfcea1SArmin Le Grand
2352bdfcea1SArmin Le Grand// eof
236