xref: /trunk/main/sc/source/ui/src/subtdlg.src (revision 78190a370f7d7129fed9a7e70ca122eaae71ce1d)
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 "subtdlg.hrc"
25
26TabPage RID_SCPAGE_SUBT_OPTIONS
27{
28    HelpId = HID_SCPAGE_SUBT_OPTIONS ;
29    Pos = MAP_APPFONT ( 0, 0 ) ;
30    Size = MAP_APPFONT ( 260, 185 ) ;
31    Hide = TRUE ;
32    FixedLine FL_GROUP
33    {
34        Pos = MAP_APPFONT ( 6, 3 ) ;
35        Size = MAP_APPFONT ( 248, 8 ) ;
36        Text [ en-US ] = "Groups" ;
37    };
38    CheckBox BTN_PAGEBREAK
39    {
40        HelpID = "sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_PAGEBREAK" ;
41        Pos = MAP_APPFONT ( 12, 14 ) ;
42        Size = MAP_APPFONT ( 239, 10 ) ;
43        Text [ en-US ] = "~Page break between groups" ;
44        TabStop = TRUE ;
45    };
46    CheckBox BTN_CASE
47    {
48        HelpID = "sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_CASE" ;
49        Pos = MAP_APPFONT ( 12, 28 ) ;
50        Size = MAP_APPFONT ( 239, 10 ) ;
51        Text [ en-US ] = "~Case sensitive" ;
52        TabStop = TRUE ;
53    };
54    CheckBox BTN_SORT
55    {
56        HelpID = "sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_SORT" ;
57        Pos = MAP_APPFONT ( 12, 42 ) ;
58        Size = MAP_APPFONT ( 239, 10 ) ;
59        Text [ en-US ] = "Pre-~sort area according to groups" ;
60        TabStop = TRUE ;
61    };
62    CheckBox BTN_FORMATS
63    {
64        HelpID = "sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_FORMATS" ;
65        Pos = MAP_APPFONT ( 12, 101 ) ;
66        Size = MAP_APPFONT ( 239, 10 ) ;
67        Text [ en-US ] = "I~nclude formats" ;
68        TabStop = TRUE ;
69    };
70    CheckBox BTN_USERDEF
71    {
72        HelpID = "sc:CheckBox:RID_SCPAGE_SUBT_OPTIONS:BTN_USERDEF" ;
73        Pos = MAP_APPFONT ( 12, 115 ) ;
74        Size = MAP_APPFONT ( 239, 10 ) ;
75        Text [ en-US ] = "C~ustom sort order" ;
76        TabStop = TRUE ;
77    };
78    ListBox LB_USERDEF
79    {
80        HelpID = "sc:ListBox:RID_SCPAGE_SUBT_OPTIONS:LB_USERDEF" ;
81        Border = TRUE ;
82        Pos = MAP_APPFONT ( 20, 127 ) ;
83        Size = MAP_APPFONT ( 231, 90 ) ;
84        TabStop = TRUE ;
85        DropDown = TRUE ;
86    };
87    RadioButton BTN_ASCENDING
88    {
89        HelpID = "sc:RadioButton:RID_SCPAGE_SUBT_OPTIONS:BTN_ASCENDING" ;
90        Pos = MAP_APPFONT ( 12, 69 ) ;
91        Size = MAP_APPFONT ( 239, 10 ) ;
92        Text [ en-US ] = "~Ascending" ;
93        TabStop = TRUE ;
94    };
95    RadioButton BTN_DESCENDING
96    {
97        HelpID = "sc:RadioButton:RID_SCPAGE_SUBT_OPTIONS:BTN_DESCENDING" ;
98        Pos = MAP_APPFONT ( 12, 83 ) ;
99        Size = MAP_APPFONT ( 239, 10 ) ;
100        Text [ en-US ] = "D~escending" ;
101        TabStop = TRUE ;
102    };
103    FixedLine FL_SORT
104    {
105        Pos = MAP_APPFONT ( 6, 58 ) ;
106        Size = MAP_APPFONT ( 248, 8 ) ;
107        Text [ en-US ] = "Sort" ;
108    };
109};
110
111
112TabPage RID_SUBTBASE
113{
114    //  Die Elemente haben hart vergebene Hilfe-IDs, weil automatisch generierte
115    //  aus den Ableitungen nicht in der HID-Liste auftauchen wuerden
116    HelpId = HID_SCPAGE_SUBT_GROUP ;
117    Pos = MAP_APPFONT ( 0, 0 ) ;
118    Size = MAP_APPFONT ( 260, 185 ) ;
119    Hide = TRUE ;
120    FixedText FT_GROUP
121    {
122        Pos = MAP_APPFONT ( 6, 3 ) ;
123        Size = MAP_APPFONT ( 121, 8 ) ;
124        Text [ en-US ] = "~Group by" ;
125    };
126    ListBox LB_GROUP
127    {
128        HelpId = HID_SC_SUBT_GROUP ;
129        Border = TRUE ;
130        Pos = MAP_APPFONT ( 6, 14 ) ;
131        Size = MAP_APPFONT ( 121, 90 ) ;
132        TabStop = TRUE ;
133        DropDown = TRUE ;
134    };
135    FixedText FT_COLUMNS
136    {
137        Pos = MAP_APPFONT ( 6, 32 ) ;
138        Size = MAP_APPFONT ( 121, 8 ) ;
139        Text [ en-US ] = "~Calculate subtotals for" ;
140    };
141    Control WND_COLUMNS
142    {
143        HelpId = HID_SC_SUBT_COLS ;
144        Border = TRUE ;
145        Pos = MAP_APPFONT ( 6, 43 ) ;
146        Size = MAP_APPFONT ( 121, 136 ) ;
147        TabStop = TRUE ;
148    };
149    FixedText FT_FUNCTIONS
150    {
151        Pos = MAP_APPFONT ( 133, 32 ) ;
152        Size = MAP_APPFONT ( 121, 8 ) ;
153        Text [ en-US ] = "Use ~function" ;
154    };
155    ListBox LB_FUNCTIONS
156    {
157        HelpId = HID_SC_SUBT_FUNC ;
158        Border = TRUE ;
159        Pos = MAP_APPFONT ( 133, 43 ) ;
160        Size = MAP_APPFONT ( 121, 136 ) ;
161        TabStop = TRUE ;
162        StringList [ en-US ] =
163        {
164            < "Sum" ; Default ;                     > ;
165            < "Count" ; Default ;                   > ;
166            < "Average" ; Default ;                 > ;
167            < "Max" ; Default ;                     > ;
168            < "Min" ; Default ;                     > ;
169            < "Product" ; Default ;                 > ;
170            < "Count (numbers only)" ; Default ;    > ;
171            < "StDev (Sample)" ; Default ;          > ;
172            < "StDevP (Population)" ; Default ;     > ;
173            < "Var (Sample)" ; Default ;            > ;
174            < "VarP (Population)" ; Default ;       > ;
175        };
176    };
177};
178
179// "Control" braucht immer eigene HelpId - ansonsten aus RID_SUBTBASE kopiert
180
181TabPage RID_SCPAGE_SUBT_GROUP1 < RID_SUBTBASE
182{
183    HelpId = HID_SCPAGE_SUBT_GROUP1 ;
184};
185TabPage RID_SCPAGE_SUBT_GROUP2 < RID_SUBTBASE
186{
187    HelpId = HID_SCPAGE_SUBT_GROUP2 ;
188};
189TabPage RID_SCPAGE_SUBT_GROUP3 < RID_SUBTBASE
190{
191    HelpId = HID_SCPAGE_SUBT_GROUP3 ;
192};
193
194TabDialog RID_SCDLG_SUBTOTALS
195{
196    OutputSize = TRUE ;
197    SVLook = TRUE ;
198    Size = MAP_APPFONT ( 294, 176 ) ;
199    Text [ en-US ] = "Subtotals" ;
200    Moveable = TRUE ;
201    Closeable = FALSE ;
202    TabControl 1
203    {
204        OutputSize = TRUE ;
205        SVLook = TRUE ;
206        Pos = MAP_APPFONT ( 3, 3 ) ;
207        Size = MAP_APPFONT ( 240, 150 ) ;
208        PageList =
209        {
210            PageItem
211            {
212                Identifier = PAGE_GROUP1 ;
213                Text [ en-US ] = "1st Group" ;
214            };
215            PageItem
216            {
217                Identifier = PAGE_GROUP2 ;
218                Text [ en-US ] = "2nd Group" ;
219            };
220            PageItem
221            {
222                Identifier = PAGE_GROUP3 ;
223                Text [ en-US ] = "3rd Group" ;
224            };
225            PageItem
226            {
227                Identifier = PAGE_OPTIONS ;
228                Text [ en-US ] = "Options" ;
229            };
230        };
231    };
232    PushButton BTN_REMOVE
233    {
234        Pos = MAP_APPFONT ( 143, 160 ) ;
235        Size = MAP_APPFONT ( 40, 12 ) ;
236        Text [ en-US ] = "~Delete" ;
237        TabStop = TRUE ;
238    };
239};
240
241// ********************************************************************** EOF
242