xref: /trunk/main/svx/source/sidebar/graphic/GraphicPropertyPanel.src (revision 38b885b74d08288e2136f990676957bd24aa340d)
18dcb2a10SAndre Fischer/**************************************************************
28dcb2a10SAndre Fischer *
38dcb2a10SAndre Fischer * Licensed to the Apache Software Foundation (ASF) under one
48dcb2a10SAndre Fischer * or more contributor license agreements.  See the NOTICE file
58dcb2a10SAndre Fischer * distributed with this work for additional information
68dcb2a10SAndre Fischer * regarding copyright ownership.  The ASF licenses this file
78dcb2a10SAndre Fischer * to you under the Apache License, Version 2.0 (the
88dcb2a10SAndre Fischer * "License") ; you may not use this file except in compliance
98dcb2a10SAndre Fischer * with the License.  You may obtain a copy of the License at
108dcb2a10SAndre Fischer *
118dcb2a10SAndre Fischer *   http://www.apache.org/licenses/LICENSE-2.0
128dcb2a10SAndre Fischer *
138dcb2a10SAndre Fischer * Unless required by applicable law or agreed to in writing,
148dcb2a10SAndre Fischer * software distributed under the License is distributed on an
158dcb2a10SAndre Fischer * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
168dcb2a10SAndre Fischer * KIND, either express or implied.  See the License for the
178dcb2a10SAndre Fischer * specific language governing permissions and limitations
188dcb2a10SAndre Fischer * under the License.
198dcb2a10SAndre Fischer *
208dcb2a10SAndre Fischer *************************************************************/
218dcb2a10SAndre Fischer
228dcb2a10SAndre Fischer#include "GraphicPropertyPanel.hrc"
23d29c2fc2SAndre Fischer#include <sfx2/sidebar/ResourceDefinitions.hrc>
248dcb2a10SAndre Fischer#include <svx/dialogs.hrc>
258dcb2a10SAndre Fischer#include "helpid.hrc"
268dcb2a10SAndre Fischer
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
418dcb2a10SAndre FischerControl RID_SIDEBAR_GRAPHIC_PANEL
428dcb2a10SAndre Fischer{
438dcb2a10SAndre Fischer    OutputSize = TRUE ;
448dcb2a10SAndre Fischer    DialogControl = TRUE ;
458dcb2a10SAndre Fischer    Border = FALSE ;
468dcb2a10SAndre Fischer
478dcb2a10SAndre Fischer    Size = MAP_APPFONT ( PROPERTYPAGE_WIDTH, PAGE_HEIGHT ) ;
488dcb2a10SAndre Fischer    HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ;
498dcb2a10SAndre Fischer    Text = "Graphic" ;
508dcb2a10SAndre Fischer
518dcb2a10SAndre Fischer    FixedText FT_BRIGHTNESS
528dcb2a10SAndre Fischer    {
5387ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X0, Y0 ) ;
548dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
558dcb2a10SAndre Fischer        Text [ en-US ] = "~Brightness:" ;
568dcb2a10SAndre Fischer    };
578dcb2a10SAndre Fischer    MetricField MTR_BRIGHTNESS
588dcb2a10SAndre Fischer    {
598dcb2a10SAndre Fischer        Border = TRUE ;
6087ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X0, Y1 ) ;
618dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
628dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT ;
638dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Specify the luminance of the graphic." ;
648dcb2a10SAndre Fischer        TabStop = TRUE ;
658dcb2a10SAndre Fischer        Repeat = TRUE ;
668dcb2a10SAndre Fischer        Spin = TRUE ;
678dcb2a10SAndre Fischer        Maximum = 100 ;
688dcb2a10SAndre Fischer        Minimum = -100 ;
698dcb2a10SAndre Fischer        StrictFormat = TRUE ;
707ea7a1ccSTsutomu Uchino        Unit = FUNIT_PERCENT ;
718dcb2a10SAndre Fischer        SpinSize = 1 ;
728dcb2a10SAndre Fischer    };
738dcb2a10SAndre Fischer    FixedText FT_CONTRAST
748dcb2a10SAndre Fischer    {
7587ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X2, Y0 ) ;
768dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
778dcb2a10SAndre Fischer        Text [ en-US ] = "~Contrast:" ;
788dcb2a10SAndre Fischer    };
798dcb2a10SAndre Fischer    MetricField MTR_CONTRAST
808dcb2a10SAndre Fischer    {
818dcb2a10SAndre Fischer        Border = TRUE ;
8287ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X2, Y1 ) ;
838dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, MBOX_HEIGHT ) ;
848dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST ;
858dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic." ;
868dcb2a10SAndre Fischer        TabStop = TRUE ;
878dcb2a10SAndre Fischer        Repeat = TRUE ;
888dcb2a10SAndre Fischer        Spin = TRUE ;
898dcb2a10SAndre Fischer        Maximum = 100 ;
908dcb2a10SAndre Fischer        Minimum = -100 ;
918dcb2a10SAndre Fischer        StrictFormat = TRUE ;
927ea7a1ccSTsutomu Uchino        Unit = FUNIT_PERCENT ;
938dcb2a10SAndre Fischer        SpinSize = 1 ;
948dcb2a10SAndre Fischer    };
958dcb2a10SAndre Fischer    FixedText FT_COLOR_MODE
968dcb2a10SAndre Fischer    {
9787ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X0, Y2 ) ;
988dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
998dcb2a10SAndre Fischer        Text [ en-US ] = "Color ~mode:" ;
1008dcb2a10SAndre Fischer    };
1018dcb2a10SAndre Fischer    ListBox LB_COLOR_MODE
1028dcb2a10SAndre Fischer    {
1038dcb2a10SAndre Fischer        Border = TRUE ;
10487ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X0, Y3 ) ;
1058dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, 100 ) ;
1068dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE ;
1078dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Select the color mode of the graphic." ;
1088dcb2a10SAndre Fischer        TabStop = TRUE ;
1098dcb2a10SAndre Fischer        DropDown = TRUE ;
1108dcb2a10SAndre Fischer    };
1118dcb2a10SAndre Fischer    FixedText FT_TRANSPARENT
1128dcb2a10SAndre Fischer    {
11387ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X2, Y2 ) ;
1148dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
1158dcb2a10SAndre Fischer        Text [ en-US ] = "~Transparency:" ;
1168dcb2a10SAndre Fischer    };
1178dcb2a10SAndre Fischer    MetricField MTR_TRANSPARENT
1188dcb2a10SAndre Fischer    {
1198dcb2a10SAndre Fischer        Border = TRUE ;
12087ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X2, Y3 ) ;
1218dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ;
1228dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP ;
1238dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent." ;
1248dcb2a10SAndre Fischer        TabStop = TRUE ;
1258dcb2a10SAndre Fischer        Repeat = TRUE ;
1268dcb2a10SAndre Fischer        Spin = TRUE ;
1278dcb2a10SAndre Fischer        Maximum = 100 ;
1288dcb2a10SAndre Fischer        StrictFormat = TRUE ;
1297ea7a1ccSTsutomu Uchino        Unit = FUNIT_PERCENT ;
1308dcb2a10SAndre Fischer        SpinSize = 1 ;
1318dcb2a10SAndre Fischer    };
1328dcb2a10SAndre Fischer    MetricField MF_RED
1338dcb2a10SAndre Fischer    {
1348dcb2a10SAndre Fischer        Border = TRUE ;
13587ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X1, Y4 ) ;
1368dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
1378dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED ;
1388dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Red" ;
1398dcb2a10SAndre Fischer        TabStop = TRUE ;
1408dcb2a10SAndre Fischer        Repeat = TRUE ;
1418dcb2a10SAndre Fischer        Spin = TRUE ;
1428dcb2a10SAndre Fischer        Maximum = 100 ;
1438dcb2a10SAndre Fischer        Minimum = -100 ;
1448dcb2a10SAndre Fischer        StrictFormat = TRUE ;
1457ea7a1ccSTsutomu Uchino        Unit = FUNIT_PERCENT ;
1468dcb2a10SAndre Fischer        SpinSize = 1 ;
1478dcb2a10SAndre Fischer    };
1488dcb2a10SAndre Fischer    MetricField MF_GREEN
1498dcb2a10SAndre Fischer    {
1508dcb2a10SAndre Fischer        Border = TRUE ;
15187ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X3, Y4 ) ;
1528dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1538dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN ;
1548dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Green" ;
1558dcb2a10SAndre Fischer        TabStop = TRUE ;
1568dcb2a10SAndre Fischer        Repeat = TRUE ;
1578dcb2a10SAndre Fischer        Spin = TRUE ;
1588dcb2a10SAndre Fischer        Maximum = 100 ;
1598dcb2a10SAndre Fischer        Minimum = -100 ;
1608dcb2a10SAndre Fischer        StrictFormat = TRUE ;
1617ea7a1ccSTsutomu Uchino        Unit = FUNIT_PERCENT ;
1628dcb2a10SAndre Fischer        SpinSize = 1 ;
1638dcb2a10SAndre Fischer    };
1648dcb2a10SAndre Fischer    MetricField MF_BLUE
1658dcb2a10SAndre Fischer    {
1668dcb2a10SAndre Fischer        Border = TRUE ;
16787ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X1, Y5 ) ;
1688dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1698dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE ;
1708dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Blue" ;
1718dcb2a10SAndre Fischer        TabStop = TRUE ;
1728dcb2a10SAndre Fischer        Repeat = TRUE ;
1738dcb2a10SAndre Fischer        Spin = TRUE ;
1748dcb2a10SAndre Fischer        Maximum = 100 ;
1758dcb2a10SAndre Fischer        Minimum = -100 ;
1768dcb2a10SAndre Fischer        StrictFormat = TRUE ;
1777ea7a1ccSTsutomu Uchino        Unit = FUNIT_PERCENT ;
1788dcb2a10SAndre Fischer        SpinSize = 1 ;
1798dcb2a10SAndre Fischer    };
1808dcb2a10SAndre Fischer    MetricField MF_GAMMA
1818dcb2a10SAndre Fischer    {
1828dcb2a10SAndre Fischer        Border = TRUE ;
18387ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X3, Y5 ) ;
1848dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1858dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA ;
1868dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values." ;
1878dcb2a10SAndre Fischer        TabStop = TRUE ;
1888dcb2a10SAndre Fischer        Repeat = TRUE ;
1898dcb2a10SAndre Fischer        Spin = TRUE ;
1908dcb2a10SAndre Fischer        Minimum = 10 ;
1918dcb2a10SAndre Fischer        Maximum = 1000 ;
1928dcb2a10SAndre Fischer        DecimalDigits = 2 ;
1938dcb2a10SAndre Fischer        SpinSize = 10 ;
1948dcb2a10SAndre Fischer    };
1958dcb2a10SAndre Fischer    FixedImage IMG_RED
1968dcb2a10SAndre Fischer    {
19787ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X0, Y4 ) ;
1988dcb2a10SAndre Fischer        Size = MAP_APPFONT ( 10, 12 ) ;
1998dcb2a10SAndre Fischer        Fixed = Image
2008dcb2a10SAndre Fischer        {
201*38b885b7SMatthias Seidel            ImageBitmap = Bitmap { File = "sidebar/AdjustColorRed_16x16.png" ; };
2028dcb2a10SAndre Fischer        };
2038dcb2a10SAndre Fischer    };
2048dcb2a10SAndre Fischer    FixedImage IMG_GREEN
2058dcb2a10SAndre Fischer    {
20687ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X2, Y4 ) ;
2078dcb2a10SAndre Fischer        Size = MAP_APPFONT ( 10, 12 ) ;
2088dcb2a10SAndre Fischer        Fixed = Image
2098dcb2a10SAndre Fischer        {
210*38b885b7SMatthias Seidel            ImageBitmap = Bitmap { File = "sidebar/AdjustColorGreen_16x16.png" ; };
2118dcb2a10SAndre Fischer        };
2128dcb2a10SAndre Fischer    };
2138dcb2a10SAndre Fischer    FixedImage IMG_BLUE
2148dcb2a10SAndre Fischer    {
21587ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X0, Y5 ) ;
2168dcb2a10SAndre Fischer        Size = MAP_APPFONT ( 10, 12 ) ;
2178dcb2a10SAndre Fischer        Fixed = Image
2188dcb2a10SAndre Fischer        {
219*38b885b7SMatthias Seidel            ImageBitmap = Bitmap { File = "sidebar/AdjustColorBlue_16x16.png" ; };
2208dcb2a10SAndre Fischer        };
2218dcb2a10SAndre Fischer    };
2228dcb2a10SAndre Fischer    FixedImage IMG_GAMMA
2238dcb2a10SAndre Fischer    {
22487ab04d0SAndre Fischer        Pos = MAP_APPFONT ( X2, Y5 ) ;
2258dcb2a10SAndre Fischer        Size = MAP_APPFONT ( 10, 12 ) ;
2268dcb2a10SAndre Fischer        Fixed = Image
2278dcb2a10SAndre Fischer        {
228*38b885b7SMatthias Seidel            ImageBitmap = Bitmap { File = "sidebar/AdjustColorGamma_16x16.png" ; };
2298dcb2a10SAndre Fischer        };
2308dcb2a10SAndre Fischer    };
2318dcb2a10SAndre Fischer};
2328dcb2a10SAndre Fischer
23345079588Smseidel// ********************************************************************** EOF
234