1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
28 #include <rsctree.hxx>
30 #include <rscrange.hxx>
31 #include <rscconst.hxx>
32 #include <rscflag.hxx>
34 #include <rsccont.hxx>
36 #include <rscclass.hxx>
41 #include <rscyacc.hxx>
43 #define INS_WINBIT( pClass, WinBit ) \
44 InsWinBit( pClass, #WinBit, n##WinBit##Id );
46 void RscTypCont::Init()
48 RscEnum
* pFieldUnits
;
49 RscEnum
* pTimeFieldFormat
;
54 RscEnum
* pMessButtons
;
55 RscEnum
* pMessDefButton
;
57 RscArray
* pLangGeometry
;
58 RscCont
* pStringList
;
59 RscArray
* pLangStringList
;
60 RscTupel
* pStringTupel
;
61 RscTupel
* pStringLongTupel
;
62 RscCont
* pStringTupelList
;
63 RscCont
* pStringLongTupelList
;
64 RscArray
* pLangStringTupelList
;
65 RscArray
* pLangStringLongTupelList
;
68 RscTop
* pClassString
;
69 RscTop
* pClassStringArray
;
70 RscTop
* pClassBitmap
;
73 RscTop
* pClassImageList
;
74 RscTop
* pClassWindow
;
75 RscTop
* pClassSystemWindow
;
76 RscTop
* pClassWorkWindow
;
77 RscTop
* pClassDialog
;
78 RscTop
* pClassModalDialog
;
79 RscTop
* pClassModelessDialog
;
80 RscTop
* pClassControl
;
81 RscTop
* pClassButton
;
82 RscTop
* pClassCheckBox
;
83 RscTop
* pClassPushButton
;
84 RscTop
* pClassOKButton
;
85 RscTop
* pClassCancelButton
;
86 RscTop
* pClassHelpButton
;
87 RscTop
* pClassRadioButton
;
88 RscTop
* pClassImageRadioButton
;
89 RscTop
* pClassImageButton
;
90 RscTop
* pClassTriStateBox
;
92 RscTop
* pClassMultiLineEdit
;
93 RscTop
* pClassScrollBar
;
94 RscTop
* pClassListBox
;
95 RscTop
* pClassMultiListBox
;
96 RscTop
* pClassComboBox
;
97 RscTop
* pClassFixedText
;
98 RscTop
* pClassFixedBitmap
;
99 RscTop
* pClassFixedImage
;
100 RscTop
* pClassGroupBox
;
101 RscTop
* pClassKeyCode
;
102 RscTop
* pLangClassKeyCode
;
103 RscTop
* pClassAccelItem
;
104 RscTop
* pClassAccel
;
105 RscTop
* pClassMenuItem
;
107 RscTop
* pClassMenuButton
;
108 RscTop
* pClassMessBox
;
109 RscTop
* pClassInfoBox
;
110 RscTop
* pClassWarningBox
;
111 RscTop
* pClassErrorBox
;
112 RscTop
* pClassQueryBox
;
113 RscTop
* pClassSplitter
;
114 RscTop
* pClassSplitWindow
;
115 RscTop
* pClassSpinButton
;
118 RscTop
* pClassSpinField
;
119 RscTop
* pClassPatternField
;
120 RscTop
* pClassNumericField
;
121 RscTop
* pClassMetricField
;
122 RscTop
* pClassCurrencyField
;
123 RscTop
* pClassLongCurrencyField
;
124 RscTop
* pClassDateField
;
125 RscTop
* pClassTimeField
;
126 RscTop
* pClassPatternBox
;
127 RscTop
* pClassNumericBox
;
128 RscTop
* pClassMetricBox
;
129 RscTop
* pClassCurrencyBox
;
130 RscTop
* pClassLongCurrencyBox
;
131 RscTop
* pClassDateBox
;
132 RscTop
* pClassTimeBox
;
133 RscTop
* pClassDockingWindow
;
134 RscTop
* pClassToolBoxItem
;
135 RscTop
* pClassToolBox
;
136 RscTop
* pClassStatusBar
;
137 RscTop
* pClassMoreButton
;
138 RscTop
* pClassFloatingWindow
;
139 RscTop
* pClassTabPage
;
140 RscTop
* pClassTabDialog
;
141 RscTop
* pClassTabControlItem
;
142 RscTop
* pClassTabControl
;
143 RscTop
* pClassFixedLine
;
144 RscTop
* pClassScrollBarBox
;
145 RscTop
* pClassSfxStyleFamilyItem
;
146 RscTop
* pClassSfxTemplateDialog
;
147 RscTop
* pClassSfxSlotInfo
;
151 aNmTb
.SetSort( sal_False
);
153 aNmTb
.Put( "LINE", LINE
, (long)0 );
154 aNmTb
.Put( "NOT", NOT
, (long)0 );
155 aNmTb
.Put( "DEFINE", DEFINE
, (long)0 );
156 aNmTb
.Put( "INCLUDE", INCLUDE
, (long)0 );
157 aNmTb
.Put( "DEFAULT", DEFAULT
, (long)0 );
158 aNmTb
.Put( "class", CLASS
, (long)0 );
159 aNmTb
.Put( "extendable", EXTENDABLE
, (long)0 );
160 aNmTb
.Put( "writeifset", WRITEIFSET
, (long)0 );
162 /* Werte fuer Aufzaehlungstypen */
163 aNmTb
.Put( "TRUE", BOOLEAN
, (long)sal_True
);
164 aNmTb
.Put( "FALSE", BOOLEAN
, (long)sal_False
);
166 aNmTb
.Put( "XSCALE", XSCALE
, (long)0 );
167 aNmTb
.Put( "YSCALE", YSCALE
, (long)0 );
168 aNmTb
.Put( "RGB", RGB
, (long)0 );
169 aNmTb
.Put( "POSSIZE", GEOMETRY
, (long)0 );
170 aNmTb
.Put( "POS", POSITION
, (long)0 );
171 aNmTb
.Put( "SIZE", DIMENSION
, (long)0 );
172 aNmTb
.Put( "ZoomInOutputSize", INZOOMOUTPUTSIZE
,(long)0 );
173 aNmTb
.Put( "FloatingPos", FLOATINGPOS
, (long)0 );
176 aShort
.SetRange( -32768, 32767 );
178 aUShort
.SetRange( 0, 0xFFFF );
180 aLong
.SetRange( SAL_MIN_INT32
, SAL_MAX_INT32
);
181 aEnumLong
.SetRange( SAL_MIN_INT32
, SAL_MAX_INT32
);
183 aIdUShort
.SetRange( 0, 0xFFFF );
185 aIdNoZeroUShort
.SetRange( 1, 0xFFFF );
187 aNoZeroShort
.SetRange( -32768, 32767 );
188 aNoZeroShort
.SetOutRange( 0 );
190 a1to12Short
.SetRange( 1, 12 );
191 a0to23Short
.SetRange( 0, 23 );
192 a1to31Short
.SetRange( 1, 31 );
193 a0to59Short
.SetRange( 0, 59 );
194 a0to99Short
.SetRange( 0, 99 );
195 a0to9999Short
.SetRange( 0, 9999 );
197 aIdLong
.SetRange( SAL_MIN_INT32
, SAL_MAX_INT32
);
200 // Variablenname fuer WinBits
201 nWinBitVarId
= aNmTb
.Put( "_WinBits", VARNAME
);
204 nBorderId
= pHS
->getID( "WB_BORDER" );
205 aWinBits
.SetConstant( nBorderId
, sal::static_int_cast
<sal_Int32
>(WB_BORDER
) );
206 nHideId
= pHS
->getID( "WB_HIDE" );
207 aWinBits
.SetConstant( nHideId
, sal::static_int_cast
<sal_Int32
>(WB_HIDE
) );
208 nClipChildrenId
= pHS
->getID( "WB_CLIPCHILDREN" );
209 aWinBits
.SetConstant( nClipChildrenId
, sal::static_int_cast
<sal_Int32
>(WB_CLIPCHILDREN
) );
210 nSizeableId
= pHS
->getID( "WB_SIZEABLE" );
211 aWinBits
.SetConstant( nSizeableId
, sal::static_int_cast
<sal_Int32
>(WB_SIZEABLE
) );
212 nMoveableId
= pHS
->getID( "WB_MOVEABLE" );
213 aWinBits
.SetConstant( nMoveableId
, sal::static_int_cast
<sal_Int32
>(WB_MOVEABLE
) );
214 nMinimizeId
= pHS
->getID( "WB_MINABLE" );
215 aWinBits
.SetConstant( nMinimizeId
, 0 /*WB_MINABLE*/ );
216 nMaximizeId
= pHS
->getID( "WB_MAXABLE" );
217 aWinBits
.SetConstant( nMaximizeId
, 0 /*WB_MAXABLE*/ );
218 nCloseableId
= pHS
->getID( "WB_CLOSEABLE" );
219 aWinBits
.SetConstant( nCloseableId
, sal::static_int_cast
<sal_Int32
>(WB_CLOSEABLE
) );
220 nAppId
= pHS
->getID( "WB_APP" );
221 aWinBits
.SetConstant( nAppId
, sal::static_int_cast
<sal_Int32
>(WB_APP
) );
222 nTabstopId
= pHS
->getID( "WB_TABSTOP" );
223 aWinBits
.SetConstant( nTabstopId
, sal::static_int_cast
<sal_Int32
>(WB_TABSTOP
) );
224 nGroupId
= pHS
->getID( "WB_GROUP" );
225 aWinBits
.SetConstant( nGroupId
, sal::static_int_cast
<sal_Int32
>(WB_GROUP
) );
226 nSysmodalId
= pHS
->getID( "WB_SYSMODAL" );
227 aWinBits
.SetConstant( nSysmodalId
, 0 /*WB_SYSMODAL*/ );
230 nLeftId
= pHS
->getID( "WB_LEFT" );
231 aWinBits
.SetConstant( nLeftId
, sal::static_int_cast
<sal_Int32
>(WB_LEFT
) );
232 nCenterId
= pHS
->getID( "WB_CENTER" );
233 aWinBits
.SetConstant( nCenterId
, sal::static_int_cast
<sal_Int32
>(WB_CENTER
) );
234 nRightId
= pHS
->getID( "WB_RIGHT" );
235 aWinBits
.SetConstant( nRightId
, sal::static_int_cast
<sal_Int32
>(WB_RIGHT
) );
236 nTopId
= pHS
->getID( "WB_TOP" );
237 aWinBits
.SetConstant( nTopId
, sal::static_int_cast
<sal_Int32
>(WB_TOP
) );
238 nVCenterId
= pHS
->getID( "WB_VCENTER" );
239 aWinBits
.SetConstant( nVCenterId
, sal::static_int_cast
<sal_Int32
>(WB_VCENTER
) );
240 nBottomId
= pHS
->getID( "WB_BOTTOM" );
241 aWinBits
.SetConstant( nBottomId
, sal::static_int_cast
<sal_Int32
>(WB_BOTTOM
) );
242 nHScrollId
= pHS
->getID( "WB_HSCROLL" );
243 aWinBits
.SetConstant( nHScrollId
, sal::static_int_cast
<sal_Int32
>(WB_HSCROLL
) );
244 nVScrollId
= pHS
->getID( "WB_VSCROLL" );
245 aWinBits
.SetConstant( nVScrollId
, sal::static_int_cast
<sal_Int32
>(WB_VSCROLL
) );
246 nSortId
= pHS
->getID( "WB_SORT" );
247 aWinBits
.SetConstant( nSortId
, sal::static_int_cast
<sal_Int32
>(WB_SORT
) );
248 nDefaultId
= pHS
->getID( "WB_DEFBUTTON" );
249 aWinBits
.SetConstant( nDefaultId
, sal::static_int_cast
<sal_Int32
>(WB_DEFBUTTON
) );
250 nRepeatId
= pHS
->getID( "WB_REPEAT" );
251 aWinBits
.SetConstant( nRepeatId
, sal::static_int_cast
<sal_Int32
>(WB_REPEAT
) );
252 nSVLookId
= pHS
->getID( "WB_SVLOOK" );
253 aWinBits
.SetConstant( nSVLookId
, sal::static_int_cast
<sal_Int32
>(WB_3DLOOK
) );
254 nDropDownId
= pHS
->getID( "WB_DROPDOWN" );
255 aWinBits
.SetConstant( nDropDownId
, sal::static_int_cast
<sal_Int32
>(WB_DROPDOWN
) );
256 nPassWordId
= pHS
->getID( "WB_PASSWORD" );
257 aWinBits
.SetConstant( nPassWordId
, sal::static_int_cast
<sal_Int32
>(WB_PASSWORD
) );
258 nReadOnlyId
= pHS
->getID( "WB_READONLY" );
259 aWinBits
.SetConstant( nReadOnlyId
, sal::static_int_cast
<sal_Int32
>(WB_READONLY
) );
260 nAutoSizeId
= pHS
->getID( "WB_AUTOSIZE" );
261 aWinBits
.SetConstant( nAutoSizeId
, sal::static_int_cast
<sal_Int32
>(WB_AUTOSIZE
) );
262 nSpinId
= pHS
->getID( "WB_SPIN" );
263 aWinBits
.SetConstant( nSpinId
, sal::static_int_cast
<sal_Int32
>(WB_SPIN
) );
264 nTabControlId
= pHS
->getID( "WB_DIALOGCONTROL" );
265 aWinBits
.SetConstant( nTabControlId
, sal::static_int_cast
<sal_Int32
>(WB_DIALOGCONTROL
) );
266 nSimpleModeId
= pHS
->getID( "WB_SIMPLEMODE" );
267 aWinBits
.SetConstant( nSimpleModeId
, sal::static_int_cast
<sal_Int32
>(WB_SIMPLEMODE
) );
268 nDragId
= pHS
->getID( "WB_DRAG" );
269 aWinBits
.SetConstant( nDragId
, sal::static_int_cast
<sal_Int32
>(WB_DRAG
) );
270 nScrollId
= pHS
->getID( "WB_SCROLL" );
271 aWinBits
.SetConstant( nScrollId
, sal::static_int_cast
<sal_Int32
>(WB_SCROLL
) );
272 nZoomableId
= pHS
->getID( "WB_ZOOMABLE" );
273 aWinBits
.SetConstant( nZoomableId
, sal::static_int_cast
<sal_Int32
>(WB_ROLLABLE
) );
274 nHideWhenDeactivateId
= pHS
->getID( "WB_HIDEWHENDEACTIVATE" );
275 aWinBits
.SetConstant( nHideWhenDeactivateId
, 0 /*WB_HIDEWHENDEACTIVATE*/ );
276 nAutoHScrollId
= pHS
->getID( "WB_AUTOHSCROLL" );
277 aWinBits
.SetConstant( nAutoHScrollId
, sal::static_int_cast
<sal_Int32
>(WB_AUTOHSCROLL
) );
278 nAutoVScrollId
= pHS
->getID( "WB_AUTOVSCROLL" );
279 aWinBits
.SetConstant( nAutoVScrollId
, sal::static_int_cast
<sal_Int32
>(WB_AUTOVSCROLL
) );
280 nDDExtraWidthId
= pHS
->getID( "WB_DDEXTRAWIDTH" );
281 aWinBits
.SetConstant( nDDExtraWidthId
, 0 /*WB_DDEXTRAWIDTH*/ );
282 nWordBreakId
= pHS
->getID( "WB_WORDBREAK" );
283 aWinBits
.SetConstant( nWordBreakId
, sal::static_int_cast
<sal_Int32
>(WB_WORDBREAK
) );
284 nLeftLabelId
= pHS
->getID( "WB_LEFTLABEL" );
285 aWinBits
.SetConstant( nLeftLabelId
, 0 /*WB_LEFTLABEL*/ );
286 nHasLinesId
= pHS
->getID( "WB_HASLINES" );
287 aWinBits
.SetConstant( nHasLinesId
, sal::static_int_cast
<sal_Int32
>(WB_HASLINES
) );
288 nHasButtonsId
= pHS
->getID( "WB_HASBUTTONS" );
289 aWinBits
.SetConstant( nHasButtonsId
, sal::static_int_cast
<sal_Int32
>(WB_HASBUTTONS
) );
290 nRectStyleId
= pHS
->getID( "WB_RECTSTYLE" );
291 aWinBits
.SetConstant( nRectStyleId
, sal::static_int_cast
<sal_Int32
>(WB_RECTSTYLE
) );
292 nLineSpacingId
= pHS
->getID( "WB_LINESPACING" );
293 aWinBits
.SetConstant( nLineSpacingId
, sal::static_int_cast
<sal_Int32
>(WB_LINESPACING
) );
294 nSmallStyleId
= pHS
->getID( "WB_SMALLSTYLE" );
295 aWinBits
.SetConstant( nSmallStyleId
, sal::static_int_cast
<sal_Int32
>(WB_SMALLSTYLE
) );
296 nEnableResizingId
= pHS
->getID( "WB_ENABLERESIZING" );
297 aWinBits
.SetConstant( nEnableResizingId
, 0 /*WB_ENABLERESIZING*/ );
298 nDockableId
= pHS
->getID( "WB_DOCKABLE" );
299 aWinBits
.SetConstant( nDockableId
, sal::static_int_cast
<sal_Int32
>(WB_DOCKABLE
) );
300 nScaleId
= pHS
->getID( "WB_SCALE" );
301 aWinBits
.SetConstant( nScaleId
, sal::static_int_cast
<sal_Int32
>(WB_SCALE
) );
302 nIgnoreTabId
= pHS
->getID( "WB_IGNORETAB" );
303 aWinBits
.SetConstant( nIgnoreTabId
, sal::static_int_cast
<sal_Int32
>(WB_IGNORETAB
) );
304 nNoSplitDrawId
= pHS
->getID( "WB_NOSPLITDRAW" );
305 aWinBits
.SetConstant( nNoSplitDrawId
, sal::static_int_cast
<sal_Int32
>(WB_NOSPLITDRAW
) );
306 nTopImageId
= pHS
->getID( "WB_TOPIMAGE" );
307 aWinBits
.SetConstant( nTopImageId
, sal::static_int_cast
<sal_Int32
>(WB_TOPIMAGE
) );
308 nNoLabelId
= pHS
->getID( "WB_NOLABEL" );
309 aWinBits
.SetConstant( nNoLabelId
, sal::static_int_cast
<sal_Int32
>(WB_NOLABEL
) );
310 nVertId
= pHS
->getID( "WB_VERT" );
311 aWinBits
.SetConstant( nVertId
, sal::static_int_cast
<sal_Int32
>(WB_VERT
) );
312 nSysWinId
= pHS
->getID( "WB_SYSTEMWINDOW" );
313 aWinBits
.SetConstant( nSysWinId
, sal::static_int_cast
<sal_Int32
>(WB_SYSTEMWINDOW
) );
314 nStdPopupId
= pHS
->getID( "WB_STDPOPUP" );
315 aWinBits
.SetConstant( nStdPopupId
, sal::static_int_cast
<sal_Int32
>(WB_STDPOPUP
) );
319 aBaseLst
.push_back( pFieldUnits
= InitFieldUnitsType() );
320 aBaseLst
.push_back( pTimeFieldFormat
= InitTimeFieldFormat() );
321 aBaseLst
.push_back( pColor
= InitColor() );
322 aBaseLst
.push_back( pMapUnit
= InitMapUnit() );
323 aBaseLst
.push_back( pKey
= InitKey() );
324 aBaseLst
.push_back( pTriState
= InitTriState() );
325 aBaseLst
.push_back( pMessButtons
= InitMessButtons() );
326 aBaseLst
.push_back( pMessDefButton
= InitMessDefButton() );
328 aBaseLst
.push_back( pGeometry
= InitGeometry() );
329 aBaseLst
.push_back( pLangGeometry
= InitLangGeometry( pGeometry
) );
330 aBaseLst
.push_back( pStringList
= InitStringList() );
331 aBaseLst
.push_back( pLangStringList
= InitLangStringList( pStringList
) );
332 aBaseLst
.push_back( pStringTupel
= InitStringTupel() );
333 aBaseLst
.push_back( pStringTupelList
= InitStringTupelList( pStringTupel
) );
334 aBaseLst
.push_back( pLangStringTupelList
= InitLangStringTupelList( pStringTupelList
) );
335 aBaseLst
.push_back( pStringLongTupel
= InitStringLongTupel() );
336 aBaseLst
.push_back( pStringLongTupelList
= InitStringLongTupelList( pStringLongTupel
) );
337 aBaseLst
.push_back( pLangStringLongTupelList
= InitLangStringLongTupelList( pStringLongTupelList
) );
340 pRoot
= pClassMgr
= InitClassMgr();
342 aVersion
.pClass
= new RscClass( pHS
->getID( "VersionControl" ),
343 RSC_VERSIONCONTROL
, pClassMgr
);
344 aVersion
= aVersion
.pClass
->Create( NULL
, RSCINST() );
346 pClassString
= InitClassString( pClassMgr
);
347 pRoot
->Insert( pClassString
);
349 // String als Referenzklasse des Basisstrings einsetzen
350 aString
.SetRefClass( pClassString
);
353 nId
= pHS
->getID( "StringArray" );
354 pClassStringArray
= new RscClass( nId
, RSC_STRINGARRAY
, pClassMgr
);
355 pClassStringArray
->SetCallPar( *pStdPar1
, *pStdPar2
, *pStdParType
);
356 aNmTb
.Put( nId
, CLASSNAME
, pClassStringArray
);
357 pRoot
->Insert( pClassStringArray
);
360 nId
= aNmTb
.Put( "ItemList", VARNAME
);
361 pClassStringArray
->SetVariable( nId
, pLangStringLongTupelList
);
363 pClassBitmap
= InitClassBitmap( pClassMgr
);
364 pRoot
->Insert( pClassBitmap
);
368 pClassColor
= InitClassColor( pClassMgr
, pColor
);
369 pRoot
->Insert( pClassColor
);
371 pClassImage
= InitClassImage( pClassMgr
, pClassBitmap
, pClassColor
);
372 pRoot
->Insert( pClassImage
);
374 pClassImageList
= InitClassImageList( pClassMgr
,
375 pClassColor
, pStringLongTupelList
);
376 pRoot
->Insert( pClassImageList
);
378 pClassWindow
= InitClassWindow( pClassMgr
, pMapUnit
,
380 pRoot
->Insert( pClassWindow
);
384 pClassSystemWindow
= InitClassSystemWindow( pClassWindow
);
385 //aBaseLst.Insert( pClassSystemWindow, LIST_APPEND );
386 pRoot
->Insert( pClassSystemWindow
);
388 pClassWorkWindow
= InitClassWorkWindow( pClassSystemWindow
);
389 pRoot
->Insert( pClassWorkWindow
);
392 pClassDialog
= new RscClass( pHS
->getID( "Dialog" ),
393 RSC_DIALOG
, pClassSystemWindow
);
394 pClassDialog
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
395 aBaseLst
.push_back( pClassDialog
);
398 pClassModalDialog
= InitClassModalDialog( pClassDialog
);
399 pRoot
->Insert( pClassModalDialog
);
402 pClassModelessDialog
= InitClassModelessDialog( pClassDialog
);
403 pRoot
->Insert( pClassModelessDialog
);
406 pClassControl
= InitClassControl( pClassWindow
);
407 pRoot
->Insert( pClassControl
);
410 nId
= pHS
->getID( "Button" );
411 pClassButton
= new RscClass( nId
, RSC_BUTTON
, pClassControl
);
412 pClassButton
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
413 aNmTb
.Put( nId
, CLASSNAME
, pClassButton
);
414 pRoot
->Insert( pClassButton
);
416 pClassCheckBox
= InitClassCheckBox( pClassButton
);
417 pRoot
->Insert( pClassCheckBox
);
420 pClassPushButton
= InitClassPushButton( pClassButton
);
421 pRoot
->Insert( pClassPushButton
);
424 nId
= pHS
->getID( "HelpButton" );
425 pClassHelpButton
= new RscClass( nId
, RSC_HELPBUTTON
,
427 pClassHelpButton
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
428 aNmTb
.Put( nId
, CLASSNAME
, pClassHelpButton
);
429 pRoot
->Insert( pClassHelpButton
);
432 nId
= pHS
->getID( "OKButton" );
433 pClassOKButton
= new RscClass( nId
, RSC_OKBUTTON
,
435 pClassOKButton
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
436 aNmTb
.Put( nId
, CLASSNAME
, pClassOKButton
);
437 pRoot
->Insert( pClassOKButton
);
440 nId
= pHS
->getID( "CancelButton" );
441 pClassCancelButton
= new RscClass( nId
, RSC_CANCELBUTTON
,
443 pClassCancelButton
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
444 aNmTb
.Put( nId
, CLASSNAME
, pClassCancelButton
);
445 pRoot
->Insert( pClassCancelButton
);
448 pClassRadioButton
= InitClassRadioButton( pClassButton
);
449 pRoot
->Insert( pClassRadioButton
);
451 nId
= pHS
->getID( "ImageRadioButton" );
452 pClassImageRadioButton
= InitClassImageRadioButton( pClassRadioButton
,
454 pRoot
->Insert( pClassImageRadioButton
);
456 pClassTriStateBox
= InitClassTriStateBox( pClassControl
, pTriState
);
457 pRoot
->Insert( pClassTriStateBox
);
459 pClassImageButton
= InitClassImageButton( pClassPushButton
,
460 pClassImage
, pTriState
);
461 pRoot
->Insert( pClassImageButton
);
463 pClassEdit
= InitClassEdit( pClassControl
);
464 pRoot
->Insert( pClassEdit
);
466 pClassMultiLineEdit
= InitClassMultiLineEdit( pClassEdit
);
467 pRoot
->Insert( pClassMultiLineEdit
);
469 pClassScrollBar
= InitClassScrollBar( pClassControl
);
470 pRoot
->Insert( pClassScrollBar
);
474 pClassListBox
= InitClassListBox( pClassControl
, pLangStringLongTupelList
);
475 pRoot
->Insert( pClassListBox
);
477 pClassMultiListBox
= InitClassMultiListBox( pClassListBox
);
478 pRoot
->Insert( pClassMultiListBox
);
480 pClassComboBox
= InitClassComboBox( pClassEdit
, pLangStringList
);
481 pRoot
->Insert( pClassComboBox
);
483 pClassFixedText
= InitClassFixedText( pClassControl
);
484 pRoot
->Insert( pClassFixedText
);
486 pClassFixedBitmap
= InitClassFixedBitmap( pClassControl
, pClassBitmap
);
487 pRoot
->Insert( pClassFixedBitmap
);
489 pClassFixedImage
= InitClassFixedImage( pClassControl
, pClassImage
);
490 pRoot
->Insert( pClassFixedImage
);
493 nId
= pHS
->getID( "GroupBox" );
494 pClassGroupBox
= new RscClass( nId
, RSC_GROUPBOX
, pClassControl
);
495 pClassGroupBox
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
496 aNmTb
.Put( nId
, CLASSNAME
, pClassGroupBox
);
497 pRoot
->Insert( pClassGroupBox
);
499 pClassKeyCode
= InitClassKeyCode( pClassMgr
, pKey
);
500 pRoot
->Insert( pClassKeyCode
);
502 pLangClassKeyCode
= new RscClassArray( pHS
->getID( "LangKeyCode" ),
503 RSC_KEYCODE
, pClassKeyCode
, &aLangType
);
504 aBaseLst
.push_back( pLangClassKeyCode
);
507 pClassAccelItem
= InitClassAccelItem( pClassMgr
, pLangClassKeyCode
);
508 pRoot
->Insert( pClassAccelItem
);
511 pClassAccel
= InitClassAccel( pClassMgr
, pClassAccelItem
);
512 pRoot
->Insert( pClassAccel
);
513 nAcceleratorType
= pClassAccel
->GetId();
515 // pClassAccel ist erst hier definiert
516 nId
= aNmTb
.Put( "SubAccelerator", VARNAME
);
517 pClassAccelItem
->SetVariable( nId
, pClassAccel
, NULL
, VAR_SVDYNAMIC
,
520 pClassMenuItem
= InitClassMenuItem( pClassMgr
, pClassBitmap
,
522 pRoot
->Insert( pClassMenuItem
);
524 pClassMenu
= InitClassMenu( pClassMgr
, pClassMenuItem
);
525 pRoot
->Insert( pClassMenu
);
527 // pClassMenu ist erst hier definiert
528 nId
= aNmTb
.Put( "SubMenu", VARNAME
);
529 pClassMenuItem
->SetVariable( nId
, pClassMenu
, NULL
, VAR_SVDYNAMIC
,
532 pClassMenuButton
= InitClassMenuButton( pClassControl
, pClassMenu
);
533 pRoot
->Insert( pClassMenuButton
);
535 pClassMessBox
= InitClassMessBox( pClassMgr
, pMessButtons
,
537 pRoot
->Insert( pClassMessBox
);
540 nId
= pHS
->getID( "InfoBox" );
541 pClassInfoBox
= new RscClass( nId
, RSC_INFOBOX
, pClassMessBox
);
542 pClassInfoBox
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
543 aNmTb
.Put( nId
, CLASSNAME
, pClassInfoBox
);
544 pRoot
->Insert( pClassInfoBox
);
547 nId
= pHS
->getID( "WarningBox" );
548 pClassWarningBox
= new RscClass( nId
, RSC_WARNINGBOX
, pClassMessBox
);
549 pClassWarningBox
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
550 aNmTb
.Put( nId
, CLASSNAME
, pClassWarningBox
);
551 pRoot
->Insert( pClassWarningBox
);
554 nId
= pHS
->getID( "ErrorBox" );
555 pClassErrorBox
= new RscClass( nId
, RSC_ERRORBOX
, pClassMessBox
);
556 pClassErrorBox
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
557 aNmTb
.Put( nId
, CLASSNAME
, pClassErrorBox
);
558 pRoot
->Insert( pClassErrorBox
);
561 nId
= pHS
->getID( "QueryBox" );
562 pClassQueryBox
= new RscClass( nId
, RSC_QUERYBOX
, pClassMessBox
);
563 pClassQueryBox
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
564 aNmTb
.Put( nId
, CLASSNAME
, pClassQueryBox
);
565 pRoot
->Insert( pClassQueryBox
);
568 pClassSplitter
= InitClassSplitter( pClassWindow
);
569 pRoot
->Insert( pClassSplitter
);
571 pClassSplitWindow
= InitClassSplitWindow( pClassWindow
);
572 pRoot
->Insert( pClassSplitWindow
);
575 nId
= pHS
->getID( "SpinButton" );
576 pClassSpinButton
= new RscClass( nId
, RSC_SPINBUTTON
, pClassControl
);
577 pClassSpinButton
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
578 aNmTb
.Put( nId
, CLASSNAME
, pClassSpinButton
);
582 // Clientvariablen einfuegen
585 pClient
= new RscClient( pHS
->getID( "sal_Bool" ), RSC_NOTYPE
, &aWinBits
, nRepeatId
)
587 nId
= aNmTb
.Put( "Repeat", VARNAME
);
588 pClassSpinButton
->SetVariable( nId
, pClient
, NULL
,
589 VAR_NODATAINST
, 0, nWinBitVarId
);
591 pRoot
->Insert( pClassSpinButton
);
594 pClassTime
= InitClassTime( pClassMgr
);
595 pRoot
->Insert( pClassTime
);
597 pClassDate
= InitClassDate( pClassMgr
);
598 pRoot
->Insert( pClassDate
);
601 pClassSpinField
= InitClassSpinField( pClassEdit
);
602 pRoot
->Insert( pClassSpinField
);
605 { // Mehrfachvererbung von Hand
606 RscTop
* pClassTmp
= InitClassPatternFormatter( pClassSpinField
);
607 aBaseLst
.push_back( pClassTmp
);
609 pClassPatternField
= InitClassPatternField( pClassTmp
);
610 pRoot
->Insert( pClassPatternField
);
612 { // Mehrfachvererbung von Hand
613 RscTop
* pClassTmp
= InitClassNumericFormatter( pClassSpinField
);
614 aBaseLst
.push_back( pClassTmp
);
616 pClassNumericField
= InitClassNumericField( pClassTmp
);
617 pRoot
->Insert( pClassNumericField
);
619 { // Mehrfachvererbung von Hand
620 RscTop
* pClassTmp
= InitClassNumericFormatter( pClassSpinField
);
621 aBaseLst
.push_back( pClassTmp
);
622 pClassTmp
= InitClassMetricFormatter( pClassTmp
, pFieldUnits
);
623 aBaseLst
.push_back( pClassTmp
);
625 pClassMetricField
= InitClassMetricField( pClassTmp
);
626 pRoot
->Insert( pClassMetricField
);
628 { // Mehrfachvererbung von Hand
629 RscTop
* pClassTmp
= InitClassNumericFormatter( pClassSpinField
);
630 aBaseLst
.push_back( pClassTmp
);
631 pClassTmp
= InitClassCurrencyFormatter( pClassTmp
);
632 aBaseLst
.push_back( pClassTmp
);
634 pClassCurrencyField
= InitClassCurrencyField( "CurrencyField", RSC_CURRENCYFIELD
, pClassTmp
);
635 pRoot
->Insert( pClassCurrencyField
);
637 pClassLongCurrencyField
= InitClassCurrencyField( "LongCurrencyField", RSC_LONGCURRENCYFIELD
, pClassTmp
);
638 pRoot
->Insert( pClassLongCurrencyField
);
641 { // Mehrfachvererbung von Hand
642 RscTop
* pClassTmp
= InitClassDateFormatter( pClassSpinField
, pClassDate
);
643 aBaseLst
.push_back( pClassTmp
);
645 pClassDateField
= InitClassDateField( pClassTmp
, pClassDate
);
646 pRoot
->Insert( pClassDateField
);
648 { // Mehrfachvererbung von Hand
649 RscTop
* pClassTmp
= InitClassTimeFormatter( pClassSpinField
, pClassTime
,
651 aBaseLst
.push_back( pClassTmp
);
653 pClassTimeField
= InitClassTimeField( pClassTmp
, pClassTime
);
654 pRoot
->Insert( pClassTimeField
);
656 { // Mehrfachvererbung von Hand
657 RscTop
* pClassTmp
= InitClassPatternFormatter( pClassComboBox
);
658 aBaseLst
.push_back( pClassTmp
);
660 pClassPatternBox
= InitClassPatternBox( pClassTmp
);
661 pRoot
->Insert( pClassPatternBox
);
663 { // Mehrfachvererbung von Hand
664 RscTop
* pClassTmp
= InitClassNumericFormatter( pClassComboBox
);
665 aBaseLst
.push_back( pClassTmp
);
667 pClassNumericBox
= InitClassNumericBox( pClassTmp
);
668 pRoot
->Insert( pClassNumericBox
);
672 { // Mehrfachvererbung von Hand
673 RscTop
* pClassTmp
= InitClassNumericFormatter( pClassComboBox
);
674 aBaseLst
.push_back( pClassTmp
);
675 pClassTmp
= InitClassMetricFormatter( pClassTmp
, pFieldUnits
);
676 aBaseLst
.push_back( pClassTmp
);
678 pClassMetricBox
= InitClassMetricBox( pClassTmp
);
679 pRoot
->Insert( pClassMetricBox
);
681 { // Mehrfachvererbung von Hand
682 RscTop
* pClassTmp
= InitClassNumericFormatter( pClassComboBox
);
683 aBaseLst
.push_back( pClassTmp
);
684 pClassTmp
= InitClassCurrencyFormatter( pClassTmp
);
685 aBaseLst
.push_back( pClassTmp
);
687 pClassCurrencyBox
= InitClassCurrencyBox( "CurrencyBox", RSC_CURRENCYBOX
, pClassTmp
);
688 pRoot
->Insert( pClassCurrencyBox
);
690 pClassLongCurrencyBox
= InitClassCurrencyBox( "LongCurrencyBox", RSC_LONGCURRENCYBOX
, pClassTmp
);
691 pRoot
->Insert( pClassLongCurrencyBox
);
693 { // Mehrfachvererbung von Hand
694 RscTop
* pClassTmp
= InitClassDateFormatter( pClassComboBox
, pClassDate
);
695 aBaseLst
.push_back( pClassTmp
);
697 pClassDateBox
= InitClassDateBox( pClassTmp
);
698 pRoot
->Insert( pClassDateBox
);
700 { // Mehrfachvererbung von Hand
701 RscTop
* pClassTmp
= InitClassTimeFormatter( pClassComboBox
, pClassTime
,
703 aBaseLst
.push_back( pClassTmp
);
705 pClassTimeBox
= InitClassTimeBox( pClassTmp
);
706 pRoot
->Insert( pClassTimeBox
);
708 pClassDockingWindow
= InitClassDockingWindow( pClassWindow
, pMapUnit
);
709 pRoot
->Insert( pClassDockingWindow
);
711 pClassToolBoxItem
= InitClassToolBoxItem( pClassMgr
, pClassBitmap
,
712 pClassImage
, pTriState
);
713 pRoot
->Insert( pClassToolBoxItem
);
715 pClassToolBox
= InitClassToolBox( pClassDockingWindow
, pClassToolBoxItem
,
717 pRoot
->Insert( pClassToolBox
);
719 pClassStatusBar
= InitClassStatusBar( pClassWindow
);
720 pRoot
->Insert( pClassStatusBar
);
722 pClassMoreButton
= InitClassMoreButton( pClassPushButton
, pMapUnit
);
723 pRoot
->Insert( pClassMoreButton
);
725 pClassFloatingWindow
= InitClassFloatingWindow( pClassSystemWindow
,
727 pRoot
->Insert( pClassFloatingWindow
);
730 nId
= pHS
->getID( "TabPage" );
732 new RscClass( nId
, RSC_TABPAGE
, pClassWindow
);
733 pClassTabPage
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
734 aNmTb
.Put( nId
, CLASSNAME
, pClassTabPage
);
735 pRoot
->Insert( pClassTabPage
);
738 nId
= pHS
->getID( "TabDialog" );
740 new RscClass( nId
, RSC_TABDIALOG
, pClassModalDialog
);
741 pClassTabDialog
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
742 aNmTb
.Put( nId
, CLASSNAME
, pClassTabDialog
);
743 pRoot
->Insert( pClassTabDialog
);
745 pClassTabControlItem
= InitClassTabControlItem( pClassMgr
);
746 pRoot
->Insert( pClassTabControlItem
);
748 pClassTabControl
= InitClassTabControl( pClassControl
,
749 pClassTabControlItem
);
750 pRoot
->Insert( pClassTabControl
);
753 nId
= pHS
->getID( "FixedLine" );
755 new RscClass( nId
, RSC_FIXEDLINE
, pClassControl
);
756 pClassFixedLine
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
758 INS_WINBIT(pClassFixedLine
,Vert
)
760 aNmTb
.Put( nId
, CLASSNAME
, pClassFixedLine
);
761 pRoot
->Insert( pClassFixedLine
);
764 nId
= pHS
->getID( "ScrollBarBox" );
766 new RscClass( nId
, RSC_SCROLLBARBOX
, pClassWindow
);
767 pClassScrollBarBox
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
768 aNmTb
.Put( nId
, CLASSNAME
, pClassScrollBarBox
);
769 pRoot
->Insert( pClassScrollBarBox
);
770 INS_WINBIT(pClassScrollBarBox
,Sizeable
)
772 pClassSfxStyleFamilyItem
= InitClassSfxStyleFamilyItem( pClassMgr
,
775 pLangStringLongTupelList
);
776 pRoot
->Insert( pClassSfxStyleFamilyItem
);
778 pClassSfxTemplateDialog
= InitClassSfxTemplateDialog( pClassMgr
,
779 pClassSfxStyleFamilyItem
);
780 pRoot
->Insert( pClassSfxTemplateDialog
);
782 pClassSfxSlotInfo
= InitClassSfxSlotInfo( pClassMgr
);
783 pRoot
->Insert( pClassSfxSlotInfo
);
789 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */