]> git.lyx.org Git - features.git/commitdiff
remove all trace of editMessage
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 14 Jul 2009 18:56:13 +0000 (18:56 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 14 Jul 2009 18:56:13 +0000 (18:56 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30585 a592a061-630c-0410-9148-cb99ea01b6c8

35 files changed:
src/insets/Inset.cpp
src/insets/Inset.h
src/insets/InsetBox.cpp
src/insets/InsetBox.h
src/insets/InsetBranch.cpp
src/insets/InsetBranch.h
src/insets/InsetCaption.cpp
src/insets/InsetCaption.h
src/insets/InsetCollapsable.cpp
src/insets/InsetERT.cpp
src/insets/InsetERT.h
src/insets/InsetFlex.cpp
src/insets/InsetFlex.h
src/insets/InsetFloat.cpp
src/insets/InsetFloat.h
src/insets/InsetFoot.cpp
src/insets/InsetFoot.h
src/insets/InsetListings.cpp
src/insets/InsetListings.h
src/insets/InsetMarginal.cpp
src/insets/InsetMarginal.h
src/insets/InsetNote.cpp
src/insets/InsetNote.h
src/insets/InsetOptArg.cpp
src/insets/InsetOptArg.h
src/insets/InsetPhantom.cpp
src/insets/InsetPhantom.h
src/insets/InsetTabular.cpp
src/insets/InsetTabular.h
src/insets/InsetText.cpp
src/insets/InsetText.h
src/insets/InsetWrap.cpp
src/insets/InsetWrap.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h

index 86a6040ddd73a1ecf99238ead1c440133b1a0935..9afae918a616956b44f6ec1e76abb63800c1118f 100644 (file)
@@ -377,12 +377,6 @@ bool Inset::autoDelete() const
 }
 
 
-docstring Inset::editMessage() const
-{
-       return _("Opened inset");
-}
-
-
 void Inset::cursorPos(BufferView const & /*bv*/, CursorSlice const &,
                bool, int & x, int & y) const
 {
index f932c0aee36027d5cb79c0c9b01e7ca24ce04aca..ddbb5ac3f0bb9ebebce460515e9470b145194098 100644 (file)
@@ -299,8 +299,6 @@ public:
        /// the string that is passed to the TOC
        virtual void tocString(odocstream &) const {}
 
-       /// what appears in the minibuffer when opening
-       virtual docstring editMessage() const;
        /// can the contents of the inset be edited on screen ?
        // true for InsetCollapsables (not ButtonOnly) (not InsetInfo), InsetText
        virtual bool editable() const;
index ecf9f4fb94e4423686d2d76fa5bff81d7b7bafc3..5ad4aeda5e3b9ce5d2057a9b9ba2fd56055b5dd8 100644 (file)
@@ -107,12 +107,6 @@ InsetBox::~InsetBox()
 }
 
 
-docstring InsetBox::editMessage() const
-{
-       return _("Opened Box Inset");
-}
-
-
 docstring InsetBox::name() const 
 {
        // FIXME: UNICODE
index df61656c45c0b56edb20331b1b67b2427d121f4b..183f54ebcb28dec89cc397d31020c358171c1c30 100644 (file)
@@ -87,8 +87,6 @@ private:
        ///
        friend class InsetBoxParams;
        ///
-       docstring editMessage() const;
-       ///
        InsetCode lyxCode() const { return BOX_CODE; }
        ///
        docstring name() const;
index 17960a2344dbf7382babff9d58d156dacfe1d7f1..12ae7fdcffb97df7e8ae47b54f6a69b2c03234ea 100644 (file)
@@ -51,12 +51,6 @@ InsetBranch::~InsetBranch()
 }
 
 
-docstring InsetBranch::editMessage() const
-{
-       return _("Opened Branch Inset");
-}
-
-
 void InsetBranch::write(ostream & os) const
 {
        params_.write(os);
index 9acbb8de9bf979b4a72ad1ffcf5cb7d17c2688ea..cf791a3cd01bcd65ce3d5ff0321ab2957d68a4f7 100644 (file)
@@ -57,8 +57,6 @@ public:
        void rename(docstring const & newname) { params_.branch = newname; }
 
 private:
-       ///
-       docstring editMessage() const;
        ///
        InsetCode lyxCode() const { return BRANCH_CODE; }
        ///
index f3dbc5808a9ac55b0a1f53c6fb357313860ce689..87888c0fdf8f89d8fbb2d504b6305cf7ce0cfb5f 100644 (file)
@@ -76,12 +76,6 @@ void InsetCaption::read(Lexer & lex)
 }
 
 
-docstring InsetCaption::editMessage() const
-{
-       return _("Opened Caption Inset");
-}
-
-
 void InsetCaption::cursorPos(BufferView const & bv,
                CursorSlice const & sl, bool boundary, int & x, int & y) const
 {
index 5379b171bc0d1f3b680615070cb610dfd633dba5..acbd7c9ea91ef6265ee74854ea7cae65162ca132 100644 (file)
@@ -44,8 +44,6 @@ private:
        ///
        InsetCode lyxCode() const { return CAPTION_CODE; }
        ///
-       docstring editMessage() const;
-       ///
        void cursorPos(BufferView const & bv,
                CursorSlice const & sl, bool boundary, int & x, int & y) const;
        ///
index 5a2e9b67dd58c7f651b024ff23fdf77de08f0582..5a253c8d9d1553c3ef32ea92ed5d1195f4ea5299 100644 (file)
@@ -49,6 +49,29 @@ using namespace std;
 
 namespace lyx {
 
+InsetCollapsable::InsetCollapsable(Buffer const & buf, InsetText::UsePlain ltype)
+       : InsetText(buf, ltype), status_(Inset::Open),
+         openinlined_(false), mouse_hover_(false)
+{
+       setAutoBreakRows(true);
+       setDrawFrame(true);
+       setFrameColor(Color_collapsableframe);
+}
+
+
+InsetCollapsable::InsetCollapsable(InsetCollapsable const & rhs)
+       : InsetText(rhs),
+         status_(rhs.status_),
+         labelstring_(rhs.labelstring_),
+         button_dim(rhs.button_dim),
+         openinlined_(rhs.openinlined_),
+         auto_open_(rhs.auto_open_),
+         // the sole purpose of this copy constructor
+         mouse_hover_(false)
+{
+}
+
+
 InsetCollapsable::CollapseStatus InsetCollapsable::status(BufferView const & bv) const
 {
        if (decoration() == InsetLayout::CONGLOMERATE)
@@ -105,29 +128,6 @@ InsetCollapsable::Geometry InsetCollapsable::geometry() const
 }
 
 
-InsetCollapsable::InsetCollapsable(Buffer const & buf, InsetText::UsePlain ltype)
-       : InsetText(buf, ltype), status_(Inset::Open),
-         openinlined_(false), mouse_hover_(false)
-{
-       setAutoBreakRows(true);
-       setDrawFrame(true);
-       setFrameColor(Color_collapsableframe);
-}
-
-
-InsetCollapsable::InsetCollapsable(InsetCollapsable const & rhs)
-       : InsetText(rhs),
-         status_(rhs.status_),
-         labelstring_(rhs.labelstring_),
-         button_dim(rhs.button_dim),
-         openinlined_(rhs.openinlined_),
-         auto_open_(rhs.auto_open_),
-         // the sole purpose of this copy constructor
-         mouse_hover_(false)
-{
-}
-
-
 docstring InsetCollapsable::toolTip(BufferView const & bv, int x, int y) const
 {
        Dimension dim = dimensionCollapsed(bv);
index 90c595191b7dec6f030153e407e8d389867dd492..4c396a1b9d964192df985a14a77840dc0c68e82d 100644 (file)
@@ -63,12 +63,6 @@ void InsetERT::write(ostream & os) const
 }
 
 
-docstring InsetERT::editMessage() const
-{
-       return _("Opened ERT Inset");
-}
-
-
 int InsetERT::plaintext(odocstream &, OutputParams const &) const
 {
        return 0; // do not output TeX code
index 494f53e929b1216290b4d29fb45ef39a6092f81a..f6df3da8b9042332438fd86681be6f1d6f5c2fe6 100644 (file)
@@ -47,8 +47,6 @@ private:
        ///
        void write(std::ostream & os) const;
        ///
-       docstring editMessage() const;
-       ///
        bool insetAllowed(InsetCode code) const;
        ///
        int plaintext(odocstream &, OutputParams const &) const;
index be730417410f3ccdabd49580de057f2bf7e52c29..76b338004d3e7115b8e433de1e7f41ec07389286 100644 (file)
@@ -46,12 +46,6 @@ InsetLayout::InsetDecoration InsetFlex::decoration() const
 }
 
 
-docstring InsetFlex::editMessage() const
-{
-       return _("Opened Flex Inset");
-}
-
-
 void InsetFlex::write(ostream & os) const
 {
        os << "Flex " <<
index 9e2ed16f741608a8f106a97b9db99654fc980b02..ee52e4729c111c1f31c26cb4daf790e347a9c890 100644 (file)
@@ -27,8 +27,6 @@ public:
        ///
        docstring name() const { return from_utf8(name_); }
        ///
-       docstring editMessage() const;
-       ///
        InsetCode lyxCode() const { return FLEX_CODE; }
        /// Default looks
        InsetLayout::InsetDecoration decoration() const;
index d70d356e7f30af7e2892ff7d558a4ad7c9051e18..5d27f29bea24e94b4243eb31977180da2e57c064 100644 (file)
@@ -274,12 +274,6 @@ void InsetFloat::validate(LaTeXFeatures & features) const
 }
 
 
-docstring InsetFloat::editMessage() const
-{
-       return _("Opened Float Inset");
-}
-
-
 docstring InsetFloat::xhtml(odocstream & os, OutputParams const & rp) const
 {
        FloatList const & floats = buffer().params().documentClass().floats();
index 9ef3dcd9a98c64d25dd7a37eb90e9010bbb5fd59..2abc5654fde06c6e09f89eec4d6b941e4049abbb 100644 (file)
@@ -91,8 +91,6 @@ private:
        ///
        docstring xhtml(odocstream &, OutputParams const &) const;
        ///
-       docstring editMessage() const;
-       ///
        bool insetAllowed(InsetCode) const;
        /** returns true if, when outputing LaTeX, font changes should
            be closed before generating this inset. This is needed for
index d0d432b5fdbbf7f4af0341d86d80cad3cb091bcd..c5ecf4879b232f442181a48235b35e4c6c38e9ea 100644 (file)
@@ -39,12 +39,6 @@ InsetFoot::InsetFoot(Buffer const & buf)
 {}
 
 
-docstring InsetFoot::editMessage() const
-{
-       return _("Opened Footnote Inset");
-}
-
-
 void InsetFoot::updateLabels(ParIterator const & it)
 {
        BufferParams const & bp = buffer().masterBuffer()->params();
index a2c1b7421c9aa73aafbb09359c5a07cf90791f8f..bba24100673490b3542eab06d465380f970c16e1 100644 (file)
@@ -37,8 +37,6 @@ private:
        int plaintext(odocstream &, OutputParams const &) const;
        ///
        int docbook(odocstream &, OutputParams const &) const;
-       ///
-       docstring editMessage() const;
        /// Update the counters of this inset and of its contents
        void updateLabels(ParIterator const &);
        ///
index 42f02825b800244a9403f87d7df126689bae31a0..8c2898d354bc9818adc3ed840e0b8c0dfd2bb9df 100644 (file)
@@ -123,12 +123,6 @@ void InsetListings::read(Lexer & lex)
 }
 
 
-docstring InsetListings::editMessage() const
-{
-       return _("Opened Listing Inset");
-}
-
-
 int InsetListings::latex(odocstream & os, OutputParams const & runparams) const
 {
        string param_string = params().params();
index 51a3f7022c364eb472bbeaaef14642b27156190e..fcf16726ea68054c7dcb3c343742f1926d456582 100644 (file)
@@ -53,8 +53,6 @@ private:
        ///
        void read(Lexer & lex);
        ///
-       docstring editMessage() const;
-       ///
        int latex(odocstream &, OutputParams const &) const;
        ///
        docstring xhtml(odocstream &, OutputParams const &) const;
index 2dbd9e33831c5b95cd1a994dc62d3e6b8a2c64a9..b4e6e8b39e2a3e53c564d3ed18e68c7b4bda940b 100644 (file)
@@ -29,12 +29,6 @@ InsetMarginal::InsetMarginal(Buffer const & buf)
 {}
 
 
-docstring InsetMarginal::editMessage() const
-{
-       return _("Opened Marginal Note Inset");
-}
-
-
 int InsetMarginal::plaintext(odocstream & os,
                             OutputParams const & runparams) const
 {
index 249f083afaa9df820e17040b06c3be27624020ed..8c64fed8557d9b89fcefe280754b519429463524 100644 (file)
@@ -35,8 +35,6 @@ public:
        ///
        int docbook(odocstream &, OutputParams const & runparams) const;
        ///
-       docstring editMessage() const;
-       ///
        void addToToc(DocIterator const &);
 private:
        ///
index 4cbe6172bc9238b72591ea9ad469f4c84c61fba1..862f77f88e69608617a5836a26c5067cf8ed72f9 100644 (file)
@@ -128,12 +128,6 @@ InsetNote::~InsetNote()
 }
 
 
-docstring InsetNote::editMessage() const
-{
-       return _("Opened Note Inset");
-}
-
-
 docstring InsetNote::name() const 
 {
        return from_ascii("Note:" + notetranslator().find(params_.type));
index dd4cddaacaa9aaf1c8e4475155f97ff8fdd1ec66..98238496cb36f6f765081c3f57ce193a530c3816 100644 (file)
@@ -57,8 +57,6 @@ public:
        ///
        InsetNoteParams const & params() const { return params_; }
 private:
-       ///
-       docstring editMessage() const;
        ///
        InsetCode lyxCode() const { return NOTE_CODE; }
        ///
index 392c915cd21579104249ff8e82b3dff0429f5c58..17e40dccb429ee22cd2ac9463dbbf61cd2de7efc 100644 (file)
@@ -26,12 +26,6 @@ InsetOptArg::InsetOptArg(Buffer const & buf)
 {}
 
 
-docstring InsetOptArg::editMessage() const
-{
-       return _("Opened Optional Argument Inset");
-}
-
-
 void InsetOptArg::write(ostream & os) const
 {
        os << "OptArg" << "\n";
index c5aa1115b6cfaf8174fb08054d9b644ecf5da291..1cdc090ea8016cf062024bd91680e0d576bfe8bc 100644 (file)
@@ -39,8 +39,6 @@ private:
        InsetCode lyxCode() const { return OPTARG_CODE; }
        ///
        docstring name() const { return from_ascii("OptArg"); }
-       /// return an message upon editing
-       docstring editMessage() const;
        /// Standard LaTeX output -- short-circuited
        int latex(odocstream &, OutputParams const &) const;
        /// Standard plain text output -- short-circuited
index 2f5daf07e33feb7ea9b8c1fbf61165869cbf3c63..b058a72e26ab580df5028abe41587f45bc56a142 100644 (file)
@@ -126,12 +126,6 @@ InsetPhantom::~InsetPhantom()
 }
 
 
-docstring InsetPhantom::editMessage() const
-{
-       return _("Opened Phantom Inset");
-}
-
-
 docstring InsetPhantom::name() const 
 {
        return from_ascii("Phantom:" + phantomtranslator().find(params_.type));
index 41fba8fb42868c64aa5de5d8a5da2f726995502f..5290c8f606a485d4252137ccf5d7e628f12ebc26 100644 (file)
@@ -57,8 +57,6 @@ public:
        ///
        InsetPhantomParams const & params() const { return params_; }
 private:
-       ///
-       docstring editMessage() const;
        ///
        InsetCode lyxCode() const { return PHANTOM_CODE; }
        ///
index 614d479eebbd8a9a49193cf64126afddd976c819..8ebfeb8110be19b35bf231ed363890daf9f7fcec 100644 (file)
@@ -3295,12 +3295,6 @@ void InsetTabular::drawCellLines(Painter & pain, int x, int y,
 }
 
 
-docstring InsetTabular::editMessage() const
-{
-       return _("Opened table");
-}
-
-
 void InsetTabular::edit(Cursor & cur, bool front, EntryDirection)
 {
        //lyxerr << "InsetTabular::edit: " << this << endl;
index 4470d02dece2ac3fa3dfd65ef5c3581f91a3c144..9ac05fa489cbaac663ff102dad1779e5f54516b3 100644 (file)
@@ -751,8 +751,6 @@ public:
        ///
        void drawSelection(PainterInfo & pi, int x, int y) const;
        ///
-       docstring editMessage() const;
-       ///
        bool editable() const { return true; }
        ///
        bool hasSettings() const { return true; }
index eb01cfb23c1cfd36330fb5e131a08c5fedb79e9b..ed386caa18b79634359da811c799c84a846f849f 100644 (file)
@@ -238,12 +238,6 @@ void InsetText::draw(PainterInfo & pi, int x, int y) const
 }
 
 
-docstring InsetText::editMessage() const
-{
-       return _("Opened Text Inset");
-}
-
-
 void InsetText::edit(Cursor & cur, bool front, EntryDirection entry_from)
 {
        pit_type const pit = front ? 0 : paragraphs().size() - 1;
index c0efea092ec8e6d7fbb152cb9ed272c912bdb4ca..b0897ea394a9af465687b7f6b68cee3a4953151b 100644 (file)
@@ -62,8 +62,6 @@ public:
        ///
        void draw(PainterInfo & pi, int x, int y) const;
        ///
-       docstring editMessage() const;
-       ///
        bool editable() const { return true; }
        ///
        bool canTrackChanges() const { return true; }
index 2d289556447ee48817ef83247f7d8909c5205746..21e06cf5ff944e5bd58978834700e32b1d455dc2 100644 (file)
@@ -173,12 +173,6 @@ void InsetWrap::validate(LaTeXFeatures & features) const
 }
 
 
-docstring InsetWrap::editMessage() const
-{
-       return _("Opened Wrap Inset");
-}
-
-
 int InsetWrap::latex(odocstream & os, OutputParams const & runparams_in) const
 {
        OutputParams runparams(runparams_in);
index e7c316c42a762fcce32fdd61e0c179022b2cb615..2b6c8b7a03949829c408175a8d4b87bbd3d4a390 100644 (file)
@@ -73,8 +73,6 @@ private:
        ///
        docstring xhtml(odocstream &, OutputParams const &) const;
        ///
-       docstring editMessage() const;
-       ///
        bool insetAllowed(InsetCode) const;
        ///
        bool showInsetDialog(BufferView *) const;
index 70c28fd52825f5abcbb0d57d63df40c9c705bb10..c00a6819bb186824d89baa6ced2a603e96c6b534 100644 (file)
@@ -1554,12 +1554,6 @@ void InsetMathHull::edit(Cursor & cur, bool front, EntryDirection entry_from)
 }
 
 
-docstring InsetMathHull::editMessage() const
-{
-       return _("Math editor mode");
-}
-
-
 void InsetMathHull::revealCodes(Cursor & cur) const
 {
        if (!cur.inMathed())
index d5fc0f69df5d5792476c76e2cdf317d2a860b7c9..14c1f0a3967deeca86206f363abd3cdb3f7b725e 100644 (file)
@@ -205,8 +205,6 @@ private:
 // Incorporate me
 //
 public:
-       /// what appears in the minibuffer when opening
-       docstring editMessage() const;
        ///
        virtual void mutateToText();
        ///