#include <config.h>
#include "ParagraphParameters.h"
-#include "ParameterStruct.h"
-#include "tex-strings.h"
-#include "lyxlex.h"
#include "buffer.h"
#include "BufferView.h"
-#include "Lsstream.h"
#include "gettext.h"
-#include "paragraph.h"
+#include "lyxlayout.h"
+#include "lyxlex.h"
#include "lyxtext.h"
-#include "Lsstream.h"
+#include "paragraph.h"
+#include "ParameterStruct.h"
+#include "tex-strings.h"
#include "frontends/LyXView.h"
#include "support/lstrings.h"
-#include <iostream>
+#include "support/std_sstream.h"
-using namespace lyx::support;
+using lyx::support::rtrim;
+using std::istringstream;
using std::ostream;
+using std::ostringstream;
+using std::string;
+
// Initialize static member var.
ShareContainer<ParameterStruct> ParagraphParameters::container;
}
+ParagraphParameters::depth_type ParagraphParameters::depth() const
+{
+ return param->depth;
+}
+
+
bool ParagraphParameters::sameLayout(ParagraphParameters const & pp) const
{
return param->align == pp.param->align &&
void setParagraphParams(BufferView & bv, string const & data)
{
- istringstream is(STRCONV(data));
+ istringstream is(data);
LyXLex lex(0,0);
lex.setStream(is);
/// is paragraph in inset
os << "\\ininset " << (par.inInset()?1:0) << '\n';
- data = STRCONV(os.str());
+ data = os.str();
}