#include "paragraph_funcs.h"
#include "ParagraphParameters.h"
-#include "insets/insetinclude.h"
#include "insets/insettabular.h"
#include "support/lstrings.h"
+using lyx::pos_type;
+using lyx::textclass_type;
+
+using lyx::support::bformat;
using std::for_each;
using std::make_pair;
using std::pair;
using std::vector;
-
-using namespace lyx::support;
-using lyx::pos_type;
-using lyx::textclass_type;
+using std::string;
typedef limited_stack<pair<ParagraphList, textclass_type> > CutStack;
} // namespace anon
-std::vector<string>
+std::vector<string> const
CutAndPaste::availableSelections(Buffer const & buffer)
{
vector<string> selList;
for (; lit != eit; ++lit) {
switch (lit->inset->lyxCode()) {
- case InsetOld::INCLUDE_CODE: {
- InsetInclude * ii = static_cast<InsetInclude*>(lit->inset);
- InsetInclude::Params ip = ii->params();
- ip.masterFilename_ = buffer.fileName();
- ii->set(ip);
- break;
- }
-
case InsetOld::TABULAR_CODE: {
InsetTabular * it = static_cast<InsetTabular*>(lit->inset);
it->buffer(const_cast<Buffer*>(&buffer));
pos = last_paste->size();
// Maybe some pasting.
-#warning CHECK! Are we comparing last_paste to the wrong list here? (Lgb)
if (boost::next(last_paste) != pars.end() &&
paste_the_end) {
if (boost::next(last_paste)->hasSameLayout(*last_paste)) {