summaryrefslogtreecommitdiff
path: root/UI
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-24 00:41:09 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-09-24 00:41:09 +0000
commit9e34b3bf12cfda888c75a3a90decd447752fd4ff (patch)
treeacce70ef204ebf490ca233cf2339007d8a02a413 /UI
parentfe07aaba94c4d6078445ab1ad3082ec39ad0421d (diff)
Adding Excel and OpenDocument spreadsheet options. ODS needs more work.
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1657 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'UI')
-rw-r--r--UI/am-list-accounts.odst30
-rw-r--r--UI/am-list-accounts.xlst30
2 files changed, 60 insertions, 0 deletions
diff --git a/UI/am-list-accounts.odst b/UI/am-list-accounts.odst
new file mode 100644
index 00000000..3b6a7392
--- /dev/null
+++ b/UI/am-list-accounts.odst
@@ -0,0 +1,30 @@
+<workbook>
+ <worksheet name="test" rows="<?lsmb rows.size + 1 ?>" columns="<?lsmb columns.size ?>">
+ <format bottom="1"><row>
+ <?lsmb FOREACH column IN columns ?>
+ <?lsmb IF heading.$column.text ?>
+ <cell text="<?lsmb heading.$column.text ?>" />
+ <?lsmb ELSE ?>
+ <cell text="<?lsmb heading.$column ?>" />
+ <?lsmb END; END ?>
+ </row></format>
+ <?lsmb FOREACH row IN rows ?>
+ <row>
+ <?lsmb FOREACH column IN columns ?>
+ <?lsmb IF row.$column.href ?>
+ <cell text="<?lsmb row.$column.text ?>" />
+ <?lsmb ELSE ?>
+ <cell text="<?lsmb row.$column ?>" />
+ <?lsmb END ?>
+ <?lsmb END ?>
+ </row>
+ <?lsmb END ?>
+ <?lsmb IF totals; t = [] ?>
+ <row>
+ <?lsmb FOREACH column IN columns ?>
+ <cell text="<?lsmb totals.$column ?>" />
+ <?lsmb END ?>
+ </row>
+ <?lsmb END ?>
+ </worksheet>
+</workbook>
diff --git a/UI/am-list-accounts.xlst b/UI/am-list-accounts.xlst
new file mode 100644
index 00000000..7c00fb67
--- /dev/null
+++ b/UI/am-list-accounts.xlst
@@ -0,0 +1,30 @@
+<workbook>
+ <worksheet name="test">
+ <format bottom="1"><row>
+ <?lsmb FOREACH column IN columns ?>
+ <?lsmb IF heading.$column.text ?>
+ <cell text="<?lsmb heading.$column.text ?>" />
+ <?lsmb ELSE ?>
+ <cell text="<?lsmb heading.$column ?>" />
+ <?lsmb END; END ?>
+ </row></format>
+ <?lsmb FOREACH row IN rows ?>
+ <row>
+ <?lsmb FOREACH column IN columns ?>
+ <?lsmb IF row.$column.href ?>
+ <cell text="<?lsmb row.$column.text ?>" />
+ <?lsmb ELSE ?>
+ <cell text="<?lsmb row.$column ?>" />
+ <?lsmb END ?>
+ <?lsmb END ?>
+ </row>
+ <?lsmb END ?>
+ <?lsmb IF totals; t = [] ?>
+ <row>
+ <?lsmb FOREACH column IN columns ?>
+ <cell text="<?lsmb totals.$column ?>" />
+ <?lsmb END ?>
+ </row>
+ <?lsmb END ?>
+ </worksheet>
+</workbook>