- From: Yves Lafon via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 23 Aug 2005 16:24:22 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2002/css-validator/org/w3c/css/properties/css2
In directory hutz:/tmp/cvs-serv7360/properties/css2
Added Files:
CSS2Default.properties Css2Properties.java Css2Property.java
Css2Style.java Makefile
Log Message:
Patch by Jean-Guilhem Rouel
Better handling of media and properties files
Major reorganization of those properties files
--- NEW FILE: Css2Style.java ---
//
// $Id: Css2Style.java,v 1.1 2005/08/23 16:24:19 ylafon Exp $
// From Philippe Le Hegaret (Philippe.Le_Hegaret@sophia.inria.fr)
//
// (c) COPYRIGHT MIT and INRIA, 1997.
// Please first read the full copyright statement in file COPYRIGHT.html
/*
* $Log: Css2Style.java,v $
* Revision 1.1 2005/08/23 16:24:19 ylafon
* Patch by Jean-Guilhem Rouel
*
* Better handling of media and properties files
* Major reorganization of those properties files
*
* Revision 1.3 2005/08/08 13:18:54 ylafon
* All those changed made by Jean-Guilhem Rouel:
*
* Huge patch, imports fixed (automatic)
* Bug fixed: 372, 920, 778, 287, 696, 764, 233
* Partial bug fix for 289
*
* Issue with "inherit" in CSS2.
* The validator now checks the number of values (extraneous values were previously ignored)
*
* Revision 1.2 2002/04/08 21:18:00 plehegar
* New
*
* Revision 2.1 1997/08/29 13:11:50 plehegar
* Updated
*
* Revision 1.6 1997/08/26 14:25:55 plehegar
* nothing
*
* Revision 1.5 1997/08/22 18:11:29 plehegar
* Added speech-rate and pitch
*
* Revision 1.4 1997/08/22 15:24:21 plehegar
* Udpated
*
* Revision 1.3 1997/08/22 15:05:41 plehegar
* Updated
*
* Revision 1.2 1997/08/21 21:12:01 vmallet
* Minor modifications so we could compile it.
*
* Revision 1.1 1997/08/20 18:42:05 plehegar
* Initial revision
*
*/
package org.w3c.css.properties.css2;
import org.w3c.css.properties.aural.ACssStyle;
import org.w3c.css.parser.CssPrinterStyle;
/**
* @version $Revision: 1.1 $
*/
public class Css2Style extends ACssStyle {
public void print(CssPrinterStyle printer) {
super.print(printer);
}
}
--- NEW FILE: Css2Property.java ---
//
// $Id: Css2Property.java,v 1.1 2005/08/23 16:24:19 ylafon Exp $
// From Philippe Le Hegaret (Philippe.Le_Hegaret@sophia.inria.fr)
//
// (c) COPYRIGHT MIT and INRIA, 1997.
// Please first read the full copyright statement in file COPYRIGHT.html
/*
* $Log: Css2Property.java,v $
* Revision 1.1 2005/08/23 16:24:19 ylafon
* Patch by Jean-Guilhem Rouel
*
* Better handling of media and properties files
* Major reorganization of those properties files
*
* Revision 1.2 2002/04/08 21:18:00 plehegar
* New
*
* Revision 2.1 1997/08/29 13:11:50 plehegar
* Updated
*
* Revision 1.1 1997/08/26 15:57:58 plehegar
* Initial revision
*
*/
package org.w3c.css.properties.css2;
import org.w3c.css.properties.aural.ACssProperty;
/**
* @version $Revision: 1.1 $
*/
public abstract class Css2Property extends ACssProperty {
/**
* Returns true if the property is inherited
*/
public boolean Inherited() {
return Css2Properties.getInheritance(this);
}
}
--- NEW FILE: Css2Properties.java ---
//
// $Id: Css2Properties.java,v 1.1 2005/08/23 16:24:19 ylafon Exp $
// From Philippe Le Hegaret (Philippe.Le_Hegaret@sophia.inria.fr)
//
// (c) COPYRIGHT MIT and INRIA, 1997.
// Please first read the full copyright statement in file COPYRIGHT.html
package org.w3c.css.properties.css2;
import java.net.URL;
import org.w3c.css.properties.css1.CssProperty;
import org.w3c.css.util.Utf8Properties;
/**
* @version $Revision: 1.1 $
*/
public class Css2Properties {
public static Utf8Properties properties;
public static String getString(CssProperty property, String prop) {
return properties.getProperty(property.getPropertyName() + "." + prop);
}
public static boolean getInheritance(CssProperty property) {
return getString(property, "inherited").equals("true");
}
static {
properties = new Utf8Properties();
try {
URL url = Css2Properties.class
.getResource("CSS2Default.properties");
properties.load(url.openStream());
} catch (Exception e) {
System.err
.println("org.w3c.css.properties2.Css2Properties: couldn't load properties ");
System.err.println(" " + e.toString());
}
}
}
--- NEW FILE: Makefile ---
SRCS = Css2Properties.java Css2Property.java Css2Style.java
OBJS = $(SRCS:.java=.class)
PACKAGE = org.w3c.css.properties2
JAVAC = /usr/local/java11/bin/javac
JAVADOC = javadoc
JAVADOCFLAGS = -version -d docs -protected
JAVACFLAGS =
MAKEDEPEND = jmakedepend
.SUFFIXES: .class .java
.java.class:; $(JAVAC) $(JAVACFLAGS) $<
all: $(OBJS)
javadoc:; $(JAVADOC) $(JAVADOCFLAGS) $(PACKAGE)
clean:; -rm -f $(OBJS) *~ core
depend:; $(MAKEDEPEND) $(SRCS)
# DO NOT DELETE THIS LINE -- make depend depends on it.
Css2Style.class:: Css2Style.java\
/usr/local/java11/lib/classes.zip\
/u/www43/0/w3c/plehegar/Work/Java/org.w3c.css.util/Warnings.class\
/u/www43/0/w3c/plehegar/Work/Java/org.w3c.css.parser/CssPrinterStyle.class\
/u/www43/0/w3c/plehegar/Work/Java/org.w3c.css.aural/ACssStyle.class
Css2Properties.class:: Css2Properties.java\
/usr/local/java11/lib/classes.zip\
/u/www43/0/w3c/plehegar/Work/Java/org.w3c.css.properties/CssProperty.class
Css2Property.class:: Css2Property.java\
/u/www43/0/w3c/plehegar/Work/Java/org.w3c.css.aural/ACssProperty.class
--- NEW FILE: CSS2Default.properties ---
# empty :-)
Received on Tuesday, 23 August 2005 16:25:25 UTC