| 1 | /* |
|---|---|
| 2 | SPDX-FileCopyrightText: KDE Developers |
| 3 | |
| 4 | SPDX-License-Identifier: LGPL-2.0-or-later |
| 5 | */ |
| 6 | |
| 7 | #include "kateabstractinputmode.h" |
| 8 | #include "kateviewinternal.h" |
| 9 | |
| 10 | KateAbstractInputMode::KateAbstractInputMode(KateViewInternal *viewInternal) |
| 11 | : m_viewInternal(viewInternal) |
| 12 | , m_view(viewInternal->view()) |
| 13 | { |
| 14 | } |
| 15 | |
| 16 | KateLayoutCache *KateAbstractInputMode::layoutCache() const |
| 17 | { |
| 18 | return m_viewInternal->cache(); |
| 19 | } |
| 20 | |
| 21 | void KateAbstractInputMode::updateCursor(const KTextEditor::Cursor c) |
| 22 | { |
| 23 | m_viewInternal->updateCursor(newCursor: c); |
| 24 | } |
| 25 | |
| 26 | int KateAbstractInputMode::linesDisplayed() const |
| 27 | { |
| 28 | return m_viewInternal->linesDisplayed(); |
| 29 | } |
| 30 | |
| 31 | void KateAbstractInputMode::scrollViewLines(int offset) |
| 32 | { |
| 33 | return m_viewInternal->scrollViewLines(offset); |
| 34 | } |
| 35 |
