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&, SvLBoxButtonKind) 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(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();
220  void HideTree();
221 
223  bool IsActiveView() { return State::ACTIVE == m_eState; }
224  bool IsHiddenView() { return State::HIDDEN == m_eState; }
225 
228 
229  DECL_LINK( ContentDoubleClickHdl, SvTreeListBox*, bool );
230  DECL_LINK( TimerUpdate, Timer *, void );
231 
232  virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* ) override;
233  virtual void RequestingChildren( SvTreeListEntry* pParent ) override;
234  virtual void GetFocus() override;
235  virtual void KeyInput(const KeyEvent& rKEvt) override;
236 
237  virtual bool Select( SvTreeListEntry* pEntry, bool bSelect=true ) override;
238  virtual Size GetOptimalSize() const override;
239 
240  virtual void Notify(SfxBroadcaster& rBC, SfxHint const& rHint) override;
241 
242 };
243 
244 // TreeListBox for global documents
245 
247 {
248 public:
249 
250  SwLBoxString( const OUString& rStr ) : SvLBoxString(rStr)
251  {
252  }
253 
254  virtual void Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
255  const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;
256 };
257 
258 namespace sfx2 { class DocumentInserter; }
259 namespace sfx2 { class FileDialogHelper; }
260 
261 class SwGlobalTree final : public SvTreeListBox
262 {
263 private:
267 
269  SvTreeListEntry* m_pEmphasisEntry; // Drag'n Drop emphasis
270  SvTreeListEntry* m_pDDSource; // source for Drag'n Drop
271  std::unique_ptr<SwGlblDocContents> m_pSwGlblDocContents; // array with sorted content
272 
273  std::unique_ptr<SwGlblDocContent> m_pDocContent;
274  std::unique_ptr<sfx2::DocumentInserter> m_pDocInserter;
275 
277  bool m_bLastEntryEmphasis :1; // Drag'n Drop
278 
279  static const SfxObjectShell* pShowShell;
280 
281  void InsertRegion( const SwGlblDocContent* _pContent,
282  const css::uno::Sequence< OUString >& _rFiles );
283 
284  DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper*, void );
285 
288  using Window::Update;
289 
290  virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
291 
292  virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
293 
294  virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
295 
296  virtual void RequestHelp( const HelpEvent& rHEvt ) override;
297 
298  virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* ) override;
299  virtual TriState NotifyMoving( SvTreeListEntry* pTarget,
300  SvTreeListEntry* pEntry,
301  SvTreeListEntry*& rpNewParent,
302  sal_uLong& rNewChildPos
303  ) override;
304  virtual TriState NotifyCopying( SvTreeListEntry* pTarget,
305  SvTreeListEntry* pEntry,
306  SvTreeListEntry*& rpNewParent,
307  sal_uLong& rNewChildPos
308  ) override;
309 
310  virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) override;
311  virtual void DragFinished( sal_Int8 ) override;
313  SvTreeListEntry* ) override;
314  virtual bool NotifyAcceptDrop( SvTreeListEntry* ) override;
315 
316  virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
317  virtual void KeyInput(const KeyEvent& rKEvt) override;
318  virtual void GetFocus() override;
319  virtual void SelectHdl() override;
320  virtual void DeselectHdl() override;
321  virtual void InitEntry(SvTreeListEntry*, const OUString&, const Image&, const Image&, SvLBoxButtonKind) override;
322 
323  void Clear();
324 
325  DECL_LINK( PopupHdl, Menu*, bool );
326  DECL_LINK( Timeout, Timer*, void );
328 
330 
331  void OpenDoc(const SwGlblDocContent*);
332  void GotoContent(const SwGlblDocContent*);
334 
335  static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;}
336  DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void*, void);
337 
338  virtual VclPtr<PopupMenu> CreateContextMenu() override;
339  virtual void ExecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ) override;
340 
341 public:
342  SwGlobalTree(vcl::Window* pParent, SwNavigationPI* pDialog);
343  virtual ~SwGlobalTree() override;
344  virtual void dispose() override;
345  virtual Size GetOptimalSize() const override;
346 
347  void TbxMenuHdl(sal_uInt16 nTbxId, ToolBox* pBox);
348  void InsertRegion( const SwGlblDocContent* pCont,
349  const OUString* pFileName = nullptr );
350  void EditContent(const SwGlblDocContent* pCont );
351 
352  void ShowTree();
353  void HideTree();
354 
355  void ExecCommand(const OUString& rCmd);
356 
357  void Display(bool bOnlyUpdateUserData = false);
358 
359  bool Update(bool bHard);
360 };
361 
362 #endif
363 
364 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool Expand(SvTreeListEntry *pParent) override
Expand - Remember the state for content types.
Definition: content.cxx:1501
MenuEnableFlags GetEnableFlags() const
Definition: glbltree.cxx:454
virtual Size GetOptimalSize() const override
Definition: glbltree.cxx:214
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:2707
static void SetInDrag(bool bSet)
Definition: conttree.hxx:169
bool IsHiddenView()
Definition: conttree.hxx:224
void EditContent(const SwGlblDocContent *pCont)
Definition: glbltree.cxx:754
virtual void RequestHelp(const HelpEvent &rHEvt) override
Definition: glbltree.cxx:484
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Definition: glbltree.cxx:616
virtual VclPtr< PopupMenu > CreateContextMenu() override
Definition: glbltree.cxx:356
SwNavigationPI * GetParentWindow()
Definition: glbltree.cxx:1213
OUString const m_sPostItHide
Definition: conttree.hxx:89
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Definition: content.cxx:2922
virtual DragDropMode NotifyStartDrag(TransferDataContainer &rData, SvTreeListEntry *) override
Definition: glbltree.cxx:556
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: content.cxx:1175
ContentTypeId m_nRootType
Definition: conttree.hxx:100
virtual void DragFinished(sal_Int8) override
Definition: content.cxx:1129
SwLBoxString(const OUString &rStr)
Definition: conttree.hxx:250
virtual void DragFinished(sal_Int8) override
Definition: glbltree.cxx:607
void SetHiddenShell(SwWrtShell *pSh)
After a file is dropped on the Navigator, the new shell will be set.
Definition: content.cxx:2309
OUString m_aContextStrings[CONTEXT_COUNT+1]
Definition: conttree.hxx:81
virtual void StartDrag(sal_Int8 nAction, const Point &rPosPixel) override
Definition: glbltree.cxx:601
signed char sal_Int8
DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void *, void)
virtual void RequestHelp(const HelpEvent &rHEvt) override
Definition: content.cxx:3113
void GotoContent(SwContent *pCnt)
Definition: content.cxx:3622
void ShowActualView()
Definition: content.cxx:3347
SwWrtShell * m_pHiddenShell
Definition: conttree.hxx:92
bool m_bLastEntryEmphasis
Definition: conttree.hxx:277
bool HasContentChanged()
Check if the displayed content is valid.
Definition: content.cxx:2062
sal_uIntPtr sal_uLong
std::unique_ptr< SwGlblDocContents > m_pSwGlblDocContents
Definition: conttree.hxx:271
virtual ~SwContentTree() override
Definition: content.cxx:907
#define GLOBAL_CONTEXT_COUNT
Definition: swcont.hxx:48
static const SfxObjectShell * pShowShell
Definition: conttree.hxx:279
virtual bool NotifyAcceptDrop(SvTreeListEntry *) override
Definition: content.cxx:2914
virtual TriState NotifyMoving(SvTreeListEntry *pTarget, SvTreeListEntry *pEntry, SvTreeListEntry *&rpNewParent, sal_uLong &rNewChildPos) override
Definition: glbltree.cxx:569
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:3355
std::vector< SvTreeListEntry * > m_aDndOutlinesSelected
Definition: conttree.hxx:120
virtual bool DoubleClickHdl()
virtual bool NotifyAcceptDrop(SvTreeListEntry *) override
Definition: glbltree.cxx:596
sal_uInt8 GetOutlineLevel() const
Definition: conttree.hxx:207
void HideTree()
folded together will not be glidled
Definition: content.cxx:2716
virtual void InitEntry(SvTreeListEntry *, const OUString &, const Image &, const Image &, SvLBoxButtonKind) override
Definition: content.cxx:3788
OUString const m_sUnprotTable
Definition: conttree.hxx:84
SwGlobalTree(vcl::Window *pParent, SwNavigationPI *pDialog)
Definition: glbltree.cxx:174
virtual sal_IntPtr GetTabPos(SvTreeListEntry *, SvLBoxTab *) override
Definition: glbltree.cxx:564
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
Definition: glbltree.cxx:1255
OUString GetEntryLongDescription(SvTreeListEntry *pEntry) const override
Definition: content.cxx:1011
tools::Rectangle m_aOldRectangle
Definition: conttree.hxx:117
virtual TriState NotifyMoving(SvTreeListEntry *pTarget, SvTreeListEntry *pEntry, SvTreeListEntry *&rpNewParent, sal_uLong &rNewChildPos) override
Definition: content.cxx:2794
Used by the UI to modify the document model.
Definition: wrtsh.hxx:88
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:2285
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:587
virtual DragDropMode NotifyStartDrag(TransferDataContainer &rData, SvTreeListEntry *) override
Definition: content.cxx:2766
TreeListBox for content indicator.
Definition: conttree.hxx:71
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: glbltree.cxx:297
OUString const m_sUpdateIdx
Definition: conttree.hxx:83
SwWrtShell * GetHiddenWrtShell()
Definition: conttree.hxx:227
void SetOutlineLevel(sal_uInt8 nSet)
Definition: content.cxx:3319
sal_Int32 m_nActiveBlock
Definition: conttree.hxx:98
void GotoContent(const SwGlblDocContent *)
Definition: glbltree.cxx:1027
void EditEntry(SvTreeListEntry const *pEntry, EditEntryMode nMode)
Definition: content.cxx:3408
MenuEnableFlags
Definition: conttree.hxx:55
void ToggleToRoot()
Switch the display to Root.
Definition: content.cxx:2013
sal_Int32 m_nHiddenBlock
Definition: conttree.hxx:99
bool m_bDocChgdInDragging
Definition: conttree.hxx:106
OUString GetEntryAltText(SvTreeListEntry *pEntry) const override
Definition: content.cxx:927
void Update()
SvLBoxButtonKind
static bool bIsInDrag
Definition: conttree.hxx:114
void SetActiveShell(SwWrtShell *pSh)
Document change - set new Shell.
Definition: content.cxx:2323
std::unique_ptr< sfx2::DocumentInserter > m_pDocInserter
Definition: conttree.hxx:274
virtual bool Collapse(SvTreeListEntry *pParent) override
Collapse - Remember the state for content types.
Definition: content.cxx:1559
void SetRootType(ContentTypeId nType)
Definition: content.cxx:3388
SwNavigationConfig * m_pConfig
Definition: conttree.hxx:94
SwNavigationPI * GetParentWindow()
Definition: content.cxx:3829
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: content.cxx:1147
virtual VclPtr< PopupMenu > CreateContextMenu() override
Definition: content.cxx:1207
SvTreeListEntry * m_pDDSource
Definition: conttree.hxx:270
RENAME
OUString const m_sReadonlyIdx
Definition: conttree.hxx:86
void Clear()
Definition: glbltree.cxx:650
const SwWrtShell * GetActiveWrtShell()
Definition: conttree.hxx:226
bool IsConstantView()
Definition: conttree.hxx:222
static void SetShowShell(const SfxObjectShell *pSet)
Definition: conttree.hxx:335
virtual void dispose() override
Definition: glbltree.cxx:205
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:2872
bool IsActiveView()
Definition: conttree.hxx:223
virtual void ExecuteContextMenuAction(sal_uInt16 nSelectedPopupEntry) override
Definition: content.cxx:3224
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:3816
void HideTree()
Definition: glbltree.cxx:1055
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:265
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:268
SvTreeListEntry * m_pEmphasisEntry
Definition: conttree.hxx:269
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:1236
VclPtr< SwNavigationPI > m_xDialog
Definition: conttree.hxx:264
bool FillTransferData(TransferDataContainer &rTransfer, sal_Int8 &rDragMode)
Definition: content.cxx:1876
virtual void InitEntry(SvTreeListEntry *, const OUString &, const Image &, const Image &, SvLBoxButtonKind) override
Definition: glbltree.cxx:1226
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
Definition: content.cxx:2375
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: glbltree.cxx:219
virtual Size GetOptimalSize() const override
Definition: content.cxx:922
unsigned char sal_uInt8
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aActiveContentArr
Definition: conttree.hxx:79
bool m_bIsInternalDrag
Definition: conttree.hxx:276
SdrObject * GetDrawingObjectsByContent(const SwContent *pCnt)
Definition: content.cxx:1469
OUString const m_sPostItDelete
Definition: conttree.hxx:90
virtual void KeyInput(const KeyEvent &rKEvt) override
Definition: glbltree.cxx:633
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:93
void OpenDoc(const SwGlblDocContent *)
Definition: glbltree.cxx:1168
void ShowTree()
Definition: content.cxx:2702
void Display(bool bOnlyUpdateUserData=false)
Definition: glbltree.cxx:656
virtual void GetFocus() override
Definition: content.cxx:2942
std::map< void *, bool > mOutLineNodeMap
Definition: conttree.hxx:96
void EditEntry(SvTreeListEntry *pEntry)
virtual void ExecuteContextMenuAction(sal_uInt16 nSelectedPopupEntry) override
Definition: glbltree.cxx:794
virtual void SelectHdl() override
Definition: glbltree.cxx:532
ContentTypeId m_nLastSelType
Definition: conttree.hxx:101
virtual void StartDrag(sal_Int8 nAction, const Point &rPosPixel) override
Definition: content.cxx:1087
virtual void RequestingChildren(SvTreeListEntry *pParent) override
Definition: content.cxx:1401
bool m_bIsInternalDrag
Definition: conttree.hxx:107
virtual void dispose() override
Definition: content.cxx:912
void ExecCommand(const OUString &rCmd)
Definition: glbltree.cxx:1061
OUString const m_sPostItShow
Definition: conttree.hxx:88
SwWrtShell * GetWrtShell()
Definition: conttree.hxx:202
virtual void GetFocus() override
Definition: glbltree.cxx:626
void ShowHiddenShell()
Definition: content.cxx:3336
void Clear()
In the Clear the content types have to be deleted, also.
Definition: content.cxx:1869
void ExecCommand(const OUString &rCmd, bool bModifier)
Execute commands of the Navigator.
Definition: content.cxx:2415
OUString m_aContextStrings[GLOBAL_CONTEXT_COUNT]
Definition: conttree.hxx:266
bool m_bIsIdleClear
Definition: conttree.hxx:109
void SetConstantShell(SwWrtShell *pSh)
Set an open view as active.
Definition: content.cxx:2359
DECL_LINK(DialogClosedHdl, sfx2::FileDialogHelper *, void)
virtual ~SwGlobalTree() override
Definition: glbltree.cxx:200
void TbxMenuHdl(sal_uInt16 nTbxId, ToolBox *pBox)
Definition: glbltree.cxx:415
virtual void KeyInput(const KeyEvent &rKEvt) override
Definition: content.cxx:2966
std::unique_ptr< SwGlblDocContent > m_pDocContent
Definition: conttree.hxx:273
void Display(bool bActiveView)
Show the file.
Definition: content.cxx:1678
SwContentTree(vcl::Window *pParent, SwNavigationPI *pDialog)
Definition: content.cxx:854
TriState
#define CONTEXT_COUNT
Definition: swcont.hxx:47
DECL_LINK(ContentDoubleClickHdl, SvTreeListBox *, bool)
void ShowTree()
Definition: glbltree.cxx:1049
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:551
virtual sal_IntPtr GetTabPos(SvTreeListEntry *, SvLBoxTab *) override
Definition: content.cxx:1379