01: /*
02: * Copyright (c) 2000 World Wide Web Consortium,
03: * (Massachusetts Institute of Technology, Institut National de
04: * Recherche en Informatique et en Automatique, Keio University). All
05: * Rights Reserved. This program is distributed under the W3C's Software
06: * Intellectual Property License. This program is distributed in the
07: * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
08: * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
09: * PURPOSE. See W3C License http://www.w3.org/Consortium/Legal/ for more
10: * details.
11: */
12:
13: package org.w3c.dom.css;
14:
15: import org.w3c.dom.DOMException;
16:
17: /**
18: * The <code>CSS2FontFaceSrc</code> interface represents the src CSS Level 2
19: * descriptor.
20: * <p> For this extension of the <code>CSSValue</code> interface, the
21: * <code>valueType</code> attribute of the underlying <code>CSSValue</code>
22: * interface shall be <code>CSS_CUSTOM</code> .
23: * <p>See also the <a href='http://www.w3.org/TR/2000/CR-DOM-Level-2-20000510'>Document Object Model (DOM) Level 2 Specification</a>.
24: * @since DOM Level 2
25: */
26: public interface CSS2FontFaceSrc extends CSSValue {
27: /**
28: * Specifies the source of the font, empty string otherwise.
29: * @exception DOMException
30: * SYNTAX_ERR: Raised if the specified CSS string value has a syntax
31: * error and is unparsable.
32: * <br> NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
33: * readonly.
34: */
35: public String getUri();
36:
37: public void setUri(String uri) throws DOMException;
38:
39: /**
40: * This attribute contains a list of strings for the format CSS function.
41: */
42: public CSSValueList getFormat();
43:
44: /**
45: * Specifies the full font name of a locally installed font.
46: * @exception DOMException
47: * SYNTAX_ERR: Raised if the specified CSS string value has a syntax
48: * error and is unparsable.
49: * <br> NO_MODIFICATION_ALLOWED_ERR: Raised if this declaration is
50: * readonly.
51: */
52: public String getFontFaceName();
53:
54: public void setFontFaceName(String fontFaceName)
55: throws DOMException;
56:
57: }
|