ilstbox.hxx (ad3a95a3) ilstbox.hxx (a68b38df)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 52 unchanged lines hidden (view full) ---

61{
62 XubString maStr;
63 Image maImage;
64 void* mpUserData;
65 sal_Bool mbIsSelected;
66 long mnFlags;
67 long mnHeight;
68
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 52 unchanged lines hidden (view full) ---

61{
62 XubString maStr;
63 Image maImage;
64 void* mpUserData;
65 sal_Bool mbIsSelected;
66 long mnFlags;
67 long mnHeight;
68
69 ImplEntryType( const XubString& rStr, const Image& rImage ) :
70 maStr( rStr ),
71 maImage( rImage ),
72 mnFlags( 0 ),
73 mnHeight( 0 )
74 {
75 mbIsSelected = sal_False;
76 mpUserData = NULL;
77 }
69 ImplEntryType( const XubString& rStr, const Image& rImage ) :
70 maStr( rStr ),
71 maImage( rImage ),
72 mnFlags( 0 ),
73 mnHeight( 0 )
74 {
75 mbIsSelected = sal_False;
76 mpUserData = NULL;
77 }
78
78
79 ImplEntryType( const XubString& rStr ) :
80 maStr( rStr ),
81 mnFlags( 0 ),
82 mnHeight( 0 )
83 {
84 mbIsSelected = sal_False;
85 mpUserData = NULL;
86 }
79 ImplEntryType( const XubString& rStr ) :
80 maStr( rStr ),
81 mnFlags( 0 ),
82 mnHeight( 0 )
83 {
84 mbIsSelected = sal_False;
85 mpUserData = NULL;
86 }
87
87
88 ImplEntryType( const Image& rImage ) :
89 maImage( rImage ),
90 mnFlags( 0 ),
91 mnHeight( 0 )
92 {
93 mbIsSelected = sal_False;
94 mpUserData = NULL;
95 }
88 ImplEntryType( const Image& rImage ) :
89 maImage( rImage ),
90 mnFlags( 0 ),
91 mnHeight( 0 )
92 {
93 mbIsSelected = sal_False;
94 mpUserData = NULL;
95 }
96};
97
98// -----------------
99// - ImplEntryList -
100// -----------------
101
102class ImplEntryList : private List
103{

--- 114 unchanged lines hidden (view full) ---

218 sal_uInt16 mnTop; // Ausgabe ab Zeile
219 long mnLeft; // Ausgabe ab Spalte
220 long mnBorder; // Abstand Rahmen - Text
221 long mnTextHeight; // Texthoehe
222 ProminentEntry meProminentType; // where is the "prominent" entry
223
224 sal_uInt16 mnSelectModifier; // Modifiers
225
96};
97
98// -----------------
99// - ImplEntryList -
100// -----------------
101
102class ImplEntryList : private List
103{

--- 114 unchanged lines hidden (view full) ---

218 sal_uInt16 mnTop; // Ausgabe ab Zeile
219 long mnLeft; // Ausgabe ab Spalte
220 long mnBorder; // Abstand Rahmen - Text
221 long mnTextHeight; // Texthoehe
222 ProminentEntry meProminentType; // where is the "prominent" entry
223
224 sal_uInt16 mnSelectModifier; // Modifiers
225
226 sal_Bool mbHasFocusRect: 1,
227 mbSort: 1, // ListBox sortiert
228 mbTrack: 1, // Tracking
229 mbMulti: 1, // MultiListBox
230 mbStackMode: 1, // StackSelection
231 mbSimpleMode: 1, // SimpleMode fuer MultiListBox
232 mbImgsDiffSz: 1, // Images haben verschiedene Groessen
233 mbTravelSelect: 1, // TravelSelect
234 mbTrackingSelect: 1, // Selektiert bei MouseMove
235 mbSelectionChanged: 1, // Select() nicht zu oft rufen...
236 mbMouseMoveSelect: 1, // Selektieren bei MouseMove
237 mbGrabFocus: 1, // Focus bei MBDown grabben
238 mbUserDrawEnabled: 1, // UserDraw possible
239 mbInUserDraw: 1, // In UserDraw
240 mbReadOnly: 1, // ReadOnly
241 mbMirroring: 1, // pb: #106948# explicit mirroring for calc
242 mbRight: 1, // right align Text output
243 mbCenter: 1; // center Text output
226 /// bitfield
227 bool mbHasFocusRect : 1;
228 bool mbSort : 1; // ListBox sortiert
229 bool mbTrack : 1; // Tracking
230 bool mbMulti : 1; // MultiListBox
231 bool mbStackMode : 1; // StackSelection
232 bool mbSimpleMode : 1; // SimpleMode fuer MultiListBox
233 bool mbImgsDiffSz : 1; // Images haben verschiedene Groessen
234 bool mbTravelSelect : 1; // TravelSelect
235 bool mbTrackingSelect : 1; // Selektiert bei MouseMove
236 bool mbSelectionChanged : 1; // Select() nicht zu oft rufen...
237 bool mbMouseMoveSelect : 1; // Selektieren bei MouseMove
238 bool mbGrabFocus : 1; // Focus bei MBDown grabben
239 bool mbUserDrawEnabled : 1; // UserDraw possible
240 bool mbInUserDraw : 1; // In UserDraw
241 bool mbReadOnly : 1; // ReadOnly
242 bool mbMirroring : 1; // pb: #106948# explicit mirroring for calc
243 bool mbRight : 1; // right align Text output
244 bool mbCenter : 1; // center Text output
245 bool mbEdgeBlending : 1;
244
245 Link maScrollHdl;
246 Link maSelectHdl;
247 Link maCancelHdl;
248 Link maDoubleClickHdl;
249 Link maUserDrawHdl;
250 Link maMRUChangedHdl;
246
247 Link maScrollHdl;
248 Link maSelectHdl;
249 Link maCancelHdl;
250 Link maDoubleClickHdl;
251 Link maUserDrawHdl;
252 Link maMRUChangedHdl;
251//IAccessibility2 Implementation 2009-----
252 Link maFocusHdl;
253 Link maListItemSelectHdl;
254//-----IAccessibility2 Implementation 2009
255
253
256 ::vcl::QuickSelectionEngine
257 maQuickSelectionEngine;
254 ::vcl::QuickSelectionEngine maQuickSelectionEngine;
258
259protected:
260 virtual void KeyInput( const KeyEvent& rKEvt );
261 virtual void MouseButtonDown( const MouseEvent& rMEvt );
262 virtual void MouseMove( const MouseEvent& rMEvt );
263 virtual void Tracking( const TrackingEvent& rTEvt );
264 virtual void Paint( const Rectangle& rRect );
265 virtual void Resize();
266 virtual void GetFocus();
267 virtual void LoseFocus();
268
255
256protected:
257 virtual void KeyInput( const KeyEvent& rKEvt );
258 virtual void MouseButtonDown( const MouseEvent& rMEvt );
259 virtual void MouseMove( const MouseEvent& rMEvt );
260 virtual void Tracking( const TrackingEvent& rTEvt );
261 virtual void Paint( const Rectangle& rRect );
262 virtual void Resize();
263 virtual void GetFocus();
264 virtual void LoseFocus();
265
269 //IAccessibility2 Implementation 2009-----
270 //sal_Bool SelectEntries( sal_uInt16 nSelect, LB_EVENT_TYPE eLET, sal_Bool bShift = sal_False, sal_Bool bCtrl = sal_False );
271 sal_Bool SelectEntries( sal_uInt16 nSelect, LB_EVENT_TYPE eLET, sal_Bool bShift = sal_False, sal_Bool bCtrl = sal_False, sal_Bool bSelectPosChange = sal_False );
272 //-----IAccessibility2 Implementation 2009
266 sal_Bool SelectEntries( sal_uInt16 nSelect, LB_EVENT_TYPE eLET, sal_Bool bShift = sal_False, sal_Bool bCtrl = sal_False );
273 void ImplPaint( sal_uInt16 nPos, sal_Bool bErase = sal_False, bool bLayout = false );
274 void ImplDoPaint( const Rectangle& rRect, bool bLayout = false );
275 void ImplCalcMetrics();
276 void ImplUpdateEntryMetrics( ImplEntryType& rEntry );
277 void ImplCallSelect();
278
279 void ImplShowFocusRect();
280 void ImplHideFocusRect();

--- 36 unchanged lines hidden (view full) ---

317 ProminentEntry GetProminentEntryType() const { return meProminentType; }
318 using Window::IsVisible;
319 sal_Bool IsVisible( sal_uInt16 nEntry ) const;
320
321 long GetLeftIndent() const { return mnLeft; }
322 void SetLeftIndent( long n );
323 void ScrollHorz( long nDiff );
324
267 void ImplPaint( sal_uInt16 nPos, sal_Bool bErase = sal_False, bool bLayout = false );
268 void ImplDoPaint( const Rectangle& rRect, bool bLayout = false );
269 void ImplCalcMetrics();
270 void ImplUpdateEntryMetrics( ImplEntryType& rEntry );
271 void ImplCallSelect();
272
273 void ImplShowFocusRect();
274 void ImplHideFocusRect();

--- 36 unchanged lines hidden (view full) ---

311 ProminentEntry GetProminentEntryType() const { return meProminentType; }
312 using Window::IsVisible;
313 sal_Bool IsVisible( sal_uInt16 nEntry ) const;
314
315 long GetLeftIndent() const { return mnLeft; }
316 void SetLeftIndent( long n );
317 void ScrollHorz( long nDiff );
318
325 void AllowGrabFocus( sal_Bool b ) { mbGrabFocus = b; }
326 sal_Bool IsGrabFocusAllowed() const { return mbGrabFocus; }
319 void AllowGrabFocus( bool b ) { mbGrabFocus = b; }
320 bool IsGrabFocusAllowed() const { return mbGrabFocus; }
327
328 void SetSeparatorPos( sal_uInt16 n ) { mnSeparatorPos = n; }
329 sal_uInt16 GetSeparatorPos() const { return mnSeparatorPos; }
330
321
322 void SetSeparatorPos( sal_uInt16 n ) { mnSeparatorPos = n; }
323 sal_uInt16 GetSeparatorPos() const { return mnSeparatorPos; }
324
331 void SetTravelSelect( sal_Bool bTravelSelect ) { mbTravelSelect = bTravelSelect; }
332 sal_Bool IsTravelSelect() const { return mbTravelSelect; }
333 sal_Bool IsTrackingSelect() const { return mbTrackingSelect; }
325 void SetTravelSelect( bool bTravelSelect ) { mbTravelSelect = bTravelSelect; }
326 bool IsTravelSelect() const { return mbTravelSelect; }
327 bool IsTrackingSelect() const { return mbTrackingSelect; }
334
335 void SetUserItemSize( const Size& rSz );
336 const Size& GetUserItemSize() const { return maUserItemSize; }
337
328
329 void SetUserItemSize( const Size& rSz );
330 const Size& GetUserItemSize() const { return maUserItemSize; }
331
338 void EnableUserDraw( sal_Bool bUserDraw ) { mbUserDrawEnabled = bUserDraw; }
339 sal_Bool IsUserDrawEnabled() const { return mbUserDrawEnabled; }
332 void EnableUserDraw( bool bUserDraw ) { mbUserDrawEnabled = bUserDraw; }
333 bool IsUserDrawEnabled() const { return mbUserDrawEnabled; }
340
334
341 void EnableMultiSelection( sal_Bool bMulti, sal_Bool bStackMode ) { mbMulti = bMulti; mbStackMode = bStackMode; }
342 sal_Bool IsMultiSelectionEnabled() const { return mbMulti; }
335 void EnableMultiSelection( bool bMulti, bool bStackMode ) { mbMulti = bMulti; mbStackMode = bStackMode; }
336 bool IsMultiSelectionEnabled() const { return mbMulti; }
343
337
344 void SetMultiSelectionSimpleMode( sal_Bool bSimple ) { mbSimpleMode = bSimple; }
345 sal_Bool IsMultiSelectionSimpleMode() const { return mbSimpleMode; }
338 void SetMultiSelectionSimpleMode( bool bSimple ) { mbSimpleMode = bSimple; }
339 bool IsMultiSelectionSimpleMode() const { return mbSimpleMode; }
346
340
347 void EnableMouseMoveSelect( sal_Bool bMouseMoveSelect ) { mbMouseMoveSelect = bMouseMoveSelect; }
348 sal_Bool IsMouseMoveSelectEnabled() const { return mbMouseMoveSelect; }
349 sal_Bool IsMouseMoveSelect() const { return mbMouseMoveSelect||mbStackMode; }
341 void EnableMouseMoveSelect( bool bMouseMoveSelect ) { mbMouseMoveSelect = bMouseMoveSelect; }
342 bool IsMouseMoveSelectEnabled() const { return mbMouseMoveSelect; }
343 bool IsMouseMoveSelect() const { return mbMouseMoveSelect||mbStackMode; }
350
351 Size CalcSize( sal_uInt16 nMaxLines ) const;
352 Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const;
353
354 long GetEntryHeight() const { return mnMaxHeight; }
355 long GetMaxEntryWidth() const { return mnMaxWidth; }
356
357 void SetScrollHdl( const Link& rLink ) { maScrollHdl = rLink; }
358 const Link& GetScrollHdl() const { return maScrollHdl; }
359 void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
360 const Link& GetSelectHdl() const { return maSelectHdl; }
361 void SetCancelHdl( const Link& rLink ) { maCancelHdl = rLink; }
362 const Link& GetCancelHdl() const { return maCancelHdl; }
363 void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
364 const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
365 void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
366 const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
367 void SetMRUChangedHdl( const Link& rLink ) { maMRUChangedHdl = rLink; }
368 const Link& GetMRUChangedHdl() const { return maMRUChangedHdl; }
344
345 Size CalcSize( sal_uInt16 nMaxLines ) const;
346 Rectangle GetBoundingRectangle( sal_uInt16 nItem ) const;
347
348 long GetEntryHeight() const { return mnMaxHeight; }
349 long GetMaxEntryWidth() const { return mnMaxWidth; }
350
351 void SetScrollHdl( const Link& rLink ) { maScrollHdl = rLink; }
352 const Link& GetScrollHdl() const { return maScrollHdl; }
353 void SetSelectHdl( const Link& rLink ) { maSelectHdl = rLink; }
354 const Link& GetSelectHdl() const { return maSelectHdl; }
355 void SetCancelHdl( const Link& rLink ) { maCancelHdl = rLink; }
356 const Link& GetCancelHdl() const { return maCancelHdl; }
357 void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
358 const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
359 void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
360 const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
361 void SetMRUChangedHdl( const Link& rLink ) { maMRUChangedHdl = rLink; }
362 const Link& GetMRUChangedHdl() const { return maMRUChangedHdl; }
369//IAccessibility2 Implementation 2009-----
370 void SetFocusHdl( const Link& rLink ) { maFocusHdl = rLink ; }
371 const Link& GetFocusHdl() const { return maFocusHdl; }
372
363
373 void SetListItemSelectHdl( const Link& rLink ) { maListItemSelectHdl = rLink ; }
374 const Link& GetListItemSelectHdl() const { return maListItemSelectHdl; }
375//-----IAccessibility2 Implementation 2009
376 sal_Bool IsSelectionChanged() const { return mbSelectionChanged; }
364 bool IsSelectionChanged() const { return mbSelectionChanged; }
377 sal_uInt16 GetSelectModifier() const { return mnSelectModifier; }
378
365 sal_uInt16 GetSelectModifier() const { return mnSelectModifier; }
366
379 void EnableSort( sal_Bool b ) { mbSort = b; }
367 void EnableSort( bool b ) { mbSort = b; }
380
368
381 void SetReadOnly( sal_Bool bReadOnly ) { mbReadOnly = bReadOnly; }
382 sal_Bool IsReadOnly() const { return mbReadOnly; }
369 void SetReadOnly( bool bReadOnly ) { mbReadOnly = bReadOnly; }
370 bool IsReadOnly() const { return mbReadOnly; }
383
384 using Control::ImplInitSettings;
385 void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground );
386 sal_uInt16 ImplGetTextStyle() const;
387
388 // pb: #106948# explicit mirroring for calc
371
372 using Control::ImplInitSettings;
373 void ImplInitSettings( sal_Bool bFont, sal_Bool bForeground, sal_Bool bBackground );
374 sal_uInt16 ImplGetTextStyle() const;
375
376 // pb: #106948# explicit mirroring for calc
389 inline void EnableMirroring() { mbMirroring = sal_True; }
390 inline sal_Bool IsMirroring() const { return mbMirroring; }
377 inline void EnableMirroring() { mbMirroring = true; }
378 inline bool IsMirroring() const { return mbMirroring; }
391
379
380 bool GetEdgeBlending() const { return mbEdgeBlending; }
381 void SetEdgeBlending(bool bNew) { mbEdgeBlending = bNew; }
382
392protected:
393 // ISearchableStringList
394 virtual ::vcl::StringEntryIdentifier CurrentEntry( String& _out_entryText ) const;
395 virtual ::vcl::StringEntryIdentifier NextEntry( ::vcl::StringEntryIdentifier _currentEntry, String& _out_entryText ) const;
396 virtual void SelectEntry( ::vcl::StringEntryIdentifier _entry );
397};
398
399// ---------------
400// - ImplListBox -
401// ---------------
402
403class ImplListBox : public Control
404{
405private:
406 ImplListBoxWindow maLBWindow;
407 ScrollBar* mpHScrollBar;
408 ScrollBar* mpVScrollBar;
409 ScrollBarBox* mpScrollBarBox;
383protected:
384 // ISearchableStringList
385 virtual ::vcl::StringEntryIdentifier CurrentEntry( String& _out_entryText ) const;
386 virtual ::vcl::StringEntryIdentifier NextEntry( ::vcl::StringEntryIdentifier _currentEntry, String& _out_entryText ) const;
387 virtual void SelectEntry( ::vcl::StringEntryIdentifier _entry );
388};
389
390// ---------------
391// - ImplListBox -
392// ---------------
393
394class ImplListBox : public Control
395{
396private:
397 ImplListBoxWindow maLBWindow;
398 ScrollBar* mpHScrollBar;
399 ScrollBar* mpVScrollBar;
400 ScrollBarBox* mpScrollBarBox;
410 sal_Bool mbVScroll : 1, // VScroll an oder aus
411 mbHScroll : 1, // HScroll an oder aus
412 mbAutoHScroll : 1; // AutoHScroll an oder aus
401
402 /// bitfield
403 bool mbVScroll : 1; // VScroll an oder aus
404 bool mbHScroll : 1; // HScroll an oder aus
405 bool mbAutoHScroll : 1; // AutoHScroll an oder aus
406 bool mbEdgeBlending : 1;
407
413 Link maScrollHdl; // Weil der vom ImplListBoxWindow selbst benoetigt wird.
414 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxDNDListenerContainer;
415
416protected:
417 virtual void GetFocus();
418 virtual void StateChanged( StateChangedType nType );
419 virtual void DataChanged( const DataChangedEvent& rDCEvt );
420

--- 76 unchanged lines hidden (view full) ---

497 const Link& GetSelectHdl() const { return maLBWindow.GetSelectHdl(); }
498 void SetCancelHdl( const Link& rLink ) { maLBWindow.SetCancelHdl( rLink ); }
499 const Link& GetCancelHdl() const { return maLBWindow.GetCancelHdl(); }
500 void SetDoubleClickHdl( const Link& rLink ) { maLBWindow.SetDoubleClickHdl( rLink ); }
501 const Link& GetDoubleClickHdl() const { return maLBWindow.GetDoubleClickHdl(); }
502 void SetUserDrawHdl( const Link& rLink ) { maLBWindow.SetUserDrawHdl( rLink ); }
503 const Link& GetUserDrawHdl() const { return maLBWindow.GetUserDrawHdl(); }
504
408 Link maScrollHdl; // Weil der vom ImplListBoxWindow selbst benoetigt wird.
409 ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > mxDNDListenerContainer;
410
411protected:
412 virtual void GetFocus();
413 virtual void StateChanged( StateChangedType nType );
414 virtual void DataChanged( const DataChangedEvent& rDCEvt );
415

--- 76 unchanged lines hidden (view full) ---

492 const Link& GetSelectHdl() const { return maLBWindow.GetSelectHdl(); }
493 void SetCancelHdl( const Link& rLink ) { maLBWindow.SetCancelHdl( rLink ); }
494 const Link& GetCancelHdl() const { return maLBWindow.GetCancelHdl(); }
495 void SetDoubleClickHdl( const Link& rLink ) { maLBWindow.SetDoubleClickHdl( rLink ); }
496 const Link& GetDoubleClickHdl() const { return maLBWindow.GetDoubleClickHdl(); }
497 void SetUserDrawHdl( const Link& rLink ) { maLBWindow.SetUserDrawHdl( rLink ); }
498 const Link& GetUserDrawHdl() const { return maLBWindow.GetUserDrawHdl(); }
499
505//IAccessibility2 Implementation 2009-----
506 void SetFocusHdl( const Link& rLink ) { maLBWindow.SetFocusHdl( rLink ); }
507 const Link& GetFocusHdl() const { return maLBWindow.GetFocusHdl(); }
508 void SetListItemSelectHdl( const Link& rLink ) { maLBWindow.SetListItemSelectHdl( rLink ); }
509 const Link& GetListItemSelectHdl() const { return maLBWindow.GetListItemSelectHdl(); }
510//-----IAccessibility2 Implementation 2009
511 void SetSelectionChangedHdl( const Link& rLnk ) { maLBWindow.GetEntryList()->SetSelectionChangedHdl( rLnk ); }
512 void SetCallSelectionChangedHdl( sal_Bool bCall ) { maLBWindow.GetEntryList()->SetCallSelectionChangedHdl( bCall ); }
513 sal_Bool IsSelectionChanged() const { return maLBWindow.IsSelectionChanged(); }
514 sal_uInt16 GetSelectModifier() const { return maLBWindow.GetSelectModifier(); }
515
516 void SetMRUEntries( const XubString& rEntries, xub_Unicode cSep );
517 XubString GetMRUEntries( xub_Unicode cSep ) const;
518 void SetMaxMRUCount( sal_uInt16 n ) { maLBWindow.GetEntryList()->SetMaxMRUCount( n ); }
519 sal_uInt16 GetMaxMRUCount() const { return maLBWindow.GetEntryList()->GetMaxMRUCount(); }
520 sal_uInt16 GetDisplayLineCount() const
521 { return maLBWindow.GetDisplayLineCount(); }
522
500 void SetSelectionChangedHdl( const Link& rLnk ) { maLBWindow.GetEntryList()->SetSelectionChangedHdl( rLnk ); }
501 void SetCallSelectionChangedHdl( sal_Bool bCall ) { maLBWindow.GetEntryList()->SetCallSelectionChangedHdl( bCall ); }
502 sal_Bool IsSelectionChanged() const { return maLBWindow.IsSelectionChanged(); }
503 sal_uInt16 GetSelectModifier() const { return maLBWindow.GetSelectModifier(); }
504
505 void SetMRUEntries( const XubString& rEntries, xub_Unicode cSep );
506 XubString GetMRUEntries( xub_Unicode cSep ) const;
507 void SetMaxMRUCount( sal_uInt16 n ) { maLBWindow.GetEntryList()->SetMaxMRUCount( n ); }
508 sal_uInt16 GetMaxMRUCount() const { return maLBWindow.GetEntryList()->GetMaxMRUCount(); }
509 sal_uInt16 GetDisplayLineCount() const
510 { return maLBWindow.GetDisplayLineCount(); }
511
523 // pb: #106948# explicit mirroring for calc
512 bool GetEdgeBlending() const { return mbEdgeBlending; }
513 void SetEdgeBlending(bool bNew);
514
515 // pb: #106948# explicit mirroring for calc
524 inline void EnableMirroring() { maLBWindow.EnableMirroring(); }
525 inline void SetDropTraget(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& i_xDNDListenerContainer){ mxDNDListenerContainer= i_xDNDListenerContainer; }
526};
527
528// -----------------------------
529// - ImplListBoxFloatingWindow -
530// -----------------------------
531

--- 50 unchanged lines hidden (view full) ---

582 Image maImageHC;
583
584 Rectangle maFocusRect;
585 Size maUserItemSize;
586
587 Link maMBDownHdl;
588 Link maUserDrawHdl;
589
516 inline void EnableMirroring() { maLBWindow.EnableMirroring(); }
517 inline void SetDropTraget(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& i_xDNDListenerContainer){ mxDNDListenerContainer= i_xDNDListenerContainer; }
518};
519
520// -----------------------------
521// - ImplListBoxFloatingWindow -
522// -----------------------------
523

--- 50 unchanged lines hidden (view full) ---

574 Image maImageHC;
575
576 Rectangle maFocusRect;
577 Size maUserItemSize;
578
579 Link maMBDownHdl;
580 Link maUserDrawHdl;
581
590 sal_Bool mbUserDrawEnabled : 1,
591 mbInUserDraw : 1;
582 /// bitfield
583 bool mbUserDrawEnabled : 1;
584 bool mbInUserDraw : 1;
585 bool mbEdgeBlending : 1;
592
586
593
594 void ImplDraw( bool bLayout = false );
595protected:
596 virtual void FillLayoutData() const;
597public:
598
599 ImplWin( Window* pParent, WinBits nWinStyle = 0 );
600 ~ImplWin() {};
601

--- 22 unchanged lines hidden (view full) ---

624 const Link& GetMBDownHdl() const { return maMBDownHdl; }
625
626 void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
627 const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
628
629 void SetUserItemSize( const Size& rSz ) { maUserItemSize = rSz; }
630 const Size& GetUserItemSize() const { return maUserItemSize; }
631
587 void ImplDraw( bool bLayout = false );
588protected:
589 virtual void FillLayoutData() const;
590public:
591
592 ImplWin( Window* pParent, WinBits nWinStyle = 0 );
593 ~ImplWin() {};
594

--- 22 unchanged lines hidden (view full) ---

617 const Link& GetMBDownHdl() const { return maMBDownHdl; }
618
619 void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
620 const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
621
622 void SetUserItemSize( const Size& rSz ) { maUserItemSize = rSz; }
623 const Size& GetUserItemSize() const { return maUserItemSize; }
624
632 void EnableUserDraw( sal_Bool bUserDraw ) { mbUserDrawEnabled = bUserDraw; }
633 sal_Bool IsUserDrawEnabled() const { return mbUserDrawEnabled; }
625 void EnableUserDraw( bool bUserDraw ) { mbUserDrawEnabled = bUserDraw; }
626 bool IsUserDrawEnabled() const { return mbUserDrawEnabled; }
634
635 void DrawEntry( sal_Bool bDrawImage, sal_Bool bDrawText, sal_Bool bDrawTextAtImagePos = sal_False, bool bLayout = false );
627
628 void DrawEntry( sal_Bool bDrawImage, sal_Bool bDrawText, sal_Bool bDrawTextAtImagePos = sal_False, bool bLayout = false );
629
630 bool GetEdgeBlending() const { return mbEdgeBlending; }
631 void SetEdgeBlending(bool bNew) { mbEdgeBlending = bNew; }
636};
637
638// -----------
639// - ImplBtn -
640// -----------
641
642class ImplBtn : public PushButton
643{

--- 21 unchanged lines hidden ---
632};
633
634// -----------
635// - ImplBtn -
636// -----------
637
638class ImplBtn : public PushButton
639{

--- 21 unchanged lines hidden ---