LibreOffice Module sw (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
SwContentTree Class Referencefinal

TreeListBox for content indicator. More...

#include <conttree.hxx>

Inheritance diagram for SwContentTree:
[legend]
Collaboration diagram for SwContentTree:
[legend]

Public Member Functions

 SwContentTree (std::unique_ptr< weld::TreeView > xTreeView, SwNavigationPI *pDialog)
 
 ~SwContentTree ()
 
SdrObjectGetDrawingObjectsByContent (const SwContent *pCnt)
 
void ToggleToRoot ()
 Switch the display to Root. More...
 
void SetRootType (ContentTypeId nType)
 
void Display (bool bActiveView)
 Show the file. More...
 
void clear ()
 In the clear the content types have to be deleted, also. More...
 
void SetHiddenShell (SwWrtShell *pSh)
 After a file is dropped on the Navigator, the new shell will be set. More...
 
void ShowHiddenShell ()
 
void ShowActualView ()
 
void SetActiveShell (SwWrtShell *pSh)
 Document change - set new Shell. More...
 
void SetConstantShell (SwWrtShell *pSh)
 Set an open view as active. More...
 
SwWrtShellGetWrtShell ()
 
bool IsInDrag () const
 
sal_uInt8 GetOutlineLevel () const
 
void SetOutlineLevel (sal_uInt8 nSet)
 
void SetOutlineTracking (sal_uInt8 nSet)
 
void SetContentTypeTracking (ContentTypeId eCntTypeId, bool bSet)
 
void ExecCommand (std::u16string_view rCmd, bool bModifier)
 Execute commands of the Navigator. More...
 
void ShowTree ()
 
void HideTree ()
 
bool IsConstantView () const
 
bool IsActiveView () const
 
bool IsHiddenView () const
 
const SwWrtShellGetActiveWrtShell () const
 
SwWrtShellGetHiddenWrtShell ()
 
void Select ()
 
void UpdateTracking ()
 
void SelectOutlinesWithSelection ()
 
void SelectContentType (std::u16string_view rContentTypeName)
 
bool RequestingChildren (const weld::TreeIter &rParent)
 
virtual void Notify (SfxBroadcaster &rBC, SfxHint const &rHint) override
 
sal_Int8 AcceptDrop (const AcceptDropEvent &rEvt)
 
sal_Int8 ExecuteDrop (const ExecuteDropEvent &rEvt)
 
bool IsDropFormatSupported (SotClipboardFormatId nFormat)
 
void set_accessible_name (const OUString &rName)
 
void grab_focus ()
 
void set_selection_mode (SelectionMode eMode)
 
weld::TreeViewget_widget ()
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Private Types

enum class  State {
  ACTIVE ,
  CONSTANT ,
  HIDDEN
}
 

Private Member Functions

void OverlayObject (std::vector< basegfx::B2DRange > &&aRanges={})
 
void BringEntryToAttention (const weld::TreeIter &rEntry)
 
void BringFramesToAttention (const std::vector< const SwFrameFormat * > &rFrameFormats)
 
void BringBookmarksToAttention (const std::vector< OUString > &rNames)
 
void BringURLFieldsToAttention (const SwGetINetAttrs &rINetAttrsArr)
 
void BringReferencesToAttention (std::vector< const SwTextAttr * > &rTextAttrsArr)
 
void BringPostItFieldsToAttention (std::vector< const SwTextAttr * > &rTextAttrsArr)
 
void BringDrawingObjectsToAttention (std::vector< const SdrObject * > &rDrawingObjectsArr)
 
void BringTextFieldsToAttention (std::vector< const SwTextAttr * > &rTextAttrsArr)
 
void BringFootnotesToAttention (std::vector< const SwTextAttr * > &rTextAttrsArr)
 
void BringTypesWithFlowFramesToAttention (const std::vector< const SwNode * > &rNodes)
 
void FindActiveTypeAndRemoveUserData ()
 Before any data will be deleted, the last active entry has to be found. More...
 
void InsertContent (const weld::TreeIter &rParent)
 
void insert (const weld::TreeIter *pParent, const OUString &rStr, const OUString &rId, bool bChildrenOnDemand, weld::TreeIter *pRet)
 
void remove (const weld::TreeIter &rIter)
 
SwNavigationPIGetParentWindow ()
 
bool FillTransferData (TransferDataContainer &rTransfer, sal_Int8 &rDragMode)
 
bool HasContentChanged ()
 Check if the displayed content is valid. More...
 
size_t GetAbsPos (const weld::TreeIter &rIter)
 
void EditEntry (const weld::TreeIter &rEntry, EditEntryMode nMode)
 
void GotoContent (const SwContent *pCnt)
 
void ExecuteContextMenuAction (const OUString &rSelectedPopupEntry)
 
void DeleteOutlineSelections ()
 
void CopyOutlineSelections ()
 
size_t GetEntryCount () const
 
size_t GetChildCount (const weld::TreeIter &rParent) const
 
std::unique_ptr< weld::TreeIterGetEntryAtAbsPos (size_t nAbsPos) const
 
void Expand (const weld::TreeIter &rParent, std::vector< std::unique_ptr< weld::TreeIter > > *pNodesToExpand)
 
void MoveOutline (SwOutlineNodes::size_type nTargetPos)
 
void UpdateLastSelType ()
 
 DECL_LINK (ExpandHdl, const weld::TreeIter &, bool)
 Expand - Remember the state for content types. More...
 
 DECL_LINK (CollapseHdl, const weld::TreeIter &, bool)
 Collapse - Remember the state for content types. More...
 
 DECL_LINK (ContentDoubleClickHdl, weld::TreeView &, bool)
 
 DECL_LINK (AsyncContentDoubleClickHdl, void *, void)
 
 DECL_LINK (SelectHdl, weld::TreeView &, void)
 
 DECL_LINK (FocusInHdl, weld::Widget &, void)
 
 DECL_LINK (KeyInputHdl, const KeyEvent &, bool)
 
 DECL_LINK (CommandHdl, const CommandEvent &, bool)
 
 DECL_LINK (QueryTooltipHdl, const weld::TreeIter &, OUString)
 
 DECL_LINK (DragBeginHdl, bool &, bool)
 
 DECL_LINK (TimerUpdate, Timer *, void)
 
 DECL_LINK (OverlayObjectDelayTimerHdl, Timer *, void)
 
 DECL_LINK (MouseMoveHdl, const MouseEvent &, bool)
 
 DECL_LINK (MousePressHdl, const MouseEvent &, bool)
 

Private Attributes

std::unique_ptr< weld::TreeViewm_xTreeView
 
SwContentTreeDropTarget m_aDropTargetHelper
 
SwNavigationPIm_pDialog
 
OUString m_sSpace
 
AutoTimer m_aUpdTimer
 
AutoTimer m_aOverlayObjectDelayTimer
 
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aActiveContentArr
 
o3tl::enumarray< ContentTypeId, std::unique_ptr< SwContentType > > m_aHiddenContentArr
 
OUString m_aContextStrings [CONTEXT_COUNT+1]
 
OUString m_sInvisible
 
OUString m_sSelectedItem
 
SwWrtShellm_pHiddenShell
 
SwWrtShellm_pActiveShell
 
SwNavigationConfigm_pConfig
 
std::map< void *, bool > mOutLineNodeMap
 
sal_Int32 m_nActiveBlock
 
sal_Int32 m_nHiddenBlock
 
size_t m_nEntryCount
 
ContentTypeId m_nRootType
 
ContentTypeId m_nLastSelType
 
sal_uInt8 m_nOutlineLevel
 
sal_uInt8 m_nOutlineTracking = 1
 
o3tl::enumarray< ContentTypeId, bool > mTrackContentType
 
SwOutlineNodes::size_type m_nLastGotoContentWasOutlinePos = SwOutlineNodes::npos
 
enum SwContentTree::State m_eState
 
bool m_bIsRoot:1
 
bool m_bIsIdleClear:1
 
bool m_bIsLastReadOnly:1
 
bool m_bIsOutlineMoveable:1
 
bool m_bViewHasChanged:1
 
std::vector< std::unique_ptr< weld::TreeIter > > m_aDndOutlinesSelected
 
bool m_bDocHasChanged = true
 
bool m_bIgnoreDocChange = false
 
ImplSVEventm_nRowActivateEventId = nullptr
 
bool m_bSelectTo = false
 
std::unique_ptr< weld::TreeIterm_xOverlayCompareEntry
 
std::unique_ptr< sdr::overlay::OverlayObjectm_xOverlayObject
 

Detailed Description

TreeListBox for content indicator.

Definition at line 90 of file conttree.hxx.

Member Enumeration Documentation

◆ State

enum class SwContentTree::State
strongprivate
Enumerator
ACTIVE 
CONSTANT 
HIDDEN 

Definition at line 123 of file conttree.hxx.

Constructor & Destructor Documentation

◆ SwContentTree()

SwContentTree::SwContentTree ( std::unique_ptr< weld::TreeView xTreeView,
SwNavigationPI pDialog 
)

◆ ~SwContentTree()

SwContentTree::~SwContentTree ( )

Member Function Documentation

◆ AcceptDrop()

sal_Int8 SwContentTree::AcceptDrop ( const AcceptDropEvent rEvt)

◆ BringBookmarksToAttention()

void SwContentTree::BringBookmarksToAttention ( const std::vector< OUString > &  rNames)
private

◆ BringDrawingObjectsToAttention()

void SwContentTree::BringDrawingObjectsToAttention ( std::vector< const SdrObject * > &  rDrawingObjectsArr)
private

◆ BringEntryToAttention()

void SwContentTree::BringEntryToAttention ( const weld::TreeIter rEntry)
private

Definition at line 5627 of file content.cxx.

References o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::begin(), BOOKMARK, BringBookmarksToAttention(), BringDrawingObjectsToAttention(), BringFootnotesToAttention(), BringFramesToAttention(), BringPostItFieldsToAttention(), BringReferencesToAttention(), BringTextFieldsToAttention(), BringTypesWithFlowFramesToAttention(), BringURLFieldsToAttention(), DRAWOBJECT, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), ENDNOTE, eType, SwDoc::FindFlyByName(), SwFormatsModifyBase< Value >::FindFormatByName(), SwTable::FindTable(), FLYCNTTYPE_FRM, FLYCNTTYPE_GRF, FLYCNTTYPE_OLE, FOOTNOTE, FRAME, SwViewShell::GetAttrPool(), SwViewShell::GetDoc(), GetDrawingObjectsByContent(), IDocumentDrawModelAccess::GetDrawModel(), SwFEShell::GetFlyFrameFormats(), SwTextFieldContent::GetFormatField(), SwViewShell::getIDocumentDrawModelAccess(), SwURLFieldContent::GetINetAttr(), SwEditShell::GetINetAttrs(), SfxItemPool::GetItemSurrogates(), SwContentType::GetMember(), SwContentType::GetMemberCount(), SwContent::GetName(), SwNode::GetNodes(), SwViewShell::GetNodes(), SwNodes::GetOutLineNds(), SwContent::GetParent(), SwPostItContent::GetPostIt(), SwDoc::GetRefMark(), SwSectionFormat::GetSection(), SwSectionFormat::GetSectionNode(), SwDoc::GetSections(), SwEditShell::GetTableFrameFormatCount(), SwDoc::GetTableFrameFormats(), SwTable::GetTableNode(), SwTextFootnoteContent::GetTextFootnote(), SwTextRefMark::GetTextNode(), SwFormatRefMark::GetTextRefMark(), SwSection::GetType(), SwContentType::GetType(), GRAPHIC, Grf, i, INDEX, SwSection::IsHiddenFlag(), SwSectionFormat::IsInNodesArr(), SwContent::IsInvisible(), IDocumentDrawModelAccess::IsVisibleLayerId(), m_pActiveShell, m_xTreeView, n, nCount, nType, Ole, OLE, OUTLINE, OverlayObject(), pObject, POSTIT, REFERENCE, REGION, RES_TXTATR_REFMARK(), SwVectorModifyBase< Value >::size(), TABLE, Text, TEXTFIELD, ToxContent, ToxHeader, and URLFIELD.

◆ BringFootnotesToAttention()

void SwContentTree::BringFootnotesToAttention ( std::vector< const SwTextAttr * > &  rTextAttrsArr)
private

◆ BringFramesToAttention()

void SwContentTree::BringFramesToAttention ( const std::vector< const SwFrameFormat * > &  rFrameFormats)
private

◆ BringPostItFieldsToAttention()

void SwContentTree::BringPostItFieldsToAttention ( std::vector< const SwTextAttr * > &  rTextAttrsArr)
private

◆ BringReferencesToAttention()

void SwContentTree::BringReferencesToAttention ( std::vector< const SwTextAttr * > &  rTextAttrsArr)
private

◆ BringTextFieldsToAttention()

void SwContentTree::BringTextFieldsToAttention ( std::vector< const SwTextAttr * > &  rTextAttrsArr)
private

◆ BringTypesWithFlowFramesToAttention()

void SwContentTree::BringTypesWithFlowFramesToAttention ( const std::vector< const SwNode * > &  rNodes)
private

◆ BringURLFieldsToAttention()

void SwContentTree::BringURLFieldsToAttention ( const SwGetINetAttrs rINetAttrsArr)
private

◆ clear()

void SwContentTree::clear ( )

In the clear the content types have to be deleted, also.

Definition at line 2691 of file content.cxx.

References m_nEntryCount, and m_xTreeView.

Referenced by Display(), SetActiveShell(), and ~SwContentTree().

◆ CopyOutlineSelections()

void SwContentTree::CopyOutlineSelections ( )
private

◆ DECL_LINK() [1/14]

SwContentTree::DECL_LINK ( AsyncContentDoubleClickHdl  ,
void *  ,
void   
)
private

◆ DECL_LINK() [2/14]

SwContentTree::DECL_LINK ( CollapseHdl  ,
const weld::TreeIter ,
bool   
)
private

Collapse - Remember the state for content types.

◆ DECL_LINK() [3/14]

SwContentTree::DECL_LINK ( CommandHdl  ,
const CommandEvent ,
bool   
)
private

◆ DECL_LINK() [4/14]

SwContentTree::DECL_LINK ( ContentDoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [5/14]

SwContentTree::DECL_LINK ( DragBeginHdl  ,
bool &  ,
bool   
)
private

◆ DECL_LINK() [6/14]

SwContentTree::DECL_LINK ( ExpandHdl  ,
const weld::TreeIter ,
bool   
)
private

Expand - Remember the state for content types.

◆ DECL_LINK() [7/14]

SwContentTree::DECL_LINK ( FocusInHdl  ,
weld::Widget ,
void   
)
private

◆ DECL_LINK() [8/14]

SwContentTree::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private

◆ DECL_LINK() [9/14]

SwContentTree::DECL_LINK ( MouseMoveHdl  ,
const MouseEvent ,
bool   
)
private

◆ DECL_LINK() [10/14]

SwContentTree::DECL_LINK ( MousePressHdl  ,
const MouseEvent ,
bool   
)
private

◆ DECL_LINK() [11/14]

SwContentTree::DECL_LINK ( OverlayObjectDelayTimerHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [12/14]

SwContentTree::DECL_LINK ( QueryTooltipHdl  ,
const weld::TreeIter ,
OUString   
)
private

◆ DECL_LINK() [13/14]

SwContentTree::DECL_LINK ( SelectHdl  ,
weld::TreeView ,
void   
)
private

◆ DECL_LINK() [14/14]

SwContentTree::DECL_LINK ( TimerUpdate  ,
Timer ,
void   
)
private

◆ DeleteOutlineSelections()

void SwContentTree::DeleteOutlineSelections ( )
private

◆ Display()

void SwContentTree::Display ( bool  bActiveView)

◆ EditEntry()

void SwContentTree::EditEntry ( const weld::TreeIter rEntry,
EditEntryMode  nMode 
)
private

Definition at line 4989 of file content.cxx.

References SwRewriter::AddRule(), Any, SwRewriter::Apply(), args, SwPostItMgr::AssureStdModeAtShell(), BOOKMARK, SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateSwRenameXNamedDlg(), DELETE, SwDoc::DeleteFormatRefMark(), IDocumentMarkAccess::deleteMark(), DeleteOutlineSelections(), SwFEShell::DeleteRow(), SwTextField::DeleteTextField(), SwEditShell::DeleteTOX(), SwWrtShell::DelRight(), DRAWOBJECT, EDIT, SwCursorShell::EndAction(), ENDNOTE, SwEditShell::EndUndo(), SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), IDocumentMarkAccess::findMark(), FN_EDIT_BOOKMARK, FN_EDIT_FIELD, FN_EDIT_REGION, FN_FORMAT_FOOTNOTE_DLG, FN_FORMAT_FRAME_DLG, FN_FORMAT_GRAFIC_DLG, FN_FORMAT_TABLE_DLG, FN_INSERT_MULTI_TOX, FN_NAME_SHAPE, FN_POSTIT, FN_TABLE_SELECT_ALL, FOOTNOTE, FRAME, IDocumentSettingAccess::get(), SwDoc::GetAttrPool(), SfxObjectShell::GetBaseModel(), GetDispatcher(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDoc(), SwView::GetDocShell(), SwTextFieldContent::GetFormatField(), SwViewShell::getIDocumentMarkAccess(), SwViewShell::getIDocumentSettingAccess(), SfxItemPool::GetItemSurrogates(), SwContent::GetName(), SwNode::GetNodes(), SwViewShell::GetNodes(), SwContent::GetParent(), SwView::GetPostItMgr(), SwFormatField::GetTextField(), SwTextRefMark::GetTextNode(), SwTOXBase::GetTOXName(), SwContentType::GetType(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwViewShell::GetWin(), GotoContent(), grab_focus(), GRAPHIC, INDEX, KEY_RETURN, vcl::Window::KeyInput(), m_aUpdTimer, m_bIgnoreDocChange, m_bViewHasChanged, m_pActiveShell, m_xTreeView, name, nPos, nType, OLE, OUTLINE, POSTIT, PROTECT_BOOKMARKS, REFERENCE, REGION, RENAME, RES_TXTATR_REFMARK(), RMV_IDX, SwCursorShell::StartAction(), SwEditShell::StartUndo(), SwResId(), TABLE, TEXTFIELD, UndoArg1, UndoArg2, UndoArg3, UNPROTECT_TABLE, UPD_IDX, URLFIELD, and xModel.

Referenced by ExecuteContextMenuAction().

◆ ExecCommand()

void SwContentTree::ExecCommand ( std::u16string_view  rCmd,
bool  bModifier 
)

◆ ExecuteContextMenuAction()

void SwContentTree::ExecuteContextMenuAction ( const OUString &  rSelectedPopupEntry)
private

Definition at line 4547 of file content.cxx.

References ACTIVE, BOOKMARK, SwCursorShell::ClearMark(), CopyOutlineSelections(), SwPostItMgr::Delete(), DELETE, Display(), DRAWOBJECT, EDIT, EditEntry(), ENDNOTE, SwWrtShell::EndSelect(), SwWrtShell::EnterAddMode(), SwWrtShell::EnterStdMode(), ExecCommand(), SfxDispatcher::Execute(), SwContentType::FillMemberList(), FN_OUTLINE_TO_CLIPBOARD, FN_TABLE_SELECT_ALL, fnRegionEnd, fnRegionStart, FOOTNOTE, FRAME, SwWrtShell::GetAttrOutlineContentVisible(), SwCursorShell::GetCurrentShellCursor(), SfxViewFrame::GetDispatcher(), SwViewShell::GetDoc(), SwDoc::GetDocShell(), SwModule::GetFirstView(), SwViewShell::getIDocumentOutlineNodesAccess(), SwContent::GetName(), SwModule::GetNextView(), SwDoc::GetNodes(), IDocumentOutlineNodes::getOutlineLevel(), SwNodes::GetOutLineNds(), IDocumentOutlineNodes::getOutlineNodesCount(), SwOutlineContent::GetOutlinePos(), SwContent::GetParent(), GetParentWindow(), SwView::GetPostItMgr(), SwContentType::GetSortType(), SwNode::GetTextNode(), SwContentType::GetType(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwView::GetWrtShell(), GotoContent(), GotoCurrRegionAndSkip(), SwWrtShell::GotoOutline(), SwWrtShell::GotoPage(), SwWrtShell::GotoRegion(), SwWrtShell::GotoTable(), grab_focus(), GRAPHIC, HIDDEN, SwPostItMgr::Hide(), INDEX, SwWrtShell::InvalidateOutlineContentVisibility(), SwWrtShell::IsOutlineContentVisible(), SwCursorShell::IsReadOnlyAvailable(), SwEditShell::IsTOXBaseReadonly(), SwCursorShell::KillPams(), SwWrtShell::LeaveAddMode(), m_bIgnoreDocChange, m_bViewHasChanged, m_eState, m_nOutlineLevel, m_nOutlineTracking, m_pActiveShell, m_xTreeView, SwCursorShell::MakeOutlineSel(), mTrackContentType, nPos, SwOutlineNodes::npos, OLE, OUTLINE, POSTIT, REFERENCE, REGION, RENAME, RMV_IDX, SwPostItMgr::SetActiveSidebarWin(), SwTextNode::SetAttrOutlineContentVisible(), SetConstantShell(), SetContentTypeTracking(), SwEditShell::SetModified(), SetOutlineLevel(), SetOutlineTracking(), SwNavigationPI::SetRegionDropMode(), SwContentType::SetSortType(), SwEditShell::SetTOXBaseReadonly(), SwPostItMgr::Show(), SwWrtShell::SttSelect(), TABLE, TEXTFIELD, u, UNPROTECT_TABLE, UPD_IDX, SwCursorShell::UpdateCursor(), SwNavigationPI::UpdateListBox(), and URLFIELD.

◆ ExecuteDrop()

sal_Int8 SwContentTree::ExecuteDrop ( const ExecuteDropEvent rEvt)

◆ Expand()

void SwContentTree::Expand ( const weld::TreeIter rParent,
std::vector< std::unique_ptr< weld::TreeIter > > *  pNodesToExpand 
)
private

◆ FillTransferData()

bool SwContentTree::FillTransferData ( TransferDataContainer rTransfer,
sal_Int8 rDragMode 
)
private

◆ FindActiveTypeAndRemoveUserData()

void SwContentTree::FindActiveTypeAndRemoveUserData ( )
private

Before any data will be deleted, the last active entry has to be found.

After this the UserData will be deleted

Definition at line 3110 of file content.cxx.

References m_xTreeView, and UpdateLastSelType().

Referenced by SetActiveShell(), SetConstantShell(), and SetHiddenShell().

◆ get_widget()

weld::TreeView & SwContentTree::get_widget ( )
inline

Definition at line 300 of file conttree.hxx.

References m_xTreeView.

Referenced by SwContentTreeDropTarget::AcceptDrop().

◆ GetAbsPos()

size_t SwContentTree::GetAbsPos ( const weld::TreeIter rIter)
private

Definition at line 2468 of file content.cxx.

References weld::GetAbsPos(), and m_xTreeView.

Referenced by Display().

◆ GetActiveWrtShell()

const SwWrtShell * SwContentTree::GetActiveWrtShell ( ) const
inline

Definition at line 263 of file conttree.hxx.

References m_pActiveShell.

Referenced by lcl_SetOutlineContentEntriesSensitivities().

◆ GetChildCount()

size_t SwContentTree::GetChildCount ( const weld::TreeIter rParent) const
private

Definition at line 2478 of file content.cxx.

References m_xTreeView, and nCount.

Referenced by HasContentChanged().

◆ GetDrawingObjectsByContent()

SdrObject * SwContentTree::GetDrawingObjectsByContent ( const SwContent pCnt)

◆ GetEntryAtAbsPos()

std::unique_ptr< weld::TreeIter > SwContentTree::GetEntryAtAbsPos ( size_t  nAbsPos) const
private

Definition at line 2501 of file content.cxx.

References m_xTreeView.

◆ GetEntryCount()

size_t SwContentTree::GetEntryCount ( ) const
private

Definition at line 2473 of file content.cxx.

References m_nEntryCount.

Referenced by Display().

◆ GetHiddenWrtShell()

SwWrtShell * SwContentTree::GetHiddenWrtShell ( )
inline

Definition at line 264 of file conttree.hxx.

References m_pHiddenShell.

◆ GetOutlineLevel()

sal_uInt8 SwContentTree::GetOutlineLevel ( ) const
inline

Definition at line 247 of file conttree.hxx.

References m_nOutlineLevel.

Referenced by RequestingChildren().

◆ GetParentWindow()

SwNavigationPI * SwContentTree::GetParentWindow ( )
private

◆ GetWrtShell()

SwWrtShell * SwContentTree::GetWrtShell ( )
inline

◆ GotoContent()

void SwContentTree::GotoContent ( const SwContent pCnt)
private

Definition at line 5335 of file content.cxx.

References BOOKMARK, Chars, DRAWOBJECT, SwCursorShell::EndAction(), SwCursorShell::EndCursorMove(), ENDNOTE, SwWrtShell::EnterSelFrameMode(), fnTableStart, FOOTNOTE, FRAME, SfxObjectShell::GetBaseModel(), SwCursorShell::GetCursor(), SwCursorShell::GetCursorDocPos(), SwViewShell::GetDoc(), SwView::GetDocShell(), SwView::GetEditWin(), SwNodes::GetEndOfExtras(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwURLFieldContent::GetINetAttr(), SwPaM::GetMark(), SwContent::GetName(), SwDoc::GetNodes(), SwContent::GetParent(), SwPaM::GetPoint(), SwView::GetPostItMgr(), SwContentType::GetType(), SwWrtShell::GetView(), SwView::GetVisArea(), tools::Rectangle::getX(), Point::getY(), GotoCurrTable(), SwWrtShell::GotoDrawingObject(), SwWrtShell::GotoFly(), SwWrtShell::GotoFootnoteAnchor(), SwWrtShell::GotoFormatField(), SwWrtShell::GotoINetAttr(), SwWrtShell::GotoMark(), SwWrtShell::GotoNextTOXBase(), SwWrtShell::GotoOutline(), SwCursorShell::GotoPrevTOXBase(), SwWrtShell::GotoRefMark(), SwWrtShell::GotoRegion(), SwWrtShell::GotoTable(), vcl::Window::GrabFocus(), GRAPHIC, SwCursorShell::HideCursor(), INDEX, SwCursorShell::IsCursorInTable(), SwCursorShell::IsCursorVisible(), SwFEShell::IsFrameSelected(), SwFEShell::IsObjSelected(), lcl_AssureStdModeAtShell(), SwWrtShell::Left(), m_bSelectTo, m_nLastGotoContentWasOutlinePos, m_nLastSelType, m_pActiveShell, m_sSelectedItem, SwCursorShell::MoveTable(), SwPosition::nContent, SwPosition::nNode, nPos, SwOutlineNodes::npos, OLE, OUTLINE, POSTIT, REFERENCE, REGION, RES_TXTATR_INETFMT(), SwWrtShell::Right(), SwPostItMgr::SetActiveSidebarWin(), SwCursorShell::SetMark(), SwView::SetVisArea(), sName, SwCursorShell::StartAction(), SwView::StopShellTimer(), SwCursorShell::SttCursorMove(), TABLE, TEXTFIELD, SwCursorShell::UpdateCursor(), URLFIELD, xController, and xModel.

Referenced by EditEntry(), and ExecuteContextMenuAction().

◆ grab_focus()

void SwContentTree::grab_focus ( )
inline

Definition at line 290 of file conttree.hxx.

References m_xTreeView.

Referenced by EditEntry(), and ExecuteContextMenuAction().

◆ HasContentChanged()

bool SwContentTree::HasContentChanged ( )
private

◆ HideTree()

void SwContentTree::HideTree ( )

Definition at line 3546 of file content.cxx.

References m_aUpdTimer, m_xTreeView, and Task::Stop().

◆ insert()

void SwContentTree::insert ( const weld::TreeIter pParent,
const OUString &  rStr,
const OUString &  rId,
bool  bChildrenOnDemand,
weld::TreeIter pRet 
)
private

Definition at line 2104 of file content.cxx.

References m_nEntryCount, and m_xTreeView.

Referenced by Display(), InsertContent(), and RequestingChildren().

◆ InsertContent()

void SwContentTree::InsertContent ( const weld::TreeIter rParent)
private

◆ IsActiveView()

bool SwContentTree::IsActiveView ( ) const
inline

Definition at line 260 of file conttree.hxx.

References ACTIVE, and m_eState.

◆ IsConstantView()

bool SwContentTree::IsConstantView ( ) const
inline

Definition at line 259 of file conttree.hxx.

References CONSTANT, and m_eState.

◆ IsDropFormatSupported()

bool SwContentTree::IsDropFormatSupported ( SotClipboardFormatId  nFormat)
inline

Definition at line 280 of file conttree.hxx.

References m_aDropTargetHelper.

◆ IsHiddenView()

bool SwContentTree::IsHiddenView ( ) const
inline

Definition at line 261 of file conttree.hxx.

References HIDDEN, and m_eState.

◆ IsInDrag()

bool SwContentTree::IsInDrag ( ) const

Definition at line 1259 of file content.cxx.

References m_xTreeView.

Referenced by AcceptDrop(), and ExecuteDrop().

◆ MoveOutline()

void SwContentTree::MoveOutline ( SwOutlineNodes::size_type  nTargetPos)
private

◆ Notify()

void SwContentTree::Notify ( SfxBroadcaster rBC,
SfxHint const &  rHint 
)
overridevirtual

◆ OverlayObject()

void SwContentTree::OverlayObject ( std::vector< basegfx::B2DRange > &&  aRanges = {})
private

◆ remove()

void SwContentTree::remove ( const weld::TreeIter rIter)
private

Definition at line 2111 of file content.cxx.

References m_nEntryCount, m_xTreeView, and remove().

Referenced by HasContentChanged(), and remove().

◆ RequestingChildren()

bool SwContentTree::RequestingChildren ( const weld::TreeIter rParent)

◆ Select()

void SwContentTree::Select ( )

◆ SelectContentType()

void SwContentTree::SelectContentType ( std::u16string_view  rContentTypeName)

Definition at line 5578 of file content.cxx.

References m_xTreeView, and Select().

◆ SelectOutlinesWithSelection()

void SwContentTree::SelectOutlinesWithSelection ( )

◆ set_accessible_name()

void SwContentTree::set_accessible_name ( const OUString &  rName)
inline

Definition at line 285 of file conttree.hxx.

References m_xTreeView.

◆ set_selection_mode()

void SwContentTree::set_selection_mode ( SelectionMode  eMode)
inline

Definition at line 295 of file conttree.hxx.

References eMode, and m_xTreeView.

◆ SetActiveShell()

void SwContentTree::SetActiveShell ( SwWrtShell pSh)

◆ SetConstantShell()

void SwContentTree::SetConstantShell ( SwWrtShell pSh)

◆ SetContentTypeTracking()

void SwContentTree::SetContentTypeTracking ( ContentTypeId  eCntTypeId,
bool  bSet 
)

◆ SetHiddenShell()

void SwContentTree::SetHiddenShell ( SwWrtShell pSh)

After a file is dropped on the Navigator, the new shell will be set.

Definition at line 3122 of file content.cxx.

References Display(), FindActiveTypeAndRemoveUserData(), GetParentWindow(), HIDDEN, i, m_aHiddenContentArr, m_eState, m_pHiddenShell, and SwNavigationPI::UpdateListBox().

◆ SetOutlineLevel()

void SwContentTree::SetOutlineLevel ( sal_uInt8  nSet)

◆ SetOutlineTracking()

void SwContentTree::SetOutlineTracking ( sal_uInt8  nSet)

◆ SetRootType()

void SwContentTree::SetRootType ( ContentTypeId  nType)

Definition at line 4969 of file content.cxx.

References m_bIsRoot, m_nRootType, m_pConfig, nType, and SwNavigationConfig::SetRootType().

◆ ShowActualView()

void SwContentTree::ShowActualView ( )

◆ ShowHiddenShell()

void SwContentTree::ShowHiddenShell ( )

Definition at line 4899 of file content.cxx.

References Display(), HIDDEN, m_eState, and m_pHiddenShell.

◆ ShowTree()

void SwContentTree::ShowTree ( )

Definition at line 3540 of file content.cxx.

References m_aUpdTimer, m_xTreeView, and Timer::Start().

◆ ToggleToRoot()

void SwContentTree::ToggleToRoot ( )

◆ UpdateLastSelType()

void SwContentTree::UpdateLastSelType ( )
private

Definition at line 3094 of file content.cxx.

References m_nLastSelType, and m_xTreeView.

Referenced by Display(), and FindActiveTypeAndRemoveUserData().

◆ UpdateTracking()

void SwContentTree::UpdateTracking ( )

Member Data Documentation

◆ m_aActiveContentArr

o3tl::enumarray<ContentTypeId,std::unique_ptr<SwContentType> > SwContentTree::m_aActiveContentArr
private

◆ m_aContextStrings

OUString SwContentTree::m_aContextStrings[CONTEXT_COUNT+1]
private

Definition at line 101 of file conttree.hxx.

Referenced by SwContentTree().

◆ m_aDndOutlinesSelected

std::vector<std::unique_ptr<weld::TreeIter> > SwContentTree::m_aDndOutlinesSelected
private

Definition at line 132 of file conttree.hxx.

Referenced by MoveOutline().

◆ m_aDropTargetHelper

SwContentTreeDropTarget SwContentTree::m_aDropTargetHelper
private

Definition at line 93 of file conttree.hxx.

Referenced by IsDropFormatSupported().

◆ m_aHiddenContentArr

o3tl::enumarray<ContentTypeId,std::unique_ptr<SwContentType> > SwContentTree::m_aHiddenContentArr
private

Definition at line 100 of file conttree.hxx.

Referenced by Display(), SetHiddenShell(), SetOutlineLevel(), and SwContentTree().

◆ m_aOverlayObjectDelayTimer

AutoTimer SwContentTree::m_aOverlayObjectDelayTimer
private

Definition at line 97 of file conttree.hxx.

Referenced by Display(), OverlayObject(), and SwContentTree().

◆ m_aUpdTimer

AutoTimer SwContentTree::m_aUpdTimer
private

Definition at line 96 of file conttree.hxx.

Referenced by EditEntry(), HideTree(), Notify(), ShowTree(), SwContentTree(), and ~SwContentTree().

◆ m_bDocHasChanged

bool SwContentTree::m_bDocHasChanged = true
private

Definition at line 134 of file conttree.hxx.

Referenced by Notify().

◆ m_bIgnoreDocChange

bool SwContentTree::m_bIgnoreDocChange = false
private

Definition at line 135 of file conttree.hxx.

Referenced by Display(), EditEntry(), ExecuteContextMenuAction(), Notify(), and UpdateTracking().

◆ m_bIsIdleClear

bool SwContentTree::m_bIsIdleClear
private

Definition at line 126 of file conttree.hxx.

◆ m_bIsLastReadOnly

bool SwContentTree::m_bIsLastReadOnly
private

Definition at line 127 of file conttree.hxx.

Referenced by Display(), Notify(), and Select().

◆ m_bIsOutlineMoveable

bool SwContentTree::m_bIsOutlineMoveable
private

Definition at line 128 of file conttree.hxx.

Referenced by AcceptDrop(), and FillTransferData().

◆ m_bIsRoot

bool SwContentTree::m_bIsRoot
private

◆ m_bSelectTo

bool SwContentTree::m_bSelectTo = false
private

Definition at line 138 of file conttree.hxx.

Referenced by GotoContent().

◆ m_bViewHasChanged

bool SwContentTree::m_bViewHasChanged
private

Definition at line 129 of file conttree.hxx.

Referenced by EditEntry(), and ExecuteContextMenuAction().

◆ m_eState

enum SwContentTree::State SwContentTree::m_eState
private

◆ m_nActiveBlock

sal_Int32 SwContentTree::m_nActiveBlock
private

Definition at line 111 of file conttree.hxx.

Referenced by Display(), Expand(), and SwContentTree().

◆ m_nEntryCount

size_t SwContentTree::m_nEntryCount
private

Definition at line 113 of file conttree.hxx.

Referenced by clear(), GetEntryCount(), insert(), and remove().

◆ m_nHiddenBlock

sal_Int32 SwContentTree::m_nHiddenBlock
private

Definition at line 112 of file conttree.hxx.

Referenced by Display(), and Expand().

◆ m_nLastGotoContentWasOutlinePos

SwOutlineNodes::size_type SwContentTree::m_nLastGotoContentWasOutlinePos = SwOutlineNodes::npos
private

Definition at line 121 of file conttree.hxx.

Referenced by GotoContent(), and UpdateTracking().

◆ m_nLastSelType

ContentTypeId SwContentTree::m_nLastSelType
private

Definition at line 115 of file conttree.hxx.

Referenced by Display(), GotoContent(), ToggleToRoot(), UpdateLastSelType(), and UpdateTracking().

◆ m_nOutlineLevel

sal_uInt8 SwContentTree::m_nOutlineLevel
private

◆ m_nOutlineTracking

sal_uInt8 SwContentTree::m_nOutlineTracking = 1
private

Definition at line 118 of file conttree.hxx.

Referenced by ExecuteContextMenuAction(), SetOutlineTracking(), and UpdateTracking().

◆ m_nRootType

ContentTypeId SwContentTree::m_nRootType
private

◆ m_nRowActivateEventId

ImplSVEvent* SwContentTree::m_nRowActivateEventId = nullptr
private

Definition at line 137 of file conttree.hxx.

◆ m_pActiveShell

SwWrtShell* SwContentTree::m_pActiveShell
private

◆ m_pConfig

SwNavigationConfig* SwContentTree::m_pConfig
private

◆ m_pDialog

SwNavigationPI* SwContentTree::m_pDialog
private

Definition at line 94 of file conttree.hxx.

Referenced by GetParentWindow().

◆ m_pHiddenShell

SwWrtShell* SwContentTree::m_pHiddenShell
private

Definition at line 105 of file conttree.hxx.

Referenced by GetHiddenWrtShell(), GetWrtShell(), SetHiddenShell(), and ShowHiddenShell().

◆ m_sInvisible

OUString SwContentTree::m_sInvisible
private

Definition at line 102 of file conttree.hxx.

◆ m_sSelectedItem

OUString SwContentTree::m_sSelectedItem
private

Definition at line 103 of file conttree.hxx.

Referenced by GotoContent(), and UpdateTracking().

◆ m_sSpace

OUString SwContentTree::m_sSpace
private

Definition at line 95 of file conttree.hxx.

Referenced by HasContentChanged(), InsertContent(), and RequestingChildren().

◆ m_xOverlayCompareEntry

std::unique_ptr<weld::TreeIter> SwContentTree::m_xOverlayCompareEntry
private

Definition at line 140 of file conttree.hxx.

◆ m_xOverlayObject

std::unique_ptr<sdr::overlay::OverlayObject> SwContentTree::m_xOverlayObject
private

Definition at line 141 of file conttree.hxx.

Referenced by Display(), and OverlayObject().

◆ m_xTreeView

std::unique_ptr<weld::TreeView> SwContentTree::m_xTreeView
private

◆ mOutLineNodeMap

std::map< void*, bool > SwContentTree::mOutLineNodeMap
private

Definition at line 109 of file conttree.hxx.

Referenced by ExecuteDrop(), Expand(), SwContentTree(), and ~SwContentTree().

◆ mTrackContentType

o3tl::enumarray<ContentTypeId, bool> SwContentTree::mTrackContentType
private

The documentation for this class was generated from the following files: