Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : : #include <string>
30 : : #include <tools/shl.hxx>
31 : : #include <svl/intitem.hxx>
32 : : #include <svl/eitem.hxx>
33 : : #include <svl/stritem.hxx>
34 : : #include <sfx2/dispatch.hxx>
35 : : #include <vcl/toolbox.hxx>
36 : : #include <vcl/fixed.hxx>
37 : : #include "fmitems.hxx"
38 : : #include "formtoolbars.hxx"
39 : :
40 : :
41 : : #include <svx/dialmgr.hxx>
42 : : #include <svx/dialogs.hrc>
43 : : #include "svx/tbxctl.hxx"
44 : : #include "svx/tbxdraw.hxx"
45 : : #include "tbxform.hxx"
46 : : #include "svx/fmresids.hrc"
47 : : #include "fmhelp.hrc"
48 : : #include <sfx2/viewfrm.hxx>
49 : : #include <sfx2/viewsh.hxx>
50 : : #include <sfx2/imagemgr.hxx>
51 : : #include <com/sun/star/beans/XPropertySet.hpp>
52 : :
53 : : using namespace ::com::sun::star::uno;
54 : : using namespace ::com::sun::star::beans;
55 : : using namespace ::com::sun::star::frame;
56 : : using ::com::sun::star::beans::XPropertySet;
57 : :
58 : :
59 : : //========================================================================
60 : : // class SvxFmAbsRecWin
61 : : //========================================================================
62 : :
63 : : // -----------------------------------------------------------------------
64 : 0 : SvxFmAbsRecWin::SvxFmAbsRecWin( Window* _pParent, SfxToolBoxControl* _pController )
65 : : :NumericField( _pParent, WB_BORDER )
66 : 0 : ,m_pController(_pController)
67 : : {
68 [ # # ]: 0 : SetMin(1);
69 : 0 : SetFirst(1);
70 : 0 : SetSpinSize(1);
71 [ # # ]: 0 : SetSizePixel( Size(70,19) );
72 : :
73 [ # # ]: 0 : SetDecimalDigits(0);
74 [ # # ]: 0 : SetStrictFormat(sal_True);
75 : 0 : }
76 : :
77 : : // -----------------------------------------------------------------------
78 : 0 : SvxFmAbsRecWin::~SvxFmAbsRecWin()
79 : : {
80 [ # # ]: 0 : }
81 : :
82 : : // -----------------------------------------------------------------------
83 : 0 : void SvxFmAbsRecWin::FirePosition( sal_Bool _bForce )
84 : : {
85 [ # # ][ # # ]: 0 : if ( _bForce || ( GetText() != GetSavedValue() ) )
[ # # ][ # # ]
[ # # ]
[ # # # # ]
86 : : {
87 [ # # ]: 0 : sal_Int64 nRecord = GetValue();
88 [ # # ][ # # ]: 0 : if (nRecord < GetMin() || nRecord > GetMax())
[ # # ]
89 : : {
90 : 0 : return;
91 : : }
92 : :
93 [ # # ]: 0 : SfxInt32Item aPositionParam( FN_PARAM_1, static_cast<sal_Int32>(nRecord) );
94 : :
95 : 0 : Any a;
96 [ # # ]: 0 : Sequence< PropertyValue > aArgs( 1 );
97 [ # # ][ # # ]: 0 : aArgs[0].Name = rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Position" ));
98 [ # # ]: 0 : aPositionParam.QueryValue( a );
99 [ # # ]: 0 : aArgs[0].Value = a;
100 : : m_pController->Dispatch( rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( ".uno:AbsoluteRecord" )),
101 [ # # ][ # # ]: 0 : aArgs );
102 [ # # ]: 0 : m_pController->updateStatus();
103 : :
104 [ # # ][ # # ]: 0 : SaveValue();
[ # # ]
105 : : }
106 : : }
107 : :
108 : : // -----------------------------------------------------------------------
109 : 0 : void SvxFmAbsRecWin::LoseFocus()
110 : : {
111 : 0 : FirePosition( sal_False );
112 : 0 : }
113 : :
114 : : // -----------------------------------------------------------------------
115 : 0 : void SvxFmAbsRecWin::KeyInput( const KeyEvent& rKeyEvent )
116 : : {
117 [ # # ][ # # ]: 0 : if( rKeyEvent.GetKeyCode() == KEY_RETURN && GetText().Len() )
[ # # ][ # # ]
[ # # ][ # # ]
[ # # ][ # #
# # # # ]
118 : 0 : FirePosition( sal_True );
119 : : else
120 : 0 : NumericField::KeyInput( rKeyEvent );
121 : 0 : }
122 : :
123 : : //========================================================================
124 : : // class SvxFmTbxCtlConfig
125 : : //========================================================================
126 : :
127 : : struct MapSlotToCmd
128 : : {
129 : : sal_uInt16 nSlotId;
130 : : const char* pCommand;
131 : : };
132 : :
133 : : static MapSlotToCmd SlotToCommands[] =
134 : : {
135 : : { SID_FM_PUSHBUTTON, ".uno:Pushbutton" },
136 : : { SID_FM_RADIOBUTTON, ".uno:RadioButton" },
137 : : { SID_FM_CHECKBOX, ".uno:CheckBox" },
138 : : { SID_FM_FIXEDTEXT, ".uno:Label" },
139 : : { SID_FM_GROUPBOX, ".uno:GroupBox" },
140 : : { SID_FM_LISTBOX, ".uno:ListBox" },
141 : : { SID_FM_COMBOBOX, ".uno:ComboBox" },
142 : : { SID_FM_EDIT, ".uno:Edit" },
143 : : { SID_FM_DBGRID, ".uno:Grid" },
144 : : { SID_FM_IMAGEBUTTON, ".uno:Imagebutton" },
145 : : { SID_FM_IMAGECONTROL, ".uno:ImageControl" },
146 : : { SID_FM_FILECONTROL, ".uno:FileControl" },
147 : : { SID_FM_DATEFIELD, ".uno:DateField" },
148 : : { SID_FM_TIMEFIELD, ".uno:TimeField" },
149 : : { SID_FM_NUMERICFIELD, ".uno:NumericField" },
150 : : { SID_FM_CURRENCYFIELD, ".uno:CurrencyField" },
151 : : { SID_FM_PATTERNFIELD, ".uno:PatternField" },
152 : : { SID_FM_DESIGN_MODE, ".uno:SwitchControlDesignMode" },
153 : : { SID_FM_FORMATTEDFIELD, ".uno:FormattedField" },
154 : : { SID_FM_SCROLLBAR, ".uno:ScrollBar" },
155 : : { SID_FM_SPINBUTTON, ".uno:SpinButton" },
156 : : { 0, "" }
157 : : };
158 : :
159 [ + - ]: 268 : SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlConfig, SfxUInt16Item );
160 : :
161 : : //-----------------------------------------------------------------------
162 : 133 : SvxFmTbxCtlConfig::SvxFmTbxCtlConfig( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
163 : : : SfxToolBoxControl( nSlotId, nId, rTbx )
164 : 133 : ,nLastSlot( 0 )
165 : : {
166 [ + - ][ + - ]: 133 : rTbx.SetItemBits( nId, TIB_DROPDOWN | rTbx.GetItemBits( nId ) );
167 : 133 : }
168 : :
169 : : //-----------------------------------------------------------------------
170 : 154 : void SvxFmTbxCtlConfig::StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState )
171 : : {
172 [ + - ]: 154 : if (nSID == SID_FM_CONFIG)
173 : : {
174 : 154 : sal_uInt16 nSlot = 0;
175 [ + - ]: 154 : if (eState >= SFX_ITEM_AVAILABLE)
176 : 154 : nSlot = ((SfxUInt16Item*)pState)->GetValue();
177 : :
178 [ - + ]: 154 : switch( nSlot )
179 : : {
180 : : case SID_FM_PUSHBUTTON:
181 : : case SID_FM_RADIOBUTTON:
182 : : case SID_FM_CHECKBOX:
183 : : case SID_FM_FIXEDTEXT:
184 : : case SID_FM_GROUPBOX:
185 : : case SID_FM_LISTBOX:
186 : : case SID_FM_COMBOBOX:
187 : : case SID_FM_NAVIGATIONBAR:
188 : : case SID_FM_EDIT:
189 : : case SID_FM_DBGRID:
190 : : case SID_FM_IMAGEBUTTON:
191 : : case SID_FM_IMAGECONTROL:
192 : : case SID_FM_FILECONTROL:
193 : : case SID_FM_DATEFIELD:
194 : : case SID_FM_TIMEFIELD:
195 : : case SID_FM_NUMERICFIELD:
196 : : case SID_FM_CURRENCYFIELD:
197 : : case SID_FM_PATTERNFIELD:
198 : : case SID_FM_DESIGN_MODE:
199 : : case SID_FM_FORMATTEDFIELD:
200 : : case SID_FM_SCROLLBAR:
201 : : case SID_FM_SPINBUTTON:
202 : : { // set a new image, matching to this slot
203 [ # # ]: 0 : rtl::OUString aSlotURL( RTL_CONSTASCII_USTRINGPARAM( "slot:" ));
204 : 0 : aSlotURL += rtl::OUString::valueOf( sal_Int32( nSlot ));
205 [ # # ][ # # ]: 0 : Image aImage = GetImage( m_xFrame, aSlotURL, hasBigImages() );
206 [ # # ][ # # ]: 0 : GetToolBox().SetItemImage( GetId(), aImage );
[ # # ]
207 [ # # ]: 0 : nLastSlot = nSlot;
208 : : }
209 : 154 : break;
210 : : }
211 : : }
212 : 154 : SfxToolBoxControl::StateChanged( nSID, eState,pState );
213 : 154 : }
214 : :
215 : : //-----------------------------------------------------------------------
216 : 0 : SfxPopupWindowType SvxFmTbxCtlConfig::GetPopupWindowType() const
217 : : {
218 [ # # ]: 0 : return( nLastSlot == 0 ? SFX_POPUPWINDOW_ONCLICK : SFX_POPUPWINDOW_ONTIMEOUT );
219 : : }
220 : :
221 : : //-----------------------------------------------------------------------
222 : 0 : SfxPopupWindow* SvxFmTbxCtlConfig::CreatePopupWindow()
223 : : {
224 [ # # ]: 0 : if ( GetSlotId() == SID_FM_CONFIG )
225 : : {
226 [ # # ]: 0 : ::svxform::FormToolboxes aToolboxes( m_xFrame );
227 [ # # ][ # # ]: 0 : createAndPositionSubToolBar( aToolboxes.getToolboxResourceName( SID_FM_CONFIG ) );
[ # # ]
228 : : }
229 : 0 : return NULL;
230 : : }
231 : :
232 : : //-----------------------------------------------------------------------
233 : 0 : void SvxFmTbxCtlConfig::Select( sal_uInt16 /*nModifier*/ )
234 : : {
235 : : //////////////////////////////////////////////////////////////////////
236 : : // Click auf den Button SID_FM_CONFIG in der ObjectBar
237 [ # # ]: 0 : if ( nLastSlot )
238 : : {
239 : 0 : sal_uInt16 n = 0;
240 [ # # ]: 0 : while( SlotToCommands[n].nSlotId > 0 )
241 : : {
242 [ # # ]: 0 : if ( SlotToCommands[n].nSlotId == nLastSlot )
243 : 0 : break;
244 : 0 : n++;
245 : : }
246 : :
247 [ # # ]: 0 : if ( SlotToCommands[n].nSlotId > 0 )
248 : : {
249 [ # # ]: 0 : Sequence< PropertyValue > aArgs;
250 : : Dispatch( rtl::OUString::createFromAscii( SlotToCommands[n].pCommand ),
251 [ # # ][ # # ]: 0 : aArgs );
252 : : }
253 : : }
254 : 0 : }
255 : :
256 : :
257 : : //========================================================================
258 : : // class SvxFmTbxCtlAbsRec
259 : : //========================================================================
260 : :
261 [ # # ]: 135 : SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlAbsRec, SfxInt32Item );
262 : : DBG_NAME(SvxFmTbxCtlAbsRec);
263 : : //-----------------------------------------------------------------------
264 : 0 : SvxFmTbxCtlAbsRec::SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
265 : 0 : :SfxToolBoxControl( nSlotId, nId, rTbx )
266 : : {
267 : : DBG_CTOR(SvxFmTbxCtlAbsRec,NULL);
268 : 0 : }
269 : :
270 : : //-----------------------------------------------------------------------
271 : 0 : SvxFmTbxCtlAbsRec::~SvxFmTbxCtlAbsRec()
272 : : {
273 : : DBG_DTOR(SvxFmTbxCtlAbsRec,NULL);
274 [ # # ]: 0 : }
275 : :
276 : : //-----------------------------------------------------------------------
277 : 0 : void SvxFmTbxCtlAbsRec::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState )
278 : : {
279 : 0 : sal_uInt16 nId = GetId();
280 : 0 : ToolBox* pToolBox = &GetToolBox();
281 : 0 : SvxFmAbsRecWin* pWin = (SvxFmAbsRecWin*)( pToolBox->GetItemWindow(nId) );
282 : :
283 : : DBG_ASSERT( pWin, "Control not found!" );
284 : :
285 [ # # ]: 0 : if (pState)
286 : : {
287 [ # # ][ # # ]: 0 : const SfxInt32Item* pItem = PTR_CAST( SfxInt32Item, pState );
288 : : DBG_ASSERT( pItem, "SvxFmTbxCtlAbsRec::StateChanged: invalid item!" );
289 [ # # ]: 0 : pWin->SetValue( pItem ? pItem->GetValue() : -1 );
290 : : }
291 : :
292 [ # # ][ # # ]: 0 : sal_Bool bEnable = SFX_ITEM_DISABLED != eState && pState;
293 [ # # ]: 0 : if (!bEnable)
294 [ # # ]: 0 : pWin->SetText(String());
295 : :
296 : : //////////////////////////////////////////////////////////////////////
297 : : // Enablen/disablen des Fensters
298 : 0 : pToolBox->EnableItem(nId, bEnable);
299 : 0 : SfxToolBoxControl::StateChanged( nSID, eState,pState );
300 : 0 : }
301 : :
302 : : //-----------------------------------------------------------------------
303 : 0 : Window* SvxFmTbxCtlAbsRec::CreateItemWindow( Window* pParent )
304 : : {
305 [ # # ]: 0 : SvxFmAbsRecWin* pWin = new SvxFmAbsRecWin( pParent, this );
306 [ # # ]: 0 : pWin->SetUniqueId( UID_ABSOLUTE_RECORD_WINDOW );
307 : 0 : return pWin;
308 : : }
309 : :
310 : :
311 : : //========================================================================
312 : : // SvxFmTbxCtlRecText
313 : : //========================================================================
314 : :
315 [ # # ]: 135 : SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlRecText, SfxBoolItem );
316 : : DBG_NAME(SvxFmTbxCtlRecText);
317 : : //-----------------------------------------------------------------------
318 : 0 : SvxFmTbxCtlRecText::SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
319 : 0 : :SfxToolBoxControl( nSlotId, nId, rTbx )
320 : : {
321 : : DBG_CTOR(SvxFmTbxCtlRecText,NULL);
322 : 0 : }
323 : :
324 : : //-----------------------------------------------------------------------
325 : 0 : SvxFmTbxCtlRecText::~SvxFmTbxCtlRecText()
326 : : {
327 : : DBG_DTOR(SvxFmTbxCtlRecText,NULL);
328 [ # # ]: 0 : }
329 : :
330 : : //-----------------------------------------------------------------------
331 : 0 : Window* SvxFmTbxCtlRecText::CreateItemWindow( Window* pParent )
332 : : {
333 [ # # ][ # # ]: 0 : XubString aText( SVX_RES(RID_STR_REC_TEXT) );
334 [ # # ][ # # ]: 0 : FixedText* pFixedText = new FixedText( pParent );
335 [ # # ][ # # ]: 0 : Size aSize( pFixedText->GetTextWidth( aText ), pFixedText->GetTextHeight( ) );
336 [ # # ]: 0 : pFixedText->SetText( aText );
337 : 0 : aSize.Width() += 6;
338 [ # # ]: 0 : pFixedText->SetSizePixel( aSize );
339 [ # # ][ # # ]: 0 : pFixedText->SetBackground(Wallpaper(Color(COL_TRANSPARENT)));
[ # # ]
340 : :
341 [ # # ]: 0 : return pFixedText;
342 : : }
343 : :
344 : :
345 : : //========================================================================
346 : : // SvxFmTbxCtlRecFromText
347 : : //========================================================================
348 : :
349 [ # # ]: 135 : SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlRecFromText, SfxBoolItem );
350 : : DBG_NAME(SvxFmTbxCtlRecFromText);
351 : : //-----------------------------------------------------------------------
352 : 0 : SvxFmTbxCtlRecFromText::SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
353 : 0 : :SfxToolBoxControl( nSlotId, nId, rTbx )
354 : : {
355 : : DBG_CTOR(SvxFmTbxCtlRecFromText,NULL);
356 : 0 : }
357 : :
358 : : //-----------------------------------------------------------------------
359 : 0 : SvxFmTbxCtlRecFromText::~SvxFmTbxCtlRecFromText()
360 : : {
361 : : DBG_DTOR(SvxFmTbxCtlRecFromText,NULL);
362 [ # # ]: 0 : }
363 : :
364 : : //-----------------------------------------------------------------------
365 : 0 : Window* SvxFmTbxCtlRecFromText::CreateItemWindow( Window* pParent )
366 : : {
367 [ # # ][ # # ]: 0 : XubString aText( SVX_RES(RID_STR_REC_FROM_TEXT) );
368 [ # # ][ # # ]: 0 : FixedText* pFixedText = new FixedText( pParent, WB_CENTER );
369 [ # # ][ # # ]: 0 : Size aSize( pFixedText->GetTextWidth( aText ), pFixedText->GetTextHeight( ) );
370 : 0 : aSize.Width() += 12;
371 [ # # ]: 0 : pFixedText->SetText( aText );
372 [ # # ]: 0 : pFixedText->SetSizePixel( aSize );
373 [ # # ][ # # ]: 0 : pFixedText->SetBackground(Wallpaper(Color(COL_TRANSPARENT)));
[ # # ]
374 [ # # ]: 0 : return pFixedText;
375 : : }
376 : :
377 : :
378 : : //========================================================================
379 : : // SvxFmTbxCtlRecTotal
380 : : //========================================================================
381 : : DBG_NAME(SvxFmTbxCtlRecTotal);
382 [ # # ]: 135 : SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxCtlRecTotal, SfxStringItem );
383 : :
384 : : //-----------------------------------------------------------------------
385 : 0 : SvxFmTbxCtlRecTotal::SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
386 : : :SfxToolBoxControl( nSlotId, nId, rTbx )
387 : 0 : ,pFixedText( NULL )
388 : : {
389 : : DBG_CTOR(SvxFmTbxCtlRecTotal,NULL);
390 : 0 : }
391 : :
392 : : //-----------------------------------------------------------------------
393 : 0 : SvxFmTbxCtlRecTotal::~SvxFmTbxCtlRecTotal()
394 : : {
395 : : DBG_DTOR(SvxFmTbxCtlRecTotal,NULL);
396 [ # # ]: 0 : }
397 : :
398 : : //-----------------------------------------------------------------------
399 : 0 : Window* SvxFmTbxCtlRecTotal::CreateItemWindow( Window* pParent )
400 : : {
401 [ # # ][ # # ]: 0 : pFixedText = new FixedText( pParent );
402 [ # # ]: 0 : String aSample(RTL_CONSTASCII_USTRINGPARAM("123456"));
403 [ # # ][ # # ]: 0 : Size aSize( pFixedText->GetTextWidth( aSample ), pFixedText->GetTextHeight( ) );
404 : 0 : aSize.Width() += 12;
405 [ # # ]: 0 : pFixedText->SetSizePixel( aSize );
406 [ # # ]: 0 : pFixedText->SetBackground();
407 [ # # ]: 0 : pFixedText->SetPaintTransparent(sal_True);
408 [ # # ]: 0 : return pFixedText;
409 : : }
410 : :
411 : : //-----------------------------------------------------------------------
412 : 0 : void SvxFmTbxCtlRecTotal::StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState )
413 : : {
414 : : //////////////////////////////////////////////////////////////////////
415 : : // Setzen des FixedTextes
416 [ # # ][ # # ]: 0 : if (GetSlotId() != SID_FM_RECORD_TOTAL)
417 : 0 : return;
418 : :
419 [ # # ]: 0 : XubString aText;
420 [ # # ]: 0 : if (pState)
421 [ # # ]: 0 : aText = ((SfxStringItem*)pState)->GetValue();
422 : : else
423 [ # # ]: 0 : aText = '?';
424 : :
425 [ # # ]: 0 : pFixedText->SetText( aText );
426 [ # # ]: 0 : pFixedText->Update();
427 [ # # ]: 0 : pFixedText->Flush();
428 : :
429 [ # # ][ # # ]: 0 : SfxToolBoxControl::StateChanged( nSID, eState,pState );
430 : : }
431 : :
432 : : //========================================================================
433 : : // SvxFmTbxNextRec
434 : : //========================================================================
435 [ # # ]: 135 : SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxNextRec, SfxBoolItem );
436 : :
437 : : //-----------------------------------------------------------------------
438 : 0 : SvxFmTbxNextRec::SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
439 : 0 : :SfxToolBoxControl( nSlotId, nId, rTbx )
440 : : {
441 [ # # ][ # # ]: 0 : rTbx.SetItemBits(nId, rTbx.GetItemBits(nId) | TIB_REPEAT);
442 : :
443 [ # # ]: 0 : AllSettings aSettings = rTbx.GetSettings();
444 [ # # ]: 0 : MouseSettings aMouseSettings = aSettings.GetMouseSettings();
445 [ # # ]: 0 : aMouseSettings.SetButtonRepeat(aMouseSettings.GetButtonRepeat() / 4);
446 [ # # ]: 0 : aSettings.SetMouseSettings(aMouseSettings);
447 [ # # ][ # # ]: 0 : rTbx.SetSettings(aSettings, sal_True);
[ # # ]
448 : 0 : }
449 : :
450 : : //========================================================================
451 : : // SvxFmTbxPrevRec
452 : : //========================================================================
453 [ # # ]: 135 : SFX_IMPL_TOOLBOX_CONTROL( SvxFmTbxPrevRec, SfxBoolItem );
454 : :
455 : : //-----------------------------------------------------------------------
456 : 0 : SvxFmTbxPrevRec::SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx )
457 : 0 : :SfxToolBoxControl( nSlotId, nId, rTbx )
458 : : {
459 [ # # ][ # # ]: 0 : rTbx.SetItemBits(nId, rTbx.GetItemBits(nId) | TIB_REPEAT);
460 : 0 : }
461 : :
462 : :
463 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|