mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
tex2lyx/text.cpp: add default value for 2 box features
- also add a comment
This commit is contained in:
parent
f7dba65e10
commit
12ae7140c2
@ -1079,6 +1079,8 @@ void parse_box(Parser & p, ostream & os, unsigned outer_flags,
|
|||||||
os << "thickness \"" << thickness << "\"\n";
|
os << "thickness \"" << thickness << "\"\n";
|
||||||
os << "separation \"" << separation << "\"\n";
|
os << "separation \"" << separation << "\"\n";
|
||||||
os << "shadowsize \"" << shadowsize << "\"\n";
|
os << "shadowsize \"" << shadowsize << "\"\n";
|
||||||
|
os << "framecolor \"" << framecolor << "\"\n";
|
||||||
|
os << "backgroundcolor \"" << backgroundcolor << "\"\n";
|
||||||
os << "status open\n\n";
|
os << "status open\n\n";
|
||||||
|
|
||||||
// Unfortunately we can't use parse_text_in_inset:
|
// Unfortunately we can't use parse_text_in_inset:
|
||||||
@ -4142,8 +4144,7 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
parse_outer_box(p, os, FLAG_ITEM, outer,
|
parse_outer_box(p, os, FLAG_ITEM, outer,
|
||||||
context, "parbox", "shaded");
|
context, "parbox", "shaded");
|
||||||
} else
|
} else
|
||||||
parse_box(p, os, 0, FLAG_ITEM, outer, context,
|
parse_box(p, os, 0, FLAG_ITEM, outer, context, "", "", t.cs());
|
||||||
"", "", t.cs());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (t.cs() == "fbox" || t.cs() == "mbox" ||
|
else if (t.cs() == "fbox" || t.cs() == "mbox" ||
|
||||||
@ -4151,6 +4152,8 @@ void parse_text(Parser & p, ostream & os, unsigned flags, bool outer,
|
|||||||
t.cs() == "shadowbox" || t.cs() == "doublebox")
|
t.cs() == "shadowbox" || t.cs() == "doublebox")
|
||||||
parse_outer_box(p, os, FLAG_ITEM, outer, context, t.cs(), "");
|
parse_outer_box(p, os, FLAG_ITEM, outer, context, t.cs(), "");
|
||||||
|
|
||||||
|
//\framebox() is part of the picture environment and different from \framebox{}
|
||||||
|
//\framebox{} will be parsed by parse_outer_box
|
||||||
else if (t.cs() == "framebox") {
|
else if (t.cs() == "framebox") {
|
||||||
if (p.next_token().character() == '(') {
|
if (p.next_token().character() == '(') {
|
||||||
//the syntax is: \framebox(x,y)[position]{content}
|
//the syntax is: \framebox(x,y)[position]{content}
|
||||||
|
Loading…
Reference in New Issue
Block a user