Lines Matching defs:to

8  * particular file as subject to the "Classpath" exception as provided
18 * 2 along with this work; if not, write to the Free Software Foundation,
46 * Stores all elements for which end tags have to
83 * Set to true after the head has been output.
88 * Set to true when entities (such as <) should be replaced.
114 * @param pos the document location from which to fetch the content
115 * @param len the amount to write out
192 is correct. But, we need to make sure that if current is
255 // translate css attributes to html
565 // PENDING: should this be changed to check for null first?
693 * equal to the tag that is passed in as a parameter.
697 * @return {@code true} if the StyleConstants.NameAttribute is equal to the tag that is passed in as a parameter.
721 // translate css attributes to html
778 // translate css attributes to html
785 // First, find all the tags that need to be removed.
808 // Have to output any tags after firstIndex that still remaing,
845 * Determines whether a the indentation needs to be
872 * the document, and as such this is used to output them.
1009 * Convert the give set of attributes to be html for
1014 * This will put the converted values into <code>to</code>, unless
1017 AttributeSet convertToHTML(AttributeSet from, MutableAttributeSet to) {
1018 if (to == null) {
1019 to = convAttr;
1021 to.removeAttributes(to);
1023 convertToHTML40(from, to);
1025 convertToHTML32(from, to);
1027 return to;
1032 * to HTML tags/attributes (i.e. It will emit an HTML 4.0
1051 * mapping over to an HTML tag/attribute. Other CSS attributes
1054 private static void convertToHTML32(AttributeSet from, MutableAttributeSet to) {
1067 createFontAttribute((CSS.Attribute)key, from, to);
1073 addAttribute(to, HTML.Tag.B, SimpleAttributeSet.EMPTY);
1078 addAttribute(to, HTML.Tag.I, SimpleAttributeSet.EMPTY);
1083 addAttribute(to, HTML.Tag.U, SimpleAttributeSet.EMPTY);
1086 addAttribute(to, HTML.Tag.STRIKE, SimpleAttributeSet.EMPTY);
1091 addAttribute(to, HTML.Tag.SUP, SimpleAttributeSet.EMPTY);
1094 addAttribute(to, HTML.Tag.SUB, SimpleAttributeSet.EMPTY);
1097 addAttribute(to, HTML.Attribute.ALIGN,
1100 // default is to store in a HTML style attribute
1111 addAttribute(to, key, attr);
1115 to.addAttribute(HTML.Attribute.STYLE, value);
1123 private static void addAttribute(MutableAttributeSet to, Object key, Object value) {
1124 Object attr = to.getAttribute(key);
1126 to.addAttribute(key, value);
1141 MutableAttributeSet to) {
1143 to.getAttribute(HTML.Tag.FONT);
1146 to.addAttribute(HTML.Tag.FONT, fontAttr);
1148 // edit the parameters to the font tag
1160 * Copies the given AttributeSet to a new set, converting
1161 * any CSS attributes found to arguments of an HTML style
1164 private static void convertToHTML40(AttributeSet from, MutableAttributeSet to) {
1172 to.addAttribute(key, from.getAttribute(key));
1176 to.addAttribute(HTML.Attribute.STYLE, value);
1181 // Overrides the writing methods to only break a string when
1188 * Writes the line separator. This is overriden to make sure we don't
1201 * This method is overriden to map any character entities, such as
1202 * &lt; to &amp;lt;. <code>super.output</code> will be invoked to
1274 * <code>string</code> to a char[].