]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.C
Remove the inset and view member functions from PreviewedInset.
[lyx.git] / src / CutAndPaste.C
index e8457aca4f86e01b0d8f5dc57aa66de9bad2a571..776600b22b2fff61cf302019fca5587c75e52010 100644 (file)
@@ -24,7 +24,6 @@
 #include "paragraph_funcs.h"
 #include "ParagraphParameters.h"
 
-#include "insets/insetinclude.h"
 #include "insets/insettabular.h"
 
 #include "support/lstrings.h"
@@ -38,6 +37,7 @@ using std::for_each;
 using std::make_pair;
 using std::pair;
 using std::vector;
+using std::string;
 
 
 typedef limited_stack<pair<ParagraphList, textclass_type> > CutStack;
@@ -49,7 +49,7 @@ CutStack cuts(10);
 } // namespace anon
 
 
-std::vector<string>
+std::vector<string> const
 CutAndPaste::availableSelections(Buffer const & buffer)
 {
        vector<string> selList;
@@ -297,14 +297,6 @@ CutAndPaste::pasteSelection(Buffer const & buffer,
 
                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));
@@ -347,7 +339,6 @@ CutAndPaste::pasteSelection(Buffer const & 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)) {