1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23
24#include "tp_3D_SceneGeometry.hrc"
25#include "dlg_View3D.hrc"
26#include "SchSlotIds.hxx"
27#include "HelpIds.hrc"
28
29#ifndef _SVT_CONTROLDIMS_HRC_
30#include <svtools/controldims.hrc>
31#endif
32
33#define WIDTH_FL 108
34#define WIDTH_MF 57
35#define WIDTH_FT 50
36
37#define HEIGHT_FL 8
38#define HEIGHT_MF 12
39#define HEIGHT_FT 10
40
41#define POS_X_0 6
42#define POS_X_1 6
43#define POS_X_2 POS_X_1+WIDTH_FT+4
44
45#define POS_Y_0 (8)
46#define POS_Y_1 (POS_Y_0+RSC_CD_FIXEDTEXT_HEIGHT+10)
47#define POS_Y_2 (POS_Y_1+RSC_CD_FIXEDTEXT_HEIGHT+8)
48#define POS_Y_3 (POS_Y_2+RSC_CD_FIXEDTEXT_HEIGHT+8)
49#define POS_Y_4 (POS_Y_3+RSC_CD_FIXEDTEXT_HEIGHT+12)
50
51#define CUSTOMUNITTEXT_DEGREE \
52Border = TRUE ; \
53TabStop = TRUE ; \
54Repeat = TRUE ; \
55Spin = TRUE ; \
56Minimum = -180 ; \
57Maximum = 180 ; \
58StrictFormat = TRUE ; \
59DecimalDigits = 0 ; \
60First = -180 ; \
61Last = 180 ; \
62SpinSize = 1 ; \
63Unit = FUNIT_CUSTOM ; \
64CustomUnitText [ en-US ] = " degrees" ;
65
66TabPage TP_3D_SCENEGEOMETRY
67{
68	HelpID = HID_3D_VIEW ;
69	OutputSize = TRUE ;
70	SVLook = TRUE ;
71	Hide = TRUE ;
72	Size = MAP_APPFONT ( VIEW3D_PAGE_WIDTH , VIEW3D_PAGE_HEIGHT ) ;
73
74    CheckBox CBX_RIGHT_ANGLED_AXES
75    {
76        HelpID = "chart2:CheckBox:TP_3D_SCENEGEOMETRY:CBX_RIGHT_ANGLED_AXES";
77        Pos = MAP_APPFONT ( POS_X_1 , POS_Y_0  ) ;
78        Size = MAP_APPFONT ( (WIDTH_FT+WIDTH_MF) , HEIGHT_FT ) ;
79        TabStop = TRUE ;
80        Text [ en-US ] = "~Right-angled axes" ;
81    };
82	FixedText FT_X_ROTATION
83	{
84		Pos = MAP_APPFONT ( POS_X_1 , POS_Y_1  ) ;
85		Size = MAP_APPFONT ( WIDTH_FT , HEIGHT_FT ) ;
86		Text [ en-US ] = "~X rotation" ;
87	};
88	FixedText FT_Y_ROTATION
89	{
90		Pos = MAP_APPFONT ( POS_X_1 , POS_Y_2  ) ;
91		Size = MAP_APPFONT ( WIDTH_FT , HEIGHT_FT ) ;
92		Text [ en-US ] = "~Y rotation" ;
93	};
94	FixedText FT_Z_ROTATION
95	{
96		Pos = MAP_APPFONT ( POS_X_1 , POS_Y_3  ) ;
97		Size = MAP_APPFONT ( WIDTH_FT , HEIGHT_FT ) ;
98		Text [ en-US ] = "~Z rotation" ;
99	};
100	MetricField MTR_FLD_X_ROTATION
101	{
102	    HelpID = "chart2:MetricField:TP_3D_SCENEGEOMETRY:MTR_FLD_X_ROTATION";
103		Pos = MAP_APPFONT ( POS_X_2 , POS_Y_1-2  ) ;
104		Size = MAP_APPFONT ( WIDTH_MF , HEIGHT_MF ) ;
105		CUSTOMUNITTEXT_DEGREE
106	};
107	MetricField MTR_FLD_Y_ROTATION
108	{
109	    HelpID = "chart2:MetricField:TP_3D_SCENEGEOMETRY:MTR_FLD_Y_ROTATION";
110		Pos = MAP_APPFONT ( POS_X_2 , POS_Y_2-2  ) ;
111		Size = MAP_APPFONT ( WIDTH_MF , HEIGHT_MF ) ;
112		CUSTOMUNITTEXT_DEGREE
113	};
114	MetricField MTR_FLD_Z_ROTATION
115	{
116	    HelpID = "chart2:MetricField:TP_3D_SCENEGEOMETRY:MTR_FLD_Z_ROTATION";
117		Pos = MAP_APPFONT ( POS_X_2 , POS_Y_3-2 ) ;
118		Size = MAP_APPFONT ( WIDTH_MF , HEIGHT_MF ) ;
119        CUSTOMUNITTEXT_DEGREE
120	};
121
122	CheckBox CBX_PERSPECTIVE
123	{
124	    HelpID = "chart2:CheckBox:TP_3D_SCENEGEOMETRY:CBX_PERSPECTIVE";
125	    Pos = MAP_APPFONT ( POS_X_1 , POS_Y_4  ) ;
126		Size = MAP_APPFONT ( WIDTH_FT , HEIGHT_FT ) ;
127		TabStop = TRUE ;
128	    Text [ en-US ] = "~Perspective" ;
129    };
130    MetricField MTR_FLD_PERSPECTIVE
131	{
132        HelpID = "chart2:MetricField:TP_3D_SCENEGEOMETRY:MTR_FLD_PERSPECTIVE";
133		Pos = MAP_APPFONT ( POS_X_2 , POS_Y_4-2  ) ;
134		Size = MAP_APPFONT ( WIDTH_MF , HEIGHT_MF ) ;
135		Border = TRUE ;
136        TabStop = TRUE ;
137        Repeat = TRUE ;
138        Spin = TRUE ;
139        Minimum = 0 ;
140        Maximum = 100 ;
141        StrictFormat = TRUE ;
142        DecimalDigits = 0 ;
143        First = 0 ;
144        Last = 100 ;
145        SpinSize = 5 ;
146        Unit = FUNIT_CUSTOM ;
147		CustomUnitText = "%" ;
148	};
149};
150
151