]> git.lyx.org Git - lyx.git/commitdiff
trivial shit
authorJohn Levon <levon@movementarian.org>
Thu, 12 Sep 2002 14:58:06 +0000 (14:58 +0000)
committerJohn Levon <levon@movementarian.org>
Thu, 12 Sep 2002 14:58:06 +0000 (14:58 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5286 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/LyXAction.C
src/factory.C
src/factory.h
src/paragraph_funcs.C
src/paragraph_funcs.h

index 7be6f5ad428a986eb19c27afe64820e1e4a953cb..2b3a6127f825af82ed870051a61a248bbfc44261 100644 (file)
@@ -1,3 +1,13 @@
+2002-09-12  John Levon  <levon@movementarian.org>
+
+       * LyXAction.C: tidy
+
+       * factory.h:
+       * factory.C: add header
+       * paragraph_funcs.h:
+       * paragraph_funcs.C: cleanup
 2002-09-11  John Levon  <levon@movementarian.org>
 
        * PrinterParams.h: odd/even default to true
index 3d26ffe271c48f4ad7e26f3120d308d8cfb3ce6e..a7a5e794d589a9604496b2de45e1e4e86a0bf872 100644 (file)
@@ -536,10 +536,10 @@ string const LyXAction::getActionName(int action) const
        if (!ev.argument.empty())
                ev.argument.insert(0, " ");
 
-       info_map::const_iterator iit = lyx_info_map.find(ev.action);
+       info_map::const_iterator const it = lyx_info_map.find(ev.action);
 
-       if (iit != lyx_info_map.end())
-               return iit->second.name + ev.argument;
+       if (it != lyx_info_map.end())
+               return it->second.name + ev.argument;
        return string();
 }
 
index 520da4ba22b003ebcb4d355d0314be74805dee39..0efe69aa5d973e484c78ac0b5f1d8527e39d9c79 100644 (file)
@@ -1,3 +1,12 @@
+/**
+ * \file factory.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
+ *
+ * \author André Pönitz
+ *
+ * Full author contact details are available in file CREDITS
+ */
 
 #include "funcrequest.h"
 #include "bufferparams.h"
index 65da9ce2c609f1518579c4089c10f73df6c632c1..8a4a53dc86c16b6efb24aa8c6c48195c65ce0063 100644 (file)
@@ -1,12 +1,13 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file factory.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author André Pönitz
  *
- *           Copyright 2002 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef FACTORY_H
 #define FACTORY_H
index 597444fa1e5742c8b8f71cc7cc30726b70bb7829..7235db4f182c29538ce5b993dfad772ac9b6c158 100644 (file)
@@ -1,12 +1,12 @@
-/* This file is part of
- * ======================================================
+/**
+ * \file paragraph_funcs.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #include <config.h>
 
@@ -43,7 +43,7 @@ void breakParagraph(BufferParams const & bparams,
                tmp->setLabelWidthString(par->params().labelWidthString());
        }
 
-       bool isempty = (par->layout()->keepempty && par->empty());
+       bool const isempty = (par->layout()->keepempty && par->empty());
 
        if (!isempty && (par->size() > pos || par->empty() || flag == 2)) {
                tmp->layout(par->layout());
@@ -75,24 +75,24 @@ void breakParagraph(BufferParams const & bparams,
                }
        }
 
-       // just an idea of me
-       if (!pos) {
-               tmp->params().lineTop(par->params().lineTop());
-               tmp->params().pagebreakTop(par->params().pagebreakTop());
-               tmp->params().spaceTop(par->params().spaceTop());
-               tmp->bibkey = par->bibkey;
+       if (pos)
+               return;
+       tmp->params().lineTop(par->params().lineTop());
+       tmp->params().pagebreakTop(par->params().pagebreakTop());
+       tmp->params().spaceTop(par->params().spaceTop());
+       tmp->bibkey = par->bibkey;
 
-               par->bibkey = 0;
-               par->params().clear();
+       par->bibkey = 0;
+       par->params().clear();
 
-               par->layout(bparams.getLyXTextClass().defaultLayout());
+       par->layout(bparams.getLyXTextClass().defaultLayout());
 
-               // layout stays the same with latex-environments
-               if (flag) {
-                       par->layout(tmp->layout());
-                       par->setLabelWidthString(tmp->params().labelWidthString());
-                       par->params().depth(tmp->params().depth());
-               }
+       // layout stays the same with latex-environments
+       if (flag) {
+               par->layout(tmp->layout());
+               par->setLabelWidthString(tmp->params().labelWidthString());
+               par->params().depth(tmp->params().depth());
        }
 }
 
index c9322a56093fe947bd4aad44123c61787f13a320..ea54a654ebdcfe7f096dff4d3b5f864f32b09f9b 100644 (file)
@@ -1,13 +1,13 @@
 // -*- C++ -*-
-/* This file is part of
- * ======================================================
+/**
+ * \file paragraph_funcs.h
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
- *           LyX, The Document Processor
+ * \author Lars Gullik Bjønnes
  *
- *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2001 The LyX Team.
- *
- * ====================================================== */
+ * Full author contact details are available in file CREDITS
+ */
 
 #ifndef PARAGRAPH_FUNCS_H
 #define PARAGRAPH_FUNCS_H
@@ -49,4 +49,4 @@ bool isFirstInSequence(Paragraph * par);
 int getEndLabel(Paragraph * para, BufferParams const & bparams);
 #endif
 
-#endif
+#endif // PARAGRAPH_FUNCS_H