+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
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();
}
+/**
+ * \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"
// -*- 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
-/* 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>
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());
}
}
- // 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());
}
}
// -*- 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
int getEndLabel(Paragraph * para, BufferParams const & bparams);
#endif
-#endif
+#endif // PARAGRAPH_FUNCS_H