]> git.lyx.org Git - features.git/blobdiff - src/insets/insetbranch.C
Replace LString.h with support/std_string.h,
[features.git] / src / insets / insetbranch.C
index 655d3694c01f6e79f9474815d0fc1aaaeaa1e3c5..6836dd7aaa9ed982fe4a3994aba5efbcd0c0f9c7 100644 (file)
 
 #include <config.h>
 
-#include "Lsstream.h"
-
 #include "insetbranch.h"
-#include "gettext.h"
-#include "lyxfont.h"
-#include "language.h"
+
 #include "buffer.h"
 #include "BufferView.h"
-#include "LaTeXFeatures.h"
-#include "latexrunparams.h"
+#include "funcrequest.h"
+#include "gettext.h"
 #include "lyxlex.h"
-#include "lyxtext.h"
-#include "insets/insettext.h"
-#include "support/LOstream.h"
-#include "support/lstrings.h"
-#include "debug.h"
 
-using std::ostream;
+#include "support/std_sstream.h"
+
 using std::auto_ptr;
+using std::ostream;
+
 
 void InsetBranch::init()
 {
@@ -97,7 +91,7 @@ void InsetBranch::setButtonLabel()
        font.decSize();
        font.decSize();
 
-       setLabel(params_.branch);
+       setLabel("Branch: " + params_.branch);
        font.setColor(LColor::foreground);
        string const color = params_.branchlist.getColor(params_.branch);
        if (!color.empty()) {
@@ -131,6 +125,7 @@ dispatch_result InsetBranch::localDispatch(FuncRequest const & cmd)
        case LFUN_INSET_EDIT:
                if (cmd.button() != mouse_button::button3)
                        return InsetCollapsable::localDispatch(cmd);
+               
                return UNDISPATCHED;
        case LFUN_INSET_DIALOG_UPDATE:
                InsetBranchMailer("branch", *this).updateDialog(bv);
@@ -147,7 +142,6 @@ dispatch_result InsetBranch::localDispatch(FuncRequest const & cmd)
 }
 
 
-
 int InsetBranch::latex(Buffer const & buf, ostream & os,
        LatexRunParams const & runparams) const
 {