[LyX/master] Move Cursor.h from Clipboard.h

Yuriy Skalko yuriy.skalko at gmail.com
Fri Oct 16 04:47:58 UTC 2020


commit fbefdb10a5dca5b26d6958b3be5a407a1b18ef5f
Author: Yuriy Skalko <yuriy.skalko at gmail.com>
Date:   Thu Oct 15 09:59:01 2020 +0300

    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 54ca4e3..fe68be5 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 <vector>
@@ -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 a8bfd60..180c4d3 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 af617f5..ce85ab6 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 9981f7f..4d88135 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 5bf058f..afe43c7 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 b96d7c9..3a61dfd 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 ffa2674..eeced08 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 ebf8843..70d057c 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"


More information about the lyx-cvs mailing list