# Gambas Form File 3.0

{ Form Form
  MoveScaled(0,0,114,96)
  Text = ("Print preview")
  Icon = Picture["icon:/small/preview"]
  Arrangement = Arrange.Vertical
  Spacing = True
  Margin = True
  { mnuPrint Menu
    Visible = False
    { mnuPrintToFile Menu
      Text = ("Print to file") & "..."
    }
    { Menu1 Menu
    }
  }
  { panPreview Panel
    MoveScaled(1,1,97,4)
    Arrangement = Arrange.Horizontal
    AutoResize = True
    { btnPrint ToolButton
      MoveScaled(1,0,10,4)
      Visible = False
      AutoResize = True
      Text = ("Print")
      Picture = Picture["icon:/small/print"]
      Border = True
    }
    { Spring1 Spring
      MoveScaled(48,0,2,4)
    }
    { Panel9 Panel
      MoveScaled(56,0,39,4)
      Arrangement = Arrange.Horizontal
      AutoResize = True
      Border = Border.Styled
      { btnPrinter MenuButton
        MoveScaled(0,0,35,4)
        Expand = True
        Border = False
        Menu = "mnuPrint"
        MenuOnly = True
      }
      { btnShowSide ToolButton
        MoveScaled(35,0,4,4)
        Visible = False
        ToolTip = ("Toggle option panel")
        Picture = Picture["icon:/small/close"]
      }
    }
    { panZoom Panel
      MoveScaled(15,0,31,4)
      Background = Color.Background
      Ignore = True
      Arrangement = Arrange.Horizontal
      AutoResize = True
      Border = Border.Styled
      { btnZoomOut ToolButton
        MoveScaled(0,0,4,4)
        ToolTip = ("Zoom out")
        Picture = Picture["icon:/small/zoom-out"]
      }
      { lblZoom Label
        MoveScaled(4,0,7,4)
        Alignment = Align.Center
        Text = ("100 %")
      }
      { btnZoomIn ToolButton
        MoveScaled(11,0,4,4)
        ToolTip = ("Zoom in")
        Picture = Picture["icon:/small/zoom-in"]
      }
      { btnOnePage ToolButton btnMode
        Name = "btnOnePage"
        MoveScaled(15,0,4,4)
        Tag = "1"
        ToolTip = ("One page")
        Picture = Picture["icon:/small/page"]
        Toggle = True
      }
      { btnTwoPages ToolButton btnMode
        Name = "btnTwoPages"
        MoveScaled(19,0,4,4)
        Tag = "2"
        ToolTip = ("Two pages")
        Picture = Picture["icon:/small/page-two"]
        Toggle = True
      }
      { btnFullWidth ToolButton btnMode
        Name = "btnFullWidth"
        MoveScaled(23,0,4,4)
        Tag = "3"
        ToolTip = ("Full width")
        Picture = Picture["icon:/small/zoom-width"]
        Toggle = True
      }
      { btnRealSize ToolButton btnMode
        Name = "btnRealSize"
        MoveScaled(27,0,4,4)
        Tag = "4"
        ToolTip = ("Real size")
        Picture = Picture["icon:/small/zoom-normal"]
        Toggle = True
      }
    }
  }
  { Panel1 HBox
    MoveScaled(1,7,98,89)
    Expand = True
    Spacing = True
    { dvwPrint DocumentView
      MoveScaled(2,8,40,43)
      Expand = True
      Border = True
      ShowShadow = True
      ShowPage = True
    }
    { panSide Panel
      MoveScaled(45,0,39,88)
      Arrangement = Arrange.Vertical
      Spacing = True
      Margin = True
      Border = Border.Styled
      { Panel7 HBox
        MoveScaled(1,1,36,4)
        { Label18 Label
          MoveScaled(0,0,21,3)
          Font = Font["Bold,Spacing=0.5,+2"]
          Expand = True
          Text = ("Configuration")
        }
      }
      { txtFile ButtonBox
        MoveScaled(1,6,29,4)
        Picture = Picture["icon:/16/open"]
        ReadOnly = True
      }
      { panResolution HBox
        MoveScaled(1,11,35,4)
        Spacing = True
        { TextLabel1 TextLabel
          MoveScaled(1,0,18,4)
          Text = ("Resolution")
          Alignment = Align.Normal
        }
        { cmbResolution ComboBox
          MoveScaled(20,0,9,4)
          #Translate = False
          Expand = True
          ReadOnly = True
          List = ["75", "150", "300", "600", "1200"]
        }
        { Label11 Label
          MoveScaled(30,0,4,4)
          Text = ("DPI")
        }
      }
      { panRectoVerso HBox
        MoveScaled(1,16,38,4)
        Spacing = True
        { Label2 Label
          MoveScaled(0,0,18,4)
          Text = ("Two-sided")
        }
        { cmbDuplex ComboBox
          MoveScaled(18,0,18,4)
          Expand = True
          ReadOnly = True
          List = [("None"), ("Short side"), ("Long side")]
        }
      }
      { HBox1 HBox
        MoveScaled(2,21,34,4)
        Spacing = True
        { Label4 Label
          MoveScaled(0,0,18,4)
          Text = ("Copies")
        }
        { txtCopies SpinBox
          MoveScaled(13,0,9,4)
          Expand = True
          MinValue = 1
          Value = 1
        }
      }
      { Panel14 HBox
        MoveScaled(2,26,36,4)
        Spacing = True
        { Label10 Label
          MoveScaled(0,0,18,4)
          Text = ("Orientation")
        }
        { cmbOrientation ComboBox
          MoveScaled(19,0,15,4)
          Expand = True
          ReadOnly = True
          List = [("Portrait"), ("Landscape")]
        }
      }
      { Panel8 HBox
        MoveScaled(2,31,36,4)
        Spacing = True
        { Label3 Label
          MoveScaled(0,0,18,4)
          Text = ("Paper")
        }
        { cmbPaper ComboBox
          MoveScaled(19,0,15,4)
          #Translate = False
          Expand = True
          ReadOnly = True
          List = ["Custom", "A3", "A4", "A5", "B5", "Letter", "Executive", "Legal"]
        }
      }
      { pnlCustom VBox
        MoveScaled(2,36,36,9)
        Spacing = True
        { Panel3 HBox
          MoveScaled(1,0,32,4)
          Spacing = True
          { Label5 Label
            MoveScaled(0,0,18,4)
            Text = ("Width")
          }
          { txtWidth SpinBox
            MoveScaled(14,0,9,4)
            Expand = True
            MaxValue = 1000
          }
          { Label7 Label
            MoveScaled(27,0,4,4)
            Text = ("mm")
          }
        }
        { Panel17 HBox
          MoveScaled(1,5,31,4)
          Spacing = True
          { Label6 Label
            MoveScaled(0,0,18,4)
            Text = ("Height")
          }
          { txtHeight SpinBox
            MoveScaled(14,0,9,4)
            Expand = True
            MaxValue = 1000
          }
          { Label8 Label
            MoveScaled(27,0,4,4)
            Text = ("mm")
          }
        }
      }
      { chkGrayScale CheckBox
        MoveScaled(2,46,34,3)
        Text = ("Grayscale")
        Invert = True
      }
      { chkCollateCopies CheckBox
        MoveScaled(2,49,35,3)
        Text = ("Collate copies")
        Invert = True
      }
      { chkReverseCopies CheckBox
        MoveScaled(2,52,36,3)
        Text = ("Reverse order")
        Invert = True
      }
      { Panel10 Panel
        MoveScaled(9,56,12,1)
      }
      { Label19 Label
        MoveScaled(2,58,30,3)
        Font = Font["Bold,Spacing=0.5,+2"]
        Text = ("Margins")
      }
      { Panel2 HBox
        MoveScaled(1,62,32,4)
        Spacing = True
        { Label1 Label
          MoveScaled(0,0,16,4)
          Text = ("Left")
        }
        { txtMarginLeft SpinBox txtMargin
          Name = "txtMarginLeft"
          MoveScaled(14,0,11,4)
          Expand = True
          MaxValue = 1000
        }
        { Label9 Label
          MoveScaled(27,0,4,4)
          Text = ("mm")
        }
      }
      { Panel4 HBox
        MoveScaled(1,67,32,4)
        Spacing = True
        { Label12 Label
          MoveScaled(0,0,16,4)
          Text = ("Right")
        }
        { txtMarginRight SpinBox txtMargin
          Name = "txtMarginRight"
          MoveScaled(14,0,9,4)
          Expand = True
          MaxValue = 1000
        }
        { Label13 Label
          MoveScaled(27,0,4,4)
          Text = ("mm")
        }
      }
      { Panel5 HBox
        MoveScaled(1,72,32,4)
        Spacing = True
        { Label14 Label
          MoveScaled(0,0,16,4)
          Text = ("Top")
        }
        { txtMarginTop SpinBox txtMargin
          Name = "txtMarginTop"
          MoveScaled(14,0,9,4)
          Expand = True
          MaxValue = 1000
        }
        { Label15 Label
          MoveScaled(27,0,4,4)
          Text = ("mm")
        }
      }
      { Panel6 HBox
        MoveScaled(1,77,32,4)
        Spacing = True
        { Label16 Label
          MoveScaled(0,0,16,4)
          Text = ("Bottom")
        }
        { txtMarginBottom SpinBox txtMargin
          Name = "txtMarginBottom"
          MoveScaled(14,0,9,4)
          Expand = True
          MaxValue = 1000
        }
        { Label17 Label
          MoveScaled(27,0,4,4)
          Text = ("mm")
        }
      }
      { Spring6 Spring
        MoveScaled(17,80,3,2)
      }
      { HBox2 HBox
        MoveScaled(3,83,30,4)
        { Spring4 Spring
          MoveScaled(2,1,3,2)
        }
        { btnPrint2 Button btnPrint
          Name = "btnPrint2"
          MoveScaled(7,0,12,4)
          AutoResize = True
          Text = ("Print")
          Picture = Picture["icon:/small/print"]
        }
        { Spring5 Spring
          MoveScaled(20,2,5,1)
        }
      }
      { btnCloseSide ToolButton
        MoveScaled(33,5,4,4)
        ToolTip = ("Toggle option panel")
        Ignore = True
        Picture = Picture["icon:/small/close"]
      }
    }
  }
}
