#include <boost/tuple/tuple.hpp>
+using namespace lyx::support;
+
using std::vector;
using std::copy;
using std::endl;
LyXFont const LyXText::getFont(Buffer const * buf, ParagraphList::iterator pit,
pos_type pos) const
{
- lyx::Assert(pos >= 0);
+ Assert(pos >= 0);
LyXLayout_ptr const & layout = pit->layout();
LyXCursor resetCursor = cursor;
bool implicitSelection = (font.language() == ignore_language
&& font.number() == LyXFont::IGNORE)
- ? selectWordWhenUnderCursor(WHOLE_WORD_STRICT) : false;
+ ? selectWordWhenUnderCursor(lyx::WHOLE_WORD_STRICT) : false;
// Set font
setFont(font, toggleall);
// If there is a change in the language the implicit word selection
// is disabled.
LyXCursor const reset_cursor = cursor;
- bool const implicitSelection = selectWordWhenUnderCursor(PREVIOUS_WORD);
+ bool const implicitSelection =
+ selectWordWhenUnderCursor(lyx::PREVIOUS_WORD);
string idxstring;
if (!selection.set())
else if (in->lyxCode() == Inset::WRAP_CODE)
type = static_cast<InsetWrap*>(in)->params().type;
else
- lyx::Assert(0);
+ Assert(0);
Floating const & fl = textclass.floats().getType(type);
void LyXText::setCursor(LyXCursor & cur, ParagraphList::iterator pit,
pos_type pos, bool boundary)
{
- lyx::Assert(pit != ownerParagraphs().end());
+ Assert(pit != ownerParagraphs().end());
cur.par(pit);
cur.pos(pos);