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

#include <conttree.hxx>

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

Public Member Functions

 SwGlobalTree (std::unique_ptr< weld::TreeView > xTreeView, SwNavigationPI *pDialog)
 
 ~SwGlobalTree ()
 
bool get_visible () const
 
void set_accessible_name (const OUString &rName)
 
void grab_focus ()
 
void set_selection_mode (SelectionMode eMode)
 
weld::TreeViewget_widget ()
 
void MoveSelectionTo (const weld::TreeIter *pDropTarget)
 
void TbxMenuHdl (std::u16string_view rCommand, weld::Menu &rMenu)
 
void InsertRegion (const SwGlblDocContent *pCont, const OUString *pFileName=nullptr)
 
void EditContent (const SwGlblDocContent *pCont)
 
void ShowTree ()
 
void HideTree ()
 
void ExecCommand (std::u16string_view rCmd)
 
void Display (bool bOnlyUpdateUserData=false)
 
bool Update (bool bHard)
 
void ExecuteContextMenuAction (std::u16string_view rSelectedPopupEntry)
 
const SwWrtShellGetActiveWrtShell () const
 
virtual void Notify (SfxBroadcaster &rBC, SfxHint const &rHint) override
 
void UpdateTracking ()
 
- 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 Member Functions

void InsertRegion (const SwGlblDocContent *_pContent, const css::uno::Sequence< OUString > &_rFiles)
 
 DECL_LINK (DialogClosedHdl, sfx2::FileDialogHelper *, void)
 
void Select ()
 
 DECL_LINK (Timeout, Timer *, void)
 
 DECL_LINK (DoubleClickHdl, 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)
 
SwNavigationPIGetParentWindow ()
 
void OpenDoc (const SwGlblDocContent *)
 
void GotoContent (const SwGlblDocContent *)
 
MenuEnableFlags GetEnableFlags () const
 
 DECL_STATIC_LINK (SwGlobalTree, ShowFrameHdl, void *, void)
 

Static Private Member Functions

static void SetShowShell (const SfxObjectShell *pSet)
 

Private Attributes

std::unique_ptr< weld::TreeViewm_xTreeView
 
SwGlobalTreeDropTarget m_aDropTargetHelper
 
SwNavigationPIm_pDialog
 
AutoTimer m_aUpdateTimer
 
OUString m_aContextStrings [GLOBAL_CONTEXT_COUNT]
 
SwWrtShellm_pActiveShell
 
std::unique_ptr< SwGlblDocContentsm_pSwGlblDocContents
 
std::optional< SwGlblDocContentm_oDocContent
 
std::unique_ptr< sfx2::DocumentInserterm_pDocInserter
 

Static Private Attributes

static const SfxObjectShells_pShowShell = nullptr
 

Detailed Description

Definition at line 323 of file conttree.hxx.

Constructor & Destructor Documentation

◆ SwGlobalTree()

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

◆ ~SwGlobalTree()

SwGlobalTree::~SwGlobalTree ( )

Definition at line 156 of file glbltree.cxx.

References m_aUpdateTimer, m_pDocInserter, m_pSwGlblDocContents, and Task::Stop().

Member Function Documentation

◆ DECL_LINK() [1/8]

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

◆ DECL_LINK() [2/8]

SwGlobalTree::DECL_LINK ( DialogClosedHdl  ,
sfx2::FileDialogHelper ,
void   
)
private

◆ DECL_LINK() [3/8]

SwGlobalTree::DECL_LINK ( DoubleClickHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_LINK() [4/8]

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

◆ DECL_LINK() [5/8]

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

◆ DECL_LINK() [6/8]

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

◆ DECL_LINK() [7/8]

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

◆ DECL_LINK() [8/8]

SwGlobalTree::DECL_LINK ( Timeout  ,
Timer ,
void   
)
private

◆ DECL_STATIC_LINK()

SwGlobalTree::DECL_STATIC_LINK ( SwGlobalTree  ,
ShowFrameHdl  ,
void *  ,
void   
)
private

◆ Display()

void SwGlobalTree::Display ( bool  bOnlyUpdateUserData = false)

◆ EditContent()

void SwGlobalTree::EditContent ( const SwGlblDocContent pCont)

◆ ExecCommand()

void SwGlobalTree::ExecCommand ( std::u16string_view  rCmd)

◆ ExecuteContextMenuAction()

void SwGlobalTree::ExecuteContextMenuAction ( std::u16string_view  rSelectedPopupEntry)

◆ get_visible()

bool SwGlobalTree::get_visible ( ) const
inline

Definition at line 368 of file conttree.hxx.

References m_xTreeView.

◆ get_widget()

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

Definition at line 385 of file conttree.hxx.

References m_xTreeView.

Referenced by SwGlobalTreeDropTarget::AcceptDrop(), and SwGlobalTreeDropTarget::ExecuteDrop().

◆ GetActiveWrtShell()

const SwWrtShell * SwGlobalTree::GetActiveWrtShell ( ) const
inline

Definition at line 408 of file conttree.hxx.

References m_pActiveShell.

Referenced by SwGlobalTreeDropTarget::ExecuteDrop().

◆ GetEnableFlags()

MenuEnableFlags SwGlobalTree::GetEnableFlags ( ) const
private

◆ GetParentWindow()

SwNavigationPI * SwGlobalTree::GetParentWindow ( )
private

Definition at line 997 of file glbltree.cxx.

References m_pDialog.

Referenced by InsertRegion(), Select(), and Update().

◆ GotoContent()

void SwGlobalTree::GotoContent ( const SwGlblDocContent pCont)
private

◆ grab_focus()

void SwGlobalTree::grab_focus ( )
inline

Definition at line 375 of file conttree.hxx.

References m_xTreeView.

◆ HideTree()

void SwGlobalTree::HideTree ( )

Definition at line 836 of file glbltree.cxx.

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

◆ InsertRegion() [1/2]

void SwGlobalTree::InsertRegion ( const SwGlblDocContent _pContent,
const css::uno::Sequence< OUString > &  _rFiles 
)
private

◆ InsertRegion() [2/2]

void SwGlobalTree::InsertRegion ( const SwGlblDocContent pCont,
const OUString *  pFileName = nullptr 
)

◆ MoveSelectionTo()

void SwGlobalTree::MoveSelectionTo ( const weld::TreeIter pDropTarget)

◆ Notify()

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

◆ OpenDoc()

void SwGlobalTree::OpenDoc ( const SwGlblDocContent pCont)
private

◆ Select()

void SwGlobalTree::Select ( )
private

◆ set_accessible_name()

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

Definition at line 370 of file conttree.hxx.

References m_xTreeView.

◆ set_selection_mode()

void SwGlobalTree::set_selection_mode ( SelectionMode  eMode)
inline

Definition at line 380 of file conttree.hxx.

References eMode, and m_xTreeView.

◆ SetShowShell()

static void SwGlobalTree::SetShowShell ( const SfxObjectShell pSet)
inlinestaticprivate

Definition at line 361 of file conttree.hxx.

References s_pShowShell.

Referenced by IMPL_STATIC_LINK_NOARG(), and OpenDoc().

◆ ShowTree()

void SwGlobalTree::ShowTree ( )

Definition at line 829 of file glbltree.cxx.

References m_aUpdateTimer, m_xTreeView, Timer::Start(), and UpdateTracking().

◆ TbxMenuHdl()

void SwGlobalTree::TbxMenuHdl ( std::u16string_view  rCommand,
weld::Menu rMenu 
)

◆ Update()

bool SwGlobalTree::Update ( bool  bHard)

◆ UpdateTracking()

void SwGlobalTree::UpdateTracking ( )

Member Data Documentation

◆ m_aContextStrings

OUString SwGlobalTree::m_aContextStrings[GLOBAL_CONTEXT_COUNT]
private

Definition at line 330 of file conttree.hxx.

Referenced by Display(), and SwGlobalTree().

◆ m_aDropTargetHelper

SwGlobalTreeDropTarget SwGlobalTree::m_aDropTargetHelper
private

Definition at line 327 of file conttree.hxx.

◆ m_aUpdateTimer

AutoTimer SwGlobalTree::m_aUpdateTimer
private

Definition at line 329 of file conttree.hxx.

Referenced by HideTree(), ShowTree(), SwGlobalTree(), and ~SwGlobalTree().

◆ m_oDocContent

std::optional<SwGlblDocContent> SwGlobalTree::m_oDocContent
private

Definition at line 335 of file conttree.hxx.

Referenced by ExecuteContextMenuAction().

◆ m_pActiveShell

SwWrtShell* SwGlobalTree::m_pActiveShell
private

◆ m_pDialog

SwNavigationPI* SwGlobalTree::m_pDialog
private

Definition at line 328 of file conttree.hxx.

Referenced by GetParentWindow().

◆ m_pDocInserter

std::unique_ptr<sfx2::DocumentInserter> SwGlobalTree::m_pDocInserter
private

Definition at line 336 of file conttree.hxx.

Referenced by InsertRegion(), and ~SwGlobalTree().

◆ m_pSwGlblDocContents

std::unique_ptr<SwGlblDocContents> SwGlobalTree::m_pSwGlblDocContents
private

◆ m_xTreeView

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

◆ s_pShowShell

const SfxObjectShell * SwGlobalTree::s_pShowShell = nullptr
staticprivate

Definition at line 338 of file conttree.hxx.

Referenced by SetShowShell().


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