diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2017-05-11 23:31:26 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2017-05-11 23:32:33 -0400 |
commit | b5f5085c0b795c470066d1dd3fd757be5a7bf01a (patch) | |
tree | 068196317773214064a89656c38be02179e9df7b /xmloff | |
parent | 9425245a873f16650c666928de3b89785e4c5563 (diff) |
Document how to add new XML tokens.
Change-Id: I0d586b34323ad6e320974d8467520fcee116bd00
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/README | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xmloff/README b/xmloff/README index 74659c78f6f3..293666bc3a49 100644 --- a/xmloff/README +++ b/xmloff/README @@ -1,4 +1,4 @@ -Contains ODF import and export filter logic. +## Contains ODF import and export filter logic. The main library "xo" contains the basic ODF import/export filter implementation for most applications. The document is accessed @@ -9,7 +9,7 @@ The filter consumes/produces via SAX UNO API interface (implemented in applications, for example sw/source/filter/xml. There is a central list of all element or attribute names in -xmloff/inc/xmloff/token.hxx. The main class of the import filter +include/xmloff/xmltoken.hxx. The main class of the import filter is SvXMLImport, and of the export filter SvXMLExport. The Import filter maintains a stack of contexts for each element being @@ -37,3 +37,13 @@ http://www.openoffice.org/xml/xml_specification.pdf There is some stuff in the "dtd" directory which is most likely related to the OpenOffice.org XML format but is possibly outdated and obsolete. + +### Add new XML tokens + +When adding a new XML token, you need to add its entry in the following three +files: + +* include/xmloff/xmltoken.hxx +* xmloff/source/core/xmltoken.cxx +* xmloff/source/token/tokens.txt + |