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 .
25 #include <tools/wintypes.hxx>
27 #include <rsctree.hxx>
29 #include <rscrange.hxx>
30 #include <rscconst.hxx>
31 #include <rscflag.hxx>
33 #include <rsccont.hxx>
35 #include <rscclass.hxx>
39 #include <rscyacc.hxx>
41 #define INS_WINBIT( pClass, WinBit ) \
42 InsWinBit( pClass, #WinBit, n##WinBit##Id );
44 void RscTypCont::Init()
46 RscEnum
* pFieldUnits
;
52 RscArray
* pLangGeometry
;
53 RscCont
* pStringList
;
54 RscArray
* pLangStringList
;
55 RscTupel
* pStringTupel
;
56 RscTupel
* pStringLongTupel
;
57 RscCont
* pStringTupelList
;
58 RscCont
* pStringLongTupelList
;
59 RscArray
* pLangStringLongTupelList
;
62 RscTop
* pClassString
;
63 RscTop
* pClassStringArray
;
64 RscTop
* pClassBitmap
;
67 RscTop
* pClassImageList
;
68 RscTop
* pClassWindow
;
69 RscTop
* pClassSystemWindow
;
70 RscTop
* pClassWorkWindow
;
71 RscTop
* pClassControl
;
72 RscTop
* pClassButton
;
73 RscTop
* pClassCheckBox
;
74 RscTop
* pClassPushButton
;
75 RscTop
* pClassRadioButton
;
76 RscTop
* pClassImageButton
;
78 RscTop
* pClassListBox
;
79 RscTop
* pClassComboBox
;
80 RscTop
* pClassFixedText
;
81 RscTop
* pClassFixedImage
;
82 RscTop
* pClassKeyCode
;
83 RscTop
* pLangClassKeyCode
;
84 RscTop
* pClassAccelItem
;
86 RscTop
* pClassMenuItem
;
88 RscTop
* pClassSplitWindow
;
89 RscTop
* pClassSpinButton
;
90 RscTop
* pClassSpinField
;
91 RscTop
* pClassNumericField
;
92 RscTop
* pClassMetricField
;
93 RscTop
* pClassDockingWindow
;
94 RscTop
* pClassToolBoxItem
;
95 RscTop
* pClassToolBox
;
96 RscTop
* pClassFixedLine
;
97 RscTop
* pClassSfxStyleFamilyItem
;
98 RscTop
* pClassSfxTemplateDialog
;
99 RscTop
* pClassSfxSlotInfo
;
103 aNmTb
.SetSort( false );
105 aNmTb
.Put( "LINE", LINE
, (sal_IntPtr
)0 );
106 aNmTb
.Put( "NOT", NOT
, (sal_IntPtr
)0 );
107 aNmTb
.Put( "DEFINE", DEFINE
, (sal_IntPtr
)0 );
108 aNmTb
.Put( "INCLUDE", INCLUDE
, (sal_IntPtr
)0 );
109 aNmTb
.Put( "DEFAULT", DEFAULT
, (sal_IntPtr
)0 );
110 aNmTb
.Put( "class", CLASS
, (sal_IntPtr
)0 );
111 aNmTb
.Put( "extendable", EXTENDABLE
, (sal_IntPtr
)0 );
112 aNmTb
.Put( "writeifset", WRITEIFSET
, (sal_IntPtr
)0 );
114 /* Werte fuer Aufzaehlungstypen */
115 aNmTb
.Put( "TRUE", BOOLEAN
, (sal_IntPtr
)sal_True
);
116 aNmTb
.Put( "FALSE", BOOLEAN
, (sal_IntPtr
)sal_False
);
118 aNmTb
.Put( "XSCALE", XSCALE
, (sal_IntPtr
)0 );
119 aNmTb
.Put( "YSCALE", YSCALE
, (sal_IntPtr
)0 );
120 aNmTb
.Put( "RGB", RGB
, (sal_IntPtr
)0 );
121 aNmTb
.Put( "POSSIZE", GEOMETRY
, (sal_IntPtr
)0 );
122 aNmTb
.Put( "POS", POSITION
, (sal_IntPtr
)0 );
123 aNmTb
.Put( "SIZE", DIMENSION
, (sal_IntPtr
)0 );
124 aNmTb
.Put( "ZoomInOutputSize", INZOOMOUTPUTSIZE
,(sal_IntPtr
)0 );
125 aNmTb
.Put( "FloatingPos", FLOATINGPOS
, (sal_IntPtr
)0 );
128 aShort
.SetRange( -32768, 32767 );
130 aUShort
.SetRange( 0, 0xFFFF );
132 aLong
.SetRange( SAL_MIN_INT32
, SAL_MAX_INT32
);
133 aEnumLong
.SetRange( SAL_MIN_INT32
, SAL_MAX_INT32
);
135 aIdUShort
.SetRange( 0, 0xFFFF );
137 aIdNoZeroUShort
.SetRange( 1, 0xFFFF );
139 aNoZeroShort
.SetRange( -32768, 32767 );
140 aNoZeroShort
.SetOutRange( 0 );
142 aIdLong
.SetRange( SAL_MIN_INT32
, SAL_MAX_INT32
);
145 // Variablenname fuer WinBits
146 nWinBitVarId
= aNmTb
.Put( "_WinBits", VARNAME
);
149 nBorderId
= pHS
->getID( "WB_BORDER" );
150 aWinBits
.SetConstant( nBorderId
, sal::static_int_cast
<sal_Int32
>(WB_BORDER
) );
151 nHideId
= pHS
->getID( "WB_HIDE" );
152 aWinBits
.SetConstant( nHideId
, sal::static_int_cast
<sal_Int32
>(WB_HIDE
) );
153 nClipChildrenId
= pHS
->getID( "WB_CLIPCHILDREN" );
154 aWinBits
.SetConstant( nClipChildrenId
, sal::static_int_cast
<sal_Int32
>(WB_CLIPCHILDREN
) );
155 nSizeableId
= pHS
->getID( "WB_SIZEABLE" );
156 aWinBits
.SetConstant( nSizeableId
, sal::static_int_cast
<sal_Int32
>(WB_SIZEABLE
) );
157 nMoveableId
= pHS
->getID( "WB_MOVEABLE" );
158 aWinBits
.SetConstant( nMoveableId
, sal::static_int_cast
<sal_Int32
>(WB_MOVEABLE
) );
159 nMinimizeId
= pHS
->getID( "WB_MINABLE" );
160 aWinBits
.SetConstant( nMinimizeId
, 0 /*WB_MINABLE*/ );
161 nMaximizeId
= pHS
->getID( "WB_MAXABLE" );
162 aWinBits
.SetConstant( nMaximizeId
, 0 /*WB_MAXABLE*/ );
163 nCloseableId
= pHS
->getID( "WB_CLOSEABLE" );
164 aWinBits
.SetConstant( nCloseableId
, sal::static_int_cast
<sal_Int32
>(WB_CLOSEABLE
) );
165 nAppId
= pHS
->getID( "WB_APP" );
166 aWinBits
.SetConstant( nAppId
, sal::static_int_cast
<sal_Int32
>(WB_APP
) );
167 nTabstopId
= pHS
->getID( "WB_TABSTOP" );
168 aWinBits
.SetConstant( nTabstopId
, sal::static_int_cast
<sal_Int32
>(WB_TABSTOP
) );
169 nGroupId
= pHS
->getID( "WB_GROUP" );
170 aWinBits
.SetConstant( nGroupId
, sal::static_int_cast
<sal_Int32
>(WB_GROUP
) );
171 nSysmodalId
= pHS
->getID( "WB_SYSMODAL" );
172 aWinBits
.SetConstant( nSysmodalId
, 0 /*WB_SYSMODAL*/ );
175 nLeftId
= pHS
->getID( "WB_LEFT" );
176 aWinBits
.SetConstant( nLeftId
, sal::static_int_cast
<sal_Int32
>(WB_LEFT
) );
177 nCenterId
= pHS
->getID( "WB_CENTER" );
178 aWinBits
.SetConstant( nCenterId
, sal::static_int_cast
<sal_Int32
>(WB_CENTER
) );
179 nRightId
= pHS
->getID( "WB_RIGHT" );
180 aWinBits
.SetConstant( nRightId
, sal::static_int_cast
<sal_Int32
>(WB_RIGHT
) );
181 nTopId
= pHS
->getID( "WB_TOP" );
182 aWinBits
.SetConstant( nTopId
, sal::static_int_cast
<sal_Int32
>(WB_TOP
) );
183 nVCenterId
= pHS
->getID( "WB_VCENTER" );
184 aWinBits
.SetConstant( nVCenterId
, sal::static_int_cast
<sal_Int32
>(WB_VCENTER
) );
185 nBottomId
= pHS
->getID( "WB_BOTTOM" );
186 aWinBits
.SetConstant( nBottomId
, sal::static_int_cast
<sal_Int32
>(WB_BOTTOM
) );
187 nHScrollId
= pHS
->getID( "WB_HSCROLL" );
188 aWinBits
.SetConstant( nHScrollId
, sal::static_int_cast
<sal_Int32
>(WB_HSCROLL
) );
189 nVScrollId
= pHS
->getID( "WB_VSCROLL" );
190 aWinBits
.SetConstant( nVScrollId
, sal::static_int_cast
<sal_Int32
>(WB_VSCROLL
) );
191 nSortId
= pHS
->getID( "WB_SORT" );
192 aWinBits
.SetConstant( nSortId
, sal::static_int_cast
<sal_Int32
>(WB_SORT
) );
193 nDefaultId
= pHS
->getID( "WB_DEFBUTTON" );
194 aWinBits
.SetConstant( nDefaultId
, sal::static_int_cast
<sal_Int32
>(WB_DEFBUTTON
) );
195 nRepeatId
= pHS
->getID( "WB_REPEAT" );
196 aWinBits
.SetConstant( nRepeatId
, sal::static_int_cast
<sal_Int32
>(WB_REPEAT
) );
197 nSVLookId
= pHS
->getID( "WB_SVLOOK" );
198 aWinBits
.SetConstant( nSVLookId
, sal::static_int_cast
<sal_Int32
>(WB_3DLOOK
) );
199 nDropDownId
= pHS
->getID( "WB_DROPDOWN" );
200 aWinBits
.SetConstant( nDropDownId
, sal::static_int_cast
<sal_Int32
>(WB_DROPDOWN
) );
201 nPassWordId
= pHS
->getID( "WB_PASSWORD" );
202 aWinBits
.SetConstant( nPassWordId
, sal::static_int_cast
<sal_Int32
>(WB_PASSWORD
) );
203 nReadOnlyId
= pHS
->getID( "WB_READONLY" );
204 aWinBits
.SetConstant( nReadOnlyId
, sal::static_int_cast
<sal_Int32
>(WB_READONLY
) );
205 nAutoSizeId
= pHS
->getID( "WB_AUTOSIZE" );
206 aWinBits
.SetConstant( nAutoSizeId
, sal::static_int_cast
<sal_Int32
>(WB_AUTOSIZE
) );
207 nSpinId
= pHS
->getID( "WB_SPIN" );
208 aWinBits
.SetConstant( nSpinId
, sal::static_int_cast
<sal_Int32
>(WB_SPIN
) );
209 nTabControlId
= pHS
->getID( "WB_DIALOGCONTROL" );
210 aWinBits
.SetConstant( nTabControlId
, sal::static_int_cast
<sal_Int32
>(WB_DIALOGCONTROL
) );
211 nSimpleModeId
= pHS
->getID( "WB_SIMPLEMODE" );
212 aWinBits
.SetConstant( nSimpleModeId
, sal::static_int_cast
<sal_Int32
>(WB_SIMPLEMODE
) );
213 nDragId
= pHS
->getID( "WB_DRAG" );
214 aWinBits
.SetConstant( nDragId
, sal::static_int_cast
<sal_Int32
>(WB_DRAG
) );
215 nScrollId
= pHS
->getID( "WB_SCROLL" );
216 aWinBits
.SetConstant( nScrollId
, sal::static_int_cast
<sal_Int32
>(WB_SCROLL
) );
217 nZoomableId
= pHS
->getID( "WB_ZOOMABLE" );
218 aWinBits
.SetConstant( nZoomableId
, sal::static_int_cast
<sal_Int32
>(WB_ROLLABLE
) );
219 nHideWhenDeactivateId
= pHS
->getID( "WB_HIDEWHENDEACTIVATE" );
220 aWinBits
.SetConstant( nHideWhenDeactivateId
, 0 /*WB_HIDEWHENDEACTIVATE*/ );
221 nAutoHScrollId
= pHS
->getID( "WB_AUTOHSCROLL" );
222 aWinBits
.SetConstant( nAutoHScrollId
, sal::static_int_cast
<sal_Int32
>(WB_AUTOHSCROLL
) );
223 nAutoVScrollId
= pHS
->getID( "WB_AUTOVSCROLL" );
224 aWinBits
.SetConstant( nAutoVScrollId
, sal::static_int_cast
<sal_Int32
>(WB_AUTOVSCROLL
) );
225 nDDExtraWidthId
= pHS
->getID( "WB_DDEXTRAWIDTH" );
226 aWinBits
.SetConstant( nDDExtraWidthId
, 0 /*WB_DDEXTRAWIDTH*/ );
227 nWordBreakId
= pHS
->getID( "WB_WORDBREAK" );
228 aWinBits
.SetConstant( nWordBreakId
, sal::static_int_cast
<sal_Int32
>(WB_WORDBREAK
) );
229 nLeftLabelId
= pHS
->getID( "WB_LEFTLABEL" );
230 aWinBits
.SetConstant( nLeftLabelId
, 0 /*WB_LEFTLABEL*/ );
231 nHasLinesId
= pHS
->getID( "WB_HASLINES" );
232 aWinBits
.SetConstant( nHasLinesId
, sal::static_int_cast
<sal_Int32
>(WB_HASLINES
) );
233 nHasButtonsId
= pHS
->getID( "WB_HASBUTTONS" );
234 aWinBits
.SetConstant( nHasButtonsId
, sal::static_int_cast
<sal_Int32
>(WB_HASBUTTONS
) );
235 nRectStyleId
= pHS
->getID( "WB_RECTSTYLE" );
236 aWinBits
.SetConstant( nRectStyleId
, sal::static_int_cast
<sal_Int32
>(WB_RECTSTYLE
) );
237 nLineSpacingId
= pHS
->getID( "WB_LINESPACING" );
238 aWinBits
.SetConstant( nLineSpacingId
, sal::static_int_cast
<sal_Int32
>(WB_LINESPACING
) );
239 nSmallStyleId
= pHS
->getID( "WB_SMALLSTYLE" );
240 aWinBits
.SetConstant( nSmallStyleId
, sal::static_int_cast
<sal_Int32
>(WB_SMALLSTYLE
) );
241 nEnableResizingId
= pHS
->getID( "WB_ENABLERESIZING" );
242 aWinBits
.SetConstant( nEnableResizingId
, 0 /*WB_ENABLERESIZING*/ );
243 nDockableId
= pHS
->getID( "WB_DOCKABLE" );
244 aWinBits
.SetConstant( nDockableId
, sal::static_int_cast
<sal_Int32
>(WB_DOCKABLE
) );
245 nScaleId
= pHS
->getID( "WB_SCALE" );
246 aWinBits
.SetConstant( nScaleId
, sal::static_int_cast
<sal_Int32
>(WB_SCALE
) );
247 nIgnoreTabId
= pHS
->getID( "WB_IGNORETAB" );
248 aWinBits
.SetConstant( nIgnoreTabId
, sal::static_int_cast
<sal_Int32
>(WB_IGNORETAB
) );
249 nNoSplitDrawId
= pHS
->getID( "WB_NOSPLITDRAW" );
250 aWinBits
.SetConstant( nNoSplitDrawId
, sal::static_int_cast
<sal_Int32
>(WB_NOSPLITDRAW
) );
251 nTopImageId
= pHS
->getID( "WB_TOPIMAGE" );
252 aWinBits
.SetConstant( nTopImageId
, sal::static_int_cast
<sal_Int32
>(WB_TOPIMAGE
) );
253 nNoLabelId
= pHS
->getID( "WB_NOLABEL" );
254 aWinBits
.SetConstant( nNoLabelId
, sal::static_int_cast
<sal_Int32
>(WB_NOLABEL
) );
255 nVertId
= pHS
->getID( "WB_VERT" );
256 aWinBits
.SetConstant( nVertId
, sal::static_int_cast
<sal_Int32
>(WB_VERT
) );
257 nSysWinId
= pHS
->getID( "WB_SYSTEMWINDOW" );
258 aWinBits
.SetConstant( nSysWinId
, sal::static_int_cast
<sal_Int32
>(WB_SYSTEMWINDOW
) );
259 nStdPopupId
= pHS
->getID( "WB_STDPOPUP" );
260 aWinBits
.SetConstant( nStdPopupId
, sal::static_int_cast
<sal_Int32
>(WB_STDPOPUP
) );
264 aBaseLst
.push_back( pFieldUnits
= InitFieldUnitsType() );
265 aBaseLst
.push_back( pColor
= InitColor() );
266 aBaseLst
.push_back( pMapUnit
= InitMapUnit() );
267 aBaseLst
.push_back( pKey
= InitKey() );
268 aBaseLst
.push_back( pTriState
= InitTriState() );
270 aBaseLst
.push_back( pGeometry
= InitGeometry() );
271 aBaseLst
.push_back( pLangGeometry
= InitLangGeometry( pGeometry
) );
272 aBaseLst
.push_back( pStringList
= InitStringList() );
273 aBaseLst
.push_back( pLangStringList
= InitLangStringList( pStringList
) );
274 aBaseLst
.push_back( pStringTupel
= InitStringTupel() );
275 aBaseLst
.push_back( pStringTupelList
= InitStringTupelList( pStringTupel
) );
276 aBaseLst
.push_back( InitLangStringTupelList( pStringTupelList
) );
277 aBaseLst
.push_back( pStringLongTupel
= InitStringLongTupel() );
278 aBaseLst
.push_back( pStringLongTupelList
= InitStringLongTupelList( pStringLongTupel
) );
279 aBaseLst
.push_back( pLangStringLongTupelList
= InitLangStringLongTupelList( pStringLongTupelList
) );
282 pRoot
= pClassMgr
= InitClassMgr();
284 aVersion
.pClass
= new RscClass( pHS
->getID( "VersionControl" ),
285 RSC_VERSIONCONTROL
, pClassMgr
);
286 aVersion
= aVersion
.pClass
->Create( NULL
, RSCINST() );
288 pClassString
= InitClassString( pClassMgr
);
289 pRoot
->Insert( pClassString
);
291 // String als Referenzklasse des Basisstrings einsetzen
292 aString
.SetRefClass( pClassString
);
295 nId
= pHS
->getID( "StringArray" );
296 pClassStringArray
= new RscClass( nId
, RSC_STRINGARRAY
, pClassMgr
);
297 pClassStringArray
->SetCallPar( *pStdPar1
, *pStdPar2
, *pStdParType
);
298 aNmTb
.Put( nId
, CLASSNAME
, pClassStringArray
);
299 pRoot
->Insert( pClassStringArray
);
302 nId
= aNmTb
.Put( "ItemList", VARNAME
);
303 pClassStringArray
->SetVariable( nId
, pLangStringLongTupelList
);
305 pClassBitmap
= InitClassBitmap( pClassMgr
);
306 pRoot
->Insert( pClassBitmap
);
310 pClassColor
= InitClassColor( pClassMgr
, pColor
);
311 pRoot
->Insert( pClassColor
);
313 pClassImage
= InitClassImage( pClassMgr
, pClassBitmap
, pClassColor
);
314 pRoot
->Insert( pClassImage
);
316 pClassImageList
= InitClassImageList( pClassMgr
,
317 pClassColor
, pStringLongTupelList
);
318 pRoot
->Insert( pClassImageList
);
320 pClassWindow
= InitClassWindow( pClassMgr
, pMapUnit
,
322 pRoot
->Insert( pClassWindow
);
326 pClassSystemWindow
= InitClassSystemWindow( pClassWindow
);
327 //aBaseLst.Insert( pClassSystemWindow, LIST_APPEND );
328 pRoot
->Insert( pClassSystemWindow
);
330 pClassWorkWindow
= InitClassWorkWindow( pClassSystemWindow
);
331 pRoot
->Insert( pClassWorkWindow
);
334 pClassControl
= InitClassControl( pClassWindow
);
335 pRoot
->Insert( pClassControl
);
338 nId
= pHS
->getID( "Button" );
339 pClassButton
= new RscClass( nId
, RSC_BUTTON
, pClassControl
);
340 pClassButton
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
341 aNmTb
.Put( nId
, CLASSNAME
, pClassButton
);
342 pRoot
->Insert( pClassButton
);
344 pClassCheckBox
= InitClassCheckBox( pClassButton
);
345 pRoot
->Insert( pClassCheckBox
);
348 pClassPushButton
= InitClassPushButton( pClassButton
);
349 pRoot
->Insert( pClassPushButton
);
352 pClassRadioButton
= InitClassRadioButton( pClassButton
);
353 pRoot
->Insert( pClassRadioButton
);
355 pClassImageButton
= InitClassImageButton( pClassPushButton
,
356 pClassImage
, pTriState
);
357 pRoot
->Insert( pClassImageButton
);
359 pClassEdit
= InitClassEdit( pClassControl
);
360 pRoot
->Insert( pClassEdit
);
363 pClassListBox
= InitClassListBox( pClassControl
, pLangStringLongTupelList
);
364 pRoot
->Insert( pClassListBox
);
366 pClassComboBox
= InitClassComboBox( pClassEdit
, pLangStringList
);
367 pRoot
->Insert( pClassComboBox
);
369 pClassFixedText
= InitClassFixedText( pClassControl
);
370 pRoot
->Insert( pClassFixedText
);
372 pClassFixedImage
= InitClassFixedImage( pClassControl
, pClassImage
);
373 pRoot
->Insert( pClassFixedImage
);
375 pClassKeyCode
= InitClassKeyCode( pClassMgr
, pKey
);
376 pRoot
->Insert( pClassKeyCode
);
378 pLangClassKeyCode
= new RscClassArray( pHS
->getID( "LangKeyCode" ),
379 RSC_KEYCODE
, pClassKeyCode
, &aLangType
);
380 aBaseLst
.push_back( pLangClassKeyCode
);
383 pClassAccelItem
= InitClassAccelItem( pClassMgr
, pLangClassKeyCode
);
384 pRoot
->Insert( pClassAccelItem
);
387 pClassAccel
= InitClassAccel( pClassMgr
, pClassAccelItem
);
388 pRoot
->Insert( pClassAccel
);
389 nAcceleratorType
= pClassAccel
->GetId();
391 // pClassAccel ist erst hier definiert
392 nId
= aNmTb
.Put( "SubAccelerator", VARNAME
);
393 pClassAccelItem
->SetVariable( nId
, pClassAccel
, NULL
, VAR_SVDYNAMIC
,
396 pClassMenuItem
= InitClassMenuItem( pClassMgr
, pClassBitmap
,
398 pRoot
->Insert( pClassMenuItem
);
400 pClassMenu
= InitClassMenu( pClassMgr
, pClassMenuItem
);
401 pRoot
->Insert( pClassMenu
);
403 // pClassMenu ist erst hier definiert
404 nId
= aNmTb
.Put( "SubMenu", VARNAME
);
405 pClassMenuItem
->SetVariable( nId
, pClassMenu
, NULL
, VAR_SVDYNAMIC
,
409 pClassSplitWindow
= InitClassSplitWindow( pClassWindow
);
410 pRoot
->Insert( pClassSplitWindow
);
413 nId
= pHS
->getID( "SpinButton" );
414 pClassSpinButton
= new RscClass( nId
, RSC_SPINBUTTON
, pClassControl
);
415 pClassSpinButton
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
416 aNmTb
.Put( nId
, CLASSNAME
, pClassSpinButton
);
420 // Clientvariablen einfuegen
423 pClient
= new RscClient( pHS
->getID( "sal_Bool" ), RSC_NOTYPE
, &aWinBits
, nRepeatId
)
425 nId
= aNmTb
.Put( "Repeat", VARNAME
);
426 pClassSpinButton
->SetVariable( nId
, pClient
, NULL
,
427 VAR_NODATAINST
, 0, nWinBitVarId
);
429 pRoot
->Insert( pClassSpinButton
);
432 pClassSpinField
= InitClassSpinField( pClassEdit
);
433 pRoot
->Insert( pClassSpinField
);
436 { // Mehrfachvererbung von Hand
437 RscTop
* pClassTmp
= InitClassNumericFormatter( pClassSpinField
);
438 aBaseLst
.push_back( pClassTmp
);
440 pClassNumericField
= InitClassNumericField( pClassTmp
);
441 pRoot
->Insert( pClassNumericField
);
443 { // Mehrfachvererbung von Hand
444 RscTop
* pClassTmp
= InitClassNumericFormatter( pClassSpinField
);
445 aBaseLst
.push_back( pClassTmp
);
446 pClassTmp
= InitClassMetricFormatter( pClassTmp
, pFieldUnits
);
447 aBaseLst
.push_back( pClassTmp
);
449 pClassMetricField
= InitClassMetricField( pClassTmp
);
450 pRoot
->Insert( pClassMetricField
);
454 pClassDockingWindow
= InitClassDockingWindow( pClassWindow
, pMapUnit
);
455 pRoot
->Insert( pClassDockingWindow
);
457 pClassToolBoxItem
= InitClassToolBoxItem( pClassMgr
, pClassBitmap
,
458 pClassImage
, pTriState
);
459 pRoot
->Insert( pClassToolBoxItem
);
461 pClassToolBox
= InitClassToolBox( pClassDockingWindow
, pClassToolBoxItem
,
463 pRoot
->Insert( pClassToolBox
);
466 nId
= pHS
->getID( "FixedLine" );
468 new RscClass( nId
, RSC_FIXEDLINE
, pClassControl
);
469 pClassFixedLine
->SetCallPar( *pWinPar1
, *pWinPar2
, *pWinParType
);
471 INS_WINBIT(pClassFixedLine
,Vert
)
473 aNmTb
.Put( nId
, CLASSNAME
, pClassFixedLine
);
474 pRoot
->Insert( pClassFixedLine
);
476 pClassSfxStyleFamilyItem
= InitClassSfxStyleFamilyItem( pClassMgr
,
479 pLangStringLongTupelList
);
480 pRoot
->Insert( pClassSfxStyleFamilyItem
);
482 pClassSfxTemplateDialog
= InitClassSfxTemplateDialog( pClassMgr
,
483 pClassSfxStyleFamilyItem
);
484 pRoot
->Insert( pClassSfxTemplateDialog
);
486 pClassSfxSlotInfo
= InitClassSfxSlotInfo( pClassMgr
);
487 pRoot
->Insert( pClassSfxSlotInfo
);
493 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */