]> git.lyx.org Git - features.git/commitdiff
resolve the layout.h <=> Layout.h conflict
authorAndré Pönitz <poenitz@gmx.net>
Sun, 29 Apr 2007 22:04:32 +0000 (22:04 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Sun, 29 Apr 2007 22:04:32 +0000 (22:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18099 a592a061-630c-0410-9148-cb99ea01b6c8

src/Layout.h
src/LyXText.h
src/Makefile.am
src/ParagraphParameters.h
src/frontends/controllers/ControlParagraph.h
src/frontends/qt4/QParagraph.cpp
src/frontends/qt4/QParagraph.h
src/layout.h [deleted file]
src/tex2lyx/preamble.cpp

index c30744f9263784f1fddfe656cd7e4e79ba8c2ef6..1c65f104674d20810d152f1937d017079e8fb372 100644 (file)
@@ -15,7 +15,6 @@
 #define LYX_LAYOUT_H
 
 #include "Font.h"
-#include "layout.h"
 #include "Spacing.h"
 #include "support/docstring.h"
 
@@ -27,6 +26,146 @@ namespace lyx {
 class Lexer;
 class TextClass;
 
+
+/// The different output types
+enum OutputType {
+       ///
+       LATEX = 1,
+       ///
+       DOCBOOK,
+       ///
+       LITERATE
+};
+
+
+/// The different margin types
+enum LYX_MARGIN_TYPE {
+       ///
+       MARGIN_MANUAL = 1,
+       ///
+       MARGIN_FIRST_DYNAMIC,
+       ///
+       MARGIN_DYNAMIC,
+       ///
+       MARGIN_STATIC,
+       ///
+       MARGIN_RIGHT_ADDRESS_BOX
+};
+
+
+///
+enum LyXAlignment {
+       ///
+       LYX_ALIGN_NONE = 0,
+       ///
+       LYX_ALIGN_BLOCK = 1,
+       ///
+       LYX_ALIGN_LEFT = 2,
+       ///
+       LYX_ALIGN_RIGHT = 4,
+       ///
+       LYX_ALIGN_CENTER = 8,
+       ///
+       LYX_ALIGN_LAYOUT = 16,
+       ///
+       LYX_ALIGN_SPECIAL = 32
+};
+
+///
+inline
+void operator|=(LyXAlignment & la1, LyXAlignment la2) {
+       la1 = static_cast<LyXAlignment>(la1 | la2);
+}
+
+
+/// The different LaTeX-Types
+enum LYX_LATEX_TYPES {
+       ///
+       LATEX_PARAGRAPH = 1,
+       ///
+       LATEX_COMMAND,
+       ///
+       LATEX_ENVIRONMENT,
+       ///
+       LATEX_ITEM_ENVIRONMENT,
+       ///
+       LATEX_BIB_ENVIRONMENT,
+       ///
+       LATEX_LIST_ENVIRONMENT
+};
+
+
+/// The different title types
+enum LYX_TITLE_LATEX_TYPES {
+       ///
+       TITLE_COMMAND_AFTER = 1,
+       ///
+       TITLE_ENVIRONMENT
+};
+
+
+/// The different label types
+enum LYX_LABEL_TYPES {
+       ///
+       LABEL_NO_LABEL,
+       ///
+       LABEL_MANUAL,
+       ///
+       LABEL_BIBLIO,
+       ///
+       LABEL_TOP_ENVIRONMENT,
+       ///
+       LABEL_CENTERED_TOP_ENVIRONMENT,
+
+       // the flushright labels following now must start with LABEL_STATIC
+       ///
+       LABEL_STATIC,
+       ///
+       LABEL_SENSITIVE,
+       ///
+       LABEL_COUNTER,
+       ///
+       LABEL_ENUMERATE,
+       ///
+       LABEL_ITEMIZE
+};
+
+
+///
+enum LYX_END_LABEL_TYPES {
+       ///
+       END_LABEL_NO_LABEL,
+       ///
+       END_LABEL_BOX,
+       ///
+       END_LABEL_FILLED_BOX,
+       ///
+       END_LABEL_STATIC,
+       ///
+       END_LABEL_ENUM_FIRST = END_LABEL_NO_LABEL,
+       ///
+       END_LABEL_ENUM_LAST = END_LABEL_STATIC
+};
+
+/* Fix labels are printed flushright, manual labels flushleft.
+ * MARGIN_MANUAL and MARGIN_FIRST_DYNAMIC are *only* for LABEL_MANUAL,
+ * MARGIN_DYNAMIC and MARGIN_STATIC are *not* for LABEL_MANUAL.
+ * This seems a funny restriction, but I think other combinations are
+ * not needed, so I will not change it yet.
+ * Correction: MARGIN_FIRST_DYNAMIC also usable with LABEL_STATIC
+ */
+
+
+/* There is a parindent and a parskip. Which one is used depends on the
+ * paragraph_separation-flag of the text-object.
+ * BUT: parindent is only thrown away, if a parskip is defined! So if you
+ * want a space between the paragraphs and a parindent at the same time,
+ * you should set parskip to zero and use topsep, parsep and bottomsep.
+ *
+ * The standard layout is an exception: its parindent is only set, if the
+ * previous paragraph is standard too. Well, this is LateX and it is good!
+ */
+
 ///
 class Layout {
 public:
index af7e7da2dbcd07f5da518761fcc2b1a5b831ec89..9435fee01bc663b87c2fd30d7a2a913ad72b6c56 100644 (file)
@@ -17,7 +17,7 @@
 #include "Bidi.h"
 #include "DispatchResult.h"
 #include "Font.h"
-#include "layout.h"
+#include "Layout.h"
 #include "lyxlayout_ptr_fwd.h"
 #include "ParagraphList.h"
 
index c79aa264434aee7a73a82e5453ed99528c7b3326..3862a0cf4abeb21f005eaa6963a423b72758edb5 100644 (file)
@@ -159,7 +159,8 @@ lyx_SOURCES = \
        LaTeXFeatures.cpp \
        LaTeXFeatures.h \
        LaTeX.h \
-       layout.h \
+       Layout.cpp \
+       Layout.h \
        Length.cpp \
        Length.h \
        lengthcommon.cpp \
@@ -177,8 +178,6 @@ lyx_SOURCES = \
        LyXFunc.cpp \
        LyXFunc.h \
        LyX.h \
-       Layout.cpp \
-       Layout.h \
        lyxlayout_ptr_fwd.h \
        LyXRC.cpp \
        LyXRC.h \
index cbbc2759a4e879870369a9051dc0ce0dc909df48..6fb9e2bc32343b06f1e1e78518a2d8f2cd0071d3 100644 (file)
@@ -14,7 +14,7 @@
 #ifndef PARAGRAPHPARAMETERS_H
 #define PARAGRAPHPARAMETERS_H
 
-#include "layout.h"
+#include "Layout.h"
 #include "Length.h"
 #include "Spacing.h"
 
index 8448c85d45d9f2472df850d2c01589fd407b3f04..f984a37b415d2d15be72112a51c69ed1117b1108 100644 (file)
@@ -13,7 +13,7 @@
 #define CONTROLPARAGRAPH_H
 
 #include "Dialog.h"
-#include "layout.h" // for LyXAlignment
+#include "Layout.h" // for LyXAlignment
 
 namespace lyx {
 
index 00d8ee428cb731b9c2003a5c32f71852628e3e1b..6ae51fafcf44473b9d859a12673d8bb34cda42f1 100644 (file)
@@ -18,7 +18,6 @@
 #include "debug.h"
 #include "ParagraphParameters.h"
 #include "Spacing.h"
-#include "layout.h"
 
 #include "controllers/ControlParagraph.h"
 #include "controllers/frontend_helpers.h"
index 17941db89c02502b1bc73b3c14e91828b38e0d5a..1ccb8aea01edaee7e1d9b0b671a1509a3412385e 100644 (file)
 
 #include "QDialogView.h"
 
-#include <map>
+#include "Layout.h"
+#include "ui/ParagraphUi.h"
+
 #include <QDialog>
 #include <QCloseEvent>
-#include "layout.h"
-#include "ui/ParagraphUi.h"
+
+#include <map>
 
 namespace lyx {
 namespace frontend {
diff --git a/src/layout.h b/src/layout.h
deleted file mode 100644 (file)
index 2d62584..0000000
+++ /dev/null
@@ -1,159 +0,0 @@
-// -*- C++ -*-
-/**
- * \file layout.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author Lars Gullik Bjønnes
- * \author Jean-Marc Lasgouttes
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef LAYOUT_H
-#define LAYOUT_H
-
-namespace lyx {
-
-/// The different output types
-enum OutputType {
-       ///
-       LATEX = 1,
-       ///
-       DOCBOOK,
-       ///
-       LITERATE
-};
-
-
-/// The different margin types
-enum LYX_MARGIN_TYPE {
-       ///
-       MARGIN_MANUAL = 1,
-       ///
-       MARGIN_FIRST_DYNAMIC,
-       ///
-       MARGIN_DYNAMIC,
-       ///
-       MARGIN_STATIC,
-       ///
-       MARGIN_RIGHT_ADDRESS_BOX
-};
-
-
-///
-enum LyXAlignment {
-       ///
-       LYX_ALIGN_NONE = 0,
-       ///
-       LYX_ALIGN_BLOCK = 1,
-       ///
-       LYX_ALIGN_LEFT = 2,
-       ///
-       LYX_ALIGN_RIGHT = 4,
-       ///
-       LYX_ALIGN_CENTER = 8,
-       ///
-       LYX_ALIGN_LAYOUT = 16,
-       ///
-       LYX_ALIGN_SPECIAL = 32
-};
-
-///
-inline
-void operator|=(LyXAlignment & la1, LyXAlignment la2) {
-       la1 = static_cast<LyXAlignment>(la1 | la2);
-}
-
-
-/// The different LaTeX-Types
-enum LYX_LATEX_TYPES {
-       ///
-       LATEX_PARAGRAPH = 1,
-       ///
-       LATEX_COMMAND,
-       ///
-       LATEX_ENVIRONMENT,
-       ///
-       LATEX_ITEM_ENVIRONMENT,
-       ///
-       LATEX_BIB_ENVIRONMENT,
-       ///
-       LATEX_LIST_ENVIRONMENT
-};
-
-
-/// The different title types
-enum LYX_TITLE_LATEX_TYPES {
-       ///
-       TITLE_COMMAND_AFTER = 1,
-       ///
-       TITLE_ENVIRONMENT
-};
-
-
-/// The different label types
-enum LYX_LABEL_TYPES {
-       ///
-       LABEL_NO_LABEL,
-       ///
-       LABEL_MANUAL,
-       ///
-       LABEL_BIBLIO,
-       ///
-       LABEL_TOP_ENVIRONMENT,
-       ///
-       LABEL_CENTERED_TOP_ENVIRONMENT,
-
-       // the flushright labels following now must start with LABEL_STATIC
-       ///
-       LABEL_STATIC,
-       ///
-       LABEL_SENSITIVE,
-       ///
-       LABEL_COUNTER,
-       ///
-       LABEL_ENUMERATE,
-       ///
-       LABEL_ITEMIZE
-};
-
-
-///
-enum LYX_END_LABEL_TYPES {
-       ///
-       END_LABEL_NO_LABEL,
-       ///
-       END_LABEL_BOX,
-       ///
-       END_LABEL_FILLED_BOX,
-       ///
-       END_LABEL_STATIC,
-       ///
-       END_LABEL_ENUM_FIRST = END_LABEL_NO_LABEL,
-       ///
-       END_LABEL_ENUM_LAST = END_LABEL_STATIC
-};
-
-/* Fix labels are printed flushright, manual labels flushleft.
- * MARGIN_MANUAL and MARGIN_FIRST_DYNAMIC are *only* for LABEL_MANUAL,
- * MARGIN_DYNAMIC and MARGIN_STATIC are *not* for LABEL_MANUAL.
- * This seems a funny restriction, but I think other combinations are
- * not needed, so I will not change it yet.
- * Correction: MARGIN_FIRST_DYNAMIC also usable with LABEL_STATIC
- */
-
-
-/* There is a parindent and a parskip. Which one is used depends on the
- * paragraph_separation-flag of the text-object.
- * BUT: parindent is only thrown away, if a parskip is defined! So if you
- * want a space between the paragraphs and a parindent at the same time,
- * you should set parskip to zero and use topsep, parsep and bottomsep.
- *
- * The standard layout is an exception: its parindent is only set, if the
- * previous paragraph is standard too. Well, this is LateX and it is good!
- */
-
-} // namespace lyx
-
-#endif
index 299b48f819f05525149d5bce05381d9b7d639be0..bb47315d43894c359b5715682994131907c022e3 100644 (file)
@@ -14,9 +14,9 @@
 
 #include "tex2lyx.h"
 
-#include "layout.h"
-#include "TextClass.h"
+#include "Layout.h"
 #include "Lexer.h"
+#include "TextClass.h"
 #include "support/filetools.h"
 #include "support/lstrings.h"