void appendButtonsToReport(boolean submit) {

		Style style1 = null;
		String s = null;
		if (submit && !"true".equalsIgnoreCase(System.getProperty("mw.cd.mode"))) {
			style1 = page.addStyle(null, null);
			JButton button = new JButton(page.uploadReportAction);
			s = Modeler.getInternationalText("Submit");
			button.setText(s != null ? s : "Submit");
			StyleConstants.setComponent(style1, button);
		}

		Style style2 = page.addStyle(null, null);
		JButton button = new JButton(page.printAction);
		button.setIcon(IconPool.getIcon("printer"));
		s = Modeler.getInternationalText("Print");
		if (s != null)
			button.setText(s);
		StyleConstants.setComponent(style2, button);

		Style style3 = page.addStyle(null, null);
		button = new JButton(page.saveAsAction);
		button.setIcon(IconPool.getIcon("save"));
		s = Modeler.getInternationalText("SaveButton");
		button.setText(s != null ? s : "Save");
		StyleConstants.setComponent(style3, button);

		StyledDocument doc = page.getStyledDocument();

		try {
			doc.insertString(doc.getLength(), "\n\n", null);
			if (submit && !"true".equalsIgnoreCase(System.getProperty("mw.cd.mode"))) {
				doc.insertString(doc.getLength(), " ", style1);
				doc.insertString(doc.getLength(), " ", null);
			}
			doc.insertString(doc.getLength(), " ", style2);
			doc.insertString(doc.getLength(), " ", null);
			doc.insertString(doc.getLength(), " ", style3);
			doc.insertString(doc.getLength(), "\n\n", null);
		}
		catch (BadLocationException ble) {
			ble.printStackTrace();
		}

		SimpleAttributeSet sas = new SimpleAttributeSet();
		StyleConstants.setLeftIndent(sas, 8);
		StyleConstants.setRightIndent(sas, 8);
		doc.setParagraphAttributes(0, doc.getLength(), sas, false);

	}