]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetTheorem.cpp
InsetListings: change the interface of diaplay function and allow AlignLeft. Applied...
[lyx.git] / src / insets / InsetTheorem.cpp
index 746bc27525c64e1a39f6e38ee9506aa4d8f68c5b..8e663a4310d3e1782bdd9000e8593b89ae8436f1 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file InsetBase.heorem.cpp
+ * \file Inset.heorem.cpp
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
 
 #include <config.h>
 
-#include "InsetBase.heorem.h"
+#include "Inset.heorem.h"
 #include "insets/InsetText.h"
 
 #include "debug.h"
 #include "gettext.h"
-#include "LyXFont.h"
-#include "LyXText.h"
+#include "Font.h"
+#include "Text.h"
 #include "MetricsInfo.h"
 
 #include "support/std_ostream.h"
@@ -35,11 +35,11 @@ using std::ostream;
    user.
 */
 
-InsetBase.heorem::InsetTheorem()
+Inset.heorem::InsetTheorem()
        : InsetCollapsable()
 {
        setLabel(_("theorem"));
-       LyXFont font(LyXFont::ALL_SANE);
+       Font font(Font::ALL_SANE);
        font.decSize();
        font.decSize();
        font.setColor(Color::collapsable);
@@ -51,25 +51,25 @@ InsetBase.heorem::InsetTheorem()
 }
 
 
-void InsetBase.heorem::write(Buffer const * buf, ostream & os) const
+void Inset.heorem::write(Buffer const * buf, ostream & os) const
 {
-       os << getInsetName() << "\n";
+       os << name() << "\n";
        InsetCollapsable::write(buf, os);
 }
 
 
-auto_ptr<InsetBase> InsetBase.heorem::doClone() const
+auto_ptr<Inset> Inset.heorem::doClone() const
 {
 #ifdef WITH_WARNINGS
 #warning Is this inset used? If YES this is WRONG!!! (Jug)
 #endif
-       auto_ptr<InsetBase.heorem> result(new InsetTheorem);
+       auto_ptr<Inset.heorem> result(new InsetTheorem);
        result->setCollapsed(!isOpen());
 
        return result;
 }
 
-bool InsetBase.heorem::metrics(MetricsInfo & mi, Dimension & dim) const
+bool Inset.heorem::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        InsetCollapsable::metrics(mi, dim);
        center_indent_ = (mi.base.textwidth - dim.wid) / 2;
@@ -86,13 +86,13 @@ void InsetTOC::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-string const InsetBase.heorem::editMessage() const
+string const Inset.heorem::editMessage() const
 {
        return _("Opened Theorem Inset");
 }
 
 
-int InsetBase.heorem::latex(Buffer const * buf, odocstream & os,
+int Inset.heorem::latex(Buffer const * buf, odocstream & os,
                        OutputParams const & runparams) const
 {
        os << "\\begin{theorem}%\n";