mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-28 06:49:43 +00:00
DocBook: remove special options from InsetGraphics.cpp
This was not really a useful attribute for DocBook, or it must be parsed beforehand.
This commit is contained in:
parent
91d442d505
commit
1766bff806
@ -511,27 +511,23 @@ docstring InsetGraphics::createDocBookAttributes() const
|
|||||||
// stream since we copied the code from createLatexParams() ;-)
|
// stream since we copied the code from createLatexParams() ;-)
|
||||||
|
|
||||||
odocstringstream options;
|
odocstringstream options;
|
||||||
double const scl = convert<double>(params().scale);
|
auto const scl = convert<double>(params().scale);
|
||||||
if (!params().scale.empty() && !float_equal(scl, 0.0, 0.05)) {
|
if (!params().scale.empty() && !float_equal(scl, 0.0, 0.05)) {
|
||||||
if (!float_equal(scl, 100.0, 0.05))
|
if (!float_equal(scl, 100.0, 0.05))
|
||||||
options << " scale=\""
|
options << " scale=\""
|
||||||
<< support::iround(scl)
|
<< support::iround(scl)
|
||||||
<< "\" ";
|
<< "\" ";
|
||||||
} else {
|
} else {
|
||||||
if (!params().width.zero()) {
|
if (!params().width.zero())
|
||||||
options << " width=\"" << toDocbookLength(params().width) << "\" ";
|
options << " width=\"" << toDocbookLength(params().width) << "\" ";
|
||||||
}
|
if (!params().height.zero())
|
||||||
if (!params().height.zero()) {
|
|
||||||
options << " depth=\"" << toDocbookLength(params().height) << "\" ";
|
options << " depth=\"" << toDocbookLength(params().height) << "\" ";
|
||||||
}
|
if (params().keepAspectRatio)
|
||||||
if (params().keepAspectRatio) {
|
|
||||||
// This will be irrelevant unless both width and height are set
|
// This will be irrelevant unless both width and height are set
|
||||||
options << "scalefit=\"1\" ";
|
options << "scalefit=\"1\" ";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!params().special.empty())
|
// TODO: parse params().special?
|
||||||
options << from_ascii(params().special) << " ";
|
|
||||||
|
|
||||||
// trailing blanks are ok ...
|
// trailing blanks are ok ...
|
||||||
return options.str();
|
return options.str();
|
||||||
|
Loading…
Reference in New Issue
Block a user