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/timer.hxx>
24#include <vcl/transfer.hxx>
25#include <vcl/weld.hxx>
26#include <ndarr.hxx>
27#include "swcont.hxx"
28
29#include <map>
30#include <memory>
31
32#include <o3tl/enumarray.hxx>
34
36#include <editsh.hxx>
37#include <edglbldc.hxx>
38
39class SwWrtShell;
40class SwContentType;
41class SwNavigationPI;
43class Menu;
44class ToolBox;
46class SfxObjectShell;
47class SdrObject;
48
49enum class EditEntryMode
50{
51 EDIT = 0,
52 UPD_IDX = 1,
53 RMV_IDX = 2,
55 DELETE = 4,
56 RENAME = 5,
57};
58
59// Flags for PopupMenu-enable/disable
60enum class MenuEnableFlags {
61 NONE = 0x0000,
62 InsertIdx = 0x0001,
63 InsertFile = 0x0002,
64 InsertText = 0x0004,
65 Edit = 0x0008,
66 Delete = 0x0010,
67 Update = 0x0020,
68 UpdateSel = 0x0040,
69 EditLink = 0x0080
70};
71namespace o3tl {
72 template<> struct typed_flags<MenuEnableFlags> : is_typed_flags<MenuEnableFlags, 0x00ff> {};
73}
74
75class SwContentTree;
76
77class SwContentTreeDropTarget final : public DropTargetHelper
78{
79private:
81
82 virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
83 virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
84
85public:
87};
88
90class SwContentTree final : public SfxListener
91{
92 std::unique_ptr<weld::TreeView> m_xTreeView;
95 OUString m_sSpace;
98
102 OUString m_sInvisible;
103 OUString m_sSelectedItem; // last selected item (only bookmarks yet)
104
105 SwWrtShell* m_pHiddenShell; // dropped Doc
106 SwWrtShell* m_pActiveShell; // the active or a const. open view
108
109 std::map< void*, bool > mOutLineNodeMap;
110
111 sal_Int32 m_nActiveBlock; // used to restore content types/categories expand state
112 sal_Int32 m_nHiddenBlock;
117
118 sal_uInt8 m_nOutlineTracking = 1; // 1 default, 2 focus, 3 off
120
122
123 enum class State { ACTIVE, CONSTANT, HIDDEN } m_eState;
124
125 bool m_bIsRoot :1;
130
131 // outline root mode drag & drop
132 std::vector<std::unique_ptr<weld::TreeIter>> m_aDndOutlinesSelected;
133
134 bool m_bDocHasChanged = true;
135 bool m_bIgnoreDocChange = false; // used to prevent tracking update
136
138 bool m_bSelectTo = false;
139
140 std::unique_ptr<weld::TreeIter> m_xOverlayCompareEntry;
141 std::unique_ptr<sdr::overlay::OverlayObject> m_xOverlayObject;
142
143 void OverlayObject(std::vector<basegfx::B2DRange>&& aRanges = {});
144
145 void BringEntryToAttention(const weld::TreeIter& rEntry);
146 void BringFramesToAttention(const std::vector<const SwFrameFormat*>& rFrameFormats);
147 void BringBookmarksToAttention(const std::vector<OUString>& rNames);
148 void BringURLFieldsToAttention(const SwGetINetAttrs& rINetAttrsArr);
149 void BringReferencesToAttention(std::vector<const SwTextAttr*>& rTextAttrsArr);
150 void BringPostItFieldsToAttention(std::vector<const SwTextAttr*>& rTextAttrsArr);
151 void BringDrawingObjectsToAttention(std::vector<const SdrObject*>& rDrawingObjectsArr);
152 void BringTextFieldsToAttention(std::vector<const SwTextAttr*>& rTextAttrsArr);
153 void BringFootnotesToAttention(std::vector<const SwTextAttr*>& rTextAttrsArr);
154 void BringTypesWithFlowFramesToAttention(const std::vector<const SwNode*>& rNodes);
155
161
162 void InsertContent(const weld::TreeIter& rParent);
163
164 void insert(const weld::TreeIter* pParent, const OUString& rStr, const OUString& rId,
165 bool bChildrenOnDemand, weld::TreeIter* pRet);
166
167 void remove(const weld::TreeIter& rIter);
168
170
172 sal_Int8& rDragMode );
173
175 bool HasContentChanged();
176
177 size_t GetAbsPos(const weld::TreeIter& rIter);
178
179 void EditEntry(const weld::TreeIter& rEntry, EditEntryMode nMode);
180
181 void GotoContent(const SwContent* pCnt);
182
183 void ExecuteContextMenuAction(const OUString& rSelectedPopupEntry);
184
187
188 size_t GetEntryCount() const;
189
190 size_t GetChildCount(const weld::TreeIter& rParent) const;
191
192 std::unique_ptr<weld::TreeIter> GetEntryAtAbsPos(size_t nAbsPos) const;
193
194 void Expand(const weld::TreeIter& rParent, std::vector<std::unique_ptr<weld::TreeIter>>* pNodesToExpand);
195
196 void MoveOutline(SwOutlineNodes::size_type nTargetPos);
197
198 void UpdateLastSelType();
199
201 DECL_LINK(ExpandHdl, const weld::TreeIter&, bool);
203 DECL_LINK(CollapseHdl, const weld::TreeIter&, bool);
204 DECL_LINK(ContentDoubleClickHdl, weld::TreeView&, bool);
205 DECL_LINK(AsyncContentDoubleClickHdl, void*, void);
206 DECL_LINK(SelectHdl, weld::TreeView&, void);
207 DECL_LINK(FocusInHdl, weld::Widget&, void);
208 DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
209 DECL_LINK(CommandHdl, const CommandEvent&, bool);
210 DECL_LINK(QueryTooltipHdl, const weld::TreeIter&, OUString);
211 DECL_LINK(DragBeginHdl, bool&, bool);
212 DECL_LINK(TimerUpdate, Timer *, void);
213 DECL_LINK(OverlayObjectDelayTimerHdl, Timer *, void);
214 DECL_LINK(MouseMoveHdl, const MouseEvent&, bool);
215 DECL_LINK(MousePressHdl, const MouseEvent&, bool);
216
217public:
218 SwContentTree(std::unique_ptr<weld::TreeView> xTreeView, SwNavigationPI* pDialog);
221
223 void ToggleToRoot();
224 void SetRootType(ContentTypeId nType);
225
227 void Display( bool bActiveView );
229 void clear();
230
232 void SetHiddenShell(SwWrtShell* pSh);
233 void ShowHiddenShell();
234 void ShowActualView();
235
237 void SetActiveShell(SwWrtShell* pSh);
238
240 void SetConstantShell(SwWrtShell* pSh);
241
244
245 bool IsInDrag() const;
246
248 void SetOutlineLevel(sal_uInt8 nSet);
249
250 void SetOutlineTracking(sal_uInt8 nSet);
251 void SetContentTypeTracking(ContentTypeId eCntTypeId, bool bSet);
252
254 void ExecCommand(std::u16string_view rCmd, bool bModifier);
255
256 void ShowTree();
257 void HideTree();
258
259 bool IsConstantView() const { return State::CONSTANT == m_eState; }
260 bool IsActiveView() const { return State::ACTIVE == m_eState; }
261 bool IsHiddenView() const { return State::HIDDEN == m_eState; }
262
265
266 void Select();
267
268 void UpdateTracking();
270 void SelectContentType(std::u16string_view rContentTypeName);
271
272 // return true if it has any children
273 bool RequestingChildren(const weld::TreeIter& rParent);
274
275 virtual void Notify(SfxBroadcaster& rBC, SfxHint const& rHint) override;
276
279
281 {
282 return m_aDropTargetHelper.IsDropFormatSupported(nFormat);
283 }
284
285 void set_accessible_name(const OUString& rName)
286 {
287 m_xTreeView->set_accessible_name(rName);
288 }
289
291 {
292 m_xTreeView->grab_focus();
293 }
294
296 {
297 m_xTreeView->set_selection_mode(eMode);
298 }
299
301 {
302 return *m_xTreeView;
303 }
304};
305
306namespace sfx2 { class DocumentInserter; }
307namespace sfx2 { class FileDialogHelper; }
308
309class SwGlobalTree;
310
311class SwGlobalTreeDropTarget final : public DropTargetHelper
312{
313private:
315
316 virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
317 virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
318
319public:
321};
322
323class SwGlobalTree final : public SfxListener
324{
325private:
326 std::unique_ptr<weld::TreeView> m_xTreeView;
331
333 std::unique_ptr<SwGlblDocContents> m_pSwGlblDocContents; // array with sorted content
334
335 std::optional<SwGlblDocContent> m_oDocContent;
336 std::unique_ptr<sfx2::DocumentInserter> m_pDocInserter;
337
339
340 void InsertRegion( const SwGlblDocContent* _pContent,
341 const css::uno::Sequence< OUString >& _rFiles );
342
343 DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper*, void );
344
345 void Select();
346
347 DECL_LINK(Timeout, Timer*, void);
348 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
349 DECL_LINK(SelectHdl, weld::TreeView&, void);
350 DECL_LINK(FocusInHdl, weld::Widget&, void);
351 DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
352 DECL_LINK(CommandHdl, const CommandEvent&, bool);
353 DECL_LINK(QueryTooltipHdl, const weld::TreeIter&, OUString);
354
356
357 void OpenDoc(const SwGlblDocContent*);
358 void GotoContent(const SwGlblDocContent*);
360
361 static void SetShowShell(const SfxObjectShell*pSet) {s_pShowShell = pSet;}
362 DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void*, void);
363
364public:
365 SwGlobalTree(std::unique_ptr<weld::TreeView> xTreeView, SwNavigationPI* pDialog);
367
368 bool get_visible() const { return m_xTreeView->get_visible(); }
369
370 void set_accessible_name(const OUString& rName)
371 {
372 m_xTreeView->set_accessible_name(rName);
373 }
374
376 {
377 m_xTreeView->grab_focus();
378 }
379
381 {
382 m_xTreeView->set_selection_mode(eMode);
383 }
384
386 {
387 return *m_xTreeView;
388 }
389
390 void MoveSelectionTo(const weld::TreeIter* pDropTarget);
391
392 void TbxMenuHdl(std::u16string_view rCommand, weld::Menu& rMenu);
393 void InsertRegion( const SwGlblDocContent* pCont,
394 const OUString* pFileName = nullptr );
395 void EditContent(const SwGlblDocContent* pCont );
396
397 void ShowTree();
398 void HideTree();
399
400 void ExecCommand(std::u16string_view rCmd);
401
402 void Display(bool bOnlyUpdateUserData = false);
403
404 bool Update(bool bHard);
405
406 void ExecuteContextMenuAction(std::u16string_view rSelectedPopupEntry);
407
409
410 virtual void Notify(SfxBroadcaster& rBC, SfxHint const& rHint) override;
411 void UpdateTracking();
412};
413
414#endif
415
416/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwContentTreeDropTarget(SwContentTree &rTreeView)
Definition: content.cxx:1239
SwContentTree & m_rTreeView
Definition: conttree.hxx:80
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: content.cxx:1245
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: content.cxx:1292
TreeListBox for content indicator.
Definition: conttree.hxx:91
sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt)
Definition: content.cxx:1265
SwWrtShell * GetHiddenWrtShell()
Definition: conttree.hxx:264
void Select()
Definition: content.cxx:4936
bool IsDropFormatSupported(SotClipboardFormatId nFormat)
Definition: conttree.hxx:280
void BringTypesWithFlowFramesToAttention(const std::vector< const SwNode * > &rNodes)
Definition: content.cxx:5982
SwOutlineNodes::size_type m_nLastGotoContentWasOutlinePos
Definition: conttree.hxx:121
void set_accessible_name(const OUString &rName)
Definition: conttree.hxx:285
void SetOutlineTracking(sal_uInt8 nSet)
Definition: content.cxx:4886
void BringURLFieldsToAttention(const SwGetINetAttrs &rINetAttrsArr)
Definition: content.cxx:6008
bool IsActiveView() const
Definition: conttree.hxx:260
void BringTextFieldsToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
Definition: content.cxx:6121
std::map< void *, bool > mOutLineNodeMap
Definition: conttree.hxx:109
bool m_bIgnoreDocChange
Definition: conttree.hxx:135
void GotoContent(const SwContent *pCnt)
Definition: content.cxx:5335
void ShowActualView()
Definition: content.cxx:4909
DECL_LINK(CollapseHdl, const weld::TreeIter &, bool)
Collapse - Remember the state for content types.
weld::TreeView & get_widget()
Definition: conttree.hxx:300
void ShowHiddenShell()
Definition: content.cxx:4899
void SelectContentType(std::u16string_view rContentTypeName)
Definition: content.cxx:5578
size_t GetEntryCount() const
Definition: content.cxx:2473
SwNavigationPI * GetParentWindow()
Definition: content.cxx:5573
void ExecCommand(std::u16string_view rCmd, bool bModifier)
Execute commands of the Navigator.
Definition: content.cxx:3257
std::unique_ptr< weld::TreeIter > GetEntryAtAbsPos(size_t nAbsPos) const
Definition: content.cxx:2501
void UpdateLastSelType()
Definition: content.cxx:3094
OUString m_sInvisible
Definition: conttree.hxx:102
void BringFootnotesToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
Definition: content.cxx:6083
void insert(const weld::TreeIter *pParent, const OUString &rStr, const OUString &rId, bool bChildrenOnDemand, weld::TreeIter *pRet)
Definition: content.cxx:2104
void FindActiveTypeAndRemoveUserData()
Before any data will be deleted, the last active entry has to be found.
Definition: content.cxx:3110
bool IsInDrag() const
Definition: content.cxx:1259
void ToggleToRoot()
Switch the display to Root.
Definition: content.cxx:2840
void remove(const weld::TreeIter &rIter)
Definition: content.cxx:2111
void BringFramesToAttention(const std::vector< const SwFrameFormat * > &rFrameFormats)
Definition: content.cxx:5929
bool m_bSelectTo
Definition: conttree.hxx:138
OUString m_sSelectedItem
Definition: conttree.hxx:103
void SelectOutlinesWithSelection()
Definition: content.cxx:4122
DECL_LINK(QueryTooltipHdl, const weld::TreeIter &, OUString)
void set_selection_mode(SelectionMode eMode)
Definition: conttree.hxx:295
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aHiddenContentArr
Definition: conttree.hxx:100
std::unique_ptr< sdr::overlay::OverlayObject > m_xOverlayObject
Definition: conttree.hxx:141
sal_uInt8 GetOutlineLevel() const
Definition: conttree.hxx:247
AutoTimer m_aOverlayObjectDelayTimer
Definition: conttree.hxx:97
bool m_bIsLastReadOnly
Definition: conttree.hxx:127
std::vector< std::unique_ptr< weld::TreeIter > > m_aDndOutlinesSelected
Definition: conttree.hxx:132
bool m_bIsOutlineMoveable
Definition: conttree.hxx:128
sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt)
Definition: content.cxx:1297
DECL_LINK(MouseMoveHdl, const MouseEvent &, bool)
DECL_LINK(ContentDoubleClickHdl, weld::TreeView &, bool)
void SetConstantShell(SwWrtShell *pSh)
Set an open view as active.
Definition: content.cxx:3178
bool RequestingChildren(const weld::TreeIter &rParent)
Definition: content.cxx:2124
DECL_LINK(AsyncContentDoubleClickHdl, void *, void)
size_t GetAbsPos(const weld::TreeIter &rIter)
Definition: content.cxx:2468
void MoveOutline(SwOutlineNodes::size_type nTargetPos)
Definition: content.cxx:4176
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
Definition: content.cxx:3192
void Display(bool bActiveView)
Show the file.
Definition: content.cxx:2516
std::unique_ptr< weld::TreeIter > m_xOverlayCompareEntry
Definition: conttree.hxx:140
void SetContentTypeTracking(ContentTypeId eCntTypeId, bool bSet)
Definition: content.cxx:4892
bool FillTransferData(TransferDataContainer &rTransfer, sal_Int8 &rDragMode)
Definition: content.cxx:2699
ContentTypeId m_nLastSelType
Definition: conttree.hxx:115
void SetHiddenShell(SwWrtShell *pSh)
After a file is dropped on the Navigator, the new shell will be set.
Definition: content.cxx:3122
const SwWrtShell * GetActiveWrtShell() const
Definition: conttree.hxx:263
void Expand(const weld::TreeIter &rParent, std::vector< std::unique_ptr< weld::TreeIter > > *pNodesToExpand)
Definition: content.cxx:2219
void EditEntry(const weld::TreeIter &rEntry, EditEntryMode nMode)
Definition: content.cxx:4989
sal_Int32 m_nHiddenBlock
Definition: conttree.hxx:112
size_t m_nEntryCount
Definition: conttree.hxx:113
OUString m_aContextStrings[CONTEXT_COUNT+1]
Definition: conttree.hxx:101
sal_Int32 m_nActiveBlock
Definition: conttree.hxx:111
OUString m_sSpace
Definition: conttree.hxx:95
void OverlayObject(std::vector< basegfx::B2DRange > &&aRanges={})
Definition: content.cxx:5611
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aActiveContentArr
Definition: conttree.hxx:99
DECL_LINK(MousePressHdl, const MouseEvent &, bool)
void BringEntryToAttention(const weld::TreeIter &rEntry)
Definition: content.cxx:5627
enum SwContentTree::State m_eState
bool HasContentChanged()
Check if the displayed content is valid.
Definition: content.cxx:2892
SwWrtShell * m_pHiddenShell
Definition: conttree.hxx:105
void BringPostItFieldsToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
Definition: content.cxx:6049
bool IsHiddenView() const
Definition: conttree.hxx:261
bool m_bIsIdleClear
Definition: conttree.hxx:126
void grab_focus()
Definition: conttree.hxx:290
ContentTypeId m_nRootType
Definition: conttree.hxx:114
SwNavigationConfig * m_pConfig
Definition: conttree.hxx:107
DECL_LINK(DragBeginHdl, bool &, bool)
sal_uInt8 m_nOutlineLevel
Definition: conttree.hxx:116
DECL_LINK(SelectHdl, weld::TreeView &, void)
void clear()
In the clear the content types have to be deleted, also.
Definition: content.cxx:2691
SwWrtShell * GetWrtShell()
Definition: conttree.hxx:242
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void DeleteOutlineSelections()
Definition: content.cxx:4831
void SetActiveShell(SwWrtShell *pSh)
Document change - set new Shell.
Definition: content.cxx:3136
DECL_LINK(CommandHdl, const CommandEvent &, bool)
void UpdateTracking()
Definition: content.cxx:3763
size_t GetChildCount(const weld::TreeIter &rParent) const
Definition: content.cxx:2478
o3tl::enumarray< ContentTypeId, bool > mTrackContentType
Definition: conttree.hxx:119
DECL_LINK(TimerUpdate, Timer *, void)
void BringReferencesToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
Definition: content.cxx:6026
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:106
AutoTimer m_aUpdTimer
Definition: conttree.hxx:96
SwContentTree(std::unique_ptr< weld::TreeView > xTreeView, SwNavigationPI *pDialog)
Definition: content.cxx:1072
DECL_LINK(OverlayObjectDelayTimerHdl, Timer *, void)
void SetOutlineLevel(sal_uInt8 nSet)
Definition: content.cxx:4869
void BringDrawingObjectsToAttention(std::vector< const SdrObject * > &rDrawingObjectsArr)
Definition: content.cxx:6106
std::unique_ptr< weld::TreeView > m_xTreeView
Definition: conttree.hxx:92
void CopyOutlineSelections()
Definition: content.cxx:5309
void SetRootType(ContentTypeId nType)
Definition: content.cxx:4969
SwNavigationPI * m_pDialog
Definition: conttree.hxx:94
SdrObject * GetDrawingObjectsByContent(const SwContent *pCnt)
Definition: content.cxx:2187
ImplSVEvent * m_nRowActivateEventId
Definition: conttree.hxx:137
void InsertContent(const weld::TreeIter &rParent)
Definition: content.cxx:2076
bool m_bViewHasChanged
Definition: conttree.hxx:129
void ShowTree()
Definition: content.cxx:3540
bool IsConstantView() const
Definition: conttree.hxx:259
void HideTree()
Definition: content.cxx:3546
SwContentTreeDropTarget m_aDropTargetHelper
Definition: conttree.hxx:93
DECL_LINK(FocusInHdl, weld::Widget &, void)
void BringBookmarksToAttention(const std::vector< OUString > &rNames)
Definition: content.cxx:5944
void ExecuteContextMenuAction(const OUString &rSelectedPopupEntry)
Definition: content.cxx:4547
DECL_LINK(ExpandHdl, const weld::TreeIter &, bool)
Expand - Remember the state for content types.
sal_uInt8 m_nOutlineTracking
Definition: conttree.hxx:118
bool m_bDocHasChanged
Definition: conttree.hxx:134
Content type, knows it's contents and the WrtShell.
Definition: content.hxx:173
SwGlobalTreeDropTarget(SwGlobalTree &rTreeView)
Definition: glbltree.cxx:163
SwGlobalTree & m_rTreeView
Definition: conttree.hxx:314
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: glbltree.cxx:169
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: glbltree.cxx:238
std::unique_ptr< weld::TreeView > m_xTreeView
Definition: conttree.hxx:326
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
std::optional< SwGlblDocContent > m_oDocContent
Definition: conttree.hxx:335
std::unique_ptr< SwGlblDocContents > m_pSwGlblDocContents
Definition: conttree.hxx:333
void grab_focus()
Definition: conttree.hxx:375
void Select()
Definition: glbltree.cxx:377
DECL_LINK(CommandHdl, const CommandEvent &, bool)
void set_accessible_name(const OUString &rName)
Definition: conttree.hxx:370
void EditContent(const SwGlblDocContent *pCont)
Definition: glbltree.cxx:537
SwNavigationPI * GetParentWindow()
Definition: glbltree.cxx:997
bool get_visible() const
Definition: conttree.hxx:368
void set_selection_mode(SelectionMode eMode)
Definition: conttree.hxx:380
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
Definition: glbltree.cxx:1123
AutoTimer m_aUpdateTimer
Definition: conttree.hxx:329
void ExecuteContextMenuAction(std::u16string_view rSelectedPopupEntry)
Definition: glbltree.cxx:571
SwNavigationPI * m_pDialog
Definition: conttree.hxx:328
DECL_LINK(QueryTooltipHdl, const weld::TreeIter &, OUString)
static const SfxObjectShell * s_pShowShell
Definition: conttree.hxx:338
MenuEnableFlags GetEnableFlags() const
Definition: glbltree.cxx:318
void ExecCommand(std::u16string_view rCmd)
Definition: glbltree.cxx:842
OUString m_aContextStrings[GLOBAL_CONTEXT_COUNT]
Definition: conttree.hxx:330
void ShowTree()
Definition: glbltree.cxx:829
DECL_LINK(FocusInHdl, weld::Widget &, void)
DECL_LINK(DialogClosedHdl, sfx2::FileDialogHelper *, void)
void InsertRegion(const SwGlblDocContent *_pContent, const css::uno::Sequence< OUString > &_rFiles)
SwGlobalTreeDropTarget m_aDropTargetHelper
Definition: conttree.hxx:327
void MoveSelectionTo(const weld::TreeIter *pDropTarget)
Definition: glbltree.cxx:395
void UpdateTracking()
Definition: glbltree.cxx:789
DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void *, void)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void Display(bool bOnlyUpdateUserData=false)
Definition: glbltree.cxx:432
const SwWrtShell * GetActiveWrtShell() const
Definition: conttree.hxx:408
weld::TreeView & get_widget()
Definition: conttree.hxx:385
void GotoContent(const SwGlblDocContent *)
Definition: glbltree.cxx:807
DECL_LINK(Timeout, Timer *, void)
bool Update(bool bHard)
Definition: glbltree.cxx:879
SwGlobalTree(std::unique_ptr< weld::TreeView > xTreeView, SwNavigationPI *pDialog)
Definition: glbltree.cxx:129
void TbxMenuHdl(std::u16string_view rCommand, weld::Menu &rMenu)
Definition: glbltree.cxx:302
DECL_LINK(SelectHdl, weld::TreeView &, void)
void HideTree()
Definition: glbltree.cxx:836
static void SetShowShell(const SfxObjectShell *pSet)
Definition: conttree.hxx:361
std::unique_ptr< sfx2::DocumentInserter > m_pDocInserter
Definition: conttree.hxx:336
void OpenDoc(const SwGlblDocContent *)
Definition: glbltree.cxx:952
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:332
static constexpr auto npos
Definition: ndarr.hxx:81
Used by the UI to modify the document model.
Definition: wrtsh.hxx:97
EditEntryMode
Definition: conttree.hxx:50
MenuEnableFlags
Definition: conttree.hxx:60
std::vector< SwGetINetAttr > SwGetINetAttrs
Definition: editsh.hxx:128
SotClipboardFormatId
Mode eMode
RENAME
NONE
#define CONTEXT_COUNT
Definition: swcont.hxx:51
#define GLOBAL_CONTEXT_COUNT
Definition: swcont.hxx:52
ContentTypeId
Definition: swcont.hxx:30
unsigned char sal_uInt8
signed char sal_Int8
SelectionMode