Andre Poenitz wrote:
On Thu, Oct 25, 2007 at 04:47:17PM -0400, Richard Heck wrote:
vitual CommandInfo const * findInfo(std::string const & cmdName) = 0;
I didn't do that because it needs, at least in the base classes, to
be static, and I wanted to indicate here that it needed to
On Thu, Oct 25, 2007 at 04:47:17PM -0400, Richard Heck wrote:
> vitual CommandInfo const * findInfo(std::string const & cmdName) = 0;
> >>>I didn't do that because it needs, at least in the base classes, to
> >>>be static, and I wanted to indicate here that it needed to be
> >>>implemented as
Richard Heck wrote:
Andre Poenitz wrote:
On Thu, Oct 25, 2007 at 09:26:31AM -0400, Richard Heck wrote:
Abdelrazak Younes wrote:
[EMAIL PROTECTED] wrote:
+ /// Return parameter information for command cmdName.
+ /// Not implemented here. Must be implemented in derived class.
+ static CommandIn
Andre Poenitz wrote:
On Thu, Oct 25, 2007 at 09:26:31AM -0400, Richard Heck wrote:
Abdelrazak Younes wrote:
[EMAIL PROTECTED] wrote:
+/// Return parameter information for command cmdName.
+/// Not implemented here. Must be implemented in derived class.
+static Comman
On Thu, Oct 25, 2007 at 09:26:31AM -0400, Richard Heck wrote:
> Abdelrazak Younes wrote:
> >[EMAIL PROTECTED] wrote:
> >>+/// Return parameter information for command cmdName.
> >>+/// Not implemented here. Must be implemented in derived class.
> >>+static CommandInfo const * findInfo(s
Abdelrazak Younes wrote:
[EMAIL PROTECTED] wrote:
URL: http://www.lyx.org/trac/changeset/21194
+CommandInfo const * InsetBibitem::findInfo(std::string const & /*
cmdName */)
+{
+static const char * const paramnames[] = {"label", "key", ""};
+static const bool isoptional[] = {true, fals
Abdelrazak Younes wrote:
Something like the attached, unfinished, patch
Thanks for these ideas. They'll be useful.
rh
--
==
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
=
Abdelrazak Younes wrote:
[EMAIL PROTECTED] wrote:
+/// Return parameter information for command cmdName.
+/// Not implemented here. Must be implemented in derived class.
+static CommandInfo const * findInfo(std::string const & cmdName);
So make it pure virtual:
vitual CommandInfo
Andre Poenitz wrote:
On Thu, Oct 25, 2007 at 04:13:58AM -, [EMAIL PROTECTED] wrote:
+ICPInfo::ICPInfo(std::string const & s, bool b)
+ : paramName(s), optional(b)
+{}
+
+
+void ICPList::addParam(std::string const & s, bool b) {
+ plist_.push_back(ICPInfo(s, b));
+}
+
+
+bool I
Abdelrazak Younes wrote:
[EMAIL PROTECTED] wrote:
Author: rgheck
Date: Thu Oct 25 06:13:56 2007
New Revision: 21194
URL: http://www.lyx.org/trac/changeset/21194
Log:
Move the findInfo() and defaultCommand() routines out of InsetCommand
and into its subclasses, so that the subclasses know what
[EMAIL PROTECTED] wrote:
Author: rgheck
Date: Thu Oct 25 06:13:56 2007
New Revision: 21194
URL: http://www.lyx.org/trac/changeset/21194
Log:
Move the findInfo() and defaultCommand() routines out of InsetCommand and into its
subclasses, so that the subclasses know what parameters they want, etc.
[EMAIL PROTECTED] wrote:
Author: rgheck
Date: Thu Oct 25 06:13:56 2007
New Revision: 21194
URL: http://www.lyx.org/trac/changeset/21194
Log:
Move the findInfo() and defaultCommand() routines out of InsetCommand and into its
subclasses, so that the subclasses know what parameters they want, etc.
On Thu, Oct 25, 2007 at 04:13:58AM -, [EMAIL PROTECTED] wrote:
> +ICPInfo::ICPInfo(std::string const & s, bool b)
> + : paramName(s), optional(b)
> +{}
> +
> +
> +void ICPList::addParam(std::string const & s, bool b) {
> + plist_.push_back(ICPInfo(s, b));
> +}
> +
> +
> +bool ICPList::h
13 matches
Mail list logo