]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetInfo.h
nomenclWidest(): take (proper) formatting into account.
[lyx.git] / src / insets / InsetInfo.h
index 25fca87e0a23c5583ccf01c4f9e17d8b2eb87887..8cb7f45adb77a8734a7ecd498279e9b4c8db9bb3 100644 (file)
@@ -12,7 +12,7 @@
 #ifndef INSET_INFO_H
 #define INSET_INFO_H
 
-#include "InsetCollapsable.h"
+#include "InsetCollapsible.h"
 
 namespace lyx {
 
@@ -77,7 +77,7 @@ the command buffer (view->Toolbar->Command Buffer).
 
 */
 
-class InsetInfo : public InsetCollapsable {
+class InsetInfo : public InsetCollapsible {
 public:
        enum info_type {
                UNKNOWN_INFO,   // Invalid type
@@ -100,6 +100,11 @@ public:
        docstring layoutName() const;
        ///
        Inset * editXY(Cursor & cur, int x, int y);
+       /** 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 editable() const { return false; }
        ///
@@ -130,7 +135,7 @@ public:
        std::string contextMenu(BufferView const &, int, int) const;
        ///
        std::string contextMenuName() const;
-       /// should paragraph indendation be ommitted in any case?
+       /// should paragraph indendation be omitted in any case?
        bool neverIndent() const { return true; }
 
 private:
@@ -141,7 +146,7 @@ private:
        ///
        void setText(docstring const & str);
        // make sure that the other version of setText is still available.
-       using InsetCollapsable::setText;
+       using InsetCollapsible::setText;
        ///
        info_type type_;
        ///