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 
124 
127 
128  virtual void RequestHelp( const HelpEvent& rHEvt ) override;
129  virtual void InitEntry(SvTreeListEntry*, const OUString&, const Image&, const Image&, SvLBoxButtonKind) override;
130  virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
131 
133 
134  virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) override;
135  virtual void DragFinished( sal_Int8 ) override;
136  virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
137 
138  virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
139 
140  bool FillTransferData( TransferDataContainer& rTransfer,
141  sal_Int8& rDragMode );
142 
144  bool HasContentChanged();
145 
147  SvTreeListEntry* ) override;
148  virtual bool NotifyAcceptDrop( SvTreeListEntry* ) override;
149 
150  virtual TriState NotifyMoving( SvTreeListEntry* pTarget,
151  SvTreeListEntry* pEntry,
152  SvTreeListEntry*& rpNewParent,
153  sal_uLong& rNewChildPos
154  ) override;
155  virtual TriState NotifyCopying( SvTreeListEntry* pTarget,
156  SvTreeListEntry* pEntry,
157  SvTreeListEntry*& rpNewParent,
158  sal_uLong& rNewChildPos
159  ) override;
160  virtual void Paint( vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect ) override;
161  virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
162 
163  void EditEntry( SvTreeListEntry const * pEntry, EditEntryMode nMode );
164 
165  void GotoContent(SwContent* pCnt);
166  static void SetInDrag(bool bSet) {bIsInDrag = bSet;}
167 
168  virtual VclPtr<PopupMenu> CreateContextMenu() override;
169  virtual void ExecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ) override;
170 
171 public:
172  SwContentTree(vcl::Window* pParent, SwNavigationPI* pDialog);
173  virtual ~SwContentTree() override;
174  virtual void dispose() override;
175  OUString GetEntryAltText( SvTreeListEntry* pEntry ) const override;
176  OUString GetEntryLongDescription( SvTreeListEntry* pEntry ) const override;
178 
180  void ToggleToRoot();
181  void SetRootType(ContentTypeId nType);
182 
184  void Display( bool bActiveView );
186  void Clear();
187 
189  void SetHiddenShell(SwWrtShell* pSh);
190  void ShowHiddenShell();
191  void ShowActualView();
192 
194  void SetActiveShell(SwWrtShell* pSh);
195 
197  void SetConstantShell(SwWrtShell* pSh);
198 
200  { return State::HIDDEN == m_eState ? m_pHiddenShell : m_pActiveShell; }
201 
202  static bool IsInDrag() {return bIsInDrag;}
203 
205  void SetOutlineLevel(sal_uInt8 nSet);
206 
208  virtual bool Expand( SvTreeListEntry* pParent ) override;
210  virtual bool Collapse( SvTreeListEntry* pParent ) override;
211 
213  void ExecCommand(const OUString& rCmd, bool bModifier);
214 
215  void ShowTree();
217  void HideTree();
218 
220  bool IsActiveView() { return State::ACTIVE == m_eState; }
221  bool IsHiddenView() { return State::HIDDEN == m_eState; }
222 
225 
226  DECL_LINK( ContentDoubleClickHdl, SvTreeListBox*, bool );
227  DECL_LINK( TimerUpdate, Timer *, void );
228 
229  virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* ) override;
230  virtual void RequestingChildren( SvTreeListEntry* pParent ) override;
231  virtual void GetFocus() override;
232  virtual void KeyInput(const KeyEvent& rKEvt) override;
233 
234  virtual bool Select( SvTreeListEntry* pEntry, bool bSelect=true ) override;
235  virtual Size GetOptimalSize() const override;
236 
237  virtual void Notify(SfxBroadcaster& rBC, SfxHint const& rHint) override;
238 
239 };
240 
241 // TreeListBox for global documents
242 
244 {
245 public:
246 
247  SwLBoxString( const OUString& rStr ) : SvLBoxString(rStr)
248  {
249  }
250 
251  virtual void Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
252  const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;
253 };
254 
255 namespace sfx2 { class DocumentInserter; }
256 namespace sfx2 { class FileDialogHelper; }
257 
258 class SwGlobalTree final : public SvTreeListBox
259 {
260 private:
264 
266  SvTreeListEntry* m_pEmphasisEntry; // Drag'n Drop emphasis
267  SvTreeListEntry* m_pDDSource; // source for Drag'n Drop
268  std::unique_ptr<SwGlblDocContents> m_pSwGlblDocContents; // array with sorted content
269 
270  std::unique_ptr<SwGlblDocContent> m_pDocContent;
271  std::unique_ptr<sfx2::DocumentInserter> m_pDocInserter;
272 
274  bool m_bLastEntryEmphasis :1; // Drag'n Drop
275 
276  static const SfxObjectShell* pShowShell;
277 
278  void InsertRegion( const SwGlblDocContent* _pContent,
279  const css::uno::Sequence< OUString >& _rFiles );
280 
281  DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper*, void );
282 
285  using Window::Update;
286 
287  virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
288 
289  virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
290 
291  virtual void DataChanged( const DataChangedEvent& rDCEvt ) override;
292 
293  virtual void RequestHelp( const HelpEvent& rHEvt ) override;
294 
295  virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* ) override;
296  virtual TriState NotifyMoving( SvTreeListEntry* pTarget,
297  SvTreeListEntry* pEntry,
298  SvTreeListEntry*& rpNewParent,
299  sal_uLong& rNewChildPos
300  ) override;
301  virtual TriState NotifyCopying( SvTreeListEntry* pTarget,
302  SvTreeListEntry* pEntry,
303  SvTreeListEntry*& rpNewParent,
304  sal_uLong& rNewChildPos
305  ) override;
306 
307  virtual void StartDrag( sal_Int8 nAction, const Point& rPosPixel ) override;
308  virtual void DragFinished( sal_Int8 ) override;
310  SvTreeListEntry* ) override;
311  virtual bool NotifyAcceptDrop( SvTreeListEntry* ) override;
312 
313  virtual void MouseButtonDown( const MouseEvent& rMEvt ) override;
314  virtual void KeyInput(const KeyEvent& rKEvt) override;
315  virtual void GetFocus() override;
316  virtual void SelectHdl() override;
317  virtual void DeselectHdl() override;
318  virtual void InitEntry(SvTreeListEntry*, const OUString&, const Image&, const Image&, SvLBoxButtonKind) override;
319 
320  void Clear();
321 
322  DECL_LINK( PopupHdl, Menu*, bool );
323  DECL_LINK( Timeout, Timer*, void );
325 
327 
328  void OpenDoc(const SwGlblDocContent*);
329  void GotoContent(const SwGlblDocContent*);
331 
332  static void SetShowShell(const SfxObjectShell*pSet) {pShowShell = pSet;}
333  DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void*, void);
334 
335  virtual VclPtr<PopupMenu> CreateContextMenu() override;
336  virtual void ExecuteContextMenuAction( sal_uInt16 nSelectedPopupEntry ) override;
337 
338 public:
339  SwGlobalTree(vcl::Window* pParent, SwNavigationPI* pDialog);
340  virtual ~SwGlobalTree() override;
341  virtual void dispose() override;
342  virtual Size GetOptimalSize() const override;
343 
344  void TbxMenuHdl(sal_uInt16 nTbxId, ToolBox* pBox);
345  void InsertRegion( const SwGlblDocContent* pCont,
346  const OUString* pFileName = nullptr );
347  void EditContent(const SwGlblDocContent* pCont );
348 
349  void ShowTree();
350  void HideTree();
351 
352  void ExecCommand(const OUString& rCmd);
353 
354  void Display(bool bOnlyUpdateUserData = false);
355 
356  bool Update(bool bHard);
357 };
358 
359 #endif
360 
361 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual bool Expand(SvTreeListEntry *pParent) override
Expand - Remember the state for content types.
Definition: content.cxx:1470
MenuEnableFlags GetEnableFlags() const
Definition: glbltree.cxx:453
virtual Size GetOptimalSize() const override
Definition: glbltree.cxx:213
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:2676
static void SetInDrag(bool bSet)
Definition: conttree.hxx:166
bool IsHiddenView()
Definition: conttree.hxx:221
void EditContent(const SwGlblDocContent *pCont)
Definition: glbltree.cxx:753
virtual void RequestHelp(const HelpEvent &rHEvt) override
Definition: glbltree.cxx:483
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Definition: glbltree.cxx:615
virtual VclPtr< PopupMenu > CreateContextMenu() override
Definition: glbltree.cxx:355
SwNavigationPI * GetParentWindow()
Definition: glbltree.cxx:1212
OUString const m_sPostItHide
Definition: conttree.hxx:89
virtual void MouseButtonDown(const MouseEvent &rMEvt) override
Definition: content.cxx:2848
virtual DragDropMode NotifyStartDrag(TransferDataContainer &rData, SvTreeListEntry *) override
Definition: glbltree.cxx:555
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: content.cxx:1144
ContentTypeId m_nRootType
Definition: conttree.hxx:100
virtual void DragFinished(sal_Int8) override
Definition: content.cxx:1105
SwLBoxString(const OUString &rStr)
Definition: conttree.hxx:247
virtual void DragFinished(sal_Int8) override
Definition: glbltree.cxx:606
void SetHiddenShell(SwWrtShell *pSh)
After a file is dropped on the Navigator, the new shell will be set.
Definition: content.cxx:2278
OUString m_aContextStrings[CONTEXT_COUNT+1]
Definition: conttree.hxx:81
virtual void StartDrag(sal_Int8 nAction, const Point &rPosPixel) override
Definition: glbltree.cxx:600
signed char sal_Int8
DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void *, void)
virtual void RequestHelp(const HelpEvent &rHEvt) override
Definition: content.cxx:3039
void GotoContent(SwContent *pCnt)
Definition: content.cxx:3548
void ShowActualView()
Definition: content.cxx:3273
SwWrtShell * m_pHiddenShell
Definition: conttree.hxx:92
bool m_bLastEntryEmphasis
Definition: conttree.hxx:274
bool HasContentChanged()
Check if the displayed content is valid.
Definition: content.cxx:2031
sal_uIntPtr sal_uLong
std::unique_ptr< SwGlblDocContents > m_pSwGlblDocContents
Definition: conttree.hxx:268
virtual ~SwContentTree() override
Definition: content.cxx:906
#define GLOBAL_CONTEXT_COUNT
Definition: swcont.hxx:48
static const SfxObjectShell * pShowShell
Definition: conttree.hxx:276
virtual bool NotifyAcceptDrop(SvTreeListEntry *) override
Definition: content.cxx:2840
virtual TriState NotifyMoving(SvTreeListEntry *pTarget, SvTreeListEntry *pEntry, SvTreeListEntry *&rpNewParent, sal_uLong &rNewChildPos) override
Definition: glbltree.cxx:568
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:3281
virtual bool DoubleClickHdl()
virtual bool NotifyAcceptDrop(SvTreeListEntry *) override
Definition: glbltree.cxx:595
sal_uInt8 GetOutlineLevel() const
Definition: conttree.hxx:204
void HideTree()
folded together will not be glidled
Definition: content.cxx:2685
virtual void InitEntry(SvTreeListEntry *, const OUString &, const Image &, const Image &, SvLBoxButtonKind) override
Definition: content.cxx:3714
OUString const m_sUnprotTable
Definition: conttree.hxx:84
SwGlobalTree(vcl::Window *pParent, SwNavigationPI *pDialog)
Definition: glbltree.cxx:173
virtual sal_IntPtr GetTabPos(SvTreeListEntry *, SvLBoxTab *) override
Definition: glbltree.cxx:563
virtual void DataChanged(const DataChangedEvent &rDCEvt) override
Definition: glbltree.cxx:1254
OUString GetEntryLongDescription(SvTreeListEntry *pEntry) const override
Definition: content.cxx:1010
tools::Rectangle m_aOldRectangle
Definition: conttree.hxx:117
virtual TriState NotifyMoving(SvTreeListEntry *pTarget, SvTreeListEntry *pEntry, SvTreeListEntry *&rpNewParent, sal_uLong &rNewChildPos) override
Definition: content.cxx:2755
Used by the UI to modify the document model.
Definition: wrtsh.hxx:86
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:2254
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:586
virtual DragDropMode NotifyStartDrag(TransferDataContainer &rData, SvTreeListEntry *) override
Definition: content.cxx:2735
TreeListBox for content indicator.
Definition: conttree.hxx:71
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: glbltree.cxx:296
OUString const m_sUpdateIdx
Definition: conttree.hxx:83
SwWrtShell * GetHiddenWrtShell()
Definition: conttree.hxx:224
void SetOutlineLevel(sal_uInt8 nSet)
Definition: content.cxx:3245
sal_Int32 m_nActiveBlock
Definition: conttree.hxx:98
void GotoContent(const SwGlblDocContent *)
Definition: glbltree.cxx:1026
void EditEntry(SvTreeListEntry const *pEntry, EditEntryMode nMode)
Definition: content.cxx:3334
MenuEnableFlags
Definition: conttree.hxx:55
void ToggleToRoot()
Switch the display to Root.
Definition: content.cxx:1982
sal_Int32 m_nHiddenBlock
Definition: conttree.hxx:99
bool m_bDocChgdInDragging
Definition: conttree.hxx:106
OUString GetEntryAltText(SvTreeListEntry *pEntry) const override
Definition: content.cxx:926
void Update()
SvLBoxButtonKind
static bool bIsInDrag
Definition: conttree.hxx:114
void SetActiveShell(SwWrtShell *pSh)
Document change - set new Shell.
Definition: content.cxx:2292
std::unique_ptr< sfx2::DocumentInserter > m_pDocInserter
Definition: conttree.hxx:271
virtual bool Collapse(SvTreeListEntry *pParent) override
Collapse - Remember the state for content types.
Definition: content.cxx:1528
void SetRootType(ContentTypeId nType)
Definition: content.cxx:3314
SwNavigationConfig * m_pConfig
Definition: conttree.hxx:94
SwNavigationPI * GetParentWindow()
Definition: content.cxx:3755
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: content.cxx:1116
virtual VclPtr< PopupMenu > CreateContextMenu() override
Definition: content.cxx:1176
SvTreeListEntry * m_pDDSource
Definition: conttree.hxx:267
RENAME
OUString const m_sReadonlyIdx
Definition: conttree.hxx:86
void Clear()
Definition: glbltree.cxx:649
const SwWrtShell * GetActiveWrtShell()
Definition: conttree.hxx:223
bool IsConstantView()
Definition: conttree.hxx:219
static void SetShowShell(const SfxObjectShell *pSet)
Definition: conttree.hxx:332
virtual void dispose() override
Definition: glbltree.cxx:204
OUString const m_sRename
Definition: conttree.hxx:85
Content type, knows it's contents and the WrtShell.
Definition: content.hxx:139
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:2798
bool IsActiveView()
Definition: conttree.hxx:220
virtual void ExecuteContextMenuAction(sal_uInt16 nSelectedPopupEntry) override
Definition: content.cxx:3150
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:3742
void HideTree()
Definition: glbltree.cxx:1054
EditEntryMode
Definition: conttree.hxx:44
static bool IsInDrag()
Definition: conttree.hxx:202
bool m_bIsLastReadOnly
Definition: conttree.hxx:110
AutoTimer m_aUpdateTimer
Definition: conttree.hxx:262
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:265
SvTreeListEntry * m_pEmphasisEntry
Definition: conttree.hxx:266
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:1235
VclPtr< SwNavigationPI > m_xDialog
Definition: conttree.hxx:261
bool FillTransferData(TransferDataContainer &rTransfer, sal_Int8 &rDragMode)
Definition: content.cxx:1845
virtual void InitEntry(SvTreeListEntry *, const OUString &, const Image &, const Image &, SvLBoxButtonKind) override
Definition: glbltree.cxx:1225
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
Definition: content.cxx:2344
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: glbltree.cxx:218
virtual Size GetOptimalSize() const override
Definition: content.cxx:921
unsigned char sal_uInt8
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aActiveContentArr
Definition: conttree.hxx:79
bool m_bIsInternalDrag
Definition: conttree.hxx:273
SdrObject * GetDrawingObjectsByContent(const SwContent *pCnt)
Definition: content.cxx:1438
OUString const m_sPostItDelete
Definition: conttree.hxx:90
virtual void KeyInput(const KeyEvent &rKEvt) override
Definition: glbltree.cxx:632
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:93
void OpenDoc(const SwGlblDocContent *)
Definition: glbltree.cxx:1167
void ShowTree()
Definition: content.cxx:2671
void Display(bool bOnlyUpdateUserData=false)
Definition: glbltree.cxx:655
virtual void GetFocus() override
Definition: content.cxx:2868
std::map< void *, bool > mOutLineNodeMap
Definition: conttree.hxx:96
void EditEntry(SvTreeListEntry *pEntry)
virtual void ExecuteContextMenuAction(sal_uInt16 nSelectedPopupEntry) override
Definition: glbltree.cxx:793
virtual void SelectHdl() override
Definition: glbltree.cxx:531
ContentTypeId m_nLastSelType
Definition: conttree.hxx:101
virtual void StartDrag(sal_Int8 nAction, const Point &rPosPixel) override
Definition: content.cxx:1086
virtual void RequestingChildren(SvTreeListEntry *pParent) override
Definition: content.cxx:1370
bool m_bIsInternalDrag
Definition: conttree.hxx:107
virtual void dispose() override
Definition: content.cxx:911
void ExecCommand(const OUString &rCmd)
Definition: glbltree.cxx:1060
OUString const m_sPostItShow
Definition: conttree.hxx:88
SwWrtShell * GetWrtShell()
Definition: conttree.hxx:199
virtual void GetFocus() override
Definition: glbltree.cxx:625
void ShowHiddenShell()
Definition: content.cxx:3262
void Clear()
In the Clear the content types have to be deleted, also.
Definition: content.cxx:1838
void ExecCommand(const OUString &rCmd, bool bModifier)
Execute commands of the Navigator.
Definition: content.cxx:2384
OUString m_aContextStrings[GLOBAL_CONTEXT_COUNT]
Definition: conttree.hxx:263
bool m_bIsIdleClear
Definition: conttree.hxx:109
void SetConstantShell(SwWrtShell *pSh)
Set an open view as active.
Definition: content.cxx:2328
DECL_LINK(DialogClosedHdl, sfx2::FileDialogHelper *, void)
virtual ~SwGlobalTree() override
Definition: glbltree.cxx:199
void TbxMenuHdl(sal_uInt16 nTbxId, ToolBox *pBox)
Definition: glbltree.cxx:414
virtual void KeyInput(const KeyEvent &rKEvt) override
Definition: content.cxx:2892
std::unique_ptr< SwGlblDocContent > m_pDocContent
Definition: conttree.hxx:270
void Display(bool bActiveView)
Show the file.
Definition: content.cxx:1647
SwContentTree(vcl::Window *pParent, SwNavigationPI *pDialog)
Definition: content.cxx:853
TriState
#define CONTEXT_COUNT
Definition: swcont.hxx:47
DECL_LINK(ContentDoubleClickHdl, SvTreeListBox *, bool)
void ShowTree()
Definition: glbltree.cxx:1048
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:550
virtual sal_IntPtr GetTabPos(SvTreeListEntry *, SvLBoxTab *) override
Definition: content.cxx:1348