mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
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:
parent
f5798dbc11
commit
94828848a5
@ -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)
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user