LibreOffice Module sw (master) 1
|
#include <navmgr.hxx>
Public Member Functions | |
SwNavigationMgr (SwWrtShell &rShell) | |
~SwNavigationMgr () override | |
bool | backEnabled () |
bool | forwardEnabled () |
void | goBack () |
void | goForward () |
bool | addEntry (const SwPosition &rPos) |
virtual void | Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override |
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 Types | |
typedef std::vector< sw::UnoCursorPointer > | Stack_t |
Private Member Functions | |
void | GotoSwPosition (const SwPosition &rPos) |
Private Attributes | |
Stack_t | m_entries |
Stack_t::size_type | m_nCurrent |
SwWrtShell & | m_rMyShell |
Definition at line 20 of file navmgr.hxx.
|
private |
Definition at line 32 of file navmgr.hxx.
SwNavigationMgr::SwNavigationMgr | ( | SwWrtShell & | rShell | ) |
Definition at line 44 of file navmgr.cxx.
|
override |
Definition at line 49 of file navmgr.cxx.
References SfxListener::EndListening(), and m_entries.
bool SwNavigationMgr::addEntry | ( | const SwPosition & | rPos | ) |
Definition at line 168 of file navmgr.cxx.
References backEnabled(), SwDoc::CreateUnoCursor(), FN_NAVIGATION_BACK, FN_NAVIGATION_FORWARD, forwardEnabled(), SfxViewFrame::GetBindings(), SwViewShell::GetDoc(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), i, SfxBindings::Invalidate(), SwUnoCursor::m_aNotifier, m_entries, m_nCurrent, m_rMyShell, n, and SfxListener::StartListening().
Referenced by SwWrtShell::addCurrentPosition(), goBack(), SwWrtShell::GotoDrawingObject(), SwWrtShell::GotoFly(), SwWrtShell::GotoFootnoteAnchor(), SwWrtShell::GotoFormatField(), SwWrtShell::GotoINetAttr(), SwWrtShell::GotoMark(), SwWrtShell::GotoNextTOXBase(), SwWrtShell::GotoOutline(), SwWrtShell::GotoRedline(), SwWrtShell::GotoRefMark(), SwWrtShell::GotoRegion(), SwWrtShell::GotoTable(), and SwWrtShell::InsertFootnote().
bool SwNavigationMgr::backEnabled | ( | ) |
Definition at line 80 of file navmgr.cxx.
References m_nCurrent.
Referenced by addEntry(), SwNavigationShell::GetState(), goBack(), and goForward().
bool SwNavigationMgr::forwardEnabled | ( | ) |
Definition at line 90 of file navmgr.cxx.
References m_entries, and m_nCurrent.
Referenced by addEntry(), SwNavigationShell::GetState(), goBack(), and goForward().
void SwNavigationMgr::goBack | ( | ) |
Definition at line 98 of file navmgr.cxx.
References addEntry(), backEnabled(), FN_NAVIGATION_BACK, FN_NAVIGATION_FORWARD, forwardEnabled(), SfxViewFrame::GetBindings(), SwCursorShell::GetCursor(), SwPaM::GetPoint(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), GotoSwPosition(), SfxBindings::Invalidate(), m_entries, m_nCurrent, and m_rMyShell.
Referenced by SwNavigationShell::Execute(), and IMPL_LINK().
void SwNavigationMgr::goForward | ( | ) |
Definition at line 144 of file navmgr.cxx.
References backEnabled(), FN_NAVIGATION_BACK, FN_NAVIGATION_FORWARD, forwardEnabled(), SfxViewFrame::GetBindings(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), GotoSwPosition(), SfxBindings::Invalidate(), m_entries, m_nCurrent, and m_rMyShell.
Referenced by SwNavigationShell::Execute(), and IMPL_LINK().
|
private |
Definition at line 22 of file navmgr.cxx.
References SwPaM::DeleteMark(), SwEditShell::EndAllAction(), SwWrtShell::EnterStdMode(), SwCursorShell::GetCursor(), SwPaM::GetPoint(), SwPaM::HasMark(), m_rMyShell, and SwEditShell::StartAllAction().
Referenced by goBack(), and goForward().
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 59 of file navmgr.cxx.
References SfxListener::EndListening(), and m_entries.
|
private |
Definition at line 33 of file navmgr.hxx.
Referenced by addEntry(), forwardEnabled(), goBack(), goForward(), Notify(), and ~SwNavigationMgr().
|
private |
Definition at line 34 of file navmgr.hxx.
Referenced by addEntry(), backEnabled(), forwardEnabled(), goBack(), and goForward().
|
private |
Definition at line 35 of file navmgr.hxx.
Referenced by addEntry(), goBack(), goForward(), and GotoSwPosition().