]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetPreview.h
Context menu item to add unknown branch (rest of #7643)
[lyx.git] / src / insets / InsetPreview.h
index b398c89b8f1a52c4b8dbb1d11ed45b34c1987075..15380ba543ea75613ee6f3a2e91ff99a48bfb4ef 100644 (file)
@@ -45,12 +45,12 @@ public:
        
        InsetCode lyxCode() const { return PREVIEW_CODE; }
        
-       docstring name() const { return from_ascii("Preview"); }
+       docstring layoutName() const { return from_ascii("Preview"); }
        
        bool descendable(BufferView const & /*bv*/) const { return true; }
 
-       docstring contextMenu(BufferView const &, int, int) const
-               { return from_ascii("context-preview"); }
+       std::string contextMenuName() const
+               { return "context-preview"; }
 
        void metrics(MetricsInfo & mi, Dimension & dim) const;