* command_inset.[Ch] (createDialogStr): a new function to generate
something that the frontend Dialogs will understand.
* command_inset.[Ch] (createDialogStr): a new function to generate
something that the frontend Dialogs will understand.
+ (c-tor): the string passed to the c-tor is now understood to be
+ simply the inset's name, not some strange beast containing "|++|".
* math_factory.[Ch] (createMathInset_fromDialogStr): new function
parses the string passed from the frontends.
* math_factory.[Ch] (createMathInset_fromDialogStr): new function
parses the string passed from the frontends.
-CommandInset::CommandInset(string const & data)
+CommandInset::CommandInset(string const & name)
+ : name_(name)
-
- string::size_type idx0 = data.find("|++|");
- name_ = data.substr(0, idx0);
- if (idx0 == string::npos)
- return;
- idx0 += 4;
- string::size_type idx1 = data.find("|++|", idx0);
- cell(0) = asArray(data.substr(idx0, idx1 - idx0));
- if (idx1 == string::npos)
- return;
- cell(1) = asArray(data.substr(idx1 + 4));
/// Inset for things like \name[options]{contents}
class CommandInset : public ButtonInset {
public:
/// Inset for things like \name[options]{contents}
class CommandInset : public ButtonInset {
public:
- /// name, contents, options deliminited by '|++|'
- explicit CommandInset(string const & data);
+ ///
+ explicit CommandInset(string const & name);
///
MathInset * clone() const;
///
///
MathInset * clone() const;
///