~ubuntu-branches/ubuntu/karmic/batik/karmic

« back to all changes in this revision

Viewing changes to sources/org/apache/batik/css/parser/CSSLexicalUnit.java

  • Committer: Bazaar Package Importer
  • Author(s): Matvey Kozhev, Onkar Shinde, Matvey Kozhev
  • Date: 2008-07-19 01:03:05 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20080719010305-0b24skqy185kdsb9
Tags: 1.7.dfsg-0ubuntu1
[ Onkar Shinde ]
* New upstream version (LP: #147818)
* debian/control
  - Add Sun JDK 1.5 as build dependency. Fixes FTBFS on buildd. (LP: #150484)
    Also add Sun JRE as runtime dependencies.
  - Add ant-optional as build dependency.
  - Add libxml-commons-external-java and libxmlgraphics-commons-java as
    build and runtime dependencies.
  - Add 'Homepage' field and correct the url.
  - Change standards version to 3.8.0.
  - Modify Maintainer value to match the DebianMaintainerField
    specification.
* debian/rules
  - Change JAVA_HOME_DIRS for Sun JDK.
  - Add jar file names to DEB_JARS to match new build requirements.
  - Extract version from changelog.
  - Delete bundled jar files in clean target.
  - Don't use hardcoded version in install target.
  - Add get-orig-source target.
* debian/README.Debian-source
  - Change the fo tag name to the one used for this version.
* debian/watch
  - Change expression to match src distribution.
* debian/patches/
  - 01_build_xml.patch, 02_fix_jar_target.patch - Refresh for current source.
  - 03_fix_lib_dirs.patch - Fix the library and classpath references needed
    for pdf transcoder build.
  - 04_fix_transcoder_pkg.patch - Fix transcoder-pkg target to not copy
    files from other jar files.

[ Matvey Kozhev ]
* debian/changelog:
  - Added ".dfsg" to version.
* debian/control, debian/rules:
  - Build with openjdk-6-jdk, depend on openjdk-6-jre.
  - Added java-6-sun as an alternate build JAVA_HOME directory.
  - Fixed get-orig-source to not include debian/ and delete the source dir,
    and made it delete jars from lib/, as done in the current batik package.
* debian/wrappers.sh:
  - Changed java-7-icedtea reference to java-6-openjdk, as the former has been
    removed back in Hardy.
  - Added newline.
* debian/libbatik-java.install:
  - Added newline.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
2
 
3
 
   Copyright 2000-2001,2003  The Apache Software Foundation 
4
 
 
5
 
   Licensed under the Apache License, Version 2.0 (the "License");
6
 
   you may not use this file except in compliance with the License.
7
 
   You may obtain a copy of the License at
 
3
   Licensed to the Apache Software Foundation (ASF) under one or more
 
4
   contributor license agreements.  See the NOTICE file distributed with
 
5
   this work for additional information regarding copyright ownership.
 
6
   The ASF licenses this file to You under the Apache License, Version 2.0
 
7
   (the "License"); you may not use this file except in compliance with
 
8
   the License.  You may obtain a copy of the License at
8
9
 
9
10
       http://www.apache.org/licenses/LICENSE-2.0
10
11
 
23
24
 * This class implements the {@link LexicalUnit} interface.
24
25
 *
25
26
 * @author <a href="mailto:stephane@hillion.org">Stephane Hillion</a>
26
 
 * @version $Id: CSSLexicalUnit.java,v 1.5 2004/08/18 07:13:02 vhardy Exp $
 
27
 * @version $Id: CSSLexicalUnit.java 475477 2006-11-15 22:44:28Z cam $
27
28
 */
28
29
public abstract class CSSLexicalUnit implements LexicalUnit {
29
30
 
30
 
         public static final String UNIT_TEXT_CENTIMETER  = "cm";
31
 
         public static final String UNIT_TEXT_DEGREE      = "deg";
32
 
         public static final String UNIT_TEXT_EM          = "em";
33
 
         public static final String UNIT_TEXT_EX          = "ex";
34
 
         public static final String UNIT_TEXT_GRADIAN     = "grad";
35
 
         public static final String UNIT_TEXT_HERTZ       = "Hz";
36
 
         public static final String UNIT_TEXT_INCH        = "in";
37
 
         public static final String UNIT_TEXT_KILOHERTZ   = "kHz";
38
 
         public static final String UNIT_TEXT_MILLIMETER  = "mm";
39
 
         public static final String UNIT_TEXT_MILLISECOND = "ms";
40
 
         public static final String UNIT_TEXT_PERCENTAGE  = "%";
41
 
         public static final String UNIT_TEXT_PICA        = "pc";
42
 
         public static final String UNIT_TEXT_PIXEL       = "px";
43
 
         public static final String UNIT_TEXT_POINT       = "pt";
44
 
         public static final String UNIT_TEXT_RADIAN      = "rad";
45
 
         public static final String UNIT_TEXT_REAL        = "";
46
 
         public static final String UNIT_TEXT_SECOND      = "s";
47
 
 
 
31
    public static final String UNIT_TEXT_CENTIMETER  = "cm";
 
32
    public static final String UNIT_TEXT_DEGREE      = "deg";
 
33
    public static final String UNIT_TEXT_EM          = "em";
 
34
    public static final String UNIT_TEXT_EX          = "ex";
 
35
    public static final String UNIT_TEXT_GRADIAN     = "grad";
 
36
    public static final String UNIT_TEXT_HERTZ       = "Hz";
 
37
    public static final String UNIT_TEXT_INCH        = "in";
 
38
    public static final String UNIT_TEXT_KILOHERTZ   = "kHz";
 
39
    public static final String UNIT_TEXT_MILLIMETER  = "mm";
 
40
    public static final String UNIT_TEXT_MILLISECOND = "ms";
 
41
    public static final String UNIT_TEXT_PERCENTAGE  = "%";
 
42
    public static final String UNIT_TEXT_PICA        = "pc";
 
43
    public static final String UNIT_TEXT_PIXEL       = "px";
 
44
    public static final String UNIT_TEXT_POINT       = "pt";
 
45
    public static final String UNIT_TEXT_RADIAN      = "rad";
 
46
    public static final String UNIT_TEXT_REAL        = "";
 
47
    public static final String UNIT_TEXT_SECOND      = "s";
 
48
    
 
49
    public static final String TEXT_RGBCOLOR          = "rgb";
 
50
    public static final String TEXT_RECT_FUNCTION     = "rect";
 
51
    public static final String TEXT_COUNTER_FUNCTION  = "counter";
 
52
    public static final String TEXT_COUNTERS_FUNCTION = "counters";
48
53
 
49
54
    /**
50
55
     * The lexical unit type.
384
389
            super(t, prev);
385
390
            parameters = params;
386
391
        }
 
392
        /**
 
393
         * <b>SAC</b>: Implements {@link LexicalUnit#getFunctionName()}.
 
394
         */
 
395
        public String getFunctionName() {
 
396
            switch (lexicalUnitType) {
 
397
            case SAC_RGBCOLOR:          return TEXT_RGBCOLOR;
 
398
            case SAC_RECT_FUNCTION:     return TEXT_RECT_FUNCTION;
 
399
            case SAC_COUNTER_FUNCTION:  return TEXT_COUNTER_FUNCTION;
 
400
            case SAC_COUNTERS_FUNCTION: return TEXT_COUNTERS_FUNCTION;
 
401
            default: break;
 
402
            }
 
403
            return super.getFunctionName();
 
404
        }
 
405
    
387
406
 
388
407
        /**
389
408
         * <b>SAC</b>: Implements {@link LexicalUnit#getParameters()}.