]> git.lyx.org Git - lyx.git/blobdiff - src/factory.C
Restore the version number position on the splash screen
[lyx.git] / src / factory.C
index 1820f0e0dd6927798f69acc461b700e9d4897d3e..5812e339c082312a6c9e600dd32b62f1b4b77f7a 100644 (file)
@@ -88,6 +88,12 @@ InsetBase * createInset(BufferView * bv, FuncRequest const & cmd)
        case LFUN_PAGEBREAK_INSERT:
                return new InsetPagebreak;
 
+       case LFUN_CLEARPAGE_INSERT:
+               return new InsetClearPage;
+
+       case LFUN_CLEARDOUBLEPAGE_INSERT:
+               return new InsetClearDoublePage;
+
        case LFUN_CHARSTYLE_INSERT: {
                string s = cmd.getArg(0);
                LyXTextClass tclass = params.getLyXTextClass();
@@ -167,7 +173,7 @@ InsetBase * createInset(BufferView * bv, FuncRequest const & cmd)
                // Try and generate a valid index entry.
                InsetCommandParams icp("index");
                icp["name"] = cmd.argument().empty() ?
-                       bv->getLyXText()->getStringToIndex(bv->cursor()) :
+                       bv->cursor().innerText()->getStringToIndex(bv->cursor()) :
                        cmd.argument();
                return new InsetIndex(icp);
        }
@@ -175,7 +181,7 @@ InsetBase * createInset(BufferView * bv, FuncRequest const & cmd)
        case LFUN_NOMENCL_INSERT: {
                InsetCommandParams icp("nomenclature");
                icp["symbol"] = cmd.argument().empty() ?
-                       bv->getLyXText()->getStringToIndex(bv->cursor()) :
+                       bv->cursor().innerText()->getStringToIndex(bv->cursor()) :
                        cmd.argument();
                return new InsetNomencl(icp);
        }
@@ -511,7 +517,7 @@ InsetBase * readInset(LyXLex & lex, Buffer const & buf)
                                static_cast<MathMacroTemplate*>(inset.get());
                        MacroTable::globalMacros().insert
                                (tmpl->name(), tmpl->asMacroData());
-                       lyxerr[Debug::DEBUG]
+                       LYXERR(Debug::DEBUG)
                                << BOOST_CURRENT_FUNCTION
                                << ": creating local macro " << to_utf8(tmpl->name())
                                << endl;