LibreOffice Module sd (master) 1
Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
SdNavigatorWin Class Reference

#include <navigatr.hxx>

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

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...
 
SdPageObjsTLVGetObjects ()
 
void FreshTree (const SdDrawDocument *pDoc)
 
virtual weld::WindowGetFrameWeld () 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

NavDocInfoGetDocInfo ()
 
 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::ToolbarmxToolbox
 
std::unique_ptr< SdPageObjsTLVmxTlbObjects
 
std::unique_ptr< weld::ComboBoxmxLbDocs
 
std::unique_ptr< weld::MenumxDragModeMenu
 
std::unique_ptr< weld::MenumxShapeMenu
 
VclPtr< SfxNavigatormxNavigatorDlg
 
bool mbDocImported
 
OUString maDropFileName
 
NavigatorDragType meDragType
 
std::vector< NavDocInfomaDocList
 
SfxBindingsmpBindings
 
std::unique_ptr< SdNavigatorControllerItemmpNavigatorCtrlItem
 
std::unique_ptr< SdPageNameControllerItemmpPageNameCtrlItem
 

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::WindowGetFrameWeld () const
 
- Protected Attributes inherited from PanelLayout
std::unique_ptr< weld::Builderm_xBuilder
 
std::unique_ptr< weld::Containerm_xContainer
 
sfx2::sidebar::Panelm_pPanel
 

Detailed Description

Definition at line 100 of file navigatr.hxx.

Member Typedef Documentation

◆ UpdateRequestFunctor

typedef ::std::function<void ()> SdNavigatorWin::UpdateRequestFunctor

Definition at line 103 of file navigatr.hxx.

Constructor & Destructor Documentation

◆ SdNavigatorWin()

SdNavigatorWin::SdNavigatorWin ( weld::Widget pParent,
SfxBindings pBindings,
SfxNavigator pNavigatorDlg 
)

Create a new instance of the navigator.

SdNavigatorWin - FloatingWindow.

Parameters
bUseActiveUpdateWhen <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().

◆ ~SdNavigatorWin()

SdNavigatorWin::~SdNavigatorWin ( )
overridevirtual

Member Function Documentation

◆ DECL_DLLPRIVATE_LINK() [1/7]

SdNavigatorWin::DECL_DLLPRIVATE_LINK ( ClickObjectHdl  ,
weld::TreeView ,
bool   
)
private

◆ DECL_DLLPRIVATE_LINK() [2/7]

SdNavigatorWin::DECL_DLLPRIVATE_LINK ( DropdownClickToolBoxHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [3/7]

SdNavigatorWin::DECL_DLLPRIVATE_LINK ( KeyInputHdl  ,
const KeyEvent ,
bool   
)
private

◆ DECL_DLLPRIVATE_LINK() [4/7]

SdNavigatorWin::DECL_DLLPRIVATE_LINK ( MenuSelectHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [5/7]

SdNavigatorWin::DECL_DLLPRIVATE_LINK ( SelectDocumentHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [6/7]

SdNavigatorWin::DECL_DLLPRIVATE_LINK ( SelectToolboxHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_DLLPRIVATE_LINK() [7/7]

SdNavigatorWin::DECL_DLLPRIVATE_LINK ( ShapeFilterCallback  ,
const OUString &  ,
void   
)
private

◆ DECL_DLLPRIVATE_STATIC_LINK()

SdNavigatorWin::DECL_DLLPRIVATE_STATIC_LINK ( SdNavigatorWin  ,
MouseReleaseHdl  ,
const MouseEvent ,
bool   
)
private

◆ DECL_LINK()

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

◆ ExecuteContextMenuAction()

void SdNavigatorWin::ExecuteContextMenuAction ( std::u16string_view  rSelectedPopupEntry)
private

Definition at line 265 of file navigatr.cxx.

References GetObjects(), SdPageObjsTLV::start_editing(), and u.

◆ FirstFocus()

void SdNavigatorWin::FirstFocus ( )

Definition at line 104 of file navigatr.cxx.

References mxTlbObjects.

◆ FreshTree()

void SdNavigatorWin::FreshTree ( const SdDrawDocument pDoc)

◆ GetDocInfo()

NavDocInfo * SdNavigatorWin::GetDocInfo ( )
private

◆ GetDragTypeSdBmpId()

OUString SdNavigatorWin::GetDragTypeSdBmpId ( NavigatorDragType  eDT)
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().

◆ GetFrameWeld()

weld::Window * SdNavigatorWin::GetFrameWeld ( ) const
overridevirtual

Reimplemented from PanelLayout.

Definition at line 111 of file navigatr.cxx.

References PanelLayout::GetFrameWeld(), and mxNavigatorDlg.

◆ GetNavigatorDragType()

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().

◆ GetObjects()

SdPageObjsTLV & SdNavigatorWin::GetObjects ( )

◆ InitTreeLB()

void SdNavigatorWin::InitTreeLB ( const SdDrawDocument pDoc)

◆ InsertFile()

bool SdNavigatorWin::InsertFile ( const OUString &  rFileName)

◆ RefreshDocumentLB()

void SdNavigatorWin::RefreshDocumentLB ( const OUString *  pDocName = nullptr)

◆ SetDragImage()

void SdNavigatorWin::SetDragImage ( )
private

Definition at line 745 of file navigatr.cxx.

References GetDragTypeSdBmpId(), meDragType, and mxToolbox.

Referenced by SdNavigatorWin().

◆ SetUpdateRequestFunctor()

void SdNavigatorWin::SetUpdateRequestFunctor ( const UpdateRequestFunctor rUpdateRequest)

Friends And Related Function Documentation

◆ SdNavigatorControllerItem

friend class SdNavigatorControllerItem
friend

Definition at line 127 of file navigatr.hxx.

Referenced by SetUpdateRequestFunctor().

◆ SdNavigatorFloat

friend class SdNavigatorFloat
friend

Definition at line 126 of file navigatr.hxx.

◆ SdPageNameControllerItem

friend class SdPageNameControllerItem
friend

Definition at line 128 of file navigatr.hxx.

Referenced by SetUpdateRequestFunctor().

Member Data Documentation

◆ maDocList

std::vector<NavDocInfo> SdNavigatorWin::maDocList
private

Definition at line 141 of file navigatr.hxx.

Referenced by GetDocInfo(), and RefreshDocumentLB().

◆ maDropFileName

OUString SdNavigatorWin::maDropFileName
private

Definition at line 139 of file navigatr.hxx.

Referenced by InsertFile().

◆ mbDocImported

bool SdNavigatorWin::mbDocImported
private

Definition at line 138 of file navigatr.hxx.

Referenced by GetDocInfo(), and RefreshDocumentLB().

◆ meDragType

NavigatorDragType SdNavigatorWin::meDragType
private

Definition at line 140 of file navigatr.hxx.

Referenced by GetNavigatorDragType(), and SetDragImage().

◆ mpBindings

SfxBindings* SdNavigatorWin::mpBindings
private

Definition at line 142 of file navigatr.hxx.

Referenced by SdNavigatorWin(), and SetUpdateRequestFunctor().

◆ mpNavigatorCtrlItem

std::unique_ptr<SdNavigatorControllerItem> SdNavigatorWin::mpNavigatorCtrlItem
private

Definition at line 143 of file navigatr.hxx.

Referenced by SetUpdateRequestFunctor(), and ~SdNavigatorWin().

◆ mpPageNameCtrlItem

std::unique_ptr<SdPageNameControllerItem> SdNavigatorWin::mpPageNameCtrlItem
private

Definition at line 144 of file navigatr.hxx.

Referenced by SetUpdateRequestFunctor(), and ~SdNavigatorWin().

◆ mxDragModeMenu

std::unique_ptr<weld::Menu> SdNavigatorWin::mxDragModeMenu
private

Definition at line 133 of file navigatr.hxx.

Referenced by SdNavigatorWin(), and ~SdNavigatorWin().

◆ mxLbDocs

std::unique_ptr<weld::ComboBox> SdNavigatorWin::mxLbDocs
private

◆ mxNavigatorDlg

VclPtr<SfxNavigator> SdNavigatorWin::mxNavigatorDlg
private

Definition at line 136 of file navigatr.hxx.

Referenced by GetFrameWeld().

◆ mxShapeMenu

std::unique_ptr<weld::Menu> SdNavigatorWin::mxShapeMenu
private

Definition at line 134 of file navigatr.hxx.

Referenced by SdNavigatorWin(), and ~SdNavigatorWin().

◆ mxTlbObjects

std::unique_ptr<SdPageObjsTLV> SdNavigatorWin::mxTlbObjects
private

◆ mxToolbox

std::unique_ptr<weld::Toolbar> SdNavigatorWin::mxToolbox
private

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