<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
             xmlns:g='urn:import:com.google.gwt.user.client.ui'>

   <ui:style type="org.rstudio.studio.client.notebookv2.CompileNotebookv2OptionsDialog.CompileNotebookv2Style">
      
      .dialog {
	      width: 350px;
	   }
      
      .format {
         width: 100%;
         margin-bottom: 20px;
      }
      
      .formatPanel {
	      margin-top: 10px;
	   }
   </ui:style>

   <g:HTMLPanel styleName="{style.dialog}">
      
      <label>A Notebook is a standalone document that contains the
      code and output from your R script.</label>
      
      <p>
       For more information on compiling notebooks, see the documentation at
        <a href="http://rmarkdown.rstudio.com/r_notebook_format.html" target = "_blank">
           Compiling Notebooks from R Scripts
        </a>
      </p>
 
      <div ui:field="divFormatSelector_" styleName="{style.formatPanel}">
         <g:HorizontalPanel ui:field="formatLabelPanel_">
            <g:Label ui:field="lblFormat_" text="Notebook output format:"/>
         </g:HorizontalPanel>
         <g:ListBox ui:field="listFormat_"
                    styleName="{style.format}">
            <g:item value="html_document">HTML</g:item>
            <g:item value="pdf_document">PDF</g:item>
            <g:item value="word_document">MS Word</g:item>
         </g:ListBox>
      </div>
 
   </g:HTMLPanel>

</ui:UiBinder>