BUG 3649: display float listings inline, like other float insets

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18413 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Bo Peng 2007-05-18 20:01:56 +00:00
parent d848a5e393
commit f672df5dc2
3 changed files with 10 additions and 1 deletions

View File

@ -81,7 +81,7 @@ InsetListings::~InsetListings()
Inset::DisplayType InsetListings::display() const
{
return params().isInline() ? Inline : AlignLeft;
return params().isInline() || params().isFloat() ? Inline : AlignLeft;
}

View File

@ -560,6 +560,12 @@ void InsetListingsParams::fromEncodedString(string const & in)
}
bool InsetListingsParams::isFloat() const
{
return find(keys_.begin(), keys_.end(), "float") != keys_.end();
}
string InsetListingsParams::getParamValue(string const & param) const
{
// is this parameter defined?

View File

@ -60,6 +60,9 @@ public:
///
bool isInline() const { return inline_; }
///
bool isFloat() const;
///
InsetCollapsable::CollapseStatus status() const { return status_; }