ilstbox.hxx (161f4cd1) ilstbox.hxx (ad3a95a3)
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

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

243 mbCenter: 1; // center Text output
244
245 Link maScrollHdl;
246 Link maSelectHdl;
247 Link maCancelHdl;
248 Link maDoubleClickHdl;
249 Link maUserDrawHdl;
250 Link maMRUChangedHdl;
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

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

243 mbCenter: 1; // center Text output
244
245 Link maScrollHdl;
246 Link maSelectHdl;
247 Link maCancelHdl;
248 Link maDoubleClickHdl;
249 Link maUserDrawHdl;
250 Link maMRUChangedHdl;
251//IAccessibility2 Implementation 2009-----
252 Link maFocusHdl;
253 Link maListItemSelectHdl;
254//-----IAccessibility2 Implementation 2009
251
252 ::vcl::QuickSelectionEngine
253 maQuickSelectionEngine;
254
255protected:
256 virtual void KeyInput( const KeyEvent& rKEvt );
257 virtual void MouseButtonDown( const MouseEvent& rMEvt );
258 virtual void MouseMove( const MouseEvent& rMEvt );
259 virtual void Tracking( const TrackingEvent& rTEvt );
260 virtual void Paint( const Rectangle& rRect );
261 virtual void Resize();
262 virtual void GetFocus();
263 virtual void LoseFocus();
264
255
256 ::vcl::QuickSelectionEngine
257 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
265 sal_Bool SelectEntries( sal_uInt16 nSelect, LB_EVENT_TYPE eLET, sal_Bool bShift = sal_False, sal_Bool bCtrl = sal_False );
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 void ImplPaint( sal_uInt16 nPos, sal_Bool bErase = sal_False, bool bLayout = false );
267 void ImplDoPaint( const Rectangle& rRect, bool bLayout = false );
268 void ImplCalcMetrics();
269 void ImplUpdateEntryMetrics( ImplEntryType& rEntry );
270 void ImplCallSelect();
271
272 void ImplShowFocusRect();
273 void ImplHideFocusRect();

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

354 void SetCancelHdl( const Link& rLink ) { maCancelHdl = rLink; }
355 const Link& GetCancelHdl() const { return maCancelHdl; }
356 void SetDoubleClickHdl( const Link& rLink ) { maDoubleClickHdl = rLink; }
357 const Link& GetDoubleClickHdl() const { return maDoubleClickHdl; }
358 void SetUserDrawHdl( const Link& rLink ) { maUserDrawHdl = rLink; }
359 const Link& GetUserDrawHdl() const { return maUserDrawHdl; }
360 void SetMRUChangedHdl( const Link& rLink ) { maMRUChangedHdl = rLink; }
361 const Link& GetMRUChangedHdl() const { return maMRUChangedHdl; }
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();

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

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; }
369//IAccessibility2 Implementation 2009-----
370 void SetFocusHdl( const Link& rLink ) { maFocusHdl = rLink ; }
371 const Link& GetFocusHdl() const { return maFocusHdl; }
362
372
373 void SetListItemSelectHdl( const Link& rLink ) { maListItemSelectHdl = rLink ; }
374 const Link& GetListItemSelectHdl() const { return maListItemSelectHdl; }
375//-----IAccessibility2 Implementation 2009
363 sal_Bool IsSelectionChanged() const { return mbSelectionChanged; }
364 sal_uInt16 GetSelectModifier() const { return mnSelectModifier; }
365
366 void EnableSort( sal_Bool b ) { mbSort = b; }
367
368 void SetReadOnly( sal_Bool bReadOnly ) { mbReadOnly = bReadOnly; }
369 sal_Bool IsReadOnly() const { return mbReadOnly; }
370

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

484 const Link& GetSelectHdl() const { return maLBWindow.GetSelectHdl(); }
485 void SetCancelHdl( const Link& rLink ) { maLBWindow.SetCancelHdl( rLink ); }
486 const Link& GetCancelHdl() const { return maLBWindow.GetCancelHdl(); }
487 void SetDoubleClickHdl( const Link& rLink ) { maLBWindow.SetDoubleClickHdl( rLink ); }
488 const Link& GetDoubleClickHdl() const { return maLBWindow.GetDoubleClickHdl(); }
489 void SetUserDrawHdl( const Link& rLink ) { maLBWindow.SetUserDrawHdl( rLink ); }
490 const Link& GetUserDrawHdl() const { return maLBWindow.GetUserDrawHdl(); }
491
376 sal_Bool IsSelectionChanged() const { return mbSelectionChanged; }
377 sal_uInt16 GetSelectModifier() const { return mnSelectModifier; }
378
379 void EnableSort( sal_Bool b ) { mbSort = b; }
380
381 void SetReadOnly( sal_Bool bReadOnly ) { mbReadOnly = bReadOnly; }
382 sal_Bool IsReadOnly() const { return mbReadOnly; }
383

--- 113 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
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
492 void SetSelectionChangedHdl( const Link& rLnk ) { maLBWindow.GetEntryList()->SetSelectionChangedHdl( rLnk ); }
493 void SetCallSelectionChangedHdl( sal_Bool bCall ) { maLBWindow.GetEntryList()->SetCallSelectionChangedHdl( bCall ); }
494 sal_Bool IsSelectionChanged() const { return maLBWindow.IsSelectionChanged(); }
495 sal_uInt16 GetSelectModifier() const { return maLBWindow.GetSelectModifier(); }
496
497 void SetMRUEntries( const XubString& rEntries, xub_Unicode cSep );
498 XubString GetMRUEntries( xub_Unicode cSep ) const;
499 void SetMaxMRUCount( sal_uInt16 n ) { maLBWindow.GetEntryList()->SetMaxMRUCount( n ); }

--- 146 unchanged lines hidden ---
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 ); }

--- 146 unchanged lines hidden ---