LibreOffice Module sd (master) 1
|
#include <navigatr.hxx>
Public Types | |
typedef ::std::function< void()> | UpdateRequestFunctor |
Public Member Functions | |
SdNavigatorWin (weld::Widget *pParent, SfxBindings *pBindings, SfxNavigator *pNavigatorDlg) | |
Create a new instance of the navigator. More... | |
void | SetUpdateRequestFunctor (const UpdateRequestFunctor &rUpdateRequest) |
virtual | ~SdNavigatorWin () override |
void | InitTreeLB (const SdDrawDocument *pDoc) |
void | RefreshDocumentLB (const OUString *pDocName=nullptr) |
void | FirstFocus () |
bool | InsertFile (const OUString &rFileName) |
NavigatorDragType | GetNavigatorDragType () |
DragType is set on dependence if a Drag is even possible. More... | |
SdPageObjsTLV & | GetObjects () |
void | FreshTree (const SdDrawDocument *pDoc) |
virtual weld::Window * | GetFrameWeld () const override |
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 () |
Private Member Functions | |
NavDocInfo * | GetDocInfo () |
DECL_DLLPRIVATE_LINK (SelectToolboxHdl, const OUString &, void) | |
DECL_DLLPRIVATE_LINK (DropdownClickToolBoxHdl, const OUString &, void) | |
DECL_DLLPRIVATE_LINK (ClickObjectHdl, weld::TreeView &, bool) | |
DECL_DLLPRIVATE_LINK (SelectDocumentHdl, weld::ComboBox &, void) | |
DECL_DLLPRIVATE_LINK (MenuSelectHdl, const OUString &, void) | |
DECL_DLLPRIVATE_LINK (ShapeFilterCallback, const OUString &, void) | |
DECL_DLLPRIVATE_LINK (KeyInputHdl, const KeyEvent &, bool) | |
DECL_DLLPRIVATE_STATIC_LINK (SdNavigatorWin, MouseReleaseHdl, const MouseEvent &, bool) | |
DECL_LINK (CommandHdl, const CommandEvent &, bool) | |
void | SetDragImage () |
void | ExecuteContextMenuAction (std::u16string_view rSelectedPopupEntry) |
Static Private Member Functions | |
static OUString | GetDragTypeSdBmpId (NavigatorDragType eDT) |
This flag controls whether all shapes or only the named shapes are shown. More... | |
Private Attributes | |
std::unique_ptr< weld::Toolbar > | mxToolbox |
std::unique_ptr< SdPageObjsTLV > | mxTlbObjects |
std::unique_ptr< weld::ComboBox > | mxLbDocs |
std::unique_ptr< weld::Menu > | mxDragModeMenu |
std::unique_ptr< weld::Menu > | mxShapeMenu |
VclPtr< SfxNavigator > | mxNavigatorDlg |
bool | mbDocImported |
OUString | maDropFileName |
NavigatorDragType | meDragType |
std::vector< NavDocInfo > | maDocList |
SfxBindings * | mpBindings |
std::unique_ptr< SdNavigatorControllerItem > | mpNavigatorCtrlItem |
std::unique_ptr< SdPageNameControllerItem > | mpPageNameCtrlItem |
Friends | |
class | SdNavigatorFloat |
class | SdNavigatorControllerItem |
class | SdPageNameControllerItem |
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 100 of file navigatr.hxx.
typedef ::std::function<void ()> SdNavigatorWin::UpdateRequestFunctor |
Definition at line 103 of file navigatr.hxx.
SdNavigatorWin::SdNavigatorWin | ( | weld::Widget * | pParent, |
SfxBindings * | pBindings, | ||
SfxNavigator * | pNavigatorDlg | ||
) |
Create a new instance of the navigator.
SdNavigatorWin - FloatingWindow.
bUseActiveUpdate | When <TRUE>, the default, then the SdNavigatorWin object will make a SID_NAVIGATOR_INIT call whenever it thinks an update is necessary. When <FALSE> the navigator will rely on others to trigger updates. |
Definition at line 56 of file navigatr.cxx.
References SfxBindings::GetDispatcher(), SfxDispatcher::GetFrame(), comphelper::LibreOfficeKit::isActive(), LINK, mpBindings, mxDragModeMenu, mxLbDocs, mxShapeMenu, mxTlbObjects, mxToolbox, and SetDragImage().
|
overridevirtual |
Definition at line 128 of file navigatr.cxx.
References mpNavigatorCtrlItem, mpPageNameCtrlItem, mxDragModeMenu, mxLbDocs, mxShapeMenu, mxTlbObjects, and mxToolbox.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
Definition at line 265 of file navigatr.cxx.
References GetObjects(), SdPageObjsTLV::start_editing(), and u.
void SdNavigatorWin::FirstFocus | ( | ) |
Definition at line 104 of file navigatr.cxx.
References mxTlbObjects.
void SdNavigatorWin::FreshTree | ( | const SdDrawDocument * | pDoc | ) |
Definition at line 156 of file navigatr.cxx.
References SdDrawDocument::GetDocSh(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SfxShell::GetName(), sd::DrawDocShell::GetViewShell(), lcl_select_marked_object(), mxLbDocs, mxTlbObjects, and RefreshDocumentLB().
Referenced by SdNavigatorControllerItem::StateChangedAtToolBoxControl().
|
private |
Definition at line 707 of file navigatr.cxx.
References maDocList, mbDocImported, mxLbDocs, and nPos.
Referenced by GetNavigatorDragType(), SdNavigatorControllerItem::StateChangedAtToolBoxControl(), and SdPageNameControllerItem::StateChangedAtToolBoxControl().
|
staticprivate |
This flag controls whether all shapes or only the named shapes are shown.
Definition at line 690 of file navigatr.cxx.
References NAVIGATOR_DRAGTYPE_EMBEDDED, NAVIGATOR_DRAGTYPE_LINK, NAVIGATOR_DRAGTYPE_NONE, and NAVIGATOR_DRAGTYPE_URL.
Referenced by SetDragImage().
|
overridevirtual |
Reimplemented from PanelLayout.
Definition at line 111 of file navigatr.cxx.
References PanelLayout::GetFrameWeld(), and mxNavigatorDlg.
NavigatorDragType SdNavigatorWin::GetNavigatorDragType | ( | ) |
DragType is set on dependence if a Drag is even possible.
For example, under certain circumstances, it is not allowed to drag graphics (#31038#).
Definition at line 229 of file navigatr.cxx.
References GetDocInfo(), NavDocInfo::HasName(), meDragType, mxTlbObjects, NAVIGATOR_DRAGTYPE_LINK, and NAVIGATOR_DRAGTYPE_NONE.
Referenced by SdPageObjsTLV::Select().
SdPageObjsTLV & SdNavigatorWin::GetObjects | ( | ) |
Definition at line 240 of file navigatr.cxx.
References mxTlbObjects.
Referenced by ExecuteContextMenuAction(), and SdNavigatorControllerItem::StateChangedAtToolBoxControl().
void SdNavigatorWin::InitTreeLB | ( | const SdDrawDocument * | pDoc | ) |
Definition at line 172 of file navigatr.cxx.
References SfxViewFrame::Current(), SfxViewFrame::GetBindings(), SdDrawDocument::GetDocSh(), sd::ViewShell::GetFrameView(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SfxShell::GetName(), sd::ViewShell::GetViewFrame(), sd::DrawDocShell::GetViewShell(), sd::ViewShell::GetViewShellBase(), SfxBindings::Invalidate(), sd::FrameView::IsNavigatorShowingAllShapes(), sd::SlideShow::IsRunning(), lcl_select_marked_object(), mxLbDocs, mxTlbObjects, mxToolbox, and RefreshDocumentLB().
Referenced by sd::sidebar::NavigatorWrapper::UpdateNavigator().
bool SdNavigatorWin::InsertFile | ( | const OUString & | rFileName | ) |
Definition at line 549 of file navigatr.cxx.
References aURL, ERRCODE_NONE, SfxFilterMatcher::GuessFilter(), maDropFileName, mxTlbObjects, INetURLObject::NONE, RefreshDocumentLB(), and SfxMedium::UseInteractionHandler().
void SdNavigatorWin::RefreshDocumentLB | ( | const OUString * | pDocName = nullptr | ) |
Definition at line 623 of file navigatr.cxx.
References aStr, SfxObjectShell::Current(), SfxObjectShell::GetCreateMode(), SfxObjectShell::GetFirst(), SfxObjectShell::GetMedium(), SfxMedium::GetName(), SfxShell::GetName(), SfxObjectShell::GetNext(), sd::DrawDocShell::IsInDestruction(), maDocList, mbDocImported, NavDocInfo::mpDocShell, mxLbDocs, nPos, NavDocInfo::SetActive(), and NavDocInfo::SetName().
Referenced by FreshTree(), InitTreeLB(), and InsertFile().
|
private |
Definition at line 745 of file navigatr.cxx.
References GetDragTypeSdBmpId(), meDragType, and mxToolbox.
Referenced by SdNavigatorWin().
void SdNavigatorWin::SetUpdateRequestFunctor | ( | const UpdateRequestFunctor & | rUpdateRequest | ) |
Definition at line 118 of file navigatr.cxx.
References mpBindings, mpNavigatorCtrlItem, mpPageNameCtrlItem, SdNavigatorControllerItem, and SdPageNameControllerItem.
Referenced by sd::sidebar::NavigatorWrapper::NavigatorWrapper().
|
friend |
Definition at line 127 of file navigatr.hxx.
Referenced by SetUpdateRequestFunctor().
|
friend |
Definition at line 126 of file navigatr.hxx.
|
friend |
Definition at line 128 of file navigatr.hxx.
Referenced by SetUpdateRequestFunctor().
|
private |
Definition at line 141 of file navigatr.hxx.
Referenced by GetDocInfo(), and RefreshDocumentLB().
|
private |
Definition at line 139 of file navigatr.hxx.
Referenced by InsertFile().
|
private |
Definition at line 138 of file navigatr.hxx.
Referenced by GetDocInfo(), and RefreshDocumentLB().
|
private |
Definition at line 140 of file navigatr.hxx.
Referenced by GetNavigatorDragType(), and SetDragImage().
|
private |
Definition at line 142 of file navigatr.hxx.
Referenced by SdNavigatorWin(), and SetUpdateRequestFunctor().
|
private |
Definition at line 143 of file navigatr.hxx.
Referenced by SetUpdateRequestFunctor(), and ~SdNavigatorWin().
|
private |
Definition at line 144 of file navigatr.hxx.
Referenced by SetUpdateRequestFunctor(), and ~SdNavigatorWin().
|
private |
Definition at line 133 of file navigatr.hxx.
Referenced by SdNavigatorWin(), and ~SdNavigatorWin().
|
private |
Definition at line 132 of file navigatr.hxx.
Referenced by FreshTree(), GetDocInfo(), InitTreeLB(), RefreshDocumentLB(), SdNavigatorWin(), SdNavigatorControllerItem::StateChangedAtToolBoxControl(), and ~SdNavigatorWin().
|
private |
Definition at line 136 of file navigatr.hxx.
Referenced by GetFrameWeld().
|
private |
Definition at line 134 of file navigatr.hxx.
Referenced by SdNavigatorWin(), and ~SdNavigatorWin().
|
private |
Definition at line 131 of file navigatr.hxx.
Referenced by FirstFocus(), FreshTree(), GetNavigatorDragType(), GetObjects(), InitTreeLB(), InsertFile(), SdNavigatorWin(), SdNavigatorControllerItem::StateChangedAtToolBoxControl(), SdPageNameControllerItem::StateChangedAtToolBoxControl(), and ~SdNavigatorWin().
|
private |
Definition at line 130 of file navigatr.hxx.
Referenced by InitTreeLB(), SdNavigatorWin(), SetDragImage(), SdNavigatorControllerItem::StateChangedAtToolBoxControl(), and ~SdNavigatorWin().