From 88f89987a4329b394ee30a2a77705d3afbb35195 Mon Sep 17 00:00:00 2001 From: stuconnolly Date: Fri, 12 Mar 2010 01:02:52 +0000 Subject: Various printing support enhancements, including: - Splitting out all printing methods to SPPrintController which is category of TableDocument. - The ability to print table relations. - If present the inclusion of table indexes when printing a table's source. - If the user has use monospaced fonts enables, then the print out's tabular data will be in a monospaced font. - Lots of other style enhancements, including page headings and sections headings. --- .../English.lproj/sequel-pro-print-template.html | 57 ++++++++++++++++---- Resources/sequel-pro-mysql-help-template.html | 61 ++++++++++++---------- 2 files changed, 81 insertions(+), 37 deletions(-) (limited to 'Resources') diff --git a/Resources/English.lproj/sequel-pro-print-template.html b/Resources/English.lproj/sequel-pro-print-template.html index 9fe2fe29..6265a3f8 100644 --- a/Resources/English.lproj/sequel-pro-print-template.html +++ b/Resources/English.lproj/sequel-pro-print-template.html @@ -24,14 +24,22 @@ color: #000000; } + h1 { + font-size: 14px; + } + + h2 { + font-size: 11px; + } + table, th, td { border: 0.1em solid #000000; } table { + width: 100%; border-collapse: collapse; border-spacing: 0; - width: 100%; } th, td { @@ -39,8 +47,13 @@ } th { - background-color: #E5E5E5; + text-align: left; font-weight: bold; + background-color: #E5E5E5; + } + + td { + font-family: {{font}}; } tr > td { @@ -54,19 +67,26 @@ tr.odd > td { background-color: #FFFFFF; } + + code { + font-family: Monaco; + } +

{{c.table}}

+

- {% if c.table %}Table: {{c.table}}
{% /if %} - Connection: {{c.username}}{% if c.username %}@{% /if %}{{c.hostname}}{% if c.port %}:{% /if %}{{c.port}}/{{c.database}}
- Generated on: {% now | date_format: "dd MMM yyyy 'at' HH:mm:ss" %} by {{c.version}}
- {% if c.query %}SQL query: {{c.query}}{% /if %} -
+ Connection: {{c.username}}{% if c.username %}@{% /if %}{{c.hostname}}{% if c.port %}:{% /if %}{{c.port}}/{{c.database}}
+ Generated on: {% now | date_format: "dd MMM yyyy 'at' HH:mm:ss" %} by {{c.version}}
+ {% if c.query %}
SQL query: {{c.query}}{% /if %} +

- +

{{title}}

+ +
{% for column in columns %}{% /for %} @@ -80,7 +100,26 @@ {% /for %} -
{{ column }}
+
+ + {% if indexes %} +

Table Indexes


+ + + + + {% for indexColumn in indexColumns %}{% /for %} + + + + {% for index in indexes %} + + {% for cell in index %}{% /for %} + + {% /for %} + +
{{ indexColumn }}
{{ cell }}
+ {% /if %} diff --git a/Resources/sequel-pro-mysql-help-template.html b/Resources/sequel-pro-mysql-help-template.html index 13f14e3d..214c2623 100644 --- a/Resources/sequel-pro-mysql-help-template.html +++ b/Resources/sequel-pro-mysql-help-template.html @@ -1,34 +1,39 @@ - - + + + %@ -- cgit v1.2.3