From: Angus Leeming Date: Wed, 22 Oct 2003 10:22:09 +0000 (+0000) Subject: display() { return true; } only for those insets that are is display mode. X-Git-Tag: 1.6.10~15917 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=f5d9beafd3c1dafb9353b6fec6901b386374a63b;p=features.git display() { return true; } only for those insets that are is display mode. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7951 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/ChangeLog b/src/insets/ChangeLog index 52c5c73de1..aa729f2711 100644 --- a/src/insets/ChangeLog +++ b/src/insets/ChangeLog @@ -1,3 +1,12 @@ +2003-10-22 Angus Leeming + + * 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 * insetcollapsable.h: diff --git a/src/insets/insetbibtex.h b/src/insets/insetbibtex.h index a7fddf505d..fa0d63ceaa 100644 --- a/src/insets/insetbibtex.h +++ b/src/insets/insetbibtex.h @@ -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; /// diff --git a/src/insets/insetcommand.h b/src/insets/insetcommand.h index 969f987da0..8003f3119e 100644 --- a/src/insets/insetcommand.h +++ b/src/insets/insetcommand.h @@ -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_; } diff --git a/src/insets/insetfloatlist.h b/src/insets/insetfloatlist.h index 42cd403f24..6d77f159f1 100644 --- a/src/insets/insetfloatlist.h +++ b/src/insets/insetfloatlist.h @@ -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 &); diff --git a/src/insets/insetindex.C b/src/insets/insetindex.C index b961d7d0ef..fa99b04310 100644 --- a/src/insets/insetindex.C +++ b/src/insets/insetindex.C @@ -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); } diff --git a/src/insets/insetindex.h b/src/insets/insetindex.h index 99ab39a448..5e5d607b81 100644 --- a/src/insets/insetindex.h +++ b/src/insets/insetindex.h @@ -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; diff --git a/src/insets/insettoc.h b/src/insets/insettoc.h index a7c30389d9..911f7baa0a 100644 --- a/src/insets/insettoc.h +++ b/src/insets/insettoc.h @@ -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;