12bdfcea1SArmin Le Grand/************************************************************** 2*25c7bec7Smseidel * 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 8*25c7bec7Smseidel * "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 10*25c7bec7Smseidel * 112bdfcea1SArmin Le Grand * http://www.apache.org/licenses/LICENSE-2.0 12*25c7bec7Smseidel * 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. 19*25c7bec7Smseidel * 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 39*25c7bec7Smseidel#define PAGE_HEIGHT Y5 + MBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT 4087ab04d0SAndre Fischer 412bdfcea1SArmin Le GrandControl RID_SIDEBAR_GRAPHIC_PANEL 422bdfcea1SArmin Le Grand{ 43*25c7bec7Smseidel OutputSize = TRUE ; 44*25c7bec7Smseidel DialogControl = TRUE ; 45*25c7bec7Smseidel Border = FALSE ; 462bdfcea1SArmin Le Grand 47*25c7bec7Smseidel Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT ) ; 482bdfcea1SArmin Le Grand HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ; 49*25c7bec7Smseidel Text = "Graphic" ; 50*25c7bec7Smseidel 512bdfcea1SArmin Le Grand FixedText FT_BRIGHTNESS 522bdfcea1SArmin Le Grand { 53*25c7bec7Smseidel Pos = MAP_APPFONT (X0, Y0) ; 54*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; 55*25c7bec7Smseidel Text [ en-US ] = "~Brightness:" ; 562bdfcea1SArmin Le Grand }; 572bdfcea1SArmin Le Grand MetricField MTR_BRIGHTNESS 582bdfcea1SArmin Le Grand { 592bdfcea1SArmin Le Grand Border = TRUE ; 60*25c7bec7Smseidel Pos = MAP_APPFONT (X0, Y1) ; 61*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; 62*25c7bec7Smseidel HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT ; 63*25c7bec7Smseidel QuickHelpText [ en-US ] = "Specify the luminance of the graphic." ; 642bdfcea1SArmin Le Grand TabStop = TRUE ; 652bdfcea1SArmin Le Grand Repeat = TRUE ; 662bdfcea1SArmin Le Grand Spin = TRUE ; 672bdfcea1SArmin Le Grand Maximum = 100 ; 682bdfcea1SArmin Le Grand Minimum = -100 ; 692bdfcea1SArmin Le Grand StrictFormat = TRUE ; 707ea7a1ccSTsutomu Uchino Unit = FUNIT_PERCENT ; 712bdfcea1SArmin Le Grand SpinSize = 1 ; 722bdfcea1SArmin Le Grand }; 732bdfcea1SArmin Le Grand FixedText FT_CONTRAST 742bdfcea1SArmin Le Grand { 75*25c7bec7Smseidel Pos = MAP_APPFONT (X2, Y0) ; 76*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; 77*25c7bec7Smseidel Text [ en-US ] = "~Contrast:" ; 782bdfcea1SArmin Le Grand }; 792bdfcea1SArmin Le Grand MetricField MTR_CONTRAST 802bdfcea1SArmin Le Grand { 812bdfcea1SArmin Le Grand Border = TRUE ; 82*25c7bec7Smseidel Pos = MAP_APPFONT (X2, Y1) ; 83*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; 84*25c7bec7Smseidel HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST ; 85*25c7bec7Smseidel QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic." ; 862bdfcea1SArmin Le Grand TabStop = TRUE ; 872bdfcea1SArmin Le Grand Repeat = TRUE ; 882bdfcea1SArmin Le Grand Spin = TRUE ; 892bdfcea1SArmin Le Grand Maximum = 100 ; 902bdfcea1SArmin Le Grand Minimum = -100 ; 912bdfcea1SArmin Le Grand StrictFormat = TRUE ; 927ea7a1ccSTsutomu Uchino Unit = FUNIT_PERCENT ; 932bdfcea1SArmin Le Grand SpinSize = 1 ; 942bdfcea1SArmin Le Grand }; 952bdfcea1SArmin Le Grand FixedText FT_COLOR_MODE 962bdfcea1SArmin Le Grand { 97*25c7bec7Smseidel Pos = MAP_APPFONT (X0, Y2) ; 98*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; 99*25c7bec7Smseidel Text [ en-US ] = "Color ~mode:" ; 1002bdfcea1SArmin Le Grand }; 1012bdfcea1SArmin Le Grand ListBox LB_COLOR_MODE 1022bdfcea1SArmin Le Grand { 1032bdfcea1SArmin Le Grand Border = TRUE ; 104*25c7bec7Smseidel Pos = MAP_APPFONT (X0, Y3) ; 105*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH, 100 ) ; 106*25c7bec7Smseidel HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE ; 107*25c7bec7Smseidel QuickHelpText [ en-US ] = "Select the color mode of the graphic." ; 1082bdfcea1SArmin Le Grand TabStop = TRUE ; 1092bdfcea1SArmin Le Grand DropDown = TRUE ; 1102bdfcea1SArmin Le Grand }; 1112bdfcea1SArmin Le Grand FixedText FT_TRANSPARENT 1122bdfcea1SArmin Le Grand { 113*25c7bec7Smseidel Pos = MAP_APPFONT (X2, Y2) ; 114*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; 115*25c7bec7Smseidel Text [ en-US ] = "~Transparency:" ; 1162bdfcea1SArmin Le Grand }; 1172bdfcea1SArmin Le Grand MetricField MTR_TRANSPARENT 1182bdfcea1SArmin Le Grand { 1192bdfcea1SArmin Le Grand Border = TRUE ; 120*25c7bec7Smseidel Pos = MAP_APPFONT (X2, Y3) ; 121*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ; 122*25c7bec7Smseidel HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP ; 123*25c7bec7Smseidel QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent." ; 1242bdfcea1SArmin Le Grand TabStop = TRUE ; 1252bdfcea1SArmin Le Grand Repeat = TRUE ; 1262bdfcea1SArmin Le Grand Spin = TRUE ; 1272bdfcea1SArmin Le Grand Maximum = 100 ; 1282bdfcea1SArmin Le Grand StrictFormat = TRUE ; 1297ea7a1ccSTsutomu Uchino Unit = FUNIT_PERCENT ; 1302bdfcea1SArmin Le Grand SpinSize = 1 ; 131*25c7bec7Smseidel }; 1322bdfcea1SArmin Le Grand MetricField MF_RED 1332bdfcea1SArmin Le Grand { 1342bdfcea1SArmin Le Grand Border = TRUE ; 135*25c7bec7Smseidel Pos = MAP_APPFONT (X1, Y4) ; 136*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ; 137*25c7bec7Smseidel HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED ; 138*25c7bec7Smseidel QuickHelpText [ en-US ] = "Red" ; 1392bdfcea1SArmin Le Grand TabStop = TRUE ; 1402bdfcea1SArmin Le Grand Repeat = TRUE ; 1412bdfcea1SArmin Le Grand Spin = TRUE ; 1422bdfcea1SArmin Le Grand Maximum = 100 ; 1432bdfcea1SArmin Le Grand Minimum = -100 ; 1442bdfcea1SArmin Le Grand StrictFormat = TRUE ; 1457ea7a1ccSTsutomu Uchino Unit = FUNIT_PERCENT ; 1462bdfcea1SArmin Le Grand SpinSize = 1 ; 1472bdfcea1SArmin Le Grand }; 1482bdfcea1SArmin Le Grand MetricField MF_GREEN 1492bdfcea1SArmin Le Grand { 1502bdfcea1SArmin Le Grand Border = TRUE ; 151*25c7bec7Smseidel Pos = MAP_APPFONT (X3, Y4) ; 152*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ; 153*25c7bec7Smseidel HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN ; 154*25c7bec7Smseidel QuickHelpText [ en-US ] = "Green" ; 1552bdfcea1SArmin Le Grand TabStop = TRUE ; 1562bdfcea1SArmin Le Grand Repeat = TRUE ; 1572bdfcea1SArmin Le Grand Spin = TRUE ; 1582bdfcea1SArmin Le Grand Maximum = 100 ; 1592bdfcea1SArmin Le Grand Minimum = -100 ; 1602bdfcea1SArmin Le Grand StrictFormat = TRUE ; 1617ea7a1ccSTsutomu Uchino Unit = FUNIT_PERCENT ; 1622bdfcea1SArmin Le Grand SpinSize = 1 ; 1632bdfcea1SArmin Le Grand }; 1642bdfcea1SArmin Le Grand MetricField MF_BLUE 1652bdfcea1SArmin Le Grand { 1662bdfcea1SArmin Le Grand Border = TRUE ; 167*25c7bec7Smseidel Pos = MAP_APPFONT (X1, Y5) ; 168*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ; 169*25c7bec7Smseidel HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE ; 170*25c7bec7Smseidel QuickHelpText [ en-US ] = "Blue" ; 1712bdfcea1SArmin Le Grand TabStop = TRUE ; 1722bdfcea1SArmin Le Grand Repeat = TRUE ; 1732bdfcea1SArmin Le Grand Spin = TRUE ; 1742bdfcea1SArmin Le Grand Maximum = 100 ; 1752bdfcea1SArmin Le Grand Minimum = -100 ; 1762bdfcea1SArmin Le Grand StrictFormat = TRUE ; 1777ea7a1ccSTsutomu Uchino Unit = FUNIT_PERCENT ; 1782bdfcea1SArmin Le Grand SpinSize = 1 ; 1792bdfcea1SArmin Le Grand }; 1802bdfcea1SArmin Le Grand MetricField MF_GAMMA 1812bdfcea1SArmin Le Grand { 1822bdfcea1SArmin Le Grand Border = TRUE ; 183*25c7bec7Smseidel Pos = MAP_APPFONT (X3, Y5) ; 184*25c7bec7Smseidel Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ; 185*25c7bec7Smseidel HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA ; 186*25c7bec7Smseidel QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values." ; 187*25c7bec7Smseidel TabStop = TRUE ; 188*25c7bec7Smseidel Repeat = TRUE ; 189*25c7bec7Smseidel Spin = TRUE ; 190*25c7bec7Smseidel Minimum = 10 ; 191*25c7bec7Smseidel Maximum = 1000 ; 192*25c7bec7Smseidel DecimalDigits = 2 ; 193*25c7bec7Smseidel SpinSize = 10 ; 1942bdfcea1SArmin Le Grand }; 1952bdfcea1SArmin Le Grand FixedImage IMG_RED 196*25c7bec7Smseidel { 197*25c7bec7Smseidel Pos = MAP_APPFONT(X0, Y4) ; 198*25c7bec7Smseidel Size = MAP_APPFONT( 10, 12 ) ; 199*25c7bec7Smseidel Fixed = Image 200*25c7bec7Smseidel { 201*25c7bec7Smseidel ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png" ; }; 2022bdfcea1SArmin Le Grand }; 203*25c7bec7Smseidel }; 204*25c7bec7Smseidel FixedImage IMG_GREEN 205*25c7bec7Smseidel { 206*25c7bec7Smseidel Pos = MAP_APPFONT(X2, Y4) ; 207*25c7bec7Smseidel Size = MAP_APPFONT( 10, 12 ) ; 208*25c7bec7Smseidel Fixed = Image 209*25c7bec7Smseidel { 210*25c7bec7Smseidel ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png" ; }; 2112bdfcea1SArmin Le Grand }; 212*25c7bec7Smseidel }; 2132bdfcea1SArmin Le Grand FixedImage IMG_BLUE 214*25c7bec7Smseidel { 215*25c7bec7Smseidel Pos = MAP_APPFONT(X0, Y5) ; 216*25c7bec7Smseidel Size = MAP_APPFONT( 10, 12 ) ; 217*25c7bec7Smseidel Fixed = Image 218*25c7bec7Smseidel { 219*25c7bec7Smseidel ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png" ; }; 2202bdfcea1SArmin Le Grand }; 221*25c7bec7Smseidel }; 2222bdfcea1SArmin Le Grand FixedImage IMG_GAMMA 223*25c7bec7Smseidel { 224*25c7bec7Smseidel Pos = MAP_APPFONT(X2, Y5) ; 225*25c7bec7Smseidel Size = MAP_APPFONT( 10, 12 ) ; 226*25c7bec7Smseidel Fixed = Image 227*25c7bec7Smseidel { 228*25c7bec7Smseidel ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png" ; }; 2292bdfcea1SArmin Le Grand }; 230*25c7bec7Smseidel }; 2312bdfcea1SArmin Le Grand}; 2322bdfcea1SArmin Le Grand 233*25c7bec7Smseidel// ********************************************************************** EOF 234