<?xml version="1.0" encoding="UTF-8"?>
<GridLayoutPanel Rows="%grid_sizes{*,fit,fit,fit,fit}" Columns="%grid_sizes{*}" Spacing="5">
  <HeaderLayoutPanel>
    <_.Header>
      <AxCheckButton aml.Name="include_notes_button" Text="%intl{Include Notes}" Selected="%bind{options.include_notes}"/>
    </_.Header>
    <_.Body>
      <GridLayoutPanel Rows="%grid_sizes{fit,fit,*}" Columns="%grid_sizes{*}"
                       Enabled="%bind_to_me{include_notes_button.selected}" Spacing="5">

        <HeaderLayoutPanel>
          <_.Header>
            <AxCheckButton aml.Name="show_notes_names_headers" Text="%intl{Show Notes Names as Headers}" Selected="%bind{options.show_note_names}"/>
          </_.Header>
          <_.Body>
            <AxCheckButton Text="%intl{Use Heading Basic Style}" Selected="%bind{options.note_names_use_basic_heading}" Enabled="%bind_to_me{show_notes_names_headers.selected}"/>
          </_.Body>
        </HeaderLayoutPanel>

        <AxLabel Text="%intl{Select and order the notes.}"/>

        <GridLayoutPanel Rows="%grid_sizes{*}" Columns="%grid_sizes{*,fit}" Spacing="5">
          <SelectObjectListPanel aml.Name="notes_list" SelectObjects="%bind{options.ordered_note_fields_to_generate}"/>

          <StackLayoutPanel>
            <SimpleButton Image="%eval{ImageListContainer.PageTreeMenuImageList.Images[3]}" Clicked="up_clicked" Margins="0,0" RenderButtonFrame="false"/>

            <SimpleButton Image="%eval{ImageListContainer.PageTreeMenuImageList.Images[4]}" Clicked="down_clicked" Margins="0,0" RenderButtonFrame="false"/>
          </StackLayoutPanel>
        </GridLayoutPanel>

      </GridLayoutPanel>
    </_.Body>
  </HeaderLayoutPanel>

  <HeaderLayoutPanel>
    <_.Header>
      <AxCheckButton aml.Name="include_page_interactions" Text="%intl{Include Page Interactions}" Selected="%bind{options.include_page_interactions}"  Margins="0,5,0,0"/>
    </_.Header>
    <_.Body>
      <StackLayoutPanel Spacing="5" Enabled="%bind_to_me{include_page_interactions.selected}">
            <GridLayoutPanel Rows="%grid_sizes{fit}" Columns="%grid_sizes{fit,*}" Spacing="5">
              <AxCheckButton aml.Name="include_page_interactions_header" Text="%intl{Section Header}" Selected="%bind{options.include_page_interactions_header}"/>
              <AxTextBox Text="%bind{options.page_interactions_header}" Enabled="%bind_to_me{include_page_interactions_header.selected}"/>
            </GridLayoutPanel>
            <AxCheckButton Margins="15,0,0,0" Text="%intl{Use Heading Basic Style}" Selected="%bind{options.page_interactions_use_basic_heading}" Enabled="%bind_to_me{include_page_interactions_header.selected}"/>
      </StackLayoutPanel>
    </_.Body>
  </HeaderLayoutPanel>

  <HeaderLayoutPanel Margins="0,5,0,0">
    <_.Header>
      <AxCheckButton aml.Name="include_master_list_button" Text="%intl{Include List of Masters Used on Page/Master}"
                     Selected="%bind{options.include_used_masters}"/>
    </_.Header>
    <_.Body>
      <GridLayoutPanel Rows="%grid_sizes{fit}" Columns="%grid_sizes{fit,*}"
                       Enabled="%bind_to_me{include_master_list_button.selected}" Spacing="5">
        <AxCheckButton aml.Name="include_used_masters_header" Text="%intl{Section Header}" Selected="%bind{options.include_used_masters_header}"/>

        <AxTextBox Text="%bind{options.used_masters_header}" Enabled="%bind_to_me{include_used_masters_header.selected}"/>
      </GridLayoutPanel>
    </_.Body>
  </HeaderLayoutPanel>

  <HeaderLayoutPanel Margins="0,5,0,0">
    <_.Header>
      <AxCheckButton aml.Name="include_master_usage_button" Text="%intl{Include Master Usage Report (masters only)}"
                     Selected="%bind{options.include_master_usage_report}"/>
    </_.Header>
    <_.Body>
      <GridLayoutPanel Rows="%grid_sizes{fit, fit, fit}" Columns="%grid_sizes{fit,*}"
                       Enabled="%bind_to_me{include_master_usage_button.selected}" Spacing="5">
        <AxCheckButton aml.Name="include_master_usage_header" Text="%intl{Section Header}" Selected="%bind{options.include_master_usage_header}"/>
        <AxTextBox Text="%bind{options.master_usage_header}" Enabled="%bind_to_me{include_master_usage_header.selected}"/>
        <AxCheckButton aml.Name="include_master_usage_pages_header" Text="%intl{Pages Header}" Selected="%bind{options.include_master_usage_pages_header}"/>
        <AxTextBox Text="%bind{options.master_usage_pages_header}" Enabled="%bind_to_me{include_master_usage_pages_header.selected}"/>
        <AxCheckButton aml.Name="include_master_usage_masters_header" Text="%intl{Masters Header}" Selected="%bind{options.include_master_usage_masters_header}"/>
        <AxTextBox Text="%bind{options.master_usage_masters_header}" Enabled="%bind_to_me{include_master_usage_masters_header.selected}"/>
      </GridLayoutPanel>
    </_.Body>
  </HeaderLayoutPanel>

  <AxCheckButton aml.Name="include_dynamic_panels_button" Text="%intl{Include Dynamic Panels}" Margins="0,5,0,0"
                 Selected="%bind{options.include_dynamic_panels}"/>

</GridLayoutPanel>