]> git.lyx.org Git - features.git/commitdiff
Add `override` specifiers to improve code maintainability
authorYuriy Skalko <yuriy.skalko@gmail.com>
Thu, 1 Oct 2020 07:42:11 +0000 (10:42 +0300)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 3 Oct 2020 10:43:48 +0000 (12:43 +0200)
203 files changed:
src/AppleSpellChecker.h
src/AspellChecker.h
src/EnchantChecker.h
src/HunspellChecker.h
src/LyX.cpp
src/Mover.h
src/Session.h
src/Text.cpp
src/TextClass.h
src/Trans.h
src/frontends/NullPainter.h
src/frontends/qt/CategorizedCombo.cpp
src/frontends/qt/DialogView.h
src/frontends/qt/DockView.h
src/frontends/qt/FancyLineEdit.cpp
src/frontends/qt/FindAndReplace.h
src/frontends/qt/FloatPlacement.h
src/frontends/qt/GuiAbout.h
src/frontends/qt/GuiApplication.cpp
src/frontends/qt/GuiBibitem.h
src/frontends/qt/GuiBibtex.h
src/frontends/qt/GuiBox.h
src/frontends/qt/GuiBranch.h
src/frontends/qt/GuiChanges.h
src/frontends/qt/GuiCharacter.h
src/frontends/qt/GuiCitation.h
src/frontends/qt/GuiCommandBuffer.cpp
src/frontends/qt/GuiCompare.h
src/frontends/qt/GuiCompareHistory.h
src/frontends/qt/GuiCompleter.cpp
src/frontends/qt/GuiCounter.h
src/frontends/qt/GuiDelimiter.h
src/frontends/qt/GuiDialog.h
src/frontends/qt/GuiDocument.cpp
src/frontends/qt/GuiDocument.h
src/frontends/qt/GuiERT.h
src/frontends/qt/GuiErrorList.h
src/frontends/qt/GuiExternal.h
src/frontends/qt/GuiFontMetrics.h
src/frontends/qt/GuiGraphics.h
src/frontends/qt/GuiHSpace.h
src/frontends/qt/GuiHyperlink.h
src/frontends/qt/GuiInclude.h
src/frontends/qt/GuiIndex.h
src/frontends/qt/GuiInfo.h
src/frontends/qt/GuiLabel.h
src/frontends/qt/GuiLine.h
src/frontends/qt/GuiListings.h
src/frontends/qt/GuiLog.cpp
src/frontends/qt/GuiLog.h
src/frontends/qt/GuiLyXFiles.h
src/frontends/qt/GuiMathMatrix.h
src/frontends/qt/GuiNomenclature.h
src/frontends/qt/GuiNote.h
src/frontends/qt/GuiParagraph.h
src/frontends/qt/GuiPhantom.h
src/frontends/qt/GuiPrefs.cpp
src/frontends/qt/GuiPrefs.h
src/frontends/qt/GuiPrintNomencl.h
src/frontends/qt/GuiPrintindex.h
src/frontends/qt/GuiProgressView.h
src/frontends/qt/GuiRef.h
src/frontends/qt/GuiSearch.h
src/frontends/qt/GuiSendto.h
src/frontends/qt/GuiShowFile.h
src/frontends/qt/GuiSpellchecker.h
src/frontends/qt/GuiSymbols.cpp
src/frontends/qt/GuiSymbols.h
src/frontends/qt/GuiTabular.h
src/frontends/qt/GuiTabularCreate.h
src/frontends/qt/GuiTexinfo.h
src/frontends/qt/GuiThesaurus.h
src/frontends/qt/GuiToc.h
src/frontends/qt/GuiToolbar.cpp
src/frontends/qt/GuiVSpace.h
src/frontends/qt/GuiView.cpp
src/frontends/qt/GuiViewSource.h
src/frontends/qt/GuiWorkArea.h
src/frontends/qt/GuiWrap.h
src/frontends/qt/InGuiThread.h
src/frontends/qt/InsetParamsDialog.h
src/frontends/qt/LayoutBox.cpp
src/frontends/qt/Menus.cpp
src/insets/ExternalTransforms.h
src/insets/Inset.h
src/insets/InsetArgument.h
src/insets/InsetBibitem.h
src/insets/InsetBibtex.h
src/insets/InsetBox.h
src/insets/InsetBranch.h
src/insets/InsetCaption.h
src/insets/InsetCaptionable.h
src/insets/InsetCitation.h
src/insets/InsetCollapsible.h
src/insets/InsetCommand.h
src/insets/InsetCounter.h
src/insets/InsetERT.h
src/insets/InsetExternal.h
src/insets/InsetFlex.h
src/insets/InsetFloat.h
src/insets/InsetFloatList.h
src/insets/InsetFoot.h
src/insets/InsetFootlike.h
src/insets/InsetGraphics.h
src/insets/InsetHyperlink.h
src/insets/InsetIPA.h
src/insets/InsetIPAMacro.h
src/insets/InsetInclude.h
src/insets/InsetIndex.h
src/insets/InsetInfo.h
src/insets/InsetLabel.h
src/insets/InsetLayout.h
src/insets/InsetLine.h
src/insets/InsetListings.h
src/insets/InsetMarginal.h
src/insets/InsetNewline.h
src/insets/InsetNewpage.h
src/insets/InsetNomencl.h
src/insets/InsetNote.h
src/insets/InsetPhantom.h
src/insets/InsetPreview.h
src/insets/InsetQuotes.h
src/insets/InsetRef.h
src/insets/InsetScript.h
src/insets/InsetSeparator.h
src/insets/InsetSpace.h
src/insets/InsetSpecialChar.h
src/insets/InsetTOC.h
src/insets/InsetTabular.h
src/insets/InsetText.h
src/insets/InsetVSpace.h
src/insets/InsetWrap.h
src/insets/RenderButton.h
src/insets/RenderGraphic.h
src/insets/RenderPreview.h
src/mathed/InsetMath.h
src/mathed/InsetMathAMSArray.h
src/mathed/InsetMathArray.h
src/mathed/InsetMathBig.h
src/mathed/InsetMathBoldSymbol.h
src/mathed/InsetMathBox.h
src/mathed/InsetMathBrace.h
src/mathed/InsetMathCancel.h
src/mathed/InsetMathCancelto.h
src/mathed/InsetMathCases.h
src/mathed/InsetMathChar.h
src/mathed/InsetMathClass.h
src/mathed/InsetMathColor.h
src/mathed/InsetMathCommand.h
src/mathed/InsetMathComment.h
src/mathed/InsetMathDecoration.h
src/mathed/InsetMathDelim.h
src/mathed/InsetMathDiagram.h
src/mathed/InsetMathDiff.h
src/mathed/InsetMathDots.h
src/mathed/InsetMathEnsureMath.h
src/mathed/InsetMathEnv.h
src/mathed/InsetMathExFunc.h
src/mathed/InsetMathExInt.h
src/mathed/InsetMathFont.h
src/mathed/InsetMathFontOld.h
src/mathed/InsetMathFrac.h
src/mathed/InsetMathGrid.h
src/mathed/InsetMathHull.h
src/mathed/InsetMathKern.h
src/mathed/InsetMathLefteqn.h
src/mathed/InsetMathLim.h
src/mathed/InsetMathMacro.cpp
src/mathed/InsetMathMacro.h
src/mathed/InsetMathMacroArgument.h
src/mathed/InsetMathMacroTemplate.cpp
src/mathed/InsetMathMacroTemplate.h
src/mathed/InsetMathMatrix.h
src/mathed/InsetMathNest.h
src/mathed/InsetMathNumber.h
src/mathed/InsetMathOverset.h
src/mathed/InsetMathPar.h
src/mathed/InsetMathPhantom.h
src/mathed/InsetMathRef.h
src/mathed/InsetMathRoot.h
src/mathed/InsetMathScript.h
src/mathed/InsetMathSideset.h
src/mathed/InsetMathSize.h
src/mathed/InsetMathSpace.h
src/mathed/InsetMathSpecialChar.h
src/mathed/InsetMathSplit.h
src/mathed/InsetMathSqrt.h
src/mathed/InsetMathStackrel.h
src/mathed/InsetMathString.h
src/mathed/InsetMathSubstack.h
src/mathed/InsetMathSymbol.h
src/mathed/InsetMathTabular.h
src/mathed/InsetMathUnderset.h
src/mathed/InsetMathUnknown.h
src/mathed/InsetMathXArrow.h
src/mathed/InsetMathXYMatrix.h
src/support/FileName.h
src/support/ForkedCalls.h
src/support/Systemcall.cpp
src/support/Timeout.cpp
src/support/docstream.cpp
src/support/docstring.cpp
src/tex2lyx/tex2lyx.cpp

index 13b9bd0a94d3624d2c1d3152d984454b7bd64249..d77977724519cae5cb5e1d6e7909320951372a7f 100644 (file)
@@ -24,19 +24,19 @@ public:
 
        /// \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:
index 74ffb7036bd093862aab2a07f36e813fb7306358..d3d744ff95e9236e9c8ba200caca413bbfd80d90 100644 (file)
@@ -25,16 +25,16 @@ public:
 
        /// \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:
index 559e4c8801c492e63db64743b194d95924a19b28..22ec9bc3dd867d98e9679a799169c673635beef3 100644 (file)
@@ -31,16 +31,16 @@ public:
 
        /// 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:
index 686f014384028316afae89af37b0505aa9306ee4..a7225d9ebff4cc0d087e65a467642e9505811377 100644 (file)
@@ -25,16 +25,16 @@ public:
 
        /// \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:
index 9b637570d5f9adb4d5071b822ee92bd129b14ed7..a8bfd60543e820d1e65dc054e22537f761eaaf5f 100644 (file)
@@ -234,7 +234,7 @@ public:
                  argc_(argc), argv_(argv)
        {
        }
-       void doExec()
+       void doExec() override
        {
                int const exit_status = lyx_->execWithoutGui(argc_, argv_);
                exit(exit_status);
index ff3667e4698bfc51fb494e0efe367adf1e5f5941..a684a875579ccc9e7ed8741c6e3dcb7d34a85dec 100644 (file)
@@ -137,13 +137,11 @@ public:
        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_;
 };
index 65bf19de1342be91495ff0c51c33813d25a191a8..5af5554d967a99df2cf5a372c7a3d7dbaed413ed 100644 (file)
@@ -64,10 +64,10 @@ public:
        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; }
@@ -119,10 +119,10 @@ public:
 
 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; }
@@ -161,10 +161,10 @@ public:
        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.
@@ -253,10 +253,10 @@ public:
        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.
@@ -283,10 +283,10 @@ public:
        ///
        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; }
@@ -327,10 +327,10 @@ public:
        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;
@@ -351,10 +351,10 @@ public:
        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;
index e5969b129dd62c8bf555c5f8cba65e622562839b..0e058641d6fc5bddc3d83158b9d0fd31739c131e 100644 (file)
@@ -641,14 +641,14 @@ public:
        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);
        }
index 11710edfe461043198fc969fe33d34a51441df33..fa9ac20e1d21a65a65591890c8d31ee70dfc6b17 100644 (file)
@@ -435,7 +435,7 @@ public:
        /// \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:
index 4befc657402071db3f2755ba1f150efd5f0c835a..c200bb9544b4c7714eaf7a04f3569ddbdbe75095 100644 (file)
@@ -238,11 +238,11 @@ public:
        ///
        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;
 };
 
 
@@ -252,14 +252,14 @@ public:
        ///
        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;
 };
 
 
@@ -269,9 +269,9 @@ public:
        ///
        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;
@@ -280,7 +280,7 @@ public:
                return false;
        }
        ///
-       virtual docstring const deadkey(char_type, KmodInfo);
+       docstring const deadkey(char_type, KmodInfo) override;
 };
 
 
index 55a773e09cbe5ba9206eee426e5ad5551a5a0e95..4a4b5941b7cd64d96cdb48cadf7a4279b1c4bb83 100644 (file)
@@ -31,52 +31,52 @@ public:
 
        /// 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
@@ -85,22 +85,22 @@ public:
         * 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
index f8e8ef6b914a9135822187d7fccd5e50837a93f1..d86bd382f89310ff77138eef60e71aade8a3d3b5 100644 (file)
@@ -49,13 +49,13 @@ public:
        {}
        ///
        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:
        ///
index aa00f64e123af45b9d141a562a4c6d76f93de503..b99cdebfb8977febb781ac991e587a03d0e9e3dd 100644 (file)
@@ -32,16 +32,16 @@ public:
        /// \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);
@@ -49,7 +49,7 @@ protected:
        void hideEvent(QHideEvent * ev);
 
 protected Q_SLOTS:
-       void onBufferViewChanged() {};
+       void onBufferViewChanged() override {};
 };
 
 } // namespace frontend
index 3c54c2ad20c0dbc06963abe972e5bfcffc926dee..897fb392ffb3083566d52eb579a6ab66b92948a4 100644 (file)
@@ -42,23 +42,23 @@ public:
 
        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
index ca7ca48162476ffa481c09d38f2ef02885ef8b5f..c7035ac7c905a249af19c51e1d3dc6d4997f0f23 100644 (file)
@@ -44,7 +44,7 @@ class FancyLineEditPrivate : public QObject {
 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];
index da854da7b73a79de46be1f6758fefd724efeb23d..d9c5f4ad28c06e78db88fadb7e9342f079cbfced 100644 (file)
@@ -82,19 +82,19 @@ public:
 
        ~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.
index d5d9449538bd1c942e92717297a2e1a62f7021ff..ebcd8b672a49dd8e1b2a33ac166af3197418f1a0 100644 (file)
@@ -33,12 +33,12 @@ public:
 
        /// \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();
index acd485fe89736a821fda9bc5edc1b317473d6ab1..3fa8d5b4c883ece49fdb6c556242b7360dfb013e 100644 (file)
@@ -34,9 +34,9 @@ private Q_SLOTS:
 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;
index eb92be7517cab7ba57916aacd0b3087a6954188d..bf917891785023b75888b3ebe18c95a31605d3fa 100644 (file)
@@ -638,12 +638,12 @@ public:
                : 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
@@ -761,13 +761,13 @@ public:
        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;
@@ -776,13 +776,13 @@ public:
        }
 
        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))
@@ -813,7 +813,7 @@ public:
 
 
        QVector<FORMATETC> formatsForMime(QString const & mimetype,
-               QMimeData const * /*mimedata*/) const
+               QMimeData const * /*mimedata*/) const override
        {
                QVector<FORMATETC> formats;
                if (mimetype == emfMimeType() || mimetype == wmfMimeType())
@@ -821,7 +821,7 @@ public:
                return formats;
        }
 
-       QString mimeForFormat(FORMATETC const & formatetc) const
+       QString mimeForFormat(FORMATETC const & formatetc) const override
        {
                switch (formatetc.cfFormat) {
                case CF_ENHMETAFILE:
@@ -861,7 +861,7 @@ public:
        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:
index d96d7c1fd790845f53cd5cc8d95706f6c657f2f8..d18f7f0fad299845eb8f96172891ef48287fbd04 100644 (file)
@@ -31,12 +31,12 @@ public:
 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;
        //@}
 };
 
index d860e3f3fd3bf730d0f5cfd7456c007a4692e377..192628c623d9bfb2bab2331aac370e7bef9de26a 100644 (file)
@@ -49,9 +49,9 @@ private Q_SLOTS:
 
 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;
@@ -91,13 +91,13 @@ private:
        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:
        ///
index 4c32dcf8fa81b42d189fa3a818091c586c3a444c..67630bb9a09406c59f49ba585d2ed5daf776be98 100644 (file)
@@ -39,12 +39,12 @@ private Q_SLOTS:
 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
index 69aaa8105262ce1a33199d15f611e05fb1317d93..610afeccb85339fcdbd950cbc8adc434c29be1cd 100644 (file)
@@ -30,12 +30,12 @@ public:
 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;
        //@}
 };
 
index 1096e6293afcd884160d37dc27dfbb2306c080de..fce6150e34d0842fece76e814a74b8b4c197f3ec 100644 (file)
@@ -42,18 +42,18 @@ protected Q_SLOTS:
 
 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
index 40da643dffd3b7045eb7bf563154ddc14dfcf8b7..408f1221669ce8464460bf6e167971bf6d10ec0b 100644 (file)
@@ -75,15 +75,15 @@ protected Q_SLOTS:
 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;
        //@}
 
        ///
index 29b7b9b48509d201b448fa53bc9ad4d31a5e72d7..51a53b11073c111917693cc5a0cd222bee859f2a 100644 (file)
@@ -72,18 +72,18 @@ private Q_SLOTS:
 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; }
        //@}
 
        ///
index 4d94d97738af0af4d8aac90d9487bdd6abf1686e..06ca59ca0659e23e8592caf6f65f725fdabce676 100644 (file)
@@ -56,7 +56,7 @@ public:
                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
@@ -67,7 +67,7 @@ protected:
                return QListWidget::event(ev);
        }
 
-       void keyPressEvent(QKeyEvent * ev) {
+       void keyPressEvent(QKeyEvent * ev) override {
                if (ev->key() == Qt::Key_Escape) {
                        hide();
                        return;
index c6f8eaa26de8377aed6c4d0fe362ca0948bc325d..82afcd2071d27c615347e0a2bc9dd869093522e8 100644 (file)
@@ -61,19 +61,19 @@ private Q_SLOTS:
 
 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
index 72e6982340979e5639e7619614d4778ecc73bd1f..8adbfd0866e02c02ab668ed8c1616e2333cc48d4 100644 (file)
@@ -41,15 +41,15 @@ private Q_SLOTS:
        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();
 
index c4bb561c522791052ad42b1362a09965e1278749..6fd39d30396a1de972aa23a2b062ac0c4561a840 100644 (file)
@@ -59,7 +59,7 @@ public:
 
 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);
@@ -107,12 +107,12 @@ public:
                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;
@@ -120,7 +120,7 @@ public:
        }
 
        ///
-       QVariant data(const QModelIndex & index, int role) const
+       QVariant data(const QModelIndex & index, int role) const override
        {
                if (list_ == 0)
                        return QVariant();
index 7b13256039fa3dd3783dfdddc0e06b108b278fd7..fb589d6c7d4a4f33bae831ea400f5ef71a05c3ae 100644 (file)
@@ -32,13 +32,13 @@ public:
 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);
        ///
index 3d44e224b05471a734f9a41a448ae944ded4918c..e0450a296d2b98fc36057633e00aac6aee3ba9d4 100644 (file)
@@ -28,10 +28,10 @@ class GuiDelimiter : public GuiDialog, public Ui::DelimiterUi
 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);
index d5f4227c08dd1b1432ec1a49c43b06c979cb9b41..b48f0aafe3cf1891ee95dbbea95c26f116696fd9 100644 (file)
@@ -39,8 +39,8 @@ public:
        /// \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
@@ -65,7 +65,7 @@ public Q_SLOTS:
        void closeEvent(QCloseEvent * e);
 
 protected Q_SLOTS:
-       void onBufferViewChanged() {};//override
+       void onBufferViewChanged() override {}
 
 public:
        /** Check whether we may apply our data.
@@ -85,10 +85,10 @@ public:
        /// 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() {}
 
@@ -101,13 +101,13 @@ public:
        /** 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_;
index 9b4b97dc7689fff864215562e71cac1df57408c0..28e4a0a9695fc8cffb9232b786ccb181ec2bec07 100644 (file)
@@ -289,13 +289,13 @@ public:
                        { 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()
        {
index 4d13f44d0f1a9f7da338fa3d6a22bf28f863c575..e4446b4220798994f2083ccb85501c62464a88db 100644 (file)
@@ -92,7 +92,7 @@ public:
        BufferParams const & params() const { return bp_; }
 
 public Q_SLOTS:
-       void onBufferViewChanged();//override
+       void onBufferViewChanged() override;
        // OK button clicked
        void slotOK();
        // Apply button clicked
@@ -204,9 +204,9 @@ private:
        GuiIdListModel * selectedModel() { return &modules_sel_model_; }
 
        /// Apply changes
-       void applyView();
+       void applyView() override;
        /// update
-       void updateContents();
+       void updateContents() override;
        ///
        void updateAvailableModules();
        ///
@@ -238,24 +238,24 @@ private:
        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;
        ///
index cc4caefbaf7fac0997713c2abce97314eb73727c..337692fc943840cd65520e34295965bbaddf19ed 100644 (file)
@@ -28,12 +28,12 @@ public:
 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;
        //@}
 };
 
index fe4393d581e4495fdd2ebb87d1a006623c3353d9..6a560eedf93ebf90e7ab0acc84d6c8f0413317d7 100644 (file)
@@ -42,15 +42,15 @@ private:
        ///
        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);
index e1157e977c3e9935f4e757b2f6828df10cd708ce..28044a47faef1a00167ebd749fe1cefaaf1a8a74 100644 (file)
@@ -49,22 +49,22 @@ private:
        ///
        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,
index c19a3cd426cbe10d2f3200acaa6860f635e30725..e9af0ddcd690d954ff33411c2b5cd1a43c4c798a 100644 (file)
@@ -34,39 +34,39 @@ public:
 
        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;
 
index 6446949daf39d54ab08f8ee7f57ddc67e55c43c5..66f614fef48db3d9e69716872cc036562d9b2432 100644 (file)
@@ -52,15 +52,15 @@ private Q_SLOTS:
 
 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; }
        //@}
 
        ///
index 9be11ab6896c92eeceed25c6432add9bc633e36f..7fc00dd0b0f4073d3c8b3fae4fe488630f9ceb32 100644 (file)
@@ -34,12 +34,12 @@ private Q_SLOTS:
 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_;
index 3f24fce848d0eab4636b2521f863762c27c07cd4..bedd77c75d9f5d8460b22d707cb8c6126b52c725 100644 (file)
@@ -30,13 +30,13 @@ public:
 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;
        //@}
 };
 
index 1106c3e02e9b72eb14d5064441f1c857cc679671..1c94692ebeeca4f763a43483d44420ad530a81af 100644 (file)
@@ -47,15 +47,15 @@ private Q_SLOTS:
 
 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 {
@@ -73,11 +73,11 @@ private:
        /// 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;
 
index 8a74c8087d981345e66a91130b282f852f7d89cf..bb99a22efdda4962e32bcd6ee6659c1d4b2ee65d 100644 (file)
@@ -34,17 +34,17 @@ private Q_SLOTS:
 
 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_;
index 03973c11ad68e83ef0217908953ce6eed17dee87..a82f73ff936cc27950d5e285b8ca34e6a848e89f 100644 (file)
@@ -35,13 +35,13 @@ public:
 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_;
 };
index 261f145a5e32b24932eed16cf5b18058249c2f8e..7eb6fd4e3766b842d3500fdb7cca445106b68149 100644 (file)
@@ -30,13 +30,13 @@ public:
 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;
        //@}
 };
 
index 076d5444b129f21cd7f89d4461f4fc824a1de9d3..ce4b00ffc560b0b443a375e597b8fb2c12402b88 100644 (file)
@@ -29,12 +29,12 @@ public:
 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;
        //@}
 };
 
index b9717d35e7b8a671f301bf32e317bedb33b9716c..07be5f4deb7a9608cce5725085aab637b333107f 100644 (file)
@@ -45,19 +45,19 @@ private Q_SLOTS:
        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 &);
 
index 6d5462faa26d0895ae73ac30a4bfc67ee9d4fe75..6851994701067974cc0c442297ac4e4af6fee13f 100644 (file)
@@ -62,7 +62,7 @@ public:
        LogHighlighter(QTextDocument * parent);
 
 private:
-       void highlightBlock(QString const & text);
+       void highlightBlock(QString const & text) override;
 
 private:
        QTextCharFormat infoFormat;
index ba4a479f5e59ae42e81df42d792b6f687890b786..dc143f1ea70303a6bbd434cc1936be98139757b9 100644 (file)
@@ -32,7 +32,7 @@ public:
        GuiLog(GuiView & lv);
 
 private Q_SLOTS:
-       void updateContents();
+       void updateContents() override;
        /// find content
        void find();
        /// jump to next error message
@@ -46,7 +46,7 @@ private Q_SLOTS:
 
 private:
        /// Apply changes
-       void applyView() {}
+       void applyView() override {}
 
        /// log syntax highlighter
        LogHighlighter * highlighter;
@@ -54,13 +54,13 @@ private:
        /** \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;
index 62be392ff9ed0464243cc77f2f172d2f2689f3e4..e86678be350f4d566780fe471c67698e9629275b 100644 (file)
@@ -52,24 +52,24 @@ private Q_SLOTS:
 
 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();
        ///
index 532bdef5c43e05542b48cd8fb074d488247fd779..8c2a7ded7cf91ebc1f493eb5c1911f245219ef20 100644 (file)
@@ -28,10 +28,10 @@ class GuiMathMatrix : public GuiDialog, public Ui::MathMatrixUi
 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 *);
index 30fb2c846fe02f6ffa304757cee8da6006ca81d7..3799d7476738a97fc3eba5562a049d23cc78bfdf 100644 (file)
@@ -31,13 +31,13 @@ public:
 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;
        //@}
 };
 
index a53f55e023d7d66d0157705529cdb3e256ec307c..bccc781427f655e4e61e7c61920d731f99587619 100644 (file)
@@ -28,17 +28,17 @@ private Q_SLOTS:
        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_;
index 49e0074d64a67140053729c489cbc144dc2f4d9a..4e8d31bc1e23921ec9053f2ed92f6f7e7322ef06 100644 (file)
@@ -33,14 +33,14 @@ public:
 
        /// 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:
index d28a7a1493d52c087f114c3f6b3026f3a8afbbad..55ae113df8f50a0a0fda38bf858cc7a7eadd87cf 100644 (file)
@@ -28,17 +28,17 @@ private Q_SLOTS:
        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_;
index b591f1d343528159a4d18633196a26f4d2c96d34..c17110ecae7f0b49837cfbd7387830b4cf9b177f 100644 (file)
@@ -1879,8 +1879,8 @@ class FormatValidator : public QValidator
 {
 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;
@@ -1946,7 +1946,7 @@ public:
                : FormatValidator(parent, f)
        {}
 private:
-       QString toString(Format const & format) const
+       QString toString(Format const & format) const override
        {
                return toqstr(format.name());
        }
@@ -1966,7 +1966,7 @@ public:
                : FormatValidator(parent, f)
        {}
 private:
-       QString toString(Format const & format) const
+       QString toString(Format const & format) const override
        {
                return toqstr(translateIfPossible(format.prettyname()));
        }
index 3699144939a8fd3e291f0789e32e3e73098e2bb5..a9ea86a6faff04c9b500962f2519a4c2c969640e 100644 (file)
@@ -76,18 +76,18 @@ Q_SIGNALS:
 
 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);
index ad1a195446e28dee4b3c160f9e4189d6b0014b03..39571a75875c9289e40197b7a81f279709917a46 100644 (file)
@@ -35,13 +35,13 @@ private Q_SLOTS:
 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;
        //@}
 };
 
index 74343057c2c7d4c68a5a03b63f28df25c3e53d8d..c27a4d1e2459a2232918bc573ca662905393481f 100644 (file)
@@ -34,19 +34,19 @@ private Q_SLOTS:
 
 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_;
index 94989093198bef63d477d84915ac4f5b6fb9b599..2c7322072f2e1ad69f21f0a789376c3b64d88a88 100644 (file)
@@ -52,16 +52,16 @@ public:
        ~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:
index d46bbad0a346ac8acdc282d12880b2b760fe02d8..2dcd63e3684b0d8d17d624dfc0b95e38f98c0f1e 100644 (file)
@@ -33,7 +33,7 @@ public:
        GuiRef(GuiView & lv);
        /// Dialog inherited methods
        //@{
-       void enableView(bool enable);
+       void enableView(bool enable) override;
        //@}
 
 private Q_SLOTS:
@@ -54,10 +54,10 @@ 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 &);
        ///
@@ -65,11 +65,11 @@ private:
        ///
        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();
 
@@ -84,11 +84,11 @@ private:
        /// 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:
        ///
index a47825a25b7e433a364ffe2897f0e053feccd2bf..f61707704e12f52aaa9044205064cdcc2307130d 100644 (file)
@@ -35,10 +35,10 @@ private Q_SLOTS:
 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,
index ba0a2456f4960bf2ea63892ea1e4729fdecb5c80..69437454e6bd0e85ade04b6baf85750f628ab117 100644 (file)
@@ -40,24 +40,24 @@ private Q_SLOTS:
 
 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:
        ///
index db82eae87e56cc963d13a2db1be745aa1ff20e18..9e5d1dd2c25d36c1c22150e802ac5ba287de241c 100644 (file)
@@ -30,15 +30,15 @@ public:
 
 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_;
index 41989697cf0695e72a7c167a27d2b8003a10e493..5792f02cf60ffcc1e11a7c0e44eeb3ea462dd70d 100644 (file)
@@ -70,12 +70,12 @@ public:
 
 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_;
index ea863b49686fb03137119c61654346e836582305..a4fd4af650da3d2c0afc4fc5cd29010bf9053210 100644 (file)
@@ -210,22 +210,22 @@ public:
                : 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();
index dde0623688182144d26d237c76d27d57d6670385..7799e560db0b9a956a2e859e121daf2ef73add46 100644 (file)
@@ -31,11 +31,11 @@ public:
 
        /// 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:
index a546ec09c7056581eab862cd83d3f0596dbd6118..612d0ed39f0136847045f574f8712053479363a8 100644 (file)
@@ -43,12 +43,12 @@ private 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;
        //@}
 
        ///
index 0c3a9511497f1513a2efc645f363ac8d9a4dabf0..7495bc73b26bb921dd18513edbc69ec1a8ebd08c 100644 (file)
@@ -35,17 +35,17 @@ private Q_SLOTS:
 
 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;
index bada1fa2dc986a438f11586384395aa7678a3e4d..167f19dce989e1fb2ffe4c195ca3b2822d6f3eef 100644 (file)
@@ -40,7 +40,7 @@ public:
 
 public Q_SLOTS:
        ///
-       void updateView();
+       void updateView() override;
 
 private Q_SLOTS:
        ///
@@ -54,15 +54,15 @@ 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);
index 5fab7f69781279d9c38225f2387a245e048d8bac..00990f47fda3c8aae2df890512831e6f36d5bf3c 100644 (file)
@@ -28,7 +28,7 @@ class GuiThesaurus : public GuiDialog, public Ui::ThesaurusUi
 public:
        GuiThesaurus(GuiView & lv);
 
-       void checkStatus();
+       void checkStatus() override;
 
 private Q_SLOTS:
        void change_adaptor();
@@ -40,17 +40,17 @@ private Q_SLOTS:
 
 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);
@@ -72,7 +72,7 @@ private:
        docstring lang_;
 
        /// not needed.
-       void apply() {}
+       void apply() override {}
 };
 
 } // namespace frontend
index 4042b8583bab9e766e9aa55310384e54d0a513f9..c8826f7e0992895bc0e761c2e713a42d43b043ba 100644 (file)
@@ -35,20 +35,20 @@ public:
                        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);
        ///
index f58069bde3b82ab8fc25c1b9ec699b169a5f243e..65f81c9b211b326d3c9637d1de68fe51c91ec0eb 100644 (file)
@@ -172,7 +172,7 @@ public:
                        setIcon(getIcon(*tbinfo->items.begin()->func, true));
        }
 
-       void mousePressEvent(QMouseEvent * e)
+       void mousePressEvent(QMouseEvent * e) override
        {
                if (initialized_) {
                        QToolButton::mousePressEvent(e);
index 36b4fecffa2f8192d7e21da3684e457d59084728..83de979d4bf69ba727a753fc90406b64b7b7ff4a 100644 (file)
@@ -35,12 +35,12 @@ private Q_SLOTS:
 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;
        //@}
 };
 
index 948deb9a756c8378faa666f9974db143287037bd..cb351d1177fefd81bd6070cefd4ecd34f69294b6 100644 (file)
@@ -236,7 +236,7 @@ public:
                setFocusPolicy(Qt::StrongFocus);
        }
 
-       void paintEvent(QPaintEvent *)
+       void paintEvent(QPaintEvent *) override
        {
                int const w = width_;
                int const h = height_;
@@ -250,7 +250,7 @@ public:
                pain.drawPixmap(x, y, w, h, splash_);
        }
 
-       void keyPressEvent(QKeyEvent * ev)
+       void keyPressEvent(QKeyEvent * ev) override
        {
                KeySymbol sym;
                setKeySymbol(&sym, ev);
index 48f2903b74dce98bddabcbf04b56799eeb8c1c43..cd589a83088deec46d3ca6a087b6bd21b8a3d03c 100644 (file)
@@ -104,22 +104,22 @@ public:
 
        /// 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.
index 6aae1dfdd4f07351f5b68eecbd85482b04673cb6..0a50ea8b57c4a1b56554a6e784ed942196b55976 100644 (file)
@@ -289,7 +289,7 @@ private Q_SLOTS:
        void ignore() const;
 
 protected:
-       void mouseDoubleClickEvent(QMouseEvent * event); //override
+       void mouseDoubleClickEvent(QMouseEvent * event) override;
 
 public:
        /// wa != 0
index 2cb1265d8cb49775cedf4518d256948097cba545..8721690c9dafae04d3264de890ee5c4704d452b9 100644 (file)
@@ -33,12 +33,12 @@ private Q_SLOTS:
 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; }
        //@}
 
        ///
index 98014d6cbd3703954c52641e9c728e6dbc0e4e77..6152570cb263a96572f756de7fb5320eac746f6f 100644 (file)
@@ -100,7 +100,7 @@ public:
 
 private:
 
-       void synchronousFunctionCall()
+       void synchronousFunctionCall() override
        {
                return_value_ = func_();
        }
@@ -163,7 +163,7 @@ public:
 
 private:
 
-       void synchronousFunctionCall()
+       void synchronousFunctionCall() override
        {
                func_();
        }
index 48385e2345712496e23df7b661628a39bb3d6caf..2683a4da83fb8f3794766805bda540cc0d049b1d 100644 (file)
@@ -41,7 +41,7 @@ public:
 
 protected Q_SLOTS:
        void onWidget_changed();
-       void applyView();
+       void applyView() override;
        void resetDialog();
        void on_buttonBox_clicked(QAbstractButton *);
        void on_immediateApplyCB_stateChanged(int state);
@@ -50,11 +50,11 @@ protected Q_SLOTS:
 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();
index 01cb60e652eb8455038270b2a458d812221e136f..95814c942f604ab58e49fec129e0618d3a76db80 100644 (file)
@@ -63,13 +63,13 @@ public:
        {}
        ///
        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:
        ///
index 3c94781897068bc36636fd21cc5cd574955439d8..8d0529a919830140de57271a63a47370f557d39a 100644 (file)
@@ -2079,7 +2079,7 @@ void Menu::Impl::populate(QMenu * qMenu, MenuDefinition const & menu)
 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;
index 6d0f9afedbb2a2bf22daab637f2bdd5654675261..e880158dc13ece1d98c3bfb2dba839155fd65b1a 100644 (file)
@@ -151,9 +151,9 @@ protected:
        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"; }
 };
 
@@ -166,8 +166,8 @@ public:
 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;
 };
 
 
@@ -177,9 +177,9 @@ protected:
        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"; }
 };
 
@@ -192,8 +192,8 @@ public:
 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;
 };
 
 
@@ -223,7 +223,7 @@ protected:
        explicit ClipOption(ClipData const & data_) : data(data_) {}
 
 private:
-       virtual std::string const placeholder_impl() const
+       std::string const placeholder_impl() const override
                { return "$$Clip"; }
 };
 
@@ -236,7 +236,7 @@ public:
 private:
        explicit ClipLatexOption(ClipData const & data_)
                : ClipOption(data_) {}
-       virtual std::string const option_impl() const;
+       std::string const option_impl() const override;
 };
 
 
@@ -248,9 +248,9 @@ public:
 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;
 };
@@ -262,7 +262,7 @@ protected:
        explicit ResizeOption(ResizeData const & data_) : data(data_) {}
 
 private:
-       virtual std::string const placeholder_impl() const
+       std::string const placeholder_impl() const override
                { return "$$Resize"; }
 };
 
@@ -275,7 +275,7 @@ public:
 private:
        explicit ResizeLatexOption(ResizeData const & data_)
                : ResizeOption(data_) {}
-       virtual std::string const option_impl() const;
+       std::string const option_impl() const override;
 };
 
 
@@ -285,7 +285,7 @@ protected:
        explicit RotationOption(RotationData const & data_) : data(data_) {}
 
 private:
-       virtual std::string const placeholder_impl() const
+       std::string const placeholder_impl() const override
                { return "$$Rotate"; }
 };
 
@@ -298,7 +298,7 @@ public:
 private:
        explicit RotationLatexOption(RotationData const & data_)
                : RotationOption(data_) {}
-       virtual std::string const option_impl() const;
+       std::string const option_impl() const override;
 };
 
 
index 922d1cd743137a97d55eeb1454e5bc46fe9c053c..5557e25fc9647d69d562ce67044adb262e971beb 100644 (file)
@@ -593,7 +593,7 @@ public:
        /// 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
index 933d66b32d5adc84cb0d35bdda301c5c48c0339c..d77f3ca65e27c1e0ddf8fcc47961a7abf02cd351 100644 (file)
@@ -30,7 +30,7 @@ public:
        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,
@@ -42,59 +42,59 @@ public:
        /// \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 *);
        ///
@@ -130,13 +130,13 @@ 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 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; }
        //@}
 };
 
index f0528f82c8077a89788c2346266d161341fb6071..6eae701f272f19e031560e2dfac99313c7c26b16 100644 (file)
@@ -44,27 +44,27 @@ public:
        /// \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
@@ -84,17 +84,17 @@ private:
        /// \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 &);
index 932fb0f48a720e1b550ee34766f07ecfc293e3f3..d82d8adab47d923d1db0968f5f75c328004c78c9 100644 (file)
@@ -37,38 +37,38 @@ public:
        ///
        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
@@ -98,17 +98,17 @@ private:
        //@{
        ///
        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;
        //@}
 };
 
index 3398a52ed600962a172805ad8760b68a0817c867..cc80da3ecd219a8de3426f344313d2febd0b3c90 100644 (file)
@@ -102,64 +102,64 @@ public:
        /// \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:
index 42b11d215d58944bbeb8e4360ba02e8f8620233e..6106ce5a5c3babbd8923c8783d5e2a2d59cf9b6b 100644 (file)
@@ -61,34 +61,34 @@ public:
 
 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.
@@ -100,21 +100,21 @@ private:
         * 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;
index 1fb1022faadc02e58c28f855165514a953cd2839..734564aaaf0288b0ba0953c93e9dd45cd09122fd 100644 (file)
@@ -25,7 +25,7 @@ public:
        ///
        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
@@ -35,61 +35,61 @@ public:
        /// 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_;
index 3190c9a01c6441cfb69a90d6fb37608acdcbc4ce..2d5175ffd96ae7eacddade72090ad2c3771ab1bd 100644 (file)
@@ -45,11 +45,11 @@ protected:
        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_;
index e9f03479a16570c12bbb66ce64fe4a325eb2bd1f..b085a2c9428c30f5eb411225bc943b96dfec051a 100644 (file)
@@ -39,39 +39,39 @@ public:
        /// \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
@@ -111,13 +111,13 @@ private:
        /// \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;
        //@}
 
        ///
index 95a8e1f52c9830f369a6e85c993a4e3cd38897c0..f07aec09f773394da90cb480b029415400d14808 100644 (file)
@@ -43,45 +43,45 @@ public:
        ///
        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);
        ///
@@ -141,37 +141,37 @@ public:
        /// 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_;
         ///
index 0c0cd1a954adbb76b726508d71de51d41ea1e2d9..7b2b5bde08700cee77d958a6c886afcc01876525 100644 (file)
@@ -43,9 +43,9 @@ public:
        ///
        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,
@@ -70,41 +70,41 @@ public:
        /// \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:
index b50f71be5602b3777d5eebbde2959915cfacb34d..92d6f5b0613d68e3a7dfa1f5d073a6fe4aa54a46 100644 (file)
@@ -25,31 +25,31 @@ public:
        /// \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
@@ -73,13 +73,13 @@ private:
        /// \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;
index b24c93d628e16ae8a40c34a24e73364de049cf61..1e127fc095ffa36f05750e8db6b2f4d60f40ea98 100644 (file)
@@ -39,38 +39,38 @@ public:
        ///
        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; }
 };
 
 
index 8fb95b33d8a7c5a446e8e791a49acf01c3d5b739..f124445f5eea4723d50612b0f6abb2bf361365d9 100644 (file)
@@ -110,60 +110,60 @@ public:
        /// 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.
         */
index da29da565db16b54b90ad0e186a980a7f8fb10c3..a781fb8a7680d0d93d498b7a406ecc523c6682aa 100644 (file)
@@ -25,26 +25,26 @@ public:
        ///
        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:
        ///
@@ -52,7 +52,7 @@ protected:
 
 private:
        ///
-       Inset * clone() const { return new InsetFlex(*this); }
+       Inset * clone() const override { return new InsetFlex(*this); }
        ///
        std::string name_;
 };
index bdf68089a9a49a085ca7e4bc24052b98cad77190..bb9b6451911fe391749abd6c02f18720c1d78ff1 100644 (file)
@@ -73,57 +73,57 @@ public:
        ///
        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_;
 };
index e0ae669de0ca8842b12f3ba8fef6b7d7bd97c0a1..489b0fea98b0e939355a0da8bc6accdf7de68f2d 100644 (file)
@@ -30,28 +30,28 @@ public:
        /// \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
@@ -68,15 +68,15 @@ private:
        /// \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;
        //@}
 };
 
index bbc8a6934aca850b36249bf2eb023b477858377c..1e4b0d26e83749e97e550ef6ceef6bbd5dab78e2 100644 (file)
@@ -28,26 +28,26 @@ public:
        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_;
        ///
index c7805a643923e8e5533d190ec9433e7d4802a8d9..41732853f2a0caba3491dbb048651fd3280734da 100644 (file)
@@ -25,20 +25,20 @@ public:
        ///
        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; }
 };
 
 
index c987ed06159adbcf4b191febb86b23f8577bfbf2..c68356569dc8320ec6a7cb6ea16dd40ac363f342 100644 (file)
@@ -53,75 +53,75 @@ public:
 
        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.
@@ -141,7 +141,7 @@ public:
        /// 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:
        ///
@@ -152,7 +152,7 @@ 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_;
 };
index 90ae05b94f7413f721373c68ccdf102747937abe..cfbc51e1c6a0504df31a55370418a38dd76d3d04 100644 (file)
@@ -28,32 +28,32 @@ public:
        /// \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
@@ -71,18 +71,18 @@ private:
        /// \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;
        //@}
 
        ///
index 695179738f400581467e15d451341fb131e35200..e788b2b156f0547280bba56154a504f411d35986 100644 (file)
@@ -42,50 +42,50 @@ public:
 
        /// \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:
index 273e572e258ddd7a1c5607180b92e6d9ce5d754d..3305e6bf6e0f1f282dd3e01c5d79f5d58eca7507 100644 (file)
@@ -60,42 +60,42 @@ public:
        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();
        ///
@@ -137,39 +137,39 @@ public:
        ///
        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_;
index db7beca5d49e6ad268fd7d461c3497892b6ca84d..5a9958cec8962d58231c8baffe5bb8b798e4a0a4 100644 (file)
@@ -63,51 +63,51 @@ public:
        ///
        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
@@ -120,7 +120,7 @@ public:
        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:
@@ -144,11 +144,11 @@ private:
 
        /// \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
@@ -157,7 +157,7 @@ private:
        // 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)
index a999ee5bb3195b77793c26a64c4ad727733e1559..bddb8ba380edb96667fb95f3e3dd82133c7f2d73 100644 (file)
@@ -45,46 +45,46 @@ public:
        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;
@@ -101,25 +101,25 @@ public:
        /// \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
@@ -136,13 +136,13 @@ private:
        /// \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;
        //@}
 };
 
index b130ab71b476b4c62282b55b72d9dbd848a65dfb..8f574fc7d6f8685743dc44ae585ef30c77efba23 100644 (file)
@@ -168,55 +168,55 @@ public:
        ///
        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 *);
        ///
index 4747bb5d3e4e6a470f88152b21cf70718dba5b9f..a5b9fefd824845bdc513644bc7804097b8f17b1b 100644 (file)
@@ -40,29 +40,29 @@ public:
        /// \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
@@ -80,18 +80,18 @@ public:
        /// \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;
        //@}
 
        ///
index f11071fb6c8cd3210cd05416316135c0ce4f2c04..33aa15c2cdfd0de177edd84769ba7d84931a1adb 100644 (file)
@@ -201,7 +201,7 @@ public:
        ///
        bool isDisplay() const { return display_; }
        ///
-       bool forcelocalfontswitch() const { return forcelocalfontswitch_; }
+       bool forceLocalFontSwitch() const { return forcelocalfontswitch_; }
        ///
        docstring const & obsoleted_by() const { return obsoleted_by_; }
        ///
index 4c918a872d0fe17022f44eb9522b3af7f48856ef..a6935445f217d6fb3a12b185f6c66980c90fb50a 100644 (file)
@@ -29,7 +29,7 @@ public:
 
        /// 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)
@@ -40,18 +40,18 @@ private:
 
        /// 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.
index a74569c54464cefc26eeb03449bb26ce789cbcc8..41be4394ceb9a8c9431946c11b993395e6dbdebc 100644 (file)
@@ -40,49 +40,49 @@ public:
        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_;
index 749a0c4152eb4f03b0372356590cd40c21bee6b6..8b6a403258932c297e38c1b16eb8d606a92ec623 100644 (file)
@@ -27,19 +27,19 @@ public:
        ///
        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); }
 };
 
 
index 4209dfee380bcc1ed3e9ab5f43319134919c236f..3d540a8618467bccda3074d48d092b87d18bebe0 100644 (file)
@@ -47,44 +47,44 @@ public:
        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_;
index 1fb3436b62d373e728b85d35bd16d66f997b32d5..e7f1126a8aabcd5914752fce2d7d8325eebe1532 100644 (file)
@@ -55,38 +55,38 @@ public:
        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_;
index b36527c7bb02036ea192898ef133058ae82d0c6d..144064977a14d76bc55397008ab3fb5d1a11aea2 100644 (file)
@@ -31,23 +31,23 @@ public:
        /// \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
@@ -65,13 +65,13 @@ private:
        /// \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
@@ -87,21 +87,21 @@ public:
        /// \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
@@ -119,19 +119,19 @@ private:
        /// \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;
        //@}
 };
 
index f76ce21ed64e1fb0546ccf9bcb0d7b6f6d840e9c..aeab8f038b282084ec43a7636b4ffacfd500efb0 100644 (file)
@@ -58,49 +58,49 @@ public:
        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;
 
index 89ccfb3d765ea6d2c9d6183d331770533d36368a..72281df2ae26e7181c54927187275063ad9945d4 100644 (file)
@@ -58,42 +58,42 @@ public:
        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;
 
index 123d947c99b8428e354edbbfa541284b1bab0eef..834d892e23fa7dcc8a8348f85c92111e1a58ead1 100644 (file)
@@ -42,37 +42,37 @@ public:
 
        /// \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:
index 09eadec3c752436e35d923281bf2d53655742f44..5bc7f392696eeb72f4dbd4e561e9689af418201f 100644 (file)
@@ -129,50 +129,50 @@ public:
                    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);
@@ -213,7 +213,7 @@ protected:
        /// \name Protected functions inherited from Inset class
        //@{
        ///
-       void doDispatch(Cursor & cur, FuncRequest & cmd);
+       void doDispatch(Cursor & cur, FuncRequest & cmd) override;
        //@}
 };
 
index 192ca0d6967acedadccb490fb5ef94df90be2417..d18f61939c86a72c6c1bbc0caff5ba780512be52 100644 (file)
@@ -39,44 +39,44 @@ public:
        /// \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
@@ -99,13 +99,13 @@ private:
        /// \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
index 45e766f943a9fc6388f941f2d3aa3d2231c830fc..424772cfb91f7707adfd4c969a87e7e36959260f 100644 (file)
@@ -63,71 +63,71 @@ public:
        /// \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:
index 85d9347ed8000e867081e6768108bcb95155b556..3f8a84cb07de16577d7dea122d14701ae32fa4fb 100644 (file)
@@ -51,7 +51,7 @@ public:
        /// 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:
@@ -65,40 +65,40 @@ public:
                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_;
index 0ebcec1f5480fa1ebf737882118be5353c8d59d2..1d200764a4caf866014e91f6b8c70d7ab3c41d76 100644 (file)
@@ -113,57 +113,57 @@ public:
        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:
        ///
index 286e3b990738193e2d9f3011c3b6c9e6244e85e5..3056b105b45cc3a6fe4c924c41e8bb68d55c8ce8 100644 (file)
@@ -61,49 +61,49 @@ public:
        ///
        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_;
index 4b92e329a2ec95f86d91f146f05e0122b0e875e7..045ae07e6d0f3c0729ab83c7384c2a453c3e0119 100644 (file)
@@ -33,24 +33,24 @@ public:
        /// \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
@@ -74,13 +74,13 @@ private:
        /// \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;
        //@}
 };
 
index fd942049ba6d07c53d86acfb84610443196ca07b..ef9735632d5a975b16070c3ff2ae9f224747beca 100644 (file)
@@ -55,12 +55,12 @@ public:
        ///
        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; }
        ///
@@ -73,18 +73,18 @@ public:
        /// 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();
@@ -124,19 +124,19 @@ private:
        ///
        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; }
 };
 
 
@@ -944,90 +944,90 @@ public:
        ///
        ~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!
@@ -1037,52 +1037,52 @@ public:
        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
@@ -1104,21 +1104,21 @@ private:
        ///
        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,
index ca09a683c31549851dd419c2a5f26e788e367d26..2f32bd25392611d694d10b2286e9ef48c2174081 100644 (file)
@@ -45,7 +45,7 @@ public:
        ///
        InsetText(InsetText const &);
        ///
-       void setBuffer(Buffer &);
+       void setBuffer(Buffer &) override;
 
        ///
        Dimension const dimensionHelper(BufferView const &) const;
@@ -53,35 +53,35 @@ public:
        /// 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,
@@ -96,18 +96,18 @@ public:
        ///
        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);
        ///
@@ -117,98 +117,98 @@ public:
        ///
        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: ".
@@ -222,18 +222,18 @@ public:
                              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;
 
index 6e307561d52f20b7e0adf70a27e613779829a860..9b95f00ff066c2168c1abf780b6a592438060ec3 100644 (file)
@@ -28,47 +28,47 @@ public:
        /// 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;
 
index 5619dc042b73f491accce98d5c5d986ad1a3dcbc..02e0a202b61cb37d5e68ebaa5d1571b8315e0ac1 100644 (file)
@@ -56,42 +56,42 @@ public:
        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_;
index 2dc2da6c9ed4ff47e51f59a1f84a538df7fed69e..69513f09adc38da022b6370b1e4233be0460e14f 100644 (file)
@@ -25,12 +25,12 @@ class RenderButton : public RenderBase
 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,
@@ -42,7 +42,7 @@ public:
        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.
index 37f3aaaa93cb84f02f3d76569fe40f33d68042ee..8b17bd882474ebaca86d5dfccd7900a9e3ad7f96 100644 (file)
@@ -26,12 +26,12 @@ class RenderGraphic : public RenderBase
 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);
@@ -39,7 +39,7 @@ public:
        void reload() const;
 
        /// equivalent to dynamic_cast
-       virtual RenderGraphic * asGraphic() { return this; }
+       RenderGraphic * asGraphic() override { return this; }
 
 private:
        /// Not implemented.
index c6eee309d07016900ba0288f1e7084ed1b9757a6..ca85c04e95e0762d413b12bd02d2b584890b3257 100644 (file)
@@ -47,12 +47,12 @@ public:
 
        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.
@@ -86,7 +86,7 @@ public:
        getPreviewImage(Buffer const & buffer) const;
 
        /// equivalent to dynamic_cast
-       virtual RenderPreview * asPreview() { return this; }
+       RenderPreview * asPreview() override { return this; }
 
 private:
        /// Not implemented.
@@ -112,7 +112,7 @@ class RenderMonitoredPreview : public RenderPreview {
 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);
        ///
@@ -127,7 +127,7 @@ public:
        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
index 067bf6e876a2d0b7e46ee7f596fc37a89e44341a..157fcb1a9b7179828ecc5618caf6ccca151f3353 100644 (file)
@@ -116,16 +116,16 @@ public:
        ///
        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 };
@@ -248,10 +248,10 @@ public:
        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; }
@@ -261,14 +261,14 @@ public:
        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; }
 };
index 25b81339dc650a85e20c5eee1901dbca786818eb..5186f5504e8cbc5361f6c68323b0c77227c13d01 100644 (file)
@@ -26,50 +26,50 @@ public:
        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"; }
        ///
index b1cc3110abd0da5be86150b6e90514db4a1e8758..ce372a1707e55203f5500c95a0d06f789a6d8f71 100644 (file)
@@ -29,35 +29,35 @@ public:
        /// 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_;
 };
index 83010a92600938a5e606126cced77a1e30865641..f479ed2f032a3b0ffce500b434372ee121ca5ab6 100644 (file)
@@ -23,31 +23,31 @@ public:
        ///
        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;
        ///
index 89f3813510d5651dfaef1ef7ce658f828b45bad8..9d883d2c5d027cae0fa068bd548fd68d44cc4f55 100644 (file)
@@ -28,31 +28,31 @@ public:
        ///
        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;
 };
 
 
index e07fed9c48176c3511a317da759635190bcc0819..0a8bf74cd25f247de2f05ce731b3ff5ff2b54bce 100644 (file)
@@ -23,28 +23,28 @@ public:
        ///
        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_;
 };
@@ -56,28 +56,28 @@ public:
        ///
        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); }
 };
 
 
@@ -87,25 +87,25 @@ public:
        ///
        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_;
 };
@@ -118,25 +118,25 @@ public:
        ///
        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); }
 };
 
 
index 4a9efa716a48b4fa06457e83127f77fbfa092829..35082d1a7a7489f7af69672187e44d17155c5e03 100644 (file)
@@ -26,33 +26,33 @@ public:
        ///
        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;
 };
 
 
index 4fc3fd0bc22a348f1232d2fa683f93b55dd5cb30..c429fb53ed03f5f2642177764d60be13e861cc26 100644 (file)
@@ -28,27 +28,27 @@ public:
        ///
        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_;
 };
index ee88cb5e9d5d226aa3289392e23f6cc588c0e9fa..d6da89043dc4114aeab044e5e284822d8d108c1d 100644 (file)
@@ -24,27 +24,27 @@ public:
        ///
        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;
 };
 
 
index 84e13979e8ba9226a94a4e3e0e1598f5542855d4..f6b9dfc52fcd22717ff813e245b1e1075d72eb01 100644 (file)
@@ -25,42 +25,42 @@ public:
        ///
        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;
 };
 
 
index 6e7ff72c9caf5d98f91b47ebf9eee2bc6654c1aa..64e9ad0f6e3afd9569f47c6b6117f3846c1eb3d6 100644 (file)
@@ -24,39 +24,39 @@ public:
        ///
        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
index 1b30738f76d9d89d0ffbed5319c551b3979e3789..390d77aca04f39c1163eddae2041e13e50838902 100644 (file)
@@ -27,24 +27,24 @@ public:
        ///
        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_;
 };
index 08495b364d76a83b1683c8f5ffcfd8de54b51cf5..55a02c259641f8c478de225302721fee195ad08f 100644 (file)
@@ -26,29 +26,29 @@ public:
        /// 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.
index da4269c9ef9df1cc0f6dec41c8168931be5c36d1..47ed450a5845da86bbb80181be194bc2ae475915 100644 (file)
@@ -28,15 +28,15 @@ public:
        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;
        ///
@@ -44,10 +44,10 @@ public:
        ///
        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_;
index 10b244613f336795d2ad0cbf1548e4770e34c9d2..e4dcf65869eba8ad711c1cf9cc5049d40263dce1 100644 (file)
@@ -29,32 +29,32 @@ public:
        ///
        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
index d6d925230b93c68d0c3993ac1054f9a51db1f621..3f3a54df9de40f433d430af1ee66e551c86e6077 100644 (file)
@@ -26,35 +26,35 @@ public:
        ///
        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;
        ///
index 5a7e8164049cfb7948559b8dd12587adc149d57a..f575ee0b4bca45867bb0a751d272fd81bb755422 100644 (file)
@@ -27,11 +27,11 @@ public:
        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 [...]?
@@ -39,38 +39,38 @@ public:
        /// 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_;
 };
index c7928ef57677818d5ea0d143df2c4bd30489f897..83652e5377b780577214f933c7247b0ef2940cbd 100644 (file)
@@ -24,32 +24,32 @@ public:
        ///
        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;
 
 };
 
index f0d16f12bbb4051fff1a3186106880dd0d6fdc90..486caa2b872d3f34fd17eed4714407176bf2e745 100644 (file)
@@ -28,24 +28,24 @@ public:
        ///
        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;
 };
 
 
index 9155f7e11a0fa9513a324fdfeecf83d3dd124ebc..d2026de204dd1664e331821acf3a59f8de69e5fb 100644 (file)
@@ -25,26 +25,26 @@ public:
        ///
        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
index 45dfa2ba9a41b3a73c090452a19d4baa45bc7a28..ac491aff752046ca205664be00ae00d0f0036809 100644 (file)
@@ -24,29 +24,29 @@ class InsetMathEnsureMath : public InsetMathNest {
 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;
 };
 
 
index 9bc338d90482e4f16db20dde75fa334cf2b79a81..22f6fecaabe17403ea9235695e212eb5967fdb00 100644 (file)
@@ -24,20 +24,20 @@ public:
        ///
        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_;
 };
index c3a43acfd1c0e0a605ab33a094316ae359701720..48c16e98d883b2aa0efda0addffdc0f72c90c736 100644 (file)
@@ -28,29 +28,29 @@ public:
        ///
        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_;
 };
index 8e86571168e87f59bf42e5e776ed1718b94078f4..3205048af9bd44b3566d62952077c2a203cc4c77 100644 (file)
@@ -39,28 +39,28 @@ public:
        ///
        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;
 
index 2dc524177ec391bad471a1eb08a13c1a3c8ef34e..32a360069fb9645ed3a5cd3ac68d9521775304db 100644 (file)
@@ -26,42 +26,42 @@ public:
        ///
        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_;
 };
index 261696d104465b222517338878e61e068849f5a3..fe313411e41f9babbd4936f5fcb1a98d9f84e6bb 100644 (file)
@@ -26,32 +26,32 @@ public:
        ///
        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
index ba92006a985a976a8bbfe5f5196657a344e1a122..0ced11473a7df0819efba0cb16247a9587213fbf 100644 (file)
@@ -25,17 +25,17 @@ public:
        ///
        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; }
 };
 
 
@@ -60,46 +60,46 @@ public:
        ///
        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_;
 };
@@ -121,27 +121,27 @@ public:
        ///
        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;
        ///
index fa7c2f2691636d3b96da1a6ce93c16ac6645c7a5..d78e0891a5830a859e59fee5931b87f77999d653 100644 (file)
@@ -104,17 +104,17 @@ public:
        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,<,>
@@ -144,36 +144,36 @@ public:
        ///
        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);
@@ -192,9 +192,9 @@ public:
        /// 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; }
        ///
@@ -202,7 +202,7 @@ public:
        ///
        void setDefaults();
        ///
-       virtual bool interpretString(Cursor & cur, docstring const & str);
+       bool interpretString(Cursor & cur, docstring const & str) override;
 
        ///
        virtual int colsep() const;
@@ -218,32 +218,32 @@ public:
        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
@@ -282,7 +282,7 @@ protected:
        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.
@@ -296,7 +296,7 @@ private:
        ///
        char v_align_; // FIXME: add approp. type
        ///
-       Inset * clone() const;
+       Inset * clone() const override;
 };
 
 
index 42144a3f4bfebbd07bbd210d60b766b5f092478a..0b085a11f948d5f934b3d91ca404f1a1040f068c 100644 (file)
@@ -47,26 +47,26 @@ public:
        ///
        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;
        ///
@@ -74,7 +74,7 @@ public:
        ///
        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); }
        ///
@@ -82,131 +82,131 @@ public:
        ///
        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.
@@ -256,7 +256,7 @@ private:
        /// 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_;
@@ -281,19 +281,19 @@ public:
        ///
        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:
        ///
index 58d540d1fcfb27c2172af646f8b0e14fdda9cd3a..efb83e244f2e523b1a4bb6296578eb9745bfb87c 100644 (file)
@@ -32,24 +32,24 @@ public:
        ///
        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_;
 };
index 0ad64af111b815ecae5ca6856798852370c829eb..87ff656d933f3435ad58c8417556fef56b38f319 100644 (file)
@@ -25,18 +25,18 @@ public:
        ///
        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;
 };
 
 
index 634c595e7f2d796af3b89a0bd774bdf1c72fb094..1aee218906a55c152226a085f5261b321095065c 100644 (file)
@@ -27,25 +27,25 @@ public:
        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;
 };
 
 
index 5743dd0e452b2a12311d51b8a512a9d285f4f1f5..15b5d29d9c1ef11f4a9ccaaa1d7b9890987d221c 100644 (file)
@@ -64,7 +64,7 @@ public:
                        asArray(def, def_);
        }
        ///
-       void setBuffer(Buffer & buffer)
+       void setBuffer(Buffer & buffer) override
        {
                Inset::setBuffer(buffer);
                def_.setBuffer(buffer);
@@ -74,9 +74,9 @@ public:
        ///
        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
        {
@@ -86,7 +86,7 @@ public:
                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);
@@ -121,17 +121,17 @@ public:
                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.
@@ -139,42 +139,42 @@ public:
                        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
@@ -185,7 +185,7 @@ public:
 
 private:
        ///
-       Inset * clone() const
+       Inset * clone() const override
        {
                return new InsetArgumentProxy(*this);
        }
index 4332148bb99501e230122015086e71c8ed2f4249..38afcf066ae4411633a754355c2385109575f92b 100644 (file)
@@ -33,56 +33,56 @@ public:
        ///
        ~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);
@@ -90,30 +90,30 @@ public:
        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);
@@ -133,10 +133,10 @@ public:
        DisplayMode displayMode() const;
 
        ///
-       bool extraBraces() const;
+       bool extraBraces() const override;
 
        ///
-       docstring name() const;
+       docstring name() const override;
        /// FIXME: Often dangling.
        MacroData const * macro() const;
        ///
@@ -155,12 +155,12 @@ public:
        /// 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;
@@ -190,7 +190,7 @@ private:
        /// 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;
 
@@ -204,21 +204,21 @@ private:
 
 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
index fe42f2be3662c60a84865f2cfa9867ea208f21fd..4fe0de435b9fdbe6ef2c150d2ac53f8d9e4a62fc 100644 (file)
@@ -26,16 +26,16 @@ class InsetMathHash : public InsetMath {
 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:
        ///
@@ -53,13 +53,13 @@ public:
        /// 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_;
 };
index 6c109696a753bc90877bd59c89ced44aa430a680..e48d169ce0249f6bead756b16b7cdb202e216ce7 100644 (file)
@@ -67,15 +67,15 @@ public:
        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_;
        ///
@@ -190,15 +190,15 @@ public:
                        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;
 };
 
 
@@ -252,13 +252,13 @@ public:
        ///
        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_;
 };
@@ -290,13 +290,13 @@ public:
        ///
        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_;
 };
@@ -342,15 +342,15 @@ public:
        ///
        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;
 };
 
 
index bdba22143f7f6e0fa9b33e5cca85c6f68d434b62..24a0b14875bc276c43c3249bb8e23a0df682cf68 100644 (file)
@@ -37,28 +37,28 @@ public:
        /// 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;
        ///
@@ -83,41 +83,41 @@ public:
        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,
index 49c5ce4e5f146924b1318ea584336dd4db3b0335..6f13b0f6293dd97453bf4d2866b2ab716bb88a9c 100644 (file)
@@ -27,31 +27,31 @@ public:
        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_;
        ///
index 703d2d879d152c7d573f2e1f115e335b6a0a4d4d..0a6579011ed7c0f550d8dc205be179bb7e78f1e3 100644 (file)
@@ -31,36 +31,36 @@ public:
        ///
        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; }
@@ -68,74 +68,74 @@ public:
        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:
        ///
@@ -144,10 +144,10 @@ 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);
index 68d08bd31598b37c5feded4a751119be9b513e91..e7481bb21f9674cdf0a83a7abbb1dc4aa6ed360d 100644 (file)
@@ -26,7 +26,7 @@ public:
        ///
        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;
        ///
@@ -35,24 +35,24 @@ public:
        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_;
 };
index d7b8353922ef6bde3802b3cd8872b97290317198..095e0f590a61d34310f440023b6ef7380352ca99 100644 (file)
@@ -24,30 +24,30 @@ public:
        ///
        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;
 };
 
 
index 5aadfa8b3ac5abb6017189d53ae72455e63a9453..36d3e9e7e3cdeebd41568ab279fd8fc9a66a7a20 100644 (file)
@@ -25,21 +25,21 @@ public:
        ///
        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;
 };
 
 
index 63b8ea28de772844ef04f35b64132e74d3dcb258..aa1ccbfb83ff95b42da6b44b6641600a69aaae45 100644 (file)
@@ -34,29 +34,29 @@ public:
        ///
        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_;
 };
index 1f5e0b8bb8327d8aee6388d3470635918faf5cb7..33df8bc96d50b670e7f78f300bd7a1f444c9056d 100644 (file)
@@ -27,28 +27,28 @@ public:
        ///
        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;
 
@@ -68,16 +68,16 @@ public:
        ///
        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;
 };
 
 
index 144ecdf7a6ece8f72b034b278ec19a6148c3ec68..a91e89b3b395f7641792fc127120af782eb71144 100644 (file)
@@ -31,36 +31,36 @@ public:
        ///
        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,
index bc048e2f1c2f61ab30c44e5c3a734d8a891127b3..737d7c3ab24192839e95919868e237350222cad7 100644 (file)
@@ -31,46 +31,46 @@ public:
        /// 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;
@@ -97,15 +97,15 @@ public:
        /// 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
@@ -132,7 +132,7 @@ private:
        /// 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_;
index b99e6308d9cd490b1c27578efae0b19d77e44fa6..8bfe8105bb11870abadff4b0496f3079e98de1b1 100644 (file)
@@ -30,33 +30,33 @@ public:
        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); }
@@ -79,13 +79,13 @@ public:
        /// 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
index 446e398f1a6fb772111375a1ed3698afbca7dc49..cf299013bcb5fd8f907f31af55b5475b5ed01fb3 100644 (file)
@@ -27,29 +27,29 @@ public:
        ///
        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_;
        ///
index 32147dbe2549bce617dfd281cc7d2d6b6eb63e4f..ff23305466f92f09d3954c120ac3cbb9b3338ef4 100644 (file)
@@ -31,48 +31,48 @@ public:
        ///
        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;
        ///
index 1efdc93432b56230b5de4a2afd1068058eed49b4..88acce613e0248248943422c9fa9e6a2f14a2fcf 100644 (file)
@@ -25,42 +25,42 @@ public:
        ///
        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
index 8893e7fe1d9e638515a0532d40269e00303dc564..c271414bc1f68fb846ee998b18b082aca66db640 100644 (file)
@@ -24,36 +24,36 @@ public:
        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_;
        ///
index 8a9a6fc4555958c7a48de2ec8069194bb194864e..829d5e209a5356a1a4c020359e8e7707f5e2f2fb 100644 (file)
@@ -27,33 +27,33 @@ public:
        ///
        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;
 };
 
 
index 5740fb922b04136ad171e47fa728c7e365908388..5fa43616256c4c5cb3a1cb2b4afcf72f5acebd2a 100644 (file)
@@ -24,30 +24,30 @@ public:
        ///
        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
index 9f94a7457fe986f056a7054fe1f159e5ceded9c4..9f2e0bf4f509cc907b5f1f111437416d8a9ab8c4 100644 (file)
@@ -28,33 +28,33 @@ public:
        ///
        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_;
 };
index bb3089b61a442944e4234677347863bdfdc01d8e..f5be05ff0302d046ec6e5e79bdfec41d548b4fe6 100644 (file)
@@ -25,34 +25,34 @@ public:
        ///
        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;
 };
 
 
index bbf37f9673464a07e747ba37292510212c1b611d..972fc53844cd33bbc59ec7cd0c7a53154e0e729e 100644 (file)
@@ -29,57 +29,57 @@ public:
        ///
        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_;
        ///
index 481d28ef0e723ed48d42ba4009c1614bcfaef5e5..26676754a949c5bb5efe4bf2b6923492b34530e5 100644 (file)
@@ -27,33 +27,33 @@ public:
        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_;
 };
index 565f0d5cc4fc4ce20fc695b5bb89b6b278fe50f8..a546f2420d968155b449325b630de4d4d2f3d21d 100644 (file)
@@ -24,28 +24,28 @@ public:
        ///
        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;
 };
 
 
index 3d66df7555ebb4227157583396dd66f3c3eb4751..cd73f96aa7ff0fa9519ada1512354a8be8e4cd96 100644 (file)
@@ -25,46 +25,46 @@ public:
                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_;
index 722f4d58cd1d96ffe4e3fb172463ee73732aee1f..7c98ccaa130958eb9a2be84a9ce6b0613e160ff8 100644 (file)
@@ -24,26 +24,26 @@ public:
        ///
        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;
        ///
index 68de02813ae9a0fcb6070f535f32fefe10dd720f..5655e33c751f8dcf3f4e282423d71c3ada11b71e 100644 (file)
@@ -26,36 +26,36 @@ public:
        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_;
        ///
index 923962b03a94891b69635542c930d9e8ee37223d..1cf1e730f4801704e2c955d1b132a4d60def40c8 100644 (file)
@@ -260,7 +260,7 @@ public:
         */
        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`
index 51cacd6d7975a13ebf4097cad53506d00cfa88eb..681b88965d6904a35e255fc9661467465a8a71f5 100644 (file)
@@ -157,7 +157,7 @@ public:
        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);
        }
 
@@ -181,7 +181,7 @@ public:
 
 private:
        ///
-       virtual int generateChild();
+       int generateChild() override;
        ///
        std::string cmd_prefix_;
 };
index 6ec50e1238b305d4346aa1fc45e0eb76aea37d6a..815223d378bb9e843c1da22c88070d63eecee316 100644 (file)
@@ -59,22 +59,22 @@ class ProgressDummy : public ProgressInterface
 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; }
 };
 
 
index 06571197e4b86ed4492a8092e4d346d4467f3a64..3c3502e412d73bfb35295352d120ce92954594f5 100644 (file)
@@ -46,7 +46,7 @@ public:
 
 protected:
        ///
-       void timerEvent(QTimerEvent *) { owner_.emit(); }
+       void timerEvent(QTimerEvent *) override { owner_.emit(); }
 
 private:
        ///
index c2d2d7e86767a743d2a9095ada02363b941e0a85..df41c31f38a734431add73900ce7369ee797848d 100644 (file)
@@ -105,10 +105,10 @@ protected:
                                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
@@ -184,18 +184,18 @@ protected:
                }
                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);
@@ -236,16 +236,16 @@ protected:
                }
                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
@@ -266,7 +266,7 @@ protected:
                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_);
        }
index 6d69915a89ce10a0172793ae7fa735b25318cadd..0c5d3e68a73c5d05d040c48e86887d3d79cee04c 100644 (file)
@@ -115,7 +115,7 @@ class to_local8bit_failure : public bad_cast {
 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.";
        }
@@ -282,7 +282,7 @@ class ctype_failure : public bad_cast {
 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.";
        }
@@ -293,7 +293,7 @@ class num_put_failure : public bad_cast {
 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.";
        }
@@ -360,13 +360,13 @@ protected:
                }
        }
        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)
@@ -376,13 +376,13 @@ protected:
                }
                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)
@@ -392,7 +392,7 @@ protected:
                }
                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();
@@ -411,7 +411,7 @@ protected:
                        }
                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)
@@ -430,25 +430,25 @@ protected:
                }
                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)
@@ -459,13 +459,13 @@ protected:
                }
                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)
@@ -497,51 +497,51 @@ public:
 
 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);
        }
@@ -596,7 +596,7 @@ public:
 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;
@@ -649,28 +649,28 @@ protected:
 
        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);
        }
@@ -678,14 +678,14 @@ protected:
 #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);
        }
@@ -693,28 +693,28 @@ protected:
 
        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);
index 667fad76b6f88d08a1d7ea1a8ff3f99b32d97a1a..8197068c3a22bdbb9632122ceb196575c54bc3c4 100644 (file)
@@ -620,7 +620,7 @@ public:
                  argc_(argc), argv_(argv)
        {
        }
-       void doExec()
+       void doExec() override
        {
                try {
                        int const exit_status = run();