45 : m_nCurrent(0), m_rMyShell(rShell)
119 if (bForwardWasDisabled) {
136 if (bForwardWasDisabled)
159 if (bBackWasDisabled)
181 if (bForwardWasEnabled) {
183 size_t number_ofm_entries =
m_entries.size();
185 int n = (number_ofm_entries - curr) / 2;
186 for (
int i = 0;
i <
n;
i++) {
190 if (*
m_entries.back()->GetPoint() != rPos)
213 if (bBackWasDisabled)
215 if (bForwardWasEnabled)
void Invalidate(sal_uInt16 nId)
void StartListening(SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
void EndListening(SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
SfxBindings & GetBindings()
SfxViewFrame & GetViewFrame() const
SwCursor * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
std::shared_ptr< SwUnoCursor > CreateUnoCursor(const SwPosition &rPos, bool bTableCursor=false)
void StartAllAction()
For all views of this document.
SwNavigationMgr(SwWrtShell &rShell)
Stack_t::size_type m_nCurrent
virtual void Notify(SfxBroadcaster &rBC, const SfxHint &rHint) override
bool addEntry(const SwPosition &rPos)
~SwNavigationMgr() override
void GotoSwPosition(const SwPosition &rPos)
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetPoint() const
bool HasMark() const
A PaM marks a selection if Point and Mark are distinct positions.
SfxBroadcaster m_aNotifier
Used by the UI to modify the document model.
const SwView & GetView() const
#define FN_NAVIGATION_FORWARD
#define FN_NAVIGATION_BACK
Marks a position in the document model.