/// \name SpellChecker inherited methods
//@{
- enum Result check(WordLangTuple const &);
- void suggest(WordLangTuple const &, docstring_list &);
- void stem(WordLangTuple const &, docstring_list &) {}
- void insert(WordLangTuple const &);
- void remove(WordLangTuple const &);
- void accept(WordLangTuple const &);
- bool hasDictionary(Language const * lang) const;
- int numDictionaries() const;
- bool canCheckParagraph() const { return true; }
- int numMisspelledWords() const;
- void misspelledWord(int index, int & start, int & length) const;
- docstring const error();
- void advanceChangeNumber();
+ enum Result check(WordLangTuple const &) override;
+ void suggest(WordLangTuple const &, docstring_list &) override;
+ void stem(WordLangTuple const &, docstring_list &) override {}
+ void insert(WordLangTuple const &) override;
+ void remove(WordLangTuple const &) override;
+ void accept(WordLangTuple const &) override;
+ bool hasDictionary(Language const * lang) const override;
+ int numDictionaries() const override;
+ bool canCheckParagraph() const override { return true; }
+ int numMisspelledWords() const override;
+ void misspelledWord(int index, int & start, int & length) const override;
+ docstring const error() override;
+ void advanceChangeNumber() override;
//@}
private:
/// \name SpellChecker inherited methods
//@{
- enum Result check(WordLangTuple const &);
- void suggest(WordLangTuple const &, docstring_list &);
- void stem(WordLangTuple const &, docstring_list &) {}
- void insert(WordLangTuple const &);
- void remove(WordLangTuple const &);
- void accept(WordLangTuple const &);
- bool hasDictionary(Language const * lang) const;
- int numDictionaries() const;
- docstring const error();
- void advanceChangeNumber();
+ enum Result check(WordLangTuple const &) override;
+ void suggest(WordLangTuple const &, docstring_list &) override;
+ void stem(WordLangTuple const &, docstring_list &) override {}
+ void insert(WordLangTuple const &) override;
+ void remove(WordLangTuple const &) override;
+ void accept(WordLangTuple const &) override;
+ bool hasDictionary(Language const * lang) const override;
+ int numDictionaries() const override;
+ docstring const error() override;
+ void advanceChangeNumber() override;
//@}
private:
/// SpellChecker inherited methods.
///@{
- enum Result check(WordLangTuple const &);
- void suggest(WordLangTuple const &, docstring_list &);
- void stem(WordLangTuple const &, docstring_list &) {}
- void insert(WordLangTuple const &);
- void remove(WordLangTuple const &);
- void accept(WordLangTuple const &);
- bool hasDictionary(Language const * lang) const;
- int numDictionaries() const;
- docstring const error();
- void advanceChangeNumber();
+ enum Result check(WordLangTuple const &) override;
+ void suggest(WordLangTuple const &, docstring_list &) override;
+ void stem(WordLangTuple const &, docstring_list &) override {}
+ void insert(WordLangTuple const &) override;
+ void remove(WordLangTuple const &) override;
+ void accept(WordLangTuple const &) override;
+ bool hasDictionary(Language const * lang) const override;
+ int numDictionaries() const override;
+ docstring const error() override;
+ void advanceChangeNumber() override;
///@}
private:
/// \name SpellChecker inherited methods.
///@{
- enum Result check(WordLangTuple const &);
- void suggest(WordLangTuple const &, docstring_list &);
- void stem(WordLangTuple const &, docstring_list &);
- void insert(WordLangTuple const &);
- void remove(WordLangTuple const &);
- void accept(WordLangTuple const &);
- bool hasDictionary(Language const * lang) const;
- int numDictionaries() const;
- docstring const error();
- void advanceChangeNumber();
+ enum Result check(WordLangTuple const &) override;
+ void suggest(WordLangTuple const &, docstring_list &) override;
+ void stem(WordLangTuple const &, docstring_list &) override;
+ void insert(WordLangTuple const &) override;
+ void remove(WordLangTuple const &) override;
+ void accept(WordLangTuple const &) override;
+ bool hasDictionary(Language const * lang) const override;
+ int numDictionaries() const override;
+ docstring const error() override;
+ void advanceChangeNumber() override;
///@}
private:
argc_(argc), argv_(argv)
{
}
- void doExec()
+ void doExec() override
{
int const exit_status = lyx_->execWithoutGui(argc_, argv_);
exit(exit_status);
std::string const & command() const { return command_; }
private:
- virtual bool
- do_copy(support::FileName const & from, support::FileName const & to,
- std::string const & latex) const;
+ bool do_copy(support::FileName const & from, support::FileName const & to,
+ std::string const & latex) const override;
- virtual bool
- do_rename(support::FileName const & from, support::FileName const & to,
- std::string const & latex) const;
+ bool do_rename(support::FileName const & from, support::FileName const & to,
+ std::string const & latex) const override;
std::string command_;
};
explicit LastFilesSection(unsigned int num = 4);
///
- void read(std::istream & is);
+ void read(std::istream & is) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
/// Return lastfiles container (vector)
LastFiles const lastFiles() const { return lastfiles; }
public:
///
- void read(std::istream & is);
+ void read(std::istream & is) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
/// Return lastopened container (vector)
LastOpened const getfiles() const { return lastopened; }
LastFilePosSection() : num_lastfilepos(100) {}
///
- void read(std::istream & is);
+ void read(std::istream & is) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
/** add cursor position to the fname entry in the filepos list
@param pos file name and position of the cursor when the BufferView is closed.
void clear();
///
- void read(std::istream & is);
+ void read(std::istream & is) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
/** return bookmark list. Non-const container is used since
bookmarks will be cleaned after use.
///
LastCommandsSection(unsigned int num);
///
- void read(std::istream & is);
+ void read(std::istream & is) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
/// Return lastcommands container (vector)
LastCommands const getcommands() const { return lastcommands; }
explicit AuthFilesSection();
///
- void read(std::istream & is);
+ void read(std::istream & is) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
bool find(std::string const & name) const;
explicit ShellEscapeSection() {};
///
- void read(std::istream & is);
+ void read(std::istream & is) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
bool find(std::string const & name) const;
virtual ~TextCompletionList() {}
///
- virtual bool sorted() const { return true; }
+ bool sorted() const override { return true; }
///
- virtual size_t size() const
+ size_t size() const override
{
return list_.size();
}
///
- virtual docstring const & data(size_t idx) const
+ docstring const & data(size_t idx) const override
{
return list_.word(idx);
}
/// \return true if there is a Layout with latexname lay
bool hasLaTeXLayout(std::string const & lay) const;
/// A DocumentClass nevers count as loaded, since it is dynamic
- virtual bool loaded() const { return false; }
+ bool loaded() const override { return false; }
/// \return the layout object of an inset given by name. If the name
/// is not found as such, the part after the ':' is stripped off, and
/// searched again. In this way, an error fallback can be provided:
///
TransInitState();
///
- virtual docstring const normalkey(char_type);
+ docstring const normalkey(char_type) override;
///
- virtual bool backspace() { return true; }
+ bool backspace() override { return true; }
///
- virtual docstring const deadkey(char_type, KmodInfo);
+ docstring const deadkey(char_type, KmodInfo) override;
};
///
TransDeadkeyState();
///
- virtual docstring const normalkey(char_type);
+ docstring const normalkey(char_type) override;
///
- virtual bool backspace() {
+ bool backspace() override {
currentState = init_state_;
return false;
}
///
- virtual docstring const deadkey(char_type, KmodInfo);
+ docstring const deadkey(char_type, KmodInfo) override;
};
///
TransCombinedState();
///
- virtual docstring const normalkey(char_type);
+ docstring const normalkey(char_type) override;
///
- virtual bool backspace() {
+ bool backspace() override {
// cancel the second deadkey
deadkey2_ = 0;
deadkey2_info_.accent = TEX_NOACCENT;
return false;
}
///
- virtual docstring const deadkey(char_type, KmodInfo);
+ docstring const deadkey(char_type, KmodInfo) override;
};
/// draw a line from point to point
void line(int, int, int, int, Color,
- line_style = line_solid, int = thin_line) {}
+ line_style = line_solid, int = thin_line) override {}
///
void lines(int const *, int const *, int, Color,
fill_style = fill_none, line_style = line_solid,
- int = thin_line) {}
+ int = thin_line) override {}
///
void path(int const *, int const *, int const *, int const *,
int const *, int const *, int, Color,
- fill_style = fill_none, line_style = line_solid, int = thin_line) {}
+ fill_style = fill_none, line_style = line_solid, int = thin_line) override {}
/// draw a rectangle
void rectangle(int, int, int, int, Color,
- line_style = line_solid, int = thin_line) {}
+ line_style = line_solid, int = thin_line) override {}
/// draw a filled rectangle
- void fillRectangle(int, int, int, int, Color) {}
+ void fillRectangle(int, int, int, int, Color) override {}
/// draw an arc
- void arc(int, int, unsigned int, unsigned int, int, int, Color) {}
+ void arc(int, int, unsigned int, unsigned int, int, int, Color) override {}
/// draw a pixel
- void point(int, int, Color) {}
+ void point(int, int, Color) override {}
/// draw an image from the image cache
- void image(int, int, int, int, graphics::Image const &) {}
+ void image(int, int, int, int, graphics::Image const &) override {}
/// draw a string
- void text(int, int, docstring const &, FontInfo const &) {}
+ void text(int, int, docstring const &, FontInfo const &) override {}
/// draw a char
- void text(int, int, char_type, FontInfo const &) {}
+ void text(int, int, char_type, FontInfo const &) override {}
/// draw a string
- void text(int, int, docstring const &, Font const &, double, double) {}
+ void text(int, int, docstring const &, Font const &, double, double) override {}
///
void text(int, int, docstring const &, Font const &,
- Color, size_type, size_type, double, double) {}
+ Color, size_type, size_type, double, double) override {}
/// This painter does not paint
- bool isNull() const { return true; }
+ bool isNull() const override { return true; }
/// draw the underbar, strikeout, xout, uuline and uwave font attributes
- void textDecoration(FontInfo const &, int, int, int) {}
+ void textDecoration(FontInfo const &, int, int, int) override {}
/**
* Draw a string and enclose it inside a rectangle. If
* around the text with the given color.
*/
void rectText(int, int, docstring const &,
- FontInfo const &, Color, Color) {}
+ FontInfo const &, Color, Color) override {}
/// draw a string and enclose it inside a button frame
void buttonText(int, int, docstring const &,
- FontInfo const &, Color, Color, int) {}
+ FontInfo const &, Color, Color, int) override {}
/// draw a character of a preedit string for cjk support.
int preeditText(int, int, char_type, FontInfo const &,
- preedit_style) { return 0; }
+ preedit_style) override { return 0; }
/// start monochrome painting mode, i.e. map every color a shade of \c blend.
- void enterMonochromeMode(Color const &) {}
+ void enterMonochromeMode(Color const &) override {}
/// leave monochrome painting mode
- void leaveMonochromeMode() {}
+ void leaveMonochromeMode() override {}
/// draws a wavy line that can be used for underlining.
- void wavyHorizontalLine(int, int, int, ColorCode) {}
+ void wavyHorizontalLine(int, int, int, ColorCode) override {}
};
} // namespace frontend
{}
///
void paint(QPainter * painter, QStyleOptionViewItem const & option,
- QModelIndex const & index) const;
+ QModelIndex const & index) const override;
///
void drawDisplay(QPainter * painter, QStyleOptionViewItem const & opt,
- const QRect & /*rect*/, const QString & text ) const;
+ const QRect & /*rect*/, const QString & text ) const override;
///
QSize sizeHint(QStyleOptionViewItem const & opt,
- QModelIndex const & index) const;
+ QModelIndex const & index) const override;
private:
///
/// \param title is the window title used for decoration.
DialogView(GuiView & lv, QString const & name, QString const & title);
- virtual QWidget * asQWidget() { return this; }
- virtual QWidget const * asQWidget() const { return this; }
+ QWidget * asQWidget() override { return this; }
+ QWidget const * asQWidget() const override { return this; }
protected:
/// \name Dialog inherited methods
//@{
- void applyView() {}
- bool initialiseParams(std::string const & /*data*/) { return true; }
- void clearParams() {}
- bool needBufferOpen() const { return isBufferDependent(); }
+ void applyView() override {}
+ bool initialiseParams(std::string const & /*data*/) override { return true; }
+ void clearParams() override {}
+ bool needBufferOpen() const override { return isBufferDependent(); }
//@}
/// Any dialog that overrides this method should make sure to call it.
void closeEvent(QCloseEvent * ev);
void hideEvent(QHideEvent * ev);
protected Q_SLOTS:
- void onBufferViewChanged() {};
+ void onBufferViewChanged() override {};
};
} // namespace frontend
virtual ~DockView() {}
- virtual QWidget * asQWidget() { return this; }
- virtual QWidget const * asQWidget() const { return this; }
+ QWidget * asQWidget() override { return this; }
+ QWidget const * asQWidget() const override { return this; }
/// We don't want to restore geometry session for dock widgets.
- void restoreSession() {}
+ void restoreSession() override {}
void keyPressEvent(QKeyEvent * ev);
/// Dialog inherited methods
//@{
- void applyView() {}
- bool isClosing() const { return false; }
- bool needBufferOpen() const { return false; }
+ void applyView() override {}
+ bool isClosing() const override { return false; }
+ bool needBufferOpen() const override { return false; }
//@}
protected Q_SLOTS:
- void onBufferViewChanged() {} //override
+ void onBufferViewChanged() override {}
};
} // namespace frontend
public:
explicit FancyLineEditPrivate(FancyLineEdit *parent);
- virtual bool eventFilter(QObject *obj, QEvent *event);
+ bool eventFilter(QObject *obj, QEvent *event) override;
FancyLineEdit *m_lineEdit;
QPixmap m_pixmap[2];
~FindAndReplace();
- bool initialiseParams(std::string const &);
- void clearParams() {}
- void dispatchParams() {}
- bool isBufferDependent() const { return false; }
- bool canApplyToReadOnly() const { return true; }
+ bool initialiseParams(std::string const &) override;
+ void clearParams() override {}
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return false; }
+ bool canApplyToReadOnly() const override { return true; }
void selectAll();
/// update
- void updateView();
+ void updateView() override;
//virtual void update_contents() {}
protected:
- virtual bool wantInitialFocus() const { return true; }
+ bool wantInitialFocus() const override { return true; }
private:
/// The encapsulated widget.
/// \name DialogView inherited methods
//@{
- InsetCode insetCode() const { return FLOAT_CODE; }
- FuncCode creationCode() const { return LFUN_FLOAT_INSERT; }
- QString dialogTitle() const { return qt_("Float Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return FLOAT_CODE; }
+ FuncCode creationCode() const override { return LFUN_FLOAT_INSERT; }
+ QString dialogTitle() const override { return qt_("Float Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
///
void useWide();
private:
/// Controller stuff
///@{
- void updateView() {}
- void dispatchParams() {}
- bool isBufferDependent() const { return false; }
+ void updateView() override {}
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return false; }
///@}
struct Private;
: QTranslator(parent)
{}
- virtual QString translate(const char * /* context */,
+ QString translate(const char * /* context */,
const char *sourceText,
#if QT_VERSION >= 0x050000
- const char * /* disambiguation */ = 0, int /* n */ = -1) const
+ const char * /* disambiguation */ = 0, int /* n */ = -1) const override
#else
- const char * /*comment*/ = 0) const
+ const char * /*comment*/ = 0) const override
#endif
{
// Here we declare the strings that need to be translated from Qt own GUI
QWindowsMimeMetafile() {}
bool canConvertFromMime(FORMATETC const & /*formatetc*/,
- QMimeData const * /*mimedata*/) const
+ QMimeData const * /*mimedata*/) const override
{
return false;
}
bool canConvertToMime(QString const & mimetype,
- IDataObject * pDataObj) const
+ IDataObject * pDataObj) const override
{
if (mimetype != emfMimeType() && mimetype != wmfMimeType())
return false;
}
bool convertFromMime(FORMATETC const & /*formatetc*/,
- const QMimeData * /*mimedata*/, STGMEDIUM * /*pmedium*/) const
+ const QMimeData * /*mimedata*/, STGMEDIUM * /*pmedium*/) const override
{
return false;
}
QVariant convertToMime(QString const & mimetype, IDataObject * pDataObj,
- QVariant::Type /*preferredType*/) const
+ QVariant::Type /*preferredType*/) const override
{
QByteArray data;
if (!canConvertToMime(mimetype, pDataObj))
QVector<FORMATETC> formatsForMime(QString const & mimetype,
- QMimeData const * /*mimedata*/) const
+ QMimeData const * /*mimedata*/) const override
{
QVector<FORMATETC> formats;
if (mimetype == emfMimeType() || mimetype == wmfMimeType())
return formats;
}
- QString mimeForFormat(FORMATETC const & formatetc) const
+ QString mimeForFormat(FORMATETC const & formatetc) const override
{
switch (formatetc.cfFormat) {
case CF_ENHMETAFILE:
bool started() const {
return started_;
}
- bool eventFilter(QObject *obj, QEvent *event) {
+ bool eventFilter(QObject *obj, QEvent *event) override {
LYXERR(Debug::ACTION, "Event Type: " << event->type());
switch (event->type()) {
case QEvent::Show:
private:
/// \name DialogView inherited methods
//@{
- InsetCode insetCode() const { return BIBITEM_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("Bibliography Item Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return BIBITEM_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("Bibliography Item Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
};
private:
/// Apply changes
- void applyView();
+ void applyView() override;
/// update
- void updateContents();
+ void updateContents() override;
/// Browse for a .bib file
QString browseBib(QString const & in_name) const;
void setFileEncodings(std::vector<docstring> const & m);
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
/// clean-up on hide.
- void clearParams() { params_.clear(); }
+ void clearParams() override { params_.clear(); }
/// clean-up on hide.
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
private:
///
private:
/// \name DialogView inherited methods
//@{
- InsetCode insetCode() const { return BOX_CODE; }
- FuncCode creationCode() const { return LFUN_BOX_INSERT; }
- QString dialogTitle() const { return qt_("Box Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return BOX_CODE; }
+ FuncCode creationCode() const override { return LFUN_BOX_INSERT; }
+ QString dialogTitle() const override { return qt_("Box Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
/// Fill the color combos
private:
/// \name DialogView inherited methods
//@{
- InsetCode insetCode() const { return BRANCH_CODE; }
- FuncCode creationCode() const { return LFUN_BRANCH_INSERT; }
- QString dialogTitle() const { return qt_("Branch Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return BRANCH_CODE; }
+ FuncCode creationCode() const override { return LFUN_BRANCH_INSERT; }
+ QString dialogTitle() const override { return qt_("Branch Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
};
private:
///
- void updateContents();
+ void updateContents() override;
/// Nothing to initialise in this case.
- bool initialiseParams(std::string const &) { return true; }
+ bool initialiseParams(std::string const &) override { return true; }
///
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams() {}
+ void dispatchParams() override {}
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
/// always true since dispatchParams() is empty
- bool canApply() const { return true; }
+ bool canApply() const override { return true; }
};
} // namespace frontend
private:
/// \name Dialog inherited methods
//@{
- void applyView();
- void updateContents();
- bool initialiseParams(std::string const & data);
- void clearParams() {}
- void dispatchParams();
- bool isBufferDependent() const { return true; }
- FuncCode getLfun() const { return LFUN_TEXTSTYLE_UPDATE; }
- void saveSession(QSettings & settings) const;
- void restoreSession();
+ void applyView() override;
+ void updateContents() override;
+ bool initialiseParams(std::string const & data) override;
+ void clearParams() override {}
+ void dispatchParams() override;
+ bool isBufferDependent() const override { return true; }
+ FuncCode getLfun() const override { return LFUN_TEXTSTYLE_UPDATE; }
+ void saveSession(QSettings & settings) const override;
+ void restoreSession() override;
//@}
///
private:
/// Dialog inherited methods
//@{
- void applyView();
- void updateView() {}
- bool initialiseParams(std::string const & data);
- void clearParams();
- void dispatchParams();
- bool isBufferDependent() const { return true; }
- void saveSession(QSettings & settings) const;
- void restoreSession();
+ void applyView() override;
+ void updateView() override {}
+ bool initialiseParams(std::string const & data) override;
+ void clearParams() override;
+ void dispatchParams() override;
+ bool isBufferDependent() const override { return true; }
+ void saveSession(QSettings & settings) const override;
+ void restoreSession() override;
/** Disconnect from the inset when the Apply button is pressed.
* Allows easy insertion of multiple citations.
*/
- bool disconnectOnApply() const { return true; }
+ bool disconnectOnApply() const override { return true; }
//@}
///
setAttribute(Qt::WA_DeleteOnClose);
}
protected:
- bool event(QEvent * ev) {
+ bool event(QEvent * ev) override {
if (ev->type() == QEvent::MouseButtonPress) {
QMouseEvent * me = static_cast<QMouseEvent *>(ev);
if (me->x() < 0 || me->y() < 0
return QListWidget::event(ev);
}
- void keyPressEvent(QKeyEvent * ev) {
+ void keyPressEvent(QKeyEvent * ev) override {
if (ev->key() == Qt::Key_Escape) {
hide();
return;
private:
///
- void updateContents();
+ void updateContents() override;
///
- bool isValid();
+ bool isValid() override;
///
- bool initialiseParams(std::string const &);
+ bool initialiseParams(std::string const &) override;
///
- bool isBufferDependent() const { return false; }
+ bool isBufferDependent() const override { return false; }
///
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams() {}
+ void dispatchParams() override {}
///
- void apply() {}
+ void apply() override {}
/// enable or disable all controls and rename the Close/Cancel button
void selectBetweenrev();
private:
///
- void updateContents();
+ void updateContents() override;
///
- bool initialiseParams(std::string const &);
+ bool initialiseParams(std::string const &) override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams() {}
+ void dispatchParams() override {}
///
void enableControls();
protected:
void paint(QPainter *painter, const QStyleOptionViewItem &option,
- const QModelIndex &index) const
+ const QModelIndex &index) const override
{
if (index.column() == 0) {
QItemDelegate::paint(painter, option, index);
return false;
}
///
- int columnCount(const QModelIndex & /*parent*/ = QModelIndex()) const
+ int columnCount(const QModelIndex & /*parent*/ = QModelIndex()) const override
{
return 2;
}
///
- int rowCount(const QModelIndex & /*parent*/ = QModelIndex()) const
+ int rowCount(const QModelIndex & /*parent*/ = QModelIndex()) const override
{
if (list_ == 0)
return 0;
}
///
- QVariant data(const QModelIndex & index, int role) const
+ QVariant data(const QModelIndex & index, int role) const override
{
if (list_ == 0)
return QVariant();
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return COUNTER_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("Counters"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
- bool initialiseParams(std::string const & data);
+ InsetCode insetCode() const override { return COUNTER_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("Counters"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
+ bool initialiseParams(std::string const & data) override;
//@}
void processParams(InsetCommandParams const & icp);
///
public:
GuiDelimiter(GuiView & lv);
- bool initialiseParams(std::string const &) { return true; }
- void clearParams() {}
- void dispatchParams() {}
- bool isBufferDependent() const { return true; }
+ bool initialiseParams(std::string const &) override { return true; }
+ void clearParams() override {}
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return true; }
public Q_SLOTS:
void on_buttonBox_clicked(QAbstractButton * button);
/// \param title is the window title used for decoration.
GuiDialog(GuiView & lv, QString const & name, QString const & title);
- virtual QWidget * asQWidget() { return this; }
- virtual QWidget const * asQWidget() const { return this; }
+ QWidget * asQWidget() override { return this; }
+ QWidget const * asQWidget() const override { return this; }
public Q_SLOTS:
/** \name Buttons
void closeEvent(QCloseEvent * e);
protected Q_SLOTS:
- void onBufferViewChanged() {};//override
+ void onBufferViewChanged() override {}
public:
/** Check whether we may apply our data.
/// the dialog has changed contents
virtual void changed();
- virtual void enableView(bool enable);
+ void enableView(bool enable) override;
/// default: do nothing
- virtual void applyView() {}
+ void applyView() override {}
/// default: do nothing
virtual void updateContents() {}
/** When applying, it's useful to know whether the dialog is about
* to close or not (no point refreshing the display for example).
*/
- bool isClosing() const { return is_closing_; }
+ bool isClosing() const override { return is_closing_; }
///
- bool needBufferOpen() const { return isBufferDependent(); }
+ bool needBufferOpen() const override { return isBufferDependent(); }
/// Update the display of the dialog whilst it is still visible.
- virtual void updateView();
+ void updateView() override;
private:
ButtonController bc_;
{ excluded_modules_ = em.list(); }
private:
///
- virtual void updateAddPB();
+ void updateAddPB() override;
///
- virtual void updateUpPB();
+ void updateUpPB() override;
///
- virtual void updateDownPB();
+ void updateDownPB() override;
///
- virtual void updateDelPB();
+ void updateDelPB() override;
/// returns availableModel as a GuiIdListModel
QStandardItemModel * getAvailableModel()
{
BufferParams const & params() const { return bp_; }
public Q_SLOTS:
- void onBufferViewChanged();//override
+ void onBufferViewChanged() override;
// OK button clicked
void slotOK();
// Apply button clicked
GuiIdListModel * selectedModel() { return &modules_sel_model_; }
/// Apply changes
- void applyView();
+ void applyView() override;
/// update
- void updateContents();
+ void updateContents() override;
///
void updateAvailableModules();
///
FancyLineEdit * filter_;
/// return false if validate_listings_params returns error
- bool isValid();
+ bool isValid() override;
/// font family names for BufferParams::fonts_default_family
static char const * const fontfamilies[5];
/// GUI names corresponding fontfamilies
static char const * fontfamilies_gui[5];
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
- void clearParams();
+ void clearParams() override;
///
- void dispatchParams();
+ void dispatchParams() override;
///
void modulesToParams(BufferParams &);
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
/// always true since we don't manipulate document contents
- bool canApply() const { return true; }
+ bool canApply() const override { return true; }
///
DocumentClass const & documentClass() const;
///
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return ERT_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("TeX Mode Inset Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return ERT_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("TeX Mode Inset Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
};
///
void paramsToDialog();
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams() {}
+ void dispatchParams() override {}
///
- bool canApply() const { return true; }
+ bool canApply() const override { return true; }
/// goto this error in the parent bv. Returns success.
bool goTo(int item);
///
bool activateAspectratio() const;
/// Apply changes
- void applyView();
+ void applyView() override;
/// update
- void updateContents();
+ void updateContents() override;
/// Helper function called when the template is changed.
void updateTemplate();
///
bool usingScale() const;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
/// clean-up on hide.
- void clearParams();
+ void clearParams() override;
/// clean-up on hide.
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
QString browse(QString const & input_file,
virtual ~GuiFontMetrics() {}
- virtual int maxAscent() const;
- virtual int maxDescent() const;
- virtual Dimension const defaultDimension() const;
- virtual int em() const;
- virtual int xHeight() const;
- virtual int lineWidth() const;
- virtual int underlinePos() const;
- virtual int strikeoutPos() const;
- virtual bool italic() const;
- virtual double italicSlope() const;
- virtual int width(char_type c) const;
- virtual int ascent(char_type c) const;
- virtual int descent(char_type c) const;
- virtual int lbearing(char_type c) const;
- virtual int rbearing(char_type c) const;
- virtual int width(docstring const & s) const;
- virtual int signedWidth(docstring const & s) const;
- virtual int pos2x(docstring const & s, int pos, bool rtl, double ws) const;
- virtual int x2pos(docstring const & s, int & x, bool rtl, double ws) const;
- virtual bool breakAt(docstring & s, int & x, bool rtl, bool force) const;
- virtual Dimension const dimension(char_type c) const;
-
- virtual void rectText(docstring const & str,
+ int maxAscent() const override;
+ int maxDescent() const override;
+ Dimension const defaultDimension() const override;
+ int em() const override;
+ int xHeight() const override;
+ int lineWidth() const override;
+ int underlinePos() const override;
+ int strikeoutPos() const override;
+ bool italic() const override;
+ double italicSlope() const override;
+ int width(char_type c) const override;
+ int ascent(char_type c) const override;
+ int descent(char_type c) const override;
+ int lbearing(char_type c) const override;
+ int rbearing(char_type c) const override;
+ int width(docstring const & s) const override;
+ int signedWidth(docstring const & s) const override;
+ int pos2x(docstring const & s, int pos, bool rtl, double ws) const override;
+ int x2pos(docstring const & s, int & x, bool rtl, double ws) const override;
+ bool breakAt(docstring & s, int & x, bool rtl, bool force) const override;
+ Dimension const dimension(char_type c) const override;
+
+ void rectText(docstring const & str,
int & width,
int & ascent,
- int & descent) const;
- virtual void buttonText(docstring const & str,
+ int & descent) const override;
+ void buttonText(docstring const & str,
const int offset,
int & width,
int & ascent,
- int & descent) const;
+ int & descent) const override;
- int countExpanders(docstring const & str) const;
+ int countExpanders(docstring const & str) const override;
///
int width(QString const & str) const;
private:
///
- bool isValid();
+ bool isValid() override;
/// Dialog inherited methods
//@{
- void applyView();
- void updateContents() {}
- bool initialiseParams(std::string const & data);
- void clearParams();
- void dispatchParams();
- bool isBufferDependent() const { return true; }
+ void applyView() override;
+ void updateContents() override {}
+ bool initialiseParams(std::string const & data) override;
+ void clearParams() override;
+ void dispatchParams() override;
+ bool isBufferDependent() const override { return true; }
//@}
///
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return math_mode_ ? MATH_SPACE_CODE : SPACE_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("Horizontal Space Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return math_mode_ ? MATH_SPACE_CODE : SPACE_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("Horizontal Space Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
///
bool const math_mode_;
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return HYPERLINK_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("Hyperlink Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
- bool initialiseParams(std::string const & data);
+ InsetCode insetCode() const override { return HYPERLINK_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("Hyperlink Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
+ bool initialiseParams(std::string const & data) override;
//@}
};
private:
///
- bool initialiseParams(std::string const & sdata);
+ bool initialiseParams(std::string const & sdata) override;
///
void paramsToDialog(InsetCommandParams const & icp);
/// clean-up on hide.
- void clearParams() { params_.clear(); }
+ void clearParams() override { params_.clear(); }
/// clean-up on hide.
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
enum Type {
/// validate listings parameters and return an error message, if any
docstring validate_listings_params();
///
- bool isValid();
+ bool isValid() override;
/// Apply changes
- void applyView();
+ void applyView() override;
/// update
- void updateContents() {}
+ void updateContents() override {}
/// Browse for a file
QString browse(QString const &, Type) const;
private:
/// Apply changes
- void applyView();
+ void applyView() override;
/// Update dialog before showing it
- void updateContents();
+ void updateContents() override;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
- void clearParams();
+ void clearParams() override;
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
InsetIndexParams params_;
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return INFO_CODE; }
- FuncCode creationCode() const { return LFUN_INFO_INSERT; }
- QString dialogTitle() const { return qt_("Field Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool initialiseParams(std::string const &);
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return INFO_CODE; }
+ FuncCode creationCode() const override { return LFUN_INFO_INSERT; }
+ QString dialogTitle() const override { return qt_("Field Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool initialiseParams(std::string const &) override;
+ bool checkWidgets(bool readonly) const override;
//@}
InsetInfoParams params_;
};
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return LABEL_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("Label Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
- bool initialiseParams(std::string const &);
+ InsetCode insetCode() const override { return LABEL_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("Label Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
+ bool initialiseParams(std::string const &) override;
//@}
};
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return LINE_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("Line Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return LINE_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("Line Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
};
void on_languageCO_currentIndexChanged(int);
private:
/// return false if validate_listings_params returns error
- bool isValid();
+ bool isValid() override;
/// Apply changes
- void applyView();
+ void applyView() override;
/// update
- void updateContents();
+ void updateContents() override;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
/// clean-up on hide.
- void clearParams();
+ void clearParams() override;
/// clean-up on hide.
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
void setParams(InsetListingsParams const &);
LogHighlighter(QTextDocument * parent);
private:
- void highlightBlock(QString const & text);
+ void highlightBlock(QString const & text) override;
private:
QTextCharFormat infoFormat;
GuiLog(GuiView & lv);
private Q_SLOTS:
- void updateContents();
+ void updateContents() override;
/// find content
void find();
/// jump to next error message
private:
/// Apply changes
- void applyView() {}
+ void applyView() override {}
/// log syntax highlighter
LogHighlighter * highlighter;
/** \param data should contain "<logtype> <logfile>"
* where <logtype> is one of "latex", "literate", "lyx2lyx", "vc".
*/
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
- void clearParams();
+ void clearParams() override;
///
- void dispatchParams() {}
+ void dispatchParams() override {}
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
/// The title displayed by the dialog reflects the \c LogType
docstring title() const;
private:
///
- bool isValid();
+ bool isValid() override;
/// Apply from dialog
- void applyView();
+ void applyView() override;
/// Update the dialog
- void updateContents();
+ void updateContents() override;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
void paramsToDialog();
///
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return false; }
+ bool isBufferDependent() const override { return false; }
///
- FuncCode getLfun() const;
+ FuncCode getLfun() const override;
///
QString const getSuffix();
///
public:
GuiMathMatrix(GuiView & lv);
- bool initialiseParams(std::string const &) { return true; }
- void clearParams() {}
- void dispatchParams() {}
- bool isBufferDependent() const { return true; }
+ bool initialiseParams(std::string const &) override { return true; }
+ void clearParams() override {}
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return true; }
public Q_SLOTS:
void on_buttonBox_clicked(QAbstractButton *);
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return NOMENCL_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("Nomenclature Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
- bool initialiseParams(std::string const &);
+ InsetCode insetCode() const override { return NOMENCL_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("Nomenclature Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
+ bool initialiseParams(std::string const &) override;
//@}
};
void change_adaptor();
private:
/// Apply changes
- void applyView();
+ void applyView() override;
/// Update dialog before showing it
- void updateContents();
+ void updateContents() override;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
- void clearParams();
+ void clearParams() override;
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
private:
///
InsetNoteParams params_;
/// Dialog inherited methods
//@{
- void applyView();
- void updateView();
- void dispatchParams();
- void enableView(bool enable);
- bool isBufferDependent() const { return true; }
- virtual FuncCode getLfun() const { return LFUN_PARAGRAPH_PARAMS_APPLY; }
- void saveSession(QSettings & settings) const;
- void restoreSession();
+ void applyView() override;
+ void updateView() override;
+ void dispatchParams() override;
+ void enableView(bool enable) override;
+ bool isBufferDependent() const override { return true; }
+ FuncCode getLfun() const override { return LFUN_PARAGRAPH_PARAMS_APPLY; }
+ void saveSession(QSettings & settings) const override;
+ void restoreSession() override;
//@}
private:
void change_adaptor();
private:
/// Apply changes
- void applyView();
+ void applyView() override;
/// Update dialog before showing it
- void updateContents();
+ void updateContents() override;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
- void clearParams();
+ void clearParams() override;
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
private:
///
InsetPhantomParams params_;
{
public:
FormatValidator(QWidget *, Formats const & f);
- void fixup(QString & input) const;
- QValidator::State validate(QString & input, int & pos) const;
+ void fixup(QString & input) const override;
+ QValidator::State validate(QString & input, int & pos) const override;
private:
virtual QString toString(Format const & format) const = 0;
int nr() const;
: FormatValidator(parent, f)
{}
private:
- QString toString(Format const & format) const
+ QString toString(Format const & format) const override
{
return toqstr(format.name());
}
: FormatValidator(parent, f)
{}
private:
- QString toString(Format const & format) const
+ QString toString(Format const & format) const override
{
return toqstr(translateIfPossible(format.prettyname()));
}
public:
/// Apply changes
- void applyView();
+ void applyView() override;
std::vector<PrefModule *> modules_;
///
- bool initialiseParams(std::string const &);
+ bool initialiseParams(std::string const &) override;
///
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return false; }
+ bool isBufferDependent() const override { return false; }
/// various file pickers
QString browsebind(QString const & file);
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return NOMENCL_PRINT_CODE; }
- FuncCode creationCode() const { return LFUN_NOMENCL_PRINT; }
- QString dialogTitle() const { return qt_("Nomenclature List Settings"); }
- void paramsToDialog(Inset const *);
+ InsetCode insetCode() const override { return NOMENCL_PRINT_CODE; }
+ FuncCode creationCode() const override { return LFUN_NOMENCL_PRINT; }
+ QString dialogTitle() const override { return qt_("Nomenclature List Settings"); }
+ void paramsToDialog(Inset const *) override;
void paramsToDialog(InsetCommandParams const &);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
};
private:
/// Apply changes
- void applyView();
+ void applyView() override;
/// Update dialog before showing it
- void updateContents();
+ void updateContents() override;
///
void paramsToDialog(InsetCommandParams const & icp);
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
/// clean-up on hide.
- void clearParams() { params_.clear(); }
+ void clearParams() override { params_.clear(); }
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
InsetCommandParams params_;
~GuiProgressView();
/// Controller inherited method.
///@{
- bool initialiseParams(std::string const &) { return true; }
- void clearParams() {}
- void dispatchParams() {}
- bool isBufferDependent() const { return false; }
- bool canApply() const { return true; }
- bool canApplyToReadOnly() const { return true; }
- void updateView() {}
- bool wantInitialFocus() const { return false; }
- void restoreSession();
- void saveSession(QSettings & settings) const;
+ bool initialiseParams(std::string const &) override { return true; }
+ void clearParams() override {}
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return false; }
+ bool canApply() const override { return true; }
+ bool canApplyToReadOnly() const override { return true; }
+ void updateView() override {}
+ bool wantInitialFocus() const override { return false; }
+ void restoreSession() override;
+ void saveSession(QSettings & settings) const override;
///@}
private Q_SLOTS:
GuiRef(GuiView & lv);
/// Dialog inherited methods
//@{
- void enableView(bool enable);
+ void enableView(bool enable) override;
//@}
private Q_SLOTS:
private:
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
/** disconnect from the inset when the Apply button is pressed.
Allows easy insertion of multiple references. */
- bool disconnectOnApply() const { return true; }
+ bool disconnectOnApply() const override { return true; }
///
void gotoRef(std::string const &);
///
///
void closeEvent(QCloseEvent * e);
///
- bool isValid();
+ bool isValid() override;
/// apply changes
- void applyView();
+ void applyView() override;
/// update dialog
- void updateContents();
+ void updateContents() override;
///
void enableBoxes();
/// update references
void updateRefs();
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
/// clean-up on hide.
- void clearParams() { params_.clear(); }
+ void clearParams() override { params_.clear(); }
/// clean-up on hide.
- void dispatchParams();
+ void dispatchParams() override;
private:
///
private:
void showEvent(QShowEvent * e);
///
- bool initialiseParams(std::string const &) { return true; }
- void clearParams() {}
- void dispatchParams() {}
- bool isBufferDependent() const { return true; }
+ bool initialiseParams(std::string const &) override { return true; }
+ void clearParams() override {}
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return true; }
/// Searches occurrence of string
void find(docstring const & search,
private:
///
- bool isValid();
+ bool isValid() override;
/// Apply from dialog
- void applyView();
+ void applyView() override;
/// Update the dialog
- void updateContents();
+ void updateContents() override;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
void paramsToDialog(Format const * format, QString const & command);
///
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
- FuncCode getLfun() const { return LFUN_BUFFER_EXPORT_CUSTOM; }
+ FuncCode getLfun() const override { return LFUN_BUFFER_EXPORT_CUSTOM; }
private:
///
private:
/// update
- void updateContents();
+ void updateContents() override;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
- void clearParams();
+ void clearParams() override;
///
- void dispatchParams() {}
+ void dispatchParams() override {}
///
- bool isBufferDependent() const { return false; }
+ bool isBufferDependent() const override { return false; }
///
support::FileName filename_;
private:
///{
- void updateView();
- bool initialiseParams(std::string const & sdata)
+ void updateView() override;
+ bool initialiseParams(std::string const & sdata) override
{ return widget_->initialiseParams(sdata); }
- void clearParams() {}
- void dispatchParams() {}
- bool isBufferDependent() const { return false; }
+ void clearParams() override {}
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return false; }
///}
/// The encapsulated widget.
SpellcheckerWidget * widget_;
: QAbstractListModel(parent), encoding_(0)
{}
- QModelIndex index(int row, int column, QModelIndex const &) const
+ QModelIndex index(int row, int column, QModelIndex const &) const override
{
return createIndex(row, column);
}
- QModelIndex parent(QModelIndex const &) const
+ QModelIndex parent(QModelIndex const &) const override
{
return QModelIndex();
}
- int rowCount(QModelIndex const &) const
+ int rowCount(QModelIndex const &) const override
{
return symbols_.count();
}
- QVariant data(QModelIndex const & index, int role) const
+ QVariant data(QModelIndex const & index, int role) const override
{
if (!index.isValid())
return QVariant();
/// Dialog inherited methods
//@{
- void updateView();
- void dispatchParams();
- void enableView(bool enable);
- bool isBufferDependent() const { return true; }
- FuncCode getLfun() const { return LFUN_SELF_INSERT; }
+ void updateView() override;
+ void dispatchParams() override;
+ void enableView(bool enable) override;
+ bool isBufferDependent() const override { return true; }
+ FuncCode getLfun() const override { return LFUN_SELF_INSERT; }
//@}
public Q_SLOTS:
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return TABULAR_CODE; }
- FuncCode creationCode() const { return LFUN_TABULAR_INSERT; }
- QString dialogTitle() const { return qt_("Tabular Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return TABULAR_CODE; }
+ FuncCode creationCode() const override { return LFUN_TABULAR_INSERT; }
+ QString dialogTitle() const override { return qt_("Tabular Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
///
private:
/// Apply changes
- void applyView();
+ void applyView() override;
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
/// clean-up on hide.
- void clearParams();
+ void clearParams() override;
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
- FuncCode getLfun() const;
+ FuncCode getLfun() const override;
///
typedef std::pair<size_t, size_t> rowsCols;
public Q_SLOTS:
///
- void updateView();
+ void updateView() override;
private Q_SLOTS:
///
private:
/// Nothing to initialise in this case.
- bool initialiseParams(std::string const &) { return true; }
+ bool initialiseParams(std::string const &) override { return true; }
///
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams() {}
+ void dispatchParams() override {}
///
- bool isBufferDependent() const { return false; }
+ bool isBufferDependent() const override { return false; }
///
- void apply() {}
+ void apply() override {}
///
void updateStyles(TexFileType);
public:
GuiThesaurus(GuiView & lv);
- void checkStatus();
+ void checkStatus() override;
private Q_SLOTS:
void change_adaptor();
private:
/// update
- void updateContents();
+ void updateContents() override;
///
void updateLists();
///
- bool initialiseParams(std::string const & data);
+ bool initialiseParams(std::string const & data) override;
///
- void clearParams();
+ void clearParams() override;
///
- void dispatchParams() {}
+ void dispatchParams() override {}
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
/// replace the particular string
void replace(docstring const & newstr);
docstring lang_;
/// not needed.
- void apply() {}
+ void apply() override {}
};
} // namespace frontend
Qt::WindowFlags flags = {});
///
- bool initialiseParams(std::string const & data);
- void updateView();
- void enableView(bool enable);
- bool wantInitialFocus() const { return false; }
+ bool initialiseParams(std::string const & data) override;
+ void updateView() override;
+ void enableView(bool enable) override;
+ bool wantInitialFocus() const override { return false; }
void closeEvent(QCloseEvent * event);
- bool isClosing() const { return is_closing_; }
+ bool isClosing() const override { return is_closing_; }
public:
/// clean-up on hide.
- void clearParams() {}
+ void clearParams() override {}
///
- void dispatchParams();
+ void dispatchParams() override;
///
- bool isBufferDependent() const { return true; }
+ bool isBufferDependent() const override { return true; }
///
void doDispatch(Cursor & cur, FuncRequest const & fr, DispatchResult & dr);
///
setIcon(getIcon(*tbinfo->items.begin()->func, true));
}
- void mousePressEvent(QMouseEvent * e)
+ void mousePressEvent(QMouseEvent * e) override
{
if (initialized_) {
QToolButton::mousePressEvent(e);
private:
/// \name InsetParamsWidget inherited methods
//@{
- InsetCode insetCode() const { return VSPACE_CODE; }
- FuncCode creationCode() const { return LFUN_INSET_INSERT; }
- QString dialogTitle() const { return qt_("Vertical Space Settings"); }
- void paramsToDialog(Inset const *);
- docstring dialogToParams() const;
- bool checkWidgets(bool readonly) const;
+ InsetCode insetCode() const override { return VSPACE_CODE; }
+ FuncCode creationCode() const override { return LFUN_INSET_INSERT; }
+ QString dialogTitle() const override { return qt_("Vertical Space Settings"); }
+ void paramsToDialog(Inset const *) override;
+ docstring dialogToParams() const override;
+ bool checkWidgets(bool readonly) const override;
//@}
};
setFocusPolicy(Qt::StrongFocus);
}
- void paintEvent(QPaintEvent *)
+ void paintEvent(QPaintEvent *) override
{
int const w = width_;
int const h = height_;
pain.drawPixmap(x, y, w, h, splash_);
}
- void keyPressEvent(QKeyEvent * ev)
+ void keyPressEvent(QKeyEvent * ev) override
{
KeySymbol sym;
setKeySymbol(&sym, ev);
/// Controller inherited method.
///@{
- bool initialiseParams(std::string const & source);
- void clearParams() {}
- void dispatchParams() {}
- bool isBufferDependent() const { return true; }
- bool canApply() const { return true; }
- bool canApplyToReadOnly() const { return true; }
- void updateView();
- void enableView(bool enable);
- void saveSession(QSettings & settings) const;
- void restoreSession();
- bool wantInitialFocus() const { return false; }
+ bool initialiseParams(std::string const & source) override;
+ void clearParams() override {}
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return true; }
+ bool canApply() const override { return true; }
+ bool canApplyToReadOnly() const override { return true; }
+ void updateView() override;
+ void enableView(bool enable) override;
+ void saveSession(QSettings & settings) const override;
+ void restoreSession() override;
+ bool wantInitialFocus() const override { return false; }
///@}
public Q_SLOTS:
///
- void onBufferViewChanged();//override
+ void onBufferViewChanged() override;
private Q_SLOTS:
/// The title displayed by the dialog reflects source type.
void ignore() const;
protected:
- void mouseDoubleClickEvent(QMouseEvent * event); //override
+ void mouseDoubleClickEvent(QMouseEvent * event) override;
public:
/// wa != 0
private:
/// Dialog inherited methods
//@{
- void applyView();
- void updateContents() {}
- bool initialiseParams(std::string const & data);
- void clearParams();
- void dispatchParams();
- bool isBufferDependent() const { return true; }
+ void applyView() override;
+ void updateContents() override {}
+ bool initialiseParams(std::string const & data) override;
+ void clearParams() override;
+ void dispatchParams() override;
+ bool isBufferDependent() const override { return true; }
//@}
///
private:
- void synchronousFunctionCall()
+ void synchronousFunctionCall() override
{
return_value_ = func_();
}
private:
- void synchronousFunctionCall()
+ void synchronousFunctionCall() override
{
func_();
}
protected Q_SLOTS:
void onWidget_changed();
- void applyView();
+ void applyView() override;
void resetDialog();
void on_buttonBox_clicked(QAbstractButton *);
void on_immediateApplyCB_stateChanged(int state);
private:
/// \name DialogView inherited methods
//@{
- void updateView();
- void dispatchParams() {}
- bool isBufferDependent() const { return true; }
- bool canApply() const { return true; }
- bool initialiseParams(std::string const &);
+ void updateView() override;
+ void dispatchParams() override {}
+ bool isBufferDependent() const override { return true; }
+ bool canApply() const override { return true; }
+ bool initialiseParams(std::string const &) override;
//@}
///
void newInset();
{}
///
void paint(QPainter * painter, QStyleOptionViewItem const & option,
- QModelIndex const & index) const;
+ QModelIndex const & index) const override;
///
void drawDisplay(QPainter * painter, QStyleOptionViewItem const & opt,
- const QRect & /*rect*/, const QString & text ) const;
+ const QRect & /*rect*/, const QString & text ) const override;
///
QSize sizeHint(QStyleOptionViewItem const & opt,
- QModelIndex const & index) const;
+ QModelIndex const & index) const override;
private:
///
class AlwaysMnemonicStyle : public QProxyStyle {
public:
int styleHint(StyleHint hint, const QStyleOption *opt = 0, const QWidget *widget = 0,
- QStyleHintReturn *returnData = 0) const
+ QStyleHintReturn *returnData = 0) const override
{
if (hint == QStyle::SH_UnderlineShortcut)
return 1;
explicit ResizeCommand(ResizeData const & data_) : data(data_) {}
private:
- virtual std::string const front_placeholder_impl() const
+ std::string const front_placeholder_impl() const override
{ return "$$ResizeFront"; }
- virtual std::string const back_placeholder_impl() const
+ std::string const back_placeholder_impl() const override
{ return "$$ResizeBack"; }
};
private:
explicit ResizeLatexCommand(ResizeData const & data_)
: ResizeCommand(data_) {}
- virtual std::string const front_impl() const;
- virtual std::string const back_impl() const;
+ std::string const front_impl() const override;
+ std::string const back_impl() const override;
};
explicit RotationCommand(RotationData const & data_) : data(data_) {}
private:
- virtual std::string const front_placeholder_impl() const
+ std::string const front_placeholder_impl() const override
{ return "$$RotateFront"; }
- virtual std::string const back_placeholder_impl() const
+ std::string const back_placeholder_impl() const override
{ return "$$RotateBack"; }
};
private:
explicit RotationLatexCommand(RotationData const & data_)
: RotationCommand(data_) {}
- virtual std::string const front_impl() const;
- virtual std::string const back_impl() const;
+ std::string const front_impl() const override;
+ std::string const back_impl() const override;
};
explicit ClipOption(ClipData const & data_) : data(data_) {}
private:
- virtual std::string const placeholder_impl() const
+ std::string const placeholder_impl() const override
{ return "$$Clip"; }
};
private:
explicit ClipLatexOption(ClipData const & data_)
: ClipOption(data_) {}
- virtual std::string const option_impl() const;
+ std::string const option_impl() const override;
};
private:
explicit ExtraOption(std::string const & data_) : data(data_) {}
- virtual std::string const placeholder_impl() const
+ std::string const placeholder_impl() const override
{ return "$$Extra"; }
- virtual std::string const option_impl() const
+ std::string const option_impl() const override
{ return data; }
std::string data;
};
explicit ResizeOption(ResizeData const & data_) : data(data_) {}
private:
- virtual std::string const placeholder_impl() const
+ std::string const placeholder_impl() const override
{ return "$$Resize"; }
};
private:
explicit ResizeLatexOption(ResizeData const & data_)
: ResizeOption(data_) {}
- virtual std::string const option_impl() const;
+ std::string const option_impl() const override;
};
explicit RotationOption(RotationData const & data_) : data(data_) {}
private:
- virtual std::string const placeholder_impl() const
+ std::string const placeholder_impl() const override
{ return "$$Rotate"; }
};
private:
explicit RotationLatexOption(RotationData const & data_)
: RotationOption(data_) {}
- virtual std::string const option_impl() const;
+ std::string const option_impl() const override;
};
/// returns whether this inset is allowed in other insets of given mode
virtual bool allowedIn(mode_type) const { return true; }
/// returns whether paragraph breaks can occur inside this inset
- virtual bool allowMultiPar() const { return false; }
+ virtual bool allowMultiPar() const { return false; }
/**
* The font is inherited from the parent for LaTeX export if this
* method returns true. No open font changes are closed in front of
InsetArgument(Buffer *, std::string const &);
///
- InsetArgument const * asInsetArgument() const { return this; }
+ InsetArgument const * asInsetArgument() const override { return this; }
/// Outputting the parameter of a LaTeX command
void latexArgument(otexstream & os, OutputParams const & runparams_in,
/// \name Public functions inherited from Inset class
//@{
///
- bool hasSettings() const { return false; }
+ bool hasSettings() const override { return false; }
///
- InsetCode lyxCode() const { return ARG_CODE; }
+ InsetCode lyxCode() const override { return ARG_CODE; }
///
- docstring layoutName() const { return from_ascii("Argument"); }
+ docstring layoutName() const override { return from_ascii("Argument"); }
/// Update the label string of this inset
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
- void latex(otexstream &, OutputParams const &) const { }
+ void latex(otexstream &, OutputParams const &) const override { }
///
- int plaintext(odocstringstream &, OutputParams const &, size_t) const { return 0; }
+ int plaintext(odocstringstream &, OutputParams const &, size_t) const override { return 0; }
///
- void docbook(XMLStream &, OutputParams const &) const { return; }
+ void docbook(XMLStream &, OutputParams const &) const override { return; }
///
- docstring xhtml(XMLStream &, OutputParams const &) const
+ docstring xhtml(XMLStream &, OutputParams const &) const override
{ return docstring(); }
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- bool isPassThru() const { return pass_thru_; }
+ bool isPassThru() const override { return pass_thru_; }
///
- bool isFreeSpacing() const { return free_spacing_; }
+ bool isFreeSpacing() const override { return free_spacing_; }
///
bool isTocCaption() const { return is_toc_caption_; }
///
- bool resetFontEdit() const { return false; }
+ bool resetFontEdit() const override { return false; }
//@}
/// \name Public functions inherited from InsetCollapsible class
//@{
///
- InsetLayout::InsetDecoration decoration() const;
+ InsetLayout::InsetDecoration decoration() const override;
///
- FontInfo getFont() const;
+ FontInfo getFont() const override;
///
- FontInfo getLabelfont() const;
+ FontInfo getLabelfont() const override;
///
- ColorCode labelColor() const;
+ ColorCode labelColor() const override;
///
- void setButtonLabel();
+ void setButtonLabel() override;
//@}
///
void addToToc(DocIterator const & dit, bool output_active,
- UpdateType utype, TocBackend & backend) const; //override
+ UpdateType utype, TocBackend & backend) const override;
private:
///
- docstring toolTip(BufferView const & bv, int, int) const;
+ docstring toolTip(BufferView const & bv, int, int) const override;
///
void fixParagraphLanguage(Language const *);
///
/// \name Protected functions inherited from Inset class
//@{
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- Inset * clone() const { return new InsetArgument(*this); }
+ Inset * clone() const override { return new InsetArgument(*this); }
/// Is the content of this inset part of the immediate (visible) text sequence?
- bool isPartOfTextSequence() const { return false; }
+ bool isPartOfTextSequence() const override { return false; }
//@}
};
/// \name Public functions inherited from Inset class
//@{
///
- InsetCode lyxCode() const { return BIBITEM_CODE; }
+ InsetCode lyxCode() const override { return BIBITEM_CODE; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
/// \copydoc Inset::initView()
/// verify label and update references.
- void initView();
+ void initView() override;
///
- bool isLabeled() const { return true; }
+ bool isLabeled() const override { return true; }
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
int plaintext(odocstringstream &, OutputParams const &,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- void collectBibKeys(InsetIterator const &, support::FileNameList &) const;
+ void collectBibKeys(InsetIterator const &, support::FileNameList &) const override;
/// update the counter of this inset
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- Inset * clone() const { return new InsetBibitem(*this); }
+ Inset * clone() const override { return new InsetBibitem(*this); }
/// Is the content of this inset part of the immediate (visible) text sequence?
- bool isPartOfTextSequence() const { return false; }
+ bool isPartOfTextSequence() const override { return false; }
///@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
friend docstring bibitemWidest(Buffer const & buffer, OutputParams const &);
///
bool delDatabase(docstring const &);
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
/// \name Public functions inherited from Inset class
//@{
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- InsetCode lyxCode() const { return BIBTEX_CODE; }
+ InsetCode lyxCode() const override { return BIBTEX_CODE; }
///
- RowFlags rowFlags() const { return Display; }
+ RowFlags rowFlags() const override { return Display; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- void collectBibKeys(InsetIterator const &, support::FileNameList &) const;
+ void collectBibKeys(InsetIterator const &, support::FileNameList &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
//@{
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ FuncStatus & flag) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- Inset * clone() const { return new InsetBibtex(*this); }
+ Inset * clone() const override { return new InsetBibtex(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
};
/// \name Public functions inherited from Inset class
//@{
///
- InsetCode lyxCode() const { return BOX_CODE; }
+ InsetCode lyxCode() const override { return BOX_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- ColorCode backgroundColor(PainterInfo const &) const;
+ ColorCode backgroundColor(PainterInfo const &) const override;
///
- LyXAlignment contentAlignment() const;
+ LyXAlignment contentAlignment() const override;
///
- bool allowParagraphCustomization(idx_type = 0) const { return !forcePlainLayout(); }
+ bool allowParagraphCustomization(idx_type = 0) const override { return !forcePlainLayout(); }
///
- bool allowMultiPar() const;
+ bool allowMultiPar() const override;
///
- bool forcePlainLayout(idx_type = 0) const;
+ bool forcePlainLayout(idx_type = 0) const override;
///
bool needsCProtection(bool const maintext = false,
- bool const fragile = false) const;
+ bool const fragile = false) const override;
///
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- bool inheritFont() const { return false; }
+ bool inheritFont() const override { return false; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- bool hasFixedWidth() const;
+ bool hasFixedWidth() const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
//@}
/// \name Public functions inherited from InsetCollapsible class
//@{
///
- void setButtonLabel();
+ void setButtonLabel() override;
//@}
protected:
/// \name Protected functions inherited from Inset class
//@{
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- Inset * clone() const { return new InsetBox(*this); }
+ Inset * clone() const override { return new InsetBox(*this); }
//@}
private:
private:
///
- InsetCode lyxCode() const { return BRANCH_CODE; }
+ InsetCode lyxCode() const override { return BRANCH_CODE; }
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- docstring const buttonLabel(BufferView const &) const;
+ docstring const buttonLabel(BufferView const &) const override;
///
- ColorCode backgroundColor(PainterInfo const &) const;
+ ColorCode backgroundColor(PainterInfo const &) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false);
+ void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false) override;
/** \returns true if params_.branch is listed as 'selected' in
\c buffer. \p child only checks within child documents.
* Note that Branch insets are considered part of the
* document when they are selected XOR inverted.
*/
- bool producesOutput() const;
+ bool producesOutput() const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- bool isMacroScope() const;
+ bool isMacroScope() const override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- bool usePlainLayout() const { return false; }
+ bool usePlainLayout() const override { return false; }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- docstring layoutName() const { return from_ascii("Branch:") + branch(); }
+ docstring layoutName() const override { return from_ascii("Branch:") + branch(); }
///
- Inset * clone() const { return new InsetBranch(*this); }
+ Inset * clone() const override { return new InsetBranch(*this); }
///
friend class InsetBranchParams;
///
std::string const & floattype() const { return floattype_; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
/// return the mandatory argument (LaTeX format) only
void getArgument(otexstream & os, OutputParams const &) const;
/// return the caption text
/// return the caption text as HTML
docstring getCaptionAsHTML(XMLStream & os, OutputParams const &) const;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
private:
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- RowFlags rowFlags() const { return Display; }
+ RowFlags rowFlags() const override { return Display; }
///
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- bool forceLocalFontSwitch() const { return true; }
+ bool forceLocalFontSwitch() const override { return true; }
///
- InsetCode lyxCode() const { return CAPTION_CODE; }
+ InsetCode lyxCode() const override { return CAPTION_CODE; }
///
void cursorPos(BufferView const & bv,
- CursorSlice const & sl, bool boundary, int & x, int & y) const;
+ CursorSlice const & sl, bool boundary, int & x, int & y) const override;
///
- bool descendable(BufferView const &) const { return true; }
+ bool descendable(BufferView const &) const override { return true; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void drawBackground(PainterInfo & pi, int x, int y) const;
+ void drawBackground(PainterInfo & pi, int x, int y) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
/// Strike out the inset when deleted.
- bool canPaintChange(BufferView const &) const { return true; }
+ bool canPaintChange(BufferView const &) const override { return true; }
///
- void edit(Cursor & cur, bool front, EntryDirection entry_from);
+ void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
///
- bool insetAllowed(InsetCode code) const;
+ bool insetAllowed(InsetCode code) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
// Update the counters of this inset and of its contents
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted) override;
///
- void latex(otexstream & os, OutputParams const &) const;
+ void latex(otexstream & os, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream & os, OutputParams const & runparams) const;
+ docstring xhtml(XMLStream & os, OutputParams const & runparams) const override;
///
void addToToc(DocIterator const & di, bool output_active, UpdateType utype,
- TocBackend & backend) const;
+ TocBackend & backend) const override;
///
- virtual bool forcePlainLayout(idx_type = 0) const { return true; }
+ bool forcePlainLayout(idx_type = 0) const override { return true; }
/// Captions don't accept alignment, spacing, etc.
- virtual bool allowParagraphCustomization(idx_type = 0) const { return false; }
+ bool allowParagraphCustomization(idx_type = 0) const override { return false; }
///
- Inset * clone() const { return new InsetCaption(*this); }
+ Inset * clone() const override { return new InsetCaption(*this); }
///
mutable docstring full_label_;
virtual bool hasSubCaptions(ParIterator const &) const { return false; }
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
/// Update the counters of this inset and of its contents
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
- bool insetAllowed(InsetCode) const;
+ bool insetAllowed(InsetCode) const override;
private:
///
std::string caption_type_;
/// \name Public functions inherited from Inset class
//@{
///
- bool isLabeled() const { return true; }
+ bool isLabeled() const override { return true; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
- InsetCode lyxCode() const { return CITE_CODE; }
+ InsetCode lyxCode() const override { return CITE_CODE; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
- void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false) override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- bool forceLTR(OutputParams const &) const;
+ bool forceLTR(OutputParams const &) const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetCitation(*this); }
+ Inset * clone() const override { return new InsetCitation(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
///
///
virtual ~InsetCollapsible();
///
- InsetCollapsible * asInsetCollapsible() { return this; }
+ InsetCollapsible * asInsetCollapsible() override { return this; }
///
- InsetCollapsible const * asInsetCollapsible() const { return this; }
+ InsetCollapsible const * asInsetCollapsible() const override { return this; }
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- docstring layoutName() const { return from_ascii("Collapsible"); }
+ docstring layoutName() const override { return from_ascii("Collapsible"); }
///
- void read(Lexer &);
+ void read(Lexer &) override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- int topOffset(BufferView const * bv) const;
+ int topOffset(BufferView const * bv) const override;
///
- int bottomOffset(BufferView const * bv) const;
+ int bottomOffset(BufferView const * bv) const override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- virtual void drawBackground(PainterInfo &, int, int) const {}
+ void drawBackground(PainterInfo &, int, int) const override {}
/// return x,y of given position relative to the inset's baseline
void cursorPos(BufferView const & bv, CursorSlice const & sl,
- bool boundary, int & x, int & y) const;
+ bool boundary, int & x, int & y) const override;
///
docstring const getNewLabel(docstring const & l) const;
///
- bool editable() const;
+ bool editable() const override;
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
/// Returns true if coordinates are over the inset's button.
/// Always returns false when the inset does not have a
/// button.
- bool clickable(BufferView const & bv, int x, int y) const;
+ bool clickable(BufferView const & bv, int x, int y) const override;
/// can we go further down on mouse click?
- bool descendable(BufferView const & bv) const;
+ bool descendable(BufferView const & bv) const override;
///
void setLabel(docstring const & l);
///
/// and of course decoration().
Geometry geometry(BufferView const & bv) const;
///
- bool canPaintChange(BufferView const & bv) const;
+ bool canPaintChange(BufferView const & bv) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
+ bool setMouseHover(BufferView const * bv, bool mouse_hover) const override;
///
- ColorCode backgroundColor(PainterInfo const &) const
+ ColorCode backgroundColor(PainterInfo const &) const override
{ return getLayout().bgcolor(); }
///
- ColorCode labelColor() const { return getLayout().labelfont().color(); }
+ ColorCode labelColor() const override { return getLayout().labelfont().color(); }
///
- InsetCode lyxCode() const { return COLLAPSIBLE_CODE; }
+ InsetCode lyxCode() const override { return COLLAPSIBLE_CODE; }
///
- virtual bool usePlainLayout() const { return true; }
+ bool usePlainLayout() const override { return true; }
///
- std::string contextMenu(BufferView const & bv, int x, int y) const;
+ std::string contextMenu(BufferView const & bv, int x, int y) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
void addToToc(DocIterator const & dit, bool output_active,
- UpdateType utype, TocBackend & backend) const; //override
+ UpdateType utype, TocBackend & backend) const override;
protected:
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
void edit(Cursor & cur, bool front,
- EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
+ EntryDirection entry_from = ENTRY_DIRECTION_IGNORE) override;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
///
mutable CollapseStatus status_;
///
///
virtual ~InsetCommand();
///
- InsetCommand * asInsetCommand() { return this; }
+ InsetCommand * asInsetCommand() override { return this; }
///
- InsetCommand const * asInsetCommand() const { return this; }
+ InsetCommand const * asInsetCommand() const override { return this; }
/// \return true if params are successfully read
static bool string2params(std::string const & data,
/// \name Public functions inherited from Inset class
//@{
///
- void write(std::ostream & os) const { p_.write(os); }
+ void write(std::ostream & os) const override { p_.write(os); }
///
- void read(Lexer & lex) { p_.Read(lex, &buffer()); }
+ void read(Lexer & lex) override { p_.Read(lex, &buffer()); }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- virtual void drawBackground(PainterInfo &, int, int) const {}
+ void drawBackground(PainterInfo &, int, int) const override {}
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
+ bool setMouseHover(BufferView const * bv, bool mouse_hover) const override;
///
- bool clickable(BufferView const &, int, int) const { return hasSettings(); }
+ bool clickable(BufferView const &, int, int) const override { return hasSettings(); }
//@}
protected:
/// \name Methods relaying to the InsetCommandParams p_
//@{
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- bool showInsetDialog(BufferView * bv) const;
+ bool showInsetDialog(BufferView * bv) const override;
//@}
protected:
/// \name Public functions inherited from Inset class
//@{
///
- bool isLabeled() const { return true; }
+ bool isLabeled() const override { return true; }
///
- docstring toolTip(BufferView const &, int, int) const
+ docstring toolTip(BufferView const &, int, int) const override
{ return tooltip_; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- InsetCode lyxCode() const { return COUNTER_CODE; }
+ InsetCode lyxCode() const override { return COUNTER_CODE; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void updateBuffer(ParIterator const & it, UpdateType, bool const);
+ void updateBuffer(ParIterator const & it, UpdateType, bool const) override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetCounter(*this); }
+ Inset * clone() const override { return new InsetCounter(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const { return screen_label_; }
+ docstring screenLabel() const override { return screen_label_; }
//@}
///
docstring lyxSaveCounter() const;
///
static std::string params2string(CollapseStatus);
- std::string contextMenuName() const
+ std::string contextMenuName() const override
{ return "context-ert"; }
private:
///
- InsetCode lyxCode() const { return ERT_CODE; }
+ InsetCode lyxCode() const override { return ERT_CODE; }
///
- docstring layoutName() const { return from_ascii("ERT"); }
+ docstring layoutName() const override { return from_ascii("ERT"); }
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures &) const {}
+ void validate(LaTeXFeatures &) const override {}
/// should paragraph indentation be omitted in any case?
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
- Inset * clone() const { return new InsetERT(*this); }
+ Inset * clone() const override { return new InsetERT(*this); }
///
- docstring const buttonLabel(BufferView const & bv) const;
+ docstring const buttonLabel(BufferView const & bv) const override;
///
- bool allowSpellCheck() const { return false; }
+ bool allowSpellCheck() const override { return false; }
///
- bool insetAllowed(InsetCode code) const { return code == QUOTE_CODE; }
+ bool insetAllowed(InsetCode code) const override { return code == QUOTE_CODE; }
};
/// Update not loaded previews
void updatePreview() const;
/// \returns the number of rows (\n's) of generated code.
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
+ bool setMouseHover(BufferView const * bv, bool mouse_hover) const override;
///
- bool clickable(BufferView const &, int, int) const { return true; }
+ bool clickable(BufferView const &, int, int) const override { return true; }
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- InsetCode lyxCode() const { return EXTERNAL_CODE; }
+ InsetCode lyxCode() const override { return EXTERNAL_CODE; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- int topOffset(BufferView const *) const { return 0; }
+ int topOffset(BufferView const *) const override { return 0; }
///
- int bottomOffset(BufferView const *) const { return 0; }
+ int bottomOffset(BufferView const *) const override { return 0; }
///
- int leftOffset(BufferView const *) const { return 0; }
+ int leftOffset(BufferView const *) const override { return 0; }
///
- int rightOffset(BufferView const *) const { return 0; }
+ int rightOffset(BufferView const *) const override { return 0; }
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
void generateXML(XMLStream &, OutputParams const &, std::string const &) const;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
/// For now, this does nothing. Someone who knows about this
/// should see what needs doing for XHTML output.
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
/// Update needed features for this inset.
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void addPreview(DocIterator const &, graphics::PreviewLoader &) const;
+ void addPreview(DocIterator const &, graphics::PreviewLoader &) const override;
///
- bool showInsetDialog(BufferView * bv) const;
+ bool showInsetDialog(BufferView * bv) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- Inset * clone() const { return new InsetExternal(*this); }
+ Inset * clone() const override { return new InsetExternal(*this); }
/** Slot receiving a signal that the external file has changed
* and the preview should be regenerated.
*/
///
InsetFlex(Buffer *, std::string const & layoutName);
///
- docstring layoutName() const { return from_utf8("Flex:" + name_); }
+ docstring layoutName() const override { return from_utf8("Flex:" + name_); }
///
- InsetLayout const & getLayout() const;
+ InsetLayout const & getLayout() const override;
///
- InsetCode lyxCode() const { return FLEX_CODE; }
+ InsetCode lyxCode() const override { return FLEX_CODE; }
/// Default looks
- InsetLayout::InsetDecoration decoration() const;
+ InsetLayout::InsetDecoration decoration() const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
/// should paragraph indentation be omitted in any case?
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- bool hasSettings() const { return false; }
+ bool hasSettings() const override { return false; }
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus &) const;
+ FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false);
+ void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false) override;
protected:
///
private:
///
- Inset * clone() const { return new InsetFlex(*this); }
+ Inset * clone() const override { return new InsetFlex(*this); }
///
std::string name_;
};
///
InsetFloatParams const & params() const { return params_; }
///
- bool allowsCaptionVariation(std::string const &) const;
+ bool allowsCaptionVariation(std::string const &) const override;
///
- LyXAlignment contentAlignment() const;
+ LyXAlignment contentAlignment() const override;
///
- bool forceParDirectionSwitch() const { return true; }
+ bool forceParDirectionSwitch() const override { return true; }
private:
///
- void setCaptionType(std::string const & type);
+ void setCaptionType(std::string const & type) override;
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return FLOAT_CODE; }
+ InsetCode lyxCode() const override { return FLOAT_CODE; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- bool insetAllowed(InsetCode) const;
+ bool insetAllowed(InsetCode) const override;
/** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
- bool inheritFont() const { return false; }
+ bool inheritFont() const override { return false; }
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- bool hasSubCaptions(ParIterator const & it) const;
+ bool hasSubCaptions(ParIterator const & it) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- Inset * clone() const { return new InsetFloat(*this); }
+ Inset * clone() const override { return new InsetFloat(*this); }
/// Is the content of this inset part of the immediate (visible) text sequence?
- bool isPartOfTextSequence() const { return false; }
+ bool isPartOfTextSequence() const override { return false; }
///
TexString getCaption(OutputParams const &) const;
///
std::string getAlignment() const;
///
- OutputParams::CtObject CtObject(OutputParams const &) const { return OutputParams::CT_OMITOBJECT; }
+ OutputParams::CtObject CtObject(OutputParams const &) const override { return OutputParams::CT_OMITOBJECT; }
InsetFloatParams params_;
};
/// \name Public functions inherited from Inset class
//@{
///
- InsetCode lyxCode() const { return FLOAT_LIST_CODE; }
+ InsetCode lyxCode() const override { return FLOAT_LIST_CODE; }
///
- RowFlags rowFlags() const { return Display; }
+ RowFlags rowFlags() const override { return Display; }
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer &);
+ void read(Lexer &) override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
- void docbook(XMLStream &, OutputParams const &) const { return; }
+ void docbook(XMLStream &, OutputParams const &) const override { return; }
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool clickable(BufferView const &, int, int) const { return true; }
+ bool clickable(BufferView const &, int, int) const override { return true; }
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetFloatList(*this); }
+ Inset * clone() const override { return new InsetFloatList(*this); }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
};
explicit InsetFoot(Buffer *);
private:
///
- InsetCode lyxCode() const { return FOOT_CODE; }
+ InsetCode lyxCode() const override { return FOOT_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
/// Update the counters of this inset and of its contents
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- Inset * clone() const { return new InsetFoot(*this); }
+ Inset * clone() const override { return new InsetFoot(*this); }
///
- bool inheritFont() const { return true; }
+ bool inheritFont() const override { return true; }
///
- bool allowMultiPar() const { return true; }
+ bool allowMultiPar() const override { return true; }
///
docstring custom_label_;
///
///
explicit InsetFootlike(Buffer *);
///
- bool hasSettings() const { return false; }
+ bool hasSettings() const override { return false; }
private:
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- bool insetAllowed(InsetCode) const;
+ bool insetAllowed(InsetCode) const override;
/** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
- bool inheritFont() const { return false; }
+ bool inheritFont() const override { return false; }
};
InsetGraphicsParams getParams() const { return params_;}
///
- bool clickable(BufferView const &, int, int) const { return true; }
+ bool clickable(BufferView const &, int, int) const override { return true; }
///
- bool canPaintChange(BufferView const &) const { return true; }
+ bool canPaintChange(BufferView const &) const override { return true; }
///
- InsetGraphics * asInsetGraphics() { return this; }
+ InsetGraphics * asInsetGraphics() override { return this; }
///
- InsetGraphics const * asInsetGraphics() const { return this; }
+ InsetGraphics const * asInsetGraphics() const override { return this; }
///
- bool isLabeled() const { return true; }
+ bool isLabeled() const override { return true; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
/** returns the number of rows (\n's) of generated tex code.
#fragile == true# means, that the inset should take care about
fragile commands by adding a #\protect# before.
*/
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream & os, OutputParams const &) const;
+ docstring xhtml(XMLStream & os, OutputParams const &) const override;
/** Tell LyX what the latex features you need i.e. what latex packages
you need to be included.
*/
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
/// returns LyX code associated with the inset. Used for TOC, ...)
- InsetCode lyxCode() const { return GRAPHICS_CODE; }
+ InsetCode lyxCode() const override { return GRAPHICS_CODE; }
///
- docstring layoutName() const { return from_ascii("Graphics"); }
+ docstring layoutName() const override { return from_ascii("Graphics"); }
/// Get the inset parameters, used by the GUIndependent dialog.
InsetGraphicsParams const & params() const;
///
- int topOffset(BufferView const *) const { return 0; }
+ int topOffset(BufferView const *) const override { return 0; }
///
- int bottomOffset(BufferView const *) const { return 0; }
+ int bottomOffset(BufferView const *) const override { return 0; }
///
- int leftOffset(BufferView const *) const { return 0; }
+ int leftOffset(BufferView const *) const override { return 0; }
///
- int rightOffset(BufferView const *) const { return 0; }
+ int rightOffset(BufferView const *) const override { return 0; }
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- bool showInsetDialog(BufferView * bv) const;
+ bool showInsetDialog(BufferView * bv) const override;
///
void editGraphics(InsetGraphicsParams const &) const;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
/// Force inset into LTR environment if surroundings are RTL
- bool forceLTR(OutputParams const &) const { return true; }
+ bool forceLTR(OutputParams const &) const override { return true; }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- Inset * clone() const;
+ Inset * clone() const override;
/// Get the status message, depends on the image loading status.
std::string statusMessage() const;
/// Get the output bounding box accounting for raster formats.
/// or an empty string on error.
std::string prepareHTMLFile(OutputParams const & runparams) const;
///
- OutputParams::CtObject CtObject(OutputParams const &) const { return OutputParams::CT_OBJECT; }
+ OutputParams::CtObject CtObject(OutputParams const &) const override { return OutputParams::CT_OBJECT; }
private:
///
/// holds the entity name that defines the graphics location (SGML).
docstring const graphic_label;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
/// The thing that actually draws the image on LyX's screen.
RenderGraphic * graphic_;
};
/// \name Public functions inherited from Inset class
//@{
///
- InsetCode lyxCode() const { return HYPERLINK_CODE; }
+ InsetCode lyxCode() const override { return HYPERLINK_CODE; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- bool forceLTR(OutputParams const &) const { return true; }
+ bool forceLTR(OutputParams const &) const override { return true; }
///
- bool isInToc() const { return true; }
+ bool isInToc() const override { return true; }
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ FuncStatus & flag) const override;
///
- Inset * clone() const { return new InsetHyperlink(*this); }
+ Inset * clone() const override { return new InsetHyperlink(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
///
/// \name Methods inherited from Inset class
//@{
- Inset * clone() const { return new InsetIPA(*this); }
+ Inset * clone() const override { return new InsetIPA(*this); }
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
- bool forceLocalFontSwitch() const { return true; }
+ bool forceLocalFontSwitch() const override { return true; }
- InsetCode lyxCode() const { return IPA_CODE; }
+ InsetCode lyxCode() const override { return IPA_CODE; }
- docstring layoutName() const { return from_ascii("IPA"); }
+ docstring layoutName() const override { return from_ascii("IPA"); }
- bool descendable(BufferView const & /*bv*/) const { return true; }
+ bool descendable(BufferView const & /*bv*/) const override { return true; }
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
void addPreview(DocIterator const & inset_pos,
- graphics::PreviewLoader & ploader) const;
+ graphics::PreviewLoader & ploader) const override;
- bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
+ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
- void edit(Cursor & cur, bool front, EntryDirection entry_from);
+ void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream & xs, OutputParams const &) const;
+ docstring xhtml(XMLStream & xs, OutputParams const &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- bool allowSpellCheck() const { return false; }
+ bool allowSpellCheck() const override { return false; }
///
- bool insetAllowed(InsetCode code) const;
+ bool insetAllowed(InsetCode code) const override;
//@}
protected:
InsetIPADecoParams const & params() const { return params_; }
private:
///
- InsetCode lyxCode() const { return IPADECO_CODE; }
+ InsetCode lyxCode() const override { return IPADECO_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- bool allowSpellCheck() const { return false; }
+ bool allowSpellCheck() const override { return false; }
///
- bool insetAllowed(InsetCode code) const;
+ bool insetAllowed(InsetCode code) const override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- Inset * clone() const { return new InsetIPADeco(*this); }
+ Inset * clone() const override { return new InsetIPADeco(*this); }
/// used by the constructors
void init();
///
///
Kind kind() const;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
/// Will not be used when lyxf3
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
- InsetCode lyxCode() const { return IPACHAR_CODE; }
+ InsetCode lyxCode() const override { return IPACHAR_CODE; }
/// We don't need \begin_inset and \end_inset
- bool directWrite() const { return true; }
+ bool directWrite() const override { return true; }
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
/// should this inset be handled like a normal character?
- bool isChar() const { return true; }
+ bool isChar() const override { return true; }
/// is this equivalent to a letter?
- bool isLetter() const { return true; }
+ bool isLetter() const override { return true; }
private:
- Inset * clone() const { return new InsetIPAChar(*this); }
+ Inset * clone() const override { return new InsetIPAChar(*this); }
/// And which kind is this?
Kind kind_;
///
void updateCommand();
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
/// \name Public functions inherited from Inset class
//@{
///
- void setBuffer(Buffer & buffer);
+ void setBuffer(Buffer & buffer) override;
///
- bool isLabeled() const { return true; }
+ bool isLabeled() const override { return true; }
/// Override these InsetButton methods if Previewing
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- RowFlags rowFlags() const;
+ RowFlags rowFlags() const override;
///
- InsetCode lyxCode() const { return INCLUDE_CODE; }
+ InsetCode lyxCode() const override { return INCLUDE_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
/** Fills \c key
* \param keys the list of bibkeys in the child buffer.
* \param it not used here
*/
- void collectBibKeys(InsetIterator const &, support::FileNameList &) const;
+ void collectBibKeys(InsetIterator const &, support::FileNameList &) const override;
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- void addPreview(DocIterator const &, graphics::PreviewLoader &) const;
+ void addPreview(DocIterator const &, graphics::PreviewLoader &) const override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
static bool isCompatibleCommand(std::string const & s);
///
bool needsCProtection(bool const maintext = false,
- bool const fragile = false) const;
+ bool const fragile = false) const override;
//@}
protected:
/// \name Private functions inherited from Inset class
//@{
- Inset * clone() const { return new InsetInclude(*this); }
+ Inset * clone() const override { return new InsetInclude(*this); }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
//@}
/// \name Private functions inherited from InsetCommand class
// FIXME:InsetCommmand::setParams is not virtual
void setParams(InsetCommandParams const & params);
/// get the text displayed on the button
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
/// holds the entity name that defines the file location (XML)
static void string2params(std::string const &, InsetIndexParams &);
private:
///
- bool hasSettings() const;
+ bool hasSettings() const override;
///
- InsetCode lyxCode() const { return INDEX_CODE; }
+ InsetCode lyxCode() const override { return INDEX_CODE; }
///
- docstring layoutName() const { return from_ascii("Index"); }
+ docstring layoutName() const override { return from_ascii("Index"); }
///
- ColorCode labelColor() const;
+ ColorCode labelColor() const override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
- bool showInsetDialog(BufferView *) const;
+ bool showInsetDialog(BufferView *) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
/// should paragraph indentation be omitted in any case?
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- docstring const buttonLabel(BufferView const & bv) const;
+ docstring const buttonLabel(BufferView const & bv) const override;
/// Updates needed features for this inset.
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- Inset * clone() const { return new InsetIndex(*this); }
+ Inset * clone() const override { return new InsetIndex(*this); }
/// Is the content of this inset part of the immediate text sequence?
- bool isPartOfTextSequence() const { return false; }
+ bool isPartOfTextSequence() const override { return false; }
///
friend class InsetIndexParams;
/// \name Public functions inherited from Inset class
//@{
///
- InsetCode lyxCode() const { return INDEX_PRINT_CODE; }
+ InsetCode lyxCode() const override { return INDEX_PRINT_CODE; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false) override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
/// Updates needed features for this inset.
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- bool hasSettings() const;
+ bool hasSettings() const override;
///
- RowFlags rowFlags() const { return Display; }
+ RowFlags rowFlags() const override { return Display; }
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetPrintIndex(*this); }
+ Inset * clone() const override { return new InsetPrintIndex(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
};
///
InsetInfo(Buffer * buf, std::string const & info = std::string());
///
- InsetCode lyxCode() const { return INFO_CODE; }
+ InsetCode lyxCode() const override { return INFO_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
/** FIXME: we would like to do that, but then InsetText::updateBuffer breaks
* on info insets. Do we need to run this method on InsetInfo contents?
* Having a InsetInfo that hides an InsetText is really annoying, actually.
*/
- ///bool isActive() const { return false; }
+ ///bool isActive() const override { return false; }
///
- bool editable() const { return false; }
+ bool editable() const override { return false; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- bool validateModifyArgument(docstring const & argument) const {
+ bool validateModifyArgument(docstring const & argument) const override {
return params_.validateArgument(&buffer(), argument); }
///
- bool showInsetDialog(BufferView * bv) const;
+ bool showInsetDialog(BufferView * bv) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
/// Force inset into LTR environment if surroundings are RTL
- bool forceLTR(OutputParams const &) const;
+ bool forceLTR(OutputParams const &) const override;
///
- bool forceLocalFontSwitch() const;
+ bool forceLocalFontSwitch() const override;
///
void setInfo(std::string const & info);
///
- void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false);
+ void updateBuffer(ParIterator const & it, UpdateType utype, bool const deleted = false) override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- std::string contextMenu(BufferView const &, int, int) const;
+ std::string contextMenu(BufferView const &, int, int) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
/// should paragraph indentation be omitted in any case?
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
InsetInfoParams params() const { return params_; }
private:
///
- virtual Inset * clone() const { return new InsetInfo(*this); }
+ Inset * clone() const override { return new InsetInfo(*this); }
///
void error(docstring const & err, Language const *);
///
/// \name Public functions inherited from Inset class
//@{
/// verify label and update references.
- void initView();
+ void initView() override;
///
- bool isLabeled() const { return true; }
+ bool isLabeled() const override { return true; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- InsetCode lyxCode() const { return LABEL_CODE; }
+ InsetCode lyxCode() const override { return LABEL_CODE; }
///
- void latex(otexstream & os, OutputParams const & runparams_in) const;
+ void latex(otexstream & os, OutputParams const & runparams_in) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false) override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
/// Is the content of this inset part of the immediate (visible) text sequence?
- bool isPartOfTextSequence() const { return false; }
+ bool isPartOfTextSequence() const override { return false; }
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
private:
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetLabel(*this); }
+ Inset * clone() const override { return new InsetLabel(*this); }
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
//@}
///
///
bool isDisplay() const { return display_; }
///
- bool forcelocalfontswitch() const { return forcelocalfontswitch_; }
+ bool forceLocalFontSwitch() const { return forcelocalfontswitch_; }
///
docstring const & obsoleted_by() const { return obsoleted_by_; }
///
/// InsetCommand inherited methods.
//@{
- docstring screenLabel() const;
+ docstring screenLabel() const override;
static ParamInfo const & findInfo(std::string const &);
static std::string defaultCommand() { return "rule"; }
static bool isCompatibleCommand(std::string const & s)
/// Inset inherited methods.
//@{
- InsetCode lyxCode() const { return LINE_CODE; }
- void docbook(XMLStream &, OutputParams const &) const;
- docstring xhtml(XMLStream &, OutputParams const &) const;
- bool hasSettings() const { return true; }
- void metrics(MetricsInfo &, Dimension &) const;
- void draw(PainterInfo & pi, int x, int y) const;
- void latex(otexstream &, OutputParams const &) const;
+ InsetCode lyxCode() const override { return LINE_CODE; }
+ void docbook(XMLStream &, OutputParams const &) const override;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
+ bool hasSettings() const override { return true; }
+ void metrics(MetricsInfo &, Dimension &) const override;
+ void draw(PainterInfo & pi, int x, int y) const override;
+ void latex(otexstream &, OutputParams const &) const override;
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
- void doDispatch(Cursor & cur, FuncRequest & cmd);
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
- Inset * clone() const { return new InsetLine(*this); }
+ size_t max_length = INT_MAX) const override;
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
+ Inset * clone() const override { return new InsetLine(*this); }
//@}
/// cached line height and offset.
static std::string params2string(InsetListingsParams const &);
private:
///
- bool isLabeled() const { return true; }
+ bool isLabeled() const override { return true; }
/// false is needed since listings do their own font handling.
- bool inheritFont() const { return false; }
+ bool inheritFont() const override { return false; }
///
- InsetCode lyxCode() const { return LISTINGS_CODE; }
+ InsetCode lyxCode() const override { return LISTINGS_CODE; }
/// lstinline is inlined, normal listing is displayed
- RowFlags rowFlags() const;
+ RowFlags rowFlags() const override;
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- bool showInsetDialog(BufferView *) const;
+ bool showInsetDialog(BufferView *) const override;
///
InsetListingsParams const & params() const { return params_; }
///
InsetListingsParams & params() { return params_; }
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
- Inset * clone() const { return new InsetListings(*this); }
+ Inset * clone() const override { return new InsetListings(*this); }
///
- docstring const buttonLabel(BufferView const & bv) const;
+ docstring const buttonLabel(BufferView const & bv) const override;
///
TexString getCaption(OutputParams const &) const;
///
- bool insetAllowed(InsetCode c) const { return c == CAPTION_CODE || c == QUOTE_CODE; }
+ bool insetAllowed(InsetCode c) const override { return c == CAPTION_CODE || c == QUOTE_CODE; }
///
- Encoding const * forcedEncoding(Encoding const *, Encoding const *) const;
+ Encoding const * forcedEncoding(Encoding const *, Encoding const *) const override;
///
InsetListingsParams params_;
///
explicit InsetMarginal(Buffer *);
///
- InsetCode lyxCode() const { return MARGIN_CODE; }
+ InsetCode lyxCode() const override { return MARGIN_CODE; }
///
- docstring layoutName() const { return from_ascii("Marginal"); }
+ docstring layoutName() const override { return from_ascii("Marginal"); }
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const & runparams) const;
+ void docbook(XMLStream &, OutputParams const & runparams) const override;
/// Is the content of this inset part of the immediate (visible) text sequence?
- bool isPartOfTextSequence() const { return false; }
+ bool isPartOfTextSequence() const override { return false; }
private:
///
- Inset * clone() const { return new InsetMarginal(*this); }
+ Inset * clone() const override { return new InsetMarginal(*this); }
};
explicit InsetNewline(InsetNewlineParams par) : Inset(0)
{ params_.kind = par.kind; }
///
- RowFlags rowFlags() const { return BreakAfter | RowAfter; }
+ RowFlags rowFlags() const override { return BreakAfter | RowAfter; }
///
static void string2params(std::string const &, InsetNewlineParams &);
///
static std::string params2string(InsetNewlineParams const &);
private:
///
- InsetCode lyxCode() const { return NEWLINE_CODE; }
+ InsetCode lyxCode() const override { return NEWLINE_CODE; }
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
/// is this equivalent to a space (which is BTW different from
/// a line separator)?
- bool isSpace() const { return true; }
+ bool isSpace() const override { return true; }
///
ColorCode ColorName() const;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- Inset * clone() const { return new InsetNewline(*this); }
+ Inset * clone() const override { return new InsetNewline(*this); }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
InsetNewlineParams params_;
static std::string params2string(InsetNewpageParams const &);
private:
///
- InsetCode lyxCode() const { return NEWPAGE_CODE; }
+ InsetCode lyxCode() const override { return NEWPAGE_CODE; }
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- RowFlags rowFlags() const { return Display; }
+ RowFlags rowFlags() const override { return Display; }
///
docstring insetLabel() const;
///
ColorCode ColorName() const;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- Inset * clone() const { return new InsetNewpage(*this); }
+ Inset * clone() const override { return new InsetNewpage(*this); }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
InsetNewpageParams params_;
/// \name Public functions inherited from Inset class
//@{
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
/// Updates needed features for this inset.
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- InsetCode lyxCode() const { return NOMENCL_CODE; }
+ InsetCode lyxCode() const override { return NOMENCL_CODE; }
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
/// Does nothing at the moment.
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetNomencl(*this); }
+ Inset * clone() const override { return new InsetNomencl(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
/// unique id for this nomenclature entry for docbook export
/// \name Public functions inherited from Inset class
//@{
/// Updates needed features for this inset.
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- InsetCode lyxCode() const;
+ InsetCode lyxCode() const override;
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- RowFlags rowFlags() const { return Display; }
+ RowFlags rowFlags() const override { return Display; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetPrintNomencl(*this); }
+ Inset * clone() const override { return new InsetPrintNomencl(*this); }
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- docstring layoutName() const { return from_ascii("PrintNomencl"); }
+ docstring layoutName() const override { return from_ascii("PrintNomencl"); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
};
InsetNoteParams const & params() const { return params_; }
private:
///
- InsetCode lyxCode() const { return NOTE_CODE; }
+ InsetCode lyxCode() const override { return NOTE_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
/** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
- bool inheritFont() const { return params_.type == InsetNoteParams::Note; }
+ bool inheritFont() const override { return params_.type == InsetNoteParams::Note; }
/// Is the content of this inset part of the output document?
- bool producesOutput() const
+ bool producesOutput() const override
{ return params_.type == InsetNoteParams::Greyedout; }
///
- bool allowSpellCheck() const;
+ bool allowSpellCheck() const override;
///
- FontInfo getFont() const;
+ FontInfo getFont() const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
/// show the note dialog
- bool showInsetDialog(BufferView * bv) const;
+ bool showInsetDialog(BufferView * bv) const override;
///
- bool isMacroScope() const;
+ bool isMacroScope() const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- Inset * clone() const { return new InsetNote(*this); }
+ Inset * clone() const override { return new InsetNote(*this); }
/// used by the constructors
void init();
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
friend class InsetNoteParams;
InsetPhantomParams const & params() const { return params_; }
private:
///
- InsetCode lyxCode() const { return PHANTOM_CODE; }
+ InsetCode lyxCode() const override { return PHANTOM_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void setButtonLabel();
+ void setButtonLabel() override;
/// show the phantom dialog
- bool showInsetDialog(BufferView * bv) const;
+ bool showInsetDialog(BufferView * bv) const override;
///
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
/// Makes no sense for XHTML.
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- Inset * clone() const { return new InsetPhantom(*this); }
+ Inset * clone() const override { return new InsetPhantom(*this); }
/// used by the constructors
void init();
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
friend class InsetPhantomParams;
/// \name Methods inherited from Inset class
//@{
- Inset * clone() const { return new InsetPreview(*this); }
+ Inset * clone() const override { return new InsetPreview(*this); }
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
- bool inheritFont() const { return false; }
+ bool inheritFont() const override { return false; }
- InsetCode lyxCode() const { return PREVIEW_CODE; }
+ InsetCode lyxCode() const override { return PREVIEW_CODE; }
- docstring layoutName() const { return from_ascii("Preview"); }
+ docstring layoutName() const override { return from_ascii("Preview"); }
- bool descendable(BufferView const & /*bv*/) const { return true; }
+ bool descendable(BufferView const & /*bv*/) const override { return true; }
- std::string contextMenuName() const
+ std::string contextMenuName() const override
{ return "context-preview"; }
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
void addPreview(DocIterator const & inset_pos,
- graphics::PreviewLoader & ploader) const;
+ graphics::PreviewLoader & ploader) const override;
- bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
+ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
- void edit(Cursor & cur, bool front, EntryDirection entry_from);
+ void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
- bool canPaintChange(BufferView const &) const { return true; };
+ bool canPaintChange(BufferView const &) const override { return true; };
//@}
protected:
std::string const & side = std::string(),
std::string const & style = std::string());
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const maxlen, bool const) const;
+ void forOutliner(docstring &, size_t const maxlen, bool const) const override;
/// Update the contextual information of this inset
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- InsetCode lyxCode() const { return QUOTE_CODE; }
+ InsetCode lyxCode() const override { return QUOTE_CODE; }
/// should this inset be handled like a normal character
- bool isChar() const { return true; }
+ bool isChar() const override { return true; }
/// Returns the current quote type
std::string getType() const;
private:
///
- Inset * clone() const { return new InsetQuotes(*this); }
+ Inset * clone() const override { return new InsetQuotes(*this); }
/// Decide whether we need left or right quotation marks
void setSide(char_type c);
/// \name Protected functions inherited from Inset class
//@{
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
//@}
};
/// \name Public functions inherited from Inset class
//@{
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus & status) const override;
///
- bool isLabeled() const { return true; }
+ bool isLabeled() const override { return true; }
///
- docstring toolTip(BufferView const &, int, int) const
+ docstring toolTip(BufferView const &, int, int) const override
{ return tooltip_; }
///
docstring getTOCString() const;
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- InsetCode lyxCode() const { return REF_CODE; }
+ InsetCode lyxCode() const override { return REF_CODE; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const & it, UpdateType, bool const deleted = false) override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- bool forceLTR(OutputParams const &) const;
+ bool forceLTR(OutputParams const &) const override;
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetRef(*this); }
+ Inset * clone() const override { return new InsetRef(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
/// \return the label with things that need to be escaped escaped
/// \name Public functions inherited from Inset class
//@{
///
- InsetCode lyxCode() const { return SCRIPT_CODE; }
+ InsetCode lyxCode() const override { return SCRIPT_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- int topOffset(BufferView const *) const { return 0; }
+ int topOffset(BufferView const *) const override { return 0; }
///
- int bottomOffset(BufferView const *) const { return 0; }
+ int bottomOffset(BufferView const *) const override { return 0; }
///
- int leftOffset(BufferView const *) const { return 0; }
+ int leftOffset(BufferView const *) const override { return 0; }
///
- int rightOffset(BufferView const *) const { return 0; }
+ int rightOffset(BufferView const *) const override { return 0; }
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
void cursorPos(BufferView const & bv,
- CursorSlice const & sl, bool boundary, int & x, int & y) const;
+ CursorSlice const & sl, bool boundary, int & x, int & y) const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- bool forcePlainLayout(idx_type = 0) const { return true; }
+ bool forcePlainLayout(idx_type = 0) const override { return true; }
///
- bool allowParagraphCustomization(idx_type = 0) const { return false; }
+ bool allowParagraphCustomization(idx_type = 0) const override { return false; }
///
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- bool inheritFont() const { return true; }
+ bool inheritFont() const override { return true; }
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
void edit(Cursor & cur, bool front,
- EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
+ EntryDirection entry_from = ENTRY_DIRECTION_IGNORE) override;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
///
- bool insetAllowed(InsetCode code) const;
+ bool insetAllowed(InsetCode code) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- Inset * clone() const { return new InsetScript(*this); }
+ Inset * clone() const override { return new InsetScript(*this); }
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
//@}
/// \name Public functions inherited from InsetText class
//@{
///
- bool allowMultiPar() const { return false; }
+ bool allowMultiPar() const override { return false; }
//@}
protected:
/// \name Protected functions inherited from Inset class
//@{
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
//@}
private:
/// To be used in combination with inset-forall
/// Here's a command that removes every latexpar separator:
/// inset-forall Separator:latexpar char-delete-forward
- docstring layoutName() const
+ docstring layoutName() const override
{
switch (params_.kind) {
case InsetSeparatorParams::PLAIN:
return docstring();
}
///
- RowFlags rowFlags() const { return BreakAfter; }
+ RowFlags rowFlags() const override { return BreakAfter; }
private:
///
- InsetCode lyxCode() const { return SEPARATOR_CODE; }
+ InsetCode lyxCode() const override { return SEPARATOR_CODE; }
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
/// is this equivalent to a space (which is BTW different from
/// a line separator)?
- bool isSpace() const { return true; }
+ bool isSpace() const override { return true; }
///
ColorCode ColorName() const;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- Inset * clone() const { return new InsetSeparator(*this); }
+ Inset * clone() const override { return new InsetSeparator(*this); }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
InsetSeparatorParams params_;
GlueLength length() const;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
/// unprotected spaces allow line breaking after them
- RowFlags rowFlags() const;
+ RowFlags rowFlags() const override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
/// Will not be used when lyxf3
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- bool clickable(BufferView const &, int, int) const { return true; }
+ bool clickable(BufferView const &, int, int) const override { return true; }
///
- InsetCode lyxCode() const { return SPACE_CODE; }
+ InsetCode lyxCode() const override { return SPACE_CODE; }
/// does this inset try to use all available space (like \\hfill does)?
- bool isHfill() const;
+ bool isHfill() const override;
/// should this inset be handled like a normal character?
- bool isChar() const { return true; }
+ bool isChar() const override { return true; }
/// is this equivalent to a letter?
- bool isLetter() const { return false; }
+ bool isLetter() const override { return false; }
/// is this equivalent to a space (which is BTW different from
// a line separator)?
- bool isSpace() const { return true; }
+ bool isSpace() const override { return true; }
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
protected:
///
- Inset * clone() const { return new InsetSpace(*this); }
+ Inset * clone() const override { return new InsetSpace(*this); }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
public:
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
private:
///
///
Kind kind() const;
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
/// some special chars allow line breaking after them
- RowFlags rowFlags() const;
+ RowFlags rowFlags() const override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
/// Will not be used when lyxf3
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- bool isInToc() const { return true; }
+ bool isInToc() const override { return true; }
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
- InsetCode lyxCode() const { return SPECIALCHAR_CODE; }
+ InsetCode lyxCode() const override { return SPECIALCHAR_CODE; }
/// We don't need \begin_inset and \end_inset
- bool directWrite() const { return true; }
+ bool directWrite() const override { return true; }
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
/// should this inset be handled like a normal character?
- bool isChar() const;
+ bool isChar() const override;
/// is this equivalent to a letter?
- bool isLetter() const;
+ bool isLetter() const override;
/// should we break lines after this inset?
- bool isLineSeparator() const;
+ bool isLineSeparator() const override;
/// Is the content of this inset part of the immediate (visible) text sequence?
- bool isPartOfTextSequence() const { return isChar(); }
+ bool isPartOfTextSequence() const override { return isChar(); }
private:
- Inset * clone() const { return new InsetSpecialChar(*this); }
+ Inset * clone() const override { return new InsetSpecialChar(*this); }
/// And which kind is this?
Kind kind_;
/// \name Public functions inherited from Inset class
//@{
///
- InsetCode lyxCode() const { return TOC_CODE; }
+ InsetCode lyxCode() const override { return TOC_CODE; }
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- RowFlags rowFlags() const { return Display; }
+ RowFlags rowFlags() const override { return Display; }
///
- virtual void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream & xs, OutputParams const &) const;
+ docstring xhtml(XMLStream & xs, OutputParams const &) const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool clickable(BufferView const &, int, int) const { return true; }
+ bool clickable(BufferView const &, int, int) const override { return true; }
//@}
/// \name Static public methods obligated for InsetCommand derived classes
/// \name Private functions inherited from Inset class
//@{
///
- Inset * clone() const { return new InsetTOC(*this); }
+ Inset * clone() const override { return new InsetTOC(*this); }
//@}
/// \name Private functions inherited from InsetCommand class
//@{
///
- docstring screenLabel() const;
+ docstring screenLabel() const override;
//@}
};
///
explicit InsetTableCell(Buffer * buf);
///
- InsetCode lyxCode() const { return CELL_CODE; }
+ InsetCode lyxCode() const override { return CELL_CODE; }
///
- Inset * clone() const { return new InsetTableCell(*this); }
+ Inset * clone() const override { return new InsetTableCell(*this); }
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & status) const;
+ FuncStatus & status) const override;
///
void toggleFixedWidth(bool fw) { isFixedWidth = fw; }
///
/// descending into insets
docstring asString(bool intoInsets = true);
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
/// Needs to be same as InsetTabular
- bool inheritFont() const { return false; }
+ bool inheritFont() const override { return false; }
/// Can the cell contain several paragraphs?
- bool allowMultiPar() const { return !isMultiRow && (!isMultiColumn || isFixedWidth); }
+ bool allowMultiPar() const override { return !isMultiRow && (!isMultiColumn || isFixedWidth); }
private:
/// unimplemented
InsetTableCell();
///
LyXAlignment contentAlign;
/// should paragraph indentation be omitted in any case?
- bool neverIndent() const { return true; }
+ bool neverIndent() const override { return true; }
///
- LyXAlignment contentAlignment() const { return contentAlign; }
+ LyXAlignment contentAlignment() const override { return contentAlign; }
///
- virtual bool usePlainLayout() const { return true; }
+ bool usePlainLayout() const override { return true; }
///
- virtual bool forcePlainLayout(idx_type = 0) const;
+ bool forcePlainLayout(idx_type = 0) const override;
///
- virtual bool allowParagraphCustomization(idx_type = 0) const;
+ bool allowParagraphCustomization(idx_type = 0) const override;
///
- virtual bool forceLocalFontSwitch() const;
+ bool forceLocalFontSwitch() const override;
/// Is the width forced to some value?
- bool hasFixedWidth() const { return isFixedWidth; }
+ bool hasFixedWidth() const override { return isFixedWidth; }
};
///
~InsetTabular();
///
- void setBuffer(Buffer & buffer);
+ void setBuffer(Buffer & buffer) override;
///
static void string2params(std::string const &, InsetTabular &);
///
static std::string params2string(InsetTabular const &);
///
- void read(Lexer &);
+ void read(Lexer &) override;
///
- void write(std::ostream &) const;
+ void write(std::ostream &) const override;
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void drawSelection(PainterInfo & pi, int x, int y) const;
+ void drawSelection(PainterInfo & pi, int x, int y) const override;
///
- void drawBackground(PainterInfo & pi, int x, int y) const;
+ void drawBackground(PainterInfo & pi, int x, int y) const override;
///
- bool editable() const { return true; }
+ bool editable() const override { return true; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- bool insetAllowed(InsetCode code) const;
+ bool insetAllowed(InsetCode code) const override;
///
- bool allowSpellCheck() const { return true; }
+ bool allowSpellCheck() const override { return true; }
///
- bool canTrackChanges() const { return true; }
+ bool canTrackChanges() const override { return true; }
///
- bool canPaintChange(BufferView const &) const { return true; }
+ bool canPaintChange(BufferView const &) const override { return true; }
/** returns false if, when outputting LaTeX, font changes should
be closed before generating this inset. This is needed for
insets that may contain several paragraphs */
- bool inheritFont() const { return false; }
+ bool inheritFont() const override { return false; }
///
- bool allowMultiPar() const;
+ bool allowMultiPar() const override;
///
- bool allowsCaptionVariation(std::string const &) const;
+ bool allowsCaptionVariation(std::string const &) const override;
//
- bool isTable() const { return true; }
+ bool isTable() const override { return true; }
///
- RowFlags rowFlags() const;
+ RowFlags rowFlags() const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return TABULAR_CODE; }
+ InsetCode lyxCode() const override { return TABULAR_CODE; }
///
- std::string contextMenu(BufferView const &, int, int) const;
+ std::string contextMenu(BufferView const &, int, int) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
/// get offset of this cursor slice relative to our upper left corner
void cursorPos(BufferView const & bv, CursorSlice const & sl,
- bool boundary, int & x, int & y) const;
+ bool boundary, int & x, int & y) const override;
/// Executes a space-separated sequence of tabular-features requests
void tabularFeatures(Cursor & cur, std::string const & what);
/// Change a single tabular feature; does not handle undo.
void tabularFeatures(Cursor & cur, Tabular::Feature feature,
std::string const & val = std::string());
/// number of cells
- size_t nargs() const { return tabular.numberofcells; }
+ size_t nargs() const override { return tabular.numberofcells; }
///
std::shared_ptr<InsetTableCell const> cell(idx_type) const;
///
std::shared_ptr<InsetTableCell> cell(idx_type);
///
- Text * getText(int) const;
+ Text * getText(int) const override;
/// does the inset contain changes ?
- bool isChanged() const;
+ bool isChanged() const override;
/// set the change for the entire inset
- void setChange(Change const & change);
+ void setChange(Change const & change) override;
/// accept the changes within the inset
- void acceptChanges();
+ void acceptChanges() override;
/// reject the changes within the inset
- void rejectChanges();
+ void rejectChanges() override;
// this should return true if we have a "normal" cell, otherwise false.
// "normal" means without width set!
virtual bool forcePlainLayout(idx_type cell = 0) const;
///
void addPreview(DocIterator const & inset_pos,
- graphics::PreviewLoader &) const;
+ graphics::PreviewLoader &) const override;
/// lock cell with given index
- void edit(Cursor & cur, bool front, EntryDirection entry_from);
+ void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
/// get table row from x coordinate
int rowFromY(Cursor & cur, int y) const;
/// get table column from y coordinate
int columnFromX(Cursor & cur, int x) const;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
/// can we go further down on mouse click?
- bool descendable(BufferView const &) const { return true; }
+ bool descendable(BufferView const &) const override { return true; }
/// Update the counters of this inset and of its contents
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- bool completionSupported(Cursor const &) const;
+ bool completionSupported(Cursor const &) const override;
///
- bool inlineCompletionSupported(Cursor const & cur) const;
+ bool inlineCompletionSupported(Cursor const & cur) const override;
///
- bool automaticInlineCompletion() const;
+ bool automaticInlineCompletion() const override;
///
- bool automaticPopupCompletion() const;
+ bool automaticPopupCompletion() const override;
///
- bool showCompletionCursor() const;
+ bool showCompletionCursor() const override;
///
- CompletionList const * createCompletionList(Cursor const & cur) const;
+ CompletionList const * createCompletionList(Cursor const & cur) const override;
///
- docstring completionPrefix(Cursor const & cur) const;
+ docstring completionPrefix(Cursor const & cur) const override;
///
- bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
+ bool insertCompletion(Cursor & cur, docstring const & s, bool finished) override;
///
- void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
+ void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const override;
///
- virtual bool usePlainLayout() const { return true; }
+ bool usePlainLayout() const override { return true; }
///
- docstring layoutName() const { return from_ascii("Tabular"); }
+ docstring layoutName() const override { return from_ascii("Tabular"); }
///
- InsetTabular * asInsetTabular() { return this; }
+ InsetTabular * asInsetTabular() override { return this; }
///
- InsetTabular const * asInsetTabular() const { return this; }
+ InsetTabular const * asInsetTabular() const override { return this; }
///
bool isRightToLeft(Cursor & cur) const;
/// writes the cells between stidx and enidx as a string, optionally
///
InsetTabular(InsetTabular const &);
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
bool getFeatureStatus(Cursor & cur, std::string const & s,
std::string const & argument, FuncStatus & status) const;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
- Inset * clone() const { return new InsetTabular(*this); }
+ Inset * clone() const override { return new InsetTabular(*this); }
///
bool hitSelectRow(BufferView const & bv, int x) const;
///
bool hitSelectColumn(BufferView const & bv, int y) const;
/// Returns true if coordinates are on row/column selection zones
- bool clickable(BufferView const &, int x, int y) const;
+ bool clickable(BufferView const &, int x, int y) const override;
///
void drawCellLines(PainterInfo &, int x, int y, row_type row,
///
InsetText(InsetText const &);
///
- void setBuffer(Buffer &);
+ void setBuffer(Buffer &) override;
///
Dimension const dimensionHelper(BufferView const &) const;
/// empty inset to empty par
void clear();
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
/// Drawing background is handled in draw
- virtual void drawBackground(PainterInfo &, int, int) const {}
+ void drawBackground(PainterInfo &, int, int) const override {}
///
- bool editable() const { return true; }
+ bool editable() const override { return true; }
///
- bool canTrackChanges() const { return true; }
+ bool canTrackChanges() const override { return true; }
/// Rely on RowPainter to draw the cue of inline insets.
- bool canPaintChange(BufferView const &) const { return allowMultiPar(); }
+ bool canPaintChange(BufferView const &) const override { return allowMultiPar(); }
///
- InsetText * asInsetText() { return this; }
+ InsetText * asInsetText() override { return this; }
///
- InsetText const * asInsetText() const { return this; }
+ InsetText const * asInsetText() const override { return this; }
///
Text & text() { return text_; }
Text const & text() const { return text_; }
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
enum XHTMLOptions {
JustText = 0,
///
void docbook(XMLStream &, OutputParams const &, XHTMLOptions opts) const;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
/// return the argument(s) only
void getArgs(otexstream & os, OutputParams const &, bool const post = false) const;
/// return x,y of given position relative to the inset's baseline
void cursorPos(BufferView const & bv, CursorSlice const & sl,
- bool boundary, int & x, int & y) const;
+ bool boundary, int & x, int & y) const override;
///
- InsetCode lyxCode() const { return TEXT_CODE; }
+ InsetCode lyxCode() const override { return TEXT_CODE; }
///
void setText(docstring const &, Font const &, bool trackChanges);
///
///
void setFrameColor(ColorCode);
///
- Text * getText(int i) const {
+ Text * getText(int i) const override {
return (i == 0) ? const_cast<Text*>(&text_) : 0;
}
///
- virtual bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
void fixParagraphsFont();
/// does the inset contain changes ?
- bool isChanged() const { return is_changed_; }
+ bool isChanged() const override { return is_changed_; }
/// this is const because value is mutable
void isChanged(bool ic) const { is_changed_ = ic; }
/// set the change for the entire inset
- void setChange(Change const & change);
+ void setChange(Change const & change) override;
/// accept the changes within the inset
- void acceptChanges();
+ void acceptChanges() override;
/// reject the changes within the inset
- void rejectChanges();
+ void rejectChanges() override;
/// append text onto the existing text
void appendParagraphs(ParagraphList &);
///
- void addPreview(DocIterator const &, graphics::PreviewLoader &) const;
+ void addPreview(DocIterator const &, graphics::PreviewLoader &) const override;
///
- void edit(Cursor & cur, bool front, EntryDirection entry_from);
+ void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
/// number of cells in this inset
- size_t nargs() const { return 1; }
+ size_t nargs() const override { return 1; }
///
ParagraphList & paragraphs();
///
ParagraphList const & paragraphs() const;
///
- bool insetAllowed(InsetCode) const;
+ bool insetAllowed(InsetCode) const override;
///
- bool allowSpellCheck() const { return getLayout().spellcheck() && !getLayout().isPassThru(); }
+ bool allowSpellCheck() const override { return getLayout().spellcheck() && !getLayout().isPassThru(); }
///
virtual bool isMacroScope() const { return false; }
///
- bool allowMultiPar() const { return getLayout().isMultiPar(); }
+ bool allowMultiPar() const override { return getLayout().isMultiPar(); }
///
- bool isInTitle() const { return intitle_context_; }
+ bool isInTitle() const override { return intitle_context_; }
///
/// should paragraphs be forced to use the empty layout?
- virtual bool forcePlainLayout(idx_type = 0) const
+ bool forcePlainLayout(idx_type = 0) const override
{ return getLayout().forcePlainLayout(); }
/// should the user be allowed to customize alignment, etc.?
- virtual bool allowParagraphCustomization(idx_type = 0) const
+ bool allowParagraphCustomization(idx_type = 0) const override
{ return getLayout().allowParagraphCustomization(); }
/// should paragraphs be forced to use a local font language switch?
- virtual bool forceLocalFontSwitch() const
- { return getLayout().forcelocalfontswitch(); }
+ bool forceLocalFontSwitch() const override
+ { return getLayout().forceLocalFontSwitch(); }
/// Update the counters of this inset and of its contents
- virtual void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
void setMacrocontextPositionRecursive(DocIterator const & pos);
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
- Inset * clone() const { return new InsetText(*this); }
+ Inset * clone() const override { return new InsetText(*this); }
///
- bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
+ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
///
- bool completionSupported(Cursor const &) const;
+ bool completionSupported(Cursor const &) const override;
///
- bool inlineCompletionSupported(Cursor const & cur) const;
+ bool inlineCompletionSupported(Cursor const & cur) const override;
///
- bool automaticInlineCompletion() const;
+ bool automaticInlineCompletion() const override;
///
- bool automaticPopupCompletion() const;
+ bool automaticPopupCompletion() const override;
///
- bool showCompletionCursor() const;
+ bool showCompletionCursor() const override;
///
- CompletionList const * createCompletionList(Cursor const & cur) const;
+ CompletionList const * createCompletionList(Cursor const & cur) const override;
///
- docstring completionPrefix(Cursor const & cur) const;
+ docstring completionPrefix(Cursor const & cur) const override;
///
- bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
+ bool insertCompletion(Cursor & cur, docstring const & s, bool finished) override;
///
- void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
+ void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const override;
/// returns the text to be used as tooltip
/// \param prefix: a string that will precede the tooltip,
/// e.g., "Index: ".
size_t len = 400) const;
///
- std::string contextMenu(BufferView const &, int, int) const;
+ std::string contextMenu(BufferView const &, int, int) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool confirmDeletion() const { return !text().empty(); }
+ bool confirmDeletion() const override { return !text().empty(); }
///
bool needsCProtection(bool const maintext = false,
- bool const fragile = false) const;
+ bool const fragile = false) const override;
///
bool hasCProtectContent(bool fragile = false) const;
/// How much?
VSpace const & space() const { return space_; }
///
- InsetCode lyxCode() const { return VSPACE_CODE; }
+ InsetCode lyxCode() const override { return VSPACE_CODE; }
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- bool clickable(BufferView const &, int, int) const { return true; }
+ bool clickable(BufferView const &, int, int) const override { return true; }
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
static void string2params(std::string const &, VSpace &);
///
static std::string params2string(VSpace const &);
private:
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
/// Note that this returns the inset rather than writing it,
/// so it will actually be written after the present paragraph.
/// The normal case is that this inset will be on a line by
/// itself, and in that case the present paragraph will not,
/// in fact, appear at all.
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- RowFlags rowFlags() const { return Display; }
+ RowFlags rowFlags() const override { return Display; }
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const;
+ bool getStatus(Cursor & cur, FuncRequest const & cmd, FuncStatus &) const override;
///
- Inset * clone() const { return new InsetVSpace(*this); }
+ Inset * clone() const override { return new InsetVSpace(*this); }
///
docstring const label() const;
static std::string params2string(InsetWrapParams const &);
private:
///
- void setCaptionType(std::string const & type);
+ void setCaptionType(std::string const & type) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return WRAP_CODE; }
+ InsetCode lyxCode() const override { return WRAP_CODE; }
///
- docstring toolTip(BufferView const & bv, int x, int y) const;
+ docstring toolTip(BufferView const & bv, int x, int y) const override;
///
- void latex(otexstream &, OutputParams const &) const;
+ void latex(otexstream &, OutputParams const &) const override;
///
int plaintext(odocstringstream & ods, OutputParams const & op,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- bool insetAllowed(InsetCode) const;
+ bool insetAllowed(InsetCode) const override;
///
- bool showInsetDialog(BufferView *) const;
+ bool showInsetDialog(BufferView *) const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
/// Update the label
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- docstring layoutName() const;
+ docstring layoutName() const override;
///
- Inset * clone() const { return new InsetWrap(*this); }
+ Inset * clone() const override { return new InsetWrap(*this); }
/// Is the content of this inset part of the immediate (visible) text sequence?
- bool isPartOfTextSequence() const { return false; }
+ bool isPartOfTextSequence() const override { return false; }
///
InsetWrapParams params_;
public:
RenderButton();
- RenderBase * clone(Inset const *) const;
+ RenderBase * clone(Inset const *) const override;
/// compute the size of the object returned in dim
- virtual void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
/// draw inset and update (xo, yo)-cache
- virtual void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
/// Provide the text for the button
void update(docstring const &, bool editable,
void setBox(Box b) { button_box_ = b; }
/// equivalent to dynamic_cast
- virtual RenderButton * asButton() { return this; }
+ RenderButton * asButton() override { return this; }
private:
/// The stored data.
public:
explicit RenderGraphic(Inset const *);
RenderGraphic(RenderGraphic const &, Inset const *);
- RenderBase * clone(Inset const *) const;
+ RenderBase * clone(Inset const *) const override;
/// compute the size of the object returned in dim
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
/// draw inset
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
/// Refresh the info about which file to display and how to display it.
void update(graphics::Params const & params);
void reload() const;
/// equivalent to dynamic_cast
- virtual RenderGraphic * asGraphic() { return this; }
+ RenderGraphic * asGraphic() override { return this; }
private:
/// Not implemented.
explicit RenderPreview(Inset const *);
RenderPreview(RenderPreview const &, Inset const *);
- RenderBase * clone(Inset const *) const;
+ RenderBase * clone(Inset const *) const override;
/// Compute the size of the object, returned in dim
- void metrics(MetricsInfo &, Dimension & dim) const;
+ void metrics(MetricsInfo &, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
/** Find the PreviewLoader and add a LaTeX snippet to it.
* Do not start the loading process.
getPreviewImage(Buffer const & buffer) const;
/// equivalent to dynamic_cast
- virtual RenderPreview * asPreview() { return this; }
+ RenderPreview * asPreview() override { return this; }
private:
/// Not implemented.
public:
explicit RenderMonitoredPreview(Inset const *);
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
void setAbsFile(support::FileName const & file);
///
signals2::connection connect(slot const & slot);
/// equivalent to dynamic_cast
- virtual RenderMonitoredPreview * asMonitoredPreview() { return this; }
+ RenderMonitoredPreview * asMonitoredPreview() override { return this; }
private:
/// This signal is emitted if the file is modified
///
explicit InsetMath(Buffer * buf = 0) : Inset(buf) {}
/// identification as math inset
- InsetMath * asInsetMath() { return this; }
+ InsetMath * asInsetMath() override { return this; }
/// identification as math inset
- InsetMath const * asInsetMath() const { return this; }
+ InsetMath const * asInsetMath() const override { return this; }
/// this is overridden in math text insets (i.e. mbox)
- bool inMathed() const { return true; }
+ bool inMathed() const override { return true; }
///
virtual docstring name() const;
/// this is overridden by specific insets
- virtual mode_type currentMode() const { return MATH_MODE; }
+ mode_type currentMode() const override { return MATH_MODE; }
// The possible marker types for math insets
enum marker_type { NO_MARKER, MARKER2, MARKER, BOX_MARKER };
virtual void octave(OctaveStream &) const;
/// plain text output in ucs4 encoding
- int plaintext(odocstringstream &, OutputParams const &, size_t) const;
+ int plaintext(odocstringstream &, OutputParams const &, size_t) const override;
/// dump content to stderr for debugging
- virtual void dump() const;
+ void dump() const override;
/// LyXInset stuff
virtual bool numberedType() const { return false; }
virtual void mutate(HullType /*newtype*/) {}
/// math stuff usually isn't allowed in text mode
- virtual bool allowedIn(mode_type mode) const { return mode == MATH_MODE; }
+ bool allowedIn(mode_type mode) const override { return mode == MATH_MODE; }
/// Italic correction as described in InsetMathScript.h
virtual int kerning(BufferView const *) const { return 0; }
///
- bool isInToc() const { return true; }
+ bool isInToc() const override { return true; }
///
- InsetCode lyxCode() const { return MATH_CODE; }
+ InsetCode lyxCode() const override { return MATH_CODE; }
///
uid_type id() const { return this; }
};
InsetMathAMSArray(Buffer * buf, docstring const &); ///
///
- int rowsep() const;
+ int rowsep() const override;
///
- int colsep() const;
+ int colsep() const override;
///
- int border() const;
+ int border() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pain, int x, int y) const;
+ void draw(PainterInfo & pain, int x, int y) const override;
///
- InsetMathAMSArray * asAMSArrayInset() { return this; }
+ InsetMathAMSArray * asAMSArrayInset() override { return this; }
///
- InsetMathAMSArray const * asAMSArrayInset() const { return this; }
+ InsetMathAMSArray const * asAMSArrayInset() const override { return this; }
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ FuncStatus & flag) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
// Don't need mathmlize or htmlize, as this is handled by
// InsetMathMatrix after being extracted in MathExtern.
- // void mathmlize(MathStream &) const;
- // void htmlize(HTMLStream &) const;
+ // void mathmlize(MathStream &) const override;
+ // void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_AMSARRAY_CODE; }
+ InsetCode lyxCode() const override { return MATH_AMSARRAY_CODE; }
///
char const * name_left() const;
///
char const * name_right() const;
///
- int leftMargin() const { return small() ? 3 : 6; } //override
+ int leftMargin() const override { return small() ? 3 : 6; }
///
- int rightMargin() const { return small() ? 3: 6; } //override
+ int rightMargin() const override { return small() ? 3: 6; }
///
- bool handlesMulticolumn() const { return true; } //override
+ bool handlesMulticolumn() const override { return true; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
bool small() const { return name_ == "smallmatrix"; }
///
/// convenience constructor from whitespace/newline separated data
InsetMathArray(Buffer * buf, docstring const &, docstring const & str);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- InsetMathArray * asArrayInset() { return this; }
+ InsetMathArray * asArrayInset() override { return this; }
///
- InsetMathArray const * asArrayInset() const { return this; }
+ InsetMathArray const * asArrayInset() const override { return this; }
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void normalize(NormalStream & os) const;
+ void normalize(NormalStream & os) const override;
///
- void maple(MapleStream & os) const;
+ void maple(MapleStream & os) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_ARRAY_CODE; }
+ InsetCode lyxCode() const override { return MATH_ARRAY_CODE; }
///
- int leftMargin() const { return 4; } //override
+ int leftMargin() const override { return 4; }
///
- int rightMargin() const { return 2; } //override
+ int rightMargin() const override { return 2; }
///
- bool handlesMulticolumn() const { return true; } //override
+ bool handlesMulticolumn() const override { return true; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
docstring name_;
};
///
InsetMathBig(docstring const & name, docstring const & delim);
///
- docstring name() const;
+ docstring name() const override;
/// class is different for l(eft), r(ight) and m(iddle)
- MathClass mathClass() const;
+ MathClass mathClass() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream & os) const;
+ void normalize(NormalStream & os) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
void infoize2(odocstream & os) const;
///
static bool isBigInsetDelim(docstring const &);
///
- InsetCode lyxCode() const { return MATH_BIG_CODE; }
+ InsetCode lyxCode() const override { return MATH_BIG_CODE; }
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
size_type size() const;
///
///
InsetMathBoldSymbol(Buffer * buf, Kind kind = AMS_BOLD);
///
- docstring name() const;
+ docstring name() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_BOLDSYMBOL_CODE; }
+ InsetCode lyxCode() const override { return MATH_BOLDSYMBOL_CODE; }
///
Kind kind_;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
explicit InsetMathBox(Buffer * buf, docstring const & name);
///
- mode_type currentMode() const { return TEXT_MODE; }
+ mode_type currentMode() const override { return TEXT_MODE; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void mathmlize(MathStream & ms) const;
+ void mathmlize(MathStream & ms) const override;
///
- void htmlize(HtmlStream & ms) const;
+ void htmlize(HtmlStream & ms) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_BOX_CODE; }
+ InsetCode lyxCode() const override { return MATH_BOX_CODE; }
private:
- Inset * clone() const { return new InsetMathBox(*this); }
+ Inset * clone() const override { return new InsetMathBox(*this); }
///
docstring name_;
};
///
explicit InsetMathFBox(Buffer * buf);
///
- mode_type currentMode() const { return TEXT_MODE; }
+ mode_type currentMode() const override { return TEXT_MODE; }
///
- marker_type marker(BufferView const *) const { return NO_MARKER; }
+ marker_type marker(BufferView const *) const override { return NO_MARKER; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void mathmlize(MathStream & ms) const;
+ void mathmlize(MathStream & ms) const override;
///
- void htmlize(HtmlStream & ms) const;
+ void htmlize(HtmlStream & ms) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
private:
///
- Inset * clone() const { return new InsetMathFBox(*this); }
+ Inset * clone() const override { return new InsetMathFBox(*this); }
};
///
InsetMathMakebox(Buffer * buf, bool framebox);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void mathmlize(MathStream & ms) const;
+ void mathmlize(MathStream & ms) const override;
///
- void htmlize(HtmlStream & ms) const;
+ void htmlize(HtmlStream & ms) const override;
///
- mode_type currentMode() const { return TEXT_MODE; }
+ mode_type currentMode() const override { return TEXT_MODE; }
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
private:
- Inset * clone() const { return new InsetMathMakebox(*this); }
+ Inset * clone() const override { return new InsetMathMakebox(*this); }
///
bool framebox_;
};
///
explicit InsetMathBoxed(Buffer * buf);
///
- marker_type marker(BufferView const *) const { return NO_MARKER; }
+ marker_type marker(BufferView const *) const override { return NO_MARKER; }
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void mathmlize(MathStream & ms) const;
+ void mathmlize(MathStream & ms) const override;
///
- void htmlize(HtmlStream & ms) const;
+ void htmlize(HtmlStream & ms) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
private:
- Inset * clone() const { return new InsetMathBoxed(*this); }
+ Inset * clone() const override { return new InsetMathBoxed(*this); }
};
///
explicit InsetMathBrace(MathData const & ar);
/// identifies brace insets
- InsetMathBrace * asBraceInset() { return this; }
+ InsetMathBrace * asBraceInset() override { return this; }
/// identifies brace insets
- InsetMathBrace const * asBraceInset() const { return this; }
+ InsetMathBrace const * asBraceInset() const override { return this; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_BRACE_CODE; }
+ InsetCode lyxCode() const override { return MATH_BRACE_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
explicit InsetMathCancel(Buffer * buf, Kind);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_CANCEL_CODE; }
+ InsetCode lyxCode() const override { return MATH_CANCEL_CODE; }
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
private:
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
Kind kind_;
};
///
bool idxUpDown(Cursor & cur, bool up) const;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_CANCELTO_CODE; }
+ InsetCode lyxCode() const override { return MATH_CANCELTO_CODE; }
/// Nothing for now
- void mathmlize(MathStream &) const {}
+ void mathmlize(MathStream &) const override {}
/// Nothing for HTML
- void htmlize(HtmlStream &) const {}
+ void htmlize(HtmlStream &) const override {}
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
private:
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
explicit InsetMathCases(Buffer * buf, row_type rows = 1u);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ FuncStatus & flag) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_CASES_CODE; }
+ InsetCode lyxCode() const override { return MATH_CASES_CODE; }
///
- int displayColSpace(col_type) const;
+ int displayColSpace(col_type) const override;
///
- int leftMargin() const { return 8; } //override
+ int leftMargin() const override { return 8; }
///
- int rightMargin() const { return 0; } //override
+ int rightMargin() const override { return 0; }
/// see e.g. https://tex.stackexchange.com/a/133283/87201
- bool handlesMulticolumn() const { return true; } //override
+ bool handlesMulticolumn() const override { return true; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
explicit InsetMathChar(char_type c);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter &, int x, int y) const;
+ void drawT(TextPainter &, int x, int y) const override;
///
- int kerning(BufferView const *) const { return kerning_; }
+ int kerning(BufferView const *) const override { return kerning_; }
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void octave(OctaveStream & os) const;
+ void octave(OctaveStream & os) const override;
///
- void mathmlize(MathStream & ms) const;
+ void mathmlize(MathStream & ms) const override;
///
- void htmlize(HtmlStream & ms) const;
+ void htmlize(HtmlStream & ms) const override;
/// identifies Charinsets
- InsetMathChar const * asCharInset() const { return this; }
+ InsetMathChar const * asCharInset() const override { return this; }
///
- char_type getChar() const { return char_; }
+ char_type getChar() const override { return char_; }
///
- MathClass mathClass() const;
+ MathClass mathClass() const override;
///
- InsetCode lyxCode() const { return MATH_CHAR_CODE; }
+ InsetCode lyxCode() const override { return MATH_CHAR_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// the character
char_type const char_;
/// cached kerning for superscript
///
InsetMathClass(Buffer * buf, MathClass);
///
- docstring name() const;
+ docstring name() const override;
///
- MathClass mathClass() const { return math_class_; }
+ MathClass mathClass() const override { return math_class_; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_CLASS_CODE; }
+ InsetCode lyxCode() const override { return MATH_CLASS_CODE; }
///
InsetMathClass * asClassInset() { return this; }
///
- InsetMathClass const * asClassInset() const { return this; }
+ InsetMathClass const * asClassInset() const override { return this; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
MathClass math_class_;
};
/// Create a color inset from LaTeX color name
InsetMathColor(Buffer * buf, bool oldstyle, docstring const & color);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
/// we write extra braces in any case...
/// FIXME Why? Are they necessary if oldstyle_ == false?
- bool extraBraces() const { return true; }
+ bool extraBraces() const override { return true; }
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
/// we need package color
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// FIXME XHTML For now, we do nothing with color.
- void mathmlize(MathStream &) const {}
+ void mathmlize(MathStream &) const override {}
/// FIXME XHTML For now, we do nothing with color.
- void htmlize(HtmlStream &) const {}
+ void htmlize(HtmlStream &) const override {}
///
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_COLOR_CODE; }
+ InsetCode lyxCode() const override { return MATH_COLOR_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
bool oldstyle_;
/// Our color. Only valid LaTeX colors are allowed.
explicit InsetMathCommand(Buffer * buf, docstring const & name,
bool needs_math_mode = true);
///
- marker_type marker(BufferView const *) const { return NO_MARKER; }
+ marker_type marker(BufferView const *) const override { return NO_MARKER; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- Inset * editXY(Cursor &, int, int);
+ Inset * editXY(Cursor &, int, int) override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
//
// void infoize(odocstream & os) const;
///
///
docstring const & commandname() const { return name_; }
///
- bool isActive() const { return false; }
+ bool isActive() const override { return false; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
docstring name_;
///
InsetMathComment(Buffer * buf, docstring const &);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const {}
+ void mathematica(MathematicaStream &) const override {}
///
- void octave(OctaveStream &) const {}
+ void octave(OctaveStream &) const override {}
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_COMMENT_CODE; }
+ InsetCode lyxCode() const override { return MATH_COMMENT_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
} // namespace lyx
///
explicit InsetMathDecoration(Buffer * buf, latexkeys const * key);
///
- mode_type currentMode() const;
+ mode_type currentMode() const override;
///
void draw(PainterInfo &, int x, int y) const;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void normalize(NormalStream & os) const;
+ void normalize(NormalStream & os) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- MathClass mathClass() const;
+ MathClass mathClass() const override;
/// The default limits value
- Limits defaultLimits() const { return allowsLimitsChange() ? LIMITS : NO_LIMITS; }
+ Limits defaultLimits() const override { return allowsLimitsChange() ? LIMITS : NO_LIMITS; }
/// whether the inset has limit-like sub/superscript
- Limits limits() const { return limits_; }
+ Limits limits() const override { return limits_; }
/// sets types of sub/superscripts
- void limits(Limits lim) { limits_ = lim; }
+ void limits(Limits lim) override { limits_ = lim; }
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_DECORATION_CODE; }
+ InsetCode lyxCode() const override { return MATH_DECORATION_CODE; }
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
bool upper() const;
///
InsetMathDelim(Buffer * buf, docstring const & left, docstring const & right,
MathData const &);
///
- InsetMathDelim * asDelimInset() { return this; }
+ InsetMathDelim * asDelimInset() override { return this; }
///
- InsetMathDelim const * asDelimInset() const { return this; }
+ InsetMathDelim const * asDelimInset() const override { return this; }
///
- MathClass mathClass() const { return MC_INNER; }
+ MathClass mathClass() const override { return MC_INNER; }
/// is it (...)?
bool isParenthesis() const;
/// is it [...]?
/// is it |...|?
bool isAbs() const;
///
- mode_type currentMode() const { return MATH_MODE; }
+ mode_type currentMode() const override { return MATH_MODE; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
void draw(PainterInfo &, int x, int y) const;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maxima(MaximaStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- InsetCode lyxCode() const { return MATH_DELIM_CODE; }
+ InsetCode lyxCode() const override { return MATH_DELIM_CODE; }
///
docstring left_;
///
docstring right_;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
mutable int dw_;
};
///
explicit InsetMathDiagram(Buffer * buf);
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
InsetMathDiagram const * asDiagramInset() const { return this; }
///
- virtual int colsep() const;
+ int colsep() const override;
///
- virtual int rowsep() const;
+ int rowsep() const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_DIAGRAM_CODE; }
+ InsetCode lyxCode() const override { return MATH_DIAGRAM_CODE; }
private:
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
void addDer(MathData const & der);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maxima(MaximaStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- InsetCode lyxCode() const { return MATH_DIFF_CODE; }
+ InsetCode lyxCode() const override { return MATH_DIFF_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
explicit InsetMathDots(latexkeys const * l);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- docstring name() const;
+ docstring name() const override;
/// request "external features"
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_DOTS_CODE; }
+ InsetCode lyxCode() const override { return MATH_DOTS_CODE; }
///
- void mathmlize(MathStream & ms) const;
+ void mathmlize(MathStream & ms) const override;
///
- void htmlize(HtmlStream & os) const;
+ void htmlize(HtmlStream & os) const override;
protected:
/// cache for the thing's height
mutable int dh_;
///
latexkeys const * key_;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
} // namespace lyx
public:
explicit InsetMathEnsureMath(Buffer * buf);
///
- mode_type currentMode() const { return MATH_MODE; }
+ mode_type currentMode() const override { return MATH_MODE; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_ENSUREMATH_CODE; }
+ InsetCode lyxCode() const override { return MATH_ENSUREMATH_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
InsetMathEnv(Buffer * buf, docstring const & name_);
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_ENV_CODE; }
+ InsetCode lyxCode() const override { return MATH_ENV_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// name of that environment
docstring name_;
};
///
InsetMathExFunc(Buffer * buf, docstring const & name, MathData const & ar);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- docstring name() const;
+ docstring name() const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maxima(MaximaStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- InsetCode lyxCode() const { return MATH_EXFUNC_CODE; }
+ InsetCode lyxCode() const override { return MATH_EXFUNC_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
docstring const name_;
};
///
void symbol(docstring const &);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
void draw(PainterInfo &, int x, int y) const;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maxima(MaximaStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- InsetCode lyxCode() const { return MATH_EXINT_CODE; }
+ InsetCode lyxCode() const override { return MATH_EXINT_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
bool hasScripts() const;
///
explicit InsetMathFont(Buffer * buf, latexkeys const * key);
///
- InsetMathFont * asFontInset() { return this; }
+ InsetMathFont * asFontInset() override { return this; }
///
- InsetMathFont const * asFontInset() const { return this; }
+ InsetMathFont const * asFontInset() const override { return this; }
/// are we in math mode, text mode, or unsure?
- mode_type currentMode() const;
+ mode_type currentMode() const override;
/// do we allow changing mode during latex export?
- bool lockedMode() const;
+ bool lockedMode() const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- docstring name() const;
+ docstring name() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- int kerning(BufferView const * bv) const { return cell(0).kerning(bv); }
+ int kerning(BufferView const * bv) const override { return cell(0).kerning(bv); }
///
- InsetCode lyxCode() const { return MATH_FONT_CODE; }
+ InsetCode lyxCode() const override { return MATH_FONT_CODE; }
private:
std::string font() const;
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// the font to be used on screen
latexkeys const * key_;
};
///
explicit InsetMathFontOld(Buffer * buf, latexkeys const * key);
/// we inherit the mode
- mode_type currentMode() const { return current_mode_; }
+ mode_type currentMode() const override { return current_mode_; }
/// we write extra braces in any case...
- bool extraBraces() const { return true; }
+ bool extraBraces() const override { return true; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- int kerning(BufferView const * bv) const { return cell(0).kerning(bv); }
+ int kerning(BufferView const * bv) const override { return cell(0).kerning(bv); }
///
- InsetCode lyxCode() const { return MATH_FONTOLD_CODE; }
+ InsetCode lyxCode() const override { return MATH_FONTOLD_CODE; }
private:
std::string font() const;
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// the font to be used on screen
latexkeys const * key_;
/// the inherited mode
///
InsetMathFracBase(Buffer * buf, idx_type ncells = 2);
///
- marker_type marker(BufferView const *) const { return MARKER2; }
+ marker_type marker(BufferView const *) const override { return MARKER2; }
///
- bool idxUpDown(Cursor &, bool up) const;
+ bool idxUpDown(Cursor &, bool up) const override;
///
- bool idxBackward(Cursor &) const { return false; }
+ bool idxBackward(Cursor &) const override { return false; }
///
- bool idxForward(Cursor &) const { return false; }
+ bool idxForward(Cursor &) const override { return false; }
///
- InsetMathFracBase * asFracBaseInset() { return this; }
+ InsetMathFracBase * asFracBaseInset() override { return this; }
///
- InsetMathFracBase const * asFracBaseInset() const { return this; }
+ InsetMathFracBase const * asFracBaseInset() const override { return this; }
};
///
explicit InsetMathFrac(Buffer * buf, Kind kind = FRAC, idx_type ncells = 2);
///
- bool idxForward(Cursor &) const;
+ bool idxForward(Cursor &) const override;
///
- bool idxBackward(Cursor &) const;
+ bool idxBackward(Cursor &) const override;
///
- MathClass mathClass() const;
+ MathClass mathClass() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter &, int x, int y) const;
+ void drawT(TextPainter &, int x, int y) const override;
/// identifies FracInsets
- InsetMathFrac * asFracInset();
+ InsetMathFrac * asFracInset() override;
/// identifies FracInsets
- InsetMathFrac const * asFracInset() const;
+ InsetMathFrac const * asFracInset() const override;
///
- docstring name() const;
+ docstring name() const override;
///
- bool extraBraces() const;
+ bool extraBraces() const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
private:
/// vertical displacement
int dy(FontInfo & fi) const;
///
- Inset * clone() const;
+ Inset * clone() const override;
///
Kind kind_;
};
///
explicit InsetMathBinom(Buffer * buf, Kind kind = BINOM);
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
/// Generalized fractions are of inner class (see The TeXbook, p.292)
- MathClass mathClass() const { return MC_INNER; }
+ MathClass mathClass() const override { return MC_INNER; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- bool extraBraces() const;
+ bool extraBraces() const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_FRAC_CODE; }
+ InsetCode lyxCode() const override { return MATH_FRAC_CODE; }
private:
- Inset * clone() const;
+ Inset * clone() const override;
///
int dw(int height) const;
///
InsetMathGrid(Buffer * buf, col_type m, row_type n, char valign,
docstring const & halign);
///
- marker_type marker(BufferView const *) const { return MARKER2; };
+ marker_type marker(BufferView const *) const override { return MARKER2; };
///
- void metrics(MetricsInfo & mi, Dimension &) const;
+ void metrics(MetricsInfo & mi, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
///
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
/// extract number of columns from alignment string
static col_type guessColumns(docstring const & halign);
/// accepts some LaTeX column codes: p,m,!,@,M,<,>
///
CellInfo & cellinfo(idx_type idx) { return cellinfo_[idx]; }
/// identifies GridInset
- InsetMathGrid * asGridInset() { return this; }
+ InsetMathGrid * asGridInset() override { return this; }
/// identifies GridInset
- InsetMathGrid const * asGridInset() const { return this; }
+ InsetMathGrid const * asGridInset() const override { return this; }
//
- bool isTable() const { return true; }
+ bool isTable() const override { return true; }
///
- col_type ncols() const;
+ col_type ncols() const override;
///
- row_type nrows() const;
+ row_type nrows() const override;
///
- col_type col(idx_type idx) const;
+ col_type col(idx_type idx) const override;
///
- row_type row(idx_type idx) const;
+ row_type row(idx_type idx) const override;
/// number of columns of cell \p idx
col_type ncellcols(idx_type idx) const;
///
- bool idxUpDown(Cursor &, bool up) const;
+ bool idxUpDown(Cursor &, bool up) const override;
///
- bool idxBackward(Cursor &) const;
+ bool idxBackward(Cursor &) const override;
///
- bool idxForward(Cursor &) const;
+ bool idxForward(Cursor &) const override;
//
- idx_type firstIdx() const;
+ idx_type firstIdx() const override;
//
- idx_type lastIdx() const;
+ idx_type lastIdx() const override;
///
- bool idxDelete(idx_type & idx);
+ bool idxDelete(idx_type & idx) override;
/// pulls cell after pressing erase
- void idxGlue(idx_type idx);
+ void idxGlue(idx_type idx) override;
/// add a row, one row down
virtual void addRow(row_type r);
/// swap two columns
virtual void swapCol(col_type c);
///
- idx_type index(row_type r, col_type c) const;
+ idx_type index(row_type r, col_type c) const override;
///
- bool idxBetween(idx_type idx, idx_type from, idx_type to) const;
+ bool idxBetween(idx_type idx, idx_type from, idx_type to) const override;
///
virtual int defaultColSpace(col_type) { return 0; }
///
///
void setDefaults();
///
- virtual bool interpretString(Cursor & cur, docstring const & str);
+ bool interpretString(Cursor & cur, docstring const & str) override;
///
virtual int colsep() const;
virtual bool handlesMulticolumn() const { return false; }
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
void write(WriteStream & os,
row_type beg_row, col_type beg_col,
row_type end_row, col_type end_col) const;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- //void maple(MapleStream &) const;
+ //void maple(MapleStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
void htmlize(HtmlStream &, std::string attrib) const;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- //void octave(OctaveStream &) const;
+ //void octave(OctaveStream &) const override;
protected:
///
- void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ FuncStatus & flag) const override;
/// returns x offset of cell compared to inset
int cellXOffset(BufferView const &, idx_type idx) const;
/// returns y offset of cell compared to inset
int hLineVOffset(BufferView const &, row_type row, unsigned int line) const;
///
- InsetCode lyxCode() const { return MATH_GRID_CODE; }
+ InsetCode lyxCode() const override { return MATH_GRID_CODE; }
private:
/// row info.
///
char v_align_; // FIXME: add approp. type
///
- Inset * clone() const;
+ Inset * clone() const override;
};
///
virtual ~InsetMathHull();
///
- void setBuffer(Buffer &);
+ void setBuffer(Buffer &) override;
///
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
///
InsetMathHull & operator=(InsetMathHull const &);
///
- mode_type currentMode() const;
+ mode_type currentMode() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void drawBackground(PainterInfo & pi, int x, int y) const;
+ void drawBackground(PainterInfo & pi, int x, int y) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter &, int x, int y) const;
+ void drawT(TextPainter &, int x, int y) const override;
///
docstring label(row_type row) const;
///
///
std::vector<InsetLabel *> const & getLabels() { return label_; }
///
- ColorCode backgroundColor(PainterInfo const &) const;
+ ColorCode backgroundColor(PainterInfo const &) const override;
///
void numbered(row_type row, bool num) { numbered(row, num ? NUMBER : NONUMBER); }
///
///
bool numbered(row_type row) const;
///
- bool numberedType() const;
+ bool numberedType() const override;
///
bool ams() const;
///
bool outerDisplay() const;
///
- OutputParams::CtObject CtObject(OutputParams const &) const;
+ OutputParams::CtObject CtObject(OutputParams const &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
/// identifies HullInset
- InsetMathHull const * asHullInset() const { return this; }
+ InsetMathHull const * asHullInset() const override { return this; }
/// identifies HullInset
- InsetMathHull * asHullInset() { return this; }
+ InsetMathHull * asHullInset() override { return this; }
/// add a row
- void addRow(row_type row);
+ void addRow(row_type row) override;
/// delete a row
- void delRow(row_type row);
+ void delRow(row_type row) override;
/// swap two rows
- void swapRow(row_type row);
+ void swapRow(row_type row) override;
/// add a column
- void addCol(col_type col);
+ void addCol(col_type col) override;
/// delete a column
- void delCol(col_type col);
+ void delCol(col_type col) override;
/// get type
- HullType getType() const;
+ HullType getType() const override;
/// is mutation implemented for this type?
static bool isMutable(HullType type);
/// change type
- void mutate(HullType newtype);
+ void mutate(HullType newtype) override;
///
- int defaultColSpace(col_type col);
+ int defaultColSpace(col_type col) override;
///
- int displayColSpace(col_type col) const;
+ int displayColSpace(col_type col) const override;
///
- char defaultColAlign(col_type col);
+ char defaultColAlign(col_type col) override;
///
- char displayColAlign(idx_type idx) const;
+ char displayColAlign(idx_type idx) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
void header_write(WriteStream &) const;
///
void footer_write(WriteStream &) const;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
bool readQuiet(Lexer & lex);
///
int plaintext(odocstringstream &, OutputParams const &,
- size_t max_length = INT_MAX) const;
+ size_t max_length = INT_MAX) const override;
///
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
///
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
void mathAsLatex(WriteStream &) const;
///
- void toString(odocstream &) const;
+ void toString(odocstream &) const override;
///
- void forOutliner(docstring &, size_t const, bool const) const;
+ void forOutliner(docstring &, size_t const, bool const) const override;
/// get notification when the cursor leaves this inset
- bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
+ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
///
- //bool insetAllowed(InsetCode code) const;
+ //bool insetAllowed(InsetCode code) const override;
///
void addPreview(DocIterator const & inset_pos,
- graphics::PreviewLoader &) const;
+ graphics::PreviewLoader &) const override;
/// Recreates the preview if preview is enabled.
void reloadPreview(DocIterator const & pos) const;
///
void usedMacros(MathData const & md, DocIterator const & pos,
MacroNameSet & macros, MacroNameSet & defs) const;
///
- void initUnicodeMath() const;
+ void initUnicodeMath() const override;
/// Force inset into LTR environment if surroundings are RTL
- virtual bool forceLTR(OutputParams const &) const { return true; }
+ bool forceLTR(OutputParams const &) const override { return true; }
///
void recordLocation(DocIterator const & di);
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- InsetCode lyxCode() const { return MATH_HULL_CODE; }
+ InsetCode lyxCode() const override { return MATH_HULL_CODE; }
///
- bool canPaintChange(BufferView const &) const;
+ bool canPaintChange(BufferView const &) const override;
///
- bool confirmDeletion() const { return nargs() != 1 || !cell(0).empty(); }
+ bool confirmDeletion() const override { return nargs() != 1 || !cell(0).empty(); }
protected:
InsetMathHull(InsetMathHull const &);
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
/// do we want to handle this event?
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & status) const;
+ FuncStatus & status) const override;
/// override to set to 0 for inline equation
- int leftMargin() const;
+ int leftMargin() const override;
/// override to set to 0 for inline equation
- int rightMargin() const;
+ int rightMargin() const override;
/// override to set to 0 for inline equation
- int border() const;
+ int border() const override;
///
docstring eolString(row_type row, bool fragile, bool latex,
- bool last_eoln) const;
+ bool last_eoln) const override;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// Prepare the preview if preview is enabled.
/// \param forexport: whether this is intended for export
/// If so, we ignore LyXRC and wait for the image to be generated.
/// are any of the equations numbered?
bool haveNumbers() const;
/// draw four angular markers
- virtual void drawMarkers(PainterInfo & pi, int x, int y) const;
+ void drawMarkers(PainterInfo & pi, int x, int y) const override;
/// "none", "simple", "display", "eqnarray",...
HullType type_;
///
virtual void mutateToText();
///
- bool editable() const { return true; }
+ bool editable() const override { return true; }
///
void edit(Cursor & cur, bool front,
- EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
+ EntryDirection entry_from = ENTRY_DIRECTION_IGNORE) override;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
///
- RowFlags rowFlags() const;
+ RowFlags rowFlags() const override;
/// helper function
bool display() const { return rowFlags() & Display; }
///
- int indent(BufferView const &) const;
+ int indent(BufferView const &) const override;
protected:
///
///
explicit InsetMathKern(docstring const & wid);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void mathmlize(MathStream &) const { }
+ void mathmlize(MathStream &) const override { }
///
- void htmlize(HtmlStream &) const { }
+ void htmlize(HtmlStream &) const override { }
///
void infoize2(odocstream & os) const;
///
- InsetCode lyxCode() const { return MATH_KERN_CODE; }
+ InsetCode lyxCode() const override { return MATH_KERN_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// width in em
Length wid_;
};
///
explicit InsetMathLefteqn(Buffer * buf);
///
- docstring name() const;
+ docstring name() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_LEFTEQN_CODE; }
+ InsetCode lyxCode() const override { return MATH_LEFTEQN_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
InsetMathLim(Buffer * buf, MathData const & f, MathData const & x,
MathData const & x0);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maxima(MaximaStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- InsetCode lyxCode() const { return MATH_LIM_CODE; }
+ InsetCode lyxCode() const override { return MATH_LIM_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
asArray(def, def_);
}
///
- void setBuffer(Buffer & buffer)
+ void setBuffer(Buffer & buffer) override
{
Inset::setBuffer(buffer);
def_.setBuffer(buffer);
///
InsetMathMacro const * owner() { return mathMacro_; }
///
- marker_type marker(BufferView const *) const { return NO_MARKER; }
+ marker_type marker(BufferView const *) const override { return NO_MARKER; }
///
- InsetCode lyxCode() const { return ARGUMENT_PROXY_CODE; }
+ InsetCode lyxCode() const override { return ARGUMENT_PROXY_CODE; }
/// The math data to use for display
MathData const & displayCell(BufferView const * bv) const
{
return use_def_arg ? def_ : mathMacro_->cell(idx_);
}
///
- bool addToMathRow(MathRow & mrow, MetricsInfo & mi) const
+ bool addToMathRow(MathRow & mrow, MetricsInfo & mi) const override
{
// macro arguments are in macros
LATTEST(mathMacro_->nesting() > 0);
return has_contents;
}
///
- void beforeMetrics() const
+ void beforeMetrics() const override
{
mathMacro_->macro()->unlock();
}
///
- void afterMetrics() const
+ void afterMetrics() const override
{
mathMacro_->macro()->lock();
}
///
- void beforeDraw(PainterInfo const & pi) const
+ void beforeDraw(PainterInfo const & pi) const override
{
// if the macro is being edited, then the painter is in
// monochrome mode.
pi.pain.leaveMonochromeMode();
}
///
- void afterDraw(PainterInfo const & pi) const
+ void afterDraw(PainterInfo const & pi) const override
{
if (mathMacro_->editMetrics(pi.base.bv))
pi.pain.enterMonochromeMode(Color_mathmacroblend);
}
///
- void metrics(MetricsInfo &, Dimension &) const {
+ void metrics(MetricsInfo &, Dimension &) const override {
// This should never be invoked, since InsetArgumentProxy insets are linearized
LATTEST(false);
}
///
- void draw(PainterInfo &, int, int) const {
+ void draw(PainterInfo &, int, int) const override {
// This should never be invoked, since InsetArgumentProxy insets are linearized
LATTEST(false);
}
///
- int kerning(BufferView const * bv) const
+ int kerning(BufferView const * bv) const override
{
return displayCell(bv).kerning(bv);
}
// write(), normalize(), infoize() and infoize2() are not needed since
// InsetMathMacro uses the definition and not the expanded cells.
///
- void maple(MapleStream & ms) const { ms << mathMacro_->cell(idx_); }
+ void maple(MapleStream & ms) const override { ms << mathMacro_->cell(idx_); }
///
- void maxima(MaximaStream & ms) const { ms << mathMacro_->cell(idx_); }
+ void maxima(MaximaStream & ms) const override { ms << mathMacro_->cell(idx_); }
///
- void mathematica(MathematicaStream & ms) const { ms << mathMacro_->cell(idx_); }
+ void mathematica(MathematicaStream & ms) const override { ms << mathMacro_->cell(idx_); }
///
- void mathmlize(MathStream & ms) const { ms << mathMacro_->cell(idx_); }
+ void mathmlize(MathStream & ms) const override { ms << mathMacro_->cell(idx_); }
///
- void htmlize(HtmlStream & ms) const { ms << mathMacro_->cell(idx_); }
+ void htmlize(HtmlStream & ms) const override { ms << mathMacro_->cell(idx_); }
///
- void octave(OctaveStream & os) const { os << mathMacro_->cell(idx_); }
+ void octave(OctaveStream & os) const override { os << mathMacro_->cell(idx_); }
///
- MathClass mathClass() const
+ MathClass mathClass() const override
{
return MC_UNKNOWN;
// This can be refined once the pointer issues are fixed. I did not
private:
///
- Inset * clone() const
+ Inset * clone() const override
{
return new InsetArgumentProxy(*this);
}
///
~InsetMathMacro();
///
- virtual InsetMathMacro * asMacro() { return this; }
+ InsetMathMacro * asMacro() override { return this; }
///
- virtual InsetMathMacro const * asMacro() const { return this; }
+ InsetMathMacro const * asMacro() const override { return this; }
///
- marker_type marker(BufferView const *) const;
+ marker_type marker(BufferView const *) const override;
/// If the macro is in normal edit mode, dissolve its contents in
/// the row. Otherwise, just insert the inset.
- bool addToMathRow(MathRow &, MetricsInfo & mi) const;
+ bool addToMathRow(MathRow &, MetricsInfo & mi) const override;
/// Whether the inset allows \(no)limits
bool allowsLimitsChange() const;
/// The default limits value
- Limits defaultLimits() const;
+ Limits defaultLimits() const override;
/// whether the inset has limit-like sub/superscript
- Limits limits() const;
+ Limits limits() const override;
/// sets types of sub/superscripts
- void limits(Limits lim);
+ void limits(Limits lim) override;
///
- void beforeMetrics() const;
+ void beforeMetrics() const override;
///
- void afterMetrics() const;
+ void afterMetrics() const override;
///
- void beforeDraw(PainterInfo const &) const;
+ void beforeDraw(PainterInfo const &) const override;
///
- void afterDraw(PainterInfo const &) const;
+ void afterDraw(PainterInfo const &) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
/// was the macro in edit mode when computing metrics?
bool editMetrics(BufferView const * bv) const;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- int kerning(BufferView const * bv) const;
+ int kerning(BufferView const * bv) const override;
/// get cursor position
void cursorPos(BufferView const & bv, CursorSlice const & sl,
- bool boundary, int & x, int & y) const;
+ bool boundary, int & x, int & y) const override;
///
- void edit(Cursor & cur, bool front, EntryDirection entry_from);
+ void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
/// target pos when we enter the inset while moving forward
- bool idxFirst(Cursor &) const;
+ bool idxFirst(Cursor &) const override;
/// target pos when we enter the inset while moving backwards
- bool idxLast(Cursor &) const;
+ bool idxLast(Cursor &) const override;
///
- virtual bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
+ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
/// Remove cell (starting from 0)
void removeArgument(pos_type pos);
void insertArgument(pos_type pos);
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- mode_type currentMode() const;
+ mode_type currentMode() const override;
/// Assumes that macros are up-to-date
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream & os) const;
+ void normalize(NormalStream & os) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maxima(MaximaStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- void infoize(odocstream &) const;
+ void infoize(odocstream &) const override;
///
- void infoize2(odocstream &) const;
+ void infoize2(odocstream &) const override;
/// fold the macro in the next metrics call
void fold(Cursor & cur);
DisplayMode displayMode() const;
///
- bool extraBraces() const;
+ bool extraBraces() const override;
///
- docstring name() const;
+ docstring name() const override;
/// FIXME: Often dangling.
MacroData const * macro() const;
///
/// Return the maximal number of arguments the macro is greedy for.
size_t appetite() const;
///
- InsetCode lyxCode() const { return MATH_MACRO_CODE; }
+ InsetCode lyxCode() const override { return MATH_MACRO_CODE; }
/// This is not used for display; however whether it is mathrel determines
/// how to split equations intelligently.
- MathClass mathClass() const; //override
+ MathClass mathClass() const override;
/// Override so as to set Buffer for defnition_ member, too.
- void setBuffer(Buffer &);
+ void setBuffer(Buffer &) override;
protected:
friend class MathData;
/// creation, in which case we fall back to the global macro with this name.
MacroData const * macroBackup() const;
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
bool editMode(BufferView const * bv) const;
public:
///
- bool completionSupported(Cursor const &) const;
+ bool completionSupported(Cursor const &) const override;
///
- bool inlineCompletionSupported(Cursor const & cur) const;
+ bool inlineCompletionSupported(Cursor const & cur) const override;
///
- bool automaticInlineCompletion() const;
+ bool automaticInlineCompletion() const override;
///
- bool automaticPopupCompletion() const;
+ bool automaticPopupCompletion() const override;
///
- CompletionList const * createCompletionList(Cursor const & cur) const;
+ CompletionList const * createCompletionList(Cursor const & cur) const override;
///
- docstring completionPrefix(Cursor const & cur) const;
+ docstring completionPrefix(Cursor const & cur) const override;
///
- bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
+ bool insertCompletion(Cursor & cur, docstring const & s, bool finished) override;
///
- void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
+ void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const override;
};
} // namespace lyx
public:
explicit InsetMathHash(docstring const & str = docstring()) : str_('#' + str) {};
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
void draw(PainterInfo &, int x, int y) const;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
private:
- Inset * clone() const;
+ Inset * clone() const override;
protected:
///
/// Assumes 0 < n <= 9
void setNumber(int n);
///
- InsetCode lyxCode() const { return MATH_MACROARG_CODE; }
+ InsetCode lyxCode() const override { return MATH_MACROARG_CODE; }
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
private:
- Inset * clone() const;
+ Inset * clone() const override;
/// A number between 1 and 9
int number_;
};
InsetLabelBox(Buffer * buf, docstring label, InsetMathMacroTemplate const & parent,
bool frame = false);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
protected:
///
InsetMathMacroTemplate const & parent_;
///
- Inset * clone() const;
+ Inset * clone() const override;
///
docstring const label_;
///
InsetMathMacroTemplate const & parent);
///
- marker_type marker(BufferView const *) const;
+ marker_type marker(BufferView const *) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
protected:
///
- Inset * clone() const;
+ Inset * clone() const override;
};
///
explicit InsetMathWrapper(MathData const * value) : value_(value) {}
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
private:
///
- Inset * clone() const;
+ Inset * clone() const override;
///
MathData const * value_;
};
///
InsetColoredCell(Buffer * buf, ColorCode blend, MathAtom const & atom);
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
protected:
///
- Inset * clone() const;
+ Inset * clone() const override;
///
ColorCode blend_;
};
///
InsetNameWrapper(MathData const * value, InsetMathMacroTemplate const & parent);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
private:
///
InsetMathMacroTemplate const & parent_;
///
- Inset * clone() const;
+ Inset * clone() const override;
};
/// parses from string, returns false if failed
bool fromString (const docstring & str);
///
- bool editable() const { return true; }
+ bool editable() const override { return true; }
///
- void edit(Cursor & cur, bool front, EntryDirection entry_from);
+ void edit(Cursor & cur, bool front, EntryDirection entry_from) override;
///
- bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
+ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
///
- void read(Lexer & lex);
+ void read(Lexer & lex) override;
///
- void write(std::ostream & os) const;
+ void write(std::ostream & os) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// Output LaTeX code, but assume that the macro is not defined yet
/// if overwriteRedefinition is true
int write(WriteStream & os, bool overwriteRedefinition) const;
/// Nothing happens. This is simply to suppress the default output.
- docstring xhtml(XMLStream &, OutputParams const &) const;
+ docstring xhtml(XMLStream &, OutputParams const &) const override;
///
- int plaintext(odocstringstream &, OutputParams const &, size_t) const;
+ int plaintext(odocstringstream &, OutputParams const &, size_t) const override;
///
- bool inheritFont() const { return false; }
+ bool inheritFont() const override { return false; }
///
- docstring name() const;
+ docstring name() const override;
///
void getDefaults(std::vector<docstring> & defaults) const;
///
bool fixNameAndCheckIfValid();
/// request "external features"
- virtual void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
/// decide whether its a redefinition
void updateToContext(MacroContext const & mc);
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
/// identifies macro templates
- InsetMathMacroTemplate * asMacroTemplate() { return this; }
+ InsetMathMacroTemplate * asMacroTemplate() override { return this; }
/// identifies macro templates
- InsetMathMacroTemplate const * asMacroTemplate() const { return this; }
+ InsetMathMacroTemplate const * asMacroTemplate() const override { return this; }
///
- InsetCode lyxCode() const { return MATHMACRO_CODE; }
+ InsetCode lyxCode() const override { return MATHMACRO_CODE; }
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
void addToToc(DocIterator const & di, bool output_active,
- UpdateType utype, TocBackend & backend) const;
+ UpdateType utype, TocBackend & backend) const override;
protected:
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
/// do we want to handle this event?
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & status) const;
+ FuncStatus & status) const override;
private:
friend class InsetLabelBox;
friend class InsetDisplayLabelBox;
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// remove #n with from<=n<=to
void removeArguments(Cursor & cur, DocIterator const & inset_pos,
explicit InsetMathMatrix(InsetMathGrid const &,
docstring const & left, docstring const & right);
/// identifies MatrixInsets
- InsetMathMatrix const * asMatrixInset() const { return this; }
+ InsetMathMatrix const * asMatrixInset() const override { return this; }
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maxima(MaximaStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- InsetCode lyxCode() const { return MATH_MATRIX_CODE; }
+ InsetCode lyxCode() const override { return MATH_MATRIX_CODE; }
///
- bool handlesMulticolumn() const { return true; } //override
+ bool handlesMulticolumn() const override { return true; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
docstring left_;
///
///
virtual ~InsetMathNest();
///
- void setBuffer(Buffer &);
+ void setBuffer(Buffer &) override;
/// Update the cells metrics
void cellsMetrics(MetricsInfo const & mi) const;
/// draw background if locked
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
/// identifies NestInsets
- InsetMathNest * asNestInset() { return this; }
+ InsetMathNest * asNestInset() override { return this; }
/// identifies NestInsets
- InsetMathNest const * asNestInset() const { return this; }
+ InsetMathNest const * asNestInset() const override { return this; }
/// get cursor position
void cursorPos(BufferView const & bv, CursorSlice const & sl,
- bool boundary, int & x, int & y) const;
+ bool boundary, int & x, int & y) const override;
///
void edit(Cursor & cur, bool front,
- EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
+ EntryDirection entry_from = ENTRY_DIRECTION_IGNORE) override;
///
- Inset * editXY(Cursor & cur, int x, int y);
+ Inset * editXY(Cursor & cur, int x, int y) override;
/// order of movement through the cells when moving backwards
- bool idxBackward(Cursor &) const;
+ bool idxBackward(Cursor &) const override;
/// order of movement through the cells when moving forward
- bool idxForward(Cursor &) const;
+ bool idxForward(Cursor &) const override;
/// move to next cell
- bool idxNext(Cursor &) const;
+ bool idxNext(Cursor &) const override;
/// move to previous cell
- bool idxPrev(Cursor &) const;
+ bool idxPrev(Cursor &) const override;
// The index of the cell entered while moving forward
virtual idx_type firstIdx() const { return 0; }
virtual idx_type lastIdx() const { return nargs() - 1; }
/// target pos when we enter the inset while moving forward
- bool idxFirst(Cursor &) const;
+ bool idxFirst(Cursor &) const override;
/// target pos when we enter the inset while moving backwards
- bool idxLast(Cursor &) const;
+ bool idxLast(Cursor &) const override;
/// number of cells currently governed by us
- idx_type nargs() const;
+ idx_type nargs() const override;
/// access to the lock
- bool lock() const;
+ bool lock() const override;
/// access to the lock
- void lock(bool);
+ void lock(bool) override;
/// get notification when the cursor leaves this inset
- bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
+ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
//@{
/// direct access to the cell.
/// Inlined because of performance reasons.
- MathData & cell(idx_type i) { return cells_[i]; }
- MathData const & cell(idx_type i) const { return cells_[i]; }
+ MathData & cell(idx_type i) override { return cells_[i]; }
+ MathData const & cell(idx_type i) const override { return cells_[i]; }
//@}
/// can we move into this cell (see macroarg.h)
- bool isActive() const;
+ bool isActive() const override;
/// request "external features"
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
/// replace in all cells
- void replace(ReplaceData &);
+ void replace(ReplaceData &) override;
/// do we contain a given pattern?
- bool contains(MathData const &) const;
+ bool contains(MathData const &) const override;
/// glue everything to a single cell
MathData glue() const;
/// debug helper
- void dump() const;
+ void dump() const override;
/// writes \\, name(), and args in braces and '\\lyxlock' if necessary
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// writes [, name(), and args in []
- void normalize(NormalStream & os) const;
+ void normalize(NormalStream & os) const override;
///
- void latex(otexstream & os, OutputParams const & runparams) const;
+ void latex(otexstream & os, OutputParams const & runparams) const override;
///
- bool setMouseHover(BufferView const * bv, bool mouse_hover) const;
+ bool setMouseHover(BufferView const * bv, bool mouse_hover) const override;
///
- bool mouseHovered(BufferView const * bv) const
+ bool mouseHovered(BufferView const * bv) const override
{ return mouse_hover_[bv]; }
///
- bool completionSupported(Cursor const &) const;
+ bool completionSupported(Cursor const &) const override;
///
- bool inlineCompletionSupported(Cursor const & cur) const;
+ bool inlineCompletionSupported(Cursor const & cur) const override;
///
- bool automaticInlineCompletion() const;
+ bool automaticInlineCompletion() const override;
///
- bool automaticPopupCompletion() const;
+ bool automaticPopupCompletion() const override;
///
- CompletionList const * createCompletionList(Cursor const & cur) const;
+ CompletionList const * createCompletionList(Cursor const & cur) const override;
///
- docstring completionPrefix(Cursor const & cur) const;
+ docstring completionPrefix(Cursor const & cur) const override;
///
- bool insertCompletion(Cursor & cur, docstring const & s, bool finished);
+ bool insertCompletion(Cursor & cur, docstring const & s, bool finished) override;
///
- void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const;
+ void completionPosAndDim(Cursor const &, int & x, int & y, Dimension & dim) const override;
///
- InsetCode lyxCode() const { return MATH_NEST_CODE; }
+ InsetCode lyxCode() const override { return MATH_NEST_CODE; }
///
- bool confirmDeletion() const { return nargs() > 0; }
+ bool confirmDeletion() const override { return nargs() > 0; }
protected:
///
InsetMathNest & operator=(InsetMathNest const &);
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
/// do we want to handle this event?
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & status) const;
+ FuncStatus & status) const override;
///
void handleFont(Cursor & cur,
docstring const & arg, docstring const & font);
///
explicit InsetMathNumber(docstring const & s);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
void draw(PainterInfo &, int x, int y) const;
///
InsetMathNumber * asNumberInset() { return this; }
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- InsetCode lyxCode() const { return MATH_NUMBER_CODE; }
+ InsetCode lyxCode() const override { return MATH_NUMBER_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// the number as string
docstring str_;
};
///
explicit InsetMathOverset(Buffer * buf) : InsetMathFracBase(buf) {}
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
bool idxUpDown(Cursor & cur, bool up) const;
///
- bool idxFirst(Cursor &) const;
+ bool idxFirst(Cursor &) const override;
///
- bool idxLast(Cursor &) const;
+ bool idxLast(Cursor &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_OVERSET_CODE; }
+ InsetCode lyxCode() const override { return MATH_OVERSET_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
InsetMathPar(Buffer * buf, MathData const & ar);
///
- mode_type currentMode() const { return TEXT_MODE; }
+ mode_type currentMode() const override { return TEXT_MODE; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo &, int x, int y) const;
+ void draw(PainterInfo &, int x, int y) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- InsetCode lyxCode() const { return MATH_PAR_CODE; }
+ InsetCode lyxCode() const override { return MATH_PAR_CODE; }
private:
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
explicit InsetMathPhantom(Buffer * buf, Kind);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_PHANTOM_CODE; }
+ InsetCode lyxCode() const override { return MATH_PHANTOM_CODE; }
/// Nothing for now
- void mathmlize(MathStream &) const {}
+ void mathmlize(MathStream &) const override {}
/// Nothing for HTML
- void htmlize(HtmlStream &) const {}
+ void htmlize(HtmlStream &) const override {}
/// request "external features"
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
/// Does the contents appear in LaTeX output?
bool visibleContents() const;
private:
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
Kind kind_;
};
///
explicit InsetMathRef(Buffer * buf, docstring const & data);
///
- void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false);
+ void updateBuffer(ParIterator const &, UpdateType, bool const deleted = false) override;
///
- //void write(WriteStream & os) const;
+ //void write(WriteStream & os) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- mode_type currentMode() const { return TEXT_MODE; }
+ mode_type currentMode() const override { return TEXT_MODE; }
///
- bool lockedMode() const { return true; }
+ bool lockedMode() const override { return true; }
///
- bool asciiOnly() const { return true; }
+ bool asciiOnly() const override { return true; }
///
- docstring const screenLabel() const;
+ docstring const screenLabel() const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
void changeTarget(docstring const & target);
///
- virtual InsetMathRef * asRefInset() { return this; }
+ InsetMathRef * asRefInset() override { return this; }
/// docbook output
- void docbook(XMLStream &, OutputParams const &) const;
+ void docbook(XMLStream &, OutputParams const &) const override;
/// generate something that will be understood by the Dialogs.
std::string const createDialogStr() const;
///
docstring const getTarget() const;
///
- InsetCode lyxCode() const { return MATH_REF_CODE; }
+ InsetCode lyxCode() const override { return MATH_REF_CODE; }
protected:
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
private:
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
bool idxBackward(Cursor & cur) const;
///
- bool idxFirst(Cursor &) const;
+ bool idxFirst(Cursor &) const override;
///
- bool idxLast(Cursor &) const;
+ bool idxLast(Cursor &) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- InsetCode lyxCode() const { return MATH_ROOT_CODE; }
+ InsetCode lyxCode() const override { return MATH_ROOT_CODE; }
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
void mathed_root_metrics(MetricsInfo & mi, MathData const & nucleus,
/// create inset with single script and given nucleus
InsetMathScript(Buffer * buf, MathAtom const & at, bool up);
///
- mode_type currentMode() const { return MATH_MODE; }
+ mode_type currentMode() const override { return MATH_MODE; }
///
- MathClass mathClass() const;
+ MathClass mathClass() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
/// move cursor backwards
- bool idxBackward(Cursor & cur) const;
+ bool idxBackward(Cursor & cur) const override;
/// move cursor forward
- bool idxForward(Cursor & cur) const;
+ bool idxForward(Cursor & cur) const override;
/// move cursor up or down
- bool idxUpDown(Cursor & cur, bool up) const;
+ bool idxUpDown(Cursor & cur, bool up) const override;
/// The index of the cell entered while moving backward
size_type lastIdx() const { return 0; }
/// write LaTeX and Lyx code
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
/// write content as something readable by Maple
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
/// write content as something readable by Mathematica
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
/// write content as MathML
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
/// write content as HTML
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
/// write content as something readable by Octave
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
/// identifies scriptinsets
- InsetMathScript const * asScriptInset() const;
+ InsetMathScript const * asScriptInset() const override;
///
- InsetMathScript * asScriptInset();
+ InsetMathScript * asScriptInset() override;
/// returns subscript. Always run 'hasDown' or 'has(false)' before!
MathData const & down() const;
/// make sure a script is accessible
void ensure(bool up);
/// say that we have scripts
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
/// say whether we have displayed limits
- void infoize2(odocstream & os) const;
+ void infoize2(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_SCRIPT_CODE; }
+ InsetCode lyxCode() const override { return MATH_SCRIPT_CODE; }
///
- void validate(LaTeXFeatures &features) const;
+ void validate(LaTeXFeatures &features) const override;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// returns x offset for main part
int dxx(BufferView const & bv) const;
/// returns width of nucleus if any
/// do we we have to draw the scripts above/below nucleus?
bool hasLimits(FontInfo const &) const;
/// clean up empty cells and return true if a cell has been deleted.
- bool notifyCursorLeaves(Cursor const & old, Cursor & cur);
+ bool notifyCursorLeaves(Cursor const & old, Cursor & cur) override;
/// possible subscript (index 0) and superscript (index 1)
bool cell_1_is_up_;
InsetMathSideset(Buffer * buf, bool scriptl, bool scriptr,
MathAtom const & at);
///
- mode_type currentMode() const { return MATH_MODE; }
+ mode_type currentMode() const override { return MATH_MODE; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter & pi, int x, int y) const;
+ void drawT(TextPainter & pi, int x, int y) const override;
/// move cursor backwards
- bool idxBackward(Cursor & cur) const;
+ bool idxBackward(Cursor & cur) const override;
/// move cursor forward
- bool idxForward(Cursor & cur) const;
+ bool idxForward(Cursor & cur) const override;
/// move cursor up or down
- bool idxUpDown(Cursor & cur, bool up) const;
+ bool idxUpDown(Cursor & cur, bool up) const override;
/// The index of the cell entered while moving backward
- size_type lastIdx() const { return 0; }
+ size_type lastIdx() const override { return 0; }
/// write LaTeX and Lyx code
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// write normalized content
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
/// write content as MathML
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
/// write content as HTML
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
/// returns nucleus
MathData const & nuc() const { return cell(0); }
/// top right index or single right cell
MathData & tr() { return cell(2 + scriptl_ + scriptr_); }
/// say that we have scripts
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- InsetCode lyxCode() const { return MATH_SCRIPT_CODE; }
+ InsetCode lyxCode() const override { return MATH_SCRIPT_CODE; }
///
- void validate(LaTeXFeatures &features) const;
+ void validate(LaTeXFeatures &features) const override;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// returns x offset of nucleus
int dxn(BufferView const & bv) const;
/// returns width of nucleus if any
///
explicit InsetMathSize(Buffer * buf, latexkeys const * l);
/// we write extra braces in any case...
- bool extraBraces() const { return true; }
+ bool extraBraces() const override { return true; }
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
void draw(PainterInfo &, int x, int y) const;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- InsetCode lyxCode() const { return MATH_SIZE_CODE; }
+ InsetCode lyxCode() const override { return MATH_SIZE_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
latexkeys const * key_;
///
///
explicit InsetMathSpace(Length const & length, bool const prot = false);
///
- InsetMathSpace const * asSpaceInset() const { return this; }
+ InsetMathSpace const * asSpaceInset() const override { return this; }
///
- InsetMathSpace * asSpaceInset() { return this; }
+ InsetMathSpace * asSpaceInset() override { return this; }
///
void incSpace();
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- void mathmlize(MathStream & ms) const;
+ void mathmlize(MathStream & ms) const override;
///
- void htmlize(HtmlStream & ms) const;
+ void htmlize(HtmlStream & ms) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
/// generate something that will be understood by the Dialogs.
InsetSpaceParams params() const;
///
- bool hasSettings() const { return true; }
+ bool hasSettings() const override { return true; }
///
- std::string contextMenuName() const;
+ std::string contextMenuName() const override;
///
- bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
+ bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const override;
///
- InsetCode lyxCode() const { return MATH_SPACE_CODE; }
+ InsetCode lyxCode() const override { return MATH_SPACE_CODE; }
protected:
///
- virtual void doDispatch(Cursor & cur, FuncRequest & cmd);
+ void doDispatch(Cursor & cur, FuncRequest & cmd) override;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
bool isNegative() const;
///
///
explicit InsetMathSpecialChar(docstring const & name);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void drawT(TextPainter &, int x, int y) const;
+ void drawT(TextPainter &, int x, int y) const override;
///
- int kerning(BufferView const *) const { return kerning_; }
+ int kerning(BufferView const *) const override { return kerning_; }
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void octave(OctaveStream & os) const;
+ void octave(OctaveStream & os) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream & ms) const;
+ void mathmlize(MathStream & ms) const override;
///
- void htmlize(HtmlStream & ms) const;
+ void htmlize(HtmlStream & ms) const override;
/// identifies SpecialChar insets
- InsetMathSpecialChar const * asSpecialCharInset() const { return this; }
+ InsetMathSpecialChar const * asSpecialCharInset() const override { return this; }
///
- docstring name() const { return name_; }
+ docstring name() const override { return name_; }
///
- char_type getChar() const { return char_; }
+ char_type getChar() const override { return char_; }
///
- InsetCode lyxCode() const { return MATH_SPECIALCHAR_CODE; }
+ InsetCode lyxCode() const override { return MATH_SPECIALCHAR_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// the latex name
docstring name_;
/// the displayed character
explicit InsetMathSplit(Buffer * buf, docstring const & name,
char valign = 'c', bool numbered = false);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ FuncStatus & flag) const override;
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- int defaultColSpace(col_type) { return 0; }
+ int defaultColSpace(col_type) override { return 0; }
///
- int displayColSpace(col_type col) const;
+ int displayColSpace(col_type col) const override;
///
- char defaultColAlign(col_type);
+ char defaultColAlign(col_type) override;
///
- char displayColAlign(idx_type idx) const;
+ char displayColAlign(idx_type idx) const override;
///
- InsetCode lyxCode() const { return MATH_SPLIT_CODE; }
+ InsetCode lyxCode() const override { return MATH_SPLIT_CODE; }
private:
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
docstring name_;
///
///
void draw(PainterInfo &, int x, int y) const;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void drawT(TextPainter &, int x, int y) const;
+ void drawT(TextPainter &, int x, int y) const override;
///
- void metricsT(TextMetricsInfo const & mi, Dimension & dim) const;
+ void metricsT(TextMetricsInfo const & mi, Dimension & dim) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- InsetCode lyxCode() const { return MATH_SQRT_CODE; }
+ InsetCode lyxCode() const override { return MATH_SQRT_CODE; }
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
bool idxUpDown(Cursor &, bool up) const;
///
- bool idxFirst(Cursor &) const;
+ bool idxFirst(Cursor &) const override;
///
- bool idxLast(Cursor &) const;
+ bool idxLast(Cursor &) const override;
///
- MathClass mathClass() const;
+ MathClass mathClass() const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- InsetCode lyxCode() const { return MATH_STACKREL_CODE; }
+ InsetCode lyxCode() const override { return MATH_STACKREL_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
} // namespace lyx
///
explicit InsetMathString(docstring const & s);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
docstring str() const { return str_; }
///
- InsetMathString * asStringInset() { return this; }
+ InsetMathString * asStringInset() override { return this; }
///
- InsetMathString const * asStringInset() const { return this; }
+ InsetMathString const * asStringInset() const override { return this; }
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- InsetCode lyxCode() const { return MATH_STRING_CODE; }
+ InsetCode lyxCode() const override { return MATH_STRING_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// the string
docstring str_;
};
///
explicit InsetMathSubstack(Buffer * buf);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- InsetMathSubstack const * asSubstackInset() const { return this; }
+ InsetMathSubstack const * asSubstackInset() const override { return this; }
///
bool getStatus(Cursor & cur, FuncRequest const & cmd,
- FuncStatus & flag) const;
+ FuncStatus & flag) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void validate(LaTeXFeatures &) const;
+ void validate(LaTeXFeatures &) const override;
///
- InsetCode lyxCode() const { return MATH_SUBSTACK_CODE; }
+ InsetCode lyxCode() const override { return MATH_SUBSTACK_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
///
explicit InsetMathSymbol(docstring const & name);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
void draw(PainterInfo &, int x, int y) const;
///
- int kerning(BufferView const *) const { return kerning_; }
+ int kerning(BufferView const *) const override { return kerning_; }
///
- mode_type currentMode() const;
+ mode_type currentMode() const override;
///
- MathClass mathClass() const;
+ MathClass mathClass() const override;
///
bool isOrdAlpha() const;
/// The default limits value
- Limits defaultLimits() const;
+ Limits defaultLimits() const override;
/// whether the inset has limit-like sub/superscript
- Limits limits() const { return limits_; }
+ Limits limits() const override { return limits_; }
/// sets types of sub/superscripts
- void limits(Limits lim) { limits_ = lim; }
+ void limits(Limits lim) override { limits_ = lim; }
/// identifies SymbolInset as such
- InsetMathSymbol const * asSymbolInset() const { return this; }
+ InsetMathSymbol const * asSymbolInset() const override { return this; }
/// the LaTeX name of the symbol (without the backslash)
- docstring name() const;
+ docstring name() const override;
/// request "external features"
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void maxima(MaximaStream &) const;
+ void maxima(MaximaStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
/// \param spacing controls whether we print spaces around
/// "operator"-type symbols or just print them raw
void htmlize(HtmlStream &, bool spacing) const;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
void infoize2(odocstream & os) const;
///
- InsetCode lyxCode() const { return MATH_SYMBOL_CODE; }
+ InsetCode lyxCode() const override { return MATH_SYMBOL_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
latexkeys const * sym_;
///
InsetMathTabular(Buffer * buf, docstring const &, int m, int n,
char valign, docstring const & halign);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
InsetMathTabular * asTabularInset() { return this; }
///
InsetMathTabular const * asTabularInset() const { return this; }
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- InsetCode lyxCode() const { return MATH_TABULAR_CODE; }
+ InsetCode lyxCode() const override { return MATH_TABULAR_CODE; }
///
- int leftMargin() const { return 4; } //override
+ int leftMargin() const override { return 4; }
///
- int rightMargin() const { return 2; } //override
+ int rightMargin() const override { return 2; }
///
- bool handlesMulticolumn() const { return true; } //override
+ bool handlesMulticolumn() const override { return true; }
private:
- Inset * clone() const;
+ Inset * clone() const override;
///
docstring name_;
};
///
explicit InsetMathUnderset(Buffer * buf) : InsetMathFracBase(buf) {}
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- bool idxFirst(Cursor &) const;
+ bool idxFirst(Cursor &) const override;
///
- bool idxLast(Cursor &) const;
+ bool idxLast(Cursor &) const override;
///
- void write(WriteStream & ws) const;
+ void write(WriteStream & ws) const override;
///
- void normalize(NormalStream & ns) const;
+ void normalize(NormalStream & ns) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_UNDERSET_CODE; }
+ InsetCode lyxCode() const override { return MATH_UNDERSET_CODE; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
};
docstring const & selection = empty_docstring(),
bool final = true, bool black = false);
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
void setName(docstring const & name);
///
- docstring name() const;
+ docstring name() const override;
///
docstring const & selection() const { return selection_; }
/// identifies UnknownInsets
- InsetMathUnknown const * asUnknownInset() const { return this; }
+ InsetMathUnknown const * asUnknownInset() const override { return this; }
/// identifies UnknownInsets
- InsetMathUnknown * asUnknownInset() { return this; }
+ InsetMathUnknown * asUnknownInset() override { return this; }
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void mathematica(MathematicaStream &) const;
+ void mathematica(MathematicaStream &) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void octave(OctaveStream &) const;
+ void octave(OctaveStream &) const override;
///
void finalize();
///
bool final() const;
///
- int kerning(BufferView const *) const { return kerning_; }
+ int kerning(BufferView const *) const override { return kerning_; }
///
- InsetCode lyxCode() const { return MATH_UNKNOWN_CODE; }
+ InsetCode lyxCode() const override { return MATH_UNKNOWN_CODE; }
private:
///
- Inset * clone() const { return new InsetMathUnknown(*this); }
+ Inset * clone() const override { return new InsetMathUnknown(*this); }
///
docstring name_;
///
explicit InsetMathXArrow(Buffer * buf, docstring const & name);
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void metrics(MetricsInfo & mi, Dimension & dim) const;
+ void metrics(MetricsInfo & mi, Dimension & dim) const override;
///
- void normalize(NormalStream & os) const;
+ void normalize(NormalStream & os) const override;
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_XARROW_CODE; }
+ InsetCode lyxCode() const override { return MATH_XARROW_CODE; }
///
- MathClass mathClass() const { return MC_REL; }
+ MathClass mathClass() const override { return MC_REL; }
private:
- virtual Inset * clone() const;
+ Inset * clone() const override;
///
bool upper() const;
///
InsetMathXYMatrix(Buffer * buf, Length const & = Length(), char c = '\0',
bool equal_spacing = false);
///
- void metrics(MetricsInfo &, Dimension &) const;
+ void metrics(MetricsInfo &, Dimension &) const override;
///
- void draw(PainterInfo & pi, int x, int y) const;
+ void draw(PainterInfo & pi, int x, int y) const override;
///
InsetMathXYMatrix const * asXYMatrixInset() const { return this; }
///
- virtual int colsep() const;
+ int colsep() const override;
///
- virtual int rowsep() const;
+ int rowsep() const override;
///
- void write(WriteStream & os) const;
+ void write(WriteStream & os) const override;
///
- void infoize(odocstream & os) const;
+ void infoize(odocstream & os) const override;
///
- void normalize(NormalStream &) const;
+ void normalize(NormalStream &) const override;
///
- void maple(MapleStream &) const;
+ void maple(MapleStream &) const override;
///
- void validate(LaTeXFeatures & features) const;
+ void validate(LaTeXFeatures & features) const override;
///
- InsetCode lyxCode() const { return MATH_XYMATRIX_CODE; }
+ InsetCode lyxCode() const override { return MATH_XYMATRIX_CODE; }
///
- void mathmlize(MathStream &) const;
+ void mathmlize(MathStream &) const override;
///
- void htmlize(HtmlStream &) const;
+ void htmlize(HtmlStream &) const override;
private:
///
- virtual Inset * clone() const;
+ Inset * clone() const override;
/// extra spacing, may be empty
Length spacing_;
///
*/
void set(std::string const & filename, std::string const & buffer_path);
///
- void erase();
+ void erase() override;
///
bool saveAbsPath() const { return save_abs_path_; }
/// \param buffer_path if empty, uses `pwd`
ForkedCall(std::string const & path = empty_string(),
std::string const & lpath = empty_string());
///
- virtual std::shared_ptr<ForkedProcess> clone() const {
+ std::shared_ptr<ForkedProcess> clone() const override {
return std::make_shared<ForkedCall>(*this);
}
private:
///
- virtual int generateChild();
+ int generateChild() override;
///
std::string cmd_prefix_;
};
public:
ProgressDummy() {}
- void processStarted(QString const &) {}
- void processFinished(QString const &) {}
- void appendMessage(QString const &) {}
- void appendError(QString const &) {}
- void clearMessages() {}
- void lyxerrFlush() {}
-
- void lyxerrConnect() {}
- void lyxerrDisconnect() {}
-
- void warning(QString const &, QString const &) {}
- void toggleWarning(QString const &, QString const &, QString const &) {}
- void error(QString const &, QString const &, QString const &) {}
- void information(QString const &, QString const &) {}
+ void processStarted(QString const &) override {}
+ void processFinished(QString const &) override {}
+ void appendMessage(QString const &) override {}
+ void appendError(QString const &) override {}
+ void clearMessages() override {}
+ void lyxerrFlush() override {}
+
+ void lyxerrConnect() override {}
+ void lyxerrDisconnect() override {}
+
+ void warning(QString const &, QString const &) override {}
+ void toggleWarning(QString const &, QString const &, QString const &) override {}
+ void error(QString const &, QString const &, QString const &) override {}
+ void information(QString const &, QString const &) override {}
int prompt(docstring const &, docstring const &, int default_but, int,
- docstring const &, docstring const &) { return default_but; }
+ docstring const &, docstring const &) override { return default_but; }
};
protected:
///
- void timerEvent(QTimerEvent *) { owner_.emit(); }
+ void timerEvent(QTimerEvent *) override { owner_.emit(); }
private:
///
fflush(stderr);
}
}
- virtual result do_out(state_type &, intern_type const * from,
+ result do_out(state_type &, intern_type const * from,
intern_type const * from_end, intern_type const *& from_next,
extern_type * to, extern_type * to_end,
- extern_type *& to_next) const
+ extern_type *& to_next) const override
{
#define WORKAROUND_ICONV_BUG 1
#if WORKAROUND_ICONV_BUG
}
return retval;
}
- virtual result do_unshift(state_type &, extern_type * to,
- extern_type *, extern_type *& to_next) const
+ result do_unshift(state_type &, extern_type * to,
+ extern_type *, extern_type *& to_next) const override
{
// utf8 does not use shifting
to_next = to;
return base::noconv;
}
- virtual result do_in(state_type &,
+ result do_in(state_type &,
extern_type const * from, extern_type const * from_end,
extern_type const *& from_next,
intern_type * to, intern_type * to_end,
- intern_type *& to_next) const
+ intern_type *& to_next) const override
{
size_t inbytesleft = (from_end - from) * sizeof(extern_type);
size_t outbytesleft = (to_end - to) * sizeof(intern_type);
}
return retval;
}
- virtual int do_encoding() const throw()
+ int do_encoding() const throw() override
{
return 0;
}
- virtual bool do_always_noconv() const throw()
+ bool do_always_noconv() const throw() override
{
return false;
}
- virtual int do_length(state_type & /*state*/, extern_type const * from,
- extern_type const * end, size_t max) const
+ int do_length(state_type & /*state*/, extern_type const * from,
+ extern_type const * end, size_t max) const override
{
// The docs are a bit unclear about this method.
// It seems that we should calculate the actual length of the
return min(length, max);
#endif
}
- virtual int do_max_length() const throw()
+ int do_max_length() const throw() override
{
return lyx::max_encoded_bytes(encoding_);
}
public:
to_local8bit_failure() throw() : bad_cast() {}
virtual ~to_local8bit_failure() throw() {}
- virtual const char* what() const throw()
+ const char* what() const throw() override
{
return "A string could not be converted from unicode to the local 8 bit encoding.";
}
public:
ctype_failure() throw() : bad_cast() {}
virtual ~ctype_failure() throw() {}
- virtual const char* what() const throw()
+ const char* what() const throw() override
{
return "The ctype<lyx::char_type> locale facet does only support ASCII characters on this platform.";
}
public:
num_put_failure() throw() : bad_cast() {}
virtual ~num_put_failure() throw() {}
- virtual const char* what() const throw()
+ const char* what() const throw() override
{
return "The num_put locale facet does only support ASCII characters on this platform.";
}
}
}
virtual ~ascii_ctype_facet() {}
- char_type do_toupper(char_type c) const
+ char_type do_toupper(char_type c) const override
{
if (c >= 0x80)
throw ctype_failure();
return toupper(static_cast<int>(c));
}
- char_type const * do_toupper(char_type * lo, char_type const * hi) const
+ char_type const * do_toupper(char_type * lo, char_type const * hi) const override
{
while (lo < hi) {
if (*lo >= 0x80)
}
return hi;
}
- char_type do_tolower(char_type c) const
+ char_type do_tolower(char_type c) const override
{
if (c >= 0x80)
throw ctype_failure();
return tolower(c);
}
- char_type const * do_tolower(char_type * lo, char_type const * hi) const
+ char_type const * do_tolower(char_type * lo, char_type const * hi) const override
{
while (lo < hi) {
if (*lo >= 0x80)
}
return hi;
}
- bool do_is(mask m, char_type c) const
+ bool do_is(mask m, char_type c) const override
{
if (c >= 0x80)
throw ctype_failure();
}
return ret;
}
- char_type const * do_is(char_type const * lo, char_type const * hi, mask * vec) const
+ char_type const * do_is(char_type const * lo, char_type const * hi, mask * vec) const override
{
for (;lo < hi; ++vec, ++lo) {
if (*lo >= 0x80)
}
return hi;
}
- char_type const * do_scan_is(mask m, char_type const * lo, char_type const * hi) const
+ char_type const * do_scan_is(mask m, char_type const * lo, char_type const * hi) const override
{
while (lo < hi && !this->do_is(m, *lo))
++lo;
return lo;
}
- char_type const * do_scan_not(mask m, char_type const * lo, char_type const * hi) const
+ char_type const * do_scan_not(mask m, char_type const * lo, char_type const * hi) const override
{
while (lo < hi && this->do_is(m, *lo) != 0)
++lo;
return lo;
}
- char_type do_widen(char c) const
+ char_type do_widen(char c) const override
{
if (static_cast<unsigned char>(c) < 0x80)
return c;
throw ctype_failure();
}
- const char* do_widen(const char* lo, const char* hi, char_type* dest) const
+ const char* do_widen(const char* lo, const char* hi, char_type* dest) const override
{
while (lo < hi) {
if (static_cast<unsigned char>(*lo) >= 0x80)
}
return hi;
}
- char do_narrow(char_type wc, char) const
+ char do_narrow(char_type wc, char) const override
{
if (wc < 0x80)
return static_cast<char>(wc);
throw ctype_failure();
}
- const char_type * do_narrow(const char_type * lo, const char_type * hi, char, char * dest) const
+ const char_type * do_narrow(const char_type * lo, const char_type * hi, char, char * dest) const override
{
while (lo < hi) {
if (*lo < 0x80)
protected:
iter_type
- do_put(iter_type oit, ios_base & b, char_type fill, bool v) const
+ do_put(iter_type oit, ios_base & b, char_type fill, bool v) const override
{
return do_put_helper(oit, b, fill, v);
}
iter_type
- do_put(iter_type oit, ios_base & b, char_type fill, long v) const
+ do_put(iter_type oit, ios_base & b, char_type fill, long v) const override
{
return do_put_helper(oit, b, fill, v);
}
iter_type
- do_put(iter_type oit, ios_base & b, char_type fill, unsigned long v) const
+ do_put(iter_type oit, ios_base & b, char_type fill, unsigned long v) const override
{
return do_put_helper(oit, b, fill, v);
}
#ifdef HAVE_LONG_LONG_INT
iter_type
- do_put(iter_type oit, ios_base & b, char_type fill, long long v) const
+ do_put(iter_type oit, ios_base & b, char_type fill, long long v) const override
{
return do_put_helper(oit, b, fill, v);
}
iter_type
- do_put(iter_type oit, ios_base & b, char_type fill, unsigned long long v) const
+ do_put(iter_type oit, ios_base & b, char_type fill, unsigned long long v) const override
{
return do_put_helper(oit, b, fill, v);
}
#endif
iter_type
- do_put(iter_type oit, ios_base & b, char_type fill, double v) const
+ do_put(iter_type oit, ios_base & b, char_type fill, double v) const override
{
return do_put_helper(oit, b, fill, v);
}
iter_type
- do_put(iter_type oit, ios_base & b, char_type fill, long double v) const
+ do_put(iter_type oit, ios_base & b, char_type fill, long double v) const override
{
return do_put_helper(oit, b, fill, v);
}
iter_type
- do_put(iter_type oit, ios_base & b, char_type fill, void const * v) const
+ do_put(iter_type oit, ios_base & b, char_type fill, void const * v) const override
{
return do_put_helper(oit, b, fill, v);
}
protected:
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, bool & v) const
+ ios_base::iostate & err, bool & v) const override
{
if (b.flags() & ios_base::boolalpha) {
numpunct_facet p;
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, long & v) const
+ ios_base::iostate & err, long & v) const override
{
return do_get_integer(iit, eit, b, err, v);
}
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, unsigned short & v) const
+ ios_base::iostate & err, unsigned short & v) const override
{
return do_get_integer(iit, eit, b, err, v);
}
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, unsigned int & v) const
+ ios_base::iostate & err, unsigned int & v) const override
{
return do_get_integer(iit, eit, b, err, v);
}
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, unsigned long & v) const
+ ios_base::iostate & err, unsigned long & v) const override
{
return do_get_integer(iit, eit, b, err, v);
}
#ifdef HAVE_LONG_LONG_INT
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, long long & v) const
+ ios_base::iostate & err, long long & v) const override
{
return do_get_integer(iit, eit, b, err, v);
}
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, unsigned long long & v) const
+ ios_base::iostate & err, unsigned long long & v) const override
{
return do_get_integer(iit, eit, b, err, v);
}
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, float & v) const
+ ios_base::iostate & err, float & v) const override
{
return do_get_float(iit, eit, b, err, v);
}
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, double & v) const
+ ios_base::iostate & err, double & v) const override
{
return do_get_float(iit, eit, b, err, v);
}
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, long double & v) const
+ ios_base::iostate & err, long double & v) const override
{
return do_get_float(iit, eit, b, err, v);
}
iter_type
do_get(iter_type iit, iter_type eit, ios_base & b,
- ios_base::iostate & err, void * & v) const
+ ios_base::iostate & err, void * & v) const override
{
unsigned long val;
iter_type end = do_get_integer(iit, eit, b, err, val);
argc_(argc), argv_(argv)
{
}
- void doExec()
+ void doExec() override
{
try {
int const exit_status = run();