mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-26 10:01:50 +00:00
2a5ab60ce8
Some mathed internal renamings to prepare further IU git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7173 a592a061-630c-0410-9148-cb99ea01b6c8
73 lines
1.2 KiB
C
73 lines
1.2 KiB
C
/**
|
|
* \file insetnote.C
|
|
* This file is part of LyX, the document processor.
|
|
* Licence details can be found in the file COPYING.
|
|
*
|
|
* \author Angus Leeming
|
|
*
|
|
* Full author contact details are available in file CREDITS
|
|
*/
|
|
|
|
#include <config.h>
|
|
|
|
|
|
#include "insetnote.h"
|
|
#include "gettext.h"
|
|
#include "lyxfont.h"
|
|
#include "language.h"
|
|
#include "buffer.h"
|
|
#include "BufferView.h"
|
|
#include "lyxtext.h"
|
|
#include "insets/insettext.h"
|
|
#include "support/LOstream.h"
|
|
#include "support/lstrings.h"
|
|
#include "debug.h"
|
|
|
|
using std::ostream;
|
|
|
|
|
|
void InsetNote::init()
|
|
{
|
|
LyXFont font(LyXFont::ALL_SANE);
|
|
font.decSize();
|
|
font.decSize();
|
|
font.setColor(LColor::note);
|
|
setLabelFont(font);
|
|
setBackgroundColor(LColor::notebg);
|
|
setLabel(_("note"));
|
|
setInsetName("Note");
|
|
}
|
|
|
|
|
|
InsetNote::InsetNote(BufferParams const & bp)
|
|
: InsetCollapsable(bp)
|
|
{
|
|
init();
|
|
}
|
|
|
|
|
|
InsetNote::InsetNote(InsetNote const & in)
|
|
: InsetCollapsable(in)
|
|
{
|
|
init();
|
|
}
|
|
|
|
|
|
InsetBase * InsetNote::clone() const
|
|
{
|
|
return new InsetNote(*this);
|
|
}
|
|
|
|
|
|
string const InsetNote::editMessage() const
|
|
{
|
|
return _("Opened Note Inset");
|
|
}
|
|
|
|
|
|
void InsetNote::write(Buffer const * buf, ostream & os) const
|
|
{
|
|
os << getInsetName() << "\n";
|
|
InsetCollapsable::write(buf, os);
|
|
}
|