]> git.lyx.org Git - features.git/commitdiff
display() { return true; } only for those insets that are is display mode.
authorAngus Leeming <leeming@lyx.org>
Wed, 22 Oct 2003 10:22:09 +0000 (10:22 +0000)
committerAngus Leeming <leeming@lyx.org>
Wed, 22 Oct 2003 10:22:09 +0000 (10:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7951 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/ChangeLog
src/insets/insetbibtex.h
src/insets/insetcommand.h
src/insets/insetfloatlist.h
src/insets/insetindex.C
src/insets/insetindex.h
src/insets/insettoc.h

index 52c5c73de15f04a6426bd9424df23ada89a819bd..aa729f2711a35241e2ccb22c9d99a3d94dcbd662 100644 (file)
@@ -1,3 +1,12 @@
+2003-10-22  Angus Leeming  <leeming@lyx.org>
+
+       * insetcommand.h: remove the display method.
+
+       * insetbibtex.h:
+       * insetfloatlist.h:
+       * insetindex.h (InsetPrintIndex):
+       * insettoc.h: add a display method, returning true.
+
 2003-10-21  Martin Vermeer  <martin.vermeer@hut.fi>
 
        * insetcollapsable.h:
index a7fddf505d24c377d2333113faeaf960cfdc3813..fa0d63ceaa26c60503ee12e5e18b282460e659f3 100644 (file)
@@ -37,6 +37,8 @@ public:
        ///
        InsetOld::Code lyxCode() const { return InsetOld::BIBTEX_CODE; }
        ///
+       bool display() const { return true; }
+       ///
        int latex(Buffer const &, std::ostream &,
                  LatexRunParams const &) const;
        ///
index 969f987da073b53f902ec245907b8b9b6acc5625..8003f3119e4b4e57934b6bba3e889bc06feb3813 100644 (file)
@@ -55,8 +55,6 @@ public:
        virtual int docbook(Buffer const &, std::ostream &, bool) const;
        ///
        InsetOld::Code lyxCode() const { return InsetOld::NO_CODE; }
-       ///
-       virtual bool display() const { return true; }
        
        ///
        InsetCommandParams const & params() const { return p_; }
index 42cd403f248cfdc080e50cff1e637f4cd4f1f308..6d77f159f185da5b1df48ccd7917c0cf5dc32fb7 100644 (file)
@@ -40,6 +40,8 @@ public:
        ///
        InsetOld::Code lyxCode() const;
        ///
+       bool display() const { return true; }
+       ///
        void write(Buffer const &, std::ostream &) const;
        ///
        void read(Buffer const &, LyXLex &);
index b961d7d0efc724a6708e2d85df9e3db6a49fc33a..fa99b04310c777c4b75d1350d33aa436a1939d3c 100644 (file)
@@ -56,7 +56,7 @@ void InsetPrintIndex::metrics(MetricsInfo & mi, Dimension & dim) const
 
 void InsetPrintIndex::draw(PainterInfo & pi, int x, int y) const
 {
-                   InsetCommand::draw(pi, x + center_indent_, y);
+       InsetCommand::draw(pi, x + center_indent_, y);
 }
 
 
index 99ab39a448ffebb09418b83ee2169b20b7f35811..5e5d607b81f0b468e824a2ff9d2c1cc571ce8114 100644 (file)
@@ -62,6 +62,8 @@ public:
        ///
        InsetOld::Code lyxCode() const;
        ///
+       bool display() const { return true; }
+       ///
        std::string const getScreenLabel(Buffer const &) const;
        ///
        void metrics(MetricsInfo &, Dimension &) const;
index a7c30389d9e6ae39be6980cf2f821dc44cac056c..911f7baa0ab3e221b2d85d18913c65c977437543 100644 (file)
@@ -41,6 +41,8 @@ public:
        ///
        InsetOld::Code lyxCode() const;
        ///
+       bool display() const { return true; }
+       ///
        int ascii(Buffer const &, std::ostream &, int linelen) const;
        ///
        int linuxdoc(Buffer const &, std::ostream &) const;