Fix bugs 2136, 2123

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@10644 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Martin Vermeer 2005-12-05 15:03:38 +00:00
parent f5798dbc11
commit 94828848a5
3 changed files with 21 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-12-05 Martin Vermeer <martin.vermeer@hut.fi>
* insetbox.[Ch]: fix bugs 2136, 2123
2005-11-02 Martin Vermeer <martin.vermeer@hut.fi>
* insetbox.C (metrics): fix width problems (bug 2137)

View File

@ -163,6 +163,12 @@ void InsetBox::metrics(MetricsInfo & m, Dimension & dim) const
}
bool InsetBox::forceDefaultParagraphs(idx_type) const
{
return !params_.inner_box;
}
bool InsetBox::showInsetDialog(BufferView * bv) const
{
InsetBoxMailer(const_cast<InsetBox &>(*this)).showDialog(bv);
@ -209,6 +215,13 @@ bool InsetBox::getStatus(LCursor & cur, FuncRequest const & cmd,
case LFUN_INSET_DIALOG_UPDATE:
flag.enabled(true);
return true;
case LFUN_BREAKPARAGRAPH:
if (params_.inner_box) {
return InsetCollapsable::getStatus(cur, cmd, flag);
} else {
flag.enabled(false);
return true;
}
default:
return InsetCollapsable::getStatus(cur, cmd, flag);

View File

@ -76,6 +76,10 @@ public:
///
bool display() const { return false; }
///
bool forceDefaultParagraphs(idx_type) const;
///
bool neverIndent() const { return true; }
///
int latex(Buffer const &, std::ostream &,
OutputParams const &) const;
///