-// -*- C++ -*-
/**
* \file ControlParagraph.C
* This file is part of LyX, the document processor.
* \author Edwin Leuven
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#include <config.h>
#include "lyxlex.h"
#include "ParagraphParameters.h"
#include "support/LAssert.h"
-#include "Lsstream.h"
+#include "support/std_sstream.h"
+using namespace lyx::support;
ControlParagraph::ControlParagraph(Dialog & parent)
: Dialog::Controller(parent), ininset_(false)
bool ControlParagraph::initialiseParams(string const & data)
{
- istringstream is(data);
+ istringstream is(STRCONV(data));
LyXLex lex(0,0);
lex.setStream(is);
{
ostringstream data;
params().write(data);
- FuncRequest const fr(LFUN_PARAGRAPH_APPLY, data.str());
+ FuncRequest const fr(LFUN_PARAGRAPH_APPLY, STRCONV(data.str()));
kernel().dispatch(fr);
}
ParagraphParameters & ControlParagraph::params()
{
- lyx::Assert(params_.get());
+ Assert(params_.get());
return *params_;
}
ParagraphParameters const & ControlParagraph::params() const
{
- lyx::Assert(params_.get());
+ Assert(params_.get());
return *params_;
}