#include "FuncRequest.h"
#include "FuncStatus.h"
#include "gettext.h"
-#include "LColor.h"
+#include "Color.h"
#include "Lexer.h"
#include "Paragraph.h"
#include "OutputParams.h"
void InsetBranch::init()
{
- setInsetName(from_utf8("Branch"));
setButtonLabel();
}
}
-auto_ptr<InsetBase> InsetBranch::doClone() const
+auto_ptr<Inset> InsetBranch::doClone() const
{
- return auto_ptr<InsetBase>(new InsetBranch(*this));
+ return auto_ptr<Inset>(new InsetBranch(*this));
}
void InsetBranch::setButtonLabel()
{
- LyXFont font(LyXFont::ALL_SANE);
+ Font font(Font::ALL_SANE);
font.decSize();
font.decSize();
docstring s = _("Branch: ") + params_.branch;
- font.setColor(LColor::foreground);
+ font.setColor(Color::foreground);
if (!params_.branch.empty()) {
// FIXME UNICODE
- LColor_color c = lcolor.getFromLyXName(to_utf8(params_.branch));
- if (c == LColor::none) {
- c = LColor::error;
+ Color_color c = lcolor.getFromLyXName(to_utf8(params_.branch));
+ if (c == Color::none) {
+ c = Color::error;
s = _("Undef: ") + s;
}
setBackgroundColor(c);
} else
- setBackgroundColor(LColor::background);
+ setBackgroundColor(Color::background);
setLabel(isOpen() ? s : getNewLabel(s) );
setLabelFont(font);
}
if (!isBranchSelected(buf))
return 0;
- os << '[' << _("branch") << ' ' << params_.branch << ":\n";
+ os << '[' << buf.B_("branch") << ' ' << params_.branch << ":\n";
InsetText::plaintext(buf, os, runparams);
os << "\n]";
return print_mailer_error("InsetBranchMailer", in, 1, name_);
// This is part of the inset proper that is usually swallowed
- // by LyXText::readInset
+ // by Text::readInset
string id;
lex >> id;
if (!lex || id != "Branch")