From 82309f0c2df9a10a119e3f3d5ce97c81b3113d69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Thu, 20 Sep 2007 20:44:08 +0000 Subject: [PATCH] Remove a few includes from Text.h git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@20386 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/Layout.h | 14 +++++++------- src/Text.h | 9 +-------- src/Text3.cpp | 1 + src/TextMetrics.cpp | 1 + src/buffer_funcs.cpp | 1 + src/buffer_funcs.h | 1 - src/insets/InsetTabular.h | 6 +++--- src/mathed/InsetMathNest.cpp | 1 + 8 files changed, 15 insertions(+), 19 deletions(-) diff --git a/src/Layout.h b/src/Layout.h index 669aeb364e..ee5905f141 100644 --- a/src/Layout.h +++ b/src/Layout.h @@ -205,9 +205,9 @@ public: /// std::string const & latexname() const { return latexname_; } /// - lyx::docstring const & labelstring() const { return labelstring_; } + docstring const & labelstring() const { return labelstring_; } /// - lyx::docstring const & endlabelstring() const { return endlabelstring_; } + docstring const & endlabelstring() const { return endlabelstring_; } /// docstring const & preamble() const { return preamble_; } /// @@ -219,7 +219,7 @@ public: /// std::string const & itemtag() const { return itemtag_; } /// - lyx::docstring const & labelstring_appendix() const { + docstring const & labelstring_appendix() const { return labelstring_appendix_; } /** Default font for this layout/environment. @@ -341,7 +341,7 @@ public: /// Does this layout allow for an optional parameter? int optionalargs; /// Which counter to step - lyx::docstring counter; + docstring counter; /// Depth of XML command int commanddepth; @@ -369,11 +369,11 @@ private: /// LaTeX name for environment std::string latexname_; /// Label string. "Abstract", "Reference", "Caption"... - lyx::docstring labelstring_; + docstring labelstring_; /// - lyx::docstring endlabelstring_; + docstring endlabelstring_; /// Label string inside appendix. "Appendix", ... - lyx::docstring labelstring_appendix_; + docstring labelstring_appendix_; /// LaTeX parameter for environment std::string latexparam_; /// Internal tag to use (e.g., for sect header) diff --git a/src/Text.h b/src/Text.h index ba665b7f3b..a28353c2b0 100644 --- a/src/Text.h +++ b/src/Text.h @@ -14,16 +14,8 @@ #ifndef TEXT_H #define TEXT_H -#include "Bidi.h" -#include "DispatchResult.h" -#include "Font.h" -#include "Layout.h" -#include "lyxlayout_ptr_fwd.h" #include "ParagraphList.h" -#include - - namespace lyx { class Buffer; @@ -32,6 +24,7 @@ class BufferView; class CursorSlice; class DocIterator; class ErrorList; +class Font; class FuncRequest; class FuncStatus; class Inset; diff --git a/src/Text3.cpp b/src/Text3.cpp index c6f1e707b7..3da55c9caa 100644 --- a/src/Text3.cpp +++ b/src/Text3.cpp @@ -17,6 +17,7 @@ #include "Text.h" +#include "Bidi.h" #include "BranchList.h" #include "FloatList.h" #include "FuncStatus.h" diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index b1e116057e..837a4b682e 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -19,6 +19,7 @@ #include "TextMetrics.h" +#include "Bidi.h" #include "Buffer.h" #include "buffer_funcs.h" #include "BufferParams.h" diff --git a/src/buffer_funcs.cpp b/src/buffer_funcs.cpp index ee2a68a379..99d03cd960 100644 --- a/src/buffer_funcs.cpp +++ b/src/buffer_funcs.cpp @@ -27,6 +27,7 @@ #include "Language.h" #include "LaTeX.h" #include "LyX.h" +#include "lyxlayout_ptr_fwd.h" #include "TextClass.h" #include "TextClassList.h" #include "Paragraph.h" diff --git a/src/buffer_funcs.h b/src/buffer_funcs.h index 044db3fc84..1316fc1afd 100644 --- a/src/buffer_funcs.h +++ b/src/buffer_funcs.h @@ -12,7 +12,6 @@ #ifndef BUFFER_FUNCS_H #define BUFFER_FUNCS_H -#include "lyxlayout_ptr_fwd.h" #include "support/docstring.h" #include diff --git a/src/insets/InsetTabular.h b/src/insets/InsetTabular.h index 90df5c8121..22d4a0fcae 100644 --- a/src/insets/InsetTabular.h +++ b/src/insets/InsetTabular.h @@ -37,10 +37,10 @@ #define INSETTABULAR_H #include "Inset.h" -#include "MailInset.h" -#include "Length.h" #include "InsetText.h" - +#include "Layout.h" +#include "Length.h" +#include "MailInset.h" #include diff --git a/src/mathed/InsetMathNest.cpp b/src/mathed/InsetMathNest.cpp index d4c280a7c5..28b799ffb7 100644 --- a/src/mathed/InsetMathNest.cpp +++ b/src/mathed/InsetMathNest.cpp @@ -33,6 +33,7 @@ #include "MathStream.h" #include "MathSupport.h" +#include "Bidi.h" #include "bufferview_funcs.h" #include "BufferView.h" #include "Color.h" -- 2.39.2