From fbefdb10a5dca5b26d6958b3be5a407a1b18ef5f Mon Sep 17 00:00:00 2001 From: Yuriy Skalko Date: Thu, 15 Oct 2020 09:59:01 +0300 Subject: [PATCH] Move Cursor.h from Clipboard.h --- src/CutAndPaste.h | 4 ++++ src/LyX.cpp | 1 + src/frontends/Clipboard.h | 5 +++-- src/frontends/qt/GuiApplication.cpp | 1 + src/frontends/qt/Menus.cpp | 1 + src/insets/InsetInfo.cpp | 1 + src/insets/InsetLabel.cpp | 1 + src/mathed/InsetMathHull.cpp | 1 + 8 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/CutAndPaste.h b/src/CutAndPaste.h index 54ca4e3dfd..fe68be5e20 100644 --- a/src/CutAndPaste.h +++ b/src/CutAndPaste.h @@ -18,6 +18,8 @@ #include "support/docstring.h" +#include "insets/Inset.h" + #include "frontends/Clipboard.h" #include @@ -28,6 +30,8 @@ namespace lyx { class ErrorList; class InsetText; class Cursor; +class CursorData; +class CursorSlice; class ParagraphList; namespace cap { diff --git a/src/LyX.cpp b/src/LyX.cpp index a8bfd60543..180c4d335b 100644 --- a/src/LyX.cpp +++ b/src/LyX.cpp @@ -27,6 +27,7 @@ #include "ConverterCache.h" #include "Converter.h" #include "CutAndPaste.h" +#include "DispatchResult.h" #include "EnchantChecker.h" #include "Encoding.h" #include "ErrorList.h" diff --git a/src/frontends/Clipboard.h b/src/frontends/Clipboard.h index af617f5aec..ce85ab6a07 100644 --- a/src/frontends/Clipboard.h +++ b/src/frontends/Clipboard.h @@ -14,11 +14,12 @@ #ifndef BASE_CLIPBOARD_H #define BASE_CLIPBOARD_H -#include "Cursor.h" - #include "support/strfwd.h" namespace lyx { + +class Cursor; + namespace frontend { /** diff --git a/src/frontends/qt/GuiApplication.cpp b/src/frontends/qt/GuiApplication.cpp index 9981f7f70b..4d88135f75 100644 --- a/src/frontends/qt/GuiApplication.cpp +++ b/src/frontends/qt/GuiApplication.cpp @@ -37,6 +37,7 @@ #include "CmdDef.h" #include "Color.h" #include "Converter.h" +#include "Cursor.h" #include "CutAndPaste.h" #include "ErrorList.h" #include "Font.h" diff --git a/src/frontends/qt/Menus.cpp b/src/frontends/qt/Menus.cpp index 5bf058f8b0..afe43c70f1 100644 --- a/src/frontends/qt/Menus.cpp +++ b/src/frontends/qt/Menus.cpp @@ -31,6 +31,7 @@ #include "BufferParams.h" #include "BufferView.h" #include "Converter.h" +#include "Cursor.h" #include "CutAndPaste.h" #include "Floating.h" #include "FloatList.h" diff --git a/src/insets/InsetInfo.cpp b/src/insets/InsetInfo.cpp index b96d7c9d89..3a61dfdccd 100644 --- a/src/insets/InsetInfo.cpp +++ b/src/insets/InsetInfo.cpp @@ -15,6 +15,7 @@ #include "Buffer.h" #include "BufferParams.h" #include "BufferView.h" +#include "Cursor.h" #include "CutAndPaste.h" #include "Font.h" #include "FuncRequest.h" diff --git a/src/insets/InsetLabel.cpp b/src/insets/InsetLabel.cpp index ffa267478e..eeced08451 100644 --- a/src/insets/InsetLabel.cpp +++ b/src/insets/InsetLabel.cpp @@ -18,6 +18,7 @@ #include "Buffer.h" #include "BufferParams.h" #include "BufferView.h" +#include "Cursor.h" #include "CutAndPaste.h" #include "DispatchResult.h" #include "FuncRequest.h" diff --git a/src/mathed/InsetMathHull.cpp b/src/mathed/InsetMathHull.cpp index ebf8843d79..70d057cd10 100644 --- a/src/mathed/InsetMathHull.cpp +++ b/src/mathed/InsetMathHull.cpp @@ -26,6 +26,7 @@ #include "BufferParams.h" #include "BufferView.h" #include "ColorSet.h" +#include "Cursor.h" #include "CutAndPaste.h" #include "Encoding.h" #include "Exporter.h"