<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD JasperReport//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="References" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20">
	<property name="ireport.scriptlethandling" value="0"/>
	<property name="ireport.encoding" value="UTF-8"/>
	<import value="java.util.*"/>
	<import value="net.sf.jasperreports.engine.*"/>
	<import value="net.sf.jasperreports.engine.data.*"/>
	<parameter name="param-notes" class="java.lang.Boolean" isForPrompting="false">
		<defaultValueExpression><![CDATA[Boolean.TRUE]]></defaultValueExpression>
	</parameter>
	<parameter name="param-topic" class="java.lang.String" isForPrompting="false">
		<defaultValueExpression><![CDATA["all"]]></defaultValueExpression>
	</parameter>
	<queryString language="xPath">
		<![CDATA[/references/reference]]>
	</queryString>
	<field name="created" class="java.lang.String">
		<fieldDescription><![CDATA[created]]></fieldDescription>
	</field>
	<field name="descr" class="java.lang.String">
		<fieldDescription><![CDATA[descr]]></fieldDescription>
	</field>
	<field name="topic" class="java.lang.String">
		<fieldDescription><![CDATA[topic]]></fieldDescription>
	</field>
	<field name="notes" class="java.lang.String">
		<fieldDescription><![CDATA[notes]]></fieldDescription>
	</field>
	<sortField name="descr"/>
	<filterExpression><![CDATA[Boolean.valueOf($P{param-topic}.equals("all") || $F{topic}.equals($P{param-topic}))]]></filterExpression>
	<background>
		<band/>
	</background>
	<title>
		<band/>
	</title>
	<pageHeader>
		<band height="19">
			<staticText>
				<reportElement key="staticText-1" x="0" y="0" width="330" height="18"/>
				<textElement verticalAlignment="Bottom" rotation="None">
					<font fontName="DejaVu Sans" size="10" isBold="true" isItalic="false" isUnderline="false" pdfFontName="DejaVuSansBold.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<text><![CDATA[Reference]]></text>
			</staticText>
			<textField evaluationTime="Report" pattern="EEE dd MMM yyyy" isBlankWhenNull="false" hyperlinkType="None">
				<reportElement key="textField" positionType="FixRelativeToBottom" x="361" y="0" width="174" height="18"/>
				<textElement textAlignment="Right" verticalAlignment="Bottom">
					<font fontName="DejaVu Sans" size="10" isBold="true" pdfFontName="DejaVuSansBold.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.util.Date"><![CDATA[new java.util.Date()]]></textFieldExpression>
			</textField>
		</band>
	</pageHeader>
	<columnHeader>
		<band/>
	</columnHeader>
	<detail>
		<band height="31">
			<line>
				<reportElement key="line-3" x="0" y="1" width="535" height="1" forecolor="#CCCCCC"/>
			</line>
			<textField isStretchWithOverflow="true" pattern="" isBlankWhenNull="true" hyperlinkType="None">
				<reportElement key="textField" x="0" y="4" width="535" height="11" isRemoveLineWhenBlank="true"/>
				<textElement rotation="None" markup="none">
					<font fontName="DejaVu Sans" size="9" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{descr} + " \u2302" + $F{topic}]]></textFieldExpression>
			</textField>
			<textField isStretchWithOverflow="true" evaluationTime="Auto" isBlankWhenNull="true" hyperlinkType="None">
				<reportElement key="textField" x="0" y="16" width="535" height="11" isRemoveLineWhenBlank="true">
					<printWhenExpression><![CDATA[$P{param-notes}]]></printWhenExpression>
				</reportElement>
				<box>
					<pen lineWidth="0.0" lineStyle="Double" lineColor="#CCCCCC"/>
					<topPen lineWidth="0.5" lineStyle="Solid" lineColor="#CCCCCC"/>
					<leftPen lineWidth="0.5" lineStyle="Solid" lineColor="#CCCCCC"/>
					<bottomPen lineWidth="0.5" lineStyle="Double" lineColor="#CCCCCC"/>
					<rightPen lineWidth="0.5" lineStyle="Solid" lineColor="#CCCCCC"/>
				</box>
				<textElement markup="none">
					<font fontName="DejaVu Sans" size="9" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA[$F{notes}]]></textFieldExpression>
			</textField>
		</band>
	</detail>
	<columnFooter>
		<band/>
	</columnFooter>
	<pageFooter>
		<band height="35">
			<textField isBlankWhenNull="false" hyperlinkType="None">
				<reportElement key="textField" x="413" y="6" width="100" height="14"/>
				<textElement textAlignment="Right">
					<font fontName="DejaVu Sans" size="8" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Page " + $V{PAGE_NUMBER} + " of "]]></textFieldExpression>
			</textField>
			<textField evaluationTime="Report" isBlankWhenNull="false" hyperlinkType="None">
				<reportElement key="textField" x="515" y="6" width="20" height="14"/>
				<textElement>
					<font fontName="DejaVu Sans" size="8" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["" + $V{PAGE_NUMBER} + ""]]></textFieldExpression>
			</textField>
			<line>
				<reportElement key="line-1" x="0" y="2" width="535" height="1" forecolor="#999999"/>
			</line>
			<textField pattern="" isBlankWhenNull="false" hyperlinkType="Reference">
				<reportElement key="textField-1" x="0" y="20" width="387" height="14"/>
				<textElement>
					<font fontName="DejaVu Sans" size="8" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["www.thinkingrock.com.au"]]></textFieldExpression>
				<hyperlinkReferenceExpression><![CDATA["http://www.thinkingrock.com.au"]]></hyperlinkReferenceExpression>
			</textField>
			<textField hyperlinkType="None">
				<reportElement x="0" y="6" width="425" height="12"/>
				<textElement markup="styled">
					<font fontName="DejaVu Sans" size="8" pdfFontName="DejaVuSans.ttf" pdfEncoding="Identity-H" isPdfEmbedded="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["Key: \u2302Topic"]]></textFieldExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band/>
	</summary>
</jasperReport>
