#include "Inset.h"
#include "Buffer.h"
+#include "BufferParams.h"
#include "BufferView.h"
#include "Color.h"
#include "CoordCache.h"
#include "FuncStatus.h"
#include "gettext.h"
#include "Text.h"
+#include "TextClass.h"
#include "MetricsInfo.h"
#include "MetricsInfo.h"
/// pretty arbitrary dimensions
Inset::Inset()
- : dim_(10, 10, 10), background_color_(Color::background)
+ : dim_(10, 10, 10)
{}
-std::auto_ptr<Inset> Inset::clone() const
-{
- std::auto_ptr<Inset> b = doClone();
- BOOST_ASSERT(typeid(*b) == typeid(*this));
- return b;
-}
-
-
Inset::Code Inset::translate(std::string const & name)
{
static TranslatorMap const translator = build_translator();
}
-void Inset::dump() const
+InsetLayout const & Inset::getLayout(BufferParams const & bp) const
{
- Buffer buf("foo", 1);
- write(buf, lyxerr);
+ return bp.getTextClass().insetlayout(name());
}
-void Inset::setBackgroundColor(Color_color color)
+void Inset::dump() const
{
- background_color_ = color;
+ Buffer buf("foo", 1);
+ write(buf, lyxerr);
}
Color_color Inset::backgroundColor() const
{
- return Color::color(background_color_);
+ return Color::background;
}