LibreOffice Module vcl (master)  1
svimpbox.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 #ifndef INCLUDED_VCL_SOURCE_INC_SVIMPBOX_HXX
21 #define INCLUDED_VCL_SOURCE_INC_SVIMPBOX_HXX
22 
23 #include <vcl/dllapi.h>
24 #include <vcl/seleng.hxx>
25 #include <vcl/scrbar.hxx>
26 #include <vcl/idle.hxx>
27 #include <vcl/image.hxx>
29 #include <vcl/vclevent.hxx>
31 #include <o3tl/enumarray.hxx>
32 #include <memory>
33 #include <vector>
34 
35 class SvLBoxButton;
36 class SvTreeList;
37 class SvImpLBox;
38 class SvTreeListEntry;
39 namespace comphelper::string { class NaturalStringSorter; }
40 
41 class ImpLBSelEng final : public FunctionSet
42 {
45 
46 public:
47  ImpLBSelEng( SvImpLBox* pImp, SvTreeListBox* pView );
48  virtual ~ImpLBSelEng() override;
49  void BeginDrag() override;
50  void CreateAnchor() override;
51  void DestroyAnchor() override;
52  void SetCursorAtPoint( const Point& rPoint,
53  bool bDontSelectAtCursor=false ) override;
54  bool IsSelectionAtPoint( const Point& rPoint ) override;
55  void DeselectAtPoint( const Point& rPoint ) override;
56  void DeselectAll() override;
57 };
58 
59 // Flags for nFlag
60 enum class LBoxFlags {
61  NONE = 0x0000,
62  DeselectAll = 0x0002,
63  StartEditTimer = 0x0004, // MAC only
64  IgnoreSelect = 0x0008,
65  InResize = 0x0010,
66  RemovedEntryInvisible = 0x0020,
67  RemovedRecalcMostRight = 0x0040,
68  IgnoreChangedTabs = 0x0080,
69  InPaint = 0x0100,
70  EndScrollSetVisSize = 0x0200,
71  Filling = 0x0400,
72 };
73 namespace o3tl
74 {
75  template<> struct typed_flags<LBoxFlags> : is_typed_flags<LBoxFlags, 0x07fe> {};
76 }
77 
78 #define NODE_BMP_TABDIST_NOTVALID -2000000
79 #define FIRST_ENTRY_TAB 1
80 
81 class SvImpLBox
82 {
83 friend class ImpLBSelEng;
84 friend class SvTreeListBox;
85 friend class SalInstanceTreeView;
86 friend class IconView;
87 private:
94 
97 
98  ::vcl::AccessibleFactoryAccess
100 
103  static oslInterlockedCount s_nImageRefCount;
104 
105  // Node Bitmaps
106  enum class ImageType
107  {
108  NodeExpanded = 0, // node is expanded ( usually a bitmap showing a minus )
109  NodeCollapsed, // node is collapsed ( usually a bitmap showing a plus )
110  NodeDontKnow, // don't know the node state
111  EntryDefExpanded, // default for expanded entries
112  EntryDefCollapsed, // default for collapsed entries
113  LAST = EntryDefCollapsed
114  };
115 
116  // all our images
119 
121 
125 
126  bool m_bUpdateMode : 1;
127  bool m_bSubLstOpLR : 1; // open/close sublist with cursor left/right, defaulted with false
129 
132 
133  std::unique_ptr<comphelper::string::NaturalStringSorter> m_pStringSorter;
134 
135  std::vector< short > m_aContextBmpWidthVector;
136 
137  DECL_LINK(EditTimerCall, Timer *, void);
138 
139  void InvalidateEntriesFrom( long nY ) const;
140  bool IsLineVisible( long nY ) const;
141  void KeyLeftRight( long nDiff );
142 
143  void DrawNet(vcl::RenderContext& rRenderContext);
144 
145  // ScrollBar-Handler
146  DECL_LINK( ScrollUpDownHdl, ScrollBar*, void );
147  DECL_LINK( ScrollLeftRightHdl, ScrollBar*, void );
148  DECL_LINK( EndScrollHdl, ScrollBar*, void );
149 
150  void SetNodeBmpWidth( const Image& );
151  void SetNodeBmpTabDistance();
152 
153  // Selection-Engine
154  SvTreeListEntry* MakePointVisible( const Point& rPoint );
155 
157  SvTreeListEntry* pNewCursor );
158  void BeginDrag();
159  bool ButtonDownCheckCtrl( const MouseEvent& rMEvt, SvTreeListEntry* pEntry );
160  bool MouseMoveCheckCtrl( const MouseEvent& rMEvt, SvTreeListEntry const * pEntry );
161  bool ButtonUpCheckCtrl( const MouseEvent& rMEvt );
163 
164  bool EntryReallyHit(SvTreeListEntry* pEntry, const Point& rPos, long nLine);
165  void InitScrollBarBox();
166  SvLBoxTab* NextTab( SvLBoxTab const * );
167 
168  bool SetMostRight( SvTreeListEntry* pEntry );
169  void FindMostRight( SvTreeListEntry* pParent );
170  void FindMostRight_Impl( SvTreeListEntry* pParent );
171  void NotifyTabsChanged();
172 
173  // if element at cursor can be expanded in general
174  bool IsExpandable() const;
175 
176  static void implInitDefaultNodeImages();
177 
178  void UpdateStringSorter();
179 
180  short UpdateContextBmpWidthVector( SvTreeListEntry const * pEntry, short nWidth );
181  void UpdateContextBmpWidthMax( SvTreeListEntry const * pEntry );
183 
184  void ExpandAll();
185  void CollapseTo(SvTreeListEntry* pParentToCollapse);
186 
187 protected:
196  bool mbNoAutoCurEntry; // disable the behavior of automatically selecting a "CurEntry" upon painting the control
198  sal_uLong m_nVisibleCount; // Number of lines in control
199  bool m_bInVScrollHdl : 1;
200  bool m_bSimpleTravel : 1; // is true if SelectionMode::Single
202  long m_nNodeBmpTabDistance; // typical smaller than 0
203 
204  virtual long GetEntryLine(const SvTreeListEntry* pEntry) const;
205  virtual void CursorDown();
206  virtual void CursorUp();
207  virtual void PageDown( sal_uInt16 nDelta );
208  virtual void PageUp( sal_uInt16 nDelta );
209  // set Thumb to FirstEntryToDraw
210  virtual void SyncVerThumb();
211  virtual void AdjustScrollBars( Size& rSize );
212  virtual void InvalidateEntry( long nY ) const;
213 
215  void SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect = false );
216  void PositionScrollBars( Size& rOSize, sal_uInt16 nMask );
217  void FindMostRight();
218  void FillView();
219  void ShowVerSBar();
220  void StopUserEvent();
221 
222  DECL_LINK( MyUserEvent, void*, void);
223 
224 public:
225  SvImpLBox( SvTreeListBox* pView, SvTreeList*, WinBits nWinStyle );
226  virtual ~SvImpLBox();
227 
228  void Clear();
229  void SetStyle( WinBits i_nWinStyle );
230  void SetNoAutoCurEntry( bool b );
231  void SetModel( SvTreeList* pModel ) { m_pTree = pModel;}
232 
234  void RemovingEntry( SvTreeListEntry* pEntry );
235  void EntryRemoved();
236  void MovingEntry( SvTreeListEntry* pEntry );
237  void EntryMoved( SvTreeListEntry* pEntry );
238  void TreeInserted( SvTreeListEntry* pEntry );
239 
240  void EntryExpanded( SvTreeListEntry* pEntry );
241  void EntryCollapsed( SvTreeListEntry* pEntry );
242  void CollapsingEntry( SvTreeListEntry* pEntry );
243  void EntrySelected( SvTreeListEntry* pEntry, bool bSelect );
244 
245  virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect);
246  void MouseButtonDown( const MouseEvent& );
247  void MouseButtonUp( const MouseEvent& );
248  void MouseMove( const MouseEvent&);
249  virtual bool KeyInput( const KeyEvent& );
250  void Resize();
251  void GetFocus();
252  void LoseFocus();
253  virtual void UpdateAll( bool bInvalidateCompleteView );
254  void SetEntryHeight();
256  void RecalcFocusRect();
257 
258  void SelectEntry( SvTreeListEntry* pEntry, bool bSelect );
259  void SetDragDropMode( DragDropMode eDDMode );
260  void SetSelectionMode( SelectionMode eSelMode );
261 
262  virtual bool IsEntryInView( SvTreeListEntry* pEntry ) const;
263  virtual SvTreeListEntry* GetEntry( const Point& rPos ) const;
264  // returns last entry, if Pos below last entry
265  virtual SvTreeListEntry* GetClickedEntry( const Point& ) const;
266  SvTreeListEntry* GetCurEntry() const { return m_pCursor; }
267  void SetCurEntry( SvTreeListEntry* );
268  virtual Point GetEntryPosition(const SvTreeListEntry*) const;
269  void MakeVisible( SvTreeListEntry* pEntry, bool bMoveToTop = false );
270  void ScrollToAbsPos( long nPos );
271 
272  void PaintDDCursor(SvTreeListEntry* pEntry, bool bShow);
273 
274  // Images
275  inline Image& implGetImageLocation( const ImageType _eType );
276 
277  inline void SetExpandedNodeBmp( const Image& _rImg );
278  inline void SetCollapsedNodeBmp( const Image& _rImg );
279 
280  inline const Image& GetExpandedNodeBmp( );
281  inline const Image& GetCollapsedNodeBmp( );
282  inline const Image& GetDontKnowNodeBmp( );
283 
284  inline void SetDefaultEntryExpBmp( const Image& _rImg );
285  inline void SetDefaultEntryColBmp( const Image& _rImg );
286  inline const Image& GetDefaultEntryExpBmp( );
287  inline const Image& GetDefaultEntryColBmp( );
288 
289  static const Image& GetDefaultExpandedNodeImage( );
290  static const Image& GetDefaultCollapsedNodeImage( );
291 
292  const Size& GetOutputSize() const { return m_aOutputSize;}
293  virtual void KeyUp( bool bPageUp );
294  virtual void KeyDown( bool bPageDown );
295  void Command( const CommandEvent& rCEvt );
296 
297  void Invalidate();
298  void DestroyAnchor() { m_pAnchor=nullptr; m_aSelEng.Reset(); }
299  void SelAllDestrAnch( bool bSelect, bool bDestroyAnchor = true, bool bSingleSelToo = false );
300  void ShowCursor( bool bShow );
301 
302  bool RequestHelp( const HelpEvent& rHEvt );
303  bool IsNodeButton( const Point& rPosPixel, const SvTreeListEntry* pEntry ) const;
304  void SetUpdateMode( bool bMode );
305  bool GetUpdateMode() const { return m_bUpdateMode; }
307  bool HasHorScrollBar() const { return m_aHorSBar->IsVisible(); }
308  void CallEventListeners( VclEventId nEvent, void* pData = nullptr );
309 
310  bool IsSelectable( const SvTreeListEntry* pEntry );
311  void SetForceMakeVisible(bool bEnable) { mbForceMakeVisible = bEnable; }
312 };
313 
315 {
316  return m_aNodeAndEntryImages[_eType];
317 }
318 
319 inline void SvImpLBox::SetExpandedNodeBmp( const Image& rImg )
320 {
322  SetNodeBmpWidth( rImg );
323 }
324 
325 inline void SvImpLBox::SetCollapsedNodeBmp( const Image& rImg )
326 {
328  SetNodeBmpWidth( rImg );
329 }
330 
332 {
334 }
335 
337 {
339 }
340 
342 {
344 }
345 
346 inline void SvImpLBox::SetDefaultEntryExpBmp( const Image& _rImg )
347 {
349 }
350 
351 inline void SvImpLBox::SetDefaultEntryColBmp( const Image& _rImg )
352 {
354 }
355 
357 {
359 }
360 
362 {
364 }
365 
367 {
368  return Point(0, GetEntryLine(pEntry));
369 }
370 
371 inline bool SvImpLBox::IsLineVisible( long nY ) const
372 {
373  bool bRet = true;
374  if ( nY < 0 || nY >= m_aOutputSize.Height() )
375  bRet = false;
376  return bRet;
377 }
378 
379 inline void SvImpLBox::TreeInserted( SvTreeListEntry* pInsTree )
380 {
381  EntryInserted( pInsTree );
382 }
383 
384 #endif // INCLUDED_VCL_SOURCE_INC_SVIMPBOX_HXX
385 
386 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void EntryMoved(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1730
void MovingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1700
void SetCursorAtPoint(const Point &rPoint, bool bDontSelectAtCursor=false) override
Definition: svimpbox.cxx:2580
bool RequestHelp(const HelpEvent &rHEvt)
Definition: svimpbox.cxx:2916
void SelectEntry(SvTreeListEntry *pEntry, bool bSelect)
Definition: svimpbox.cxx:2550
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
Definition: svimpbox.cxx:835
bool GetUpdateMode() const
Definition: svimpbox.hxx:305
void MouseMove(const MouseEvent &)
Definition: svimpbox.cxx:2052
virtual void AdjustScrollBars(Size &rSize)
Definition: svimpbox.cxx:1129
SvLBoxTab * m_pActiveTab
Definition: svimpbox.hxx:93
void SetNoAutoCurEntry(bool b)
Definition: svimpbox.cxx:222
short m_nHorSBarHeight
Definition: svimpbox.hxx:124
const Image & GetExpandedNodeBmp()
Definition: svimpbox.hxx:336
virtual SvTreeListEntry * GetEntry(const Point &rPos) const
Definition: svimpbox.cxx:767
long Height() const
Size m_aOutputSize
Definition: svimpbox.hxx:193
virtual void UpdateAll(bool bInvalidateCompleteView)
Definition: svimpbox.cxx:662
void UpdateStringSorter()
Definition: svimpbox.cxx:129
sal_uIntPtr sal_uLong
void SetEntryHeight()
Definition: svimpbox.cxx:1424
void ScrollToAbsPos(long nPos)
Definition: svimpbox.cxx:951
void BeginDrag()
Definition: svimpbox.cxx:2820
void EntryExpanded(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1446
void MakeVisible(SvTreeListEntry *pEntry, bool bMoveToTop=false)
Definition: svimpbox.cxx:911
void DrawNet(vcl::RenderContext &rRenderContext)
Definition: svimpbox.cxx:980
void GetFocus()
Definition: svimpbox.cxx:2506
void PositionScrollBars(Size &rOSize, sal_uInt16 nMask)
Definition: svimpbox.cxx:1097
virtual long GetEntryLine(const SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1412
void Reset()
Definition: seleng.cxx:349
static Image * s_pDefCollapsed
Definition: svimpbox.hxx:101
SvTreeList * m_pTree
Definition: svimpbox.hxx:88
VclPtr< SvTreeListBox > m_pView
Definition: svimpbox.hxx:188
bool IsSelectionAtPoint(const Point &rPoint) override
Definition: svimpbox.cxx:2593
static const Image & GetDefaultCollapsedNodeImage()
Definition: svimpbox.cxx:3130
SelectionMode
Definition: vclenum.hxx:26
void SetModel(SvTreeList *pModel)
Definition: svimpbox.hxx:231
void UpdateContextBmpWidthMax(SvTreeListEntry const *pEntry)
Definition: svimpbox.cxx:201
o3tl::enumarray< ImageType, Image > m_aNodeAndEntryImages
Definition: svimpbox.hxx:118
ImageType
When 0 all static images will be destroyed.
Definition: svimpbox.hxx:106
void SetExpandedNodeBmp(const Image &_rImg)
Definition: svimpbox.hxx:319
void StopUserEvent()
Definition: svimpbox.cxx:3103
sal_uLong m_nVisibleCount
Definition: svimpbox.hxx:198
LBoxFlags
Definition: svimpbox.hxx:60
void EntryRemoved()
Definition: svimpbox.cxx:1651
bool IsExpandable() const
Definition: svimpbox.cxx:3081
void SetCurEntry(SvTreeListEntry *)
Definition: svimpbox.cxx:2877
static const Image & GetDefaultExpandedNodeImage()
Definition: svimpbox.cxx:3123
SvTreeListEntry * MakePointVisible(const Point &rPoint)
Definition: svimpbox.cxx:783
void Resize()
Definition: svimpbox.cxx:1257
virtual ~SvImpLBox()
Definition: svimpbox.cxx:112
void InitScrollBarBox()
Definition: svimpbox.cxx:1250
bool mbNoAutoCurEntry
Definition: svimpbox.hxx:196
DECL_LINK(EditTimerCall, Timer *, void)
bool ButtonDownCheckCtrl(const MouseEvent &rMEvt, SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1827
sal_Int64 WinBits
virtual bool IsEntryInView(SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1399
void SetAnchorSelection(SvTreeListEntry *pOld, SvTreeListEntry *pNewCursor)
Definition: svimpbox.cxx:2619
void MouseButtonUp(const MouseEvent &)
Definition: svimpbox.cxx:2037
void UpdateContextBmpWidthVectorFromMovedEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:179
DragDropMode
SvImpLBox(SvTreeListBox *pView, SvTreeList *, WinBits nWinStyle)
Definition: svimpbox.cxx:51
bool EntryReallyHit(SvTreeListEntry *pEntry, const Point &rPos, long nLine)
Definition: svimpbox.cxx:744
VclPtr< ScrollBarBox > m_aScrBarBox
Definition: svimpbox.hxx:96
void SetDragDropMode(DragDropMode eDDMode)
Definition: svimpbox.cxx:2806
const Image & GetDontKnowNodeBmp()
Definition: svimpbox.hxx:331
void RecalcFocusRect()
Definition: svimpbox.cxx:553
VclPtr< SvTreeListBox > pView
Definition: svimpbox.hxx:44
VclEventId
Definition: vclevent.hxx:37
void InvalidateEntriesFrom(long nY) const
Definition: svimpbox.cxx:499
void SetSelectionMode(SelectionMode eSelMode)
Definition: svimpbox.cxx:2791
bool ButtonDownCheckExpand(const MouseEvent &, SvTreeListEntry *)
Definition: svimpbox.cxx:1920
static void implInitDefaultNodeImages()
Definition: svimpbox.cxx:3112
const Size & GetOutputSize() const
Definition: svimpbox.hxx:292
virtual bool KeyInput(const KeyEvent &)
Definition: svimpbox.cxx:2118
bool m_bSimpleTravel
Definition: svimpbox.hxx:200
virtual void PageDown(sal_uInt16 nDelta)
Definition: svimpbox.cxx:365
ImplSVEvent * m_nCurUserEvent
Definition: svimpbox.hxx:192
void MouseButtonDown(const MouseEvent &)
Definition: svimpbox.cxx:1945
void SetDefaultEntryExpBmp(const Image &_rImg)
Definition: svimpbox.hxx:346
::vcl::AccessibleFactoryAccess m_aFactoryAccess
Definition: svimpbox.hxx:99
void EntrySelected(SvTreeListEntry *pEntry, bool bSelect)
Definition: svimpbox.cxx:1554
void DestroyAnchor() override
Definition: svimpbox.cxx:2575
Image & implGetImageLocation(const ImageType _eType)
Definition: svimpbox.hxx:314
virtual void CursorUp()
Definition: svimpbox.cxx:343
void CreateAnchor() override
Definition: svimpbox.cxx:2570
ImpLBSelEng(SvImpLBox *pImp, SvTreeListBox *pView)
Definition: svimpbox.cxx:2555
void CallEventListeners(VclEventId nEvent, void *pData=nullptr)
Definition: svimpbox.cxx:3137
long m_nNextVerVisSize
Definition: svimpbox.hxx:201
Idle m_aEditIdle
Definition: svimpbox.hxx:131
SvTreeListEntry * m_pAnchor
Definition: svimpbox.hxx:89
long m_nNodeBmpWidth
Definition: svimpbox.hxx:122
void NotifyTabsChanged()
Definition: svimpbox.cxx:3072
bool IsNodeButton(const Point &rPosPixel, const SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1897
VclPtr< ScrollBar > m_aHorSBar
Definition: svimpbox.hxx:95
void SetDefaultEntryColBmp(const Image &_rImg)
Definition: svimpbox.hxx:351
virtual void KeyUp(bool bPageUp)
Definition: svimpbox.cxx:438
Point m_aEditClickPos
Definition: svimpbox.hxx:130
WinBits m_nStyle
Definition: svimpbox.hxx:195
bool MouseMoveCheckCtrl(const MouseEvent &rMEvt, SvTreeListEntry const *pEntry)
Definition: svimpbox.cxx:1846
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:302
SvTreeListEntry * GetCurEntry() const
Definition: svimpbox.hxx:266
void ShowVerSBar()
Definition: svimpbox.cxx:1324
void DeselectAtPoint(const Point &rPoint) override
Definition: svimpbox.cxx:2601
SvImpLBox * pImp
Definition: svimpbox.hxx:43
void SelAllDestrAnch(bool bSelect, bool bDestroyAnchor=true, bool bSingleSelToo=false)
Definition: svimpbox.cxx:2726
tools::Rectangle GetVisibleArea() const
Definition: svimpbox.cxx:2864
bool ButtonUpCheckCtrl(const MouseEvent &rMEvt)
Definition: svimpbox.cxx:1873
ImpLBSelEng m_aFctSet
Definition: svimpbox.hxx:120
void DestroyAnchor()
Definition: svimpbox.hxx:298
void FindMostRight_Impl(SvTreeListEntry *pParent)
Definition: svimpbox.cxx:3058
void CollapsingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1508
virtual void PageUp(sal_uInt16 nDelta)
Definition: svimpbox.cxx:403
static oslInterlockedCount s_nImageRefCount
Definition: svimpbox.hxx:103
std::unique_ptr< comphelper::string::NaturalStringSorter > m_pStringSorter
Definition: svimpbox.hxx:133
LBoxFlags m_nFlags
Definition: svimpbox.hxx:194
void SetCursor(SvTreeListEntry *pEntry, bool bForceNoSelect=false)
Definition: svimpbox.cxx:570
void CollapseTo(SvTreeListEntry *pParentToCollapse)
Definition: svimpbox.cxx:2085
bool mbForceMakeVisible
Definition: svimpbox.hxx:128
void ShowCursor(bool bShow)
Definition: svimpbox.cxx:639
tools::Rectangle GetClipRegionRect() const
Definition: svimpbox.cxx:825
SvTreeListEntry * m_pCursor
Definition: svimpbox.hxx:190
void PaintDDCursor(SvTreeListEntry *pEntry, bool bShow)
Definition: svimpbox.cxx:2826
void Invalidate()
Definition: svimpbox.cxx:2872
bool m_bUpdateMode
Definition: svimpbox.hxx:126
void TreeInserted(SvTreeListEntry *pEntry)
Definition: svimpbox.hxx:379
static Image * s_pDefExpanded
Definition: svimpbox.hxx:102
void SetForceMakeVisible(bool bEnable)
Definition: svimpbox.hxx:311
virtual SvTreeListEntry * GetClickedEntry(const Point &) const
Definition: svimpbox.cxx:722
void FindMostRight()
Definition: svimpbox.cxx:3035
void LoseFocus()
Definition: svimpbox.cxx:2527
SvLBoxTab * NextTab(SvLBoxTab const *)
Definition: svimpbox.cxx:2970
SelectionEngine m_aSelEng
Definition: svimpbox.hxx:197
bool IsVisible() const
Definition: window2.cxx:1102
long m_nNodeBmpTabDistance
Definition: svimpbox.hxx:202
Definition: image.hxx:39
bool IsSelectable(const SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:3144
void Clear()
Definition: svimpbox.cxx:228
bool m_bSubLstOpLR
Definition: svimpbox.hxx:127
long m_nMostRight
Definition: svimpbox.hxx:123
short m_nVerSBarWidth
Definition: svimpbox.hxx:124
void SetUpdateMode(bool bMode)
Definition: svimpbox.cxx:2983
virtual void CursorDown()
Definition: svimpbox.cxx:323
void EntryCollapsed(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1467
virtual void InvalidateEntry(long nY) const
Definition: svimpbox.cxx:509
bool IsLineVisible(long nY) const
Definition: svimpbox.hxx:371
const Image & GetCollapsedNodeBmp()
Definition: svimpbox.hxx:341
SvTreeListEntry * m_pStartEntry
Definition: svimpbox.hxx:191
virtual void SyncVerThumb()
Definition: svimpbox.cxx:1388
void SetStyle(WinBits i_nWinStyle)
Definition: svimpbox.cxx:215
void FillView()
Definition: svimpbox.cxx:1279
void SetNodeBmpWidth(const Image &)
Definition: svimpbox.cxx:1534
SvLBoxButton * m_pActiveButton
Definition: svimpbox.hxx:91
virtual void KeyDown(bool bPageDown)
Definition: svimpbox.cxx:467
Definition: timer.hxx:26
virtual Point GetEntryPosition(const SvTreeListEntry *) const
Definition: svimpbox.hxx:366
bool SetMostRight(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:2993
void ExpandAll()
Definition: svimpbox.cxx:2073
VclPtr< ScrollBar > m_aVerSBar
Definition: svimpbox.hxx:189
void SetNodeBmpTabDistance()
Definition: svimpbox.cxx:1540
bool m_bInVScrollHdl
Definition: svimpbox.hxx:199
void RemovingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1581
SvTreeListEntry * m_pMostRightEntry
Definition: svimpbox.hxx:90
void EntryInserted(SvTreeListEntry *)
Definition: svimpbox.cxx:1765
void Command(const CommandEvent &rCEvt)
Definition: svimpbox.cxx:2842
const Image & GetDefaultEntryColBmp()
Definition: svimpbox.hxx:361
bool HasHorScrollBar() const
Definition: svimpbox.hxx:307
const Image & GetDefaultEntryExpBmp()
Definition: svimpbox.hxx:356
An idle is a timer to be scheduled immediately.
Definition: idle.hxx:30
virtual ~ImpLBSelEng() override
Definition: svimpbox.cxx:2561
void SetCollapsedNodeBmp(const Image &_rImg)
Definition: svimpbox.hxx:325
void DeselectAll() override
Definition: svimpbox.cxx:2609
SvTreeListEntry * m_pActiveEntry
Definition: svimpbox.hxx:92
void BeginDrag() override
Definition: svimpbox.cxx:2565
short UpdateContextBmpWidthVector(SvTreeListEntry const *pEntry, short nWidth)
Definition: svimpbox.cxx:151
void KeyLeftRight(long nDiff)
Definition: svimpbox.cxx:693
std::vector< short > m_aContextBmpWidthVector
Definition: svimpbox.hxx:135