1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: tp_3D_SceneIllumination.src,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #include "tp_3D_SceneIllumination.hrc"
32 #include "dlg_View3D.hrc"
33 #include "SchSlotIds.hxx"
35 #define WIDTH_HEAD 108
39 #define BUTTON_DISTANCE 14
46 #define POS_X_1 (POS_X_0+WIDTH_LB+4)
47 #define POS_X_2 (POS_X_1+WIDTH_IB+6)
49 #define WIDTH_PREVIEW (VIEW3D_PAGE_WIDTH-POS_X_2-6)
51 #define POS_Y_LIGHTSOURCE_HEAD 3
52 #define POS_Y_LIGHTSOURCE_BUTTONS (POS_Y_LIGHTSOURCE_HEAD+12)
53 #define POS_Y_LIGHTSOURCE_BUTTONS_2 (POS_Y_LIGHTSOURCE_BUTTONS+HEIGHT_IB+2)
54 #define POS_Y_LIGHTSOURCE (POS_Y_LIGHTSOURCE_BUTTONS_2+16)
56 #define POS_Y_AMBIENT_HEAD (POS_Y_LIGHTSOURCE+18)
57 #define POS_Y_AMBIENT (POS_Y_AMBIENT_HEAD+12)
59 #define POS_Y_PREVIEW POS_Y_LIGHTSOURCE_BUTTONS
61 #define HEIGHT_PREVIEW POS_Y_AMBIENT+HEIGHT_LB-POS_Y_PREVIEW
63 TabPage TP_3D_SCENEILLUMINATION
68 Size = MAP_APPFONT ( VIEW3D_PAGE_WIDTH , VIEW3D_PAGE_HEIGHT ) ;
70 FixedText FT_LIGHTSOURCE
72 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_HEAD ) ;
73 Size = MAP_APPFONT ( WIDTH_HEAD , HEIGHT_FT ) ;
74 Text [ en-US ] = "~Light source" ;
76 ImageButton BTN_LIGHT_1
78 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_BUTTONS ) ;
79 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
81 ImageButton BTN_LIGHT_2
83 Pos = MAP_APPFONT ( POS_X_0+BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
84 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
86 ImageButton BTN_LIGHT_3
88 Pos = MAP_APPFONT ( POS_X_0+2*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
89 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
91 ImageButton BTN_LIGHT_4
93 Pos = MAP_APPFONT ( POS_X_0+3*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS ) ;
94 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
96 ImageButton BTN_LIGHT_5
98 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
99 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
101 ImageButton BTN_LIGHT_6
103 Pos = MAP_APPFONT ( POS_X_0+1*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
104 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
106 ImageButton BTN_LIGHT_7
108 Pos = MAP_APPFONT ( POS_X_0+2*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
109 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
111 ImageButton BTN_LIGHT_8
113 Pos = MAP_APPFONT ( POS_X_0+3*BUTTON_DISTANCE , POS_Y_LIGHTSOURCE_BUTTONS_2 ) ;
114 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
116 ListBox LB_LIGHTSOURCE
119 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_LIGHTSOURCE ) ;
120 Size = MAP_APPFONT ( WIDTH_LB , HEIGHT_LB ) ;
124 ImageButton BTN_LIGHTSOURCE_COLOR
126 Pos = MAP_APPFONT ( POS_X_1 , POS_Y_LIGHTSOURCE ) ;
127 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
134 FixedText FT_AMBIENTLIGHT
136 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_AMBIENT_HEAD ) ;
137 Size = MAP_APPFONT ( WIDTH_HEAD , HEIGHT_FT ) ;
138 Text [ en-US ] = "~Ambient light" ;
140 ListBox LB_AMBIENTLIGHT
143 Pos = MAP_APPFONT ( POS_X_0 , POS_Y_AMBIENT ) ;
144 Size = MAP_APPFONT ( WIDTH_LB , HEIGHT_LB ) ;
148 ImageButton BTN_AMBIENT_COLOR
150 Pos = MAP_APPFONT ( POS_X_1 , POS_Y_AMBIENT ) ;
151 Size = MAP_APPFONT ( WIDTH_IB , HEIGHT_IB ) ;
157 Control CTL_LIGHT_PREVIEW
160 Pos = MAP_APPFONT ( POS_X_2 , POS_Y_PREVIEW ) ;
161 Size = MAP_APPFONT ( WIDTH_PREVIEW , HEIGHT_PREVIEW ) ;