+
+ return result;
+}
+
+
+void InsetMinipage::Params::write(ostream & os) const
+{
+ os << "Minipage" << '\n'
+ << "position " << pos << '\n'
+ << "inner_position " << inner_pos << '\n'
+ << "height \"" << height.asString() << "\"\n"
+ << "width \"" << width.asString() << "\"\n";
+}
+
+
+void InsetMinipage::Params::read(LyXLex & lex)
+{
+ if (lex.isOK()) {
+ lex.next();
+ string const token = lex.getString();
+ if (token == "position") {
+ lex.next();
+ pos = static_cast<Position>(lex.getInteger());
+ } else {
+ lyxerr << "InsetMinipage::Read: Missing 'position'-tag!"
+ << endl;
+ // take countermeasures
+ lex.pushToken(token);
+ }