Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*
3 : : * This file is part of the LibreOffice project.
4 : : *
5 : : * This Source Code Form is subject to the terms of the Mozilla Public
6 : : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : : *
9 : : * This file incorporates work covered by the following license notice:
10 : : *
11 : : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : : * contributor license agreements. See the NOTICE file distributed
13 : : * with this work for additional information regarding copyright
14 : : * ownership. The ASF licenses this file to you under the Apache
15 : : * License, Version 2.0 (the "License"); you may not use this file
16 : : * except in compliance with the License. You may obtain a copy of
17 : : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : : */
19 : :
20 : :
21 : : /****************** I N C L U D E S **************************************/
22 : : // C and C++ Includes.
23 : : #include <stdlib.h>
24 : : #include <stdio.h>
25 : :
26 : : #include <tools/rc.h>
27 : :
28 : : #include <vclrsc.hxx>
29 : :
30 : : // Programmabhaengige Includes.
31 : : #include <rsctree.hxx>
32 : : #include <rsctop.hxx>
33 : : #include <rscrange.hxx>
34 : : #include <rscconst.hxx>
35 : : #include <rscflag.hxx>
36 : : #include <rscstr.hxx>
37 : : #include <rsccont.hxx>
38 : : #include <rscmgr.hxx>
39 : : #include <rscclass.hxx>
40 : : #include <rsckey.hxx>
41 : : #include <rscdb.hxx>
42 : :
43 : : #include <rsclex.hxx>
44 : : #include <rscyacc.hxx>
45 : :
46 : : /****************** M a c r o s ******************************************/
47 : : #define INS_WINBIT( pClass, WinBit ) \
48 : : InsWinBit( pClass, #WinBit, n##WinBit##Id );
49 : :
50 : : /*************************************************************************
51 : : |*
52 : : |* RscTypCont::Init()
53 : : |*
54 : : *************************************************************************/
55 : 1440 : void RscTypCont::Init()
56 : : {
57 : : RscEnum * pFieldUnits;
58 : : RscEnum * pTimeFieldFormat;
59 : : RscEnum * pColor;
60 : : RscEnum * pMapUnit;
61 : : RscEnum * pKey;
62 : : RscEnum * pTriState;
63 : : RscEnum * pMessButtons;
64 : : RscEnum * pMessDefButton;
65 : : RscTupel * pGeometry;
66 : : RscArray * pLangGeometry;
67 : : RscCont * pStringList;
68 : : RscArray * pLangStringList;
69 : : RscTupel * pStringTupel;
70 : : RscTupel * pStringLongTupel;
71 : : RscCont * pStringTupelList;
72 : : RscCont * pStringLongTupelList;
73 : : RscArray * pLangStringTupelList;
74 : : RscArray * pLangStringLongTupelList;
75 : :
76 : : RscTop * pClassMgr;
77 : : RscTop * pClassString;
78 : : RscTop * pClassStringArray;
79 : : RscTop * pClassBitmap;
80 : : RscTop * pClassColor;
81 : : RscTop * pClassImage;
82 : : RscTop * pClassImageList;
83 : : RscTop * pClassWindow;
84 : : RscTop * pClassSystemWindow;
85 : : RscTop * pClassWorkWindow;
86 : : RscTop * pClassDialog;
87 : : RscTop * pClassModalDialog;
88 : : RscTop * pClassModelessDialog;
89 : : RscTop * pClassControl;
90 : : RscTop * pClassButton;
91 : : RscTop * pClassCheckBox;
92 : : RscTop * pClassPushButton;
93 : : RscTop * pClassOKButton;
94 : : RscTop * pClassCancelButton;
95 : : RscTop * pClassHelpButton;
96 : : RscTop * pClassRadioButton;
97 : : RscTop * pClassImageRadioButton;
98 : : RscTop * pClassImageButton;
99 : : RscTop * pClassTriStateBox;
100 : : RscTop * pClassEdit;
101 : : RscTop * pClassMultiLineEdit;
102 : : RscTop * pClassScrollBar;
103 : : RscTop * pClassListBox;
104 : : RscTop * pClassMultiListBox;
105 : : RscTop * pClassComboBox;
106 : : RscTop * pClassFixedText;
107 : : RscTop * pClassFixedBitmap;
108 : : RscTop * pClassFixedImage;
109 : : RscTop * pClassGroupBox;
110 : : RscTop * pClassKeyCode;
111 : : RscTop * pLangClassKeyCode;
112 : : RscTop * pClassAccelItem;
113 : : RscTop * pClassAccel;
114 : : RscTop * pClassMenuItem;
115 : : RscTop * pClassMenu;
116 : : RscTop * pClassMenuButton;
117 : : RscTop * pClassMessBox;
118 : : RscTop * pClassInfoBox;
119 : : RscTop * pClassWarningBox;
120 : : RscTop * pClassErrorBox;
121 : : RscTop * pClassQueryBox;
122 : : RscTop * pClassSplitter;
123 : : RscTop * pClassSplitWindow;
124 : : RscTop * pClassSpinButton;
125 : : RscTop * pClassTime;
126 : : RscTop * pClassDate;
127 : : RscTop * pClassSpinField;
128 : : RscTop * pClassPatternField;
129 : : RscTop * pClassNumericField;
130 : : RscTop * pClassMetricField;
131 : : RscTop * pClassCurrencyField;
132 : : RscTop * pClassLongCurrencyField;
133 : : RscTop * pClassDateField;
134 : : RscTop * pClassTimeField;
135 : : RscTop * pClassPatternBox;
136 : : RscTop * pClassNumericBox;
137 : : RscTop * pClassMetricBox;
138 : : RscTop * pClassCurrencyBox;
139 : : RscTop * pClassLongCurrencyBox;
140 : : RscTop * pClassDateBox;
141 : : RscTop * pClassTimeBox;
142 : : RscTop * pClassDockingWindow;
143 : : RscTop * pClassToolBoxItem;
144 : : RscTop * pClassToolBox;
145 : : RscTop * pClassStatusBar;
146 : : RscTop * pClassMoreButton;
147 : : RscTop * pClassFloatingWindow;
148 : : RscTop * pClassTabPage;
149 : : RscTop * pClassTabDialog;
150 : : RscTop * pClassTabControlItem;
151 : : RscTop * pClassTabControl;
152 : : RscTop * pClassFixedLine;
153 : : RscTop * pClassScrollBarBox;
154 : : RscTop * pClassSfxStyleFamilyItem;
155 : : RscTop * pClassSfxTemplateDialog;
156 : : RscTop * pClassSfxSlotInfo;
157 : :
158 : : Atom nId;
159 : :
160 [ + - ]: 1440 : aNmTb.SetSort( sal_False );
161 : : {
162 : : /********** C O M P I L E R T Y P E N ******************************/
163 [ + - ]: 1440 : aNmTb.Put( "LINE", LINE, (long)0 );
164 [ + - ]: 1440 : aNmTb.Put( "NOT", NOT, (long)0 );
165 [ + - ]: 1440 : aNmTb.Put( "DEFINE", DEFINE, (long)0 );
166 [ + - ]: 1440 : aNmTb.Put( "INCLUDE", INCLUDE, (long)0 );
167 [ + - ]: 1440 : aNmTb.Put( "DEFAULT", DEFAULT, (long)0 );
168 [ + - ]: 1440 : aNmTb.Put( "class", CLASS, (long)0 );
169 [ + - ]: 1440 : aNmTb.Put( "extendable", EXTENDABLE, (long)0 );
170 [ + - ]: 1440 : aNmTb.Put( "writeifset", WRITEIFSET, (long)0 );
171 : :
172 : : /* Werte fuer Aufzaehlungstypen */
173 [ + - ]: 1440 : aNmTb.Put( "TRUE", BOOLEAN, (long)sal_True );
174 [ + - ]: 1440 : aNmTb.Put( "FALSE", BOOLEAN, (long)sal_False );
175 : :
176 : : #if 0
177 : : /* Vordefinierte HilfeId's */
178 : : aNmTb.Put( "HELP_INDEX", NUMBER, OOO_HELP_INDEX );
179 : : aNmTb.Put( "HELP_HELPONHELP", NUMBER, OOO_HELP_HELPONHELP );
180 : : #endif
181 : :
182 [ + - ]: 1440 : aNmTb.Put( "XSCALE", XSCALE , (long)0 );
183 [ + - ]: 1440 : aNmTb.Put( "YSCALE", YSCALE , (long)0 );
184 [ + - ]: 1440 : aNmTb.Put( "RGB", RGB , (long)0 );
185 [ + - ]: 1440 : aNmTb.Put( "POSSIZE", GEOMETRY, (long)0 );
186 [ + - ]: 1440 : aNmTb.Put( "POS", POSITION, (long)0 );
187 [ + - ]: 1440 : aNmTb.Put( "SIZE", DIMENSION, (long)0 );
188 [ + - ]: 1440 : aNmTb.Put( "ZoomInOutputSize", INZOOMOUTPUTSIZE,(long)0 );
189 [ + - ]: 1440 : aNmTb.Put( "FloatingPos", FLOATINGPOS, (long)0 );
190 : : }
191 : : /********** B A S I S T Y P E N ************************************/
192 : : {
193 : : /********** S H O R T ************************************************/
194 [ + - ]: 1440 : aShort.SetRange( -32768, 32767 );
195 : :
196 : : /********** U S H O R T **********************************************/
197 [ + - ]: 1440 : aUShort.SetRange( 0, 0xFFFF );
198 : :
199 : : /********** L O N G **************************************************/
200 [ + - ]: 1440 : aLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
201 [ + - ]: 1440 : aEnumLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
202 : :
203 : : /********** I D U S H O R T ******************************************/
204 : 1440 : aIdUShort.SetRange( 0, 0xFFFF );
205 : :
206 : : /********** I D N O Z E R O U S H O R T ******************************/
207 : 1440 : aIdNoZeroUShort.SetRange( 1, 0xFFFF );
208 : :
209 : : /********** N O Z E R O S H O R T ************************************/
210 [ + - ]: 1440 : aNoZeroShort.SetRange( -32768, 32767 );
211 : 1440 : aNoZeroShort.SetOutRange( 0 );
212 : :
213 : : /********** R A N G E S H O R T **************************************/
214 [ + - ]: 1440 : a1to12Short.SetRange( 1, 12 );
215 [ + - ]: 1440 : a0to23Short.SetRange( 0, 23 );
216 [ + - ]: 1440 : a1to31Short.SetRange( 1, 31 );
217 [ + - ]: 1440 : a0to59Short.SetRange( 0, 59 );
218 [ + - ]: 1440 : a0to99Short.SetRange( 0, 99 );
219 [ + - ]: 1440 : a0to9999Short.SetRange( 0, 9999 );
220 : :
221 : : /********** I D R A N G E ********************************************/
222 : 1440 : aIdLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
223 : : }
224 : : {
225 : : /********** W I N B I T S F L A G ************************************/
226 : : // Variablenname fuer WinBits
227 [ + - ]: 1440 : nWinBitVarId = aNmTb.Put( "_WinBits", VARNAME );
228 : :
229 : : // Windows
230 [ + - ]: 1440 : nBorderId = pHS->getID( "WB_BORDER" );
231 [ + - ]: 1440 : aWinBits.SetConstant( nBorderId, sal::static_int_cast<sal_Int32>(WB_BORDER) );
232 [ + - ]: 1440 : nHideId = pHS->getID( "WB_HIDE" );
233 [ + - ]: 1440 : aWinBits.SetConstant( nHideId, sal::static_int_cast<sal_Int32>(WB_HIDE) );
234 [ + - ]: 1440 : nClipChildrenId = pHS->getID( "WB_CLIPCHILDREN" );
235 [ + - ]: 1440 : aWinBits.SetConstant( nClipChildrenId, sal::static_int_cast<sal_Int32>(WB_CLIPCHILDREN) );
236 [ + - ]: 1440 : nSizeableId = pHS->getID( "WB_SIZEABLE" );
237 [ + - ]: 1440 : aWinBits.SetConstant( nSizeableId, sal::static_int_cast<sal_Int32>(WB_SIZEABLE) );
238 [ + - ]: 1440 : nMoveableId = pHS->getID( "WB_MOVEABLE" );
239 [ + - ]: 1440 : aWinBits.SetConstant( nMoveableId, sal::static_int_cast<sal_Int32>(WB_MOVEABLE) );
240 [ + - ]: 1440 : nMinimizeId = pHS->getID( "WB_MINABLE" );
241 [ + - ]: 1440 : aWinBits.SetConstant( nMinimizeId, 0 /*WB_MINABLE*/ );
242 [ + - ]: 1440 : nMaximizeId = pHS->getID( "WB_MAXABLE" );
243 [ + - ]: 1440 : aWinBits.SetConstant( nMaximizeId, 0 /*WB_MAXABLE*/ );
244 [ + - ]: 1440 : nCloseableId = pHS->getID( "WB_CLOSEABLE" );
245 [ + - ]: 1440 : aWinBits.SetConstant( nCloseableId, sal::static_int_cast<sal_Int32>(WB_CLOSEABLE) );
246 [ + - ]: 1440 : nAppId = pHS->getID( "WB_APP" );
247 [ + - ]: 1440 : aWinBits.SetConstant( nAppId, sal::static_int_cast<sal_Int32>(WB_APP) );
248 [ + - ]: 1440 : nTabstopId = pHS->getID( "WB_TABSTOP" );
249 [ + - ]: 1440 : aWinBits.SetConstant( nTabstopId, sal::static_int_cast<sal_Int32>(WB_TABSTOP) );
250 [ + - ]: 1440 : nGroupId = pHS->getID( "WB_GROUP" );
251 [ + - ]: 1440 : aWinBits.SetConstant( nGroupId, sal::static_int_cast<sal_Int32>(WB_GROUP) );
252 [ + - ]: 1440 : nSysmodalId = pHS->getID( "WB_SYSMODAL" );
253 [ + - ]: 1440 : aWinBits.SetConstant( nSysmodalId, 0 /*WB_SYSMODAL*/ );
254 : : }
255 : : {
256 [ + - ]: 1440 : nLeftId = pHS->getID( "WB_LEFT" );
257 [ + - ]: 1440 : aWinBits.SetConstant( nLeftId, sal::static_int_cast<sal_Int32>(WB_LEFT) );
258 [ + - ]: 1440 : nCenterId = pHS->getID( "WB_CENTER" );
259 [ + - ]: 1440 : aWinBits.SetConstant( nCenterId, sal::static_int_cast<sal_Int32>(WB_CENTER) );
260 [ + - ]: 1440 : nRightId = pHS->getID( "WB_RIGHT" );
261 [ + - ]: 1440 : aWinBits.SetConstant( nRightId, sal::static_int_cast<sal_Int32>(WB_RIGHT) );
262 [ + - ]: 1440 : nTopId = pHS->getID( "WB_TOP" );
263 [ + - ]: 1440 : aWinBits.SetConstant( nTopId, sal::static_int_cast<sal_Int32>(WB_TOP) );
264 [ + - ]: 1440 : nVCenterId = pHS->getID( "WB_VCENTER" );
265 [ + - ]: 1440 : aWinBits.SetConstant( nVCenterId, sal::static_int_cast<sal_Int32>(WB_VCENTER) );
266 [ + - ]: 1440 : nBottomId = pHS->getID( "WB_BOTTOM" );
267 [ + - ]: 1440 : aWinBits.SetConstant( nBottomId, sal::static_int_cast<sal_Int32>(WB_BOTTOM) );
268 [ + - ]: 1440 : nHScrollId = pHS->getID( "WB_HSCROLL" );
269 [ + - ]: 1440 : aWinBits.SetConstant( nHScrollId, sal::static_int_cast<sal_Int32>(WB_HSCROLL) );
270 [ + - ]: 1440 : nVScrollId = pHS->getID( "WB_VSCROLL" );
271 [ + - ]: 1440 : aWinBits.SetConstant( nVScrollId, sal::static_int_cast<sal_Int32>(WB_VSCROLL) );
272 [ + - ]: 1440 : nSortId = pHS->getID( "WB_SORT" );
273 [ + - ]: 1440 : aWinBits.SetConstant( nSortId, sal::static_int_cast<sal_Int32>(WB_SORT) );
274 [ + - ]: 1440 : nDefaultId = pHS->getID( "WB_DEFBUTTON" );
275 [ + - ]: 1440 : aWinBits.SetConstant( nDefaultId, sal::static_int_cast<sal_Int32>(WB_DEFBUTTON) );
276 [ + - ]: 1440 : nRepeatId = pHS->getID( "WB_REPEAT" );
277 [ + - ]: 1440 : aWinBits.SetConstant( nRepeatId, sal::static_int_cast<sal_Int32>(WB_REPEAT) );
278 [ + - ]: 1440 : nSVLookId = pHS->getID( "WB_SVLOOK" );
279 [ + - ]: 1440 : aWinBits.SetConstant( nSVLookId, sal::static_int_cast<sal_Int32>(WB_3DLOOK) );
280 [ + - ]: 1440 : nDropDownId = pHS->getID( "WB_DROPDOWN" );
281 [ + - ]: 1440 : aWinBits.SetConstant( nDropDownId, sal::static_int_cast<sal_Int32>(WB_DROPDOWN) );
282 [ + - ]: 1440 : nPassWordId = pHS->getID( "WB_PASSWORD" );
283 [ + - ]: 1440 : aWinBits.SetConstant( nPassWordId, sal::static_int_cast<sal_Int32>(WB_PASSWORD) );
284 [ + - ]: 1440 : nReadOnlyId = pHS->getID( "WB_READONLY" );
285 [ + - ]: 1440 : aWinBits.SetConstant( nReadOnlyId, sal::static_int_cast<sal_Int32>(WB_READONLY) );
286 [ + - ]: 1440 : nAutoSizeId = pHS->getID( "WB_AUTOSIZE" );
287 [ + - ]: 1440 : aWinBits.SetConstant( nAutoSizeId, sal::static_int_cast<sal_Int32>(WB_AUTOSIZE) );
288 [ + - ]: 1440 : nSpinId = pHS->getID( "WB_SPIN" );
289 [ + - ]: 1440 : aWinBits.SetConstant( nSpinId, sal::static_int_cast<sal_Int32>(WB_SPIN) );
290 [ + - ]: 1440 : nTabControlId = pHS->getID( "WB_DIALOGCONTROL" );
291 [ + - ]: 1440 : aWinBits.SetConstant( nTabControlId, sal::static_int_cast<sal_Int32>(WB_DIALOGCONTROL) );
292 [ + - ]: 1440 : nSimpleModeId = pHS->getID( "WB_SIMPLEMODE" );
293 [ + - ]: 1440 : aWinBits.SetConstant( nSimpleModeId, sal::static_int_cast<sal_Int32>(WB_SIMPLEMODE) );
294 [ + - ]: 1440 : nDragId = pHS->getID( "WB_DRAG" );
295 [ + - ]: 1440 : aWinBits.SetConstant( nDragId, sal::static_int_cast<sal_Int32>(WB_DRAG) );
296 [ + - ]: 1440 : nScrollId = pHS->getID( "WB_SCROLL" );
297 [ + - ]: 1440 : aWinBits.SetConstant( nScrollId, sal::static_int_cast<sal_Int32>(WB_SCROLL) );
298 [ + - ]: 1440 : nZoomableId = pHS->getID( "WB_ZOOMABLE" );
299 [ + - ]: 1440 : aWinBits.SetConstant( nZoomableId, sal::static_int_cast<sal_Int32>(WB_ROLLABLE) );
300 [ + - ]: 1440 : nHideWhenDeactivateId = pHS->getID( "WB_HIDEWHENDEACTIVATE" );
301 [ + - ]: 1440 : aWinBits.SetConstant( nHideWhenDeactivateId, 0 /*WB_HIDEWHENDEACTIVATE*/ );
302 [ + - ]: 1440 : nAutoHScrollId = pHS->getID( "WB_AUTOHSCROLL" );
303 [ + - ]: 1440 : aWinBits.SetConstant( nAutoHScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOHSCROLL) );
304 [ + - ]: 1440 : nAutoVScrollId = pHS->getID( "WB_AUTOVSCROLL" );
305 [ + - ]: 1440 : aWinBits.SetConstant( nAutoVScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOVSCROLL) );
306 [ + - ]: 1440 : nDDExtraWidthId = pHS->getID( "WB_DDEXTRAWIDTH" );
307 [ + - ]: 1440 : aWinBits.SetConstant( nDDExtraWidthId, 0 /*WB_DDEXTRAWIDTH*/ );
308 [ + - ]: 1440 : nWordBreakId = pHS->getID( "WB_WORDBREAK" );
309 [ + - ]: 1440 : aWinBits.SetConstant( nWordBreakId, sal::static_int_cast<sal_Int32>(WB_WORDBREAK) );
310 [ + - ]: 1440 : nLeftLabelId = pHS->getID( "WB_LEFTLABEL" );
311 [ + - ]: 1440 : aWinBits.SetConstant( nLeftLabelId, 0 /*WB_LEFTLABEL*/ );
312 [ + - ]: 1440 : nHasLinesId = pHS->getID( "WB_HASLINES" );
313 [ + - ]: 1440 : aWinBits.SetConstant( nHasLinesId, sal::static_int_cast<sal_Int32>(WB_HASLINES) );
314 [ + - ]: 1440 : nHasButtonsId = pHS->getID( "WB_HASBUTTONS" );
315 [ + - ]: 1440 : aWinBits.SetConstant( nHasButtonsId, sal::static_int_cast<sal_Int32>(WB_HASBUTTONS) );
316 [ + - ]: 1440 : nRectStyleId = pHS->getID( "WB_RECTSTYLE" );
317 [ + - ]: 1440 : aWinBits.SetConstant( nRectStyleId, sal::static_int_cast<sal_Int32>(WB_RECTSTYLE) );
318 [ + - ]: 1440 : nLineSpacingId = pHS->getID( "WB_LINESPACING" );
319 [ + - ]: 1440 : aWinBits.SetConstant( nLineSpacingId, sal::static_int_cast<sal_Int32>(WB_LINESPACING) );
320 [ + - ]: 1440 : nSmallStyleId = pHS->getID( "WB_SMALLSTYLE" );
321 [ + - ]: 1440 : aWinBits.SetConstant( nSmallStyleId, sal::static_int_cast<sal_Int32>(WB_SMALLSTYLE) );
322 [ + - ]: 1440 : nEnableResizingId = pHS->getID( "WB_ENABLERESIZING" );
323 [ + - ]: 1440 : aWinBits.SetConstant( nEnableResizingId, 0 /*WB_ENABLERESIZING*/ );
324 [ + - ]: 1440 : nDockableId = pHS->getID( "WB_DOCKABLE" );
325 [ + - ]: 1440 : aWinBits.SetConstant( nDockableId, sal::static_int_cast<sal_Int32>(WB_DOCKABLE) );
326 [ + - ]: 1440 : nScaleId = pHS->getID( "WB_SCALE" );
327 [ + - ]: 1440 : aWinBits.SetConstant( nScaleId, sal::static_int_cast<sal_Int32>(WB_SCALE) );
328 [ + - ]: 1440 : nIgnoreTabId = pHS->getID( "WB_IGNORETAB" );
329 [ + - ]: 1440 : aWinBits.SetConstant( nIgnoreTabId, sal::static_int_cast<sal_Int32>(WB_IGNORETAB) );
330 [ + - ]: 1440 : nNoSplitDrawId = pHS->getID( "WB_NOSPLITDRAW" );
331 [ + - ]: 1440 : aWinBits.SetConstant( nNoSplitDrawId, sal::static_int_cast<sal_Int32>(WB_NOSPLITDRAW) );
332 [ + - ]: 1440 : nTopImageId = pHS->getID( "WB_TOPIMAGE" );
333 [ + - ]: 1440 : aWinBits.SetConstant( nTopImageId, sal::static_int_cast<sal_Int32>(WB_TOPIMAGE) );
334 [ + - ]: 1440 : nNoLabelId = pHS->getID( "WB_NOLABEL" );
335 [ + - ]: 1440 : aWinBits.SetConstant( nNoLabelId, sal::static_int_cast<sal_Int32>(WB_NOLABEL) );
336 [ + - ]: 1440 : nVertId = pHS->getID( "WB_VERT" );
337 [ + - ]: 1440 : aWinBits.SetConstant( nVertId, sal::static_int_cast<sal_Int32>(WB_VERT) );
338 [ + - ]: 1440 : nSysWinId = pHS->getID( "WB_SYSTEMWINDOW" );
339 [ + - ]: 1440 : aWinBits.SetConstant( nSysWinId, sal::static_int_cast<sal_Int32>(WB_SYSTEMWINDOW) );
340 [ + - ]: 1440 : nStdPopupId = pHS->getID( "WB_STDPOPUP" );
341 [ + - ]: 1440 : aWinBits.SetConstant( nStdPopupId, sal::static_int_cast<sal_Int32>(WB_STDPOPUP) );
342 : : }
343 : : {
344 : : /********** I n i t B a s i c T y p e s **************************/
345 [ + - ]: 1440 : InitLangType();
346 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pFieldUnits = InitFieldUnitsType() );
347 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pTimeFieldFormat = InitTimeFieldFormat() );
348 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pColor = InitColor() );
349 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pMapUnit = InitMapUnit() );
350 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pKey = InitKey() );
351 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pTriState = InitTriState() );
352 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pMessButtons = InitMessButtons() );
353 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pMessDefButton = InitMessDefButton() );
354 : :
355 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pGeometry = InitGeometry() );
356 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pLangGeometry = InitLangGeometry( pGeometry ) );
357 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pStringList = InitStringList() );
358 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pLangStringList = InitLangStringList( pStringList ) );
359 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pStringTupel = InitStringTupel() );
360 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pStringTupelList = InitStringTupelList( pStringTupel ) );
361 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pLangStringTupelList = InitLangStringTupelList( pStringTupelList ) );
362 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pStringLongTupel = InitStringLongTupel() );
363 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pStringLongTupelList = InitStringLongTupelList( pStringLongTupel ) );
364 [ + - ][ + - ]: 1440 : aBaseLst.push_back( pLangStringLongTupelList = InitLangStringLongTupelList( pStringLongTupelList ) );
365 : : }
366 : : {
367 : : /********** R E S O U R C E T Y P E N ******************************/
368 : : /********** R S C M G R **********************************************/
369 [ + - ]: 1440 : pRoot = pClassMgr = InitClassMgr();
370 : :
371 : : /********** V e r s i o n s k o n t r o l l e ************************/
372 : 2880 : aVersion.pClass = new RscClass( pHS->getID( "VersionControl" ),
373 [ + - ][ + - ]: 1440 : RSC_VERSIONCONTROL, pClassMgr );
[ + - ]
374 [ + - ]: 1440 : aVersion = aVersion.pClass->Create( NULL, RSCINST() );
375 : :
376 : : /********** S T R I N G **********************************************/
377 [ + - ]: 1440 : pClassString = InitClassString( pClassMgr );
378 [ + - ]: 1440 : pRoot->Insert( pClassString );
379 : :
380 : : // String als Referenzklasse des Basisstrings einsetzen
381 : 1440 : aString.SetRefClass( pClassString );
382 : :
383 : : /********** S T R I N G L I S T **************************************/
384 : : // Klasse anlegen
385 [ + - ]: 1440 : nId = pHS->getID( "StringArray" );
386 [ + - ][ + - ]: 1440 : pClassStringArray = new RscClass( nId, RSC_STRINGARRAY, pClassMgr );
387 [ + - ]: 1440 : pClassStringArray->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
388 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassStringArray );
389 [ + - ]: 1440 : pRoot->Insert( pClassStringArray );
390 : :
391 : : // Variablen anlegen
392 [ + - ]: 1440 : nId = aNmTb.Put( "ItemList", VARNAME );
393 [ + - ]: 1440 : pClassStringArray->SetVariable( nId, pLangStringLongTupelList );
394 : :
395 : : /********** B I T M A P **********************************************/
396 [ + - ]: 1440 : pClassBitmap = InitClassBitmap( pClassMgr );
397 [ + - ]: 1440 : pRoot->Insert( pClassBitmap );
398 : :
399 : : }
400 : : {
401 : : /********** C O L O R ************************************************/
402 [ + - ]: 1440 : pClassColor = InitClassColor( pClassMgr, pColor );
403 [ + - ]: 1440 : pRoot->Insert( pClassColor );
404 : :
405 : : /********** I M A G E ************************************************/
406 [ + - ]: 1440 : pClassImage = InitClassImage( pClassMgr, pClassBitmap, pClassColor );
407 [ + - ]: 1440 : pRoot->Insert( pClassImage );
408 : :
409 : : /********** I M A G E L I S T ****************************************/
410 : : pClassImageList = InitClassImageList( pClassMgr,
411 [ + - ]: 1440 : pClassColor, pStringLongTupelList );
412 [ + - ]: 1440 : pRoot->Insert( pClassImageList );
413 : :
414 : : /********** W I N D O W **********************************************/
415 : : pClassWindow = InitClassWindow( pClassMgr, pMapUnit,
416 [ + - ]: 1440 : pLangGeometry );
417 [ + - ]: 1440 : pRoot->Insert( pClassWindow );
418 : : }
419 : : {
420 : :
421 : : /********** S Y S T E M W I N D O W **********************************/
422 [ + - ]: 1440 : pClassSystemWindow = InitClassSystemWindow( pClassWindow );
423 : : //aBaseLst.Insert( pClassSystemWindow, LIST_APPEND );
424 [ + - ]: 1440 : pRoot->Insert( pClassSystemWindow );
425 : :
426 : : /********** W O R K W I N D O W **************************************/
427 [ + - ]: 1440 : pClassWorkWindow = InitClassWorkWindow( pClassSystemWindow );
428 [ + - ]: 1440 : pRoot->Insert( pClassWorkWindow );
429 : :
430 : : /********** D I A L O G **********************************************/
431 : : // Klasse anlegen
432 : 2880 : pClassDialog = new RscClass( pHS->getID( "Dialog" ),
433 [ + - ][ + - ]: 1440 : RSC_DIALOG, pClassSystemWindow );
[ + - ]
434 [ + - ]: 1440 : pClassDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
435 [ + - ]: 1440 : aBaseLst.push_back( pClassDialog );
436 : :
437 : : /********** M O D A L D I A L O G ***********************************/
438 : : // Klasse anlegen
439 [ + - ]: 1440 : pClassModalDialog = InitClassModalDialog( pClassDialog );
440 [ + - ]: 1440 : pRoot->Insert( pClassModalDialog );
441 : :
442 : : /********** M O D E L E S S D I A L O G ******************************/
443 : : // Klasse anlegen
444 [ + - ]: 1440 : pClassModelessDialog = InitClassModelessDialog( pClassDialog );
445 [ + - ]: 1440 : pRoot->Insert( pClassModelessDialog );
446 : : }
447 : : {
448 : : /********** C O N T R O L ********************************************/
449 [ + - ]: 1440 : pClassControl = InitClassControl( pClassWindow );
450 [ + - ]: 1440 : pRoot->Insert( pClassControl );
451 : :
452 : : /********** B U T T O N **********************************************/
453 : : // Klasse anlegen
454 [ + - ]: 1440 : nId = pHS->getID( "Button" );
455 [ + - ][ + - ]: 1440 : pClassButton = new RscClass( nId, RSC_BUTTON, pClassControl );
456 [ + - ]: 1440 : pClassButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
457 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassButton );
458 [ + - ]: 1440 : pRoot->Insert( pClassButton );
459 : :
460 : : /********** C H E C K B O X ******************************************/
461 [ + - ]: 1440 : pClassCheckBox = InitClassCheckBox( pClassButton );
462 [ + - ]: 1440 : pRoot->Insert( pClassCheckBox );
463 : :
464 : : /********** P U S H B U T T O N **************************************/
465 : : // Klasse anlegen
466 [ + - ]: 1440 : pClassPushButton = InitClassPushButton( pClassButton );
467 [ + - ]: 1440 : pRoot->Insert( pClassPushButton );
468 : :
469 : : /********** H E L P B U T T O N **************************************/
470 : : // Klasse anlegen
471 [ + - ]: 1440 : nId = pHS->getID( "HelpButton" );
472 : : pClassHelpButton = new RscClass( nId, RSC_HELPBUTTON,
473 [ + - ][ + - ]: 1440 : pClassPushButton );
474 [ + - ]: 1440 : pClassHelpButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
475 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassHelpButton );
476 [ + - ]: 1440 : pRoot->Insert( pClassHelpButton );
477 : :
478 : : /********** O K B U T T O N ******************************************/
479 : : // Klasse anlegen
480 [ + - ]: 1440 : nId = pHS->getID( "OKButton" );
481 : : pClassOKButton = new RscClass( nId, RSC_OKBUTTON,
482 [ + - ][ + - ]: 1440 : pClassPushButton );
483 [ + - ]: 1440 : pClassOKButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
484 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassOKButton );
485 [ + - ]: 1440 : pRoot->Insert( pClassOKButton );
486 : :
487 : : /********** C A N C E L B U T T O N **********************************/
488 : : // Klasse anlegen
489 [ + - ]: 1440 : nId = pHS->getID( "CancelButton" );
490 : : pClassCancelButton = new RscClass( nId, RSC_CANCELBUTTON,
491 [ + - ][ + - ]: 1440 : pClassPushButton );
492 [ + - ]: 1440 : pClassCancelButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
493 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassCancelButton );
494 [ + - ]: 1440 : pRoot->Insert( pClassCancelButton );
495 : : }
496 : : {
497 : : /********** R A D I O B U T T O N ************************************/
498 [ + - ]: 1440 : pClassRadioButton = InitClassRadioButton( pClassButton );
499 [ + - ]: 1440 : pRoot->Insert( pClassRadioButton );
500 : :
501 : : /********** I m a g e R a d i o B u t t o n **************************/
502 [ + - ]: 1440 : nId = pHS->getID( "ImageRadioButton" );
503 : : pClassImageRadioButton = InitClassImageRadioButton( pClassRadioButton,
504 [ + - ]: 1440 : pClassImage );
505 [ + - ]: 1440 : pRoot->Insert( pClassImageRadioButton );
506 : :
507 : : /********** T R I S T A T E B O X ************************************/
508 [ + - ]: 1440 : pClassTriStateBox = InitClassTriStateBox( pClassControl, pTriState );
509 [ + - ]: 1440 : pRoot->Insert( pClassTriStateBox );
510 : :
511 : : /********** I M A G E B U T T O N ************************************/
512 : : pClassImageButton = InitClassImageButton( pClassPushButton,
513 [ + - ]: 1440 : pClassImage, pTriState );
514 [ + - ]: 1440 : pRoot->Insert( pClassImageButton );
515 : :
516 : : /********** E D I T **************************************************/
517 [ + - ]: 1440 : pClassEdit = InitClassEdit( pClassControl );
518 [ + - ]: 1440 : pRoot->Insert( pClassEdit );
519 : :
520 : : /********** M U L T I L I N E E D I T ********************************/
521 [ + - ]: 1440 : pClassMultiLineEdit = InitClassMultiLineEdit( pClassEdit );
522 [ + - ]: 1440 : pRoot->Insert( pClassMultiLineEdit );
523 : :
524 : : /********** S C R O L L B A R ****************************************/
525 [ + - ]: 1440 : pClassScrollBar = InitClassScrollBar( pClassControl );
526 [ + - ]: 1440 : pRoot->Insert( pClassScrollBar );
527 : :
528 : : }
529 : : {
530 : : /********** L I S T B O X ********************************************/
531 [ + - ]: 1440 : pClassListBox = InitClassListBox( pClassControl, pLangStringLongTupelList );
532 [ + - ]: 1440 : pRoot->Insert( pClassListBox );
533 : :
534 : : /********** M U L T I L I S T B O X **********************************/
535 [ + - ]: 1440 : pClassMultiListBox = InitClassMultiListBox( pClassListBox);
536 [ + - ]: 1440 : pRoot->Insert( pClassMultiListBox );
537 : :
538 : : /********** C O M B O B O X ******************************************/
539 [ + - ]: 1440 : pClassComboBox = InitClassComboBox( pClassEdit, pLangStringList );
540 [ + - ]: 1440 : pRoot->Insert( pClassComboBox );
541 : :
542 : : /********** F I X E D T E X T ****************************************/
543 [ + - ]: 1440 : pClassFixedText = InitClassFixedText( pClassControl );
544 [ + - ]: 1440 : pRoot->Insert( pClassFixedText );
545 : :
546 : : /********** F i x e d B i t m a p ************************************/
547 [ + - ]: 1440 : pClassFixedBitmap = InitClassFixedBitmap( pClassControl, pClassBitmap );
548 [ + - ]: 1440 : pRoot->Insert( pClassFixedBitmap );
549 : :
550 : : /********** F i x e d I m a g e **************************************/
551 [ + - ]: 1440 : pClassFixedImage = InitClassFixedImage( pClassControl, pClassImage );
552 [ + - ]: 1440 : pRoot->Insert( pClassFixedImage );
553 : :
554 : : /********** G R O U P B O X ******************************************/
555 : : // Klasse anlegen
556 [ + - ]: 1440 : nId = pHS->getID( "GroupBox" );
557 [ + - ][ + - ]: 1440 : pClassGroupBox = new RscClass( nId, RSC_GROUPBOX, pClassControl );
558 [ + - ]: 1440 : pClassGroupBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
559 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassGroupBox );
560 [ + - ]: 1440 : pRoot->Insert( pClassGroupBox );
561 : :
562 : : /********** K E Y C O D E ********************************************/
563 [ + - ]: 1440 : pClassKeyCode = InitClassKeyCode( pClassMgr, pKey );
564 [ + - ]: 1440 : pRoot->Insert( pClassKeyCode );
565 : : {
566 : 2880 : pLangClassKeyCode = new RscClassArray( pHS->getID( "LangKeyCode" ),
567 [ + - ][ + - ]: 1440 : RSC_KEYCODE, pClassKeyCode, &aLangType );
[ + - ]
568 [ + - ]: 1440 : aBaseLst.push_back( pLangClassKeyCode );
569 : : }
570 : :
571 : : /********** A C C E L I T E M ***************************************/
572 [ + - ]: 1440 : pClassAccelItem = InitClassAccelItem( pClassMgr, pLangClassKeyCode );
573 [ + - ]: 1440 : pRoot->Insert( pClassAccelItem );
574 : : }
575 : : {
576 : : /********** A C C E L E R A T O R ************************************/
577 [ + - ]: 1440 : pClassAccel = InitClassAccel( pClassMgr, pClassAccelItem );
578 [ + - ]: 1440 : pRoot->Insert( pClassAccel );
579 [ + - ]: 1440 : nAcceleratorType = pClassAccel->GetId();
580 : :
581 : : /********** A C C E L I T E M ***************************************/
582 : : // pClassAccel ist erst hier definiert
583 [ + - ]: 1440 : nId = aNmTb.Put( "SubAccelerator", VARNAME );
584 : : pClassAccelItem->SetVariable( nId, pClassAccel, NULL, VAR_SVDYNAMIC,
585 [ + - ]: 1440 : ACCELITEM_ACCEL );
586 : :
587 : : /********** M E N U I T E M ******************************************/
588 : : pClassMenuItem = InitClassMenuItem( pClassMgr, pClassBitmap,
589 [ + - ]: 1440 : pLangClassKeyCode );
590 [ + - ]: 1440 : pRoot->Insert( pClassMenuItem );
591 : :
592 : : /********** M E N U **************************************************/
593 [ + - ]: 1440 : pClassMenu = InitClassMenu( pClassMgr, pClassMenuItem );
594 [ + - ]: 1440 : pRoot->Insert( pClassMenu );
595 : :
596 : : /********** M E N U I T E M ******************************************/
597 : : // pClassMenu ist erst hier definiert
598 [ + - ]: 1440 : nId = aNmTb.Put( "SubMenu", VARNAME );
599 : : pClassMenuItem->SetVariable( nId, pClassMenu, NULL, VAR_SVDYNAMIC,
600 [ + - ]: 1440 : RSC_MENUITEM_MENU );
601 : :
602 : : /********** M E N U B U T T O N **************************************/
603 [ + - ]: 1440 : pClassMenuButton = InitClassMenuButton( pClassControl, pClassMenu );
604 [ + - ]: 1440 : pRoot->Insert( pClassMenuButton );
605 : :
606 : : /********** M E S S A G E B O X **************************************/
607 : : pClassMessBox = InitClassMessBox( pClassMgr, pMessButtons,
608 [ + - ]: 1440 : pMessDefButton );
609 [ + - ]: 1440 : pRoot->Insert( pClassMessBox );
610 : :
611 : : /********** I N F O B O X ********************************************/
612 : : // Klasse anlegen
613 [ + - ]: 1440 : nId = pHS->getID( "InfoBox" );
614 [ + - ][ + - ]: 1440 : pClassInfoBox = new RscClass( nId, RSC_INFOBOX, pClassMessBox );
615 [ + - ]: 1440 : pClassInfoBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
616 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassInfoBox );
617 [ + - ]: 1440 : pRoot->Insert( pClassInfoBox );
618 : :
619 : : /********** W A R N I N G B O X **************************************/
620 : : // Klasse anlegen
621 [ + - ]: 1440 : nId = pHS->getID( "WarningBox" );
622 [ + - ][ + - ]: 1440 : pClassWarningBox = new RscClass( nId, RSC_WARNINGBOX, pClassMessBox );
623 [ + - ]: 1440 : pClassWarningBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
624 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassWarningBox );
625 [ + - ]: 1440 : pRoot->Insert( pClassWarningBox );
626 : :
627 : : /********** E R R O R B O X ******************************************/
628 : : // Klasse anlegen
629 [ + - ]: 1440 : nId = pHS->getID( "ErrorBox" );
630 [ + - ][ + - ]: 1440 : pClassErrorBox = new RscClass( nId, RSC_ERRORBOX, pClassMessBox );
631 [ + - ]: 1440 : pClassErrorBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
632 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassErrorBox );
633 [ + - ]: 1440 : pRoot->Insert( pClassErrorBox );
634 : :
635 : : /********** Q U E R Y B O X ******************************************/
636 : : // Klasse anlegen
637 [ + - ]: 1440 : nId = pHS->getID( "QueryBox" );
638 [ + - ][ + - ]: 1440 : pClassQueryBox = new RscClass( nId, RSC_QUERYBOX, pClassMessBox );
639 [ + - ]: 1440 : pClassQueryBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
640 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassQueryBox );
641 [ + - ]: 1440 : pRoot->Insert( pClassQueryBox );
642 : : }
643 : : {
644 : : /********** S P L I T T E R ******************************************/
645 [ + - ]: 1440 : pClassSplitter = InitClassSplitter( pClassWindow );
646 [ + - ]: 1440 : pRoot->Insert( pClassSplitter );
647 : :
648 : : /********** S P L I T W I N D O W ************************************/
649 [ + - ]: 1440 : pClassSplitWindow = InitClassSplitWindow( pClassWindow );
650 [ + - ]: 1440 : pRoot->Insert( pClassSplitWindow );
651 : :
652 : : /********** S P I N B U T T O N **************************************/
653 : : // Klasse anlegen
654 [ + - ]: 1440 : nId = pHS->getID( "SpinButton" );
655 [ + - ][ + - ]: 1440 : pClassSpinButton = new RscClass( nId, RSC_SPINBUTTON, pClassControl );
656 [ + - ]: 1440 : pClassSpinButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
657 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassSpinButton );
658 : : {
659 : : RscClient * pClient;
660 : :
661 : : // Clientvariablen einfuegen
662 : : // Sysmodal
663 : : aBaseLst.push_back(
664 [ + - ]: 4320 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, &aWinBits, nRepeatId )
665 [ + - ][ + - ]: 2880 : );
[ + - ]
666 [ + - ]: 1440 : nId = aNmTb.Put( "Repeat", VARNAME );
667 : : pClassSpinButton->SetVariable( nId, pClient, NULL,
668 [ + - ]: 1440 : VAR_NODATAINST, 0, nWinBitVarId );
669 : : }
670 [ + - ]: 1440 : pRoot->Insert( pClassSpinButton );
671 : : }
672 : : {
673 : : /********** T I M E **************************************************/
674 [ + - ]: 1440 : pClassTime = InitClassTime( pClassMgr );
675 [ + - ]: 1440 : pRoot->Insert( pClassTime );
676 : :
677 : : /********** D A T E **************************************************/
678 [ + - ]: 1440 : pClassDate = InitClassDate( pClassMgr );
679 [ + - ]: 1440 : pRoot->Insert( pClassDate );
680 : : }
681 : : {
682 : : /********** S P I N F I E L D ****************************************/
683 [ + - ]: 1440 : pClassSpinField = InitClassSpinField( pClassEdit );
684 [ + - ]: 1440 : pRoot->Insert( pClassSpinField );
685 : : }
686 : : {
687 : : /********** P A T T E R N F I E L D **********************************/
688 : : { // Mehrfachvererbung von Hand
689 [ + - ]: 1440 : RscTop * pClassTmp = InitClassPatternFormatter( pClassSpinField );
690 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
691 : :
692 [ + - ]: 1440 : pClassPatternField = InitClassPatternField( pClassTmp );
693 [ + - ]: 1440 : pRoot->Insert( pClassPatternField );
694 : : }
695 : : /********** N U M E R I C F I E L D **********************************/
696 : : { // Mehrfachvererbung von Hand
697 [ + - ]: 1440 : RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
698 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
699 : :
700 [ + - ]: 1440 : pClassNumericField = InitClassNumericField( pClassTmp );
701 [ + - ]: 1440 : pRoot->Insert( pClassNumericField );
702 : : }
703 : : /********** M E T R I C F I E L D ************************************/
704 : : { // Mehrfachvererbung von Hand
705 [ + - ]: 1440 : RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
706 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
707 [ + - ]: 1440 : pClassTmp = InitClassMetricFormatter( pClassTmp, pFieldUnits );
708 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
709 : :
710 [ + - ]: 1440 : pClassMetricField = InitClassMetricField( pClassTmp );
711 [ + - ]: 1440 : pRoot->Insert( pClassMetricField );
712 : : }
713 : : /********** C U R R E N C Y F I E L D ********************************/
714 : : { // Mehrfachvererbung von Hand
715 [ + - ]: 1440 : RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
716 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
717 [ + - ]: 1440 : pClassTmp = InitClassCurrencyFormatter( pClassTmp );
718 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
719 : :
720 [ + - ]: 1440 : pClassCurrencyField = InitClassCurrencyField( "CurrencyField", RSC_CURRENCYFIELD, pClassTmp );
721 [ + - ]: 1440 : pRoot->Insert( pClassCurrencyField );
722 : :
723 [ + - ]: 1440 : pClassLongCurrencyField = InitClassCurrencyField( "LongCurrencyField", RSC_LONGCURRENCYFIELD, pClassTmp );
724 [ + - ]: 1440 : pRoot->Insert( pClassLongCurrencyField );
725 : :
726 : : }
727 : : /********** D A T E F I E L D ****************************************/
728 : : { // Mehrfachvererbung von Hand
729 [ + - ]: 1440 : RscTop * pClassTmp = InitClassDateFormatter( pClassSpinField, pClassDate );
730 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
731 : :
732 [ + - ]: 1440 : pClassDateField = InitClassDateField( pClassTmp, pClassDate );
733 [ + - ]: 1440 : pRoot->Insert( pClassDateField );
734 : : }
735 : : /********** T I M E F I E L D ****************************************/
736 : : { // Mehrfachvererbung von Hand
737 : : RscTop * pClassTmp = InitClassTimeFormatter( pClassSpinField, pClassTime,
738 [ + - ]: 1440 : pTimeFieldFormat );
739 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
740 : :
741 [ + - ]: 1440 : pClassTimeField = InitClassTimeField( pClassTmp, pClassTime );
742 [ + - ]: 1440 : pRoot->Insert( pClassTimeField );
743 : : }
744 : : /********** P A T T E R N B O X **************************************/
745 : : { // Mehrfachvererbung von Hand
746 [ + - ]: 1440 : RscTop * pClassTmp = InitClassPatternFormatter( pClassComboBox );
747 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
748 : :
749 [ + - ]: 1440 : pClassPatternBox = InitClassPatternBox( pClassTmp );
750 [ + - ]: 1440 : pRoot->Insert( pClassPatternBox );
751 : : }
752 : : /********** N U M E R I C B O X **************************************/
753 : : { // Mehrfachvererbung von Hand
754 [ + - ]: 1440 : RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox );
755 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
756 : :
757 [ + - ]: 1440 : pClassNumericBox = InitClassNumericBox( pClassTmp );
758 [ + - ]: 1440 : pRoot->Insert( pClassNumericBox );
759 : : }
760 : : }
761 : : {
762 : : /********** M E T R I C B O X ****************************************/
763 : : { // Mehrfachvererbung von Hand
764 [ + - ]: 1440 : RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox );
765 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
766 [ + - ]: 1440 : pClassTmp = InitClassMetricFormatter( pClassTmp, pFieldUnits );
767 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
768 : :
769 [ + - ]: 1440 : pClassMetricBox = InitClassMetricBox( pClassTmp );
770 [ + - ]: 1440 : pRoot->Insert( pClassMetricBox );
771 : : }
772 : : /********** C U R R E N C Y B O X ************************************/
773 : : { // Mehrfachvererbung von Hand
774 [ + - ]: 1440 : RscTop * pClassTmp = InitClassNumericFormatter( pClassComboBox );
775 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
776 [ + - ]: 1440 : pClassTmp = InitClassCurrencyFormatter( pClassTmp );
777 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
778 : :
779 [ + - ]: 1440 : pClassCurrencyBox = InitClassCurrencyBox( "CurrencyBox", RSC_CURRENCYBOX, pClassTmp );
780 [ + - ]: 1440 : pRoot->Insert( pClassCurrencyBox );
781 : :
782 [ + - ]: 1440 : pClassLongCurrencyBox = InitClassCurrencyBox( "LongCurrencyBox", RSC_LONGCURRENCYBOX, pClassTmp );
783 [ + - ]: 1440 : pRoot->Insert( pClassLongCurrencyBox );
784 : : }
785 : : /********** D A T E B O X ********************************************/
786 : : { // Mehrfachvererbung von Hand
787 [ + - ]: 1440 : RscTop * pClassTmp = InitClassDateFormatter( pClassComboBox, pClassDate );
788 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
789 : :
790 [ + - ]: 1440 : pClassDateBox = InitClassDateBox( pClassTmp );
791 [ + - ]: 1440 : pRoot->Insert( pClassDateBox );
792 : : }
793 : : /********** T I M E B O X ********************************************/
794 : : { // Mehrfachvererbung von Hand
795 : : RscTop * pClassTmp = InitClassTimeFormatter( pClassComboBox, pClassTime,
796 [ + - ]: 1440 : pTimeFieldFormat );
797 [ + - ]: 1440 : aBaseLst.push_back( pClassTmp );
798 : :
799 [ + - ]: 1440 : pClassTimeBox = InitClassTimeBox( pClassTmp );
800 [ + - ]: 1440 : pRoot->Insert( pClassTimeBox );
801 : : }
802 : : /********** D O C K I N G W I N D O W ********************************/
803 [ + - ]: 1440 : pClassDockingWindow = InitClassDockingWindow( pClassWindow, pMapUnit );
804 [ + - ]: 1440 : pRoot->Insert( pClassDockingWindow );
805 : :
806 : : /********** T O O L B O X I T E M ************************************/
807 : : pClassToolBoxItem = InitClassToolBoxItem( pClassMgr, pClassBitmap,
808 [ + - ]: 1440 : pClassImage, pTriState );
809 [ + - ]: 1440 : pRoot->Insert( pClassToolBoxItem );
810 : :
811 : : /********** T O O L B O X ********************************************/
812 : : pClassToolBox = InitClassToolBox( pClassDockingWindow, pClassToolBoxItem,
813 [ + - ]: 1440 : pClassImageList );
814 [ + - ]: 1440 : pRoot->Insert( pClassToolBox );
815 : :
816 : : /********** S T A T U S B A R ****************************************/
817 [ + - ]: 1440 : pClassStatusBar = InitClassStatusBar( pClassWindow );
818 [ + - ]: 1440 : pRoot->Insert( pClassStatusBar );
819 : :
820 : : /********** M O R E B U T T O N **************************************/
821 [ + - ]: 1440 : pClassMoreButton = InitClassMoreButton( pClassPushButton, pMapUnit );
822 [ + - ]: 1440 : pRoot->Insert( pClassMoreButton );
823 : :
824 : : /********** F L O A T W I N D O W ************************************/
825 : : pClassFloatingWindow = InitClassFloatingWindow( pClassSystemWindow,
826 [ + - ]: 1440 : pMapUnit );
827 [ + - ]: 1440 : pRoot->Insert( pClassFloatingWindow );
828 : :
829 : : /********** T A B P A G E ********************************************/
830 : : // Klasse anlegen
831 [ + - ]: 1440 : nId = pHS->getID( "TabPage" );
832 : : pClassTabPage =
833 [ + - ][ + - ]: 1440 : new RscClass( nId, RSC_TABPAGE, pClassWindow );
834 [ + - ]: 1440 : pClassTabPage->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
835 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassTabPage );
836 [ + - ]: 1440 : pRoot->Insert( pClassTabPage );
837 : :
838 : : /********** T A B D I A L O G ****************************************/
839 : : // Klasse anlegen
840 [ + - ]: 1440 : nId = pHS->getID( "TabDialog" );
841 : : pClassTabDialog =
842 [ + - ][ + - ]: 1440 : new RscClass( nId, RSC_TABDIALOG, pClassModalDialog );
843 [ + - ]: 1440 : pClassTabDialog->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
844 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassTabDialog );
845 [ + - ]: 1440 : pRoot->Insert( pClassTabDialog );
846 : :
847 : : /********** T A B C O N T R O L I T E M *******************************/
848 [ + - ]: 1440 : pClassTabControlItem = InitClassTabControlItem( pClassMgr );
849 [ + - ]: 1440 : pRoot->Insert( pClassTabControlItem );
850 : :
851 : : /********** T A B C O N T R O L **************************************/
852 : : pClassTabControl = InitClassTabControl( pClassControl,
853 [ + - ]: 1440 : pClassTabControlItem );
854 [ + - ]: 1440 : pRoot->Insert( pClassTabControl );
855 : :
856 : : /********** F I X E D L I N E ****************************************/
857 : : // Klasse anlegen
858 [ + - ]: 1440 : nId = pHS->getID( "FixedLine" );
859 : : pClassFixedLine =
860 [ + - ][ + - ]: 1440 : new RscClass( nId, RSC_FIXEDLINE, pClassControl );
861 [ + - ]: 1440 : pClassFixedLine->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
862 : :
863 [ + - ]: 1440 : INS_WINBIT(pClassFixedLine,Vert)
864 : :
865 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassFixedLine );
866 [ + - ]: 1440 : pRoot->Insert( pClassFixedLine );
867 : :
868 : : /********** S C R O L L B A R B O X **********************************/
869 : : // Klasse anlegen
870 [ + - ]: 1440 : nId = pHS->getID( "ScrollBarBox" );
871 : : pClassScrollBarBox =
872 [ + - ][ + - ]: 1440 : new RscClass( nId, RSC_SCROLLBARBOX, pClassWindow );
873 [ + - ]: 1440 : pClassScrollBarBox->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
874 [ + - ]: 1440 : aNmTb.Put( nId, CLASSNAME, pClassScrollBarBox );
875 [ + - ]: 1440 : pRoot->Insert( pClassScrollBarBox );
876 [ + - ]: 1440 : INS_WINBIT(pClassScrollBarBox,Sizeable)
877 : :
878 : : /********** S F X S T Y L E F A M I L Y I T E M **********************/
879 : : pClassSfxStyleFamilyItem = InitClassSfxStyleFamilyItem( pClassMgr,
880 : : pClassBitmap,
881 : : pClassImage,
882 [ + - ]: 1440 : pLangStringLongTupelList );
883 [ + - ]: 1440 : pRoot->Insert( pClassSfxStyleFamilyItem );
884 : :
885 : : /********** S F X T E M P L A T E D I A L O G ************************/
886 : : pClassSfxTemplateDialog = InitClassSfxTemplateDialog( pClassMgr,
887 [ + - ]: 1440 : pClassSfxStyleFamilyItem );
888 [ + - ]: 1440 : pRoot->Insert( pClassSfxTemplateDialog );
889 : :
890 : : /********** S F X I N F O I T E M ************************************/
891 [ + - ]: 1440 : pClassSfxSlotInfo = InitClassSfxSlotInfo( pClassMgr );
892 [ + - ]: 1440 : pRoot->Insert( pClassSfxSlotInfo );
893 : : }
894 : :
895 [ + - ]: 1440 : aNmTb.SetSort();
896 : 1440 : }
897 : :
898 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|