|
LibreOffice Module sw (master) 1
|
#include <conttree.hxx>
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::TreeView & | get_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 SwWrtShell * | GetActiveWrtShell () 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 |
| SfxBroadcaster * | GetBroadcasterJOE (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) | |
| SwNavigationPI * | GetParentWindow () |
| 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::TreeView > | m_xTreeView |
| SwGlobalTreeDropTarget | m_aDropTargetHelper |
| SwNavigationPI * | m_pDialog |
| AutoTimer | m_aUpdateTimer |
| OUString | m_aContextStrings [GLOBAL_CONTEXT_COUNT] |
| SwWrtShell * | m_pActiveShell |
| std::unique_ptr< SwGlblDocContents > | m_pSwGlblDocContents |
| std::optional< SwGlblDocContent > | m_oDocContent |
| std::unique_ptr< sfx2::DocumentInserter > | m_pDocInserter |
Static Private Attributes | |
| static const SfxObjectShell * | s_pShowShell = nullptr |
Definition at line 323 of file conttree.hxx.
| SwGlobalTree::SwGlobalTree | ( | std::unique_ptr< weld::TreeView > | xTreeView, |
| SwNavigationPI * | pDialog | ||
| ) |
Definition at line 129 of file glbltree.cxx.
References GLOBAL_CONTEXT_ARY, GLOBAL_CONTEXT_COUNT, GLOBAL_UPDATE_TIMEOUT, HID_NAVIGATOR_GLOB_TREELIST, i, LINK, m_aContextStrings, m_aUpdateTimer, m_xTreeView, Select(), Timer::SetInvokeHandler(), Timer::SetTimeout(), Timer::Start(), and SwResId().
| SwGlobalTree::~SwGlobalTree | ( | ) |
Definition at line 156 of file glbltree.cxx.
References m_aUpdateTimer, m_pDocInserter, m_pSwGlblDocContents, and Task::Stop().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
| void SwGlobalTree::Display | ( | bool | bOnlyUpdateUserData = false | ) |
Definition at line 432 of file glbltree.cxx.
References COL_AUTO(), COL_LIGHTRED(), SwGlblDocContent::GetSection(), SwSection::GetSectionName(), SwTOXBase::GetTitle(), SwGlblDocContent::GetTOX(), SwGlblDocContent::GetType(), GLBLDOC_SECTION, GLBLDOC_TOXBASE, GLBLDOC_UNKNOWN, i, SwSection::IsConnectFlag(), m_aContextStrings, m_pSwGlblDocContents, m_xTreeView, o3tl::make_unsigned(), nCount, Select(), sId, and weld::toId().
Referenced by EditContent(), ExecCommand(), ExecuteContextMenuAction(), and MoveSelectionTo().
| void SwGlobalTree::EditContent | ( | const SwGlblDocContent * | pCont | ) |
Definition at line 537 of file glbltree.cxx.
References Display(), SfxDispatcher::Execute(), FN_INSERT_MULTI_TOX, SfxViewFrame::GetDispatcher(), SwView::GetEditWin(), SwGlblDocContent::GetTOX(), SwGlblDocContent::GetType(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), GLBLDOC_SECTION, GLBLDOC_TOXBASE, GLBLDOC_UNKNOWN, GotoContent(), vcl::Window::GrabFocus(), m_pActiveShell, OpenDoc(), and Update().
Referenced by ExecCommand(), and ExecuteContextMenuAction().
| void SwGlobalTree::ExecCommand | ( | std::u16string_view | rCmd | ) |
Definition at line 842 of file glbltree.cxx.
References Display(), EditContent(), m_pActiveShell, m_pSwGlblDocContents, m_xTreeView, SwEditShell::MoveGlobalDocContent(), u, and Update().
| void SwGlobalTree::ExecuteContextMenuAction | ( | std::u16string_view | rSelectedPopupEntry | ) |
Definition at line 571 of file glbltree.cxx.
References aName, SwAbstractDialogFactory::Create(), SwAbstractDialogFactory::CreateMultiTOXTabDialog(), SwEditShell::DeleteGlobalDocContent(), Display(), EditContent(), SwCursorShell::EndAction(), SfxDispatcher::Execute(), SfxDispatcher::ExecuteList(), FN_EDIT_REGION, FN_PARAM_TOX_TYPE, FN_UPDATE_TOX, SfxFrame::GetCurrentViewFrame(), SfxViewFrame::GetDispatcher(), SwGlblDocContent::GetDocPos(), SwView::GetEditWin(), SfxFrameItem::GetFrame(), SwEditShell::GetGlobalDocContent(), SwEditShell::GetLinkManager(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), GetName(), SfxViewFrame::GetObjectShell(), SfxShell::GetPool(), SwGlblDocContent::GetSection(), SwSection::GetSectionName(), SwGlblDocContent::GetTOX(), SwGlblDocContent::GetType(), SfxMedium::GetURLObject(), SfxBoolItem::GetValue(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), GLBLDOC_SECTION, GLBLDOC_TOXBASE, GotoContent(), vcl::Window::GrabFocus(), SwEditShell::InsertGlobalDocContent(), InsertRegion(), SwSection::IsConnected(), m_oDocContent, m_pActiveShell, m_pSwGlblDocContents, m_xTreeView, RES_BACKGROUND(), RES_COL(), RES_FRM_SIZE(), RES_LR_SPACE(), RET_OK, Select(), SwWrtShell::SplitNode(), SwCursorShell::StartAction(), INetURLObject::ToIUri, SfxViewFrame::ToTop(), u, SwWrtShell::Up(), Update(), sfx2::LinkManager::UpdateAllLinks(), SwTOXMgr::UpdateOrInsertTOX(), and SwWrtShell::UpdateTableOf().
|
inline |
Definition at line 368 of file conttree.hxx.
References m_xTreeView.
|
inline |
Definition at line 385 of file conttree.hxx.
References m_xTreeView.
Referenced by SwGlobalTreeDropTarget::AcceptDrop(), and SwGlobalTreeDropTarget::ExecuteDrop().
|
inline |
Definition at line 408 of file conttree.hxx.
References m_pActiveShell.
Referenced by SwGlobalTreeDropTarget::ExecuteDrop().
|
private |
Definition at line 318 of file glbltree.cxx.
References Delete, Edit, EditLink, GLBLDOC_SECTION, GLBLDOC_UNKNOWN, InsertFile, InsertIdx, InsertText, m_xTreeView, NONE, Update, and UpdateSel.
Referenced by TbxMenuHdl().
|
private |
Definition at line 997 of file glbltree.cxx.
References m_pDialog.
Referenced by InsertRegion(), Select(), and Update().
|
private |
Definition at line 807 of file glbltree.cxx.
References SwWrtShell::EnterStdMode(), SwGlblDocContent::GetTOX(), SwTOXBase::GetTOXName(), SwGlblDocContent::GetType(), GLBLDOC_SECTION, GLBLDOC_TOXBASE, GLBLDOC_UNKNOWN, SwEditShell::GotoGlobalDocContent(), SwWrtShell::GotoNextTOXBase(), SwCursorShell::GotoPrevTOXBase(), m_pActiveShell, and sName.
Referenced by EditContent(), and ExecuteContextMenuAction().
|
inline |
Definition at line 375 of file conttree.hxx.
References m_xTreeView.
| void SwGlobalTree::HideTree | ( | ) |
Definition at line 836 of file glbltree.cxx.
References m_aUpdateTimer, m_xTreeView, and Task::Stop().
|
private |
Referenced by ExecuteContextMenuAction(), SwGlobalTreeDropTarget::ExecuteDrop(), and InsertRegion().
| void SwGlobalTree::InsertRegion | ( | const SwGlblDocContent * | pCont, |
| const OUString * | pFileName = nullptr |
||
| ) |
Definition at line 516 of file glbltree.cxx.
References SwNavigationPI::GetFrameWeld(), INetURLObject::GetMainURL(), GetParentWindow(), sfx2::DocumentInserter::InsertMulti, InsertRegion(), LINK, m_pDocInserter, INetURLObject::SetSmartURL(), and INetURLObject::Unambiguous.
| void SwGlobalTree::MoveSelectionTo | ( | const weld::TreeIter * | pDropTarget | ) |
Definition at line 395 of file glbltree.cxx.
References Display(), m_pActiveShell, m_pSwGlblDocContents, m_xTreeView, SwEditShell::MoveGlobalDocContent(), and Update().
Referenced by SwGlobalTreeDropTarget::ExecuteDrop().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 1123 of file glbltree.cxx.
References SfxListener::EndListening(), SfxViewEventHint::GetController(), SwView::GetDocShell(), SfxEventHint::GetEventName(), SfxHint::GetId(), SwXTextView::GetView(), SwWrtShell::GetView(), m_pActiveShell, SfxListener::Notify(), and UpdateTracking().
|
private |
Definition at line 952 of file glbltree.cxx.
References aURL, sfx2::cTokenSeparator, SfxViewFrame::GetDispatcher(), SwView::GetDocShell(), SfxObjectShell::GetFirst(), SwSection::GetLinkFileName(), INetURLObject::GetMainURL(), SfxObjectShell::GetMedium(), SfxObjectShell::GetNext(), SwGlblDocContent::GetSection(), SfxObjectShell::GetTitle(), SfxMedium::GetURLObject(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), LINK, m_pActiveShell, Application::PostUserEvent(), SetShowShell(), and INetURLObject::ToIUri.
Referenced by EditContent().
|
private |
Definition at line 377 of file glbltree.cxx.
References SwView::GetDocShell(), GetParentWindow(), SwWrtShell::GetView(), SfxObjectShell::IsReadOnly(), m_pActiveShell, SwNavigationPI::m_xGlobalToolBox, and m_xTreeView.
Referenced by Display(), ExecuteContextMenuAction(), and SwGlobalTree().
|
inline |
Definition at line 370 of file conttree.hxx.
References m_xTreeView.
|
inline |
Definition at line 380 of file conttree.hxx.
References eMode, and m_xTreeView.
|
inlinestaticprivate |
Definition at line 361 of file conttree.hxx.
References s_pShowShell.
Referenced by IMPL_STATIC_LINK_NOARG(), and OpenDoc().
| void SwGlobalTree::ShowTree | ( | ) |
Definition at line 829 of file glbltree.cxx.
References m_aUpdateTimer, m_xTreeView, Timer::Start(), and UpdateTracking().
| void SwGlobalTree::TbxMenuHdl | ( | std::u16string_view | rCommand, |
| weld::Menu & | rMenu | ||
| ) |
Definition at line 302 of file glbltree.cxx.
References GetEnableFlags(), InsertFile, InsertIdx, InsertText, weld::Menu::set_sensitive(), u, and UpdateSel.
| bool SwGlobalTree::Update | ( | bool | bHard | ) |
Definition at line 879 of file glbltree.cxx.
References eType, SwNavigationPI::GetCreateView(), SwView::GetDocShell(), SwEditShell::GetGlobalDocContent(), GetParentWindow(), SwGlblDocContent::GetSection(), SwSection::GetSectionName(), SwTOXBase::GetTitle(), SwGlblDocContent::GetTOX(), SwGlblDocContent::GetType(), SwWrtShell::GetView(), SwView::GetWrtShellPtr(), GLBLDOC_SECTION, GLBLDOC_TOXBASE, i, SfxListener::IsListening(), m_pActiveShell, m_pSwGlblDocContents, m_xTreeView, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::size(), and SfxListener::StartListening().
Referenced by EditContent(), ExecCommand(), ExecuteContextMenuAction(), and MoveSelectionTo().
| void SwGlobalTree::UpdateTracking | ( | ) |
Definition at line 789 of file glbltree.cxx.
References SwEditShell::GetCurrSection(), SwSection::GetParent(), SwSection::GetSectionName(), m_pActiveShell, and m_xTreeView.
Referenced by Notify(), and ShowTree().
|
private |
Definition at line 330 of file conttree.hxx.
Referenced by Display(), and SwGlobalTree().
|
private |
Definition at line 327 of file conttree.hxx.
|
private |
Definition at line 329 of file conttree.hxx.
Referenced by HideTree(), ShowTree(), SwGlobalTree(), and ~SwGlobalTree().
|
private |
Definition at line 335 of file conttree.hxx.
Referenced by ExecuteContextMenuAction().
|
private |
Definition at line 332 of file conttree.hxx.
Referenced by EditContent(), ExecCommand(), ExecuteContextMenuAction(), GetActiveWrtShell(), GotoContent(), MoveSelectionTo(), Notify(), OpenDoc(), Select(), Update(), and UpdateTracking().
|
private |
Definition at line 328 of file conttree.hxx.
Referenced by GetParentWindow().
|
private |
Definition at line 336 of file conttree.hxx.
Referenced by InsertRegion(), and ~SwGlobalTree().
|
private |
Definition at line 333 of file conttree.hxx.
Referenced by Display(), ExecCommand(), ExecuteContextMenuAction(), MoveSelectionTo(), Update(), and ~SwGlobalTree().
|
private |
Definition at line 326 of file conttree.hxx.
Referenced by Display(), ExecCommand(), ExecuteContextMenuAction(), get_visible(), get_widget(), GetEnableFlags(), grab_focus(), HideTree(), MoveSelectionTo(), Select(), set_accessible_name(), set_selection_mode(), ShowTree(), SwGlobalTree(), Update(), and UpdateTracking().
|
staticprivate |
Definition at line 338 of file conttree.hxx.
Referenced by SetShowShell().