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>
30 #include <vcl/treelistbox.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
40 {
41  namespace string
42  {
43  class NaturalStringSorter;
44  }
45 }
46 
47 class ImpLBSelEng final : public FunctionSet
48 {
51 
52 public:
53  ImpLBSelEng( SvImpLBox* pImp, SvTreeListBox* pView );
54  virtual ~ImpLBSelEng() override;
55  void BeginDrag() override;
56  void CreateAnchor() override;
57  void DestroyAnchor() override;
58  void SetCursorAtPoint( const Point& rPoint,
59  bool bDontSelectAtCursor=false ) override;
60  bool IsSelectionAtPoint( const Point& rPoint ) override;
61  void DeselectAtPoint( const Point& rPoint ) override;
62  void DeselectAll() override;
63 };
64 
65 // Flags for nFlag
66 enum class LBoxFlags {
67  NONE = 0x0000,
68  InScrolling = 0x0001,
69  DeselectAll = 0x0002,
70  StartEditTimer = 0x0004, // MAC only
71  IgnoreSelect = 0x0008,
72  InResize = 0x0010,
73  RemovedEntryInvisible = 0x0020,
74  RemovedRecalcMostRight = 0x0040,
75  IgnoreChangedTabs = 0x0080,
76  InPaint = 0x0100,
77  EndScrollSetVisSize = 0x0200,
78  Filling = 0x0400,
79 };
80 namespace o3tl
81 {
82  template<> struct typed_flags<LBoxFlags> : is_typed_flags<LBoxFlags, 0x07ff> {};
83 }
84 
85 #define NODE_BMP_TABDIST_NOTVALID -2000000
86 #define FIRST_ENTRY_TAB 1
87 
88 class SvImpLBox
89 {
90 friend class ImpLBSelEng;
91 friend class SvTreeListBox;
92 friend class SalInstanceTreeView;
93 friend class IconView;
94 private:
101 
104 
107 
110  static oslInterlockedCount s_nImageRefCount;
111 
112  // Node Bitmaps
113  enum class ImageType
114  {
115  NodeExpanded = 0, // node is expanded ( usually a bitmap showing a minus )
116  NodeCollapsed, // node is collapsed ( usually a bitmap showing a plus )
117  NodeDontKnow, // don't know the node state
118  EntryDefExpanded, // default for expanded entries
119  EntryDefCollapsed, // default for collapsed entries
120  LAST = EntryDefCollapsed
121  };
122 
123  // all our images
126 
130 
134  sal_uInt16 m_nCurTabPos;
135 
136  bool m_bUpdateMode : 1;
138  bool m_bSubLstOpRet : 1; // open/close sublist with return/enter, defaulted with false
139  bool m_bSubLstOpLR : 1; // open/close sublist with cursor left/right, defaulted with false
140  bool m_bSubLstOpDblClick : 1; // open/close sublist with mouse double click, defaulted with true
143 
146 
147  std::unique_ptr<comphelper::string::NaturalStringSorter> m_pStringSorter;
148 
149  std::vector< short > m_aContextBmpWidthVector;
150 
151  DECL_LINK(EditTimerCall, Timer *, void);
152 
153  DECL_LINK( BeginDragHdl, Timer*, void );
154 
155  void InvalidateEntriesFrom( long nY ) const;
156  bool IsLineVisible( long nY ) const;
157  void KeyLeftRight( long nDiff );
158 
159  void DrawNet(vcl::RenderContext& rRenderContext);
160 
161  // ScrollBar-Handler
162  DECL_LINK( ScrollUpDownHdl, ScrollBar*, void );
163  DECL_LINK( ScrollLeftRightHdl, ScrollBar*, void );
164  DECL_LINK( EndScrollHdl, ScrollBar*, void );
165 
166  void SetNodeBmpWidth( const Image& );
167  void SetNodeBmpTabDistance();
168 
169  // Selection-Engine
170  SvTreeListEntry* MakePointVisible( const Point& rPoint );
171 
173  SvTreeListEntry* pNewCursor );
174  void BeginDrag();
175  bool ButtonDownCheckCtrl( const MouseEvent& rMEvt, SvTreeListEntry* pEntry );
176  bool MouseMoveCheckCtrl( const MouseEvent& rMEvt, SvTreeListEntry const * pEntry );
177  bool ButtonUpCheckCtrl( const MouseEvent& rMEvt );
179 
180  bool EntryReallyHit(SvTreeListEntry* pEntry, const Point& rPos, long nLine);
181  void InitScrollBarBox();
182  SvLBoxTab* NextTab( SvLBoxTab const * );
183 
184  bool SetMostRight( SvTreeListEntry* pEntry );
185  void FindMostRight( SvTreeListEntry* pParent, SvTreeListEntry* EntryToIgnore );
186  void FindMostRight_Impl( SvTreeListEntry* pParent,SvTreeListEntry* EntryToIgnore );
187  void NotifyTabsChanged();
188 
189  // if element at cursor can be expanded in general
190  bool IsExpandable() const;
191 
192  static void implInitDefaultNodeImages();
193 
194  void UpdateStringSorter();
195 
196  short UpdateContextBmpWidthVector( SvTreeListEntry const * pEntry, short nWidth );
197  void UpdateContextBmpWidthMax( SvTreeListEntry const * pEntry );
199 
200  void CalcCellFocusRect( tools::Rectangle& rRect );
201 
202  void ExpandAll();
203  void CollapseTo(SvTreeListEntry* pParentToCollapse);
204 
205 protected:
214  bool mbNoAutoCurEntry; // disable the behavior of automatically selecting a "CurEntry" upon painting the control
216  sal_uLong m_nVisibleCount; // Number of lines in control
217  bool m_bInVScrollHdl : 1;
218  bool m_bSimpleTravel : 1; // is true if SelectionMode::Single
220  long m_nNodeBmpTabDistance; // typical smaller than 0
221 
222  virtual long GetEntryLine( SvTreeListEntry* pEntry ) const;
223  virtual void CursorDown();
224  virtual void CursorUp();
225  virtual void PageDown( sal_uInt16 nDelta );
226  virtual void PageUp( sal_uInt16 nDelta );
227  // set Thumb to FirstEntryToDraw
228  virtual void SyncVerThumb();
229  virtual void AdjustScrollBars( Size& rSize );
230  virtual void InvalidateEntry( long nY ) const;
231 
233  void SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect = false );
234  void BeginScroll();
235  void EndScroll();
236  void PositionScrollBars( Size& rOSize, sal_uInt16 nMask );
237  void FindMostRight( SvTreeListEntry const * EntryToIgnore );
238  void FillView();
239  void ShowVerSBar();
240  void StopUserEvent();
241 
242  DECL_LINK( MyUserEvent, void*, void);
243 
244 public:
245  SvImpLBox( SvTreeListBox* pView, SvTreeList*, WinBits nWinStyle );
246  virtual ~SvImpLBox();
247 
248  void Clear();
249  void SetStyle( WinBits i_nWinStyle );
250  void SetNoAutoCurEntry( bool b );
251  void SetModel( SvTreeList* pModel ) { m_pTree = pModel;}
252 
254  void RemovingEntry( SvTreeListEntry* pEntry );
255  void EntryRemoved();
256  void MovingEntry( SvTreeListEntry* pEntry );
257  void EntryMoved( SvTreeListEntry* pEntry );
258  void TreeInserted( SvTreeListEntry* pEntry );
259 
260  void EntryExpanded( SvTreeListEntry* pEntry );
261  void EntryCollapsed( SvTreeListEntry* pEntry );
262  void CollapsingEntry( SvTreeListEntry* pEntry );
263  void EntrySelected( SvTreeListEntry* pEntry, bool bSelect );
264 
265  virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect);
266  void MouseButtonDown( const MouseEvent& );
267  void MouseButtonUp( const MouseEvent& );
268  void MouseMove( const MouseEvent&);
269  virtual bool KeyInput( const KeyEvent& );
270  void Resize();
271  void GetFocus();
272  void LoseFocus();
273  virtual void UpdateAll( bool bInvalidateCompleteView );
274  void SetEntryHeight();
276  void RecalcFocusRect();
277 
278  void SelectEntry( SvTreeListEntry* pEntry, bool bSelect );
279  void SetDragDropMode( DragDropMode eDDMode );
280  void SetSelectionMode( SelectionMode eSelMode );
281 
283  virtual bool IsEntryInView( SvTreeListEntry* pEntry ) const;
284  virtual SvTreeListEntry* GetEntry( const Point& rPos ) const;
285  // returns last entry, if Pos below last entry
286  virtual SvTreeListEntry* GetClickedEntry( const Point& ) const;
287  SvTreeListEntry* GetCurEntry() const { return m_pCursor; }
288  void SetCurEntry( SvTreeListEntry* );
289  virtual Point GetEntryPosition( SvTreeListEntry* ) const;
290  void MakeVisible( SvTreeListEntry* pEntry, bool bMoveToTop = false );
291  void ScrollToAbsPos( long nPos );
292 
293  void PaintDDCursor(SvTreeListEntry* pEntry, bool bShow);
294 
295  // Images
296  inline Image& implGetImageLocation( const ImageType _eType );
297 
298  inline void SetExpandedNodeBmp( const Image& _rImg );
299  inline void SetCollapsedNodeBmp( const Image& _rImg );
300 
301  inline const Image& GetExpandedNodeBmp( );
302  inline const Image& GetCollapsedNodeBmp( );
303  inline const Image& GetDontKnowNodeBmp( );
304 
305  inline void SetDefaultEntryExpBmp( const Image& _rImg );
306  inline void SetDefaultEntryColBmp( const Image& _rImg );
307  inline const Image& GetDefaultEntryExpBmp( );
308  inline const Image& GetDefaultEntryColBmp( );
309 
310  static const Image& GetDefaultExpandedNodeImage( );
311  static const Image& GetDefaultCollapsedNodeImage( );
312 
313  const Size& GetOutputSize() const { return m_aOutputSize;}
314  virtual void KeyUp( bool bPageUp );
315  virtual void KeyDown( bool bPageDown );
316  void Command( const CommandEvent& rCEvt );
317 
318  void Invalidate();
319  void DestroyAnchor() { m_pAnchor=nullptr; m_aSelEng.Reset(); }
320  void SelAllDestrAnch( bool bSelect, bool bDestroyAnchor = true, bool bSingleSelToo = false );
321  void ShowCursor( bool bShow );
322 
323  bool RequestHelp( const HelpEvent& rHEvt );
324  void EndSelection();
325  bool IsNodeButton( const Point& rPosPixel, SvTreeListEntry* pEntry ) const;
326  void EnableAsyncDrag( bool b ) { m_bAsyncBeginDrag = b; }
327  void SetUpdateMode( bool bMode );
328  bool GetUpdateMode() const { return m_bUpdateMode; }
330  bool HasHorScrollBar() const { return m_aHorSBar->IsVisible(); }
331  void ShowFocusRect( const SvTreeListEntry* pEntry );
332  void CallEventListeners( VclEventId nEvent, void* pData = nullptr );
333 
334  sal_uInt16 GetCurrentTabPos() const { return m_nCurTabPos; }
335 
336  bool IsSelectable( const SvTreeListEntry* pEntry );
337  void SetForceMakeVisible(bool bEnable) { mbForceMakeVisible = bEnable; }
338 };
339 
341 {
342  return m_aNodeAndEntryImages[_eType];
343 }
344 
345 inline void SvImpLBox::SetExpandedNodeBmp( const Image& rImg )
346 {
348  SetNodeBmpWidth( rImg );
349 }
350 
351 inline void SvImpLBox::SetCollapsedNodeBmp( const Image& rImg )
352 {
354  SetNodeBmpWidth( rImg );
355 }
356 
358 {
360 }
361 
363 {
365 }
366 
368 {
370 }
371 
372 inline void SvImpLBox::SetDefaultEntryExpBmp( const Image& _rImg )
373 {
375 }
376 
377 inline void SvImpLBox::SetDefaultEntryColBmp( const Image& _rImg )
378 {
380 }
381 
383 {
385 }
386 
388 {
390 }
391 
393 {
394  return Point( 0, GetEntryLine( pEntry ) );
395 }
396 
397 inline bool SvImpLBox::IsLineVisible( long nY ) const
398 {
399  bool bRet = true;
400  if ( nY < 0 || nY >= m_aOutputSize.Height() )
401  bRet = false;
402  return bRet;
403 }
404 
405 inline void SvImpLBox::TreeInserted( SvTreeListEntry* pInsTree )
406 {
407  EntryInserted( pInsTree );
408 }
409 
410 #endif // INCLUDED_VCL_SOURCE_INC_SVIMPBOX_HXX
411 
412 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void EntryMoved(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1761
void MovingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1731
bool m_bContextMenuHandling
Definition: svimpbox.hxx:141
void SetCursorAtPoint(const Point &rPoint, bool bDontSelectAtCursor=false) override
Definition: svimpbox.cxx:2619
bool RequestHelp(const HelpEvent &rHEvt)
Definition: svimpbox.cxx:3103
void SelectEntry(SvTreeListEntry *pEntry, bool bSelect)
Definition: svimpbox.cxx:2589
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
Definition: svimpbox.cxx:866
bool GetUpdateMode() const
Definition: svimpbox.hxx:328
void MouseMove(const MouseEvent &)
Definition: svimpbox.cxx:2088
virtual void AdjustScrollBars(Size &rSize)
Definition: svimpbox.cxx:1160
SvLBoxTab * m_pActiveTab
Definition: svimpbox.hxx:100
void SetNoAutoCurEntry(bool b)
Definition: svimpbox.cxx:238
short m_nHorSBarHeight
Definition: svimpbox.hxx:133
const Image & GetExpandedNodeBmp()
Definition: svimpbox.hxx:362
virtual SvTreeListEntry * GetEntry(const Point &rPos) const
Definition: svimpbox.cxx:798
long Height() const
Size m_aOutputSize
Definition: svimpbox.hxx:211
virtual void UpdateAll(bool bInvalidateCompleteView)
Definition: svimpbox.cxx:692
void UpdateStringSorter()
Definition: svimpbox.cxx:129
sal_uIntPtr sal_uLong
void SetEntryHeight()
Definition: svimpbox.cxx:1455
void EndScroll()
Definition: svimpbox.cxx:3041
void ScrollToAbsPos(long nPos)
Definition: svimpbox.cxx:982
void BeginDrag()
Definition: svimpbox.cxx:2862
void EntryExpanded(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1477
void MakeVisible(SvTreeListEntry *pEntry, bool bMoveToTop=false)
Definition: svimpbox.cxx:942
void DrawNet(vcl::RenderContext &rRenderContext)
Definition: svimpbox.cxx:1011
void GetFocus()
Definition: svimpbox.cxx:2545
void PositionScrollBars(Size &rOSize, sal_uInt16 nMask)
Definition: svimpbox.cxx:1128
void Reset()
Definition: seleng.cxx:340
static Image * s_pDefCollapsed
Definition: svimpbox.hxx:108
SvTreeList * m_pTree
Definition: svimpbox.hxx:95
VclPtr< SvTreeListBox > m_pView
Definition: svimpbox.hxx:206
bool IsSelectionAtPoint(const Point &rPoint) override
Definition: svimpbox.cxx:2635
static const Image & GetDefaultCollapsedNodeImage()
Definition: svimpbox.cxx:3347
SelectionMode
Definition: vclenum.hxx:26
void SetModel(SvTreeList *pModel)
Definition: svimpbox.hxx:251
void UpdateContextBmpWidthMax(SvTreeListEntry const *pEntry)
Definition: svimpbox.cxx:201
o3tl::enumarray< ImageType, Image > m_aNodeAndEntryImages
Definition: svimpbox.hxx:125
ImageType
When 0 all static images will be destroyed.
Definition: svimpbox.hxx:113
void SetExpandedNodeBmp(const Image &_rImg)
Definition: svimpbox.hxx:345
void StopUserEvent()
Definition: svimpbox.cxx:3300
sal_uLong m_nVisibleCount
Definition: svimpbox.hxx:216
LBoxFlags
Definition: svimpbox.hxx:66
void EntryRemoved()
Definition: svimpbox.cxx:1682
bool IsExpandable() const
Definition: svimpbox.cxx:3278
void SetCurEntry(SvTreeListEntry *)
Definition: svimpbox.cxx:3064
static const Image & GetDefaultExpandedNodeImage()
Definition: svimpbox.cxx:3340
SvTreeListEntry * MakePointVisible(const Point &rPoint)
Definition: svimpbox.cxx:814
void Resize()
Definition: svimpbox.cxx:1288
virtual ~SvImpLBox()
Definition: svimpbox.cxx:114
sal_uInt16 m_nCurTabPos
Definition: svimpbox.hxx:134
void InitScrollBarBox()
Definition: svimpbox.cxx:1281
bool mbNoAutoCurEntry
Definition: svimpbox.hxx:214
DECL_LINK(EditTimerCall, Timer *, void)
bool m_bAsyncBeginDrag
Definition: svimpbox.hxx:137
bool ButtonDownCheckCtrl(const MouseEvent &rMEvt, SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1858
sal_Int64 WinBits
virtual bool IsEntryInView(SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1430
void SetAnchorSelection(SvTreeListEntry *pOld, SvTreeListEntry *pNewCursor)
Definition: svimpbox.cxx:2661
void MouseButtonUp(const MouseEvent &)
Definition: svimpbox.cxx:2075
void UpdateContextBmpWidthVectorFromMovedEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:179
DragDropMode
SvImpLBox(SvTreeListBox *pView, SvTreeList *, WinBits nWinStyle)
Definition: svimpbox.cxx:48
bool EntryReallyHit(SvTreeListEntry *pEntry, const Point &rPos, long nLine)
Definition: svimpbox.cxx:775
VclPtr< ScrollBarBox > m_aScrBarBox
Definition: svimpbox.hxx:103
Idle m_aAsyncBeginDragIdle
Definition: svimpbox.hxx:128
void SetDragDropMode(DragDropMode eDDMode)
Definition: svimpbox.cxx:2848
const Image & GetDontKnowNodeBmp()
Definition: svimpbox.hxx:357
void RecalcFocusRect()
Definition: svimpbox.cxx:579
VclPtr< SvTreeListBox > pView
Definition: svimpbox.hxx:50
VclEventId
Definition: vclevent.hxx:41
void InvalidateEntriesFrom(long nY) const
Definition: svimpbox.cxx:525
void SetSelectionMode(SelectionMode eSelMode)
Definition: svimpbox.cxx:2833
bool ButtonDownCheckExpand(const MouseEvent &, SvTreeListEntry *)
Definition: svimpbox.cxx:1951
static void implInitDefaultNodeImages()
Definition: svimpbox.cxx:3329
const Size & GetOutputSize() const
Definition: svimpbox.hxx:313
virtual bool KeyInput(const KeyEvent &)
Definition: svimpbox.cxx:2140
bool m_bSimpleTravel
Definition: svimpbox.hxx:218
virtual void PageDown(sal_uInt16 nDelta)
Definition: svimpbox.cxx:383
ImplSVEvent * m_nCurUserEvent
Definition: svimpbox.hxx:210
void MouseButtonDown(const MouseEvent &)
Definition: svimpbox.cxx:1976
void SetDefaultEntryExpBmp(const Image &_rImg)
Definition: svimpbox.hxx:372
::vcl::AccessibleFactoryAccess m_aFactoryAccess
Definition: svimpbox.hxx:106
void EntrySelected(SvTreeListEntry *pEntry, bool bSelect)
Definition: svimpbox.cxx:1585
void DestroyAnchor() override
Definition: svimpbox.cxx:2614
Image & implGetImageLocation(const ImageType _eType)
Definition: svimpbox.hxx:340
void EndSelection()
Definition: svimpbox.cxx:3170
virtual void CursorUp()
Definition: svimpbox.cxx:361
void CreateAnchor() override
Definition: svimpbox.cxx:2609
ImpLBSelEng(SvImpLBox *pImp, SvTreeListBox *pView)
Definition: svimpbox.cxx:2594
void CallEventListeners(VclEventId nEvent, void *pData=nullptr)
Definition: svimpbox.cxx:3354
long m_nNextVerVisSize
Definition: svimpbox.hxx:219
Idle m_aEditIdle
Definition: svimpbox.hxx:145
a client for the accessibility implementations which have been outsourced from the main vcl/svtools l...
void FindMostRight_Impl(SvTreeListEntry *pParent, SvTreeListEntry *EntryToIgnore)
Definition: svimpbox.cxx:3252
SvTreeListEntry * m_pAnchor
Definition: svimpbox.hxx:96
long m_nNodeBmpWidth
Definition: svimpbox.hxx:131
void NotifyTabsChanged()
Definition: svimpbox.cxx:3269
VclPtr< ScrollBar > m_aHorSBar
Definition: svimpbox.hxx:102
void SetDefaultEntryColBmp(const Image &_rImg)
Definition: svimpbox.hxx:377
virtual void KeyUp(bool bPageUp)
Definition: svimpbox.cxx:458
Point m_aEditClickPos
Definition: svimpbox.hxx:144
WinBits m_nStyle
Definition: svimpbox.hxx:213
bool MouseMoveCheckCtrl(const MouseEvent &rMEvt, SvTreeListEntry const *pEntry)
Definition: svimpbox.cxx:1877
Some things multiple-inherit from VclAbstractDialog and OutputDevice, so we need to use virtual inher...
Definition: outdev.hxx:304
void ShowFocusRect(const SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:3309
bool IsNodeButton(const Point &rPosPixel, SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1928
SvTreeListEntry * GetCurEntry() const
Definition: svimpbox.hxx:287
void ShowVerSBar()
Definition: svimpbox.cxx:1355
void DeselectAtPoint(const Point &rPoint) override
Definition: svimpbox.cxx:2643
SvImpLBox * pImp
Definition: svimpbox.hxx:49
void SelAllDestrAnch(bool bSelect, bool bDestroyAnchor=true, bool bSingleSelToo=false)
Definition: svimpbox.cxx:2768
tools::Rectangle GetVisibleArea() const
Definition: svimpbox.cxx:3051
bool ButtonUpCheckCtrl(const MouseEvent &rMEvt)
Definition: svimpbox.cxx:1904
ImpLBSelEng m_aFctSet
Definition: svimpbox.hxx:127
void DestroyAnchor()
Definition: svimpbox.hxx:319
void CollapsingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1539
virtual void PageUp(sal_uInt16 nDelta)
Definition: svimpbox.cxx:422
virtual Point GetEntryPosition(SvTreeListEntry *) const
Definition: svimpbox.hxx:392
static oslInterlockedCount s_nImageRefCount
Definition: svimpbox.hxx:110
std::unique_ptr< comphelper::string::NaturalStringSorter > m_pStringSorter
Definition: svimpbox.hxx:147
bool m_bSubLstOpDblClick
Definition: svimpbox.hxx:140
LBoxFlags m_nFlags
Definition: svimpbox.hxx:212
void SetCursor(SvTreeListEntry *pEntry, bool bForceNoSelect=false)
Definition: svimpbox.cxx:599
void CollapseTo(SvTreeListEntry *pParentToCollapse)
Definition: svimpbox.cxx:2107
bool mbForceMakeVisible
Definition: svimpbox.hxx:142
void FindMostRight(SvTreeListEntry *pParent, SvTreeListEntry *EntryToIgnore)
Definition: svimpbox.cxx:3244
void ShowCursor(bool bShow)
Definition: svimpbox.cxx:668
tools::Rectangle GetClipRegionRect() const
Definition: svimpbox.cxx:856
SvTreeListEntry * m_pCursor
Definition: svimpbox.hxx:208
void PaintDDCursor(SvTreeListEntry *pEntry, bool bShow)
Definition: svimpbox.cxx:2883
void Invalidate()
Definition: svimpbox.cxx:3059
bool m_bUpdateMode
Definition: svimpbox.hxx:136
void TreeInserted(SvTreeListEntry *pEntry)
Definition: svimpbox.hxx:405
static Image * s_pDefExpanded
Definition: svimpbox.hxx:109
void EnableAsyncDrag(bool b)
Definition: svimpbox.hxx:326
void SetForceMakeVisible(bool bEnable)
Definition: svimpbox.hxx:337
virtual SvTreeListEntry * GetClickedEntry(const Point &) const
Definition: svimpbox.cxx:753
void LoseFocus()
Definition: svimpbox.cxx:2566
SvLBoxTab * NextTab(SvLBoxTab const *)
Definition: svimpbox.cxx:3157
SelectionEngine m_aSelEng
Definition: svimpbox.hxx:215
void CalcCellFocusRect(tools::Rectangle &rRect)
Definition: svimpbox.cxx:215
bool IsVisible() const
Definition: window2.cxx:1097
long m_nNodeBmpTabDistance
Definition: svimpbox.hxx:220
Definition: image.hxx:40
bool IsSelectable(const SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:3361
void Clear()
Definition: svimpbox.cxx:244
bool m_bSubLstOpLR
Definition: svimpbox.hxx:139
long m_nMostRight
Definition: svimpbox.hxx:132
short m_nVerSBarWidth
Definition: svimpbox.hxx:133
void SetUpdateMode(bool bMode)
Definition: svimpbox.cxx:3176
virtual void CursorDown()
Definition: svimpbox.cxx:341
void EntryCollapsed(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1498
virtual void InvalidateEntry(long nY) const
Definition: svimpbox.cxx:535
bool IsLineVisible(long nY) const
Definition: svimpbox.hxx:397
const Image & GetCollapsedNodeBmp()
Definition: svimpbox.hxx:367
SvTreeListEntry * m_pStartEntry
Definition: svimpbox.hxx:209
virtual long GetEntryLine(SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1443
virtual void SyncVerThumb()
Definition: svimpbox.cxx:1419
void SetStyle(WinBits i_nWinStyle)
Definition: svimpbox.cxx:231
void FillView()
Definition: svimpbox.cxx:1310
void SetNodeBmpWidth(const Image &)
Definition: svimpbox.cxx:1565
SvLBoxButton * m_pActiveButton
Definition: svimpbox.hxx:98
Point m_aAsyncBeginDragPos
Definition: svimpbox.hxx:129
virtual void KeyDown(bool bPageDown)
Definition: svimpbox.cxx:490
Definition: timer.hxx:26
bool SetMostRight(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:3186
void ExpandAll()
Definition: svimpbox.cxx:2095
void BeginScroll()
Definition: svimpbox.cxx:3033
VclPtr< ScrollBar > m_aVerSBar
Definition: svimpbox.hxx:207
bool m_bSubLstOpRet
Definition: svimpbox.hxx:138
void SetNodeBmpTabDistance()
Definition: svimpbox.cxx:1571
SvTreeListEntry * GetCurrentEntry() const
Definition: svimpbox.hxx:282
bool m_bInVScrollHdl
Definition: svimpbox.hxx:217
sal_uInt16 GetCurrentTabPos() const
Definition: svimpbox.hxx:334
void RemovingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1612
SvTreeListEntry * m_pMostRightEntry
Definition: svimpbox.hxx:97
void EntryInserted(SvTreeListEntry *)
Definition: svimpbox.cxx:1796
void Command(const CommandEvent &rCEvt)
Definition: svimpbox.cxx:2899
const Image & GetDefaultEntryColBmp()
Definition: svimpbox.hxx:387
bool HasHorScrollBar() const
Definition: svimpbox.hxx:330
const Image & GetDefaultEntryExpBmp()
Definition: svimpbox.hxx:382
An idle is a timer to be scheduled immediately.
Definition: idle.hxx:30
virtual ~ImpLBSelEng() override
Definition: svimpbox.cxx:2600
void SetCollapsedNodeBmp(const Image &_rImg)
Definition: svimpbox.hxx:351
void DeselectAll() override
Definition: svimpbox.cxx:2651
SvTreeListEntry * m_pActiveEntry
Definition: svimpbox.hxx:99
void BeginDrag() override
Definition: svimpbox.cxx:2604
short UpdateContextBmpWidthVector(SvTreeListEntry const *pEntry, short nWidth)
Definition: svimpbox.cxx:151
void KeyLeftRight(long nDiff)
Definition: svimpbox.cxx:723
std::vector< short > m_aContextBmpWidthVector
Definition: svimpbox.hxx:149