]> git.lyx.org Git - features.git/commitdiff
InsetOld -> InsetBase renaming
authorLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 25 Nov 2004 19:13:07 +0000 (19:13 +0000)
committerLars Gullik Bjønnes <larsbj@gullik.org>
Thu, 25 Nov 2004 19:13:07 +0000 (19:13 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9310 a592a061-630c-0410-9148-cb99ea01b6c8

71 files changed:
po/POTFILES.in
src/BufferView.h
src/ChangeLog
src/CutAndPaste.C
src/buffer.C
src/graphics/ChangeLog
src/graphics/GraphicsLoader.h
src/graphics/PreviewImage.h
src/graphics/PreviewLoader.C
src/insets/ChangeLog
src/insets/inset.h
src/insets/insetbase.h
src/insets/insetbibitem.h
src/insets/insetbibtex.h
src/insets/insetbox.h
src/insets/insetbranch.h
src/insets/insetcaption.C
src/insets/insetcaption.h
src/insets/insetcharstyle.h
src/insets/insetcite.h
src/insets/insetcollapsable.C
src/insets/insetcommand.C
src/insets/insetcommand.h
src/insets/insetenv.h
src/insets/insetert.C
src/insets/insetert.h
src/insets/insetexternal.C
src/insets/insetexternal.h
src/insets/insetfloat.C
src/insets/insetfloat.h
src/insets/insetfloatlist.C
src/insets/insetfloatlist.h
src/insets/insetfoot.h
src/insets/insetfootlike.C
src/insets/insetfootlike.h
src/insets/insetgraphics.C
src/insets/insetgraphics.h
src/insets/insethfill.h
src/insets/insetinclude.C
src/insets/insetinclude.h
src/insets/insetindex.C
src/insets/insetindex.h
src/insets/insetlabel.h
src/insets/insetlatexaccent.C
src/insets/insetlatexaccent.h
src/insets/insetline.h
src/insets/insetmarginal.h
src/insets/insetnewline.h
src/insets/insetnote.h
src/insets/insetoptarg.h
src/insets/insetpagebreak.h
src/insets/insetquotes.C
src/insets/insetquotes.h
src/insets/insetref.h
src/insets/insetspace.h
src/insets/insetspecialchar.h
src/insets/insettabular.C
src/insets/insettoc.C
src/insets/insettoc.h
src/insets/inseturl.h
src/insets/insetvspace.C
src/insets/insetwrap.C
src/insets/insetwrap.h
src/insets/updatableinset.C
src/lyxfunc.C
src/lyxtext.h
src/output_linuxdoc.C
src/paragraph.C
src/paragraph.h
src/text3.C
src/toc.C

index 8cd4ed3c54bfb7cfa6215a5652f4fdab543d53aa..ac0de771298e6174bdad821d8ce1413bf7524707 100644 (file)
@@ -203,7 +203,7 @@ src/output_linuxdoc.C
 src/output_plaintext.C
 src/paragraph.C
 src/rowpainter.C
-src/support/globbing.C
+src/support/filefilterlist.C
 src/support/path_defines.C.in
 src/text.C
 src/text2.C
index 5ffe593d67e95c9a4bd81312dcf1504f829cb310..a3be74981dd6b9f4baa17a5294a0ec38732eef17 100644 (file)
@@ -27,7 +27,6 @@ class DocIterator;
 class ErrorList;
 class FuncRequest;
 class FuncStatus;
-class InsetOld;
 class Language;
 class LCursor;
 class LyXText;
index 861fdf51a586a051a5054f4296e6ac189e7a2eab..e53f1bb657cba9841ef249d05e8d4ed2f51944fc 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-25  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * rename a lot of InsetOld to InsetBase
+
 2004-11-25  Angus Leeming  <leeming@lyx.org>
 
        * BufferView_pimpl.C:
        * FuncStatus.C (message): new methods. Used to provide an error
        message indicating why a command is disabled.
        (clear, |=, FuncStatus): update for message.
-       
+
 2004-11-23  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
        * lyxfunc.C (dispatch): always call sendDispatchMessage
-       
+
 2004-11-24  Alfredo Braunstein  <abraunst@lyx.org>
 
        * BufferView.C:
        (rowstruct): use initialization
        (columnstruct): use initialization
        (ltType): use initialization
-       
 
-       * lyxlength.h (swap): new function 
 
-       * LColor.[Ch] (operator=): use the common semantics 
+       * lyxlength.h (swap): new function
+
+       * LColor.[Ch] (operator=): use the common semantics
 
 2004-11-22  Jean-Marc Lasgouttes  <lasgouttes@lyx.org>
 
index ab771cd5164d68fcee90830b66749ed0dcc3f883..125d173778a83911ab1d8fad3baba8420b19dbe0 100644 (file)
@@ -168,7 +168,7 @@ pasteSelectionHelper(Buffer const & buffer, ParagraphList & pars,
 
                for (; lit != eit; ++lit) {
                        switch (lit->inset->lyxCode()) {
-                       case InsetOld::TABULAR_CODE: {
+                       case InsetBase::TABULAR_CODE: {
                                InsetTabular * it = static_cast<InsetTabular*>(lit->inset);
                                it->buffer(&buffer);
                                break;
index 3c96aae93418573209a9270f59471ac909a37bae..21740256db3cde6d9a3bd5b764cf544a5b536a36 100644 (file)
@@ -1254,15 +1254,15 @@ void Buffer::fillWithBibKeys(std::vector<std::pair<string, string> > & keys)
        }
 
        for (InsetIterator it = inset_iterator_begin(inset()); it; ++it) {
-               if (it->lyxCode() == InsetOld::BIBTEX_CODE) {
+               if (it->lyxCode() == InsetBase::BIBTEX_CODE) {
                        InsetBibtex const & inset =
                                dynamic_cast<InsetBibtex const &>(*it);
                        inset.fillWithBibKeys(*this, keys);
-               } else if (it->lyxCode() == InsetOld::INCLUDE_CODE) {
+               } else if (it->lyxCode() == InsetBase::INCLUDE_CODE) {
                        InsetInclude const & inset =
                                dynamic_cast<InsetInclude const &>(*it);
                        inset.fillWithBibKeys(*this, keys);
-               } else if (it->lyxCode() == InsetOld::BIBITEM_CODE) {
+               } else if (it->lyxCode() == InsetBase::BIBITEM_CODE) {
                        InsetBibitem const & inset =
                                dynamic_cast<InsetBibitem const &>(*it);
                        string const key = inset.getContents();
index 7018b7f1078bd30fc52e4002df6b787deb371ce7..3b95657fe1f3b0f7d33a55afa05bf0eca7fbdeec 100644 (file)
@@ -1,7 +1,11 @@
+2004-11-25  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * rename a lot of InsetOld to InsetBase
+
 2004-11-20  Lars Gullik Bjonnes  <larsbj@gullik.net>
 
        * GraphicsCache.C: include <map> to fix compilation with boost
-       1.32.0 
+       1.32.0
 
 2004-11-09  Georg Baum  <Georg.Baum@post.rwth-aachen.de>
 
index 79174aef9504cc2718832bac6004238f1eeda884..ab3d686c24c44e689de21ead5bfd8bda7ef4ccff 100644 (file)
@@ -29,8 +29,6 @@
 #include <boost/scoped_ptr.hpp>
 #include <boost/signal.hpp>
 
-class InsetOld;
-
 namespace lyx {
 namespace graphics {
 
index 3e4bdcd47194d8fa697ebb0b4ad32638c2c5bc0b..c4de71bfc896de0ac1c7e4ffca8424cfe43a4010 100644 (file)
@@ -15,8 +15,6 @@
 #include <boost/scoped_ptr.hpp>
 #include <string>
 
-class InsetOld;
-
 namespace lyx {
 namespace graphics {
 
index 453f431487aa282316d85d1418b055829831e281..9b8b084ae255e9015e59ee406326eb25cf06fb6b 100644 (file)
@@ -608,7 +608,7 @@ void PreviewLoader::Impl::dumpPreamble(ostream & os) const
        InsetIterator const end = inset_iterator_end(inset);
 
        for (; it != end; ++it)
-               if (it->lyxCode() == InsetOld::MATHMACRO_CODE)
+               if (it->lyxCode() == InsetBase::MATHMACRO_CODE)
                        it->latex(buffer_, os, runparams);
 
        // All equation lables appear as "(#)" + preview.sty's rendering of
index 1f14ea300542955b5314a49418c779078d6a09a5..055606d8b2ad8afb5605f33a2715542a19c4a5e2 100644 (file)
@@ -1,3 +1,7 @@
+2004-11-25  Lars Gullik Bjonnes  <larsbj@gullik.net>
+
+       * rename a lot of InsetOld to InsetBase
+
 2004-11-25  Alfredo Braunstein  <abraunst@lyx.org>
 
        * insettabular.C:
index 11fd79bfe19234e497eed0652dfdb40d849722d0..aa817aa3d50c092f758b2b46c35d0c358d590ffa 100644 (file)
@@ -65,7 +65,7 @@ protected:
 
 private:
        InsetOld & operator=(InsetOld const &) const;
-       
+
        ///
        std::string name_;
        /** We store the LColor::color value as an int to get LColor.h out
@@ -75,14 +75,14 @@ private:
 };
 
 
-/** \c InsetOld_code is a wrapper for InsetOld::Code.
+/** \c InsetBase_code is a wrapper for InsetBase::Code.
  *  It can be forward-declared and passed as a function argument without
  *  having to expose inset.h.
  */
-class InsetOld_code {
+class InsetBase_code {
        InsetBase::Code val_;
 public:
-       InsetOld_code(InsetBase::Code val) : val_(val) {}
+       InsetBase_code(InsetBase::Code val) : val_(val) {}
        operator InsetBase::Code() const { return val_; }
 };
 
index 90a17044e947db071778a2e9df9eb75441be2ab5..ea7d00df1d533be63bc3cbae0725fcb8a908e7f9 100644 (file)
@@ -208,7 +208,7 @@ public:
 
        /** This is not quite the correct place for this enum. I think
            the correct would be to let each subclass of Inset declare
-           its own enum code. Actually the notion of an InsetOld::Code
+           its own enum code. Actually the notion of an InsetBase::Code
            should be avoided, but I am not sure how this could be done
            in a cleaner way. */
        enum Code {
index df192ae5038b7fb54d725fa2a852af3582d1f336..b2ef83f0c0d29bc2255cf1d72f6b2c6992045293 100644 (file)
@@ -35,7 +35,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::BIBITEM_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::BIBITEM_CODE; }
        /// keep .lyx format compatible
        bool directWrite() const { return true; }
        ///
index f2148395a000d878877176f09310bbb0c6af75fd..4daf8f589fff4b0c9179c2bdb9a8bb386290b05c 100644 (file)
@@ -27,7 +27,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::BIBTEX_CODE; }
        ///
        bool display() const { return true; }
        ///
index a15b0c5366d51ca3a17b799eb4b63f8cf9acc25d..7781a53eaffcbec2b65f1d01ffe00fab40ddb466 100644 (file)
@@ -61,7 +61,7 @@ public:
        ///
        std::string const editMessage() const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::BOX_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::BOX_CODE; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
index 9d5d3cd48ce0fe65a6c8c1b457b5c915c62b19c3..5c3c1ea5f3f2f93b9366576dbf068df9905b60d0 100644 (file)
@@ -42,7 +42,7 @@ public:
        ///
        std::string const editMessage() const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::BRANCH_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::BRANCH_CODE; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
index cf1d9965b0698419c9c14bb9e5bb695fb07d894e..72e83e4bff9a510d2550d483454f81f264f6203e 100644 (file)
@@ -88,8 +88,8 @@ void InsetCaption::draw(PainterInfo & pi, int x, int y) const
        // See if we can find the name of the float this caption
        // belongs to.
 #if 0
-       InsetOld * i1 = owner();
-       InsetOld * i2 = i1 ? i1->owner() : 0;
+       InsetBase * i1 = owner();
+       InsetBase * i2 = i1 ? i1->owner() : 0;
        string type;
        if (i2->lyxCode() == FLOAT_CODE)
 #ifdef WITH_WARNINGS
index 40f906cfaf196670e74500807d049a1bd71c6730..6d81c579f6ea0ef7ada2e7e7c2002bd53069d926 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        virtual bool display() const;
        ///
-       virtual InsetOld::Code lyxCode() const;
+       virtual InsetBase::Code lyxCode() const;
        ///
        virtual std::string const editMessage() const;
        ///
@@ -53,7 +53,7 @@ bool InsetCaption::display() const
 
 
 inline
-InsetOld::Code InsetCaption::lyxCode() const
+InsetBase::Code InsetCaption::lyxCode() const
 {
        return CAPTION_CODE;
 }
index ae06acf1b89196c2ae55a56074d57ba19868699e..0c98356e398838e37d0337f72c8f3b6c46b85ae1 100644 (file)
@@ -47,7 +47,7 @@ public:
        ///
        std::string const editMessage() const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::CHARSTYLE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::CHARSTYLE_CODE; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
index aa2b742ffe558c9b78f3d03531a78acdd0e6dea1..2371d226f54e9e53b2ebb30c5b289de2cbb9f201 100644 (file)
@@ -29,7 +29,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::CITE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::CITE_CODE; }
        ///
        int plaintext(Buffer const &, std::ostream &, OutputParams const &) const;
        ///
index 52d6723e1660d660595ccd46755990753f9c57a9..513c9766bdd14ed39374ae345e19e1444fb53a7e 100644 (file)
@@ -192,7 +192,7 @@ void InsetCollapsable::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-InsetOld::EDITABLE InsetCollapsable::editable() const
+InsetBase::EDITABLE InsetCollapsable::editable() const
 {
        return status_ != Collapsed ? HIGHLY_EDITABLE : IS_EDITABLE;
 }
index bc4d9bf7faf7b1b99783964d4eaed1ab495d5185..4d351abc6681a5b87caa14f8357d9076339a260c 100644 (file)
@@ -129,7 +129,7 @@ void InsetCommand::doDispatch(LCursor & cur, FuncRequest & cmd)
        }
 
        default:
-               InsetOld::doDispatch(cur, cmd);
+               InsetBase::doDispatch(cur, cmd);
                break;
        }
 
index 3848a76a402511c6873be4953453f40673b5b29d..27e37e05e8824adb9fd2b893802c72c791a579a9 100644 (file)
@@ -59,7 +59,7 @@ public:
        virtual int docbook(Buffer const &, std::ostream &,
                            OutputParams const & runparams) const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::NO_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::NO_CODE; }
 
        ///
        InsetCommandParams const & params() const { return p_; }
index 3385a4cda0ed9e28c59998dd26ec039e2f3be900..aeeb992c6375dcbe0b9ee050e6025e477f491d0d 100644 (file)
@@ -25,14 +25,14 @@ public:
        ///
        void read(Buffer const & buf, LyXLex & lex);
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::ENVIRONMENT_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::ENVIRONMENT_CODE; }
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
        ///
        std::string const editMessage() const;
        ///
-       InsetOld::EDITABLE editable() const { return HIGHLY_EDITABLE; }
+       InsetBase::EDITABLE editable() const { return HIGHLY_EDITABLE; }
        ///
        bool isTextInset() const { return true; }
        ///
index d81362a13419564997edba48e9130698d916ab2b..74871aaa2d80fb95164aec40dae0d59f1cdc646c 100644 (file)
@@ -263,9 +263,9 @@ void InsetERT::setButtonLabel()
 }
 
 
-bool InsetERT::insetAllowed(InsetOld::Code code) const
+bool InsetERT::insetAllowed(InsetBase::Code code) const
 {
-       return code == InsetOld::NEWLINE_CODE;
+       return code == InsetBase::NEWLINE_CODE;
 }
 
 
index 40b9e139a2c9c5292f2f1d64ab5234701212b64c..0252453d10dd1a3f05b9ee319281decb89e91279 100644 (file)
@@ -37,13 +37,13 @@ public:
        ///
        ~InsetERT();
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::ERT_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::ERT_CODE; }
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
        std::string const editMessage() const;
        ///
-       bool insetAllowed(InsetOld::Code code) const;
+       bool insetAllowed(InsetBase::Code code) const;
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
index 15e572ac8388e9678b8ec17f1c15c3ae92a36c97..2fb4e943e77dea61bdc760e172279fa0a24f10fd 100644 (file)
@@ -462,7 +462,7 @@ void InsetExternal::doDispatch(LCursor & cur, FuncRequest & cmd)
                break;
 
        default:
-               InsetOld::doDispatch(cur, cmd);
+               InsetBase::doDispatch(cur, cmd);
        }
 }
 
index 3a68c55d1cf3ee7c25f6883d2b21318e594e5304..6389031d43c30560c02276aaacd7024a83bbff89 100644 (file)
@@ -107,7 +107,7 @@ public:
        ///
        virtual ~InsetExternal();
        ///
-       virtual InsetOld::Code lyxCode() const { return EXTERNAL_CODE; }
+       virtual InsetBase::Code lyxCode() const { return EXTERNAL_CODE; }
        ///
        virtual EDITABLE editable() const { return IS_EDITABLE; }
 
index 87c8482532c729c7cd2143e0d770e84eab9cf1ad..cf506c945cebbe956a52655175daf2767a6bc5f9 100644 (file)
@@ -381,11 +381,11 @@ int InsetFloat::docbook(Buffer const & buf, ostream & os,
 }
 
 
-bool InsetFloat::insetAllowed(InsetOld::Code code) const
+bool InsetFloat::insetAllowed(InsetBase::Code code) const
 {
-       return code != InsetOld::FLOAT_CODE
-           && code != InsetOld::FOOT_CODE
-           && code != InsetOld::MARGIN_CODE;
+       return code != InsetBase::FLOAT_CODE
+           && code != InsetBase::FOOT_CODE
+           && code != InsetBase::MARGIN_CODE;
 }
 
 
index 1bb48f78af49cb896d3ca99a1449876a86b0302a..c0ac9414103867c41e54862d1a5042dc5c9212c9 100644 (file)
@@ -51,7 +51,7 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::FLOAT_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::FLOAT_CODE; }
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
@@ -64,7 +64,7 @@ public:
        ///
        std::string const editMessage() const;
        ///
-       bool insetAllowed(InsetOld::Code) const;
+       bool insetAllowed(InsetBase::Code) const;
        /** returns true if, when outputing LaTeX, font changes should
            be closed before generating this inset. This is needed for
            insets that may contain several paragraphs */
index 54d5f67a0dc203a8ccc9e3986be76eafd297a0fa..14850a8347870b7e208d49f12a9dd5e94f1bc2cb 100644 (file)
@@ -57,9 +57,9 @@ string const InsetFloatList::getScreenLabel(Buffer const & buf) const
 }
 
 
-InsetOld::Code InsetFloatList::lyxCode() const
+InsetBase::Code InsetFloatList::lyxCode() const
 {
-       return InsetOld::FLOAT_LIST_CODE;
+       return InsetBase::FLOAT_LIST_CODE;
 }
 
 
index c257013f7c5a0173db6448a6032f21c06cd52106..4a7aaa317de2cf16ddea2a6bd968d667d28a18a4 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
        bool display() const { return true; }
        ///
index 821b7c51418c6ad78ff36c7d6fc1341ecf0972f1..dfcfed3b63fafeb891280f09b89395125570e6a3 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        InsetFoot(BufferParams const &);
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::FOOT_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::FOOT_CODE; }
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
index 4ceb2efe41f22fa6e711370d67c0c0f65bfb0d2f..19cea629046af8d9679b9c7f1ace94cb5dda9baa 100644 (file)
@@ -49,10 +49,10 @@ void InsetFootlike::write(Buffer const & buf, ostream & os) const
 }
 
 
-bool InsetFootlike::insetAllowed(InsetOld::Code code) const
+bool InsetFootlike::insetAllowed(InsetBase::Code code) const
 {
-       if (code == InsetOld::FOOT_CODE || code == InsetOld::MARGIN_CODE
-           || code == InsetOld::FLOAT_CODE)
+       if (code == InsetBase::FOOT_CODE || code == InsetBase::MARGIN_CODE
+           || code == InsetBase::FLOAT_CODE)
                return false;
        return InsetCollapsable::insetAllowed(code);
 }
index 31387e47da797cf1e8911d84dc72b04229f97f65..0a7fd2c02569223f3dbe6ecf7a45f2eda5534930 100644 (file)
@@ -26,7 +26,7 @@ public:
        ///
        void write(Buffer const & buf, std::ostream & os) const;
        ///
-       bool insetAllowed(InsetOld::Code) const;
+       bool insetAllowed(InsetBase::Code) const;
        /** returns true if, when outputing LaTeX, font changes should
            be closed before generating this inset. This is needed for
            insets that may contain several paragraphs */
index bed26acef733f9790f6ba7aaa6e00339245ca99a..453c9891d58384070ee386458edbfe5ab41db30b 100644 (file)
@@ -210,7 +210,7 @@ void InsetGraphics::doDispatch(LCursor & cur, FuncRequest & cmd)
                break;
 
        default:
-               InsetOld::doDispatch(cur, cmd);
+               InsetBase::doDispatch(cur, cmd);
                break;
        }
 }
@@ -236,7 +236,7 @@ void InsetGraphics::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-InsetOld::EDITABLE InsetGraphics::editable() const
+InsetBase::EDITABLE InsetGraphics::editable() const
 {
        return IS_EDITABLE;
 }
index 0fe0c6daff43712ada94c14974f578ae933ff2ed..8cc3128880a13839374988af43634992c17e35e1 100644 (file)
@@ -61,7 +61,7 @@ public:
        void validate(LaTeXFeatures & features) const;
 
        /// returns LyX code associated with the inset. Used for TOC, ...)
-       InsetOld::Code lyxCode() const { return InsetOld::GRAPHICS_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::GRAPHICS_CODE; }
 
        /** Set the inset parameters, used by the GUIndependent dialog.
            Return true of new params are different from what was so far.
index 3a670743a36bd50e71647ca11379936e639e563d..c0a26174d6277fe6731b9592e44142dd1bd19215 100644 (file)
@@ -24,7 +24,7 @@ public:
        ///
        std::string const getScreenLabel(Buffer const &) const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::HFILL_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::HFILL_CODE; }
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
index c1278f01a841e0507ddb8f6e69421aec30a333bc..bd11f6874b1c204064017961fd06c5b67711e39b 100644 (file)
@@ -143,7 +143,7 @@ void InsetInclude::doDispatch(LCursor & cur, FuncRequest & cmd)
                break;
 
        default:
-               InsetOld::doDispatch(cur, cmd);
+               InsetBase::doDispatch(cur, cmd);
                break;
        }
 }
index 028a05f2f24116e3cca24b8067c7b4d54c284347..6f93350fff1e25e3782f75902f8c9d8d95ad8f6c 100644 (file)
@@ -41,7 +41,7 @@ public:
        InsetCommandParams const & params(void) const;
 
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::INCLUDE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::INCLUDE_CODE; }
        /** Fills \c list
         *  \param buffer the Buffer containing this inset.
         *  \param list the list of labels in the child buffer.
index 2cbee02a34398915fd25780bab46be2344be565c..04b954e99f21bd05c3602acd3e8e339cef8ae680 100644 (file)
@@ -49,9 +49,9 @@ int InsetIndex::docbook(Buffer const &, ostream & os,
 }
 
 
-InsetOld::Code InsetIndex::lyxCode() const
+InsetBase::Code InsetIndex::lyxCode() const
 {
-       return InsetOld::INDEX_CODE;
+       return InsetBase::INDEX_CODE;
 }
 
 
@@ -78,7 +78,7 @@ void InsetPrintIndex::validate(LaTeXFeatures & features) const
 }
 
 
-InsetOld::Code InsetPrintIndex::lyxCode() const
+InsetBase::Code InsetPrintIndex::lyxCode() const
 {
-       return InsetOld::INDEX_PRINT_CODE;
+       return InsetBase::INDEX_PRINT_CODE;
 }
index 78842a281aa1cf6cef8c8cdeb5cf9e65fbe19491..2346dc11ed5b979694bf70c39191299d885520c0 100644 (file)
@@ -28,7 +28,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
        int docbook(Buffer const &, std::ostream &,
                    OutputParams const &) const;
@@ -48,7 +48,7 @@ public:
        ///
        EDITABLE editable() const { return NOT_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
        bool display() const { return true; }
        ///
index e0aecd27efbc3cdf6f466f700295cf211b08482c..d76859c82b53beb22df9fb9d30fa026ec74eb4d4 100644 (file)
@@ -23,7 +23,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::LABEL_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::LABEL_CODE; }
        /// Appends \c list with this label
        void getLabelList(Buffer const &, std::vector<std::string> & list) const;
        ///
index 33f6d6ad585da3f420a4060409e1e3a36a3ea3b8..2462b18807315670ede94b9036cf2dec451dd1de 100644 (file)
@@ -640,9 +640,9 @@ bool InsetLatexAccent::directWrite() const
 }
 
 
-InsetOld::Code InsetLatexAccent::lyxCode() const
+InsetBase::Code InsetLatexAccent::lyxCode() const
 {
-       return InsetOld::ACCENT_CODE;
+       return InsetBase::ACCENT_CODE;
 }
 
 
index 854fdb5f785c31674c24054cd8e957a613a2de81..c5a726054fe1c2f18001c342510f2303177b0205 100644 (file)
@@ -60,7 +60,7 @@ public:
        ///
        bool directWrite() const;
        ///
-       InsetOld::Code lyxCode()const;
+       InsetBase::Code lyxCode()const;
        ///
        inline bool canDisplay();
        // should this inset be handled like a normal charater
index 504854f8afac4b1271eb98ca567c0a0d72f91e1a..c9751a31a1f89d5b242833c38d4bc76adad6e886 100644 (file)
@@ -20,7 +20,7 @@ public:
 
        InsetLine() {}
 
-       InsetOld::Code lyxCode() const { return InsetOld::LINE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::LINE_CODE; }
 
        void metrics(MetricsInfo &, Dimension &) const;
 
index 36d395d4092495cd39aeb32b8c96f4bb2dcdcb2b..9b841f94426bc71ef8018966b3038fa6c917336e 100644 (file)
@@ -24,7 +24,7 @@ public:
        ///
        InsetMarginal(BufferParams const &);
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::MARGIN_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::MARGIN_CODE; }
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
index 8f9589c7af977c15525a41031b2b4fa82ddbdcf0..bd6988e9cc2569f4a15facdc0311a4eebdfdc9fb 100644 (file)
@@ -20,7 +20,7 @@ public:
 
        InsetNewline() {}
 
-       InsetOld::Code lyxCode() const { return InsetOld::NEWLINE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::NEWLINE_CODE; }
 
        void metrics(MetricsInfo &, Dimension &) const;
 
index 5f4a34040ae6c30054c98bdfa3d571cf12b26e37..880f1a34aa8489d001597b3bada55fa366ddd3a6 100644 (file)
@@ -44,7 +44,7 @@ public:
        ///
        std::string const editMessage() const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::NOTE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::NOTE_CODE; }
        ///
        void write(Buffer const &, std::ostream &) const;
        ///
index 2dc95bc4710812fd0f3bbc20a6b7d2c62ee7402f..90aaf963b16c13b1acd048052f470081a473c4ca 100644 (file)
@@ -25,7 +25,7 @@ public:
        InsetOptArg(BufferParams const &);
 
        /// code of the inset
-       InsetOld::Code lyxCode() const { return InsetOld::OPTARG_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::OPTARG_CODE; }
        /// return an message upon editing
        std::string const editMessage() const;
 
index ca0440cdebbe3115bb8ca0f4b97658917a051dab..02e26948f28330d0645cf0b057ad88cf8b7a3d43 100644 (file)
@@ -20,7 +20,7 @@ public:
 
        InsetPagebreak() {}
 
-       InsetOld::Code lyxCode() const { return InsetOld::LINE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::LINE_CODE; }
 
        void metrics(MetricsInfo &, Dimension &) const;
 
index 3b548cd69da21aa0734d42f2755bf7064712d578..03a96c50f3f02fad5111213b93a2728be1f7eae6 100644 (file)
@@ -371,7 +371,7 @@ auto_ptr<InsetBase> InsetQuotes::doClone() const
 }
 
 
-InsetOld::Code InsetQuotes::lyxCode() const
+InsetBase::Code InsetQuotes::lyxCode() const
 {
-  return InsetOld::QUOTE_CODE;
+  return InsetBase::QUOTE_CODE;
 }
index c88dfeb8bfb0ed703617de97e493ca94e88a8106..2392de037e3496b1818488d994f42c3cd678aa8c 100644 (file)
@@ -96,7 +96,7 @@ public:
        ///
        void validate(LaTeXFeatures &) const;
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        // should this inset be handled like a normal character
        bool isChar() const { return true; }
 
index 8ae06c9e54b621c1417b534cbb9341ceb121b26b..0311730dbcc8832404458d0b55cbde168a92ca0a 100644 (file)
@@ -40,7 +40,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::REF_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::REF_CODE; }
        ///
        bool display() const { return false; }
        ///
index cd9d813f868590aa714ca8fa11ac53c08845e045..671687b5ea044832a37d17bcf91850633bdb2242 100644 (file)
@@ -73,7 +73,7 @@ public:
        int docbook(Buffer const &, std::ostream &,
                    OutputParams const &) const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::SPACE_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::SPACE_CODE; }
        /// We don't need \begin_inset and \end_inset
        bool directWrite() const { return true; }
 
index 6f6c607518d49ad59d4b950166718eb2fa287f06..38a47f6dcd89cf7d68e6e0dca4673316fbd97d0f 100644 (file)
@@ -65,7 +65,7 @@ public:
        int docbook(Buffer const &, std::ostream &,
                    OutputParams const &) const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::SPECIALCHAR_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::SPECIALCHAR_CODE; }
        /// We don't need \begin_inset and \end_inset
        bool directWrite() const { return true; }
        ///
index 60c735940907dcba45255e7b2629932376c7274f..69ee7e05d5e8e6ae23e252823fe234eee317e2d7 100644 (file)
@@ -911,7 +911,7 @@ int InsetTabular::docbook(Buffer const & buf, ostream & os,
                          OutputParams const & runparams) const
 {
        int ret = 0;
-       InsetOld * master = 0;
+       InsetBase * master = 0;
 
 #ifdef WITH_WARNINGS
 #warning Why not pass a proper DocIterator here?
@@ -920,7 +920,7 @@ int InsetTabular::docbook(Buffer const & buf, ostream & os,
        // if the table is inside a float it doesn't need the informaltable
        // wrapper. Search for it.
        for (master = owner(); master; master = master->owner())
-               if (master->lyxCode() == InsetOld::FLOAT_CODE)
+               if (master->lyxCode() == InsetBase::FLOAT_CODE)
                        break;
 #endif
 
index c109646a39ab9d6bd200817a7070212b46a258cb..512c9e96d7e17868f9a4407ea377e0ca0c0533dd 100644 (file)
@@ -44,11 +44,11 @@ string const InsetTOC::getScreenLabel(Buffer const &) const
 }
 
 
-InsetOld::Code InsetTOC::lyxCode() const
+InsetBase::Code InsetTOC::lyxCode() const
 {
        if (getCmdName() == "tableofcontents")
-               return InsetOld::TOC_CODE;
-       return InsetOld::NO_CODE;
+               return InsetBase::TOC_CODE;
+       return InsetBase::NO_CODE;
 }
 
 
index 2adb8a447264bec93a1dfa370af3c6ec77a05e52..c30cf2f777e01f17cdfa9c5c27a5b39ba0cc8d40 100644 (file)
@@ -25,7 +25,7 @@ public:
        ///
        EDITABLE editable() const { return IS_EDITABLE; }
        ///
-       InsetOld::Code lyxCode() const;
+       InsetBase::Code lyxCode() const;
        ///
        bool display() const { return true; }
        ///
index 24f55a846c85cf26878cb2bb922af681aae3a45c..d4fa9878dd7ed8551adf938f20ea580c56a76772 100644 (file)
@@ -25,7 +25,7 @@ public:
        explicit
        InsetUrl(InsetCommandParams const &);
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::URL_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::URL_CODE; }
        ///
        void validate(LaTeXFeatures &) const;
        ///
index c6596972fa2e4d9d0f2df6470e75a931e18fe2e4..147bd0ae806259832f3cbee4a85450fd8c78a277 100644 (file)
@@ -74,7 +74,7 @@ void InsetVSpace::doDispatch(LCursor & cur, FuncRequest & cmd)
                break;
 
        default:
-               InsetOld::doDispatch(cur, cmd);
+               InsetBase::doDispatch(cur, cmd);
                break;
        }
 }
index 66d8ae29e93627cc26d107c3a3329b3e85049ebd..3b3a82c1c8228fe66e9c22a827d8d65e368a1cce 100644 (file)
@@ -204,7 +204,7 @@ int InsetWrap::docbook(Buffer const & buf, ostream & os,
 }
 
 
-bool InsetWrap::insetAllowed(InsetOld::Code code) const
+bool InsetWrap::insetAllowed(InsetBase::Code code) const
 {
        switch(code) {
        case FLOAT_CODE:
index 1acd4acc21c9c928581254722ec60abecd0eafb7..42f0c7993663b33e0cada846f5c7d1a4483ec488 100644 (file)
@@ -47,7 +47,7 @@ public:
        ///
        void validate(LaTeXFeatures & features) const;
        ///
-       InsetOld::Code lyxCode() const { return InsetOld::WRAP_CODE; }
+       InsetBase::Code lyxCode() const { return InsetBase::WRAP_CODE; }
        ///
        int latex(Buffer const &, std::ostream &,
                  OutputParams const &) const;
@@ -57,7 +57,7 @@ public:
        ///
        std::string const editMessage() const;
        ///
-       bool insetAllowed(InsetOld::Code) const;
+       bool insetAllowed(InsetBase::Code) const;
        ///
        void addToToc(lyx::toc::TocList &, Buffer const &) const;
        ///
index a989682a68a25454cbb16ad803b5d8f927e9377a..5b71e4ef33f8577dc1836eae85d4da19b7b7e2b7 100644 (file)
@@ -33,7 +33,7 @@ using lyx::support::strToInt;
 
 
 // An updatable inset is highly editable by definition
-InsetOld::EDITABLE UpdatableInset::editable() const
+InsetBase::EDITABLE UpdatableInset::editable() const
 {
        return HIGHLY_EDITABLE;
 }
@@ -106,7 +106,7 @@ void UpdatableInset::doDispatch(LCursor & cur, FuncRequest & cmd)
                break;
 
        default:
-               InsetOld::dispatch(cur, cmd);
+               InsetBase::dispatch(cur, cmd);
        }
 }
 
index 55960792938045393bfea833a889bfbba0545e49..51bc8e0725b222994b1e88e6d2d804fb8e9fe570 100644 (file)
@@ -396,27 +396,27 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
                if (!inset)
                        break;
 
-               InsetOld::Code code = inset->lyxCode();
+               InsetBase::Code code = inset->lyxCode();
                switch (code) {
-                       case InsetOld::TABULAR_CODE:
+                       case InsetBase::TABULAR_CODE:
                                enable = cmd.argument == "tabular";
                                break;
-                       case InsetOld::ERT_CODE:
+                       case InsetBase::ERT_CODE:
                                enable = cmd.argument == "ert";
                                break;
-                       case InsetOld::FLOAT_CODE:
+                       case InsetBase::FLOAT_CODE:
                                enable = cmd.argument == "float";
                                break;
-                       case InsetOld::WRAP_CODE:
+                       case InsetBase::WRAP_CODE:
                                enable = cmd.argument == "wrap";
                                break;
-                       case InsetOld::NOTE_CODE:
+                       case InsetBase::NOTE_CODE:
                                enable = cmd.argument == "note";
                                break;
-                       case InsetOld::BRANCH_CODE:
+                       case InsetBase::BRANCH_CODE:
                                enable = cmd.argument == "branch";
                                break;
-                       case InsetOld::BOX_CODE:
+                       case InsetBase::BOX_CODE:
                                enable = cmd.argument == "box";
                                break;
                        default:
@@ -437,7 +437,7 @@ FuncStatus LyXFunc::getStatus(FuncRequest const & cmd) const
                        enable = Exporter::IsExportable(*buf, "dvi")
                                && lyxrc.print_command != "none";
                else if (name == "character")
-                       enable = cur.inset().lyxCode() != InsetOld::ERT_CODE;
+                       enable = cur.inset().lyxCode() != InsetBase::ERT_CODE;
                else if (name == "vclog")
                        enable = buf->lyxvc().inUse();
                else if (name == "latexlog")
index 85e36504e683e81a26c0d3f4715983ce02a0114a..cf5eac00092d0c339634980aea6154673f4b9708 100644 (file)
@@ -30,7 +30,7 @@ class BufferView;
 class CursorSlice;
 class Dimension;
 class InsetBase;
-class InsetOld_code;
+class InsetBase_code;
 class FuncRequest;
 class FuncStatus;
 class LColor_color;
@@ -255,13 +255,13 @@ public:
 
        /// Find next inset of some specified type.
        bool gotoNextInset(LCursor & cur,
-               std::vector<InsetOld_code> const & codes,
+               std::vector<InsetBase_code> const & codes,
                std::string const & contents = std::string());
        ///
        void gotoInset(LCursor & cur,
-               std::vector<InsetOld_code> const & codes, bool same_content);
+               std::vector<InsetBase_code> const & codes, bool same_content);
        ///
-       void gotoInset(LCursor & cur, InsetOld_code code, bool same_content);
+       void gotoInset(LCursor & cur, InsetBase_code code, bool same_content);
 
        /// current text width
        int width() const;
index 89958ab06163dcd9bd6dc9eb3ae6aba4a1a0c044..72cc66a88b7941732617c3e374999c589b4c9994 100644 (file)
@@ -45,7 +45,7 @@ void linuxdocParagraphs(Buffer const & buf,
                // treat <toc> as a special case for compatibility with old code
                if (!pit->empty() && pit->isInset(0)) {
                        InsetBase const * inset = pit->getInset(0);
-                       if (inset->lyxCode() == InsetOld::TOC_CODE) {
+                       if (inset->lyxCode() == InsetBase::TOC_CODE) {
                                string const temp = "toc";
                                sgml::openTag(os, temp);
                                continue;
index 946c8e03c921c3da6b4de6492346ddf64b28e88a..8ddf5b65e504513a9d46cf520f4bcd9afea73c0f 100644 (file)
@@ -306,7 +306,7 @@ void Paragraph::insertInset(pos_type pos, InsetBase * inset,
 }
 
 
-bool Paragraph::insetAllowed(InsetOld_code code)
+bool Paragraph::insetAllowed(InsetBase_code code)
 {
        return !pimpl_->inset_owner || pimpl_->inset_owner->insetAllowed(code);
 }
index 2a464d6a27ecbc5d5ebfff03886fd04c0b80b7e4..017ec832d067c33951bf3029a2e8a2e36be646d6 100644 (file)
@@ -35,7 +35,7 @@ class BufferView;
 class Counters;
 class InsetBase;
 class InsetBibitem;
-class InsetOld_code;
+class InsetBase_code;
 class Language;
 class LaTeXFeatures;
 class OutputParams;
@@ -319,7 +319,7 @@ public:
        void insertInset(lyx::pos_type pos, InsetBase * inset,
                LyXFont const &, Change change = Change(Change::INSERTED));
        ///
-       bool insetAllowed(InsetOld_code code);
+       bool insetAllowed(InsetBase_code code);
        ///
        InsetBase * getInset(lyx::pos_type pos);
        ///
index 1dca70f68e5fdc5cf3f31aa1bace05579bed1ba1..ff52582f734a0aaaceaa9fdf6e4a66210417f0fc 100644 (file)
@@ -185,7 +185,7 @@ string const freefont2string()
 }
 
 bool LyXText::gotoNextInset(LCursor & cur,
-       vector<InsetOld_code> const & codes, string const & contents)
+       vector<InsetBase_code> const & codes, string const & contents)
 {
        BOOST_ASSERT(this == cur.text());
        pit_type end = paragraphs().size();
@@ -218,7 +218,7 @@ bool LyXText::gotoNextInset(LCursor & cur,
 
 
 void LyXText::gotoInset(LCursor & cur,
-       vector<InsetOld_code> const & codes, bool same_content)
+       vector<InsetBase_code> const & codes, bool same_content)
 {
        cur.clearSelection();
 
@@ -249,9 +249,9 @@ void LyXText::gotoInset(LCursor & cur,
 }
 
 
-void LyXText::gotoInset(LCursor & cur, InsetOld_code code, bool same_content)
+void LyXText::gotoInset(LCursor & cur, InsetBase_code code, bool same_content)
 {
-       gotoInset(cur, vector<InsetOld_code>(1, code), same_content);
+       gotoInset(cur, vector<InsetBase_code>(1, code), same_content);
 }
 
 
@@ -981,7 +981,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
                break;
 
        case LFUN_REFERENCE_GOTO: {
-               vector<InsetOld_code> tmp;
+               vector<InsetBase_code> tmp;
                tmp.push_back(InsetBase::LABEL_CODE);
                tmp.push_back(InsetBase::REF_CODE);
                gotoInset(cur, tmp, true);
@@ -1594,7 +1594,7 @@ bool LyXText::getStatus(LCursor & cur, FuncRequest const & cmd,
                break;
 
        case LFUN_INSET_OPTARG:
-               enable = numberOfOptArgs(cur.paragraph()) 
+               enable = numberOfOptArgs(cur.paragraph())
                        < cur.paragraph().layout()->optionalargs;
                break;
 
@@ -1604,117 +1604,117 @@ bool LyXText::getStatus(LCursor & cur, FuncRequest const & cmd,
 
 #if 0
        // the functions which insert insets
-       InsetOld::Code code = InsetOld::NO_CODE;
+       InsetBase::Code code = InsetBase::NO_CODE;
        switch (cmd.action) {
        case LFUN_DIALOG_SHOW_NEW_INSET:
                if (cmd.argument == "bibitem")
-                       code = InsetOld::BIBITEM_CODE;
+                       code = InsetBase::BIBITEM_CODE;
                else if (cmd.argument == "bibtex")
-                       code = InsetOld::BIBTEX_CODE;
+                       code = InsetBase::BIBTEX_CODE;
                else if (cmd.argument == "box")
-                       code = InsetOld::BOX_CODE;
+                       code = InsetBase::BOX_CODE;
                else if (cmd.argument == "branch")
-                       code = InsetOld::BRANCH_CODE;
+                       code = InsetBase::BRANCH_CODE;
                else if (cmd.argument == "citation")
-                       code = InsetOld::CITE_CODE;
+                       code = InsetBase::CITE_CODE;
                else if (cmd.argument == "ert")
-                       code = InsetOld::ERT_CODE;
+                       code = InsetBase::ERT_CODE;
                else if (cmd.argument == "external")
-                       code = InsetOld::EXTERNAL_CODE;
+                       code = InsetBase::EXTERNAL_CODE;
                else if (cmd.argument == "float")
-                       code = InsetOld::FLOAT_CODE;
+                       code = InsetBase::FLOAT_CODE;
                else if (cmd.argument == "graphics")
-                       code = InsetOld::GRAPHICS_CODE;
+                       code = InsetBase::GRAPHICS_CODE;
                else if (cmd.argument == "include")
-                       code = InsetOld::INCLUDE_CODE;
+                       code = InsetBase::INCLUDE_CODE;
                else if (cmd.argument == "index")
-                       code = InsetOld::INDEX_CODE;
+                       code = InsetBase::INDEX_CODE;
                else if (cmd.argument == "label")
-                       code = InsetOld::LABEL_CODE;
+                       code = InsetBase::LABEL_CODE;
                else if (cmd.argument == "note")
-                       code = InsetOld::NOTE_CODE;
+                       code = InsetBase::NOTE_CODE;
                else if (cmd.argument == "ref")
-                       code = InsetOld::REF_CODE;
+                       code = InsetBase::REF_CODE;
                else if (cmd.argument == "toc")
-                       code = InsetOld::TOC_CODE;
+                       code = InsetBase::TOC_CODE;
                else if (cmd.argument == "url")
-                       code = InsetOld::URL_CODE;
+                       code = InsetBase::URL_CODE;
                else if (cmd.argument == "vspace")
-                       code = InsetOld::VSPACE_CODE;
+                       code = InsetBase::VSPACE_CODE;
                else if (cmd.argument == "wrap")
-                       code = InsetOld::WRAP_CODE;
+                       code = InsetBase::WRAP_CODE;
                break;
 
        case LFUN_INSET_ERT:
-               code = InsetOld::ERT_CODE;
+               code = InsetBase::ERT_CODE;
                break;
        case LFUN_INSET_FOOTNOTE:
-               code = InsetOld::FOOT_CODE;
+               code = InsetBase::FOOT_CODE;
                break;
        case LFUN_TABULAR_INSERT:
-               code = InsetOld::TABULAR_CODE;
+               code = InsetBase::TABULAR_CODE;
                break;
        case LFUN_INSET_MARGINAL:
-               code = InsetOld::MARGIN_CODE;
+               code = InsetBase::MARGIN_CODE;
                break;
        case LFUN_INSET_FLOAT:
        case LFUN_INSET_WIDE_FLOAT:
-               code = InsetOld::FLOAT_CODE;
+               code = InsetBase::FLOAT_CODE;
                break;
        case LFUN_INSET_WRAP:
-               code = InsetOld::WRAP_CODE;
+               code = InsetBase::WRAP_CODE;
                break;
        case LFUN_FLOAT_LIST:
-               code = InsetOld::FLOAT_LIST_CODE;
+               code = InsetBase::FLOAT_LIST_CODE;
                break;
 #if 0
        case LFUN_INSET_LIST:
-               code = InsetOld::LIST_CODE;
+               code = InsetBase::LIST_CODE;
                break;
        case LFUN_INSET_THEOREM:
-               code = InsetOld::THEOREM_CODE;
+               code = InsetBase::THEOREM_CODE;
                break;
 #endif
        case LFUN_INSET_CAPTION:
-               code = InsetOld::CAPTION_CODE;
+               code = InsetBase::CAPTION_CODE;
                break;
        case LFUN_INSERT_NOTE:
-               code = InsetOld::NOTE_CODE;
+               code = InsetBase::NOTE_CODE;
                break;
        case LFUN_INSERT_CHARSTYLE:
-               code = InsetOld::CHARSTYLE_CODE;
+               code = InsetBase::CHARSTYLE_CODE;
                if (buf->params().getLyXTextClass().charstyles().empty())
                        enable = false;
                break;
        case LFUN_INSERT_BOX:
-               code = InsetOld::BOX_CODE;
+               code = InsetBase::BOX_CODE;
                break;
        case LFUN_INSERT_BRANCH:
-               code = InsetOld::BRANCH_CODE;
+               code = InsetBase::BRANCH_CODE;
                if (buf->params().branchlist().empty())
                        enable = false;
                break;
        case LFUN_INSERT_LABEL:
-               code = InsetOld::LABEL_CODE;
+               code = InsetBase::LABEL_CODE;
                break;
        case LFUN_INSET_OPTARG:
-               code = InsetOld::OPTARG_CODE;
+               code = InsetBase::OPTARG_CODE;
                break;
        case LFUN_ENVIRONMENT_INSERT:
-               code = InsetOld::BOX_CODE;
+               code = InsetBase::BOX_CODE;
                break;
        case LFUN_INDEX_INSERT:
-               code = InsetOld::INDEX_CODE;
+               code = InsetBase::INDEX_CODE;
                break;
        case LFUN_INDEX_PRINT:
-               code = InsetOld::INDEX_PRINT_CODE;
+               code = InsetBase::INDEX_PRINT_CODE;
                break;
        case LFUN_TOC_INSERT:
-               code = InsetOld::TOC_CODE;
+               code = InsetBase::TOC_CODE;
                break;
        case LFUN_HTMLURL:
        case LFUN_URL:
-               code = InsetOld::URL_CODE;
+               code = InsetBase::URL_CODE;
                break;
        case LFUN_QUOTE:
                // always allow this, since we will inset a raw quote
@@ -1726,22 +1726,22 @@ bool LyXText::getStatus(LCursor & cur, FuncRequest const & cmd,
        case LFUN_MENU_SEPARATOR:
        case LFUN_LDOTS:
        case LFUN_END_OF_SENTENCE:
-               code = InsetOld::SPECIALCHAR_CODE;
+               code = InsetBase::SPECIALCHAR_CODE;
                break;
        case LFUN_SPACE_INSERT:
                // slight hack: we know this is allowed in math mode
                if (cur.inTexted())
-                       code = InsetOld::SPACE_CODE;
+                       code = InsetBase::SPACE_CODE;
                break;
        case LFUN_INSET_DIALOG_SHOW: {
                InsetBase * inset = cur.nextInset();
                enable = inset;
                if (inset) {
                        code = inset->lyxCode();
-                       if (!(code == InsetOld::INCLUDE_CODE
-                               || code == InsetOld::BIBTEX_CODE
-                               || code == InsetOld::FLOAT_LIST_CODE
-                               || code == InsetOld::TOC_CODE))
+                       if (!(code == InsetBase::INCLUDE_CODE
+                               || code == InsetBase::BIBTEX_CODE
+                               || code == InsetBase::FLOAT_LIST_CODE
+                               || code == InsetBase::TOC_CODE))
                                enable = false;
                }
                break;
@@ -1750,7 +1750,7 @@ bool LyXText::getStatus(LCursor & cur, FuncRequest const & cmd,
                break;
        }
 
-       if (code != InsetOld::NO_CODE
+       if (code != InsetBase::NO_CODE
                        && (cur.empty() || !cur.inset().insetAllowed(code)))
                enable = false;
 
index d18c4b03877cfab695d2478de9f033fb1ed19ad5..9e06fc52eae051531aaa7067d05a12c46560dbe8 100644 (file)
--- a/src/toc.C
+++ b/src/toc.C
@@ -86,10 +86,10 @@ TocList const getTocList(Buffer const & buf)
                InsetList::const_iterator it = pit->insetlist.begin();
                InsetList::const_iterator end = pit->insetlist.end();
                for (; it != end; ++it) {
-                       if (it->inset->lyxCode() == InsetOld::FLOAT_CODE) {
+                       if (it->inset->lyxCode() == InsetBase::FLOAT_CODE) {
                                static_cast<InsetFloat*>(it->inset)
                                        ->addToToc(toclist, buf);
-                       } else if (it->inset->lyxCode() == InsetOld::WRAP_CODE) {
+                       } else if (it->inset->lyxCode() == InsetBase::WRAP_CODE) {
                                static_cast<InsetWrap*>(it->inset)
                                        ->addToToc(toclist, buf);
                        }