| /************************************************************** |
| * |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License") ; you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| * |
| *************************************************************/ |
| |
| #include "GraphicPropertyPanel.hrc" |
| #include <sfx2/sidebar/ResourceDefinitions.hrc> |
| #include <svx/dialogs.hrc> |
| #include "helpid.hrc" |
| |
| #define X0 SECTIONPAGE_MARGIN_HORIZONTAL |
| #define X1 X0 + 10 |
| #define X2 X0 + MBOX_WIDTH + CONTROL_SPACING_HORIZONTAL |
| #define X3 X2 + 10 |
| |
| #define Y0 SECTIONPAGE_MARGIN_VERTICAL_TOP |
| #define Y1 Y0 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL |
| #define Y2 Y1 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL |
| #define Y3 Y2 + TEXT_HEIGHT + TEXT_CONTROL_SPACING_VERTICAL |
| #define Y4 Y3 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL |
| #define Y5 Y4 + MBOX_HEIGHT + CONTROL_SPACING_VERTICAL |
| |
| #define PAGE_HEIGHT Y5 + MBOX_HEIGHT + SECTIONPAGE_MARGIN_VERTICAL_BOT |
| |
| Control RID_SIDEBAR_GRAPHIC_PANEL |
| { |
| OutputSize = TRUE ; |
| DialogControl = TRUE ; |
| Border = FALSE ; |
| |
| Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT ) ; |
| HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ; |
| Text = "Graphic" ; |
| |
| FixedText FT_BRIGHTNESS |
| { |
| Pos = MAP_APPFONT (X0, Y0) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; |
| Text [ en-US ] = "~Brightness:" ; |
| }; |
| MetricField MTR_BRIGHTNESS |
| { |
| Border = TRUE ; |
| Pos = MAP_APPFONT (X0, Y1) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; |
| HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT ; |
| QuickHelpText [ en-US ] = "Specify the luminance of the graphic." ; |
| TabStop = TRUE ; |
| Repeat = TRUE ; |
| Spin = TRUE ; |
| Maximum = 100 ; |
| Minimum = -100 ; |
| StrictFormat = TRUE ; |
| Unit = FUNIT_PERCENT ; |
| SpinSize = 1 ; |
| }; |
| FixedText FT_CONTRAST |
| { |
| Pos = MAP_APPFONT (X2, Y0) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; |
| Text [ en-US ] = "~Contrast:" ; |
| }; |
| MetricField MTR_CONTRAST |
| { |
| Border = TRUE ; |
| Pos = MAP_APPFONT (X2, Y1) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ; |
| HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST ; |
| QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic." ; |
| TabStop = TRUE ; |
| Repeat = TRUE ; |
| Spin = TRUE ; |
| Maximum = 100 ; |
| Minimum = -100 ; |
| StrictFormat = TRUE ; |
| Unit = FUNIT_PERCENT ; |
| SpinSize = 1 ; |
| }; |
| FixedText FT_COLOR_MODE |
| { |
| Pos = MAP_APPFONT (X0, Y2) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; |
| Text [ en-US ] = "Color ~mode:" ; |
| }; |
| ListBox LB_COLOR_MODE |
| { |
| Border = TRUE ; |
| Pos = MAP_APPFONT (X0, Y3) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH, 100 ) ; |
| HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE ; |
| QuickHelpText [ en-US ] = "Select the color mode of the graphic." ; |
| TabStop = TRUE ; |
| DropDown = TRUE ; |
| }; |
| FixedText FT_TRANSPARENT |
| { |
| Pos = MAP_APPFONT (X2, Y2) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ; |
| Text [ en-US ] = "~Transparency:" ; |
| }; |
| MetricField MTR_TRANSPARENT |
| { |
| Border = TRUE ; |
| Pos = MAP_APPFONT (X2, Y3) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ; |
| HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP ; |
| QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent." ; |
| TabStop = TRUE ; |
| Repeat = TRUE ; |
| Spin = TRUE ; |
| Maximum = 100 ; |
| StrictFormat = TRUE ; |
| Unit = FUNIT_PERCENT ; |
| SpinSize = 1 ; |
| }; |
| MetricField MF_RED |
| { |
| Border = TRUE ; |
| Pos = MAP_APPFONT (X1, Y4) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ; |
| HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED ; |
| QuickHelpText [ en-US ] = "Red" ; |
| TabStop = TRUE ; |
| Repeat = TRUE ; |
| Spin = TRUE ; |
| Maximum = 100 ; |
| Minimum = -100 ; |
| StrictFormat = TRUE ; |
| Unit = FUNIT_PERCENT ; |
| SpinSize = 1 ; |
| }; |
| MetricField MF_GREEN |
| { |
| Border = TRUE ; |
| Pos = MAP_APPFONT (X3, Y4) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ; |
| HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN ; |
| QuickHelpText [ en-US ] = "Green" ; |
| TabStop = TRUE ; |
| Repeat = TRUE ; |
| Spin = TRUE ; |
| Maximum = 100 ; |
| Minimum = -100 ; |
| StrictFormat = TRUE ; |
| Unit = FUNIT_PERCENT ; |
| SpinSize = 1 ; |
| }; |
| MetricField MF_BLUE |
| { |
| Border = TRUE ; |
| Pos = MAP_APPFONT (X1, Y5) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ; |
| HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE ; |
| QuickHelpText [ en-US ] = "Blue" ; |
| TabStop = TRUE ; |
| Repeat = TRUE ; |
| Spin = TRUE ; |
| Maximum = 100 ; |
| Minimum = -100 ; |
| StrictFormat = TRUE ; |
| Unit = FUNIT_PERCENT ; |
| SpinSize = 1 ; |
| }; |
| MetricField MF_GAMMA |
| { |
| Border = TRUE ; |
| Pos = MAP_APPFONT (X3, Y5) ; |
| Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ; |
| HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA ; |
| QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values." ; |
| TabStop = TRUE ; |
| Repeat = TRUE ; |
| Spin = TRUE ; |
| Minimum = 10 ; |
| Maximum = 1000 ; |
| DecimalDigits = 2 ; |
| SpinSize = 10 ; |
| }; |
| FixedImage IMG_RED |
| { |
| Pos = MAP_APPFONT(X0, Y4) ; |
| Size = MAP_APPFONT( 10, 12 ) ; |
| Fixed = Image |
| { |
| ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png" ; }; |
| }; |
| }; |
| FixedImage IMG_GREEN |
| { |
| Pos = MAP_APPFONT(X2, Y4) ; |
| Size = MAP_APPFONT( 10, 12 ) ; |
| Fixed = Image |
| { |
| ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png" ; }; |
| }; |
| }; |
| FixedImage IMG_BLUE |
| { |
| Pos = MAP_APPFONT(X0, Y5) ; |
| Size = MAP_APPFONT( 10, 12 ) ; |
| Fixed = Image |
| { |
| ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png" ; }; |
| }; |
| }; |
| FixedImage IMG_GAMMA |
| { |
| Pos = MAP_APPFONT(X2, Y5) ; |
| Size = MAP_APPFONT( 10, 12 ) ; |
| Fixed = Image |
| { |
| ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png" ; }; |
| }; |
| }; |
| }; |
| |
| // ********************************************************************** EOF |