Layout Format
Package

The BeanCounter layout file is a zipped file that contains layout.xml and optional image files. The layout file uses the 'bclayout' extension.

To create a layout file, create a layout.xml text file. Select layout.xml and any required image files from the Finder and select Compress from the File menu. Rename the zip file with a unique layout name and add the bclayout extension. To import the layout file, open the Preferences window and select the Layouts tab. Select Import from the menu button at the bottom.

Elements

The following table describes the available layout elements.

Element Child Elements Attributes Required Notes
layout page version Yes
type Yes
page number, header, footer, images, overlays, components font No default for page
textSize No default for page
textColor No default for page
textUnderline No default for page
strokeStyle No
strokeWidth No
strokeColor No
fillColor No
number font No
textSize No
textColor No
textUnderline No
strokeStyle No
strokeWidth No
strokeColor No
fillColor No
horizontalAlignment No
location No
header font No
textSize No
textColor No
textUnderline No
strokeStyle No
strokeWidth No
strokeColor No
fillColor No
horizontalAlignment No
footer font No
textSize No
textColor No
textUnderline No
strokeStyle No
strokeWidth No
strokeColor No
fillColor No
horizontalAlignment No
images image
image x Yes
y Yes
width No
height No
alpha No
path Yes
overlays overdue, paid
overdue font No
textSize No
textColor No
textUnderline No
strokeStyle No
strokeWidth No
strokeColor No
fillColor No
angle No
paid font No
textSize No
textColor No
textUnderline No
strokeStyle No
strokeWidth No
strokeColor No
fillColor No
angle No
components client, business, title, invoice, table, details
client to, name, company, address strokeStyle No
strokeWidth No
strokeColor No
fillColor No
horizontalAlignment No
verticalAlignment No
column Yes
row Yes
to font No
textSize No
textColor No
textUnderline No
name font No
textSize No
textColor No
textUnderline No
company font No
textSize No
textColor No
textUnderline No
address font No
textSize No
textColor No
textUnderline No
business from, name, address, phone, fax, email, website strokeStyle No
strokeWidth No
strokeColor No
fillColor No
horizontalAlignment No
verticalAlignment No
column Yes
row Yes
from font No
textSize No
textColor No
textUnderline No
name font No
textSize No
textColor No
textUnderline No
address font No
textSize No
textColor No
textUnderline No
phone font No
textSize No
textColor No
textUnderline No
fax font No
textSize No
textColor No
textUnderline No
email font No
textSize No
textColor No
textUnderline No
website font No
textSize No
textColor No
textUnderline No
title font No
textSize No
textColor No
textUnderline No
strokeStyle No
strokeWidth No
strokeColor No
fillColor No
horizontalAlignment No
verticalAlignment No
column Yes
row Yes
invoice nameLabel, name, numberLabel, number, dateLabel, date, dueDateLabel, dueDate strokeStyle No
strokeWidth No
strokeColor No
fillColor No
horizontalAlignment No
verticalAlignment No
column Yes
row Yes
nameLabel font No
textSize No
textColor No
textUnderline No
name font No
textSize No
textColor No
textUnderline No
numberLabel font No
textSize No
textColor No
textUnderline No
number font No
textSize No
textColor No
textUnderline No
dateLabel font No
textSize No
textColor No
textUnderline No
date font No
textSize No
textColor No
textUnderline No
dueDateLabel font No
textSize No
textColor No
textUnderline No
dueDate font No
textSize No
textColor No
textUnderline No
table headers, values, totals strokeStyle No
strokeWidth No
strokeColor No
fillColor No
row Yes
headers font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
values date, description, type, quantity, rate, subtotal, tax, total, notes
date font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
description font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
type font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
quantity font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
rate font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
subtotal font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
tax font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
total font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
notes font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
totals headers, values, dueHeader, dueValue
headers font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
values font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
dueHeader font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
dueValue font No
textSize No
textColor No
textUnderline No
fillColor No
horizontalAlignment No
details terms, notes strokeStyle No
strokeWidth No
strokeColor No
fillColor No
horizontalAlignment No
row No
terms font No
textSize No
textColor Yes
textUnderline Yes
notes font No
textSize No
textColor Yes
textUnderline Yes

Attributes

The table below describes the element attributes.

Attributes Value Default
version 1.0
type invoice
font <font name> Times Roman
textSize <size in points> 12
textColor <hex color - #AARRGGBB> #000000
textUnderline none | single | double none
strokeStyle none | solid | dash none
strokeWidth <size in points> 1
strokeColor <hex color - #AARRGGBB> #000000
fillColor <hex color - #AARRGGBB> #00000000
horizontalAlignment left | center | right left
verticalAlignment top | middle | bottom top
column left | center | right
row <integer>
alpha <0-1.0> 0.7
x <pixels>
y <pixels>
width <pixels> <image width>
height <pixels> <image height>
path <relative path to layout file>
angle <degrees - 0-360> 0
location top | bottom top