]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.document.linking.ui/src/org/simantics/document/linking/report/pdf/PDFDocument.java
Externalize org.simantics.document.linking.ui
[simantics/platform.git] / bundles / org.simantics.document.linking.ui / src / org / simantics / document / linking / report / pdf / PDFDocument.java
index ce0c423e26ede5f1dfaeb7f9d3bdc18a1f768a7f..dd1315bf5daba20255991a32d0d8d91680e4bf0a 100644 (file)
@@ -56,11 +56,11 @@ public class PDFDocument implements Document {
        }
        
        private void defaultFonts() {
-               fonts.put(TextSize.TINY, new Font("Arial", Font.PLAIN, 6));
-               fonts.put(TextSize.SMALL, new Font("Arial", Font.PLAIN, 8));
-               fonts.put(TextSize.MEDIUM, new Font("Arial", Font.PLAIN, 10));
-               fonts.put(TextSize.LARGE, new Font("Arial", Font.PLAIN, 16));
-               fonts.put(TextSize.HUGE, new Font("Arial", Font.BOLD, 24));
+               fonts.put(TextSize.TINY, new Font("Arial", Font.PLAIN, 6)); //$NON-NLS-1$
+               fonts.put(TextSize.SMALL, new Font("Arial", Font.PLAIN, 8)); //$NON-NLS-1$
+               fonts.put(TextSize.MEDIUM, new Font("Arial", Font.PLAIN, 10)); //$NON-NLS-1$
+               fonts.put(TextSize.LARGE, new Font("Arial", Font.PLAIN, 16)); //$NON-NLS-1$
+               fonts.put(TextSize.HUGE, new Font("Arial", Font.BOLD, 24)); //$NON-NLS-1$
                contentStream.setDefaultFont(fonts.get(TextSize.SMALL));
        }
        
@@ -103,7 +103,7 @@ public class PDFDocument implements Document {
                        return (T)getOrCreateToc();
                } else if (cls == DocumentTitlePage.class) {
                        if (titlePage != null)
-                               throw new Exception("Report may contain only one title page");
+                               throw new Exception("Report may contain only one title page"); //$NON-NLS-1$
                        titlePage =  new PDFTitlePage(this);
                        return (T)titlePage;
                }
@@ -160,7 +160,7 @@ public class PDFDocument implements Document {
                if (currentTable != null && currentTable.currentLine > 0) {
                        currentTable.setLinesVisible(false);
                        currentTable.setHeaderVisible(false);
-                       currentTable.writeLine("");
+                       currentTable.writeLine(""); //$NON-NLS-1$
                }
        }