19#ifndef INCLUDED_SW_SOURCE_UIBASE_INC_CONTTREE_HXX
20#define INCLUDED_SW_SOURCE_UIBASE_INC_CONTTREE_HXX
143 void OverlayObject(std::vector<basegfx::B2DRange>&& aRanges = {});
194 void Expand(
const weld::TreeIter& rParent, std::vector<std::unique_ptr<weld::TreeIter>>* pNodesToExpand);
227 void Display(
bool bActiveView );
254 void ExecCommand(std::u16string_view rCmd,
bool bModifier);
306namespace sfx2 {
class DocumentInserter; }
307namespace sfx2 {
class FileDialogHelper; }
341 const css::uno::Sequence< OUString >& _rFiles );
394 const OUString* pFileName =
nullptr );
402 void Display(
bool bOnlyUpdateUserData =
false);
SwContentTreeDropTarget(SwContentTree &rTreeView)
SwContentTree & m_rTreeView
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
TreeListBox for content indicator.
sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt)
SwWrtShell * GetHiddenWrtShell()
bool IsDropFormatSupported(SotClipboardFormatId nFormat)
void BringTypesWithFlowFramesToAttention(const std::vector< const SwNode * > &rNodes)
SwOutlineNodes::size_type m_nLastGotoContentWasOutlinePos
void set_accessible_name(const OUString &rName)
void SetOutlineTracking(sal_uInt8 nSet)
void BringURLFieldsToAttention(const SwGetINetAttrs &rINetAttrsArr)
bool IsActiveView() const
void BringTextFieldsToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
std::map< void *, bool > mOutLineNodeMap
void GotoContent(const SwContent *pCnt)
DECL_LINK(CollapseHdl, const weld::TreeIter &, bool)
Collapse - Remember the state for content types.
weld::TreeView & get_widget()
void SelectContentType(std::u16string_view rContentTypeName)
size_t GetEntryCount() const
SwNavigationPI * GetParentWindow()
void ExecCommand(std::u16string_view rCmd, bool bModifier)
Execute commands of the Navigator.
std::unique_ptr< weld::TreeIter > GetEntryAtAbsPos(size_t nAbsPos) const
void BringFootnotesToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
void insert(const weld::TreeIter *pParent, const OUString &rStr, const OUString &rId, bool bChildrenOnDemand, weld::TreeIter *pRet)
void FindActiveTypeAndRemoveUserData()
Before any data will be deleted, the last active entry has to be found.
void ToggleToRoot()
Switch the display to Root.
void remove(const weld::TreeIter &rIter)
void BringFramesToAttention(const std::vector< const SwFrameFormat * > &rFrameFormats)
void SelectOutlinesWithSelection()
DECL_LINK(QueryTooltipHdl, const weld::TreeIter &, OUString)
void set_selection_mode(SelectionMode eMode)
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aHiddenContentArr
std::unique_ptr< sdr::overlay::OverlayObject > m_xOverlayObject
sal_uInt8 GetOutlineLevel() const
AutoTimer m_aOverlayObjectDelayTimer
std::vector< std::unique_ptr< weld::TreeIter > > m_aDndOutlinesSelected
bool m_bIsOutlineMoveable
sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt)
DECL_LINK(MouseMoveHdl, const MouseEvent &, bool)
DECL_LINK(ContentDoubleClickHdl, weld::TreeView &, bool)
void SetConstantShell(SwWrtShell *pSh)
Set an open view as active.
bool RequestingChildren(const weld::TreeIter &rParent)
DECL_LINK(AsyncContentDoubleClickHdl, void *, void)
size_t GetAbsPos(const weld::TreeIter &rIter)
void MoveOutline(SwOutlineNodes::size_type nTargetPos)
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
void Display(bool bActiveView)
Show the file.
std::unique_ptr< weld::TreeIter > m_xOverlayCompareEntry
void SetContentTypeTracking(ContentTypeId eCntTypeId, bool bSet)
bool FillTransferData(TransferDataContainer &rTransfer, sal_Int8 &rDragMode)
ContentTypeId m_nLastSelType
void SetHiddenShell(SwWrtShell *pSh)
After a file is dropped on the Navigator, the new shell will be set.
const SwWrtShell * GetActiveWrtShell() const
void Expand(const weld::TreeIter &rParent, std::vector< std::unique_ptr< weld::TreeIter > > *pNodesToExpand)
void EditEntry(const weld::TreeIter &rEntry, EditEntryMode nMode)
OUString m_aContextStrings[CONTEXT_COUNT+1]
void OverlayObject(std::vector< basegfx::B2DRange > &&aRanges={})
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aActiveContentArr
DECL_LINK(MousePressHdl, const MouseEvent &, bool)
void BringEntryToAttention(const weld::TreeIter &rEntry)
enum SwContentTree::State m_eState
bool HasContentChanged()
Check if the displayed content is valid.
SwWrtShell * m_pHiddenShell
void BringPostItFieldsToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
bool IsHiddenView() const
ContentTypeId m_nRootType
SwNavigationConfig * m_pConfig
DECL_LINK(DragBeginHdl, bool &, bool)
sal_uInt8 m_nOutlineLevel
DECL_LINK(SelectHdl, weld::TreeView &, void)
void clear()
In the clear the content types have to be deleted, also.
SwWrtShell * GetWrtShell()
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void DeleteOutlineSelections()
void SetActiveShell(SwWrtShell *pSh)
Document change - set new Shell.
DECL_LINK(CommandHdl, const CommandEvent &, bool)
size_t GetChildCount(const weld::TreeIter &rParent) const
o3tl::enumarray< ContentTypeId, bool > mTrackContentType
DECL_LINK(TimerUpdate, Timer *, void)
void BringReferencesToAttention(std::vector< const SwTextAttr * > &rTextAttrsArr)
SwWrtShell * m_pActiveShell
SwContentTree(std::unique_ptr< weld::TreeView > xTreeView, SwNavigationPI *pDialog)
DECL_LINK(OverlayObjectDelayTimerHdl, Timer *, void)
void SetOutlineLevel(sal_uInt8 nSet)
void BringDrawingObjectsToAttention(std::vector< const SdrObject * > &rDrawingObjectsArr)
std::unique_ptr< weld::TreeView > m_xTreeView
void CopyOutlineSelections()
void SetRootType(ContentTypeId nType)
SwNavigationPI * m_pDialog
SdrObject * GetDrawingObjectsByContent(const SwContent *pCnt)
ImplSVEvent * m_nRowActivateEventId
void InsertContent(const weld::TreeIter &rParent)
bool IsConstantView() const
SwContentTreeDropTarget m_aDropTargetHelper
DECL_LINK(FocusInHdl, weld::Widget &, void)
void BringBookmarksToAttention(const std::vector< OUString > &rNames)
void ExecuteContextMenuAction(const OUString &rSelectedPopupEntry)
DECL_LINK(ExpandHdl, const weld::TreeIter &, bool)
Expand - Remember the state for content types.
sal_uInt8 m_nOutlineTracking
Content type, knows it's contents and the WrtShell.
SwGlobalTreeDropTarget(SwGlobalTree &rTreeView)
SwGlobalTree & m_rTreeView
virtual sal_Int8 ExecuteDrop(const ExecuteDropEvent &rEvt) override
virtual sal_Int8 AcceptDrop(const AcceptDropEvent &rEvt) override
std::unique_ptr< weld::TreeView > m_xTreeView
DECL_LINK(DoubleClickHdl, weld::TreeView &, bool)
std::optional< SwGlblDocContent > m_oDocContent
std::unique_ptr< SwGlblDocContents > m_pSwGlblDocContents
DECL_LINK(CommandHdl, const CommandEvent &, bool)
void set_accessible_name(const OUString &rName)
void EditContent(const SwGlblDocContent *pCont)
SwNavigationPI * GetParentWindow()
void set_selection_mode(SelectionMode eMode)
virtual void Notify(SfxBroadcaster &rBC, SfxHint const &rHint) override
void ExecuteContextMenuAction(std::u16string_view rSelectedPopupEntry)
SwNavigationPI * m_pDialog
DECL_LINK(QueryTooltipHdl, const weld::TreeIter &, OUString)
static const SfxObjectShell * s_pShowShell
MenuEnableFlags GetEnableFlags() const
void ExecCommand(std::u16string_view rCmd)
OUString m_aContextStrings[GLOBAL_CONTEXT_COUNT]
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
void MoveSelectionTo(const weld::TreeIter *pDropTarget)
DECL_STATIC_LINK(SwGlobalTree, ShowFrameHdl, void *, void)
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)
void Display(bool bOnlyUpdateUserData=false)
const SwWrtShell * GetActiveWrtShell() const
weld::TreeView & get_widget()
void GotoContent(const SwGlblDocContent *)
DECL_LINK(Timeout, Timer *, void)
SwGlobalTree(std::unique_ptr< weld::TreeView > xTreeView, SwNavigationPI *pDialog)
void TbxMenuHdl(std::u16string_view rCommand, weld::Menu &rMenu)
DECL_LINK(SelectHdl, weld::TreeView &, void)
static void SetShowShell(const SfxObjectShell *pSet)
std::unique_ptr< sfx2::DocumentInserter > m_pDocInserter
void OpenDoc(const SwGlblDocContent *)
SwWrtShell * m_pActiveShell
static constexpr auto npos
Used by the UI to modify the document model.
std::vector< Value >::size_type size_type
std::vector< SwGetINetAttr > SwGetINetAttrs
#define GLOBAL_CONTEXT_COUNT