LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SwNavigationPI Class Referencefinal

#include <navipi.hxx>

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

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
 
SwViewGetCreateView () const
 
virtual weld::WindowGetFrameWeld () 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
 
SfxBroadcasterGetBroadcasterJOE (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< PanelLayoutCreate (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 ()
 

Private Attributes

::sfx2::sidebar::ControllerItem m_aDocFullName
 
::sfx2::sidebar::ControllerItem m_aPageStats
 
std::unique_ptr< weld::Toolbarm_xContent1ToolBox
 
std::unique_ptr< weld::Toolbarm_xContent2ToolBox
 
std::unique_ptr< weld::Toolbarm_xContent3ToolBox
 
std::unique_ptr< weld::Toolbarm_xContent4ToolBox
 
std::unique_ptr< weld::Toolbarm_xContent5ToolBox
 
std::unique_ptr< weld::Toolbarm_xContent6ToolBox
 
std::unique_ptr< ToolbarUnoDispatcherm_xContent2Dispatch
 
std::unique_ptr< ToolbarUnoDispatcherm_xContent3Dispatch
 
std::unique_ptr< weld::Menum_xHeadingsMenu
 
std::unique_ptr< weld::Menum_xDragModeMenu
 
std::unique_ptr< weld::Menum_xUpdateMenu
 
std::unique_ptr< weld::Menum_xInsertMenu
 
std::unique_ptr< weld::Toolbarm_xGlobalToolBox
 
std::unique_ptr< weld::SpinButtonm_xEdit
 
std::unique_ptr< weld::Widgetm_xContentBox
 
std::unique_ptr< SwContentTreem_xContentTree
 
std::unique_ptr< weld::Widgetm_xGlobalBox
 
std::unique_ptr< SwGlobalTreem_xGlobalTree
 
std::unique_ptr< weld::ComboBoxm_xDocListBox
 
Idle m_aPageChgIdle
 
OUString m_sContentFileName
 
OUString m_aStatusArr [4]
 
VclPtr< SfxNavigatorm_xNavigatorDlg
 
std::optional< SfxObjectShellLockm_oObjectShell
 
SwViewm_pContentView
 
SwWrtShellm_pContentWrtShell
 
SwViewm_pActContView
 
SwViewm_pCreateView
 
SwNavigationConfigm_pConfig
 
SfxBindingsm_rBindings
 
RegionMode m_nRegionMode
 
Size m_aExpandedSize
 
bool m_bIsZoomedIn: 1
 
bool m_bGlobalMode: 1
 
weld::ComboBoxm_pNavigateByComboBox
 

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::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 43 of file navipi.hxx.

Constructor & Destructor Documentation

◆ SwNavigationPI()

SwNavigationPI::SwNavigationPI ( weld::Widget pParent,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &  rxFrame,
SfxBindings _pBindings,
SfxNavigator pNavigatorDlg 
)

◆ ~SwNavigationPI()

SwNavigationPI::~SwNavigationPI ( )
overridevirtual

Member Function Documentation

◆ AcceptDrop()

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

◆ CleanEntry()

OUString SwNavigationPI::CleanEntry ( const OUString &  rEntry)
static

Definition at line 58 of file navipi.cxx.

References i.

Referenced by SwContentType::FillMemberList().

◆ Create()

std::unique_ptr< PanelLayout > SwNavigationPI::Create ( weld::Widget pParent,
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > &  rxFrame,
SfxBindings pBindings 
)
static

Definition at line 499 of file navipi.cxx.

◆ CreateDropFileName()

OUString SwNavigationPI::CreateDropFileName ( const TransferableDataHelper rData)
static

◆ DECL_LINK() [1/15]

SwNavigationPI::DECL_LINK ( ChangePageHdl  ,
Timer ,
void   
)
private

◆ DECL_LINK() [2/15]

SwNavigationPI::DECL_LINK ( DocListBoxSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [3/15]

SwNavigationPI::DECL_LINK ( DoneLink  ,
SfxPoolItem const *  ,
void   
)
private

◆ DECL_LINK() [4/15]

SwNavigationPI::DECL_LINK ( DropModeMenuSelectHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [5/15]

SwNavigationPI::DECL_LINK ( EditActionHdl  ,
weld::Entry ,
bool   
)
private

◆ DECL_LINK() [6/15]

SwNavigationPI::DECL_LINK ( GlobalMenuSelectHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [7/15]

SwNavigationPI::DECL_LINK ( HeadingsMenuSelectHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [8/15]

SwNavigationPI::DECL_LINK ( NavigateByComboBoxSelectHdl  ,
weld::ComboBox ,
void   
)
private

◆ DECL_LINK() [9/15]

SwNavigationPI::DECL_LINK ( PageEditModifyHdl  ,
weld::SpinButton ,
void   
)
private

◆ DECL_LINK() [10/15]

SwNavigationPI::DECL_LINK ( PageModifiedHdl  ,
weld::Entry ,
void   
)
private

◆ DECL_LINK() [11/15]

SwNavigationPI::DECL_LINK ( SetFocusChildHdl  ,
weld::Container ,
void   
)
private

◆ DECL_LINK() [12/15]

SwNavigationPI::DECL_LINK ( ToolBox5DropdownClickHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [13/15]

SwNavigationPI::DECL_LINK ( ToolBox6DropdownClickHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [14/15]

SwNavigationPI::DECL_LINK ( ToolBoxClickHdl  ,
const OUString &  ,
void   
)
private

◆ DECL_LINK() [15/15]

SwNavigationPI::DECL_LINK ( ToolBoxSelectHdl  ,
const OUString &  ,
void   
)
private

◆ EditAction()

bool SwNavigationPI::EditAction ( )
private

◆ ExecuteDrop()

sal_Int8 SwNavigationPI::ExecuteDrop ( const ExecuteDropEvent rEvt)

◆ FillBox()

void SwNavigationPI::FillBox ( )
private

◆ GetControlState()

virtual void SwNavigationPI::GetControlState ( const  sal_uInt16,
boost::property_tree::ptree &   
)
inlineoverridevirtual

◆ GetCreateView()

SwView * SwNavigationPI::GetCreateView ( ) const

◆ GetFrameWeld()

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

Reimplemented from PanelLayout.

Definition at line 727 of file navipi.cxx.

References PanelLayout::GetFrameWeld(), and m_xNavigatorDlg.

Referenced by SwGlobalTree::InsertRegion().

◆ GetRegionDropMode()

RegionMode SwNavigationPI::GetRegionDropMode ( ) const
inline

Definition at line 154 of file navipi.hxx.

References m_nRegionMode.

Referenced by SwContentTree::FillTransferData().

◆ IsGlobalDoc()

bool SwNavigationPI::IsGlobalDoc ( ) const

◆ IsGlobalMode()

bool SwNavigationPI::IsGlobalMode ( ) const
inline

Definition at line 161 of file navipi.hxx.

References m_bGlobalMode.

Referenced by NotifyItemUpdate(), ToggleTree(), ZoomOut(), and ~SwNavigationPI().

◆ IsZoomedIn()

bool SwNavigationPI::IsZoomedIn ( ) const
inlineprivate

Definition at line 96 of file navipi.hxx.

References m_bIsZoomedIn.

Referenced by ToggleTree(), UpdateInitShow(), ZoomIn(), and ZoomOut().

◆ MoveOutline()

void SwNavigationPI::MoveOutline ( SwOutlineNodes::size_type  nSource,
SwOutlineNodes::size_type  nTarget 
)

◆ Notify()

void SwNavigationPI::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overrideprivatevirtual

◆ NotifyItemUpdate()

void SwNavigationPI::NotifyItemUpdate ( const sal_uInt16  nSId,
const SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual

◆ SelectNavigateByContentType()

void SwNavigationPI::SelectNavigateByContentType ( const OUString &  rContentTypeName)

◆ SetGlobalMode()

void SwNavigationPI::SetGlobalMode ( bool  bSet)
inlineprivate

Definition at line 127 of file navipi.hxx.

References m_bGlobalMode.

Referenced by ToggleTree().

◆ SetRegionDropMode()

void SwNavigationPI::SetRegionDropMode ( RegionMode  nNewMode)

◆ ToggleTree()

void SwNavigationPI::ToggleTree ( )
private

◆ UpdateInitShow()

void SwNavigationPI::UpdateInitShow ( )
private

◆ UpdateListBox()

void SwNavigationPI::UpdateListBox ( )

◆ UpdateNavigateBy()

void SwNavigationPI::UpdateNavigateBy ( )
private

◆ UsePage()

void SwNavigationPI::UsePage ( )
private

◆ ZoomIn()

void SwNavigationPI::ZoomIn ( )
private

◆ ZoomOut()

void SwNavigationPI::ZoomOut ( )
private

Friends And Related Function Documentation

◆ SwContentTree

friend class SwContentTree
friend

Definition at line 48 of file navipi.hxx.

◆ SwGlobalTree

friend class SwGlobalTree
friend

Definition at line 49 of file navipi.hxx.

◆ SwNavigatorWin

friend class SwNavigatorWin
friend

Definition at line 47 of file navipi.hxx.

Member Data Documentation

◆ m_aDocFullName

::sfx2::sidebar::ControllerItem SwNavigationPI::m_aDocFullName
private

Definition at line 51 of file navipi.hxx.

Referenced by ~SwNavigationPI().

◆ m_aExpandedSize

Size SwNavigationPI::m_aExpandedSize
private

Definition at line 89 of file navipi.hxx.

Referenced by SwNavigationPI(), ZoomIn(), and ZoomOut().

◆ m_aPageChgIdle

Idle SwNavigationPI::m_aPageChgIdle
private

Definition at line 73 of file navipi.hxx.

Referenced by EditAction(), SwNavigationPI(), and ~SwNavigationPI().

◆ m_aPageStats

::sfx2::sidebar::ControllerItem SwNavigationPI::m_aPageStats
private

Definition at line 52 of file navipi.hxx.

Referenced by ~SwNavigationPI().

◆ m_aStatusArr

OUString SwNavigationPI::m_aStatusArr[4]
private

Definition at line 75 of file navipi.hxx.

Referenced by SwNavigationPI(), and UpdateListBox().

◆ m_bGlobalMode

bool SwNavigationPI::m_bGlobalMode
private

Definition at line 92 of file navipi.hxx.

Referenced by IsGlobalMode(), and SetGlobalMode().

◆ m_bIsZoomedIn

bool SwNavigationPI::m_bIsZoomedIn
private

Definition at line 91 of file navipi.hxx.

Referenced by IsZoomedIn(), ZoomIn(), and ZoomOut().

◆ m_nRegionMode

RegionMode SwNavigationPI::m_nRegionMode
private

Definition at line 88 of file navipi.hxx.

Referenced by GetRegionDropMode(), and SetRegionDropMode().

◆ m_oObjectShell

std::optional<SfxObjectShellLock> SwNavigationPI::m_oObjectShell
private

Definition at line 79 of file navipi.hxx.

Referenced by ExecuteDrop(), and ~SwNavigationPI().

◆ m_pActContView

SwView* SwNavigationPI::m_pActContView
private

Definition at line 82 of file navipi.hxx.

Referenced by FillBox().

◆ m_pConfig

SwNavigationConfig* SwNavigationPI::m_pConfig
private

Definition at line 85 of file navipi.hxx.

Referenced by NotifyItemUpdate(), SetRegionDropMode(), SwNavigationPI(), ZoomIn(), and ZoomOut().

◆ m_pContentView

SwView* SwNavigationPI::m_pContentView
private

Definition at line 80 of file navipi.hxx.

◆ m_pContentWrtShell

SwWrtShell* SwNavigationPI::m_pContentWrtShell
private

Definition at line 81 of file navipi.hxx.

Referenced by FillBox().

◆ m_pCreateView

SwView* SwNavigationPI::m_pCreateView
private

Definition at line 83 of file navipi.hxx.

Referenced by EditAction(), GetCreateView(), and Notify().

◆ m_pNavigateByComboBox

weld::ComboBox* SwNavigationPI::m_pNavigateByComboBox
private

Definition at line 94 of file navipi.hxx.

Referenced by SelectNavigateByContentType(), SwNavigationPI(), and UpdateNavigateBy().

◆ m_rBindings

SfxBindings& SwNavigationPI::m_rBindings
private

Definition at line 86 of file navipi.hxx.

Referenced by GetCreateView().

◆ m_sContentFileName

OUString SwNavigationPI::m_sContentFileName
private

Definition at line 74 of file navipi.hxx.

Referenced by ExecuteDrop().

◆ m_xContent1ToolBox

std::unique_ptr<weld::Toolbar> SwNavigationPI::m_xContent1ToolBox
private

Definition at line 54 of file navipi.hxx.

Referenced by NotifyItemUpdate(), SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().

◆ m_xContent2Dispatch

std::unique_ptr<ToolbarUnoDispatcher> SwNavigationPI::m_xContent2Dispatch
private

Definition at line 60 of file navipi.hxx.

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

◆ m_xContent2ToolBox

std::unique_ptr<weld::Toolbar> SwNavigationPI::m_xContent2ToolBox
private

Definition at line 55 of file navipi.hxx.

Referenced by SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().

◆ m_xContent3Dispatch

std::unique_ptr<ToolbarUnoDispatcher> SwNavigationPI::m_xContent3Dispatch
private

Definition at line 61 of file navipi.hxx.

Referenced by ~SwNavigationPI().

◆ m_xContent3ToolBox

std::unique_ptr<weld::Toolbar> SwNavigationPI::m_xContent3ToolBox
private

Definition at line 56 of file navipi.hxx.

Referenced by SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().

◆ m_xContent4ToolBox

std::unique_ptr<weld::Toolbar> SwNavigationPI::m_xContent4ToolBox
private

Definition at line 57 of file navipi.hxx.

Referenced by SwNavigationPI(), ToggleTree(), and ~SwNavigationPI().

◆ m_xContent5ToolBox

std::unique_ptr<weld::Toolbar> SwNavigationPI::m_xContent5ToolBox
private

◆ m_xContent6ToolBox

std::unique_ptr<weld::Toolbar> SwNavigationPI::m_xContent6ToolBox
private

◆ m_xContentBox

std::unique_ptr<weld::Widget> SwNavigationPI::m_xContentBox
private

Definition at line 68 of file navipi.hxx.

Referenced by ToggleTree(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().

◆ m_xContentTree

std::unique_ptr<SwContentTree> SwNavigationPI::m_xContentTree
private

◆ m_xDocListBox

std::unique_ptr<weld::ComboBox> SwNavigationPI::m_xDocListBox
private

Definition at line 72 of file navipi.hxx.

Referenced by SwNavigationPI(), ToggleTree(), UpdateListBox(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().

◆ m_xDragModeMenu

std::unique_ptr<weld::Menu> SwNavigationPI::m_xDragModeMenu
private

Definition at line 63 of file navipi.hxx.

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

◆ m_xEdit

std::unique_ptr<weld::SpinButton> SwNavigationPI::m_xEdit
private

Definition at line 67 of file navipi.hxx.

Referenced by EditAction(), NotifyItemUpdate(), SwNavigationPI(), UsePage(), and ~SwNavigationPI().

◆ m_xGlobalBox

std::unique_ptr<weld::Widget> SwNavigationPI::m_xGlobalBox
private

Definition at line 70 of file navipi.hxx.

Referenced by SwNavigationPI(), ToggleTree(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().

◆ m_xGlobalToolBox

std::unique_ptr<weld::Toolbar> SwNavigationPI::m_xGlobalToolBox
private

◆ m_xGlobalTree

std::unique_ptr<SwGlobalTree> SwNavigationPI::m_xGlobalTree
private

Definition at line 71 of file navipi.hxx.

Referenced by Notify(), SwNavigationPI(), ToggleTree(), ZoomIn(), ZoomOut(), and ~SwNavigationPI().

◆ m_xHeadingsMenu

std::unique_ptr<weld::Menu> SwNavigationPI::m_xHeadingsMenu
private

Definition at line 62 of file navipi.hxx.

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

◆ m_xInsertMenu

std::unique_ptr<weld::Menu> SwNavigationPI::m_xInsertMenu
private

Definition at line 65 of file navipi.hxx.

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

◆ m_xNavigatorDlg

VclPtr<SfxNavigator> SwNavigationPI::m_xNavigatorDlg
private

Definition at line 77 of file navipi.hxx.

Referenced by GetFrameWeld(), SwNavigationPI(), UpdateInitShow(), ZoomIn(), and ZoomOut().

◆ m_xUpdateMenu

std::unique_ptr<weld::Menu> SwNavigationPI::m_xUpdateMenu
private

Definition at line 64 of file navipi.hxx.

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


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