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 
105  ::vcl::AccessibleFactoryAccess
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 
128 
132 
133  bool m_bUpdateMode : 1;
134  bool m_bSubLstOpRet : 1; // open/close sublist with return/enter, defaulted with false
135  bool m_bSubLstOpLR : 1; // open/close sublist with cursor left/right, defaulted with false
138 
141 
142  std::unique_ptr<comphelper::string::NaturalStringSorter> m_pStringSorter;
143 
144  std::vector< short > m_aContextBmpWidthVector;
145 
146  DECL_LINK(EditTimerCall, Timer *, void);
147 
148  void InvalidateEntriesFrom( long nY ) const;
149  bool IsLineVisible( long nY ) const;
150  void KeyLeftRight( long nDiff );
151 
152  void DrawNet(vcl::RenderContext& rRenderContext);
153 
154  // ScrollBar-Handler
155  DECL_LINK( ScrollUpDownHdl, ScrollBar*, void );
156  DECL_LINK( ScrollLeftRightHdl, ScrollBar*, void );
157  DECL_LINK( EndScrollHdl, ScrollBar*, void );
158 
159  void SetNodeBmpWidth( const Image& );
160  void SetNodeBmpTabDistance();
161 
162  // Selection-Engine
163  SvTreeListEntry* MakePointVisible( const Point& rPoint );
164 
166  SvTreeListEntry* pNewCursor );
167  void BeginDrag();
168  bool ButtonDownCheckCtrl( const MouseEvent& rMEvt, SvTreeListEntry* pEntry );
169  bool MouseMoveCheckCtrl( const MouseEvent& rMEvt, SvTreeListEntry const * pEntry );
170  bool ButtonUpCheckCtrl( const MouseEvent& rMEvt );
172 
173  bool EntryReallyHit(SvTreeListEntry* pEntry, const Point& rPos, long nLine);
174  void InitScrollBarBox();
175  SvLBoxTab* NextTab( SvLBoxTab const * );
176 
177  bool SetMostRight( SvTreeListEntry* pEntry );
178  void FindMostRight( SvTreeListEntry* pParent );
179  void FindMostRight_Impl( SvTreeListEntry* pParent );
180  void NotifyTabsChanged();
181 
182  // if element at cursor can be expanded in general
183  bool IsExpandable() const;
184 
185  static void implInitDefaultNodeImages();
186 
187  void UpdateStringSorter();
188 
189  short UpdateContextBmpWidthVector( SvTreeListEntry const * pEntry, short nWidth );
190  void UpdateContextBmpWidthMax( SvTreeListEntry const * pEntry );
192 
193  void CalcCellFocusRect( tools::Rectangle& rRect );
194 
195  void ExpandAll();
196  void CollapseTo(SvTreeListEntry* pParentToCollapse);
197 
198 protected:
207  bool mbNoAutoCurEntry; // disable the behavior of automatically selecting a "CurEntry" upon painting the control
209  sal_uLong m_nVisibleCount; // Number of lines in control
210  bool m_bInVScrollHdl : 1;
211  bool m_bSimpleTravel : 1; // is true if SelectionMode::Single
213  long m_nNodeBmpTabDistance; // typical smaller than 0
214 
215  virtual long GetEntryLine(const SvTreeListEntry* pEntry) const;
216  virtual void CursorDown();
217  virtual void CursorUp();
218  virtual void PageDown( sal_uInt16 nDelta );
219  virtual void PageUp( sal_uInt16 nDelta );
220  // set Thumb to FirstEntryToDraw
221  virtual void SyncVerThumb();
222  virtual void AdjustScrollBars( Size& rSize );
223  virtual void InvalidateEntry( long nY ) const;
224 
226  void SetCursor( SvTreeListEntry* pEntry, bool bForceNoSelect = false );
227  void BeginScroll();
228  void EndScroll();
229  void PositionScrollBars( Size& rOSize, sal_uInt16 nMask );
230  void FindMostRight();
231  void FillView();
232  void ShowVerSBar();
233  void StopUserEvent();
234 
235  DECL_LINK( MyUserEvent, void*, void);
236 
237 public:
238  SvImpLBox( SvTreeListBox* pView, SvTreeList*, WinBits nWinStyle );
239  virtual ~SvImpLBox();
240 
241  void Clear();
242  void SetStyle( WinBits i_nWinStyle );
243  void SetNoAutoCurEntry( bool b );
244  void SetModel( SvTreeList* pModel ) { m_pTree = pModel;}
245 
247  void RemovingEntry( SvTreeListEntry* pEntry );
248  void EntryRemoved();
249  void MovingEntry( SvTreeListEntry* pEntry );
250  void EntryMoved( SvTreeListEntry* pEntry );
251  void TreeInserted( SvTreeListEntry* pEntry );
252 
253  void EntryExpanded( SvTreeListEntry* pEntry );
254  void EntryCollapsed( SvTreeListEntry* pEntry );
255  void CollapsingEntry( SvTreeListEntry* pEntry );
256  void EntrySelected( SvTreeListEntry* pEntry, bool bSelect );
257 
258  virtual void Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect);
259  void MouseButtonDown( const MouseEvent& );
260  void MouseButtonUp( const MouseEvent& );
261  void MouseMove( const MouseEvent&);
262  virtual bool KeyInput( const KeyEvent& );
263  void Resize();
264  void GetFocus();
265  void LoseFocus();
266  virtual void UpdateAll( bool bInvalidateCompleteView );
267  void SetEntryHeight();
269  void RecalcFocusRect();
270 
271  void SelectEntry( SvTreeListEntry* pEntry, bool bSelect );
272  void SetDragDropMode( DragDropMode eDDMode );
273  void SetSelectionMode( SelectionMode eSelMode );
274 
275  virtual bool IsEntryInView( SvTreeListEntry* pEntry ) const;
276  virtual SvTreeListEntry* GetEntry( const Point& rPos ) const;
277  // returns last entry, if Pos below last entry
278  virtual SvTreeListEntry* GetClickedEntry( const Point& ) const;
279  SvTreeListEntry* GetCurEntry() const { return m_pCursor; }
280  void SetCurEntry( SvTreeListEntry* );
281  virtual Point GetEntryPosition(const SvTreeListEntry*) const;
282  void MakeVisible( SvTreeListEntry* pEntry, bool bMoveToTop = false );
283  void ScrollToAbsPos( long nPos );
284 
285  void PaintDDCursor(SvTreeListEntry* pEntry, bool bShow);
286 
287  // Images
288  inline Image& implGetImageLocation( const ImageType _eType );
289 
290  inline void SetExpandedNodeBmp( const Image& _rImg );
291  inline void SetCollapsedNodeBmp( const Image& _rImg );
292 
293  inline const Image& GetExpandedNodeBmp( );
294  inline const Image& GetCollapsedNodeBmp( );
295  inline const Image& GetDontKnowNodeBmp( );
296 
297  inline void SetDefaultEntryExpBmp( const Image& _rImg );
298  inline void SetDefaultEntryColBmp( const Image& _rImg );
299  inline const Image& GetDefaultEntryExpBmp( );
300  inline const Image& GetDefaultEntryColBmp( );
301 
302  static const Image& GetDefaultExpandedNodeImage( );
303  static const Image& GetDefaultCollapsedNodeImage( );
304 
305  const Size& GetOutputSize() const { return m_aOutputSize;}
306  virtual void KeyUp( bool bPageUp );
307  virtual void KeyDown( bool bPageDown );
308  void Command( const CommandEvent& rCEvt );
309 
310  void Invalidate();
311  void DestroyAnchor() { m_pAnchor=nullptr; m_aSelEng.Reset(); }
312  void SelAllDestrAnch( bool bSelect, bool bDestroyAnchor = true, bool bSingleSelToo = false );
313  void ShowCursor( bool bShow );
314 
315  bool RequestHelp( const HelpEvent& rHEvt );
316  void EndSelection();
317  bool IsNodeButton( const Point& rPosPixel, SvTreeListEntry* pEntry ) const;
318  void SetUpdateMode( bool bMode );
319  bool GetUpdateMode() const { return m_bUpdateMode; }
321  bool HasHorScrollBar() const { return m_aHorSBar->IsVisible(); }
322  void ShowFocusRect( const SvTreeListEntry* pEntry );
323  void CallEventListeners( VclEventId nEvent, void* pData = nullptr );
324 
325  bool IsSelectable( const SvTreeListEntry* pEntry );
326  void SetForceMakeVisible(bool bEnable) { mbForceMakeVisible = bEnable; }
327 };
328 
330 {
331  return m_aNodeAndEntryImages[_eType];
332 }
333 
334 inline void SvImpLBox::SetExpandedNodeBmp( const Image& rImg )
335 {
337  SetNodeBmpWidth( rImg );
338 }
339 
340 inline void SvImpLBox::SetCollapsedNodeBmp( const Image& rImg )
341 {
343  SetNodeBmpWidth( rImg );
344 }
345 
347 {
349 }
350 
352 {
354 }
355 
357 {
359 }
360 
361 inline void SvImpLBox::SetDefaultEntryExpBmp( const Image& _rImg )
362 {
364 }
365 
366 inline void SvImpLBox::SetDefaultEntryColBmp( const Image& _rImg )
367 {
369 }
370 
372 {
374 }
375 
377 {
379 }
380 
382 {
383  return Point(0, GetEntryLine(pEntry));
384 }
385 
386 inline bool SvImpLBox::IsLineVisible( long nY ) const
387 {
388  bool bRet = true;
389  if ( nY < 0 || nY >= m_aOutputSize.Height() )
390  bRet = false;
391  return bRet;
392 }
393 
394 inline void SvImpLBox::TreeInserted( SvTreeListEntry* pInsTree )
395 {
396  EntryInserted( pInsTree );
397 }
398 
399 #endif // INCLUDED_VCL_SOURCE_INC_SVIMPBOX_HXX
400 
401 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
void EntryMoved(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1752
void MovingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1722
bool m_bContextMenuHandling
Definition: svimpbox.hxx:136
void SetCursorAtPoint(const Point &rPoint, bool bDontSelectAtCursor=false) override
Definition: svimpbox.cxx:2596
bool RequestHelp(const HelpEvent &rHEvt)
Definition: svimpbox.cxx:3067
void SelectEntry(SvTreeListEntry *pEntry, bool bSelect)
Definition: svimpbox.cxx:2566
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect)
Definition: svimpbox.cxx:857
bool GetUpdateMode() const
Definition: svimpbox.hxx:319
void MouseMove(const MouseEvent &)
Definition: svimpbox.cxx:2072
virtual void AdjustScrollBars(Size &rSize)
Definition: svimpbox.cxx:1151
SvLBoxTab * m_pActiveTab
Definition: svimpbox.hxx:100
void SetNoAutoCurEntry(bool b)
Definition: svimpbox.cxx:231
short m_nHorSBarHeight
Definition: svimpbox.hxx:131
const Image & GetExpandedNodeBmp()
Definition: svimpbox.hxx:351
virtual SvTreeListEntry * GetEntry(const Point &rPos) const
Definition: svimpbox.cxx:789
long Height() const
Size m_aOutputSize
Definition: svimpbox.hxx:204
virtual void UpdateAll(bool bInvalidateCompleteView)
Definition: svimpbox.cxx:683
void UpdateStringSorter()
Definition: svimpbox.cxx:127
sal_uIntPtr sal_uLong
void SetEntryHeight()
Definition: svimpbox.cxx:1446
void EndScroll()
Definition: svimpbox.cxx:3005
void ScrollToAbsPos(long nPos)
Definition: svimpbox.cxx:973
void BeginDrag()
Definition: svimpbox.cxx:2839
void EntryExpanded(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1468
void MakeVisible(SvTreeListEntry *pEntry, bool bMoveToTop=false)
Definition: svimpbox.cxx:933
void DrawNet(vcl::RenderContext &rRenderContext)
Definition: svimpbox.cxx:1002
void GetFocus()
Definition: svimpbox.cxx:2522
void PositionScrollBars(Size &rOSize, sal_uInt16 nMask)
Definition: svimpbox.cxx:1119
virtual long GetEntryLine(const SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1434
void Reset()
Definition: seleng.cxx:349
static Image * s_pDefCollapsed
Definition: svimpbox.hxx:108
SvTreeList * m_pTree
Definition: svimpbox.hxx:95
VclPtr< SvTreeListBox > m_pView
Definition: svimpbox.hxx:199
bool IsSelectionAtPoint(const Point &rPoint) override
Definition: svimpbox.cxx:2612
static const Image & GetDefaultCollapsedNodeImage()
Definition: svimpbox.cxx:3307
SelectionMode
Definition: vclenum.hxx:26
void SetModel(SvTreeList *pModel)
Definition: svimpbox.hxx:244
void UpdateContextBmpWidthMax(SvTreeListEntry const *pEntry)
Definition: svimpbox.cxx:199
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:334
void StopUserEvent()
Definition: svimpbox.cxx:3260
sal_uLong m_nVisibleCount
Definition: svimpbox.hxx:209
LBoxFlags
Definition: svimpbox.hxx:66
void EntryRemoved()
Definition: svimpbox.cxx:1673
bool IsExpandable() const
Definition: svimpbox.cxx:3238
void SetCurEntry(SvTreeListEntry *)
Definition: svimpbox.cxx:3028
static const Image & GetDefaultExpandedNodeImage()
Definition: svimpbox.cxx:3300
SvTreeListEntry * MakePointVisible(const Point &rPoint)
Definition: svimpbox.cxx:805
void Resize()
Definition: svimpbox.cxx:1279
virtual ~SvImpLBox()
Definition: svimpbox.cxx:112
void InitScrollBarBox()
Definition: svimpbox.cxx:1272
bool mbNoAutoCurEntry
Definition: svimpbox.hxx:207
DECL_LINK(EditTimerCall, Timer *, void)
bool ButtonDownCheckCtrl(const MouseEvent &rMEvt, SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1849
sal_Int64 WinBits
virtual bool IsEntryInView(SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1421
void SetAnchorSelection(SvTreeListEntry *pOld, SvTreeListEntry *pNewCursor)
Definition: svimpbox.cxx:2638
void MouseButtonUp(const MouseEvent &)
Definition: svimpbox.cxx:2059
void UpdateContextBmpWidthVectorFromMovedEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:177
DragDropMode
SvImpLBox(SvTreeListBox *pView, SvTreeList *, WinBits nWinStyle)
Definition: svimpbox.cxx:51
bool EntryReallyHit(SvTreeListEntry *pEntry, const Point &rPos, long nLine)
Definition: svimpbox.cxx:766
VclPtr< ScrollBarBox > m_aScrBarBox
Definition: svimpbox.hxx:103
void SetDragDropMode(DragDropMode eDDMode)
Definition: svimpbox.cxx:2825
const Image & GetDontKnowNodeBmp()
Definition: svimpbox.hxx:346
void RecalcFocusRect()
Definition: svimpbox.cxx:570
VclPtr< SvTreeListBox > pView
Definition: svimpbox.hxx:50
VclEventId
Definition: vclevent.hxx:39
void InvalidateEntriesFrom(long nY) const
Definition: svimpbox.cxx:516
void SetSelectionMode(SelectionMode eSelMode)
Definition: svimpbox.cxx:2810
bool ButtonDownCheckExpand(const MouseEvent &, SvTreeListEntry *)
Definition: svimpbox.cxx:1942
static void implInitDefaultNodeImages()
Definition: svimpbox.cxx:3289
const Size & GetOutputSize() const
Definition: svimpbox.hxx:305
virtual bool KeyInput(const KeyEvent &)
Definition: svimpbox.cxx:2124
bool m_bSimpleTravel
Definition: svimpbox.hxx:211
virtual void PageDown(sal_uInt16 nDelta)
Definition: svimpbox.cxx:376
ImplSVEvent * m_nCurUserEvent
Definition: svimpbox.hxx:203
void MouseButtonDown(const MouseEvent &)
Definition: svimpbox.cxx:1967
void SetDefaultEntryExpBmp(const Image &_rImg)
Definition: svimpbox.hxx:361
::vcl::AccessibleFactoryAccess m_aFactoryAccess
Definition: svimpbox.hxx:106
void EntrySelected(SvTreeListEntry *pEntry, bool bSelect)
Definition: svimpbox.cxx:1576
void DestroyAnchor() override
Definition: svimpbox.cxx:2591
Image & implGetImageLocation(const ImageType _eType)
Definition: svimpbox.hxx:329
void EndSelection()
Definition: svimpbox.cxx:3134
virtual void CursorUp()
Definition: svimpbox.cxx:354
void CreateAnchor() override
Definition: svimpbox.cxx:2586
ImpLBSelEng(SvImpLBox *pImp, SvTreeListBox *pView)
Definition: svimpbox.cxx:2571
void CallEventListeners(VclEventId nEvent, void *pData=nullptr)
Definition: svimpbox.cxx:3314
long m_nNextVerVisSize
Definition: svimpbox.hxx:212
Idle m_aEditIdle
Definition: svimpbox.hxx:140
SvTreeListEntry * m_pAnchor
Definition: svimpbox.hxx:96
long m_nNodeBmpWidth
Definition: svimpbox.hxx:129
void NotifyTabsChanged()
Definition: svimpbox.cxx:3229
VclPtr< ScrollBar > m_aHorSBar
Definition: svimpbox.hxx:102
void SetDefaultEntryColBmp(const Image &_rImg)
Definition: svimpbox.hxx:366
virtual void KeyUp(bool bPageUp)
Definition: svimpbox.cxx:449
Point m_aEditClickPos
Definition: svimpbox.hxx:139
WinBits m_nStyle
Definition: svimpbox.hxx:206
bool MouseMoveCheckCtrl(const MouseEvent &rMEvt, SvTreeListEntry const *pEntry)
Definition: svimpbox.cxx:1868
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:3269
bool IsNodeButton(const Point &rPosPixel, SvTreeListEntry *pEntry) const
Definition: svimpbox.cxx:1919
SvTreeListEntry * GetCurEntry() const
Definition: svimpbox.hxx:279
void ShowVerSBar()
Definition: svimpbox.cxx:1346
void DeselectAtPoint(const Point &rPoint) override
Definition: svimpbox.cxx:2620
SvImpLBox * pImp
Definition: svimpbox.hxx:49
void SelAllDestrAnch(bool bSelect, bool bDestroyAnchor=true, bool bSingleSelToo=false)
Definition: svimpbox.cxx:2745
tools::Rectangle GetVisibleArea() const
Definition: svimpbox.cxx:3015
bool ButtonUpCheckCtrl(const MouseEvent &rMEvt)
Definition: svimpbox.cxx:1895
ImpLBSelEng m_aFctSet
Definition: svimpbox.hxx:127
void DestroyAnchor()
Definition: svimpbox.hxx:311
void FindMostRight_Impl(SvTreeListEntry *pParent)
Definition: svimpbox.cxx:3215
void CollapsingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1530
virtual void PageUp(sal_uInt16 nDelta)
Definition: svimpbox.cxx:414
static oslInterlockedCount s_nImageRefCount
Definition: svimpbox.hxx:110
std::unique_ptr< comphelper::string::NaturalStringSorter > m_pStringSorter
Definition: svimpbox.hxx:142
LBoxFlags m_nFlags
Definition: svimpbox.hxx:205
void SetCursor(SvTreeListEntry *pEntry, bool bForceNoSelect=false)
Definition: svimpbox.cxx:590
void CollapseTo(SvTreeListEntry *pParentToCollapse)
Definition: svimpbox.cxx:2091
bool mbForceMakeVisible
Definition: svimpbox.hxx:137
void ShowCursor(bool bShow)
Definition: svimpbox.cxx:659
tools::Rectangle GetClipRegionRect() const
Definition: svimpbox.cxx:847
SvTreeListEntry * m_pCursor
Definition: svimpbox.hxx:201
void PaintDDCursor(SvTreeListEntry *pEntry, bool bShow)
Definition: svimpbox.cxx:2847
void Invalidate()
Definition: svimpbox.cxx:3023
bool m_bUpdateMode
Definition: svimpbox.hxx:133
void TreeInserted(SvTreeListEntry *pEntry)
Definition: svimpbox.hxx:394
static Image * s_pDefExpanded
Definition: svimpbox.hxx:109
void SetForceMakeVisible(bool bEnable)
Definition: svimpbox.hxx:326
virtual SvTreeListEntry * GetClickedEntry(const Point &) const
Definition: svimpbox.cxx:744
void FindMostRight()
Definition: svimpbox.cxx:3192
void LoseFocus()
Definition: svimpbox.cxx:2543
SvLBoxTab * NextTab(SvLBoxTab const *)
Definition: svimpbox.cxx:3121
SelectionEngine m_aSelEng
Definition: svimpbox.hxx:208
void CalcCellFocusRect(tools::Rectangle &rRect)
Definition: svimpbox.cxx:213
bool IsVisible() const
Definition: window2.cxx:1102
long m_nNodeBmpTabDistance
Definition: svimpbox.hxx:213
Definition: image.hxx:40
bool IsSelectable(const SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:3321
void Clear()
Definition: svimpbox.cxx:237
bool m_bSubLstOpLR
Definition: svimpbox.hxx:135
long m_nMostRight
Definition: svimpbox.hxx:130
short m_nVerSBarWidth
Definition: svimpbox.hxx:131
void SetUpdateMode(bool bMode)
Definition: svimpbox.cxx:3140
virtual void CursorDown()
Definition: svimpbox.cxx:334
void EntryCollapsed(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1489
virtual void InvalidateEntry(long nY) const
Definition: svimpbox.cxx:526
bool IsLineVisible(long nY) const
Definition: svimpbox.hxx:386
const Image & GetCollapsedNodeBmp()
Definition: svimpbox.hxx:356
SvTreeListEntry * m_pStartEntry
Definition: svimpbox.hxx:202
virtual void SyncVerThumb()
Definition: svimpbox.cxx:1410
void SetStyle(WinBits i_nWinStyle)
Definition: svimpbox.cxx:224
void FillView()
Definition: svimpbox.cxx:1301
void SetNodeBmpWidth(const Image &)
Definition: svimpbox.cxx:1556
SvLBoxButton * m_pActiveButton
Definition: svimpbox.hxx:98
virtual void KeyDown(bool bPageDown)
Definition: svimpbox.cxx:481
Definition: timer.hxx:26
virtual Point GetEntryPosition(const SvTreeListEntry *) const
Definition: svimpbox.hxx:381
bool SetMostRight(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:3150
void ExpandAll()
Definition: svimpbox.cxx:2079
void BeginScroll()
Definition: svimpbox.cxx:2997
VclPtr< ScrollBar > m_aVerSBar
Definition: svimpbox.hxx:200
bool m_bSubLstOpRet
Definition: svimpbox.hxx:134
void SetNodeBmpTabDistance()
Definition: svimpbox.cxx:1562
bool m_bInVScrollHdl
Definition: svimpbox.hxx:210
void RemovingEntry(SvTreeListEntry *pEntry)
Definition: svimpbox.cxx:1603
SvTreeListEntry * m_pMostRightEntry
Definition: svimpbox.hxx:97
void EntryInserted(SvTreeListEntry *)
Definition: svimpbox.cxx:1787
void Command(const CommandEvent &rCEvt)
Definition: svimpbox.cxx:2863
const Image & GetDefaultEntryColBmp()
Definition: svimpbox.hxx:376
bool HasHorScrollBar() const
Definition: svimpbox.hxx:321
const Image & GetDefaultEntryExpBmp()
Definition: svimpbox.hxx:371
An idle is a timer to be scheduled immediately.
Definition: idle.hxx:30
virtual ~ImpLBSelEng() override
Definition: svimpbox.cxx:2577
void SetCollapsedNodeBmp(const Image &_rImg)
Definition: svimpbox.hxx:340
void DeselectAll() override
Definition: svimpbox.cxx:2628
SvTreeListEntry * m_pActiveEntry
Definition: svimpbox.hxx:99
void BeginDrag() override
Definition: svimpbox.cxx:2581
short UpdateContextBmpWidthVector(SvTreeListEntry const *pEntry, short nWidth)
Definition: svimpbox.cxx:149
void KeyLeftRight(long nDiff)
Definition: svimpbox.cxx:714
std::vector< short > m_aContextBmpWidthVector
Definition: svimpbox.hxx:144