]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetIndex.cpp
pimpl not needed here
[lyx.git] / src / insets / InsetIndex.cpp
index 41c1d0dd8c7060e233e257c681a1af8fba97a82d..aaef4d43c5479aeec2046a272e89c78500ed3d7f 100644 (file)
@@ -30,9 +30,7 @@ using std::ostream;
 
 InsetIndex::InsetIndex(BufferParams const & bp)
        : InsetCollapsable(bp)
-{
-       setLayout(bp);
-}
+{}
 
 
 InsetIndex::InsetIndex(InsetIndex const & in)
@@ -63,50 +61,6 @@ void InsetIndex::write(Buffer const & buf, std::ostream & os) const
 }
 
 
-void InsetIndex::metrics(MetricsInfo & mi, Dimension & dim) const
-{
-       FontInfo tmpfont = mi.base.font;
-       getDrawFont(mi.base.font);
-       mi.base.font.realize(tmpfont);
-       InsetCollapsable::metrics(mi, dim);
-       mi.base.font = tmpfont;
-}
-
-
-void InsetIndex::draw(PainterInfo & pi, int x, int y) const
-{
-       FontInfo tmpfont = pi.base.font;
-       getDrawFont(pi.base.font);
-       pi.base.font.realize(tmpfont);
-       InsetCollapsable::draw(pi, x, y);
-       pi.base.font = tmpfont;
-}
-
-
-void InsetIndex::getDrawFont(FontInfo & font) const
-{
-       font = inherit_font;
-       font.realize(layout_.font);
-}
-
-
-bool InsetIndex::getStatus(Cursor & cur, FuncRequest const & cmd,
-       FuncStatus & status) const
-{
-       switch (cmd.action) {
-               // paragraph breaks not allowed
-               case LFUN_BREAK_PARAGRAPH:
-               case LFUN_BREAK_PARAGRAPH_SKIP:
-                       status.enabled(false);
-                       return true;
-
-               default:
-                       return InsetCollapsable::getStatus(cur, cmd, status);
-               }
-}
-
-
-
 InsetPrintIndex::InsetPrintIndex(InsetCommandParams const & p)
        : InsetCommand(p, string())
 {}