| java.lang.Object org.eclipse.pde.internal.ui.editor.text.HTMLPrinter
HTMLPrinter | public class HTMLPrinter (Code) | | Provides a set of convenience methods for creating HTML pages.
Moved into this package from org.eclipse.jface.internal.text.revisions .
|
Method Summary | |
public static void | addBullet(StringBuffer buffer, String bullet) | public static void | addPageEpilog(StringBuffer buffer) | public static void | addPageProlog(StringBuffer buffer) | public static void | addParagraph(StringBuffer buffer, String paragraph) | public static void | addParagraph(StringBuffer buffer, Reader paragraphReader) | public static void | addSmallHeader(StringBuffer buffer, String header) | public static String | convertToHTMLContent(String content) | public static String | convertTopLevelFont(String styles, FontData fontData) Replaces the following style attributes of the font definition of the html
element:
- font-size
- font-weight
- font-style
- font-family
The font's name is used as font family, a sans-serif default font family is
appended for the case that the given font name is not available. | public static void | endBulletList(StringBuffer buffer) | public static void | insertPageProlog(StringBuffer buffer, int position, RGB bgRGB, URL styleSheetURL) | public static void | insertPageProlog(StringBuffer buffer, int position, RGB bgRGB, String styleSheet) | public static void | insertPageProlog(StringBuffer buffer, int position, RGB bgRGB) | public static void | insertPageProlog(StringBuffer buffer, int position) | public static void | insertPageProlog(StringBuffer buffer, int position, URL styleSheetURL) | public static void | insertPageProlog(StringBuffer buffer, int position, String styleSheet) | public static void | insertStyles(StringBuffer buffer, String[] styles) | public static String | read(Reader rd) | public static void | startBulletList(StringBuffer buffer) |
convertTopLevelFont | public static String convertTopLevelFont(String styles, FontData fontData)(Code) | | Replaces the following style attributes of the font definition of the html
element:
- font-size
- font-weight
- font-style
- font-family
The font's name is used as font family, a sans-serif default font family is
appended for the case that the given font name is not available.
If the listed font attributes are not contained in the passed style list, nothing happens.
Parameters: styles - CSS style definitions Parameters: fontData - the font information to use the modified style definitions since: 3.3 |
insertPageProlog | public static void insertPageProlog(StringBuffer buffer, int position, RGB bgRGB, URL styleSheetURL)(Code) | | |
insertPageProlog | public static void insertPageProlog(StringBuffer buffer, int position, RGB bgRGB, String styleSheet)(Code) | | |
insertPageProlog | public static void insertPageProlog(StringBuffer buffer, int position, RGB bgRGB)(Code) | | |
insertPageProlog | public static void insertPageProlog(StringBuffer buffer, int position)(Code) | | |
insertPageProlog | public static void insertPageProlog(StringBuffer buffer, int position, URL styleSheetURL)(Code) | | |
|
|