OpenOffice.org
XMerge API

org.openoffice.xmerge.util
Class OfficeUtil

java.lang.Object
  |
  +--org.openoffice.xmerge.util.OfficeUtil
All Implemented Interfaces:
OfficeConstants

public class OfficeUtil
extends java.lang.Object
implements OfficeConstants

Class providing utility methods for OpenOffice plugins.

Version:
1.1

Fields inherited from interface org.openoffice.xmerge.converter.xml.OfficeConstants
ATTRIBUTE_FO_FONT_FAMILY, ATTRIBUTE_OFFICE_CLASS, ATTRIBUTE_SPACE_COUNT, ATTRIBUTE_STYLE_FONT_PITCH, ATTRIBUTE_STYLE_NAME, ATTRIBUTE_TABLE_BOOLEAN_VALUE, ATTRIBUTE_TABLE_CURRENCY, ATTRIBUTE_TABLE_DATE_VALUE, ATTRIBUTE_TABLE_FORMULA, ATTRIBUTE_TABLE_NAME, ATTRIBUTE_TABLE_NUM_COLUMNS_REPEATED, ATTRIBUTE_TABLE_NUM_ROWS_REPEATED, ATTRIBUTE_TABLE_STRING_VALUE, ATTRIBUTE_TABLE_STYLE_NAME, ATTRIBUTE_TABLE_TIME_VALUE, ATTRIBUTE_TABLE_VALUE, ATTRIBUTE_TABLE_VALUE_TYPE, ATTRIBUTE_TEXT_STYLE_NAME, CELLTYPE_BOOLEAN, CELLTYPE_CURRENCY, CELLTYPE_DATE, CELLTYPE_FLOAT, CELLTYPE_PERCENT, CELLTYPE_STRING, CELLTYPE_TIME, SXC_FILE_EXTENSION, SXC_TYPE, SXW_FILE_EXTENSION, SXW_TYPE, TAG_BOOKMARK, TAG_BOOKMARK_START, TAG_HEADING, TAG_HYPERLINK, TAG_LINE_BREAK, TAG_LIST_HEADER, TAG_LIST_ITEM, TAG_OFFICE_AUTOMATIC_STYLES, TAG_OFFICE_BODY, TAG_OFFICE_DOCUMENT, TAG_OFFICE_DOCUMENT_CONTENT, TAG_OFFICE_DOCUMENT_STYLES, TAG_OFFICE_FONT_DECLS, TAG_OFFICE_MASTER_STYLES, TAG_OFFICE_STYLES, TAG_ORDERED_LIST, TAG_PARAGRAPH, TAG_SPACE, TAG_SPAN, TAG_STYLE_FONT_DECL, TAG_TAB_STOP, TAG_TABLE, TAG_TABLE_CELL, TAG_TABLE_COLUMN, TAG_TABLE_ROW, TAG_TABLE_SCENARIO, TAG_UNORDERED_LIST
 
Constructor Summary
OfficeUtil()
           
 
Method Summary
static org.w3c.dom.Node[] parseText(java.lang.String text, org.w3c.dom.Document parentDoc)
          Method to replace whitespace character within text with appropriate OpenOffice tags.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfficeUtil

public OfficeUtil()
Method Detail

parseText

public static org.w3c.dom.Node[] parseText(java.lang.String text,
                                           org.w3c.dom.Document parentDoc)

Method to replace whitespace character within text with appropriate OpenOffice tags.

Parameters:
text - The text to parse for whitespace.
Returns:
Node array containing OpenOffice XML nodes representing the text.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org