On Mon, Feb 19, 2001 at 01:08:16PM +0000, Angus Leeming wrote:
> A general InsetCommand will output LaTeX of the form
> \command[opt1][opt2][opt ...]{contents}
> (Of course, opt1, op2 etc can contain square brackets themselves)
Why not have a more general code, so that InsetCommand can output a more
complicated latex code defined by a template. For example,
a bibtopic inset can output the following code:
\begin{btSect}[$style]{$database}
\$level{$title}
\btPrintCited
\end{btSect}
The LyX file will be contain something like
\begin_inset LatexCommand template-name
varname value
var2name value2
...
\end_inset
> The existing interface to the Options in an InsetCommandParams is:
> string const & getOptions() const;
> void setOptions(string const &);
>
> I was planning to change this to:
> string const & getOptions(int=0) const;
> void setOptions(string const &, int=0);
> int nOptions() const; // returns number of Options
So we need
string const & getOptions(string const & varname);
etc.