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>

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 (const OString &rCommand, weld::Menu &rMenu)
 
void InsertRegion (const SwGlblDocContent *pCont, const OUString *pFileName=nullptr)
 
void EditContent (const SwGlblDocContent *pCont)
 
void ShowTree ()
 
void HideTree ()
 
void ExecCommand (const OString &rCmd)
 
void Display (bool bOnlyUpdateUserData=false)
 
bool Update (bool bHard)
 
void ExecuteContextMenuAction (const OString &rSelectedPopupEntry)
 
const SwWrtShellGetActiveWrtShell () 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
 
VclPtr< SwNavigationPIm_xDialog
 
AutoTimer m_aUpdateTimer
 
OUString m_aContextStrings [GLOBAL_CONTEXT_COUNT]
 
SwWrtShellm_pActiveShell
 
std::unique_ptr< SwGlblDocContentsm_pSwGlblDocContents
 
std::unique_ptr< SwGlblDocContentm_pDocContent
 
std::unique_ptr< sfx2::DocumentInserterm_pDocInserter
 

Static Private Attributes

static const SfxObjectShellpShowShell = nullptr
 

Detailed Description

Definition at line 293 of file conttree.hxx.

Constructor & Destructor Documentation

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

Member Function Documentation

SwGlobalTree::DECL_LINK ( DialogClosedHdl  ,
sfx2::FileDialogHelper ,
void   
)
private
SwGlobalTree::DECL_LINK ( Timeout  ,
Timer ,
void   
)
private
SwGlobalTree::DECL_LINK ( DoubleClickHdl  ,
weld::TreeView ,
bool   
)
private
SwGlobalTree::DECL_LINK ( SelectHdl  ,
weld::TreeView ,
void   
)
private
SwGlobalTree::DECL_LINK ( FocusInHdl  ,
weld::Widget ,
void   
)
private
SwGlobalTree::DECL_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private
SwGlobalTree::DECL_LINK ( CommandHdl  ,
const CommandEvent ,
bool   
)
private
SwGlobalTree::DECL_LINK ( QueryTooltipHdl  ,
const weld::TreeIter ,
OUString   
)
private
SwGlobalTree::DECL_STATIC_LINK ( SwGlobalTree  ,
ShowFrameHdl  ,
void ,
void   
)
private
void SwGlobalTree::Display ( bool  bOnlyUpdateUserData = false)
void SwGlobalTree::EditContent ( const SwGlblDocContent pCont)
void SwGlobalTree::ExecCommand ( const OString &  rCmd)
void SwGlobalTree::ExecuteContextMenuAction ( const OString &  rSelectedPopupEntry)

Definition at line 565 of file glbltree.cxx.

References aName, SwAbstractDialogFactory::Create(), SwEditShell::DeleteGlobalDocContent(), Display(), EditContent(), SwCursorShell::EndAction(), VclAbstractDialog::Execute(), SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), FN_EDIT_REGION, FN_PARAM_TOX_TYPE, FN_UPDATE_TOX, AbstractMultiTOXTabDialog::GetCurrentTOXType(), SfxFrame::GetCurrentViewFrame(), SfxViewFrame::GetDispatcher(), SwGlblDocContent::GetDocPos(), SwView::GetEditWin(), SfxFrameItem::GetFrame(), SwEditShell::GetGlobalDocContent(), SwEditShell::GetLinkManager(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), SfxViewFrame::GetObjectShell(), AbstractMultiTOXTabDialog::GetOutputItemSet(), SfxShell::GetPool(), SwGlblDocContent::GetSection(), SwSection::GetSectionName(), SwGlblDocContent::GetTOX(), AbstractMultiTOXTabDialog::GetTOXDescription(), SwGlblDocContent::GetType(), SfxMedium::GetURLObject(), SfxBoolItem::GetValue(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), GLBLDOC_SECTION, GLBLDOC_TOXBASE, GotoContent(), vcl::Window::GrabFocus(), SwEditShell::InsertGlobalDocContent(), InsertRegion(), SwSection::IsConnected(), m_pActiveShell, m_pDocContent, m_pSwGlblDocContents, m_xDialog, m_xTreeView, pContent, RES_BACKGROUND(), RES_COL(), RES_FRM_SIZE(), RES_LR_SPACE(), RET_OK, Select(), SwWrtShell::SplitNode(), SwCursorShell::StartAction(), INetURLObject::ToIUri, SfxViewFrame::ToTop(), SwWrtShell::Up(), Update(), sfx2::LinkManager::UpdateAllLinks(), SwTOXMgr::UpdateOrInsertTOX(), and SwWrtShell::UpdateTableOf().

bool SwGlobalTree::get_visible ( ) const
inline

Definition at line 338 of file conttree.hxx.

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

Definition at line 356 of file conttree.hxx.

References m_xTreeView.

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

const SwWrtShell* SwGlobalTree::GetActiveWrtShell ( ) const
inline

Definition at line 379 of file conttree.hxx.

References m_pActiveShell.

Referenced by SwGlobalTreeDropTarget::ExecuteDrop().

MenuEnableFlags SwGlobalTree::GetEnableFlags ( ) const
private
SwNavigationPI * SwGlobalTree::GetParentWindow ( )
private

Definition at line 966 of file glbltree.cxx.

References m_xDialog.

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

void SwGlobalTree::GotoContent ( const SwGlblDocContent pCont)
private
void SwGlobalTree::grab_focus ( )
inline

Definition at line 345 of file conttree.hxx.

void SwGlobalTree::HideTree ( )

Definition at line 807 of file glbltree.cxx.

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

void SwGlobalTree::InsertRegion ( const SwGlblDocContent _pContent,
const css::uno::Sequence< OUString > &  _rFiles 
)
private
void SwGlobalTree::InsertRegion ( const SwGlblDocContent pCont,
const OUString *  pFileName = nullptr 
)
void SwGlobalTree::MoveSelectionTo ( const weld::TreeIter pDropTarget)
void SwGlobalTree::OpenDoc ( const SwGlblDocContent pCont)
private
void SwGlobalTree::Select ( )
private
void SwGlobalTree::set_accessible_name ( const OUString &  rName)
inline

Definition at line 340 of file conttree.hxx.

void SwGlobalTree::set_selection_mode ( SelectionMode  eMode)
inline

Definition at line 351 of file conttree.hxx.

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

Definition at line 331 of file conttree.hxx.

Referenced by IMPL_STATIC_LINK_NOARG(), and OpenDoc().

void SwGlobalTree::ShowTree ( )

Definition at line 801 of file glbltree.cxx.

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

void SwGlobalTree::TbxMenuHdl ( const OString &  rCommand,
weld::Menu rMenu 
)
bool SwGlobalTree::Update ( bool  bHard)

Member Data Documentation

OUString SwGlobalTree::m_aContextStrings[GLOBAL_CONTEXT_COUNT]
private

Definition at line 300 of file conttree.hxx.

Referenced by Display(), and SwGlobalTree().

SwGlobalTreeDropTarget SwGlobalTree::m_aDropTargetHelper
private

Definition at line 297 of file conttree.hxx.

AutoTimer SwGlobalTree::m_aUpdateTimer
private

Definition at line 299 of file conttree.hxx.

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

SwWrtShell* SwGlobalTree::m_pActiveShell
private
std::unique_ptr<SwGlblDocContent> SwGlobalTree::m_pDocContent
private

Definition at line 305 of file conttree.hxx.

Referenced by ExecuteContextMenuAction().

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

Definition at line 306 of file conttree.hxx.

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

std::unique_ptr<SwGlblDocContents> SwGlobalTree::m_pSwGlblDocContents
private
VclPtr<SwNavigationPI> SwGlobalTree::m_xDialog
private
std::unique_ptr<weld::TreeView> SwGlobalTree::m_xTreeView
private
const SfxObjectShell * SwGlobalTree::pShowShell = nullptr
staticprivate

Definition at line 308 of file conttree.hxx.


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