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 ke...@apache.org on 2001/05/21 14:06:45 UTC

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

keiron      01/05/21 05:06:45

  Modified:    src/org/apache/fop/svg SVGElement.java
  Log:
  cleaned up unneeded code
  
  Revision  Changes    Path
  1.3       +2 -42     xml-fop/src/org/apache/fop/svg/SVGElement.java
  
  Index: SVGElement.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGElement.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SVGElement.java	2001/05/17 12:20:59	1.2
  +++ SVGElement.java	2001/05/21 12:06:42	1.3
  @@ -1,4 +1,4 @@
  -/* $Id: SVGElement.java,v 1.2 2001/05/17 12:20:59 keiron Exp $
  +/* $Id: SVGElement.java,v 1.3 2001/05/21 12:06:42 keiron Exp $
    * Copyright (C) 2001 The Apache Software Foundation. All rights reserved.
    * For details on use and redistribution please refer to the
    * LICENSE file included with these sources."
  @@ -88,28 +88,8 @@
           }*/
   
           if (this.marker == START) {
  -            /* retrieve properties */
  -            String id = this.properties.get("id").getString();
  -            String fontFamily =
  -              this.properties.get("font-family").getString();
  -            String fontStyle =
  -              this.properties.get("font-style").getString();
  -            String fontWeight =
  -              this.properties.get("font-weight").getString();
  -            String fontSz = this.properties.get("font-size").getString();
  -            int fontSize = area.getFontState().getFontSize();
  -            try {
  -                fontSize = Integer.parseInt(fontSz);
  -            } catch (Exception e) {
  -            }
  -
  -            // FIX-ME: should get the font-variant property
  -            this.fs = new FontState(area.getFontInfo(), fontFamily,
  -                                    fontStyle, fontWeight, fontSize, FontVariant.NORMAL);
  +            this.fs = area.getFontState();
   
  -            //						this.width = this.properties.get("width").getString();
  -            //						this.height = this.properties.get("height").getString();
  -
               this.marker = 0;
           }
   
  @@ -141,26 +121,6 @@
                                  };
           ((SVGOMDocument)doc).setSVGContext(dc);
           buildTopLevel(doc, svgRoot);
  -/*
  -        for (int count = 0; count < props.length; count++) {
  -            if (this.properties.get(props[count]) != null) {
  -                String rf = this.properties.get(props[count]).getString();
  -                if (rf != null)
  -                    svgRoot.setAttributeNS(null, props[count], rf);
  -            }
  -        }
  -        //doc.appendChild(topLevel);
  -        int numChildren = this.children.size();
  -        for (int i = 0; i < numChildren; i++) {
  -            Object child = children.elementAt(i);
  -            if (child instanceof SVGObj) {
  -                ((SVGObj) child).addGraphic(doc, svgRoot);
  -            } else if (child instanceof String) {
  -                org.w3c.dom.Text text = doc.createTextNode((String) child);
  -                svgRoot.appendChild(text);
  -            }
  -        }
  -*/
           float width = ((SVGSVGElement) svgRoot).getWidth().getBaseVal().
                         getValue();
           float height = ((SVGSVGElement) svgRoot).getHeight().getBaseVal().
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org