LibreOffice Module sw (master) 1
|
#include <navipi.hxx>
Public Member Functions | |
SwNavigationPI (weld::Widget *pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &rxFrame, SfxBindings *_pBindings, SfxNavigator *pNavigatorDlg) | |
virtual | ~SwNavigationPI () override |
void | UpdateListBox () |
void | MoveOutline (SwOutlineNodes::size_type nSource, SwOutlineNodes::size_type nTarget) |
virtual void | NotifyItemUpdate (const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState) override |
virtual void | GetControlState (const sal_uInt16, boost::property_tree::ptree &) override |
RegionMode | GetRegionDropMode () const |
void | SetRegionDropMode (RegionMode nNewMode) |
sal_Int8 | AcceptDrop () |
sal_Int8 | ExecuteDrop (const ExecuteDropEvent &rEvt) |
bool | IsGlobalDoc () const |
bool | IsGlobalMode () const |
SwView * | GetCreateView () const |
virtual weld::Window * | GetFrameWeld () const override |
void | SelectNavigateByContentType (const OUString &rContentTypeName) |
Public Member Functions inherited from PanelLayout | |
PanelLayout (weld::Widget *pParent, const OUString &rID, const OUString &rUIXMLDescription) | |
void | SetPanel (sfx2::sidebar::Panel *pPanel) |
virtual | ~PanelLayout () |
Size | get_preferred_size () const |
void | queue_resize () |
Public Member Functions inherited from sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface | |
virtual void | NotifyItemUpdate (const sal_uInt16 nSId, const SfxItemState eState, const SfxPoolItem *pState)=0 |
virtual void | GetControlState (const sal_uInt16 nSId, boost::property_tree::ptree &rState)=0 |
virtual | ~ItemUpdateReceiverInterface () |
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 |
Static Public Member Functions | |
static std::unique_ptr< PanelLayout > | Create (weld::Widget *pParent, const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &rxFrame, SfxBindings *pBindings) |
static OUString | CreateDropFileName (const TransferableDataHelper &rData) |
static OUString | CleanEntry (const OUString &rEntry) |
Private Member Functions | |
bool | IsZoomedIn () const |
void | ZoomOut () |
void | ZoomIn () |
void | FillBox () |
DECL_LINK (DocListBoxSelectHdl, weld::ComboBox &, void) | |
DECL_LINK (ToolBoxSelectHdl, const OUString &, void) | |
DECL_LINK (ToolBoxClickHdl, const OUString &, void) | |
DECL_LINK (ToolBox5DropdownClickHdl, const OUString &, void) | |
DECL_LINK (ToolBox6DropdownClickHdl, const OUString &, void) | |
DECL_LINK (DoneLink, SfxPoolItem const *, void) | |
DECL_LINK (DropModeMenuSelectHdl, const OUString &, void) | |
DECL_LINK (HeadingsMenuSelectHdl, const OUString &, void) | |
DECL_LINK (GlobalMenuSelectHdl, const OUString &, void) | |
DECL_LINK (ChangePageHdl, Timer *, void) | |
DECL_LINK (PageEditModifyHdl, weld::SpinButton &, void) | |
DECL_LINK (EditActionHdl, weld::Entry &, bool) | |
DECL_LINK (SetFocusChildHdl, weld::Container &, void) | |
DECL_LINK (NavigateByComboBoxSelectHdl, weld::ComboBox &, void) | |
DECL_LINK (PageModifiedHdl, weld::Entry &, void) | |
bool | EditAction () |
void | UsePage () |
void | UpdateInitShow () |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
void | ToggleTree () |
void | SetGlobalMode (bool bSet) |
void | UpdateNavigateBy () |
Friends | |
class | SwNavigatorWin |
class | SwContentTree |
class | SwGlobalTree |
Additional Inherited Members | |
Protected Member Functions inherited from PanelLayout | |
virtual void | DataChanged (const DataChangedEvent &rEvent) |
virtual void | DumpAsPropertyTree (tools::JsonWriter &) |
virtual weld::Window * | GetFrameWeld () const |
Protected Attributes inherited from PanelLayout | |
std::unique_ptr< weld::Builder > | m_xBuilder |
std::unique_ptr< weld::Container > | m_xContainer |
sfx2::sidebar::Panel * | m_pPanel |
Definition at line 43 of file navipi.hxx.
SwNavigationPI::SwNavigationPI | ( | weld::Widget * | pParent, |
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > & | rxFrame, | ||
SfxBindings * | _pBindings, | ||
SfxNavigator * | pNavigatorDlg | ||
) |
Definition at line 531 of file navipi.cxx.
References weld::ComboBox::connect_changed(), DRAWOBJECT, NavElementToolBoxControl::GetComboBox(), GetCreateView(), SwNavigationConfig::GetOutlineLevel(), SwNavigationConfig::GetOutlineTracking(), SwNavigationConfig::GetRegionMode(), SwNavigationConfig::GetRootType(), SwView::GetWrtShellPtr(), HID_NAVIGATOR_GLOBAL_TOOLBOX, HID_NAVIGATOR_LISTBOX, HID_NAVIGATOR_TOOLBOX, i, comphelper::LibreOfficeKit::isActive(), SwNavigationConfig::IsContentTypeTrack(), SwEditShell::IsGlblDocSaveLinks(), SwNavigationConfig::IsGlobalActive(), IsGlobalDoc(), LINK, m_aExpandedSize, m_aPageChgIdle, m_aStatusArr, m_pConfig, m_pNavigateByComboBox, PanelLayout::m_xBuilder, PanelLayout::m_xContainer, m_xContent1ToolBox, m_xContent2Dispatch, m_xContent2ToolBox, m_xContent3ToolBox, m_xContent4ToolBox, m_xContent5ToolBox, m_xContent6ToolBox, m_xContentTree, m_xDocListBox, m_xDragModeMenu, m_xEdit, m_xGlobalBox, m_xGlobalToolBox, m_xGlobalTree, m_xHeadingsMenu, m_xInsertMenu, m_xNavigatorDlg, m_xUpdateMenu, OUTLINE, ParentIsFloatingWindow(), SAL_N_ELEMENTS, Timer::SetInvokeHandler(), Task::SetPriority(), SetRegionDropMode(), SfxGetpApp(), SfxListener::StartListening(), SwResId(), ToggleTree(), UNKNOWN, UpdateInitShow(), UsePage(), and xController.
|
overridevirtual |
Definition at line 734 of file navipi.cxx.
References SfxControllerItem::dispose(), SfxListener::EndListening(), GetCreateView(), SwView::GetDocShell(), SwView::GetWrtShell(), SwCursorShell::IsAllProtect(), IsGlobalDoc(), IsGlobalMode(), m_aDocFullName, m_aPageChgIdle, m_aPageStats, m_oObjectShell, m_xContent1ToolBox, m_xContent2Dispatch, m_xContent2ToolBox, m_xContent3Dispatch, m_xContent3ToolBox, m_xContent4ToolBox, m_xContent5ToolBox, m_xContent6ToolBox, m_xContentBox, m_xContentTree, m_xDocListBox, m_xDragModeMenu, m_xEdit, m_xGlobalBox, m_xGlobalToolBox, m_xGlobalTree, m_xHeadingsMenu, m_xInsertMenu, m_xUpdateMenu, SfxObjectShell::SetReadOnlyUI(), SfxGetpApp(), and Task::Stop().
sal_Int8 SwNavigationPI::AcceptDrop | ( | ) |
Definition at line 1011 of file navipi.cxx.
References DND_ACTION_COPY, DND_ACTION_NONE, and m_xContentTree.
Referenced by SwContentTree::AcceptDrop().
|
static |
Definition at line 58 of file navipi.cxx.
References i.
Referenced by SwContentType::FillMemberList().
|
static |
Definition at line 499 of file navipi.cxx.
|
static |
Definition at line 978 of file navipi.cxx.
References FileList::GetFile(), TransferableDataHelper::GetFileList(), TransferableDataHelper::GetINetBookmark(), INetURLObject::GetMainURL(), TransferableDataHelper::GetString(), INetBookmark::GetURL(), TransferableDataHelper::HasFormat(), and INetURLObject::NONE.
Referenced by ExecuteDrop(), and SwGlobalTreeDropTarget::ExecuteDrop().
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 394 of file navipi.cxx.
References FN_STAT_PAGE, SfxViewFrame::GetBindings(), GetCreateView(), SwView::GetEditWin(), SwCursorShell::GetPageCnt(), SfxViewShell::GetViewFrame(), SwView::GetWrtShell(), SwWrtShell::GotoPage(), vcl::Window::HasFocus(), SfxBindings::Invalidate(), Task::IsActive(), m_aPageChgIdle, m_pCreateView, m_xEdit, max, and Task::Stop().
sal_Int8 SwNavigationPI::ExecuteDrop | ( | const ExecuteDropEvent & | rEvt | ) |
Definition at line 1026 of file navipi.cxx.
References SL::aData, CreateDropFileName(), GraphicDescriptor::Detect(), DND_ACTION_NONE, GetActiveView(), LINK, m_oObjectShell, m_sContentFileName, m_xContentTree, ExecuteDropEvent::maDropEvent, ExecuteDropEvent::mnAction, and comphelper::string::stripEnd().
Referenced by SwContentTree::ExecuteDrop().
|
private |
Definition at line 151 of file navipi.cxx.
References GetCreateView(), SwView::GetWrtShellPtr(), m_pActContView, m_pContentWrtShell, and m_xContentTree.
Referenced by UpdateInitShow(), and ZoomOut().
|
inlineoverridevirtual |
Implements sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface.
Definition at line 148 of file navipi.hxx.
SwView * SwNavigationPI::GetCreateView | ( | ) | const |
Definition at line 1185 of file navipi.cxx.
References SfxViewFrame::GetBindings(), SwModule::GetFirstView(), SwModule::GetNextView(), SfxViewShell::GetViewFrame(), m_pCreateView, m_rBindings, and SfxListener::StartListening().
Referenced by EditAction(), FillBox(), IsGlobalDoc(), MoveOutline(), Notify(), NotifyItemUpdate(), SwNavigationPI(), SwGlobalTree::Update(), UpdateListBox(), UpdateNavigateBy(), UsePage(), and ~SwNavigationPI().
|
overridevirtual |
Reimplemented from PanelLayout.
Definition at line 727 of file navipi.cxx.
References PanelLayout::GetFrameWeld(), and m_xNavigatorDlg.
Referenced by SwGlobalTree::InsertRegion().
|
inline |
Definition at line 154 of file navipi.hxx.
References m_nRegionMode.
Referenced by SwContentTree::FillTransferData().
bool SwNavigationPI::IsGlobalDoc | ( | ) | const |
Definition at line 1137 of file navipi.cxx.
References GetCreateView(), SwView::GetWrtShell(), and SwEditShell::IsGlobalDoc().
Referenced by NotifyItemUpdate(), SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().
|
inline |
Definition at line 161 of file navipi.hxx.
References m_bGlobalMode.
Referenced by NotifyItemUpdate(), ToggleTree(), ZoomOut(), and ~SwNavigationPI().
|
inlineprivate |
Definition at line 96 of file navipi.hxx.
References m_bIsZoomedIn.
Referenced by ToggleTree(), UpdateInitShow(), ZoomIn(), and ZoomOut().
void SwNavigationPI::MoveOutline | ( | SwOutlineNodes::size_type | nSource, |
SwOutlineNodes::size_type | nTarget | ||
) |
Definition at line 73 of file navipi.cxx.
References SwCursorShell::ClearMark(), GetCreateView(), SwCursorShell::GetOutlinePos(), SwView::GetWrtShell(), SwWrtShell::GotoOutline(), SwCursorShell::IsCursorPtAtEnd(), SwEditShell::IsOutlineMovable(), SwCursorShell::MakeOutlineSel(), MAXLEVEL, SwEditShell::MoveOutlinePara(), SwOutlineNodes::npos, and SwCursorShell::SwapPam().
Referenced by SwContentTree::MoveOutline().
|
overrideprivatevirtual |
Reimplemented from SfxListener.
Definition at line 843 of file navipi.cxx.
References SfxListener::EndListening(), GetCreateView(), SfxHint::GetId(), SwView::GetWrtShellPtr(), m_pCreateView, m_xContentTree, and m_xGlobalTree.
|
overridevirtual |
Implements sfx2::sidebar::ControllerItem::ItemUpdateReceiverInterface.
Definition at line 779 of file navipi.cxx.
References FN_STAT_PAGE, GetCreateView(), SwCursorShell::GetPageCnt(), SwView::GetWrtShell(), SwView::GetWrtShellPtr(), comphelper::LibreOfficeKit::isActive(), SwEditShell::IsGlblDocSaveLinks(), SwNavigationConfig::IsGlobalActive(), IsGlobalDoc(), IsGlobalMode(), m_pConfig, m_xContent1ToolBox, m_xContentTree, m_xEdit, m_xGlobalToolBox, ToggleTree(), and UpdateListBox().
void SwNavigationPI::SelectNavigateByContentType | ( | const OUString & | rContentTypeName | ) |
Definition at line 1160 of file navipi.cxx.
References weld::ComboBox::find_text(), m_pNavigateByComboBox, nPos, weld::ComboBox::set_active(), and UpdateNavigateBy().
|
inlineprivate |
void SwNavigationPI::SetRegionDropMode | ( | RegionMode | nNewMode | ) |
Definition at line 1068 of file navipi.cxx.
References m_nRegionMode, m_pConfig, m_xContent6ToolBox, and SwNavigationConfig::SetRegionMode().
Referenced by SwContentTree::ExecuteContextMenuAction(), and SwNavigationPI().
|
private |
Definition at line 1089 of file navipi.cxx.
References comphelper::LibreOfficeKit::isActive(), IsGlobalDoc(), IsGlobalMode(), IsZoomedIn(), m_xContent1ToolBox, m_xContent2ToolBox, m_xContent3ToolBox, m_xContent4ToolBox, m_xContent5ToolBox, m_xContent6ToolBox, m_xContentBox, m_xContentTree, m_xDocListBox, m_xGlobalBox, m_xGlobalToolBox, m_xGlobalTree, SetGlobalMode(), and ZoomOut().
Referenced by NotifyItemUpdate(), and SwNavigationPI().
|
private |
Definition at line 821 of file navipi.cxx.
References FillBox(), IsZoomedIn(), m_xContent6ToolBox, m_xNavigatorDlg, ParentIsFloatingWindow(), and ZoomOut().
Referenced by SwNavigationPI().
void SwNavigationPI::UpdateListBox | ( | ) |
Definition at line 885 of file navipi.cxx.
References GetCreateView(), SwView::GetDocShell(), SwModule::GetFirstView(), SwModule::GetNextView(), SfxObjectShell::GetTitle(), SfxObjectShell::IsHelpDocument(), m_aStatusArr, m_xContentTree, m_xDocListBox, and nCount.
Referenced by SwContentTree::ExecuteContextMenuAction(), NotifyItemUpdate(), SwContentTree::SetHiddenShell(), and SwContentTree::ShowActualView().
|
private |
Definition at line 133 of file navipi.cxx.
References SfxDispatcher::Execute(), FN_NAV_ELEMENT, weld::ComboBox::get_active_id(), GetCreateView(), SfxViewFrame::GetDispatcher(), SfxShell::GetFrame(), and m_pNavigateByComboBox.
Referenced by SelectNavigateByContentType().
|
private |
Definition at line 178 of file navipi.cxx.
References GetCreateView(), SwCursorShell::GetPageCnt(), SwCursorShell::GetPageNum(), SwView::GetWrtShell(), and m_xEdit.
Referenced by SwNavigationPI().
|
private |
Definition at line 458 of file navipi.cxx.
References VclPtr< class reference_type >::get(), Size::Height(), IsZoomedIn(), m_aExpandedSize, m_bIsZoomedIn, m_pConfig, m_xContent6ToolBox, m_xContentBox, m_xContentTree, m_xDocListBox, m_xGlobalBox, m_xGlobalTree, m_xNavigatorDlg, Size::setHeight(), SfxDockingWindow::SetMinOutputSizePixel(), and SwNavigationConfig::SetSmall().
|
private |
Definition at line 425 of file navipi.cxx.
References FillBox(), VclPtr< class reference_type >::get(), Size::Height(), IsGlobalMode(), IsZoomedIn(), m_aExpandedSize, m_bIsZoomedIn, m_pConfig, m_xContent6ToolBox, m_xContentBox, m_xContentTree, m_xDocListBox, m_xGlobalBox, m_xGlobalTree, m_xNavigatorDlg, Size::setHeight(), SfxDockingWindow::SetMinOutputSizePixel(), and SwNavigationConfig::SetSmall().
Referenced by ToggleTree(), and UpdateInitShow().
|
friend |
Definition at line 48 of file navipi.hxx.
|
friend |
Definition at line 49 of file navipi.hxx.
|
friend |
Definition at line 47 of file navipi.hxx.
|
private |
Definition at line 51 of file navipi.hxx.
Referenced by ~SwNavigationPI().
|
private |
Definition at line 89 of file navipi.hxx.
Referenced by SwNavigationPI(), ZoomIn(), and ZoomOut().
|
private |
Definition at line 73 of file navipi.hxx.
Referenced by EditAction(), SwNavigationPI(), and ~SwNavigationPI().
|
private |
Definition at line 52 of file navipi.hxx.
Referenced by ~SwNavigationPI().
|
private |
Definition at line 75 of file navipi.hxx.
Referenced by SwNavigationPI(), and UpdateListBox().
|
private |
Definition at line 92 of file navipi.hxx.
Referenced by IsGlobalMode(), and SetGlobalMode().
|
private |
Definition at line 91 of file navipi.hxx.
Referenced by IsZoomedIn(), ZoomIn(), and ZoomOut().
|
private |
Definition at line 88 of file navipi.hxx.
Referenced by GetRegionDropMode(), and SetRegionDropMode().
|
private |
Definition at line 79 of file navipi.hxx.
Referenced by ExecuteDrop(), and ~SwNavigationPI().
|
private |
Definition at line 82 of file navipi.hxx.
Referenced by FillBox().
|
private |
Definition at line 85 of file navipi.hxx.
Referenced by NotifyItemUpdate(), SetRegionDropMode(), SwNavigationPI(), ZoomIn(), and ZoomOut().
|
private |
Definition at line 80 of file navipi.hxx.
|
private |
Definition at line 81 of file navipi.hxx.
Referenced by FillBox().
|
private |
Definition at line 83 of file navipi.hxx.
Referenced by EditAction(), GetCreateView(), and Notify().
|
private |
Definition at line 94 of file navipi.hxx.
Referenced by SelectNavigateByContentType(), SwNavigationPI(), and UpdateNavigateBy().
|
private |
Definition at line 86 of file navipi.hxx.
Referenced by GetCreateView().
|
private |
Definition at line 74 of file navipi.hxx.
Referenced by ExecuteDrop().
|
private |
Definition at line 54 of file navipi.hxx.
Referenced by NotifyItemUpdate(), SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().
|
private |
Definition at line 60 of file navipi.hxx.
Referenced by SwNavigationPI(), and ~SwNavigationPI().
|
private |
Definition at line 55 of file navipi.hxx.
Referenced by SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().
|
private |
Definition at line 61 of file navipi.hxx.
Referenced by ~SwNavigationPI().
|
private |
Definition at line 56 of file navipi.hxx.
Referenced by SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().
|
private |
Definition at line 57 of file navipi.hxx.
Referenced by SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().
|
private |
Definition at line 58 of file navipi.hxx.
Referenced by SwContentTree::Display(), SwNavigationPI(), SwContentTree::ToggleToRoot(), ToggleTree(), and ~SwNavigationPI().
|
private |
Definition at line 59 of file navipi.hxx.
Referenced by SwContentTree::Display(), SwContentTree::Select(), SetRegionDropMode(), SwNavigationPI(), ToggleTree(), UpdateInitShow(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().
|
private |
Definition at line 68 of file navipi.hxx.
Referenced by ToggleTree(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().
|
private |
Definition at line 69 of file navipi.hxx.
Referenced by AcceptDrop(), ExecuteDrop(), FillBox(), Notify(), NotifyItemUpdate(), SwNavigationPI(), ToggleTree(), UpdateListBox(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().
|
private |
Definition at line 72 of file navipi.hxx.
Referenced by SwNavigationPI(), ToggleTree(), UpdateListBox(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().
|
private |
Definition at line 63 of file navipi.hxx.
Referenced by SwNavigationPI(), and ~SwNavigationPI().
|
private |
Definition at line 67 of file navipi.hxx.
Referenced by EditAction(), NotifyItemUpdate(), SwNavigationPI(), UsePage(), and ~SwNavigationPI().
|
private |
Definition at line 70 of file navipi.hxx.
Referenced by SwNavigationPI(), ToggleTree(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().
|
private |
Definition at line 66 of file navipi.hxx.
Referenced by NotifyItemUpdate(), SwGlobalTree::Select(), SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().
|
private |
Definition at line 71 of file navipi.hxx.
Referenced by Notify(), SwNavigationPI(), ToggleTree(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().
|
private |
Definition at line 62 of file navipi.hxx.
Referenced by SwNavigationPI(), and ~SwNavigationPI().
|
private |
Definition at line 65 of file navipi.hxx.
Referenced by SwNavigationPI(), and ~SwNavigationPI().
|
private |
Definition at line 77 of file navipi.hxx.
Referenced by GetFrameWeld(), SwNavigationPI(), UpdateInitShow(), ZoomIn(), and ZoomOut().
|
private |
Definition at line 64 of file navipi.hxx.
Referenced by SwNavigationPI(), and ~SwNavigationPI().