Difference between revisions of "Oox"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 9: Line 9:
 
This directory includes common code for all filters.
 
This directory includes common code for all filters.
  
=== AttributeList (class) ===
+
=== class AttributeList  ===
 
Provides access to attribute values of an element.  '''AttributeList''' wraps a ''com.sun.star.xml.sax.XFastAttributeList'' object, and provides convenience functions that convert the string value of an attribute to various other data types.  This class is usually used as a local variable declared with an instance of [[XFastAttributeList]] passed from the [[FastParser]] instance.
 
Provides access to attribute values of an element.  '''AttributeList''' wraps a ''com.sun.star.xml.sax.XFastAttributeList'' object, and provides convenience functions that convert the string value of an attribute to various other data types.  This class is usually used as a local variable declared with an instance of [[XFastAttributeList]] passed from the [[FastParser]] instance.
  
=== FragmentHandler (class) ===
+
=== class FragmentHandler ===
 
Top-most parent class that handles fragments.  In most cases this class handles all nested contexts for increased performance.  This class implements [[XFastDocumentHandler]] interface.
 
Top-most parent class that handles fragments.  In most cases this class handles all nested contexts for increased performance.  This class implements [[XFastDocumentHandler]] interface.
  
=== RelationsFragmentHandler (class) ===
+
=== class RelationsFragmentHandler ===
 
Handles loading of relationships fragments ( '''/*/_rels/*.rels''' ).  Like the FragmentHandler class, this class also implements [[XFastDocumentHandler]] interface.
 
Handles loading of relationships fragments ( '''/*/_rels/*.rels''' ).  Like the FragmentHandler class, this class also implements [[XFastDocumentHandler]] interface.
  
=== ImportBase (class) ===
+
=== class ImportBase ===
 
The base class for application specific import filters, currently sub-classed by '''oox::ppt::PowerPointImport''' and '''oox::xls::ExcelFilter'''.  It implements [http://api.openoffice.org/docs/common/ref/com/sun/star/document/XImporter.html XImporter] and [http://api.openoffice.org/docs/common/ref/com/sun/star/document/XFilter.html XFilter] interfaces.
 
The base class for application specific import filters, currently sub-classed by '''oox::ppt::PowerPointImport''' and '''oox::xls::ExcelFilter'''.  It implements [http://api.openoffice.org/docs/common/ref/com/sun/star/document/XImporter.html XImporter] and [http://api.openoffice.org/docs/common/ref/com/sun/star/document/XFilter.html XFilter] interfaces.
  
Line 25: Line 25:
 
[[Drawingml]] includes code specific to parse [[DrawingML]].
 
[[Drawingml]] includes code specific to parse [[DrawingML]].
  
=== (class)===
+
=== Shape related class ===
  
=== (class)===
+
Includes:
 +
1. Shape
 +
2. FillProperties/LineProperties
  
=== (class)===
+
and so on.
 +
 
 +
=== Text related class ===
 +
 
 +
Includes: TextBody/TextParagraph/TextRun/
 +
 
 +
=== Color related class ===
 +
 
 +
=== Theme related class ===
 +
 
 +
=== Others ===
  
 
== chart ==
 
== chart ==
 +
 +
=== Chart related class ===
  
 
== diagram ==
 
== diagram ==
  
 
== table ==
 
== table ==
 +
 +
=== Table related class ===
 +
 +
Includes: TableCell/TableRow/TableStyle/TableBackgroundStyleContext and so on.
  
 
== ppt ==
 
== ppt ==

Revision as of 04:33, 22 June 2012

Stands for Office Open XML. The name of the module that handle Office Open XML import. Part of the Xml project.

Note

The WordprocessingML importer is part of a different effort in writerfilter2 where the refactoring of the binary and RTF filter also takes place.

Directory Structure

core

This directory includes common code for all filters.

class AttributeList

Provides access to attribute values of an element. AttributeList wraps a com.sun.star.xml.sax.XFastAttributeList object, and provides convenience functions that convert the string value of an attribute to various other data types. This class is usually used as a local variable declared with an instance of XFastAttributeList passed from the FastParser instance.

class FragmentHandler

Top-most parent class that handles fragments. In most cases this class handles all nested contexts for increased performance. This class implements XFastDocumentHandler interface.

class RelationsFragmentHandler

Handles loading of relationships fragments ( /*/_rels/*.rels ). Like the FragmentHandler class, this class also implements XFastDocumentHandler interface.

class ImportBase

The base class for application specific import filters, currently sub-classed by oox::ppt::PowerPointImport and oox::xls::ExcelFilter. It implements XImporter and XFilter interfaces.

drawingml

Drawingml includes code specific to parse DrawingML.

Shape related class

Includes: 1. Shape 2. FillProperties/LineProperties

and so on.

Text related class

Includes: TextBody/TextParagraph/TextRun/

Color related class

Theme related class

Others

chart

Chart related class

diagram

table

Table related class

Includes: TableCell/TableRow/TableStyle/TableBackgroundStyleContext and so on.

ppt

Ppt includes code specific to parse PresentationML.

(class)

(class)

token

The token list is generated by parsing the XML Schemas. Then gentoken.pl will use gperf to generate a perfect hash for fast parsing of known tokens. All the token are dispatched through integer numbers.

xls

Xls includes code specific to parse SpreadsheetML.

(class)

(class)

(class)

Personal tools