1*2f531595SAndrew Rist/**************************************************************
2cdf0e10cSrcweir *
3*2f531595SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one
4*2f531595SAndrew Rist * or more contributor license agreements.  See the NOTICE file
5*2f531595SAndrew Rist * distributed with this work for additional information
6*2f531595SAndrew Rist * regarding copyright ownership.  The ASF licenses this file
7*2f531595SAndrew Rist * to you under the Apache License, Version 2.0 (the
8*2f531595SAndrew Rist * "License"); you may not use this file except in compliance
9*2f531595SAndrew Rist * with the License.  You may obtain a copy of the License at
10*2f531595SAndrew Rist *
11*2f531595SAndrew Rist *   http://www.apache.org/licenses/LICENSE-2.0
12*2f531595SAndrew Rist *
13*2f531595SAndrew Rist * Unless required by applicable law or agreed to in writing,
14*2f531595SAndrew Rist * software distributed under the License is distributed on an
15*2f531595SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*2f531595SAndrew Rist * KIND, either express or implied.  See the License for the
17*2f531595SAndrew Rist * specific language governing permissions and limitations
18*2f531595SAndrew Rist * under the License.
19*2f531595SAndrew Rist *
20*2f531595SAndrew Rist *************************************************************/
21*2f531595SAndrew Rist
22*2f531595SAndrew Rist
23cdf0e10cSrcweir
24cdf0e10cSrcweir#include "tp_3D_SceneIllumination.hrc"
25cdf0e10cSrcweir#include "dlg_View3D.hrc"
26cdf0e10cSrcweir#include "SchSlotIds.hxx"
27cdf0e10cSrcweir
28cdf0e10cSrcweir#define WIDTH_HEAD 108
29cdf0e10cSrcweir#define WIDTH_FT 41
30cdf0e10cSrcweir#define WIDTH_LB 57
31cdf0e10cSrcweir#define WIDTH_IB 12
32cdf0e10cSrcweir#define BUTTON_DISTANCE 14
33cdf0e10cSrcweir
34cdf0e10cSrcweir#define HEIGHT_IB 12
35cdf0e10cSrcweir#define HEIGHT_FT 10
36cdf0e10cSrcweir#define HEIGHT_LB 12
37cdf0e10cSrcweir
38cdf0e10cSrcweir#define POS_X_0 6
39cdf0e10cSrcweir#define POS_X_1 (POS_X_0+WIDTH_LB+4)
40cdf0e10cSrcweir#define POS_X_2 (POS_X_1+WIDTH_IB+6)
41cdf0e10cSrcweir
42cdf0e10cSrcweir#define WIDTH_PREVIEW (VIEW3D_PAGE_WIDTH-POS_X_2-6)
43cdf0e10cSrcweir
44cdf0e10cSrcweir#define POS_Y_LIGHTSOURCE_HEAD 3
45cdf0e10cSrcweir#define POS_Y_LIGHTSOURCE_BUTTONS (POS_Y_LIGHTSOURCE_HEAD+12)
46cdf0e10cSrcweir#define POS_Y_LIGHTSOURCE_BUTTONS_2 (POS_Y_LIGHTSOURCE_BUTTONS+HEIGHT_IB+2)
47cdf0e10cSrcweir#define POS_Y_LIGHTSOURCE (POS_Y_LIGHTSOURCE_BUTTONS_2+16)
48cdf0e10cSrcweir
49cdf0e10cSrcweir#define POS_Y_AMBIENT_HEAD (POS_Y_LIGHTSOURCE+18)
50cdf0e10cSrcweir#define POS_Y_AMBIENT      (POS_Y_AMBIENT_HEAD+12)
51cdf0e10cSrcweir
52cdf0e10cSrcweir#define POS_Y_PREVIEW POS_Y_LIGHTSOURCE_BUTTONS
53cdf0e10cSrcweir
54cdf0e10cSrcweir#define HEIGHT_PREVIEW POS_Y_AMBIENT+HEIGHT_LB-POS_Y_PREVIEW
55cdf0e10cSrcweir
56cdf0e10cSrcweirTabPage TP_3D_SCENEILLUMINATION
57cdf0e10cSrcweir{
58cdf0e10cSrcweir    HelpID = "chart2:TabPage:TP_3D_SCENEILLUMINATION";
59cdf0e10cSrcweir	OutputSize = TRUE ;
60cdf0e10cSrcweir	SVLook = TRUE ;
61cdf0e10cSrcweir	Hide = TRUE ;
62cdf0e10cSrcweir	Size = MAP_APPFONT ( VIEW3D_PAGE_WIDTH , VIEW3D_PAGE_HEIGHT ) ;
63cdf0e10cSrcweir
64cdf0e10cSrcweir    FixedText FT_LIGHTSOURCE
65cdf0e10cSrcweir	{
66cdf0e10cSrcweir	    Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_HEAD ) ;
67cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_HEAD , HEIGHT_FT ) ;
68cdf0e10cSrcweir		Text [ en-US ] = "~Light source" ;
69cdf0e10cSrcweir	};
70cdf0e10cSrcweir	ImageButton BTN_LIGHT_1
71cdf0e10cSrcweir	{
72cdf0e10cSrcweir	    HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_1";
73cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_BUTTONS ) ;
74cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
75cdf0e10cSrcweir    };
76cdf0e10cSrcweir    ImageButton BTN_LIGHT_2
77cdf0e10cSrcweir	{
78cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_2";
79cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
80cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
81cdf0e10cSrcweir    };
82cdf0e10cSrcweir    ImageButton BTN_LIGHT_3
83cdf0e10cSrcweir	{
84cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_3";
85cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+2*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
86cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
87cdf0e10cSrcweir    };
88cdf0e10cSrcweir    ImageButton BTN_LIGHT_4
89cdf0e10cSrcweir	{
90cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_4";
91cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+3*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
92cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
93cdf0e10cSrcweir    };
94cdf0e10cSrcweir    ImageButton BTN_LIGHT_5
95cdf0e10cSrcweir	{
96cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_5";
97cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
98cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
99cdf0e10cSrcweir    };
100cdf0e10cSrcweir    ImageButton BTN_LIGHT_6
101cdf0e10cSrcweir	{
102cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_6";
103cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+1*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
104cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
105cdf0e10cSrcweir    };
106cdf0e10cSrcweir    ImageButton BTN_LIGHT_7
107cdf0e10cSrcweir	{
108cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_7";
109cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+2*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
110cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
111cdf0e10cSrcweir    };
112cdf0e10cSrcweir    ImageButton BTN_LIGHT_8
113cdf0e10cSrcweir	{
114cdf0e10cSrcweir        HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHT_8";
115cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0+3*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
116cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
117cdf0e10cSrcweir    };
118cdf0e10cSrcweir	ListBox LB_LIGHTSOURCE
119cdf0e10cSrcweir	{
120cdf0e10cSrcweir	    HelpID = "chart2:ListBox:TP_3D_SCENEILLUMINATION:LB_LIGHTSOURCE";
121cdf0e10cSrcweir		Border = TRUE ;
122cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE ) ;
123cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_LB , HEIGHT_LB ) ;
124cdf0e10cSrcweir		TabStop = TRUE ;
125cdf0e10cSrcweir		DropDown = TRUE ;
126cdf0e10cSrcweir	};
127cdf0e10cSrcweir	ImageButton BTN_LIGHTSOURCE_COLOR
128cdf0e10cSrcweir	{
129cdf0e10cSrcweir	    HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_LIGHTSOURCE_COLOR";
130cdf0e10cSrcweir	    Pos = MAP_APPFONT ( POS_X_1 , POS_Y_LIGHTSOURCE ) ;
131cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
132cdf0e10cSrcweir		TabStop = TRUE ;
133cdf0e10cSrcweir	};
134cdf0e10cSrcweir
135cdf0e10cSrcweir
136cdf0e10cSrcweir
137cdf0e10cSrcweir
138cdf0e10cSrcweir    FixedText FT_AMBIENTLIGHT
139cdf0e10cSrcweir	{
140cdf0e10cSrcweir	    Pos = MAP_APPFONT ( POS_X_0 , POS_Y_AMBIENT_HEAD ) ;
141cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_HEAD , HEIGHT_FT ) ;
142cdf0e10cSrcweir		Text [ en-US ] = "~Ambient light" ;
143cdf0e10cSrcweir	};
144cdf0e10cSrcweir	ListBox LB_AMBIENTLIGHT
145cdf0e10cSrcweir	{
146cdf0e10cSrcweir	    HelpID = "chart2:ListBox:TP_3D_SCENEILLUMINATION:LB_AMBIENTLIGHT";
147cdf0e10cSrcweir		Border = TRUE ;
148cdf0e10cSrcweir		Pos = MAP_APPFONT ( POS_X_0 , POS_Y_AMBIENT ) ;
149cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_LB , HEIGHT_LB ) ;
150cdf0e10cSrcweir		TabStop = TRUE ;
151cdf0e10cSrcweir		DropDown = TRUE ;
152cdf0e10cSrcweir	};
153cdf0e10cSrcweir	ImageButton BTN_AMBIENT_COLOR
154cdf0e10cSrcweir	{
155cdf0e10cSrcweir	    HelpID = "chart2:ImageButton:TP_3D_SCENEILLUMINATION:BTN_AMBIENT_COLOR";
156cdf0e10cSrcweir	    Pos = MAP_APPFONT ( POS_X_1 , POS_Y_AMBIENT ) ;
157cdf0e10cSrcweir		Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
158cdf0e10cSrcweir		TabStop = TRUE ;
159cdf0e10cSrcweir	};
160cdf0e10cSrcweir
161cdf0e10cSrcweir
162cdf0e10cSrcweir
163cdf0e10cSrcweir	Control CTL_LIGHT_PREVIEW
164cdf0e10cSrcweir	{
165cdf0e10cSrcweir        Border = TRUE ;
166cdf0e10cSrcweir        Pos = MAP_APPFONT ( POS_X_2 , POS_Y_PREVIEW ) ;
167cdf0e10cSrcweir        Size = MAP_APPFONT ( WIDTH_PREVIEW , HEIGHT_PREVIEW ) ;
168cdf0e10cSrcweir		TabStop = TRUE ;
169cdf0e10cSrcweir	};
170cdf0e10cSrcweir};
171cdf0e10cSrcweir
172cdf0e10cSrcweirString STR_LIGHT_PREVIEW
173cdf0e10cSrcweir{
174cdf0e10cSrcweir	Text [ en-US ] = "Light Preview" ;
175cdf0e10cSrcweir};
176cdf0e10cSrcweir
177