xref: /trunk/main/svx/source/sidebar/graphic/GraphicPropertyPanel.src (revision 87ab04d0e0186f5c748f3b25494d131827b0658f)
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"
238dcb2a10SAndre Fischer#include <sfx2/sidebar/propertypanel.hrc>
248dcb2a10SAndre Fischer#include <svx/dialogs.hrc>
258dcb2a10SAndre Fischer#include "helpid.hrc"
268dcb2a10SAndre Fischer
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
438dcb2a10SAndre FischerControl RID_SIDEBAR_GRAPHIC_PANEL
448dcb2a10SAndre Fischer{
458dcb2a10SAndre Fischer    OutputSize = TRUE;
468dcb2a10SAndre Fischer    DialogControl = TRUE;
478dcb2a10SAndre Fischer    Border = FALSE;
488dcb2a10SAndre Fischer
498dcb2a10SAndre Fischer    Size = MAP_APPFONT( PROPERTYPAGE_WIDTH, PAGE_HEIGHT );
508dcb2a10SAndre Fischer    HelpID = HID_PROPERTYPANEL_GRAPHIC_SECTION ;
518dcb2a10SAndre Fischer    Text = "Graphic";
528dcb2a10SAndre Fischer
538dcb2a10SAndre Fischer    FixedText FT_BRIGHTNESS
548dcb2a10SAndre Fischer    {
55*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X0, Y0);
568dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
578dcb2a10SAndre Fischer        Text [ en-US ] = "~Brightness:";
588dcb2a10SAndre Fischer    };
598dcb2a10SAndre Fischer    MetricField MTR_BRIGHTNESS
608dcb2a10SAndre Fischer    {
618dcb2a10SAndre Fischer        Border = TRUE ;
62*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X0, Y1);
638dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
648dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BRIGHT;
658dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Specify the luminance of the graphic.";
668dcb2a10SAndre Fischer        TabStop = TRUE ;
678dcb2a10SAndre Fischer        Repeat = TRUE ;
688dcb2a10SAndre Fischer        Spin = TRUE ;
698dcb2a10SAndre Fischer        Maximum = 100 ;
708dcb2a10SAndre Fischer        Minimum = -100 ;
718dcb2a10SAndre Fischer        StrictFormat = TRUE ;
728dcb2a10SAndre Fischer        Unit = FUNIT_CUSTOM ;
738dcb2a10SAndre Fischer        CustomUnitText = "%" ;
748dcb2a10SAndre Fischer        SpinSize = 1 ;
758dcb2a10SAndre Fischer    };
768dcb2a10SAndre Fischer    FixedText FT_CONTRAST
778dcb2a10SAndre Fischer    {
78*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X2, Y0);
798dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
808dcb2a10SAndre Fischer        Text [ en-US ] = "~Contrast:";
818dcb2a10SAndre Fischer    };
828dcb2a10SAndre Fischer    MetricField MTR_CONTRAST
838dcb2a10SAndre Fischer    {
848dcb2a10SAndre Fischer        Border = TRUE ;
85*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X2, Y1);
868dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH , MBOX_HEIGHT ) ;
878dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_CONTRAST;
888dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Specify the degree of difference between the lightest and darkest parts of the graphic.";
898dcb2a10SAndre Fischer        TabStop = TRUE ;
908dcb2a10SAndre Fischer        Repeat = TRUE ;
918dcb2a10SAndre Fischer        Spin = TRUE ;
928dcb2a10SAndre Fischer        Maximum = 100 ;
938dcb2a10SAndre Fischer        Minimum = -100 ;
948dcb2a10SAndre Fischer        StrictFormat = TRUE ;
958dcb2a10SAndre Fischer        Unit = FUNIT_CUSTOM ;
968dcb2a10SAndre Fischer        CustomUnitText = "%" ;
978dcb2a10SAndre Fischer        SpinSize = 1 ;
988dcb2a10SAndre Fischer    };
998dcb2a10SAndre Fischer    FixedText FT_COLOR_MODE
1008dcb2a10SAndre Fischer    {
101*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X0, Y2);
1028dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH, TEXT_HEIGHT ) ;
1038dcb2a10SAndre Fischer        Text [ en-US ] = "Color ~mode:";
1048dcb2a10SAndre Fischer    };
1058dcb2a10SAndre Fischer    ListBox LB_COLOR_MODE
1068dcb2a10SAndre Fischer    {
1078dcb2a10SAndre Fischer        Border = TRUE ;
108*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X0 , Y3) ;
1098dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH , 100 ) ;
1108dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_LB_COLORMODE;
1118dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Select the color mode of the graphic.";
1128dcb2a10SAndre Fischer        TabStop = TRUE ;
1138dcb2a10SAndre Fischer        DropDown = TRUE ;
1148dcb2a10SAndre Fischer    };
1158dcb2a10SAndre Fischer    FixedText FT_TRANSPARENT
1168dcb2a10SAndre Fischer    {
117*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X2, Y2);
1188dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH , TEXT_HEIGHT ) ;
1198dcb2a10SAndre Fischer        Text [ en-US ] = "~Transparency:";
1208dcb2a10SAndre Fischer    };
1218dcb2a10SAndre Fischer    MetricField MTR_TRANSPARENT
1228dcb2a10SAndre Fischer    {
1238dcb2a10SAndre Fischer        Border = TRUE ;
124*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X2, Y3) ;
1258dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH ,MBOX_HEIGHT ) ;
1268dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_TRANSP;
1278dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Specify the percentage of transparency; 0% is fully opaque and 100% is fully transparent.";
1288dcb2a10SAndre Fischer        TabStop = TRUE ;
1298dcb2a10SAndre Fischer        Repeat = TRUE ;
1308dcb2a10SAndre Fischer        Spin = TRUE ;
1318dcb2a10SAndre Fischer        Maximum = 100 ;
1328dcb2a10SAndre Fischer        StrictFormat = TRUE ;
1338dcb2a10SAndre Fischer        Unit = FUNIT_CUSTOM ;
1348dcb2a10SAndre Fischer        CustomUnitText = "%" ;
1358dcb2a10SAndre Fischer        SpinSize = 1 ;
1368dcb2a10SAndre Fischer    };
1378dcb2a10SAndre Fischer    MetricField MF_RED
1388dcb2a10SAndre Fischer    {
1398dcb2a10SAndre Fischer        Border = TRUE ;
140*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X1, Y4) ;
1418dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH - 10,MBOX_HEIGHT ) ;
1428dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_RED;
1438dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Red";
1448dcb2a10SAndre Fischer        TabStop = TRUE ;
1458dcb2a10SAndre Fischer        Repeat = TRUE ;
1468dcb2a10SAndre Fischer        Spin = TRUE ;
1478dcb2a10SAndre Fischer        Maximum = 100 ;
1488dcb2a10SAndre Fischer        Minimum = -100 ;
1498dcb2a10SAndre Fischer        StrictFormat = TRUE ;
1508dcb2a10SAndre Fischer        Unit = FUNIT_CUSTOM ;
1518dcb2a10SAndre Fischer        CustomUnitText = "%" ;
1528dcb2a10SAndre Fischer        SpinSize = 1 ;
1538dcb2a10SAndre Fischer    };
1548dcb2a10SAndre Fischer    MetricField MF_GREEN
1558dcb2a10SAndre Fischer    {
1568dcb2a10SAndre Fischer        Border = TRUE ;
157*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X3, Y4) ;
1588dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1598dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GREEN;
1608dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Green";
1618dcb2a10SAndre Fischer        TabStop = TRUE ;
1628dcb2a10SAndre Fischer        Repeat = TRUE ;
1638dcb2a10SAndre Fischer        Spin = TRUE ;
1648dcb2a10SAndre Fischer        Maximum = 100 ;
1658dcb2a10SAndre Fischer        Minimum = -100 ;
1668dcb2a10SAndre Fischer        StrictFormat = TRUE ;
1678dcb2a10SAndre Fischer        Unit = FUNIT_CUSTOM ;
1688dcb2a10SAndre Fischer        CustomUnitText = "%" ;
1698dcb2a10SAndre Fischer        SpinSize = 1 ;
1708dcb2a10SAndre Fischer    };
1718dcb2a10SAndre Fischer    MetricField MF_BLUE
1728dcb2a10SAndre Fischer    {
1738dcb2a10SAndre Fischer        Border = TRUE ;
174*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X1, Y5) ;
1758dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1768dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_BLUE;
1778dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Blue";
1788dcb2a10SAndre Fischer        TabStop = TRUE ;
1798dcb2a10SAndre Fischer        Repeat = TRUE ;
1808dcb2a10SAndre Fischer        Spin = TRUE ;
1818dcb2a10SAndre Fischer        Maximum = 100 ;
1828dcb2a10SAndre Fischer        Minimum = -100 ;
1838dcb2a10SAndre Fischer        StrictFormat = TRUE ;
1848dcb2a10SAndre Fischer        Unit = FUNIT_CUSTOM ;
1858dcb2a10SAndre Fischer        CustomUnitText = "%" ;
1868dcb2a10SAndre Fischer        SpinSize = 1 ;
1878dcb2a10SAndre Fischer    };
1888dcb2a10SAndre Fischer    MetricField MF_GAMMA
1898dcb2a10SAndre Fischer    {
1908dcb2a10SAndre Fischer        Border = TRUE ;
191*87ab04d0SAndre Fischer        Pos = MAP_APPFONT (X3, Y5) ;
1928dcb2a10SAndre Fischer        Size = MAP_APPFONT ( MBOX_WIDTH - 10 ,MBOX_HEIGHT ) ;
1938dcb2a10SAndre Fischer        HelpID = HID_PROPERTY_PANEL_GRAPHIC_MTR_GAMMA;
1948dcb2a10SAndre Fischer        QuickHelpText [ en-US ] = "Specify the gamma value that affects the brightness of the midtone values.";
1958dcb2a10SAndre Fischer        TabStop = TRUE;
1968dcb2a10SAndre Fischer        Repeat = TRUE;
1978dcb2a10SAndre Fischer        Spin = TRUE;
1988dcb2a10SAndre Fischer        Minimum = 10;
1998dcb2a10SAndre Fischer        Maximum = 1000;
2008dcb2a10SAndre Fischer        DecimalDigits = 2;
2018dcb2a10SAndre Fischer        SpinSize = 10;
2028dcb2a10SAndre Fischer    };
2038dcb2a10SAndre Fischer    FixedImage IMG_RED
2048dcb2a10SAndre Fischer    {
205*87ab04d0SAndre Fischer        Pos = MAP_APPFONT(X0, Y4);
2068dcb2a10SAndre Fischer        Size = MAP_APPFONT( 10, 12 );
2078dcb2a10SAndre Fischer        Fixed = Image
2088dcb2a10SAndre Fischer        {
2098dcb2a10SAndre Fischer            ImageBitmap = Bitmap { File = "symphony/AdjustColorRed_16x16.png"; };
2108dcb2a10SAndre Fischer        };
2118dcb2a10SAndre Fischer    };
2128dcb2a10SAndre Fischer    FixedImage IMG_GREEN
2138dcb2a10SAndre Fischer    {
214*87ab04d0SAndre Fischer        Pos = MAP_APPFONT(X2, Y4);
2158dcb2a10SAndre Fischer        Size = MAP_APPFONT( 10, 12 );
2168dcb2a10SAndre Fischer        Fixed = Image
2178dcb2a10SAndre Fischer        {
2188dcb2a10SAndre Fischer            ImageBitmap = Bitmap { File = "symphony/AdjustColorGreen_16x16.png"; };
2198dcb2a10SAndre Fischer        };
2208dcb2a10SAndre Fischer    };
2218dcb2a10SAndre Fischer    FixedImage IMG_BLUE
2228dcb2a10SAndre Fischer    {
223*87ab04d0SAndre Fischer        Pos = MAP_APPFONT(X0, Y5);
2248dcb2a10SAndre Fischer        Size = MAP_APPFONT( 10, 12 );
2258dcb2a10SAndre Fischer        Fixed = Image
2268dcb2a10SAndre Fischer        {
2278dcb2a10SAndre Fischer            ImageBitmap = Bitmap { File = "symphony/AdjustColorBlue_16x16.png"; };
2288dcb2a10SAndre Fischer        };
2298dcb2a10SAndre Fischer    };
2308dcb2a10SAndre Fischer    FixedImage IMG_GAMMA
2318dcb2a10SAndre Fischer    {
232*87ab04d0SAndre Fischer        Pos = MAP_APPFONT(X2, Y5);
2338dcb2a10SAndre Fischer        Size = MAP_APPFONT( 10, 12 );
2348dcb2a10SAndre Fischer        Fixed = Image
2358dcb2a10SAndre Fischer        {
2368dcb2a10SAndre Fischer            ImageBitmap = Bitmap { File = "symphony/AdjustColorGamma_16x16.png"; };
2378dcb2a10SAndre Fischer        };
2388dcb2a10SAndre Fischer    };
2398dcb2a10SAndre Fischer};
2408dcb2a10SAndre Fischer
2418dcb2a10SAndre Fischer// eof
242