#pragma implementation
#endif
-#include <algorithm>
-#include <fstream>
-#include <csignal>
-
#include "paragraph.h"
#include "paragraph_pimpl.h"
-#include "support/textutils.h"
#include "lyxrc.h"
#include "layout.h"
#include "language.h"
#include "tex-strings.h"
#include "buffer.h"
#include "bufferparams.h"
-#include "support/FileInfo.h"
-#include "support/LAssert.h"
#include "debug.h"
#include "LaTeXFeatures.h"
-#include "insets/insetinclude.h"
-#include "insets/insetbib.h"
-#include "insets/insettext.h"
-#include "support/filetools.h"
-#include "support/lstrings.h"
#include "lyx_gui_misc.h"
#include "texrow.h"
-#include "support/lyxmanip.h"
#include "BufferView.h"
#include "encoding.h"
#include "ParameterStruct.h"
#include "gettext.h"
+#include "lyxtextclasslist.h"
+
+#include "insets/insetinclude.h"
+#include "insets/insetbib.h"
+#include "insets/insettext.h"
+
+#include "support/filetools.h"
+#include "support/lstrings.h"
+#include "support/lyxmanip.h"
+#include "support/FileInfo.h"
+#include "support/LAssert.h"
+#include "support/textutils.h"
+
+#include <algorithm>
+#include <fstream>
+#include <csignal>
using std::ostream;
using std::endl;
Paragraph::value_type
-Paragraph::getUChar(BufferParams const & bparams,
- pos_type pos) const
+Paragraph::getUChar(BufferParams const & bparams, pos_type pos) const
{
value_type c = getChar(pos);
if (!lyxrc.rtl_support)
}
-void Paragraph::setFont(pos_type pos,
- LyXFont const & font)
+void Paragraph::setFont(pos_type pos, LyXFont const & font)
{
lyx::Assert(pos <= size());
return depthHook(depth_type(getDepth() - 1));
}
-int Paragraph::autoDeleteInsets()
-{
- int count = 0;
- InsetList::size_type index = 0;
- while (index < insetlist.size()) {
- if (insetlist[index].inset && insetlist[index].inset->autoDelete()) {
- erase(insetlist[index].pos);
- // erase() calls to insetlist.erase(&insetlist[index])
- // so index shouldn't be increased.
- ++count;
- } else
- ++index;
- }
- return count;
-}
-
Paragraph::inset_iterator
Paragraph::InsetIterator(pos_type pos)
// returns -1 if inset not found
-int Paragraph::getPositionOfInset(Inset * inset) const
+int Paragraph::getPositionOfInset(Inset const * inset) const
{
// Find the entry.
for (InsetList::const_iterator cit = insetlist.begin();
basefont = getLayoutFont(bparams);
}
- if (main_body >= 0
- && !pimpl_->size()) {
+ if (main_body >= 0 && !pimpl_->size()) {
if (style.isCommand()) {
os << '{';
++column;
}
Paragraph * par = this;
do {
- par = par->TeXOnePar(buf, bparams,
- os, texrow, false);
+ par = par->TeXOnePar(buf, bparams, os, texrow, false);
if (par && par->params().depth() > params().depth()) {
if (textclasslist.Style(bparams.textclass,