I would strongly advise not to inherit from a case class. It has surprising effects on equals and hashCode, and has been deprecated in Scala 2.8.
Instead, define x in a trait or an abstract class.
scala> trait A { val x: Int }
defined trait A
scala> case class B(val x: Int, y: Int) extends A
defined class B
http://www.scala-lang.org/node/3289
http://www.scala-lang.org/node/1582
Inkscape GNU GPL Open, edit and export documents—but only one page at a time (pages can be later combined using pdf printer). Inkscape is free and open source software.
Local fonts: before using them you must call GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts() or GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames(). Then supply name to Font constructor and specify font via setFont, as in Java 1.1.
I'd like to extend Scribus using Python, not just automate things with it...
Currently, that's not really possible. There is work on making it possible to extend Scribus with Python to some extent, especially the GUI. It's now possible to use PyQt to write your own palettes, but you won't be able to use custom Scribus widgets or get into the innards of the application. The Scribus core is unfortunately not well suited to extension from Python. More advanced or tightly integrated extensions are probably better written as C++ plug-ins.
iPhoto bietet eine sehr komfortable Möglichkeit, ein Fotobuch zu gestalten. Doch andere Fotobuch-Dienstleister bieten oft eine bessere Qualität und günstigere Preise. Beide Vorteile lassen sich nutzen.
In this article, an excerpt from <em>iText in Action</em> (Manning Publications, December 2006), author Bruno Lowagie shows how easy it is to export any Swing component to PDF using iText's PdfGraphics2D object.
# Introductions to several of the Apache Foundation’s hottest projects, including Xerces, Axis, and Xindice
# Building XML–driven websites using the popular Cocoon project
# Transforming XML–based documents into a variety of formats, including PDF, SVG, and PS, using the Formatting Objects Processor (FOP) project
Need help converting HTML documents to PDF? This reference guide shows by example how to use XSLT templates to convert 45 commonly used HTML elements to formatting objects (from the XSL-FO vocabulary) for easy transformation to PDF using XSLT.
<pageSet> <page> <text x="5%" y="10%" font-family="Arial" font-size="12"> I scale to the page, but leave an empty 10% margin for comments. </text> </page> </pageSet>
This matches Elems with one child. :)
If you want to match any number of children, replace the last "_" with "_*" . All part of the magic of unapplySeq. :)
<foo id="bar"/> match { // prints "bar"
case n @ <foo/> if (n \ "@id" text) == "bar" => println("bar")
case n @ <foo/> if (n \ "@id" text) == "baz" => println("baz")
}