summaryrefslogtreecommitdiff
path: root/sw/inc/extinput.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-04-05 13:18:07 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-06-07 12:14:11 +0200
commit8e156f009e29a90883c2536943f338be163dad45 (patch)
tree9062fa4f9f44f5d2366e2fbdd45ef3a2a9cdf04c /sw/inc/extinput.hxx
parentd155f7af035e0fd818340c1affe41d3b6e97b502 (diff)
provide overrides of GetNext/GetPrev in SwPaM subclasses
so we don't need to cast at the call sites. Also fix the type of mpExtInputRing in SwDoc Change-Id: I60794a4b5c24ca552eafa87b8810dc08efdee3ea Reviewed-on: https://gerrit.libreoffice.org/52455 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc/extinput.hxx')
-rw-r--r--sw/inc/extinput.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/extinput.hxx b/sw/inc/extinput.hxx
index 262471bf2711..5fcda8748c88 100644
--- a/sw/inc/extinput.hxx
+++ b/sw/inc/extinput.hxx
@@ -42,6 +42,11 @@ public:
bool IsOverwriteCursor() const { return bIsOverwriteCursor; }
void SetOverwriteCursor( bool bFlag );
void SetLanguage(LanguageType eSet) { eInputLanguage = eSet;}
+
+ SwExtTextInput* GetNext() { return static_cast<SwExtTextInput *>(GetNextInRing()); }
+ const SwExtTextInput* GetNext() const { return static_cast<SwExtTextInput const *>(GetNextInRing()); }
+ SwExtTextInput* GetPrev() { return static_cast<SwExtTextInput *>(GetPrevInRing()); }
+ const SwExtTextInput* GetPrev() const { return static_cast<SwExtTextInput const *>(GetPrevInRing()); }
};
#endif // INCLUDED_SW_INC_EXTINPUT_HXX