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 : #include <stdlib.h>
22 : #include <stdio.h>
23 :
24 : #include <tools/rc.h>
25 : #include <tools/wintypes.hxx>
26 :
27 : #include <rsctree.hxx>
28 : #include <rsctop.hxx>
29 : #include <rscrange.hxx>
30 : #include <rscconst.hxx>
31 : #include <rscflag.hxx>
32 : #include <rscstr.hxx>
33 : #include <rsccont.hxx>
34 : #include <rscmgr.hxx>
35 : #include <rscclass.hxx>
36 : #include <rsckey.hxx>
37 : #include <rscdb.hxx>
38 : #include <rsclex.hxx>
39 : #include <rscyacc.hxx>
40 :
41 : #define INS_WINBIT( pClass, WinBit ) \
42 : InsWinBit( pClass, #WinBit, n##WinBit##Id );
43 :
44 419 : void RscTypCont::Init()
45 : {
46 : RscEnum * pFieldUnits;
47 : RscEnum * pTimeFieldFormat;
48 : RscEnum * pColor;
49 : RscEnum * pMapUnit;
50 : RscEnum * pKey;
51 : RscEnum * pTriState;
52 : RscTupel * pGeometry;
53 : RscArray * pLangGeometry;
54 : RscCont * pStringList;
55 : RscArray * pLangStringList;
56 : RscTupel * pStringTupel;
57 : RscTupel * pStringLongTupel;
58 : RscCont * pStringTupelList;
59 : RscCont * pStringLongTupelList;
60 : RscArray * pLangStringLongTupelList;
61 :
62 : RscTop * pClassMgr;
63 : RscTop * pClassString;
64 : RscTop * pClassStringArray;
65 : RscTop * pClassBitmap;
66 : RscTop * pClassColor;
67 : RscTop * pClassImage;
68 : RscTop * pClassImageList;
69 : RscTop * pClassWindow;
70 : RscTop * pClassSystemWindow;
71 : RscTop * pClassWorkWindow;
72 : RscTop * pClassControl;
73 : RscTop * pClassButton;
74 : RscTop * pClassCheckBox;
75 : RscTop * pClassPushButton;
76 : RscTop * pClassHelpButton;
77 : RscTop * pClassRadioButton;
78 : RscTop * pClassImageButton;
79 : RscTop * pClassEdit;
80 : RscTop * pClassListBox;
81 : RscTop * pClassComboBox;
82 : RscTop * pClassFixedText;
83 : RscTop * pClassFixedImage;
84 : RscTop * pClassKeyCode;
85 : RscTop * pLangClassKeyCode;
86 : RscTop * pClassAccelItem;
87 : RscTop * pClassAccel;
88 : RscTop * pClassMenuItem;
89 : RscTop * pClassMenu;
90 : RscTop * pClassSplitter;
91 : RscTop * pClassSplitWindow;
92 : RscTop * pClassSpinButton;
93 : RscTop * pClassTime;
94 : RscTop * pClassDate;
95 : RscTop * pClassSpinField;
96 : RscTop * pClassNumericField;
97 : RscTop * pClassMetricField;
98 : RscTop * pClassDateField;
99 : RscTop * pClassTimeField;
100 : RscTop * pClassDockingWindow;
101 : RscTop * pClassToolBoxItem;
102 : RscTop * pClassToolBox;
103 : RscTop * pClassFixedLine;
104 : RscTop * pClassSfxStyleFamilyItem;
105 : RscTop * pClassSfxTemplateDialog;
106 : RscTop * pClassSfxSlotInfo;
107 :
108 : Atom nId;
109 :
110 419 : aNmTb.SetSort( false );
111 : {
112 419 : aNmTb.Put( "LINE", LINE, (long)0 );
113 419 : aNmTb.Put( "NOT", NOT, (long)0 );
114 419 : aNmTb.Put( "DEFINE", DEFINE, (long)0 );
115 419 : aNmTb.Put( "INCLUDE", INCLUDE, (long)0 );
116 419 : aNmTb.Put( "DEFAULT", DEFAULT, (long)0 );
117 419 : aNmTb.Put( "class", CLASS, (long)0 );
118 419 : aNmTb.Put( "extendable", EXTENDABLE, (long)0 );
119 419 : aNmTb.Put( "writeifset", WRITEIFSET, (long)0 );
120 :
121 : /* Werte fuer Aufzaehlungstypen */
122 419 : aNmTb.Put( "TRUE", BOOLEAN, (long)sal_True );
123 419 : aNmTb.Put( "FALSE", BOOLEAN, (long)sal_False );
124 :
125 419 : aNmTb.Put( "XSCALE", XSCALE , (long)0 );
126 419 : aNmTb.Put( "YSCALE", YSCALE , (long)0 );
127 419 : aNmTb.Put( "RGB", RGB , (long)0 );
128 419 : aNmTb.Put( "POSSIZE", GEOMETRY, (long)0 );
129 419 : aNmTb.Put( "POS", POSITION, (long)0 );
130 419 : aNmTb.Put( "SIZE", DIMENSION, (long)0 );
131 419 : aNmTb.Put( "ZoomInOutputSize", INZOOMOUTPUTSIZE,(long)0 );
132 419 : aNmTb.Put( "FloatingPos", FLOATINGPOS, (long)0 );
133 : }
134 : {
135 419 : aShort.SetRange( -32768, 32767 );
136 :
137 419 : aUShort.SetRange( 0, 0xFFFF );
138 :
139 419 : aLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
140 419 : aEnumLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
141 :
142 419 : aIdUShort.SetRange( 0, 0xFFFF );
143 :
144 419 : aIdNoZeroUShort.SetRange( 1, 0xFFFF );
145 :
146 419 : aNoZeroShort.SetRange( -32768, 32767 );
147 419 : aNoZeroShort.SetOutRange( 0 );
148 :
149 419 : a1to12Short.SetRange( 1, 12 );
150 419 : a0to23Short.SetRange( 0, 23 );
151 419 : a1to31Short.SetRange( 1, 31 );
152 419 : a0to59Short.SetRange( 0, 59 );
153 419 : a0to99Short.SetRange( 0, 99 );
154 419 : a0to9999Short.SetRange( 0, 9999 );
155 :
156 419 : aIdLong.SetRange( SAL_MIN_INT32, SAL_MAX_INT32 );
157 : }
158 : {
159 : // Variablenname fuer WinBits
160 419 : nWinBitVarId = aNmTb.Put( "_WinBits", VARNAME );
161 :
162 : // Windows
163 419 : nBorderId = pHS->getID( "WB_BORDER" );
164 419 : aWinBits.SetConstant( nBorderId, sal::static_int_cast<sal_Int32>(WB_BORDER) );
165 419 : nHideId = pHS->getID( "WB_HIDE" );
166 419 : aWinBits.SetConstant( nHideId, sal::static_int_cast<sal_Int32>(WB_HIDE) );
167 419 : nClipChildrenId = pHS->getID( "WB_CLIPCHILDREN" );
168 419 : aWinBits.SetConstant( nClipChildrenId, sal::static_int_cast<sal_Int32>(WB_CLIPCHILDREN) );
169 419 : nSizeableId = pHS->getID( "WB_SIZEABLE" );
170 419 : aWinBits.SetConstant( nSizeableId, sal::static_int_cast<sal_Int32>(WB_SIZEABLE) );
171 419 : nMoveableId = pHS->getID( "WB_MOVEABLE" );
172 419 : aWinBits.SetConstant( nMoveableId, sal::static_int_cast<sal_Int32>(WB_MOVEABLE) );
173 419 : nMinimizeId = pHS->getID( "WB_MINABLE" );
174 419 : aWinBits.SetConstant( nMinimizeId, 0 /*WB_MINABLE*/ );
175 419 : nMaximizeId = pHS->getID( "WB_MAXABLE" );
176 419 : aWinBits.SetConstant( nMaximizeId, 0 /*WB_MAXABLE*/ );
177 419 : nCloseableId = pHS->getID( "WB_CLOSEABLE" );
178 419 : aWinBits.SetConstant( nCloseableId, sal::static_int_cast<sal_Int32>(WB_CLOSEABLE) );
179 419 : nAppId = pHS->getID( "WB_APP" );
180 419 : aWinBits.SetConstant( nAppId, sal::static_int_cast<sal_Int32>(WB_APP) );
181 419 : nTabstopId = pHS->getID( "WB_TABSTOP" );
182 419 : aWinBits.SetConstant( nTabstopId, sal::static_int_cast<sal_Int32>(WB_TABSTOP) );
183 419 : nGroupId = pHS->getID( "WB_GROUP" );
184 419 : aWinBits.SetConstant( nGroupId, sal::static_int_cast<sal_Int32>(WB_GROUP) );
185 419 : nSysmodalId = pHS->getID( "WB_SYSMODAL" );
186 419 : aWinBits.SetConstant( nSysmodalId, 0 /*WB_SYSMODAL*/ );
187 : }
188 : {
189 419 : nLeftId = pHS->getID( "WB_LEFT" );
190 419 : aWinBits.SetConstant( nLeftId, sal::static_int_cast<sal_Int32>(WB_LEFT) );
191 419 : nCenterId = pHS->getID( "WB_CENTER" );
192 419 : aWinBits.SetConstant( nCenterId, sal::static_int_cast<sal_Int32>(WB_CENTER) );
193 419 : nRightId = pHS->getID( "WB_RIGHT" );
194 419 : aWinBits.SetConstant( nRightId, sal::static_int_cast<sal_Int32>(WB_RIGHT) );
195 419 : nTopId = pHS->getID( "WB_TOP" );
196 419 : aWinBits.SetConstant( nTopId, sal::static_int_cast<sal_Int32>(WB_TOP) );
197 419 : nVCenterId = pHS->getID( "WB_VCENTER" );
198 419 : aWinBits.SetConstant( nVCenterId, sal::static_int_cast<sal_Int32>(WB_VCENTER) );
199 419 : nBottomId = pHS->getID( "WB_BOTTOM" );
200 419 : aWinBits.SetConstant( nBottomId, sal::static_int_cast<sal_Int32>(WB_BOTTOM) );
201 419 : nHScrollId = pHS->getID( "WB_HSCROLL" );
202 419 : aWinBits.SetConstant( nHScrollId, sal::static_int_cast<sal_Int32>(WB_HSCROLL) );
203 419 : nVScrollId = pHS->getID( "WB_VSCROLL" );
204 419 : aWinBits.SetConstant( nVScrollId, sal::static_int_cast<sal_Int32>(WB_VSCROLL) );
205 419 : nSortId = pHS->getID( "WB_SORT" );
206 419 : aWinBits.SetConstant( nSortId, sal::static_int_cast<sal_Int32>(WB_SORT) );
207 419 : nDefaultId = pHS->getID( "WB_DEFBUTTON" );
208 419 : aWinBits.SetConstant( nDefaultId, sal::static_int_cast<sal_Int32>(WB_DEFBUTTON) );
209 419 : nRepeatId = pHS->getID( "WB_REPEAT" );
210 419 : aWinBits.SetConstant( nRepeatId, sal::static_int_cast<sal_Int32>(WB_REPEAT) );
211 419 : nSVLookId = pHS->getID( "WB_SVLOOK" );
212 419 : aWinBits.SetConstant( nSVLookId, sal::static_int_cast<sal_Int32>(WB_3DLOOK) );
213 419 : nDropDownId = pHS->getID( "WB_DROPDOWN" );
214 419 : aWinBits.SetConstant( nDropDownId, sal::static_int_cast<sal_Int32>(WB_DROPDOWN) );
215 419 : nPassWordId = pHS->getID( "WB_PASSWORD" );
216 419 : aWinBits.SetConstant( nPassWordId, sal::static_int_cast<sal_Int32>(WB_PASSWORD) );
217 419 : nReadOnlyId = pHS->getID( "WB_READONLY" );
218 419 : aWinBits.SetConstant( nReadOnlyId, sal::static_int_cast<sal_Int32>(WB_READONLY) );
219 419 : nAutoSizeId = pHS->getID( "WB_AUTOSIZE" );
220 419 : aWinBits.SetConstant( nAutoSizeId, sal::static_int_cast<sal_Int32>(WB_AUTOSIZE) );
221 419 : nSpinId = pHS->getID( "WB_SPIN" );
222 419 : aWinBits.SetConstant( nSpinId, sal::static_int_cast<sal_Int32>(WB_SPIN) );
223 419 : nTabControlId = pHS->getID( "WB_DIALOGCONTROL" );
224 419 : aWinBits.SetConstant( nTabControlId, sal::static_int_cast<sal_Int32>(WB_DIALOGCONTROL) );
225 419 : nSimpleModeId = pHS->getID( "WB_SIMPLEMODE" );
226 419 : aWinBits.SetConstant( nSimpleModeId, sal::static_int_cast<sal_Int32>(WB_SIMPLEMODE) );
227 419 : nDragId = pHS->getID( "WB_DRAG" );
228 419 : aWinBits.SetConstant( nDragId, sal::static_int_cast<sal_Int32>(WB_DRAG) );
229 419 : nScrollId = pHS->getID( "WB_SCROLL" );
230 419 : aWinBits.SetConstant( nScrollId, sal::static_int_cast<sal_Int32>(WB_SCROLL) );
231 419 : nZoomableId = pHS->getID( "WB_ZOOMABLE" );
232 419 : aWinBits.SetConstant( nZoomableId, sal::static_int_cast<sal_Int32>(WB_ROLLABLE) );
233 419 : nHideWhenDeactivateId = pHS->getID( "WB_HIDEWHENDEACTIVATE" );
234 419 : aWinBits.SetConstant( nHideWhenDeactivateId, 0 /*WB_HIDEWHENDEACTIVATE*/ );
235 419 : nAutoHScrollId = pHS->getID( "WB_AUTOHSCROLL" );
236 419 : aWinBits.SetConstant( nAutoHScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOHSCROLL) );
237 419 : nAutoVScrollId = pHS->getID( "WB_AUTOVSCROLL" );
238 419 : aWinBits.SetConstant( nAutoVScrollId, sal::static_int_cast<sal_Int32>(WB_AUTOVSCROLL) );
239 419 : nDDExtraWidthId = pHS->getID( "WB_DDEXTRAWIDTH" );
240 419 : aWinBits.SetConstant( nDDExtraWidthId, 0 /*WB_DDEXTRAWIDTH*/ );
241 419 : nWordBreakId = pHS->getID( "WB_WORDBREAK" );
242 419 : aWinBits.SetConstant( nWordBreakId, sal::static_int_cast<sal_Int32>(WB_WORDBREAK) );
243 419 : nLeftLabelId = pHS->getID( "WB_LEFTLABEL" );
244 419 : aWinBits.SetConstant( nLeftLabelId, 0 /*WB_LEFTLABEL*/ );
245 419 : nHasLinesId = pHS->getID( "WB_HASLINES" );
246 419 : aWinBits.SetConstant( nHasLinesId, sal::static_int_cast<sal_Int32>(WB_HASLINES) );
247 419 : nHasButtonsId = pHS->getID( "WB_HASBUTTONS" );
248 419 : aWinBits.SetConstant( nHasButtonsId, sal::static_int_cast<sal_Int32>(WB_HASBUTTONS) );
249 419 : nRectStyleId = pHS->getID( "WB_RECTSTYLE" );
250 419 : aWinBits.SetConstant( nRectStyleId, sal::static_int_cast<sal_Int32>(WB_RECTSTYLE) );
251 419 : nLineSpacingId = pHS->getID( "WB_LINESPACING" );
252 419 : aWinBits.SetConstant( nLineSpacingId, sal::static_int_cast<sal_Int32>(WB_LINESPACING) );
253 419 : nSmallStyleId = pHS->getID( "WB_SMALLSTYLE" );
254 419 : aWinBits.SetConstant( nSmallStyleId, sal::static_int_cast<sal_Int32>(WB_SMALLSTYLE) );
255 419 : nEnableResizingId = pHS->getID( "WB_ENABLERESIZING" );
256 419 : aWinBits.SetConstant( nEnableResizingId, 0 /*WB_ENABLERESIZING*/ );
257 419 : nDockableId = pHS->getID( "WB_DOCKABLE" );
258 419 : aWinBits.SetConstant( nDockableId, sal::static_int_cast<sal_Int32>(WB_DOCKABLE) );
259 419 : nScaleId = pHS->getID( "WB_SCALE" );
260 419 : aWinBits.SetConstant( nScaleId, sal::static_int_cast<sal_Int32>(WB_SCALE) );
261 419 : nIgnoreTabId = pHS->getID( "WB_IGNORETAB" );
262 419 : aWinBits.SetConstant( nIgnoreTabId, sal::static_int_cast<sal_Int32>(WB_IGNORETAB) );
263 419 : nNoSplitDrawId = pHS->getID( "WB_NOSPLITDRAW" );
264 419 : aWinBits.SetConstant( nNoSplitDrawId, sal::static_int_cast<sal_Int32>(WB_NOSPLITDRAW) );
265 419 : nTopImageId = pHS->getID( "WB_TOPIMAGE" );
266 419 : aWinBits.SetConstant( nTopImageId, sal::static_int_cast<sal_Int32>(WB_TOPIMAGE) );
267 419 : nNoLabelId = pHS->getID( "WB_NOLABEL" );
268 419 : aWinBits.SetConstant( nNoLabelId, sal::static_int_cast<sal_Int32>(WB_NOLABEL) );
269 419 : nVertId = pHS->getID( "WB_VERT" );
270 419 : aWinBits.SetConstant( nVertId, sal::static_int_cast<sal_Int32>(WB_VERT) );
271 419 : nSysWinId = pHS->getID( "WB_SYSTEMWINDOW" );
272 419 : aWinBits.SetConstant( nSysWinId, sal::static_int_cast<sal_Int32>(WB_SYSTEMWINDOW) );
273 419 : nStdPopupId = pHS->getID( "WB_STDPOPUP" );
274 419 : aWinBits.SetConstant( nStdPopupId, sal::static_int_cast<sal_Int32>(WB_STDPOPUP) );
275 : }
276 : {
277 419 : InitLangType();
278 419 : aBaseLst.push_back( pFieldUnits = InitFieldUnitsType() );
279 419 : aBaseLst.push_back( pTimeFieldFormat = InitTimeFieldFormat() );
280 419 : aBaseLst.push_back( pColor = InitColor() );
281 419 : aBaseLst.push_back( pMapUnit = InitMapUnit() );
282 419 : aBaseLst.push_back( pKey = InitKey() );
283 419 : aBaseLst.push_back( pTriState = InitTriState() );
284 :
285 419 : aBaseLst.push_back( pGeometry = InitGeometry() );
286 419 : aBaseLst.push_back( pLangGeometry = InitLangGeometry( pGeometry ) );
287 419 : aBaseLst.push_back( pStringList = InitStringList() );
288 419 : aBaseLst.push_back( pLangStringList = InitLangStringList( pStringList ) );
289 419 : aBaseLst.push_back( pStringTupel = InitStringTupel() );
290 419 : aBaseLst.push_back( pStringTupelList = InitStringTupelList( pStringTupel ) );
291 419 : aBaseLst.push_back( InitLangStringTupelList( pStringTupelList ) );
292 419 : aBaseLst.push_back( pStringLongTupel = InitStringLongTupel() );
293 419 : aBaseLst.push_back( pStringLongTupelList = InitStringLongTupelList( pStringLongTupel ) );
294 419 : aBaseLst.push_back( pLangStringLongTupelList = InitLangStringLongTupelList( pStringLongTupelList ) );
295 : }
296 : {
297 419 : pRoot = pClassMgr = InitClassMgr();
298 :
299 838 : aVersion.pClass = new RscClass( pHS->getID( "VersionControl" ),
300 419 : RSC_VERSIONCONTROL, pClassMgr );
301 419 : aVersion = aVersion.pClass->Create( NULL, RSCINST() );
302 :
303 419 : pClassString = InitClassString( pClassMgr );
304 419 : pRoot->Insert( pClassString );
305 :
306 : // String als Referenzklasse des Basisstrings einsetzen
307 419 : aString.SetRefClass( pClassString );
308 :
309 : // Klasse anlegen
310 419 : nId = pHS->getID( "StringArray" );
311 419 : pClassStringArray = new RscClass( nId, RSC_STRINGARRAY, pClassMgr );
312 419 : pClassStringArray->SetCallPar( *pStdPar1, *pStdPar2, *pStdParType );
313 419 : aNmTb.Put( nId, CLASSNAME, pClassStringArray );
314 419 : pRoot->Insert( pClassStringArray );
315 :
316 : // Variablen anlegen
317 419 : nId = aNmTb.Put( "ItemList", VARNAME );
318 419 : pClassStringArray->SetVariable( nId, pLangStringLongTupelList );
319 :
320 419 : pClassBitmap = InitClassBitmap( pClassMgr );
321 419 : pRoot->Insert( pClassBitmap );
322 :
323 : }
324 : {
325 419 : pClassColor = InitClassColor( pClassMgr, pColor );
326 419 : pRoot->Insert( pClassColor );
327 :
328 419 : pClassImage = InitClassImage( pClassMgr, pClassBitmap, pClassColor );
329 419 : pRoot->Insert( pClassImage );
330 :
331 : pClassImageList = InitClassImageList( pClassMgr,
332 419 : pClassColor, pStringLongTupelList );
333 419 : pRoot->Insert( pClassImageList );
334 :
335 : pClassWindow = InitClassWindow( pClassMgr, pMapUnit,
336 419 : pLangGeometry );
337 419 : pRoot->Insert( pClassWindow );
338 : }
339 : {
340 :
341 419 : pClassSystemWindow = InitClassSystemWindow( pClassWindow );
342 : //aBaseLst.Insert( pClassSystemWindow, LIST_APPEND );
343 419 : pRoot->Insert( pClassSystemWindow );
344 :
345 419 : pClassWorkWindow = InitClassWorkWindow( pClassSystemWindow );
346 419 : pRoot->Insert( pClassWorkWindow );
347 : }
348 : {
349 419 : pClassControl = InitClassControl( pClassWindow );
350 419 : pRoot->Insert( pClassControl );
351 :
352 : // Klasse anlegen
353 419 : nId = pHS->getID( "Button" );
354 419 : pClassButton = new RscClass( nId, RSC_BUTTON, pClassControl );
355 419 : pClassButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
356 419 : aNmTb.Put( nId, CLASSNAME, pClassButton );
357 419 : pRoot->Insert( pClassButton );
358 :
359 419 : pClassCheckBox = InitClassCheckBox( pClassButton );
360 419 : pRoot->Insert( pClassCheckBox );
361 :
362 : // Klasse anlegen
363 419 : pClassPushButton = InitClassPushButton( pClassButton );
364 419 : pRoot->Insert( pClassPushButton );
365 :
366 : // Klasse anlegen
367 419 : nId = pHS->getID( "HelpButton" );
368 : pClassHelpButton = new RscClass( nId, RSC_HELPBUTTON,
369 419 : pClassPushButton );
370 419 : pClassHelpButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
371 419 : aNmTb.Put( nId, CLASSNAME, pClassHelpButton );
372 419 : pRoot->Insert( pClassHelpButton );
373 : }
374 : {
375 419 : pClassRadioButton = InitClassRadioButton( pClassButton );
376 419 : pRoot->Insert( pClassRadioButton );
377 :
378 : pClassImageButton = InitClassImageButton( pClassPushButton,
379 419 : pClassImage, pTriState );
380 419 : pRoot->Insert( pClassImageButton );
381 :
382 419 : pClassEdit = InitClassEdit( pClassControl );
383 419 : pRoot->Insert( pClassEdit );
384 : }
385 : {
386 419 : pClassListBox = InitClassListBox( pClassControl, pLangStringLongTupelList );
387 419 : pRoot->Insert( pClassListBox );
388 :
389 419 : pClassComboBox = InitClassComboBox( pClassEdit, pLangStringList );
390 419 : pRoot->Insert( pClassComboBox );
391 :
392 419 : pClassFixedText = InitClassFixedText( pClassControl );
393 419 : pRoot->Insert( pClassFixedText );
394 :
395 419 : pClassFixedImage = InitClassFixedImage( pClassControl, pClassImage );
396 419 : pRoot->Insert( pClassFixedImage );
397 :
398 419 : pClassKeyCode = InitClassKeyCode( pClassMgr, pKey );
399 419 : pRoot->Insert( pClassKeyCode );
400 : {
401 838 : pLangClassKeyCode = new RscClassArray( pHS->getID( "LangKeyCode" ),
402 419 : RSC_KEYCODE, pClassKeyCode, &aLangType );
403 419 : aBaseLst.push_back( pLangClassKeyCode );
404 : }
405 :
406 419 : pClassAccelItem = InitClassAccelItem( pClassMgr, pLangClassKeyCode );
407 419 : pRoot->Insert( pClassAccelItem );
408 : }
409 : {
410 419 : pClassAccel = InitClassAccel( pClassMgr, pClassAccelItem );
411 419 : pRoot->Insert( pClassAccel );
412 419 : nAcceleratorType = pClassAccel->GetId();
413 :
414 : // pClassAccel ist erst hier definiert
415 419 : nId = aNmTb.Put( "SubAccelerator", VARNAME );
416 : pClassAccelItem->SetVariable( nId, pClassAccel, NULL, VAR_SVDYNAMIC,
417 419 : ACCELITEM_ACCEL );
418 :
419 : pClassMenuItem = InitClassMenuItem( pClassMgr, pClassBitmap,
420 419 : pLangClassKeyCode );
421 419 : pRoot->Insert( pClassMenuItem );
422 :
423 419 : pClassMenu = InitClassMenu( pClassMgr, pClassMenuItem );
424 419 : pRoot->Insert( pClassMenu );
425 :
426 : // pClassMenu ist erst hier definiert
427 419 : nId = aNmTb.Put( "SubMenu", VARNAME );
428 : pClassMenuItem->SetVariable( nId, pClassMenu, NULL, VAR_SVDYNAMIC,
429 419 : RSC_MENUITEM_MENU );
430 : }
431 : {
432 419 : pClassSplitter = InitClassSplitter( pClassWindow );
433 419 : pRoot->Insert( pClassSplitter );
434 :
435 419 : pClassSplitWindow = InitClassSplitWindow( pClassWindow );
436 419 : pRoot->Insert( pClassSplitWindow );
437 :
438 : // Klasse anlegen
439 419 : nId = pHS->getID( "SpinButton" );
440 419 : pClassSpinButton = new RscClass( nId, RSC_SPINBUTTON, pClassControl );
441 419 : pClassSpinButton->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
442 419 : aNmTb.Put( nId, CLASSNAME, pClassSpinButton );
443 : {
444 : RscClient * pClient;
445 :
446 : // Clientvariablen einfuegen
447 : // Sysmodal
448 : aBaseLst.push_back(
449 1257 : pClient = new RscClient( pHS->getID( "sal_Bool" ), RSC_NOTYPE, &aWinBits, nRepeatId )
450 838 : );
451 419 : nId = aNmTb.Put( "Repeat", VARNAME );
452 : pClassSpinButton->SetVariable( nId, pClient, NULL,
453 419 : VAR_NODATAINST, 0, nWinBitVarId );
454 : }
455 419 : pRoot->Insert( pClassSpinButton );
456 : }
457 : {
458 419 : pClassTime = InitClassTime( pClassMgr );
459 419 : pRoot->Insert( pClassTime );
460 :
461 419 : pClassDate = InitClassDate( pClassMgr );
462 419 : pRoot->Insert( pClassDate );
463 : }
464 : {
465 419 : pClassSpinField = InitClassSpinField( pClassEdit );
466 419 : pRoot->Insert( pClassSpinField );
467 : }
468 : {
469 : { // Mehrfachvererbung von Hand
470 419 : RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
471 419 : aBaseLst.push_back( pClassTmp );
472 :
473 419 : pClassNumericField = InitClassNumericField( pClassTmp );
474 419 : pRoot->Insert( pClassNumericField );
475 : }
476 : { // Mehrfachvererbung von Hand
477 419 : RscTop * pClassTmp = InitClassNumericFormatter( pClassSpinField );
478 419 : aBaseLst.push_back( pClassTmp );
479 419 : pClassTmp = InitClassMetricFormatter( pClassTmp, pFieldUnits );
480 419 : aBaseLst.push_back( pClassTmp );
481 :
482 419 : pClassMetricField = InitClassMetricField( pClassTmp );
483 419 : pRoot->Insert( pClassMetricField );
484 : }
485 : { // Mehrfachvererbung von Hand
486 419 : RscTop * pClassTmp = InitClassDateFormatter( pClassSpinField, pClassDate );
487 419 : aBaseLst.push_back( pClassTmp );
488 :
489 419 : pClassDateField = InitClassDateField( pClassTmp, pClassDate );
490 419 : pRoot->Insert( pClassDateField );
491 : }
492 : { // Mehrfachvererbung von Hand
493 : RscTop * pClassTmp = InitClassTimeFormatter( pClassSpinField, pClassTime,
494 419 : pTimeFieldFormat );
495 419 : aBaseLst.push_back( pClassTmp );
496 :
497 419 : pClassTimeField = InitClassTimeField( pClassTmp, pClassTime );
498 419 : pRoot->Insert( pClassTimeField );
499 : }
500 : }
501 : {
502 419 : pClassDockingWindow = InitClassDockingWindow( pClassWindow, pMapUnit );
503 419 : pRoot->Insert( pClassDockingWindow );
504 :
505 : pClassToolBoxItem = InitClassToolBoxItem( pClassMgr, pClassBitmap,
506 419 : pClassImage, pTriState );
507 419 : pRoot->Insert( pClassToolBoxItem );
508 :
509 : pClassToolBox = InitClassToolBox( pClassDockingWindow, pClassToolBoxItem,
510 419 : pClassImageList );
511 419 : pRoot->Insert( pClassToolBox );
512 :
513 : // Klasse anlegen
514 419 : nId = pHS->getID( "FixedLine" );
515 : pClassFixedLine =
516 419 : new RscClass( nId, RSC_FIXEDLINE, pClassControl );
517 419 : pClassFixedLine->SetCallPar( *pWinPar1, *pWinPar2, *pWinParType );
518 :
519 419 : INS_WINBIT(pClassFixedLine,Vert)
520 :
521 419 : aNmTb.Put( nId, CLASSNAME, pClassFixedLine );
522 419 : pRoot->Insert( pClassFixedLine );
523 :
524 : pClassSfxStyleFamilyItem = InitClassSfxStyleFamilyItem( pClassMgr,
525 : pClassBitmap,
526 : pClassImage,
527 419 : pLangStringLongTupelList );
528 419 : pRoot->Insert( pClassSfxStyleFamilyItem );
529 :
530 : pClassSfxTemplateDialog = InitClassSfxTemplateDialog( pClassMgr,
531 419 : pClassSfxStyleFamilyItem );
532 419 : pRoot->Insert( pClassSfxTemplateDialog );
533 :
534 419 : pClassSfxSlotInfo = InitClassSfxSlotInfo( pClassMgr );
535 419 : pRoot->Insert( pClassSfxSlotInfo );
536 : }
537 :
538 419 : aNmTb.SetSort();
539 419 : }
540 :
541 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|