int maxWidth,
int heightOffset,
boolean separatorAfter)
{
Commands commands = RStudioGinjector.INSTANCE.getCommands();
AppCommand presHome = commands.presentationHome();
homeButton_ = new ToolbarButton(presHome.getImageResource(), null);
homeButton_.setTitle(presHome.getTooltip());
toolbar.addLeftWidget(homeButton_);
homeSeparatorWidget_ = toolbar.addLeftSeparator();
titleLabel_.addStyleName(ThemeResources.INSTANCE.themeStyles()
.presentationNavigatorLabel());
titleLabel_.getElement().getStyle().setProperty("maxWidth",
maxWidth + "px");
menuWidget_ = toolbar.addLeftPopupMenu(titleLabel_, slidesMenu_);
heightOffset_ = heightOffset;
AppCommand presEdit = commands.presentationEdit();
editSeparatorWidget_ = toolbar.addLeftSeparator();
editButton_ = new ToolbarButton(presEdit.getImageResource(), null);
toolbar.addLeftWidget(editButton_);
if (separatorAfter)