Reduce includes in header files

This commit is contained in:
Yuriy Skalko 2020-10-19 11:51:00 +03:00
parent 65c88f0a0a
commit fa6ac23e1c
14 changed files with 17 additions and 14 deletions

View File

@ -17,8 +17,6 @@
#include "support/docstring.h" #include "support/docstring.h"
#include "Citation.h"
#include <map> #include <map>
#include <set> #include <set>
#include <vector> #include <vector>
@ -28,6 +26,8 @@ namespace lyx {
class Buffer; class Buffer;
class BufferParams; class BufferParams;
class CitationStyle;
class CiteItem;
class XMLStream; class XMLStream;
/// \param latex_str a LaTeX command, "cite", "Citep*", etc /// \param latex_str a LaTeX command, "cite", "Citep*", etc

View File

@ -17,7 +17,6 @@
#include "support/unique_ptr.h" #include "support/unique_ptr.h"
#include "support/strfwd.h" #include "support/strfwd.h"
#include "support/types.h" #include "support/types.h"
#include "support/FileNameList.h"
#include <map> #include <map>
#include <list> #include <list>
@ -66,6 +65,7 @@ class WorkAreaManager;
namespace support { namespace support {
class DocFileName; class DocFileName;
class FileName; class FileName;
class FileNameList;
} // namespace support } // namespace support
namespace graphics { namespace graphics {

View File

@ -46,7 +46,6 @@ class MathData;
class MathRow; class MathRow;
class ParagraphMetrics; class ParagraphMetrics;
class Point; class Point;
class TexRow;
class Text; class Text;
class TextMetrics; class TextMetrics;

View File

@ -14,7 +14,6 @@
#include "CiteEnginesList.h" #include "CiteEnginesList.h"
#include "Citation.h"
#include "LaTeXFeatures.h" #include "LaTeXFeatures.h"
#include "Lexer.h" #include "Lexer.h"

View File

@ -12,6 +12,7 @@
#include "CmdDef.h" #include "CmdDef.h"
#include "FuncRequest.h"
#include "LyXAction.h" #include "LyXAction.h"
#include "Lexer.h" #include "Lexer.h"

View File

@ -12,8 +12,6 @@
#ifndef CMDDEF_H #ifndef CMDDEF_H
#define CMDDEF_H #define CMDDEF_H
#include "FuncRequest.h"
#include "support/strfwd.h" #include "support/strfwd.h"
#include <map> #include <map>
@ -21,6 +19,8 @@
namespace lyx { namespace lyx {
class FuncRequest;
/// Creates command definitions /// Creates command definitions
class CmdDef { class CmdDef {
private: private:

View File

@ -13,6 +13,7 @@
#include "Compare.h" #include "Compare.h"
#include "Author.h" #include "Author.h"
#include "Buffer.h"
#include "BufferParams.h" #include "BufferParams.h"
#include "Changes.h" #include "Changes.h"
#include "CutAndPaste.h" #include "CutAndPaste.h"

View File

@ -12,8 +12,6 @@
#ifndef COMPARE_H #ifndef COMPARE_H
#define COMPARE_H #define COMPARE_H
#include "Buffer.h"
#include <QObject> #include <QObject>
#include <QThread> #include <QThread>
#include <QTimer> #include <QTimer>
@ -22,6 +20,8 @@
namespace lyx { namespace lyx {
class Buffer;
/** /**
* The options that are used by the Comparison algorithm * The options that are used by the Comparison algorithm
* and are set in the GuiCompare Dialog. * and are set in the GuiCompare Dialog.

View File

@ -15,6 +15,7 @@
#include "DepTable.h" #include "DepTable.h"
#include "support/debug.h" #include "support/debug.h"
#include "support/FileName.h"
#include "support/filetools.h" #include "support/filetools.h"
#include "support/lstrings.h" #include "support/lstrings.h"
#include "support/lyxtime.h" #include "support/lyxtime.h"

View File

@ -13,14 +13,15 @@
#ifndef DEP_TABLE_H #ifndef DEP_TABLE_H
#define DEP_TABLE_H #define DEP_TABLE_H
#include "support/FileName.h" #include <ctime>
#include <map> #include <map>
#include <string> #include <string>
namespace lyx { namespace lyx {
namespace support { class FileName; }
/// ///
class DepTable { class DepTable {
public: public:

View File

@ -13,7 +13,6 @@
#ifndef BASECLASSLIST_H #ifndef BASECLASSLIST_H
#define BASECLASSLIST_H #define BASECLASSLIST_H
#include "LayoutModuleList.h"
#include "TextClass.h" #include "TextClass.h"
#include "support/strfwd.h" #include "support/strfwd.h"
@ -24,6 +23,8 @@
namespace lyx { namespace lyx {
class LayoutModuleList;
/// Index into LayoutFileList. Basically a 'strong typedef'. /// Index into LayoutFileList. Basically a 'strong typedef'.
class LayoutFileIndex { class LayoutFileIndex {
public: public:

View File

@ -33,6 +33,7 @@ class FontInfo;
class FuncRequest; class FuncRequest;
class FuncStatus; class FuncStatus;
class Inset; class Inset;
class InsetText;
class Lexer; class Lexer;
class PainterInfo; class PainterInfo;
class Spacing; class Spacing;

View File

@ -15,7 +15,6 @@
#include "DocumentClassPtr.h" #include "DocumentClassPtr.h"
#include "FloatList.h" #include "FloatList.h"
#include "FontInfo.h" #include "FontInfo.h"
#include "Layout.h"
#include "LayoutEnums.h" #include "LayoutEnums.h"
#include "LayoutModuleList.h" #include "LayoutModuleList.h"
@ -38,7 +37,6 @@ namespace lyx {
namespace support { class FileName; } namespace support { class FileName; }
class Counters;
class FloatList; class FloatList;
class Layout; class Layout;
class LayoutFile; class LayoutFile;

View File

@ -22,6 +22,7 @@
#include "support/lassert.h" #include "support/lassert.h"
#include "support/convert.h" #include "support/convert.h"
#include "support/debug.h" #include "support/debug.h"
#include "support/FileName.h"
#include "support/filetools.h" #include "support/filetools.h"
#include "support/gettext.h" #include "support/gettext.h"
#include "support/lstrings.h" #include "support/lstrings.h"