10 points of RIGHT_MARGIN

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8145 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2003-11-28 09:03:13 +00:00
parent 84b462dd37
commit e5c07a21d5

View File

@ -65,6 +65,8 @@ using std::string;
extern int const NEST_MARGIN = 20;
/// margin for changebar
extern int const CHANGEBAR_MARGIN = 10;
/// right margin
extern int const RIGHT_MARGIN = 10;
namespace {
@ -340,6 +342,7 @@ int LyXText::rightMargin(Paragraph const & par) const
LyXTextClass const & tclass = bv()->buffer()->params().getLyXTextClass();
return
RIGHT_MARGIN
+ font_metrics::signedWidth(tclass.rightmargin(),
tclass.defaultfont())
+ font_metrics::signedWidth(par.layout()->rightmargin,