LibreOffice Module sw (master)  1
conttree.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 #ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CONTTREE_HXX
20 #define INCLUDED_SW_SOURCE_UIBASE_INC_CONTTREE_HXX
21 
22 #include <svl/lstner.hxx>
23 #include <vcl/treelistbox.hxx>
24 #include <vcl/svlbitm.hxx>
25 #include "swcont.hxx"
26 
27 #include <map>
28 #include <memory>
29 
30 #include <o3tl/enumarray.hxx>
31 #include <o3tl/typed_flags_set.hxx>
32 
33 class SwWrtShell;
34 class SwContentType;
35 class SwNavigationPI;
36 class SwNavigationConfig;
37 class Menu;
38 class ToolBox;
39 class SwGlblDocContents;
40 class SwGlblDocContent;
41 class SfxObjectShell;
42 class SdrObject;
43 
44 enum class EditEntryMode
45 {
46  EDIT = 0,
47  UPD_IDX = 1,
48  RMV_IDX = 2,
49  UNPROTECT_TABLE = 3,
50  DELETE = 4,
51  RENAME = 5,
52 };
53 
54 // Flags for PopupMenu-enable/disable
55 enum class MenuEnableFlags {
56  NONE = 0x0000,
57  InsertIdx = 0x0001,
58  InsertFile = 0x0002,
59  InsertText = 0x0004,
60  Edit = 0x0008,
61  Delete = 0x0010,
62  Update = 0x0020,
63  UpdateSel = 0x0040,
64  EditLink = 0x0080
65 };
66 namespace o3tl {
67  template<> struct typed_flags<MenuEnableFlags> : is_typed_flags<MenuEnableFlags, 0x00ff> {};
68 }
69 
71 class SwContentTree final
72  : public SvTreeListBox
73  , public SfxListener
74 {
76  OUString const m_sSpace;
78 
82  OUString const m_sRemoveIdx;
83  OUString const m_sUpdateIdx;
84  OUString const m_sUnprotTable;
85  OUString const m_sRename;
86  OUString const m_sReadonlyIdx;
87  OUString const m_sInvisible;
88  OUString const m_sPostItShow;
89  OUString const m_sPostItHide;
90  OUString const m_sPostItDelete;
91 
92  SwWrtShell* m_pHiddenShell; // dropped Doc
93  SwWrtShell* m_pActiveShell; // the active or a const. open view
95 
96  std::map< void*, bool > mOutLineNodeMap;
97 
98  sal_Int32 m_nActiveBlock;
99  sal_Int32 m_nHiddenBlock;
103 
104  enum class State { ACTIVE, CONSTANT, HIDDEN } m_eState;
105 
108  bool m_bIsRoot :1;
109  bool m_bIsIdleClear :1;
113 
114  static bool bIsInDrag;
115 
118 
119  // outline root mode drag & drop
120  std::vector< SvTreeListEntry* > m_aDndOutlinesSelected;
121 
127 
130 
131  virtual void RequestHelp( const HelpEvent& rHEvt ) override;
132  virtual void InitEntry(SvTreeListEntry*, const OUString&, const Image&, const Image&) override;
133  virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
134 
136 
137  virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) override;
138  virtual void DragFinished( sal_Int8 ) override;
139  virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
140 
141  virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
142 
143  bool FillTransferData( TransferDataContainer& rTransfer,
144  sal_Int8& rDragMode );
145 
147  bool HasContentChanged();
148 
150  SvTreeListEntry* ) override;
151  virtual bool NotifyAcceptDrop( SvTreeListEntry* ) override;
152 
153  virtual TriState NotifyMoving( SvTreeListEntry* pTarget,
154  SvTreeListEntry* pEntry,
155  SvTreeListEntry*& rpNewParent,
156  sal_uLong& rNewChildPos
157  ) override;
158  virtual TriState NotifyCopying( SvTreeListEntry* pTarget,
159  SvTreeListEntry* pEntry,
160  SvTreeListEntry*& rpNewParent,
161  sal_uLong& rNewChildPos
162  ) override;
163  virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
164  virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
165 
166  void EditEntry( SvTreeListEntry const * pEntry, EditEntryMode nMode );
167 
168  void GotoContent(const SwContent* pCnt);
169  static void SetInDrag(bool bSet) {bIsInDrag = bSet;}
170 
171  virtual VclPtr<PopupMenu> CreateContextMenu() override;
172  virtual void ExecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ) override;
173 
174 public:
175  SwContentTree(vcl::Window* pParent, SwNavigationPI* pDialog);
176  virtual ~SwContentTree() override;
177  virtual void dispose() override;
178  OUString GetEntryAltText( SvTreeListEntry* pEntry ) const override;
179  OUString GetEntryLongDescription( SvTreeListEntry* pEntry ) const override;
181 
183  void ToggleToRoot();
184  void SetRootType(ContentTypeId nType);
185 
187  void Display( bool bActiveView );
189  void Clear();
190 
192  void SetHiddenShell(SwWrtShell* pSh);
193  void ShowHiddenShell();
194  void ShowActualView();
195 
197  void SetActiveShell(SwWrtShell* pSh);
198 
200  void SetConstantShell(SwWrtShell* pSh);
201 
203  { return State::HIDDEN == m_eState ? m_pHiddenShell : m_pActiveShell; }
204 
205  static bool IsInDrag() {return bIsInDrag;}
206 
208  void SetOutlineLevel(sal_uInt8 nSet);
209 
211  virtual bool Expand( SvTreeListEntry* pParent ) override;
213  virtual bool Collapse( SvTreeListEntry* pParent ) override;
214 
216  void ExecCommand(const OUString& rCmd, bool bModifier);
217 
218  void ShowTree();
219  void HideTree();
220 
221  bool IsConstantView() const { return State::CONSTANT == m_eState; }
222  bool IsActiveView() const { return State::ACTIVE == m_eState; }
223  bool IsHiddenView() const { return State::HIDDEN == m_eState; }
224 
225  const SwWrtShell* GetActiveWrtShell() const {return m_pActiveShell;}
227 
228  DECL_LINK( ContentDoubleClickHdl, SvTreeListBox*, bool );
229  DECL_LINK( TimerUpdate, Timer *, void );
230 
231  virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* ) override;
232  virtual void RequestingChildren( SvTreeListEntry* pParent ) override;
233  virtual void GetFocus() override;
234  virtual void KeyInput(const KeyEvent& rKEvt) override;
235 
236  virtual bool Select( SvTreeListEntry* pEntry, bool bSelect=true ) override;
237  virtual Size GetOptimalSize() const override;
238 
239  virtual void Notify(SfxBroadcaster& rBC, SfxHint const& rHint) override;
240 
241 };
242 
243 // TreeListBox for global documents
244 
246 {
247 public:
248 
249  SwLBoxString( const OUString& rStr ) : SvLBoxString(rStr)
250  {
251  }
252 
253  virtual void Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
254  const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;
255 };
256 
257 namespace sfx2 { class DocumentInserter; }
258 namespace sfx2 { class FileDialogHelper; }
259 
260 class SwGlobalTree final : public SvTreeListBox
261 {
262 private:
266 
268  SvTreeListEntry* m_pEmphasisEntry; // Drag'n Drop emphasis
269  SvTreeListEntry* m_pDDSource; // source for Drag'n Drop
270  std::unique_ptr<SwGlblDocContents> m_pSwGlblDocContents; // array with sorted content
271 
272  std::unique_ptr<SwGlblDocContent> m_pDocContent;
273  std::unique_ptr<sfx2::DocumentInserter> m_pDocInserter;
274 
276  bool m_bLastEntryEmphasis :1; // Drag'n Drop
277 
278  static const SfxObjectShell* pShowShell;
279 
280  void InsertRegion( const SwGlblDocContent* _pContent,
281  const css::uno::Sequence< OUString >& _rFiles );
282 
283  DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper*, void );
284 
287  using Window::Update;
288 
289  virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
290 
291  virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
292 
293  virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
294 
295  virtual void RequestHelp( const HelpEvent& rHEvt ) override;
296 
297  virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* ) override;
298  virtual TriState NotifyMoving( SvTreeListEntry* pTarget,
299  SvTreeListEntry* pEntry,
300  SvTreeListEntry*& rpNewParent,
301  sal_uLong& rNewChildPos
302  ) override;
303  virtual TriState NotifyCopying( SvTreeListEntry* pTarget,
304  SvTreeListEntry* pEntry,
305  SvTreeListEntry*& rpNewParent,
306  sal_uLong& rNewChildPos
307  ) override;
308 
309  virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) override;
310  virtual void DragFinished( sal_Int8 ) override;
312  SvTreeListEntry* ) override;
313  virtual bool NotifyAcceptDrop( SvTreeListEntry* ) override;
314 
315  virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
316  virtual void KeyInput(const KeyEvent& rKEvt) override;
317  virtual void GetFocus() override;
318  virtual void SelectHdl() override;
319  virtual void DeselectHdl() override;
320  virtual void InitEntry(SvTreeListEntry*, const OUString&, const Image&, const Image&) override;
321 
322  void Clear();
323 
324  DECL_LINK( PopupHdl, Menu*, bool );
325  DECL_LINK( Timeout, Timer*, void );
327 
329 
330  void OpenDoc(const SwGlblDocContent*);
331  void GotoContent(const SwGlblDocContent*);
333 
334  static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;}
335  DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void*, void);
336 
337  virtual VclPtr<PopupMenu> CreateContextMenu() override;
338  virtual void ExecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ) override;
339 
340 public:
341  SwGlobalTree(vcl::Window* pParent, SwNavigationPI* pDialog);
342  virtual ~SwGlobalTree() override;
343  virtual void dispose() override;
344  virtual Size GetOptimalSize() const override;
345 
346  void TbxMenuHdl(sal_uInt16 nTbxId, ToolBox* pBox);
347  void InsertRegion( const SwGlblDocContent* pCont,
348  const OUString* pFileName = nullptr );
349  void EditContent(const SwGlblDocContent* pCont );
350 
351  void ShowTree();
352  void HideTree();
353 
354  void ExecCommand(const OUString& rCmd);
355 
356  void Display(bool bOnlyUpdateUserData = false);
357 
358  bool Update(bool bHard);
359 };
360 
361 #endif
362 
363 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool Expand(SvTreeListEntry *pParent) override
Expand - Remember the state for content types.
Definition: content.cxx:1516
MenuEnableFlags GetEnableFlags() const
Definition: glbltree.cxx:452
virtual Size GetOptimalSize() const override
Definition: glbltree.cxx:212
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
ContentTypeId
Definition: swcont.hxx:28
virtual void Paint(vcl::RenderContext &rRenderContext, const tools::Rectangle &rRect) override
Definition: content.cxx:2717
static void SetInDrag(bool bSet)
Definition: conttree.hxx:169
void EditContent(const SwGlblDocContent *pCont)
Definition: glbltree.cxx:752
virtual void RequestHelp(const HelpEvent &rHEvt) override
Definition: glbltree.cxx:482
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Definition: glbltree.cxx:614
virtual VclPtr< PopupMenu > CreateContextMenu() override
Definition: glbltree.cxx:354
SwNavigationPI * GetParentWindow()
Definition: glbltree.cxx:1211
OUString const m_sPostItHide
Definition: conttree.hxx:89
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Definition: content.cxx:2935
virtual DragDropMode NotifyStartDrag(TransferDataContainer &rData, SvTreeListEntry *) override
Definition: glbltree.cxx:554
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: content.cxx:1176
ContentTypeId m_nRootType
Definition: conttree.hxx:100
virtual void DragFinished(sal_Int8) override
Definition: content.cxx:1127
SwLBoxString(const OUString &rStr)
Definition: conttree.hxx:249
virtual void DragFinished(sal_Int8) override
Definition: glbltree.cxx:605
void SetHiddenShell(SwWrtShell *pSh)
After a file is dropped on the Navigator, the new shell will be set.
Definition: content.cxx:2319
OUString m_aContextStrings[CONTEXT_COUNT+1]
Definition: conttree.hxx:81
virtual void StartDrag(sal_Int8 nAction, const Point &rPosPixel) override
Definition: glbltree.cxx:599
signed char sal_Int8
DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void *, void)
virtual void RequestHelp(const HelpEvent &rHEvt) override
Definition: content.cxx:3131
void ShowActualView()
Definition: content.cxx:3379
SwWrtShell * m_pHiddenShell
Definition: conttree.hxx:92
bool m_bLastEntryEmphasis
Definition: conttree.hxx:276
bool HasContentChanged()
Check if the displayed content is valid.
Definition: content.cxx:2076
sal_uIntPtr sal_uLong
std::unique_ptr< SwGlblDocContents > m_pSwGlblDocContents
Definition: conttree.hxx:270
virtual ~SwContentTree() override
Definition: content.cxx:905
#define GLOBAL_CONTEXT_COUNT
Definition: swcont.hxx:48
static const SfxObjectShell * pShowShell
Definition: conttree.hxx:278
virtual bool NotifyAcceptDrop(SvTreeListEntry *) override
Definition: content.cxx:2927
bool IsActiveView() const
Definition: conttree.hxx:222
virtual TriState NotifyMoving(SvTreeListEntry *pTarget, SvTreeListEntry *pEntry, SvTreeListEntry *&rpNewParent, sal_uLong &rNewChildPos) override
Definition: glbltree.cxx:567
OUString const m_sInvisible
Definition: conttree.hxx:87
bool m_bIsKeySpace
Definition: conttree.hxx:116
VclPtr< SwNavigationPI > m_xDialog
Definition: conttree.hxx:75
virtual bool Select(SvTreeListEntry *pEntry, bool bSelect=true) override
Definition: content.cxx:3387
std::vector< SvTreeListEntry * > m_aDndOutlinesSelected
Definition: conttree.hxx:120
virtual bool DoubleClickHdl()
virtual void InitEntry(SvTreeListEntry *, const OUString &, const Image &, const Image &) override
Definition: glbltree.cxx:1224
virtual bool NotifyAcceptDrop(SvTreeListEntry *) override
Definition: glbltree.cxx:594
sal_uInt8 GetOutlineLevel() const
Definition: conttree.hxx:207
void HideTree()
Definition: content.cxx:2726
OUString const m_sUnprotTable
Definition: conttree.hxx:84
SwGlobalTree(vcl::Window *pParent, SwNavigationPI *pDialog)
Definition: glbltree.cxx:172
virtual sal_IntPtr GetTabPos(SvTreeListEntry *, SvLBoxTab *) override
Definition: glbltree.cxx:562
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
Definition: glbltree.cxx:1251
OUString GetEntryLongDescription(SvTreeListEntry *pEntry) const override
Definition: content.cxx:1009
tools::Rectangle m_aOldRectangle
Definition: conttree.hxx:117
virtual TriState NotifyMoving(SvTreeListEntry *pTarget, SvTreeListEntry *pEntry, SvTreeListEntry *&rpNewParent, sal_uLong &rNewChildPos) override
Definition: content.cxx:2807
Used by the UI to modify the document model.
Definition: wrtsh.hxx:90
sal_uInt8 m_nOutlineLevel
Definition: conttree.hxx:102
void FindActiveTypeAndRemoveUserData()
Before any data will be deleted, the last active entry has to be found.
Definition: content.cxx:2295
OUString const m_sSpace
Definition: conttree.hxx:76
DragDropMode
virtual TriState NotifyCopying(SvTreeListEntry *pTarget, SvTreeListEntry *pEntry, SvTreeListEntry *&rpNewParent, sal_uLong &rNewChildPos) override
Definition: glbltree.cxx:585
virtual DragDropMode NotifyStartDrag(TransferDataContainer &rData, SvTreeListEntry *) override
Definition: content.cxx:2779
TreeListBox for content indicator.
Definition: conttree.hxx:71
bool IsConstantView() const
Definition: conttree.hxx:221
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: glbltree.cxx:295
OUString const m_sUpdateIdx
Definition: conttree.hxx:83
SwWrtShell * GetHiddenWrtShell()
Definition: conttree.hxx:226
void SetOutlineLevel(sal_uInt8 nSet)
Definition: content.cxx:3351
sal_Int32 m_nActiveBlock
Definition: conttree.hxx:98
void GotoContent(const SwGlblDocContent *)
Definition: glbltree.cxx:1025
void EditEntry(SvTreeListEntry const *pEntry, EditEntryMode nMode)
Definition: content.cxx:3440
MenuEnableFlags
Definition: conttree.hxx:55
void ToggleToRoot()
Switch the display to Root.
Definition: content.cxx:2027
sal_Int32 m_nHiddenBlock
Definition: conttree.hxx:99
bool m_bDocChgdInDragging
Definition: conttree.hxx:106
const SwWrtShell * GetActiveWrtShell() const
Definition: conttree.hxx:225
OUString GetEntryAltText(SvTreeListEntry *pEntry) const override
Definition: content.cxx:925
void Update()
static bool bIsInDrag
Definition: conttree.hxx:114
bool IsHiddenView() const
Definition: conttree.hxx:223
void SetActiveShell(SwWrtShell *pSh)
Document change - set new Shell.
Definition: content.cxx:2333
std::unique_ptr< sfx2::DocumentInserter > m_pDocInserter
Definition: conttree.hxx:273
virtual bool Collapse(SvTreeListEntry *pParent) override
Collapse - Remember the state for content types.
Definition: content.cxx:1574
void SetRootType(ContentTypeId nType)
Definition: content.cxx:3420
SwNavigationConfig * m_pConfig
Definition: conttree.hxx:94
SwNavigationPI * GetParentWindow()
Definition: content.cxx:3883
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: content.cxx:1148
virtual VclPtr< PopupMenu > CreateContextMenu() override
Definition: content.cxx:1218
virtual void InitEntry(SvTreeListEntry *, const OUString &, const Image &, const Image &) override
Definition: content.cxx:3843
SvTreeListEntry * m_pDDSource
Definition: conttree.hxx:269
RENAME
OUString const m_sReadonlyIdx
Definition: conttree.hxx:86
void Clear()
Definition: glbltree.cxx:648
static void SetShowShell(const SfxObjectShell *pSet)
Definition: conttree.hxx:334
virtual void dispose() override
Definition: glbltree.cxx:203
OUString const m_sRename
Definition: conttree.hxx:85
Content type, knows it's contents and the WrtShell.
Definition: content.hxx:138
enum SwContentTree::State m_eState
bool m_bViewHasChanged
Definition: conttree.hxx:112
virtual TriState NotifyCopying(SvTreeListEntry *pTarget, SvTreeListEntry *pEntry, SvTreeListEntry *&rpNewParent, sal_uLong &rNewChildPos) override
Definition: content.cxx:2885
virtual void ExecuteContextMenuAction(sal_uInt16 nSelectedPopupEntry) override
Definition: content.cxx:3241
OUString const m_sRemoveIdx
Definition: conttree.hxx:82
void InsertRegion(const SwGlblDocContent *_pContent, const css::uno::Sequence< OUString > &_rFiles)
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
Definition: content.cxx:3870
void HideTree()
Definition: glbltree.cxx:1053
EditEntryMode
Definition: conttree.hxx:44
static bool IsInDrag()
Definition: conttree.hxx:205
bool m_bIsLastReadOnly
Definition: conttree.hxx:110
AutoTimer m_aUpdateTimer
Definition: conttree.hxx:264
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:267
SvTreeListEntry * m_pEmphasisEntry
Definition: conttree.hxx:268
AutoTimer m_aUpdTimer
Definition: conttree.hxx:77
virtual void Paint(const Point &rPos, SvTreeListBox &rDev, vcl::RenderContext &rRenderContext, const SvViewDataEntry *pView, const SvTreeListEntry &rEntry) override
Definition: glbltree.cxx:1233
VclPtr< SwNavigationPI > m_xDialog
Definition: conttree.hxx:263
bool FillTransferData(TransferDataContainer &rTransfer, sal_Int8 &rDragMode)
Definition: content.cxx:1891
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
Definition: content.cxx:2385
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: glbltree.cxx:217
virtual Size GetOptimalSize() const override
Definition: content.cxx:920
unsigned char sal_uInt8
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aActiveContentArr
Definition: conttree.hxx:79
bool m_bIsInternalDrag
Definition: conttree.hxx:275
SdrObject * GetDrawingObjectsByContent(const SwContent *pCnt)
Definition: content.cxx:1484
OUString const m_sPostItDelete
Definition: conttree.hxx:90
virtual void KeyInput(const KeyEvent &rKEvt) override
Definition: glbltree.cxx:631
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:93
void OpenDoc(const SwGlblDocContent *)
Definition: glbltree.cxx:1166
void ShowTree()
Definition: content.cxx:2712
void GotoContent(const SwContent *pCnt)
Definition: content.cxx:3673
void Display(bool bOnlyUpdateUserData=false)
Definition: glbltree.cxx:654
virtual void GetFocus() override
Definition: content.cxx:2955
std::map< void *, bool > mOutLineNodeMap
Definition: conttree.hxx:96
void EditEntry(SvTreeListEntry *pEntry)
virtual void ExecuteContextMenuAction(sal_uInt16 nSelectedPopupEntry) override
Definition: glbltree.cxx:792
virtual void SelectHdl() override
Definition: glbltree.cxx:530
ContentTypeId m_nLastSelType
Definition: conttree.hxx:101
virtual void StartDrag(sal_Int8 nAction, const Point &rPosPixel) override
Definition: content.cxx:1085
virtual void RequestingChildren(SvTreeListEntry *pParent) override
Definition: content.cxx:1416
bool m_bIsInternalDrag
Definition: conttree.hxx:107
virtual void dispose() override
Definition: content.cxx:910
void ExecCommand(const OUString &rCmd)
Definition: glbltree.cxx:1059
OUString const m_sPostItShow
Definition: conttree.hxx:88
SwWrtShell * GetWrtShell()
Definition: conttree.hxx:202
virtual void GetFocus() override
Definition: glbltree.cxx:624
void ShowHiddenShell()
Definition: content.cxx:3368
void Clear()
In the Clear the content types have to be deleted, also.
Definition: content.cxx:1884
void ExecCommand(const OUString &rCmd, bool bModifier)
Execute commands of the Navigator.
Definition: content.cxx:2425
OUString m_aContextStrings[GLOBAL_CONTEXT_COUNT]
Definition: conttree.hxx:265
bool m_bIsIdleClear
Definition: conttree.hxx:109
void SetConstantShell(SwWrtShell *pSh)
Set an open view as active.
Definition: content.cxx:2369
DECL_LINK(DialogClosedHdl, sfx2::FileDialogHelper *, void)
virtual ~SwGlobalTree() override
Definition: glbltree.cxx:198
void TbxMenuHdl(sal_uInt16 nTbxId, ToolBox *pBox)
Definition: glbltree.cxx:413
virtual void KeyInput(const KeyEvent &rKEvt) override
Definition: content.cxx:2979
std::unique_ptr< SwGlblDocContent > m_pDocContent
Definition: conttree.hxx:272
void Display(bool bActiveView)
Show the file.
Definition: content.cxx:1693
SwContentTree(vcl::Window *pParent, SwNavigationPI *pDialog)
Definition: content.cxx:852
TriState
#define CONTEXT_COUNT
Definition: swcont.hxx:47
DECL_LINK(ContentDoubleClickHdl, SvTreeListBox *, bool)
void ShowTree()
Definition: glbltree.cxx:1047
bool m_bIsOutlineMoveable
Definition: conttree.hxx:111
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aHiddenContentArr
Definition: conttree.hxx:80
virtual void DeselectHdl() override
Definition: glbltree.cxx:549
virtual sal_IntPtr GetTabPos(SvTreeListEntry *, SvLBoxTab *) override
Definition: content.cxx:1394