You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ar...@apache.org on 2001/02/11 01:47:37 UTC

cvs commit: xml-fop/src/org/apache/fop/dom/svg SVGSVGElementImpl.java

arved       01/02/10 16:47:37

  Modified:    src/org/apache/fop/dom/svg SVGSVGElementImpl.java
  Log:
  Patch for SVG viewbox
  
  Revision  Changes    Path
  1.5       +13 -5     xml-fop/src/org/apache/fop/dom/svg/SVGSVGElementImpl.java
  
  Index: SVGSVGElementImpl.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/dom/svg/SVGSVGElementImpl.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- SVGSVGElementImpl.java	2000/11/29 03:21:57	1.4
  +++ SVGSVGElementImpl.java	2001/02/11 00:47:37	1.5
  @@ -1,4 +1,4 @@
  -/*-- $Id: SVGSVGElementImpl.java,v 1.4 2000/11/29 03:21:57 keiron Exp $ --
  +/*-- $Id: SVGSVGElementImpl.java,v 1.5 2001/02/11 00:47:37 arved Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -75,6 +75,8 @@
       SVGAnimatedLength y;
       SVGAnimatedLength width;
       SVGAnimatedLength height;
  +    // This will be null if the user supplied no viewBox attribute
  +    SVGAnimatedRect viewBox;
   
       public SVGSVGElementImpl() {
       }
  @@ -111,6 +113,16 @@
           this.y = y;
       }
   
  +    public SVGAnimatedRect getViewBox()
  +    {
  +	    return viewBox;
  +    }
  +
  +    public void setViewBox(SVGAnimatedRect viewBox)
  +    {
  +	    this.viewBox = viewBox;
  +    }
  +
       public SVGRect getViewport() {
           return null;
       }
  @@ -291,10 +303,6 @@
       }
   
       public void setZoomAndPan(short zoomAndPan) {
  -    }
  -
  -    public SVGAnimatedRect getViewBox() {
  -        return null;
       }
   
       public SVGAnimatedPreserveAspectRatio getPreserveAspectRatio() {