changeTo(null, decode_pdf.getlastPageDecoded()-1, null, null,true);
}else if(name == PdfDictionary.FirstPage){
changeTo(null, 1, null, null,true);
}else if(name == PdfDictionary.GoBack){
//<start-adobe><start-thin>
SwingGUI swingGUI=((SwingGUI)decode_pdf.getExternalHandler(Options.SwingContainer));
if(swingGUI!=null)
swingGUI.currentCommands.executeCommand(Commands.BACK,null);
//<end-thin><end-adobe>
}else if(name == PdfDictionary.LastPage){
changeTo(null, decode_pdf.getPageCount(), null, null,true);
}else if(name == PdfDictionary.ZoomTo){
//create scaling values list, taken from SimpleViewer.init(resourceBundle)
JComboBox scaling = new JComboBox(new String[]{Messages.getMessage("PdfViewerScaleWindow.text"),Messages.getMessage("PdfViewerScaleHeight.text"),
Messages.getMessage("PdfViewerScaleWidth.text"),
"25","50","75","100","125","150","200","250","500","750","1000"});
int option = JOptionPane.showConfirmDialog(null, scaling, Messages.getMessage("PdfViewerToolbarScaling.text")+ ':', JOptionPane.DEFAULT_OPTION);
//<start-adobe><start-thin>
if(option!=-1){
int selection = scaling.getSelectedIndex();
if(selection!=-1){
SwingGUI swing = ((SwingGUI)decode_pdf.getExternalHandler(Options.SwingContainer));
if(swing!=null){
swing.setSelectedComboIndex(Commands.SCALING, selection);
swing.zoom(false);
}
}
}
//<end-thin><end-adobe>
}else if(name == PdfDictionary.FullScreen){
//<start-adobe><start-thin>
SwingGUI swingGUI=((SwingGUI)decode_pdf.getExternalHandler(Options.SwingContainer));
if(swingGUI!=null)
swingGUI.currentCommands.executeCommand(Commands.FULLSCREEN,null);
//<end-thin><end-adobe>
}else if(name == PdfDictionary.AcroForm_FormsJSGuide) {//AcroForm:FormsJSGuide