1*cdf0e10cSrcweir/*************************************************************************
2*cdf0e10cSrcweir *
3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4*cdf0e10cSrcweir *
5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates.
6*cdf0e10cSrcweir *
7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite
8*cdf0e10cSrcweir *
9*cdf0e10cSrcweir * This file is part of OpenOffice.org.
10*cdf0e10cSrcweir *
11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify
12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3
13*cdf0e10cSrcweir * only, as published by the Free Software Foundation.
14*cdf0e10cSrcweir *
15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful,
16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of
17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details
19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code).
20*cdf0e10cSrcweir *
21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License
22*cdf0e10cSrcweir * version 3 along with OpenOffice.org.  If not, see
23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html>
24*cdf0e10cSrcweir * for a copy of the LGPLv3 License.
25*cdf0e10cSrcweir *
26*cdf0e10cSrcweir ************************************************************************/
27*cdf0e10cSrcweir
28*cdf0e10cSrcweir#include "tp_3D_SceneIllumination.hrc"
29*cdf0e10cSrcweir#include "dlg_View3D.hrc"
30*cdf0e10cSrcweir#include "SchSlotIds.hxx"
31*cdf0e10cSrcweir
32*cdf0e10cSrcweir#define WIDTH_HEAD 108
33*cdf0e10cSrcweir#define WIDTH_FT 41
34*cdf0e10cSrcweir#define WIDTH_LB 57
35*cdf0e10cSrcweir#define WIDTH_IB 12
36*cdf0e10cSrcweir#define BUTTON_DISTANCE 14
37*cdf0e10cSrcweir
38*cdf0e10cSrcweir#define HEIGHT_IB 12
39*cdf0e10cSrcweir#define HEIGHT_FT 10
40*cdf0e10cSrcweir#define HEIGHT_LB 12
41*cdf0e10cSrcweir
42*cdf0e10cSrcweir#define POS_X_0 6
43*cdf0e10cSrcweir#define POS_X_1 (POS_X_0+WIDTH_LB+4)
44*cdf0e10cSrcweir#define POS_X_2 (POS_X_1+WIDTH_IB+6)
45*cdf0e10cSrcweir
46*cdf0e10cSrcweir#define WIDTH_PREVIEW (VIEW3D_PAGE_WIDTH-POS_X_2-6)
47*cdf0e10cSrcweir
48*cdf0e10cSrcweir#define POS_Y_LIGHTSOURCE_HEAD 3
49*cdf0e10cSrcweir#define POS_Y_LIGHTSOURCE_BUTTONS (POS_Y_LIGHTSOURCE_HEAD+12)
50*cdf0e10cSrcweir#define POS_Y_LIGHTSOURCE_BUTTONS_2 (POS_Y_LIGHTSOURCE_BUTTONS+HEIGHT_IB+2)
51*cdf0e10cSrcweir#define POS_Y_LIGHTSOURCE (POS_Y_LIGHTSOURCE_BUTTONS_2+16)
52*cdf0e10cSrcweir
53*cdf0e10cSrcweir#define POS_Y_AMBIENT_HEAD (POS_Y_LIGHTSOURCE+18)
54*cdf0e10cSrcweir#define POS_Y_AMBIENT      (POS_Y_AMBIENT_HEAD+12)
55*cdf0e10cSrcweir
56*cdf0e10cSrcweir#define POS_Y_PREVIEW POS_Y_LIGHTSOURCE_BUTTONS
57*cdf0e10cSrcweir
58*cdf0e10cSrcweir#define HEIGHT_PREVIEW POS_Y_AMBIENT+HEIGHT_LB-POS_Y_PREVIEW
59*cdf0e10cSrcweir
60*cdf0e10cSrcweirTabPage TP_3D_SCENEILLUMINATION
61*cdf0e10cSrcweir{
62*cdf0e10cSrcweir    HelpID = "chart2:TabPage:TP_3D_SCENEILLUMINATION";
63*cdf0e10cSrcweir	OutputSize = TRUE ;
64*cdf0e10cSrcweir	SVLook = TRUE ;
65*cdf0e10cSrcweir	Hide = TRUE ;
66*cdf0e10cSrcweir	Size = MAP_APPFONT ( VIEW3D_PAGE_WIDTH , VIEW3D_PAGE_HEIGHT ) ;
67*cdf0e10cSrcweir
68*cdf0e10cSrcweir    FixedText FT_LIGHTSOURCE
69*cdf0e10cSrcweir	{
70*cdf0e10cSrcweir	    Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_HEAD ) ;
71*cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_HEAD , HEIGHT_FT ) ;
72*cdf0e10cSrcweir		Text [ en-US ] = "~Light source" ;
73*cdf0e10cSrcweir	};
74*cdf0e10cSrcweir	ImageButton BTN_LIGHT_1
75*cdf0e10cSrcweir	{
76*cdf0e10cSrcweir	    HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_1";
77*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_BUTTONS ) ;
78*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
79*cdf0e10cSrcweir    };
80*cdf0e10cSrcweir    ImageButton BTN_LIGHT_2
81*cdf0e10cSrcweir	{
82*cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_2";
83*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
84*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
85*cdf0e10cSrcweir    };
86*cdf0e10cSrcweir    ImageButton BTN_LIGHT_3
87*cdf0e10cSrcweir	{
88*cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_3";
89*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+2*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
90*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
91*cdf0e10cSrcweir    };
92*cdf0e10cSrcweir    ImageButton BTN_LIGHT_4
93*cdf0e10cSrcweir	{
94*cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_4";
95*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+3*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
96*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
97*cdf0e10cSrcweir    };
98*cdf0e10cSrcweir    ImageButton BTN_LIGHT_5
99*cdf0e10cSrcweir	{
100*cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_5";
101*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
102*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
103*cdf0e10cSrcweir    };
104*cdf0e10cSrcweir    ImageButton BTN_LIGHT_6
105*cdf0e10cSrcweir	{
106*cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_6";
107*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+1*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
108*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
109*cdf0e10cSrcweir    };
110*cdf0e10cSrcweir    ImageButton BTN_LIGHT_7
111*cdf0e10cSrcweir	{
112*cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_7";
113*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+2*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
114*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
115*cdf0e10cSrcweir    };
116*cdf0e10cSrcweir    ImageButton BTN_LIGHT_8
117*cdf0e10cSrcweir	{
118*cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_8";
119*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+3*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
120*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
121*cdf0e10cSrcweir    };
122*cdf0e10cSrcweir	ListBox LB_LIGHTSOURCE
123*cdf0e10cSrcweir	{
124*cdf0e10cSrcweir	    HelpID = "chart2:ListBox:TP_3D_SCENEILLUMINATION:LB_LIGHTSOURCE";
125*cdf0e10cSrcweir		Border = TRUE ;
126*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE ) ;
127*cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_LB , HEIGHT_LB ) ;
128*cdf0e10cSrcweir		TabStop = TRUE ;
129*cdf0e10cSrcweir		DropDown = TRUE ;
130*cdf0e10cSrcweir	};
131*cdf0e10cSrcweir	ImageButton BTN_LIGHTSOURCE_COLOR
132*cdf0e10cSrcweir	{
133*cdf0e10cSrcweir	    HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHTSOURCE_COLOR";
134*cdf0e10cSrcweir	    Pos = MAP_APPFONT ( POS_X_1 , POS_Y_LIGHTSOURCE ) ;
135*cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
136*cdf0e10cSrcweir		TabStop = TRUE ;
137*cdf0e10cSrcweir	};
138*cdf0e10cSrcweir
139*cdf0e10cSrcweir
140*cdf0e10cSrcweir
141*cdf0e10cSrcweir
142*cdf0e10cSrcweir    FixedText FT_AMBIENTLIGHT
143*cdf0e10cSrcweir	{
144*cdf0e10cSrcweir	    Pos = MAP_APPFONT ( POS_X_0 , POS_Y_AMBIENT_HEAD ) ;
145*cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_HEAD , HEIGHT_FT ) ;
146*cdf0e10cSrcweir		Text [ en-US ] = "~Ambient light" ;
147*cdf0e10cSrcweir	};
148*cdf0e10cSrcweir	ListBox LB_AMBIENTLIGHT
149*cdf0e10cSrcweir	{
150*cdf0e10cSrcweir	    HelpID = "chart2:ListBox:TP_3D_SCENEILLUMINATION:LB_AMBIENTLIGHT";
151*cdf0e10cSrcweir		Border = TRUE ;
152*cdf0e10cSrcweir		Pos = MAP_APPFONT ( POS_X_0 , POS_Y_AMBIENT ) ;
153*cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_LB , HEIGHT_LB ) ;
154*cdf0e10cSrcweir		TabStop = TRUE ;
155*cdf0e10cSrcweir		DropDown = TRUE ;
156*cdf0e10cSrcweir	};
157*cdf0e10cSrcweir	ImageButton BTN_AMBIENT_COLOR
158*cdf0e10cSrcweir	{
159*cdf0e10cSrcweir	    HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_AMBIENT_COLOR";
160*cdf0e10cSrcweir	    Pos = MAP_APPFONT ( POS_X_1 , POS_Y_AMBIENT ) ;
161*cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
162*cdf0e10cSrcweir		TabStop = TRUE ;
163*cdf0e10cSrcweir	};
164*cdf0e10cSrcweir
165*cdf0e10cSrcweir
166*cdf0e10cSrcweir
167*cdf0e10cSrcweir	Control CTL_LIGHT_PREVIEW
168*cdf0e10cSrcweir	{
169*cdf0e10cSrcweir        Border = TRUE ;
170*cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_2 , POS_Y_PREVIEW ) ;
171*cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_PREVIEW , HEIGHT_PREVIEW ) ;
172*cdf0e10cSrcweir		TabStop = TRUE ;
173*cdf0e10cSrcweir	};
174*cdf0e10cSrcweir};
175*cdf0e10cSrcweir
176*cdf0e10cSrcweirString STR_LIGHT_PREVIEW
177*cdf0e10cSrcweir{
178*cdf0e10cSrcweir	Text [ en-US ] = "Light Preview" ;
179*cdf0e10cSrcweir};
180*cdf0e10cSrcweir
181