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
38class SwWrtShell;
39class SwContentType;
40class SwNavigationPI;
42class Menu;
43class 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
104 SwWrtShell* m_pHiddenShell; // dropped Doc
105 SwWrtShell* m_pActiveShell; // the active or a const. open view
107
108 std::map< void*, bool > mOutLineNodeMap;
109
110 sal_Int32 m_nActiveBlock; // used to restore content types/categories expand state
111 sal_Int32 m_nHiddenBlock;
116
117 sal_uInt8 m_nOutlineTracking = 1; // 1 default, 2 focus, 3 off
119
121
122 enum class State { ACTIVE, CONSTANT, HIDDEN } m_eState;
123
124 bool m_bIsRoot :1;
129
130 // outline root mode drag & drop
131 std::vector<std::unique_ptr<weld::TreeIter>> m_aDndOutlinesSelected;
132
133 bool m_bDocHasChanged = true;
134 bool m_bIgnoreDocChange = false; // used to prevent tracking update
135
136 std::unique_ptr<weld::TreeIter> m_xOverlayCompareEntry;
137 std::unique_ptr<sdr::overlay::OverlayObject> m_xOverlayObject;
138
139 void OverlayObject(std::vector<basegfx::B2DRange>&& aRanges = {});
140
141 void BringEntryToAttention(const weld::TreeIter& rEntry);
142 void BringFramesToAttention(const std::vector<const SwFrameFormat*>& rFrameFormats);
143 void BringBookmarksToAttention(const std::vector<OUString>& rNames);
144 void BringURLFieldsToAttention(const SwGetINetAttrs& rINetAttrsArr);
145 void BringReferencesToAttention(std::vector<const SwTextAttr*>& rTextAttrsArr);
146 void BringPostItFieldsToAttention(std::vector<const SwTextAttr*>& rTextAttrsArr);
147 void BringDrawingObjectsToAttention(std::vector<const SdrObject*>& rDrawingObjectsArr);
148 void BringTextFieldsToAttention(std::vector<const SwTextAttr*>& rTextAttrsArr);
149 void BringFootnotesToAttention(std::vector<const SwTextAttr*>& rTextAttrsArr);
150 void BringTypesWithFlowFramesToAttention(const std::vector<const SwNode*>& rNodes);
151
157
158 void InsertContent(const weld::TreeIter& rParent);
159
160 void insert(const weld::TreeIter* pParent, const OUString& rStr, const OUString& rId,
161 bool bChildrenOnDemand, weld::TreeIter* pRet);
162
163 void remove(const weld::TreeIter& rIter);
164
166
168 sal_Int8& rDragMode );
169
171 bool HasContentChanged();
172
173 size_t GetAbsPos(const weld::TreeIter& rIter);
174
175 void EditEntry(const weld::TreeIter& rEntry, EditEntryMode nMode);
176
177 void GotoContent(const SwContent* pCnt);
178
179 void ExecuteContextMenuAction(const OString& rSelectedPopupEntry);
180
183
184 size_t GetEntryCount() const;
185
186 size_t GetChildCount(const weld::TreeIter& rParent) const;
187
188 std::unique_ptr<weld::TreeIter> GetEntryAtAbsPos(size_t nAbsPos) const;
189
190 void Expand(const weld::TreeIter& rParent, std::vector<std::unique_ptr<weld::TreeIter>>* pNodesToExpand);
191
192 void MoveOutline(SwOutlineNodes::size_type nTargetPos);
193
194 void UpdateLastSelType();
195
197 DECL_LINK(ExpandHdl, const weld::TreeIter&, bool);
199 DECL_LINK(CollapseHdl, const weld::TreeIter&, bool);
200 DECL_LINK(ContentDoubleClickHdl, weld::TreeView&, bool);
201 DECL_LINK(SelectHdl, weld::TreeView&, void);
202 DECL_LINK(FocusInHdl, weld::Widget&, void);
203 DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
204 DECL_LINK(CommandHdl, const CommandEvent&, bool);
205 DECL_LINK(QueryTooltipHdl, const weld::TreeIter&, OUString);
206 DECL_LINK(DragBeginHdl, bool&, bool);
207 DECL_LINK(TimerUpdate, Timer *, void);
208 DECL_LINK(OverlayObjectDelayTimerHdl, Timer *, void);
209 DECL_LINK(MouseMoveHdl, const MouseEvent&, bool);
210
211public:
212 SwContentTree(std::unique_ptr<weld::TreeView> xTreeView, SwNavigationPI* pDialog);
215
217 void ToggleToRoot();
218 void SetRootType(ContentTypeId nType);
219
221 void Display( bool bActiveView );
223 void clear();
224
226 void SetHiddenShell(SwWrtShell* pSh);
227 void ShowHiddenShell();
228 void ShowActualView();
229
231 void SetActiveShell(SwWrtShell* pSh);
232
234 void SetConstantShell(SwWrtShell* pSh);
235
238
239 bool IsInDrag() const;
240
242 void SetOutlineLevel(sal_uInt8 nSet);
243
244 void SetOutlineTracking(sal_uInt8 nSet);
245 void SetContentTypeTracking(ContentTypeId eCntTypeId, bool bSet);
246
248 void ExecCommand(std::string_view rCmd, bool bModifier);
249
250 void ShowTree();
251 void HideTree();
252
253 bool IsConstantView() const { return State::CONSTANT == m_eState; }
254 bool IsActiveView() const { return State::ACTIVE == m_eState; }
255 bool IsHiddenView() const { return State::HIDDEN == m_eState; }
256
259
260 void Select();
261
262 void UpdateTracking();
264 void SelectContentType(std::u16string_view rContentTypeName);
265
266 // return true if it has any children
267 bool RequestingChildren(const weld::TreeIter& rParent);
268
269 virtual void Notify(SfxBroadcaster& rBC, SfxHint const& rHint) override;
270
273
275 {
276 return m_aDropTargetHelper.IsDropFormatSupported(nFormat);
277 }
278
279 void set_accessible_name(const OUString& rName)
280 {
281 m_xTreeView->set_accessible_name(rName);
282 }
283
285 {
286 m_xTreeView->grab_focus();
287 }
288
290 {
291 m_xTreeView->set_selection_mode(eMode);
292 }
293
295 {
296 return *m_xTreeView;
297 }
298};
299
300namespace sfx2 { class DocumentInserter; }
301namespace sfx2 { class FileDialogHelper; }
302
303class SwGlobalTree;
304
305class SwGlobalTreeDropTarget final : public DropTargetHelper
306{
307private:
309
310 virtual sal_Int8 AcceptDrop( const AcceptDropEvent& rEvt ) override;
311 virtual sal_Int8 ExecuteDrop( const ExecuteDropEvent& rEvt ) override;
312
313public:
315};
316
317class SwGlobalTree final : public SfxListener
318{
319private:
320 std::unique_ptr<weld::TreeView> m_xTreeView;
325
327 std::unique_ptr<SwGlblDocContents> m_pSwGlblDocContents; // array with sorted content
328
329 std::unique_ptr<SwGlblDocContent> m_pDocContent;
330 std::unique_ptr<sfx2::DocumentInserter> m_pDocInserter;
331
333
334 void InsertRegion( const SwGlblDocContent* _pContent,
335 const css::uno::Sequence< OUString >& _rFiles );
336
337 DECL_LINK( DialogClosedHdl, sfx2::FileDialogHelper*, void );
338
339 void Select();
340
341 DECL_LINK(Timeout, Timer*, void);
342 DECL_LINK(DoubleClickHdl, weld::TreeView&, bool);
343 DECL_LINK(SelectHdl, weld::TreeView&, void);
344 DECL_LINK(FocusInHdl, weld::Widget&, void);
345 DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
346 DECL_LINK(CommandHdl, const CommandEvent&, bool);
347 DECL_LINK(QueryTooltipHdl, const weld::TreeIter&, OUString);
348
350
351 void OpenDoc(const SwGlblDocContent*);
352 void GotoContent(const SwGlblDocContent*);
354
355 static void SetShowShell(const SfxObjectShell*pSet) {s_pShowShell = pSet;}
356 DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void*, void);
357
358public:
359 SwGlobalTree(std::unique_ptr<weld::TreeView> xTreeView, SwNavigationPI* pDialog);
361
362 bool get_visible() const { return m_xTreeView->get_visible(); }
363
364 void set_accessible_name(const OUString& rName)
365 {
366 m_xTreeView->set_accessible_name(rName);
367 }
368
370 {
371 m_xTreeView->grab_focus();
372 }
373
375 {
376 m_xTreeView->set_selection_mode(eMode);
377 }
378
380 {
381 return *m_xTreeView;
382 }
383
384 void MoveSelectionTo(const weld::TreeIter* pDropTarget);
385
386 void TbxMenuHdl(std::string_view rCommand, weld::Menu& rMenu);
387 void InsertRegion( const SwGlblDocContent* pCont,
388 const OUString* pFileName = nullptr );
389 void EditContent(const SwGlblDocContent* pCont );
390
391 void ShowTree();
392 void HideTree();
393
394 void ExecCommand(std::string_view rCmd);
395
396 void Display(bool bOnlyUpdateUserData = false);
397
398 bool Update(bool bHard);
399
400 void ExecuteContextMenuAction(std::string_view rSelectedPopupEntry);
401
403
404 virtual void Notify(SfxBroadcaster& rBC, SfxHint const& rHint) override;
405 void UpdateTracking();
406};
407
408#endif
409
410/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SwContentTreeDropTarget(SwContentTree &rTreeView)
Definition: content.cxx:1232
SwContentTree & m_rTreeView
Definition: conttree.hxx:80
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: content.cxx:1238
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: content.cxx:1285
TreeListBox for content indicator.
Definition: conttree.hxx:91
sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt)
Definition: content.cxx:1258
SwWrtShell * GetHiddenWrtShell()
Definition: conttree.hxx:258
void Select()
Definition: content.cxx:4945
bool IsDropFormatSupported(SotClipboardFormatId nFormat)
Definition: conttree.hxx:274
void BringTypesWithFlowFramesToAttention(const std::vector< const SwNode * > &rNodes)
Definition: content.cxx:5904
SwOutlineNodes::size_type m_nLastGotoContentWasOutlinePos
Definition: conttree.hxx:120
void set_accessible_name(const OUString &rName)
Definition: conttree.hxx:279
void SetOutlineTracking(sal_uInt8 nSet)
Definition: content.cxx:4895
void BringURLFieldsToAttention(const SwGetINetAttrs &rINetAttrsArr)
Definition: content.cxx:5930
bool IsActiveView() const
Definition: conttree.hxx:254
void BringTextFieldsToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
Definition: content.cxx:6043
std::map< void *, bool > mOutLineNodeMap
Definition: conttree.hxx:108
void ExecuteContextMenuAction(const OString &rSelectedPopupEntry)
Definition: content.cxx:4556
bool m_bIgnoreDocChange
Definition: conttree.hxx:134
void GotoContent(const SwContent *pCnt)
Definition: content.cxx:5339
void ShowActualView()
Definition: content.cxx:4918
DECL_LINK(CollapseHdl, const weld::TreeIter &, bool)
Collapse - Remember the state for content types.
weld::TreeView & get_widget()
Definition: conttree.hxx:294
void ShowHiddenShell()
Definition: content.cxx:4908
void SelectContentType(std::u16string_view rContentTypeName)
Definition: content.cxx:5496
size_t GetEntryCount() const
Definition: content.cxx:2440
SwNavigationPI * GetParentWindow()
Definition: content.cxx:5491
std::unique_ptr< weld::TreeIter > GetEntryAtAbsPos(size_t nAbsPos) const
Definition: content.cxx:2468
void UpdateLastSelType()
Definition: content.cxx:3059
OUString m_sInvisible
Definition: conttree.hxx:102
void BringFootnotesToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
Definition: content.cxx:6005
void insert(const weld::TreeIter *pParent, const OUString &rStr, const OUString &rId, bool bChildrenOnDemand, weld::TreeIter *pRet)
Definition: content.cxx:2094
void FindActiveTypeAndRemoveUserData()
Before any data will be deleted, the last active entry has to be found.
Definition: content.cxx:3075
bool IsInDrag() const
Definition: content.cxx:1252
void ToggleToRoot()
Switch the display to Root.
Definition: content.cxx:2805
void remove(const weld::TreeIter &rIter)
Definition: content.cxx:2101
void BringFramesToAttention(const std::vector< const SwFrameFormat * > &rFrameFormats)
Definition: content.cxx:5851
void SelectOutlinesWithSelection()
Definition: content.cxx:4135
DECL_LINK(QueryTooltipHdl, const weld::TreeIter &, OUString)
void set_selection_mode(SelectionMode eMode)
Definition: conttree.hxx:289
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aHiddenContentArr
Definition: conttree.hxx:100
std::unique_ptr< sdr::overlay::OverlayObject > m_xOverlayObject
Definition: conttree.hxx:137
sal_uInt8 GetOutlineLevel() const
Definition: conttree.hxx:241
AutoTimer m_aOverlayObjectDelayTimer
Definition: conttree.hxx:97
bool m_bIsLastReadOnly
Definition: conttree.hxx:126
std::vector< std::unique_ptr< weld::TreeIter > > m_aDndOutlinesSelected
Definition: conttree.hxx:131
bool m_bIsOutlineMoveable
Definition: conttree.hxx:127
sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt)
Definition: content.cxx:1290
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:3143
bool RequestingChildren(const weld::TreeIter &rParent)
Definition: content.cxx:2114
size_t GetAbsPos(const weld::TreeIter &rIter)
Definition: content.cxx:2435
void MoveOutline(SwOutlineNodes::size_type nTargetPos)
Definition: content.cxx:4189
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
Definition: content.cxx:3157
void Display(bool bActiveView)
Show the file.
Definition: content.cxx:2483
std::unique_ptr< weld::TreeIter > m_xOverlayCompareEntry
Definition: conttree.hxx:136
void SetContentTypeTracking(ContentTypeId eCntTypeId, bool bSet)
Definition: content.cxx:4901
bool FillTransferData(TransferDataContainer &rTransfer, sal_Int8 &rDragMode)
Definition: content.cxx:2666
ContentTypeId m_nLastSelType
Definition: conttree.hxx:114
void SetHiddenShell(SwWrtShell *pSh)
After a file is dropped on the Navigator, the new shell will be set.
Definition: content.cxx:3087
const SwWrtShell * GetActiveWrtShell() const
Definition: conttree.hxx:257
void Expand(const weld::TreeIter &rParent, std::vector< std::unique_ptr< weld::TreeIter > > *pNodesToExpand)
Definition: content.cxx:2209
void EditEntry(const weld::TreeIter &rEntry, EditEntryMode nMode)
Definition: content.cxx:4998
sal_Int32 m_nHiddenBlock
Definition: conttree.hxx:111
size_t m_nEntryCount
Definition: conttree.hxx:112
OUString m_aContextStrings[CONTEXT_COUNT+1]
Definition: conttree.hxx:101
sal_Int32 m_nActiveBlock
Definition: conttree.hxx:110
OUString m_sSpace
Definition: conttree.hxx:95
void OverlayObject(std::vector< basegfx::B2DRange > &&aRanges={})
Definition: content.cxx:5529
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aActiveContentArr
Definition: conttree.hxx:99
void BringEntryToAttention(const weld::TreeIter &rEntry)
Definition: content.cxx:5545
enum SwContentTree::State m_eState
bool HasContentChanged()
Check if the displayed content is valid.
Definition: content.cxx:2857
SwWrtShell * m_pHiddenShell
Definition: conttree.hxx:104
void BringPostItFieldsToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
Definition: content.cxx:5971
bool IsHiddenView() const
Definition: conttree.hxx:255
bool m_bIsIdleClear
Definition: conttree.hxx:125
void grab_focus()
Definition: conttree.hxx:284
ContentTypeId m_nRootType
Definition: conttree.hxx:113
SwNavigationConfig * m_pConfig
Definition: conttree.hxx:106
DECL_LINK(DragBeginHdl, bool &, bool)
sal_uInt8 m_nOutlineLevel
Definition: conttree.hxx:115
DECL_LINK(SelectHdl, weld::TreeView &, void)
void clear()
In the clear the content types have to be deleted, also.
Definition: content.cxx:2658
SwWrtShell * GetWrtShell()
Definition: conttree.hxx:236
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void DeleteOutlineSelections()
Definition: content.cxx:4840
void SetActiveShell(SwWrtShell *pSh)
Document change - set new Shell.
Definition: content.cxx:3101
DECL_LINK(CommandHdl, const CommandEvent &, bool)
void UpdateTracking()
Definition: content.cxx:3796
size_t GetChildCount(const weld::TreeIter &rParent) const
Definition: content.cxx:2445
o3tl::enumarray< ContentTypeId, bool > mTrackContentType
Definition: conttree.hxx:118
DECL_LINK(TimerUpdate, Timer *, void)
void BringReferencesToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
Definition: content.cxx:5948
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:105
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:4878
void ExecCommand(std::string_view rCmd, bool bModifier)
Execute commands of the Navigator.
Definition: content.cxx:3221
void BringDrawingObjectsToAttention(std::vector< const SdrObject * > &rDrawingObjectsArr)
Definition: content.cxx:6028
std::unique_ptr< weld::TreeView > m_xTreeView
Definition: conttree.hxx:92
void CopyOutlineSelections()
Definition: content.cxx:5313
void SetRootType(ContentTypeId nType)
Definition: content.cxx:4978
SwNavigationPI * m_pDialog
Definition: conttree.hxx:94
SdrObject * GetDrawingObjectsByContent(const SwContent *pCnt)
Definition: content.cxx:2177
void InsertContent(const weld::TreeIter &rParent)
Definition: content.cxx:2066
bool m_bViewHasChanged
Definition: conttree.hxx:128
void ShowTree()
Definition: content.cxx:3574
bool IsConstantView() const
Definition: conttree.hxx:253
void HideTree()
Definition: content.cxx:3580
SwContentTreeDropTarget m_aDropTargetHelper
Definition: conttree.hxx:93
DECL_LINK(FocusInHdl, weld::Widget &, void)
void BringBookmarksToAttention(const std::vector< OUString > &rNames)
Definition: content.cxx:5866
DECL_LINK(ExpandHdl, const weld::TreeIter &, bool)
Expand - Remember the state for content types.
sal_uInt8 m_nOutlineTracking
Definition: conttree.hxx:117
bool m_bDocHasChanged
Definition: conttree.hxx:133
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:308
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
Definition: glbltree.cxx:169
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
Definition: glbltree.cxx:235
std::unique_ptr< weld::TreeView > m_xTreeView
Definition: conttree.hxx:320
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
std::unique_ptr< SwGlblDocContents > m_pSwGlblDocContents
Definition: conttree.hxx:327
void grab_focus()
Definition: conttree.hxx:369
void Select()
Definition: glbltree.cxx:374
DECL_LINK(CommandHdl, const CommandEvent &, bool)
void set_accessible_name(const OUString &rName)
Definition: conttree.hxx:364
void EditContent(const SwGlblDocContent *pCont)
Definition: glbltree.cxx:534
SwNavigationPI * GetParentWindow()
Definition: glbltree.cxx:994
bool get_visible() const
Definition: conttree.hxx:362
void set_selection_mode(SelectionMode eMode)
Definition: conttree.hxx:374
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
Definition: glbltree.cxx:1120
AutoTimer m_aUpdateTimer
Definition: conttree.hxx:323
SwNavigationPI * m_pDialog
Definition: conttree.hxx:322
void ExecuteContextMenuAction(std::string_view rSelectedPopupEntry)
Definition: glbltree.cxx:568
DECL_LINK(QueryTooltipHdl, const weld::TreeIter &, OUString)
static const SfxObjectShell * s_pShowShell
Definition: conttree.hxx:332
void TbxMenuHdl(std::string_view rCommand, weld::Menu &rMenu)
Definition: glbltree.cxx:299
MenuEnableFlags GetEnableFlags() const
Definition: glbltree.cxx:315
OUString m_aContextStrings[GLOBAL_CONTEXT_COUNT]
Definition: conttree.hxx:324
void ShowTree()
Definition: glbltree.cxx:826
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:321
void MoveSelectionTo(const weld::TreeIter *pDropTarget)
Definition: glbltree.cxx:392
void UpdateTracking()
Definition: glbltree.cxx:786
DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void *, void)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void Display(bool bOnlyUpdateUserData=false)
Definition: glbltree.cxx:429
const SwWrtShell * GetActiveWrtShell() const
Definition: conttree.hxx:402
weld::TreeView & get_widget()
Definition: conttree.hxx:379
void GotoContent(const SwGlblDocContent *)
Definition: glbltree.cxx:804
DECL_LINK(Timeout, Timer *, void)
bool Update(bool bHard)
Definition: glbltree.cxx:876
SwGlobalTree(std::unique_ptr< weld::TreeView > xTreeView, SwNavigationPI *pDialog)
Definition: glbltree.cxx:129
void ExecCommand(std::string_view rCmd)
Definition: glbltree.cxx:839
DECL_LINK(SelectHdl, weld::TreeView &, void)
void HideTree()
Definition: glbltree.cxx:833
static void SetShowShell(const SfxObjectShell *pSet)
Definition: conttree.hxx:355
std::unique_ptr< SwGlblDocContent > m_pDocContent
Definition: conttree.hxx:329
std::unique_ptr< sfx2::DocumentInserter > m_pDocInserter
Definition: conttree.hxx:330
void OpenDoc(const SwGlblDocContent *)
Definition: glbltree.cxx:949
SwWrtShell * m_pActiveShell
Definition: conttree.hxx:326
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:127
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