* ControlToc::update(): get rid of the pure virutal method.
* QToc::initialiseParams(): overload ControlToc method.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17708
a592a061-630c-0410-9148-
cb99ea01b6c8
}
}
- update();
return true;
}
virtual ~ControlToc() {}
/// \c ControlCommand inherited method.
- bool initialiseParams(std::string const & data);
+ virtual bool initialiseParams(std::string const & data);
///
TocList const & tocs() const;
///
void updateBackend();
-public:
- /// Update the model data if needed.
- virtual void update() = 0;
-
private:
/// Return the guiname from a given cmdName of the TOC param
docstring const getGuiName(std::string const & type) const;
}
+bool QToc::initialiseParams(std::string const & data)
+{
+ if (!ControlToc::initialiseParams(data))
+ return false;
+ update();
+ return true;
+}
+
+
void QToc::update()
{
updateType();
public:
QToc(Dialog &);
+ virtual ~QToc() {}
+ /// \c ControlToc inherited method.
+ virtual bool initialiseParams(std::string const & data);
+ ///
void update();
///
void updateToc();