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::string_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 BringHeadingsToAttention (const SwOutlineNodes &rOutlineNodesArr)
 
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 BringTextFieldsToAttention (std::vector< const SwTextAttr * > &rTextAttrsArr)
 
void FindActiveTypeAndRemoveUserData ()
 Before any data will be deleted, the last active entry has to be found. More...
 
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 OString &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 (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 (m_aOverlayObjectDelayTimerHdl, Timer *, void)
 
 DECL_LINK (MouseMoveHdl, 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
 
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
 
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 122 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

◆ BringFramesToAttention()

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

◆ BringHeadingsToAttention()

void SwContentTree::BringHeadingsToAttention ( const SwOutlineNodes rOutlineNodesArr)
private

◆ BringReferencesToAttention()

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

◆ BringTextFieldsToAttention()

void SwContentTree::BringTextFieldsToAttention ( std::vector< const SwTextAttr * > &  rTextAttrsArr)
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 2820 of file content.cxx.

References m_nEntryCount, and m_xTreeView.

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

◆ CopyOutlineSelections()

void SwContentTree::CopyOutlineSelections ( )
private

◆ DECL_LINK() [1/12]

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

Collapse - Remember the state for content types.

◆ DECL_LINK() [2/12]

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

◆ DECL_LINK() [3/12]

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

◆ DECL_LINK() [4/12]

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

◆ DECL_LINK() [5/12]

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

Expand - Remember the state for content types.

◆ DECL_LINK() [6/12]

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

◆ DECL_LINK() [7/12]

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

◆ DECL_LINK() [8/12]

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

◆ DECL_LINK() [9/12]

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

◆ DECL_LINK() [10/12]

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

◆ DECL_LINK() [11/12]

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

◆ DECL_LINK() [12/12]

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 5139 of file content.cxx.

References SwRewriter::AddRule(), Any, SwRewriter::Apply(), args, SwPostItMgr::AssureStdModeAtShell(), BOOKMARK, SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateSwRenameXNamedDlg(), DELETE, 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(), SfxObjectShell::GetBaseModel(), GetDispatcher(), SfxViewFrame::GetDispatcher(), SwView::GetDocShell(), SwFormatField::GetField(), SwTextFieldContent::GetFormatField(), SwViewShell::getIDocumentMarkAccess(), SwViewShell::getIDocumentSettingAccess(), SwContent::GetName(), SwContent::GetParent(), SwView::GetPostItMgr(), SwFormatField::GetTextField(), SwTOXBase::GetTOXName(), SwContentType::GetType(), SwField::GetTypeId(), 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, POSTIT, PROTECT_BOOKMARKS, REFERENCE, REGION, RENAME, 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::string_view  rCmd,
bool  bModifier 
)

◆ ExecuteContextMenuAction()

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

Definition at line 4681 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, 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 3237 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 286 of file conttree.hxx.

References m_xTreeView.

Referenced by SwContentTreeDropTarget::AcceptDrop().

◆ GetAbsPos()

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

Definition at line 2586 of file content.cxx.

References weld::GetAbsPos(), and m_xTreeView.

Referenced by Display(), and ExecCommand().

◆ GetActiveWrtShell()

const SwWrtShell * SwContentTree::GetActiveWrtShell ( ) const
inline

Definition at line 249 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 2596 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 2619 of file content.cxx.

References m_xTreeView.

Referenced by ExecCommand().

◆ GetEntryCount()

size_t SwContentTree::GetEntryCount ( ) const
private

Definition at line 2591 of file content.cxx.

References m_nEntryCount.

Referenced by Display(), and ExecCommand().

◆ GetHiddenWrtShell()

SwWrtShell * SwContentTree::GetHiddenWrtShell ( )
inline

Definition at line 250 of file conttree.hxx.

References m_pHiddenShell.

◆ GetOutlineLevel()

sal_uInt8 SwContentTree::GetOutlineLevel ( ) const
inline

Definition at line 233 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

◆ grab_focus()

void SwContentTree::grab_focus ( )
inline

Definition at line 276 of file conttree.hxx.

References m_xTreeView.

Referenced by EditEntry(), and ExecuteContextMenuAction().

◆ HasContentChanged()

bool SwContentTree::HasContentChanged ( )
private

◆ HideTree()

void SwContentTree::HideTree ( )

Definition at line 3705 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 2227 of file content.cxx.

References m_nEntryCount, and m_xTreeView.

Referenced by Display(), and RequestingChildren().

◆ IsActiveView()

bool SwContentTree::IsActiveView ( ) const
inline

Definition at line 246 of file conttree.hxx.

References ACTIVE, and m_eState.

◆ IsConstantView()

bool SwContentTree::IsConstantView ( ) const
inline

Definition at line 245 of file conttree.hxx.

References CONSTANT, and m_eState.

◆ IsDropFormatSupported()

bool SwContentTree::IsDropFormatSupported ( SotClipboardFormatId  nFormat)
inline

Definition at line 266 of file conttree.hxx.

References m_aDropTargetHelper.

◆ IsHiddenView()

bool SwContentTree::IsHiddenView ( ) const
inline

Definition at line 247 of file conttree.hxx.

References HIDDEN, and m_eState.

◆ IsInDrag()

bool SwContentTree::IsInDrag ( ) const

Definition at line 1420 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

◆ remove()

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

Definition at line 2234 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 5621 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 271 of file conttree.hxx.

References m_xTreeView.

◆ set_selection_mode()

void SwContentTree::set_selection_mode ( SelectionMode  eMode)
inline

Definition at line 281 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 3249 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 5119 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 5032 of file content.cxx.

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

◆ ShowTree()

void SwContentTree::ShowTree ( )

Definition at line 3699 of file content.cxx.

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

◆ ToggleToRoot()

void SwContentTree::ToggleToRoot ( )

◆ UpdateLastSelType()

void SwContentTree::UpdateLastSelType ( )
private

Definition at line 3221 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 131 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

◆ 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 133 of file conttree.hxx.

Referenced by Notify().

◆ m_bIgnoreDocChange

bool SwContentTree::m_bIgnoreDocChange = false
private

◆ m_bIsIdleClear

bool SwContentTree::m_bIsIdleClear
private

Definition at line 125 of file conttree.hxx.

◆ m_bIsLastReadOnly

bool SwContentTree::m_bIsLastReadOnly
private

Definition at line 126 of file conttree.hxx.

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

◆ m_bIsOutlineMoveable

bool SwContentTree::m_bIsOutlineMoveable
private

Definition at line 127 of file conttree.hxx.

Referenced by AcceptDrop(), and FillTransferData().

◆ m_bIsRoot

bool SwContentTree::m_bIsRoot
private

◆ m_bViewHasChanged

bool SwContentTree::m_bViewHasChanged
private

Definition at line 128 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 110 of file conttree.hxx.

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

◆ m_nEntryCount

size_t SwContentTree::m_nEntryCount
private

Definition at line 112 of file conttree.hxx.

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

◆ m_nHiddenBlock

sal_Int32 SwContentTree::m_nHiddenBlock
private

Definition at line 111 of file conttree.hxx.

Referenced by Display(), and Expand().

◆ m_nLastGotoContentWasOutlinePos

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

Definition at line 120 of file conttree.hxx.

Referenced by GotoContent(), and UpdateTracking().

◆ m_nLastSelType

ContentTypeId SwContentTree::m_nLastSelType
private

Definition at line 114 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 117 of file conttree.hxx.

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

◆ m_nRootType

ContentTypeId SwContentTree::m_nRootType
private

◆ 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 104 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_sSpace

OUString SwContentTree::m_sSpace
private

Definition at line 95 of file conttree.hxx.

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

◆ m_xOverlayCompareEntry

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

Definition at line 136 of file conttree.hxx.

◆ m_xOverlayObject

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

◆ m_xTreeView

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

◆ mOutLineNodeMap

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

Definition at line 108 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: