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