]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBranch.cpp
More headers.
[lyx.git] / src / insets / InsetBranch.cpp
index b272647b83d08c3717a2ee7f9ea27bb449c63da2..f0efce791a34b5f362904900dbb5836d1843bbbd 100644 (file)
@@ -76,6 +76,12 @@ void InsetBranch::read(Buffer const & buf, Lexer & lex)
 }
 
 
+docstring InsetBranch::toolTip(BufferView const & bv, int x, int y) const
+{
+       return _("Branch: ") + params_.branch;
+}
+
+
 void InsetBranch::setButtonLabel()
 {
        docstring s = _("Branch: ") + params_.branch;
@@ -270,6 +276,12 @@ void InsetBranch::validate(LaTeXFeatures & features) const
 }
 
 
+bool InsetBranch::isMacroScope(Buffer const & buf) const 
+{
+       // Its own scope if not selected by buffer
+       return !isBranchSelected(buf);
+}
+
 
 string const InsetBranchMailer::name_("branch");