#include "paragraph_pimpl.h"
#include "buffer.h"
-#include "bufferparams.h"
-#include "BufferView.h"
-#include "changes.h"
#include "encoding.h"
#include "debug.h"
#include "gettext.h"
#include "language.h"
#include "latexrunparams.h"
-#include "layout.h"
-#include "lyxrc.h"
-#include "paragraph_funcs.h"
-#include "ParameterStruct.h"
-#include "texrow.h"
-#include "Lsstream.h"
+#include "support/std_sstream.h"
#include "insets/insetbibitem.h"
#include "insets/insetoptarg.h"
-#include "insets/insetenv.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>
-#include <ctime>
using namespace lyx::support;
Paragraph::Paragraph()
- : pimpl_(new Paragraph::Pimpl(this)), y(0)
+ : y(0), pimpl_(new Paragraph::Pimpl(this))
{
enumdepth = 0;
itemdepth = 0;
Paragraph::Paragraph(Paragraph const & lp)
- : pimpl_(new Paragraph::Pimpl(*lp.pimpl_, this)), y(0)
+ : y(0), pimpl_(new Paragraph::Pimpl(*lp.pimpl_, this))
{
enumdepth = 0;
itemdepth = 0;
for (; it != end; ++it) {
// currently we hold Inset*, not InsetBase*
it->inset = static_cast<InsetOld*>(it->inset->clone().release());
- // tell the new inset who is the boss now
- it->inset->parOwner(this);
}
}
InsetList::iterator end = insetlist.end();
for (; it != end; ++it) {
it->inset = static_cast<InsetOld*>(it->inset->clone().release());
- // tell the new inset who is the boss now
- it->inset->parOwner(this);
}
}
}
-void Paragraph::write(Buffer const * buf, ostream & os,
+void Paragraph::write(Buffer const & buf, ostream & os,
BufferParams const & bparams,
depth_type & dth) const
{
// This one spits out the text of the paragraph
-bool Paragraph::simpleTeXOnePar(Buffer const * buf,
+bool Paragraph::simpleTeXOnePar(Buffer const & buf,
BufferParams const & bparams,
LyXFont const & outerfont,
ostream & os, TexRow & texrow,
// Convert the paragraph to a string.
// Used for building the table of contents
-string const Paragraph::asString(Buffer const * buffer, bool label) const
+string const Paragraph::asString(Buffer const & buffer, bool label) const
{
#if 0
string s;
}
-string const Paragraph::asString(Buffer const * buffer,
+string const Paragraph::asString(Buffer const & buffer,
pos_type beg, pos_type end, bool label) const
{
ostringstream os;
os << params().labelString() << ' ';
for (pos_type i = beg; i < end; ++i) {
- value_type const c = getUChar(buffer->params, i);
+ value_type const c = getUChar(buffer.params, i);
if (IsPrintable(c))
os << c;
else if (c == META_INSET)