LCOV - code coverage report
Current view: top level - libreoffice/xmloff/source/transform - Oasis2OOo.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 96 511 18.8 %
Date: 2012-12-27 Functions: 3 66 4.5 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2             : /*
       3             :  * This file is part of the LibreOffice project.
       4             :  *
       5             :  * This Source Code Form is subject to the terms of the Mozilla Public
       6             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       7             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       8             :  *
       9             :  * This file incorporates work covered by the following license notice:
      10             :  *
      11             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12             :  *   contributor license agreements. See the NOTICE file distributed
      13             :  *   with this work for additional information regarding copyright
      14             :  *   ownership. The ASF licenses this file to you under the Apache
      15             :  *   License, Version 2.0 (the "License"); you may not use this file
      16             :  *   except in compliance with the License. You may obtain a copy of
      17             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18             :  */
      19             : 
      20             : #include <com/sun/star/beans/XPropertySetInfo.hpp>
      21             : #include <rtl/ustrbuf.hxx>
      22             : #include <sax/tools/converter.hxx>
      23             : #include <xmloff/nmspmap.hxx>
      24             : #include "xmloff/xmlnmspe.hxx"
      25             : #include <xmloff/xmltoken.hxx>
      26             : #include "DeepTContext.hxx"
      27             : #include "MetaTContext.hxx"
      28             : #include "DocumentTContext.hxx"
      29             : #include "NotesTContext.hxx"
      30             : #include "StyleOASISTContext.hxx"
      31             : #include "FrameOASISTContext.hxx"
      32             : #include "EventOASISTContext.hxx"
      33             : #include "DlgOASISTContext.hxx"
      34             : #include "ControlOASISTContext.hxx"
      35             : #include "FormPropOASISTContext.hxx"
      36             : #include "ChartOASISTContext.hxx"
      37             : #include "ChartPlotAreaOASISTContext.hxx"
      38             : #include "MutableAttrList.hxx"
      39             : #include "ElemTransformerAction.hxx"
      40             : #include "AttrTransformerAction.hxx"
      41             : #include "TransformerActions.hxx"
      42             : #include "FamilyType.hxx"
      43             : #include <comphelper/servicehelper.hxx>
      44             : #include "Oasis2OOo.hxx"
      45             : 
      46             : using ::rtl::OUString;
      47             : using ::rtl::OUStringBuffer;
      48             : using namespace ::osl;
      49             : using namespace ::xmloff::token;
      50             : using namespace ::com::sun::star::uno;
      51             : using namespace ::com::sun::star::lang;
      52             : using namespace ::com::sun::star::xml::sax;
      53             : using namespace ::com::sun::star::beans;
      54             : 
      55             : OUString SAL_CALL Oasis2OOoTransformer_getImplementationName() throw();
      56             : 
      57             : enum XMLUserDefinedTransformerAction
      58             : {
      59             :     XML_ETACTION_META=XML_ETACTION_USER_DEFINED,
      60             :     XML_ETACTION_DOCUMENT,
      61             :     XML_ETACTION_BODY,
      62             :     XML_ETACTION_NOTES,
      63             :     XML_ETACTION_TABLE,
      64             :     XML_ETACTION_STYLE,
      65             :     XML_ETACTION_STYLE_RENAME,
      66             :     XML_ETACTION_FRAME,
      67             :     XML_ETACTION_EVENT,
      68             :     XML_ETACTION_DLG,
      69             :     XML_ETACTION_TAB_STOP,
      70             :     XML_ETACTION_FORM_CONTROL,
      71             :     XML_ETACTION_FORM_PROPERTY,
      72             :     XML_ETACTION_CONFIG_ITEM,
      73             :     XML_ETACTION_TRACKED_CHANGES,
      74             :     XML_ETACTION_CHART,
      75             :     XML_ETACTION_CHART_PLOT_AREA
      76             : };
      77             : 
      78             : #define ENTRY3( n, l, a, p1, p2, p3 ) \
      79             :     { XML_NAMESPACE_##n, XML_##l, a, p1, p2, p3 }
      80             : #define ENTRY3QNQ( n, l, a, n1, l1, p2, n3, l3 ) \
      81             :     ENTRY3( n, l, a, XMLTransformerActionInit::QNameParam( n1, l1 ), \
      82             :             p2, XMLTransformerActionInit::QNameParam( n3, l3 ) )
      83             : 
      84             : #define ENTRY2( n, l, a, p1, p2 ) \
      85             :     ENTRY3( n, l, a, p1, p2, 0 )
      86             : #define ENTRY2QQ( n, l, a, n1, l1, n2, l2 ) \
      87             :     ENTRY2( n, l, a, XMLTransformerActionInit::QNameParam( n1, l1 ), \
      88             :             XMLTransformerActionInit::QNameParam( n2, l2 ) )
      89             : #define ENTRY2QN( n, l, a, n1, l1, p2 ) \
      90             :     ENTRY2( n, l, a, XMLTransformerActionInit::QNameParam( n1, l1 ), p2 )
      91             : 
      92             : #define ENTRY1( n, l, a, p1 ) \
      93             :     ENTRY3( n, l, a, p1, 0, 0 )
      94             : #define ENTRY1Q( n, l, a, p1, t1 ) \
      95             :     ENTRY1( n, l, a, XMLTransformerActionInit::QNameParam( p1, t1 ) )
      96             : 
      97             : #define ENTRY0( n, l, a ) \
      98             :     ENTRY3( n, l, a, 0, 0, 0 )
      99             : 
     100             : // BM: a macro to put two tokens into one sal_Int32 for the action
     101             : // XML_ATACTION_RENAME_ATTRIBUTE
     102             : #define RENAME_ENTRY( f, s ) \
     103             :     (static_cast< sal_Int32 >(f) | (static_cast< sal_Int32 >(s) << 16))
     104             : 
     105             : static XMLTransformerActionInit aActionTable[] =
     106             : {
     107             :     // add office:class from <office:document> and <office:document-content>
     108             :     ENTRY0( OFFICE, DOCUMENT, XML_ETACTION_DOCUMENT ),
     109             :     ENTRY0( OFFICE, DOCUMENT_CONTENT, XML_ETACTION_DOCUMENT ),
     110           1 :     ENTRY1Q( OOO, AUTO_TEXT_EVENTS, XML_ETACTION_RENAME_ELEM,
     111             :                           XML_NAMESPACE_OFFICE, XML_AUTO_TEXT_EVENTS),
     112             : 
     113             :     // add <meta:keywords>
     114             :     ENTRY0( OFFICE, META, XML_ETACTION_META ),
     115             : 
     116             :     // rename <office:scripts> to <office:script>
     117           1 :     ENTRY1Q( OFFICE, SCRIPTS, XML_ETACTION_RENAME_ELEM,
     118             :                         XML_NAMESPACE_OFFICE, XML_SCRIPT ),
     119             : 
     120             :     // rename <office:script> to <office:script-data> and process attributes
     121           1 :     ENTRY2QN( OFFICE, SCRIPT, XML_ETACTION_RENAME_ELEM_PROC_ATTRS,
     122             :                         XML_NAMESPACE_OFFICE, XML_SCRIPT_DATA,
     123             :                         OASIS_SCRIPT_ACTIONS ),
     124             : 
     125             :     // rename <ooo:libraries> to <script:libraries>
     126           1 :     ENTRY1Q( OOO, LIBRARIES, XML_ETACTION_RENAME_ELEM,
     127             :                         XML_NAMESPACE_SCRIPT, XML_LIBRARIES ),
     128             : 
     129             :     // rename <ooo:library-linked> to <script:library-linked> and process attributes
     130           1 :     ENTRY2QN( OOO, LIBRARY_LINKED, XML_ETACTION_RENAME_ELEM_PROC_ATTRS,
     131             :                         XML_NAMESPACE_SCRIPT, XML_LIBRARY_LINKED,
     132             :                         OASIS_SCRIPT_ACTIONS ),
     133             : 
     134             :     // rename <ooo:library-embedded> to <script:library-embedded> and process attributes
     135           1 :     ENTRY2QN( OOO, LIBRARY_EMBEDDED, XML_ETACTION_RENAME_ELEM_PROC_ATTRS,
     136             :                         XML_NAMESPACE_SCRIPT, XML_LIBRARY_EMBEDDED,
     137             :                         OASIS_SCRIPT_ACTIONS ),
     138             : 
     139             :     // rename <ooo:module> to <script:module> and process attributes
     140           1 :     ENTRY2QN( OOO, MODULE, XML_ETACTION_RENAME_ELEM_PROC_ATTRS,
     141             :                         XML_NAMESPACE_SCRIPT, XML_MODULE,
     142             :                         OASIS_SCRIPT_ACTIONS ),
     143             : 
     144             :     // rename <ooo:source-code> to <script:source-code>
     145           1 :     ENTRY1Q( OOO, SOURCE_CODE, XML_ETACTION_RENAME_ELEM,
     146             :                         XML_NAMESPACE_SCRIPT, XML_SOURCE_CODE ),
     147             : 
     148             :     ENTRY0( OFFICE, BODY, XML_ETACTION_BODY ),
     149             : 
     150             :     // rename <office:font-face-decls> to <office:font-decl>,
     151             :     // rename <style:font-face> to <style:font-decl>, process attrs
     152           1 :     ENTRY1Q( OFFICE, FONT_FACE_DECLS, XML_ETACTION_RENAME_ELEM,
     153             :                         XML_NAMESPACE_OFFICE, XML_FONT_DECLS ),
     154           1 :     ENTRY2QN( STYLE, FONT_FACE, XML_ETACTION_RENAME_ELEM_PROC_ATTRS,
     155             :                         XML_NAMESPACE_STYLE, XML_FONT_DECL,
     156             :                            OASIS_FONT_FACE_ACTIONS ),
     157             : 
     158             :     // remove genre element
     159             :     ENTRY0( OFFICE, TEXT, XML_ETACTION_COPY_CONTENT ),
     160             :     ENTRY0( OFFICE, DRAWING, XML_ETACTION_COPY_CONTENT ),
     161             :     ENTRY0( OFFICE, PRESENTATION, XML_ETACTION_COPY_CONTENT ),
     162             :     ENTRY0( OFFICE, SPREADSHEET, XML_ETACTION_COPY_CONTENT ),
     163             :     ENTRY0( OFFICE, CHART, XML_ETACTION_COPY_CONTENT ),
     164             :     ENTRY0( OFFICE, IMAGE, XML_ETACTION_COPY_CONTENT ),
     165             : 
     166             :     // rename <style:page-layout> to <style:page-master>
     167             :     // ENTRY1Q( STYLE, PAGE_LAYOUT, RENAME_ELEM,
     168             :     //                      XML_NAMESPACE_STYLE, XML_PAGE_MASTER ),
     169             :     ENTRY1( STYLE, MASTER_PAGE, XML_ETACTION_PROC_ATTRS,
     170             :                         OASIS_MASTER_PAGE_ACTIONS ),
     171             : 
     172             :     // merge <style:*-properties> into <style:properties> and do other
     173             :     // styles processing
     174             :     ENTRY1( STYLE, STYLE, XML_ETACTION_STYLE,
     175             :                  XML_FAMILY_TYPE_END ),
     176             :     ENTRY1( STYLE, DEFAULT_STYLE, XML_ETACTION_STYLE,
     177             :                  XML_FAMILY_TYPE_END ),
     178           1 :     ENTRY2QN( STYLE, PAGE_LAYOUT, XML_ETACTION_STYLE_RENAME,
     179             :                         XML_NAMESPACE_STYLE, XML_PAGE_MASTER,
     180             :                           XML_FAMILY_TYPE_PAGE_LAYOUT ),
     181             :     ENTRY1( NUMBER, NUMBER_STYLE, XML_ETACTION_STYLE,
     182             :                  XML_FAMILY_TYPE_DATA ),
     183             :     ENTRY1( NUMBER, CURRENCY_STYLE, XML_ETACTION_STYLE,
     184             :                  XML_FAMILY_TYPE_DATA ),
     185             :     ENTRY1( NUMBER, PERCENTAGE_STYLE, XML_ETACTION_STYLE,
     186             :                  XML_FAMILY_TYPE_DATA ),
     187             :     ENTRY1( NUMBER, DATE_STYLE, XML_ETACTION_STYLE,
     188             :                  XML_FAMILY_TYPE_DATA ),
     189             :     ENTRY1( NUMBER, TIME_STYLE, XML_ETACTION_STYLE,
     190             :                  XML_FAMILY_TYPE_DATA ),
     191             :     ENTRY1( NUMBER, BOOLEAN_STYLE, XML_ETACTION_STYLE,
     192             :                  XML_FAMILY_TYPE_DATA ),
     193             :     ENTRY1( NUMBER, TEXT_STYLE, XML_ETACTION_STYLE,
     194             :                  XML_FAMILY_TYPE_DATA ),
     195             :     ENTRY1( TEXT, LIST_STYLE, XML_ETACTION_STYLE,
     196             :                  XML_FAMILY_TYPE_LIST ),
     197             : //  ENTRY0( TEXT, OUTLINE_STYLE, STYLE ),
     198             : 
     199             :     ENTRY1( STYLE, HEADER_STYLE, XML_ETACTION_STYLE,
     200             :                  XML_FAMILY_TYPE_HEADER_FOOTER ),
     201             :     ENTRY1( STYLE, FOOTER_STYLE, XML_ETACTION_STYLE,
     202             :                  XML_FAMILY_TYPE_HEADER_FOOTER ),
     203             :     ENTRY1( TEXT, LIST_LEVEL_STYLE_NUMBER, XML_ETACTION_STYLE,
     204             :                  XML_FAMILY_TYPE_LIST ),
     205             :     ENTRY1( TEXT, LIST_LEVEL_STYLE_BULLET, XML_ETACTION_STYLE,
     206             :                  XML_FAMILY_TYPE_LIST ),
     207             :     ENTRY1( TEXT, LIST_LEVEL_STYLE_IMAGE, XML_ETACTION_STYLE,
     208             :                  XML_FAMILY_TYPE_LIST ),
     209             :     ENTRY1( TEXT, OUTLINE_LEVEL_STYLE, XML_ETACTION_STYLE,
     210             :                  XML_FAMILY_TYPE_LIST ),
     211             :     ENTRY1( DRAW, GRADIENT, XML_ETACTION_STYLE,
     212             :                  XML_FAMILY_TYPE_GRADIENT ),
     213             :     ENTRY1( DRAW, FILL_IMAGE, XML_ETACTION_STYLE,
     214             :                  XML_FAMILY_TYPE_FILL_IMAGE ),
     215           1 :     ENTRY2QN( DRAW, OPACITY, XML_ETACTION_STYLE_RENAME,
     216             :                 XML_NAMESPACE_DRAW, XML_TRANSPARENCY,
     217             :                  XML_FAMILY_TYPE_GRADIENT ),
     218             :     ENTRY1( DRAW, MARKER, XML_ETACTION_STYLE,
     219             :                  XML_FAMILY_TYPE_MARKER ),
     220             :     ENTRY1( DRAW, HATCH, XML_ETACTION_STYLE,
     221             :                  XML_FAMILY_TYPE_HATCH ),
     222             :     ENTRY1( DRAW, STROKE_DASH, XML_ETACTION_STYLE,
     223             :                  XML_FAMILY_TYPE_STROKE_DASH ),
     224             : 
     225             :     // process <text:h/p>: process style-name attributes,
     226             :     // rename <text:h>'s text:outline-level to text:level,
     227             :     ENTRY1( TEXT, H, XML_ETACTION_PROC_ATTRS, OASIS_PARA_ACTIONS ),
     228             :     ENTRY1( TEXT, P, XML_ETACTION_PROC_ATTRS, OASIS_PARA_ACTIONS ),
     229             : 
     230             :     // process <test:list>'s text:style-name attributes
     231             :     // rename <text:list> to <text:ordered-list> or <text:unordered-list>
     232             :     // TODO: All list currenty are renamed to <text:ordered-list>
     233           1 :     ENTRY2QN( TEXT, LIST, XML_ETACTION_RENAME_ELEM_PROC_ATTRS,
     234             :             XML_NAMESPACE_TEXT, XML_ORDERED_LIST,
     235             :             OASIS_LIST_STYLE_REF_ACTIONS ),
     236             : 
     237             :     // rename <text:note*> to <text:footnote*> or <text:endnote*>
     238             :     ENTRY1( TEXT, NOTES_CONFIGURATION, XML_ETACTION_NOTES,
     239             :                                                     XML_NOTES_CONFIGURATION),
     240             :     ENTRY1( TEXT, NOTE, XML_ETACTION_NOTES, XML_NOTE ),
     241             : 
     242             :     // rename <text:footnote> and <text:endnote> to <text:note>
     243             :     ENTRY1( TEXT, NOTE_REF, XML_ETACTION_NOTES, XML_NOTE_REF ),
     244             : 
     245             :     // rename <text:tab> to <text:tab-stop>
     246           1 :     ENTRY1Q( TEXT, TAB, XML_ETACTION_RENAME_ELEM,
     247             :                         XML_NAMESPACE_TEXT, XML_TAB_STOP ),
     248             : 
     249             : 
     250             :     // replace <table:table tabke:is-sub-table> with <table:sub-table>
     251             :     ENTRY0( TABLE, TABLE, XML_ETACTION_TABLE ),
     252             : 
     253             :     // merge frame element
     254             :     ENTRY0( DRAW, FRAME, XML_ETACTION_FRAME ),
     255             : 
     256             :     // process events
     257           1 :     ENTRY1Q( OFFICE, EVENT_LISTENERS, XML_ETACTION_RENAME_ELEM,
     258             :                       XML_NAMESPACE_OFFICE, XML_EVENTS ),
     259             :     ENTRY0( SCRIPT, EVENT_LISTENER, XML_ETACTION_EVENT ),
     260             :     ENTRY0( SCRIPT, EVENT, XML_ETACTION_EVENT ),
     261             :     ENTRY0( PRESENTATION, EVENT_LISTENER, XML_ETACTION_EVENT ),
     262             : 
     263             :     // process Basic dialogs
     264             :     ENTRY0( DLG, STYLE, XML_ETACTION_DLG ),
     265             : 
     266             :     // process length attributes
     267             :     ENTRY1( DRAW, RECT, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     268             :     ENTRY1( DRAW, LINE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     269             :     ENTRY1( DRAW, POLYLINE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     270             :     ENTRY1( DRAW, POLYGON, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     271             :     ENTRY1( DRAW, PATH, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     272             :     ENTRY1( DRAW, CIRCLE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     273             :     ENTRY1( DRAW, ELLIPSE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     274             :     ENTRY1( DRAW, CONNECTOR, XML_ETACTION_PROC_ATTRS, OASIS_CONNECTOR_ACTIONS ),
     275             :     ENTRY1( DRAW, CAPTION, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     276             :     ENTRY1( DRAW, MEASURE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     277             :     ENTRY1( DRAW, CONTROL, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     278             :     ENTRY1( DRAW, PAGE_THUMBNAIL, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     279             :     ENTRY1( DRAW, G, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     280             : //  ENTRY1( DRAW, FRAME, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     281             :     ENTRY1( DRAW, TEXT_BOX, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     282             :     ENTRY1( PRESENTATION, PLACEHOLDER, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     283             :     ENTRY1( DRAW, CONTOUR_POLYGON, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     284             :     ENTRY1( DRAW, CONTOUR_PATH, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     285             :     ENTRY1( DRAW, AREA_RECTANGLE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     286             :     ENTRY1( DRAW, AREA_CIRCLE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     287             :     ENTRY1( DRAW, AREA_POLYGON, XML_ETACTION_PROC_ATTRS, OASIS_DRAW_AREA_POLYGON_ACTIONS ),
     288             :     ENTRY1( DRAW, GLUE_POINT, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     289             :     ENTRY1( DR3D, SCENE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     290             :     ENTRY1( DR3D, CUBE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     291             :     ENTRY1( DR3D, SPHERE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     292             :     ENTRY1( DR3D, EXTRUDE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     293             :     ENTRY1( DR3D, ROTATE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     294             :     ENTRY1( CHART, TITLE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     295             :     ENTRY1( CHART, SUBTITLE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     296             :     ENTRY1( CHART, FOOTER, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     297             :     ENTRY1( CHART, LEGEND, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     298             :     ENTRY1( CHART, WALL, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     299             :     ENTRY1( CHART, FLOOR, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     300             :     ENTRY1( CHART, AXIS, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     301             :     ENTRY1( CHART, GRID, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     302             :     ENTRY1( CHART, SERIES, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     303             :     ENTRY1( CHART, DATA_POINT, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     304             :     ENTRY1( CHART, MEAN_VALUE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     305             :     ENTRY1( CHART, ERROR_INDICATOR, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     306             :     ENTRY1( CHART, REGRESSION_CURVE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     307             :     ENTRY1( CHART, STOCK_GAIN_MARKER, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     308             :     ENTRY1( CHART, STOCK_LOSS_MARKER, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     309             :     ENTRY1( CHART, STOCK_RANGE_LINE, XML_ETACTION_PROC_ATTRS, OASIS_SHAPE_ACTIONS ),
     310             : 
     311             :     ENTRY0( CHART, CHART, XML_ETACTION_CHART ),
     312             :     ENTRY0( CHART, PLOT_AREA, XML_ETACTION_CHART_PLOT_AREA ),
     313             : 
     314             :     ENTRY0( CONFIG, CONFIG_ITEM, XML_ETACTION_CONFIG_ITEM ),
     315           1 :     ENTRY1Q( TEXT, TRACKED_CHANGES, XML_ETACTION_TRACKED_CHANGES,
     316             :                         XML_NAMESPACE_TEXT, XML_PROTECTION_KEY ),
     317           1 :     ENTRY1Q( TABLE, TRACKED_CHANGES, XML_ETACTION_TRACKED_CHANGES,
     318             :                         XML_NAMESPACE_TABLE, XML_PROTECTION_KEY ),
     319             : 
     320             :     ENTRY1( TEXT, INDEX_ENTRY_TAB_STOP, XML_ETACTION_PROC_ATTRS,
     321             :                   OASIS_INDEX_ENTRY_TAB_STOP_ACTIONS ),
     322             :     ENTRY0( STYLE, TAB_STOP, XML_ETACTION_TAB_STOP ),
     323             :     ENTRY1( STYLE, BACKGROUND_IMAGE, XML_ETACTION_PROC_ATTRS,
     324             :                      OASIS_BACKGROUND_IMAGE_ACTIONS  ),
     325             :     ENTRY1( TEXT, LINENUMBERING_CONFIGURATION, XML_ETACTION_PROC_ATTRS,
     326             :                   OASIS_LINENUMBERING_ACTIONS ),
     327             :     ENTRY1( STYLE, FOOTNOTE_SEP, XML_ETACTION_PROC_ATTRS,
     328             :                    OASIS_FOOTNOTE_SEP_ACTIONS ),
     329             :     ENTRY1( STYLE, DROP_CAP, XML_ETACTION_PROC_ATTRS, OASIS_DROP_CAP_ACTIONS ),
     330             :     ENTRY1( STYLE, COLUMNS, XML_ETACTION_PROC_ATTRS, OASIS_COLUMNS_ACTIONS ),
     331             :     ENTRY1( STYLE, COLUMN, XML_ETACTION_PROC_ATTRS, OASIS_COLUMNS_ACTIONS ),
     332             : 
     333             :     // process *:style-name attributes
     334             :     ENTRY1( STYLE, MAP, XML_ETACTION_PROC_ATTRS, OASIS_MAP_STYLE_REF_ACTIONS ),
     335             :     ENTRY1( TEXT, SPAN, XML_ETACTION_PROC_ATTRS, OASIS_TEXT_STYLE_REF_ACTIONS ),
     336             :     ENTRY1( TEXT, A, XML_ETACTION_PROC_ATTRS, OASIS_TEXT_STYLE_REF_ACTIONS ),
     337             :     ENTRY1( TEXT, RUBY_TEXT, XML_ETACTION_PROC_ATTRS,
     338             :                 OASIS_TEXT_STYLE_REF_ACTIONS ),
     339             :     ENTRY1( TEXT, TABLE_OF_CONTENT_ENTRY_TEMPLATE, XML_ETACTION_PROC_ATTRS,
     340             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     341             :     ENTRY1( TEXT, ILLUSTRATION_INDEX_ENTRY_TEMPLATE, XML_ETACTION_PROC_ATTRS,
     342             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     343             :     ENTRY1( TEXT, TABLE_INDEX_ENTRY_TEMPLATE, XML_ETACTION_PROC_ATTRS,
     344             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     345             :     ENTRY1( TEXT, OBJECT_INDEX_ENTRY_TEMPLATE, XML_ETACTION_PROC_ATTRS,
     346             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     347             :     ENTRY1( TEXT, USER_INDEX_ENTRY_TEMPLATE, XML_ETACTION_PROC_ATTRS,
     348             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     349             :     ENTRY1( TEXT, ALPHABETICAL_INDEX_ENTRY_TEMPLATE, XML_ETACTION_PROC_ATTRS,
     350             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     351             :     ENTRY1( TEXT, BIBLIOGRAPHY_ENTRY_TEMPLATE, XML_ETACTION_PROC_ATTRS,
     352             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     353             :     ENTRY1( TEXT, INDEX_SOURCE_STYLE, XML_ETACTION_PROC_ATTRS,
     354             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     355             :     ENTRY1( TEXT, INDEX_TITLE_TEMPLATE, XML_ETACTION_PROC_ATTRS,
     356             :                 OASIS_PARA_STYLE_REF_ACTIONS ), /* generated entry */
     357           2 :     ENTRY3QNQ( TEXT, INDEX_ENTRY_CHAPTER,
     358             :             XML_ETACTION_RENAME_ELEM_PROC_ATTRS_COND,
     359             :             XML_NAMESPACE_TEXT, XML_INDEX_ENTRY_CHAPTER_NUMBER,
     360             :             OASIS_TEXT_STYLE_REF_ACTIONS ,
     361             :                XML_NAMESPACE_TEXT, XML_TABLE_OF_CONTENT_ENTRY_TEMPLATE),
     362             :     ENTRY1( TEXT, INDEX_ENTRY_TEXT, XML_ETACTION_PROC_ATTRS,
     363             :                 OASIS_TEXT_STYLE_REF_ACTIONS ), /* generated entry */
     364             :     ENTRY1( TEXT, INDEX_ENTRY_PAGE_NUMBER, XML_ETACTION_PROC_ATTRS,
     365             :                 OASIS_TEXT_STYLE_REF_ACTIONS ), /* generated entry */
     366             :     ENTRY1( TEXT, INDEX_ENTRY_SPAN, XML_ETACTION_PROC_ATTRS,
     367             :                 OASIS_TEXT_STYLE_REF_ACTIONS ), /* generated entry */
     368             :     ENTRY1( TEXT, INDEX_ENTRY_BIBLIOGRAPHY, XML_ETACTION_PROC_ATTRS,
     369             :                 OASIS_TEXT_STYLE_REF_ACTIONS ), /* generated entry */
     370             :     ENTRY1( TEXT, INDEX_ENTRY_LINK_START, XML_ETACTION_PROC_ATTRS,
     371             :                 OASIS_TEXT_STYLE_REF_ACTIONS ), /* generated entry */
     372             :     ENTRY1( TEXT, INDEX_ENTRY_LINK_END, XML_ETACTION_PROC_ATTRS,
     373             :                 OASIS_TEXT_STYLE_REF_ACTIONS ), /* generated entry */
     374             :     ENTRY1( DRAW, PAGE, XML_ETACTION_PROC_ATTRS,
     375             :                 OASIS_MASTER_PAGE_REF_ACTIONS ), /* generated entry */
     376             :     /* Conversion of attribute <table:style-name> for <table:table-row> and
     377             :        <table:table-column> (#i40011#, #i40015#)
     378             :     */
     379             :     ENTRY1( TABLE, TABLE_ROW, XML_ETACTION_PROC_ATTRS,
     380             :                 OASIS_TABLE_STYLE_REF_ACTIONS ),
     381             :     ENTRY1( TABLE, TABLE_COLUMN, XML_ETACTION_PROC_ATTRS,
     382             :                 OASIS_TABLE_STYLE_REF_ACTIONS ),
     383             : 
     384             :     // rename office:value-* to *:value-*
     385             :     ENTRY1( TEXT, VARIABLE_DECL, XML_ETACTION_PROC_ATTRS,
     386             :             OASIS_TEXT_VALUE_TYPE_ACTIONS ), /* generated entry */
     387             :     ENTRY1( TEXT, VARIABLE_SET, XML_ETACTION_PROC_ATTRS,
     388             :             OASIS_TEXT_VALUE_TYPE_ACTIONS), /* generated entry */
     389             :     ENTRY1( TEXT, VARIABLE_INPUT, XML_ETACTION_PROC_ATTRS,
     390             :             OASIS_TEXT_VALUE_TYPE_ACTIONS), /* generated entry */
     391             :     ENTRY1( TEXT, USER_FIELD_DECL, XML_ETACTION_PROC_ATTRS,
     392             :             OASIS_TEXT_VALUE_TYPE_ACTIONS), /* generated entry */
     393             :     ENTRY1( TEXT, EXPRESSION, XML_ETACTION_PROC_ATTRS,
     394             :             OASIS_TEXT_VALUE_TYPE_ACTIONS), /* generated entry */
     395             :     ENTRY1( TEXT, USER_DEFINED, XML_ETACTION_PROC_ATTRS,
     396             :             OASIS_DATETIME_ACTIONS ), // Add OASIS_TEXT_VALUE_TYPE_ACTIONS if attrs are added to text:user-defined
     397             :     ENTRY1( TABLE, TABLE_CELL, XML_ETACTION_PROC_ATTRS,
     398             :             OASIS_TABLE_VALUE_TYPE_ACTIONS), /* generated entry */
     399             :     ENTRY1( TABLE, COVERED_TABLE_CELL, XML_ETACTION_PROC_ATTRS,
     400             :             OASIS_TABLE_VALUE_TYPE_ACTIONS), /* generated entry */
     401             :     ENTRY1( TABLE, CHANGE_TRACK_TABLE_CELL, XML_ETACTION_PROC_ATTRS,
     402             :             OASIS_TABLE_VALUE_TYPE_ACTIONS), /* generated entry */
     403             : //  ENTRY1( FORM, PROPERTY, XML_ETACTION_PROC_ATTRS,
     404             : //          OASIS_VALUE_TYPE_ACTIONS), /* TODO: generated entry */
     405             : //  ENTRY1( FORM, LIST_PROPERTY, XML_ETACTION_PROC_ATTRS,
     406             : //          OASIS_VALUE_TYPE_ACTIONS), /* generated entry */
     407             : 
     408             :     ENTRY1( OFFICE, ANNOTATION, XML_ETACTION_MOVE_ELEMS_TO_ATTRS,
     409             :             OASIS_ANNOTATION_ACTIONS ), /* generated entry */
     410             :     ENTRY1( OFFICE, CHANGE_INFO, XML_ETACTION_MOVE_ELEMS_TO_ATTRS,
     411             :             OASIS_CHANGE_INFO_ACTIONS ), /* generated entry */
     412             : 
     413             :     ENTRY1( TEXT, DDE_CONNECTION_DECL, XML_ETACTION_PROC_ATTRS,
     414             :                      OASIS_DDE_CONNECTION_DECL_ACTIONS  ),
     415             : 
     416             :     ENTRY0( FORM, TEXT, XML_ETACTION_FORM_CONTROL ),
     417             :     ENTRY0( FORM, TEXTAREA, XML_ETACTION_FORM_CONTROL ),
     418             :     ENTRY0( FORM, FIXED_TEXT, XML_ETACTION_FORM_CONTROL ),
     419             :     ENTRY0( FORM, FILE, XML_ETACTION_FORM_CONTROL ),
     420             :     ENTRY0( FORM, PASSWORD, XML_ETACTION_FORM_CONTROL ),
     421             :     ENTRY0( FORM, FORMATTED_TEXT, XML_ETACTION_FORM_CONTROL ),
     422             :     ENTRY0( FORM, BUTTON, XML_ETACTION_FORM_CONTROL ),
     423             :     ENTRY0( FORM, IMAGE, XML_ETACTION_FORM_CONTROL ),
     424             :     ENTRY0( FORM, CHECKBOX, XML_ETACTION_FORM_CONTROL ),
     425             :     ENTRY0( FORM, RADIO, XML_ETACTION_FORM_CONTROL ),
     426             :     ENTRY0( FORM, LISTBOX, XML_ETACTION_FORM_CONTROL ),
     427             :     ENTRY0( FORM, COMBOBOX, XML_ETACTION_FORM_CONTROL ),
     428             :     ENTRY0( FORM, FRAME, XML_ETACTION_FORM_CONTROL ),
     429             :     ENTRY0( FORM, HIDDEN, XML_ETACTION_FORM_CONTROL ),
     430             :     ENTRY0( FORM, IMAGE_FRAME, XML_ETACTION_FORM_CONTROL ),
     431             :     ENTRY0( FORM, GRID, XML_ETACTION_FORM_CONTROL ),
     432             :     ENTRY0( FORM, VALUE_RANGE, XML_ETACTION_FORM_CONTROL ),
     433             :     ENTRY0( FORM, GENERIC_CONTROL, XML_ETACTION_FORM_CONTROL ),
     434             :     ENTRY1( FORM, COLUMN, XML_ETACTION_PROC_ATTRS,
     435             :                      OASIS_FORM_COLUMN_ACTIONS  ),
     436             :     ENTRY1( FORM, PROPERTY, XML_ETACTION_FORM_PROPERTY, XML_PROPERTY ),
     437             :     ENTRY1( FORM, LIST_PROPERTY, XML_ETACTION_FORM_PROPERTY,
     438             :                     XML_LIST_PROPERTY ),
     439             :     ENTRY1( FORM, LIST_VALUE, XML_ETACTION_FORM_PROPERTY, XML_LIST_VALUE ),
     440             : 
     441             :     // process xlink:href
     442             :     ENTRY1( META, TEMPLATE, XML_ETACTION_PROC_ATTRS,
     443             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     444             :     ENTRY1( META, AUTO_RELOAD, XML_ETACTION_PROC_ATTRS,
     445             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     446             :     ENTRY1( TEXT, SECTION_SOURCE, XML_ETACTION_PROC_ATTRS,
     447             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     448             :     ENTRY1( TEXT, SCRIPT, XML_ETACTION_PROC_ATTRS,
     449             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     450             :     ENTRY1( TEXT, ALPHABETICAL_INDEX_AUTO_MARK_FILE, XML_ETACTION_PROC_ATTRS,
     451             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     452             :     ENTRY1( TABLE, TABLE_SOURCE, XML_ETACTION_PROC_ATTRS,
     453             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     454             :     ENTRY1( TABLE, CELL_RANGE_SOURCE, XML_ETACTION_PROC_ATTRS,
     455             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     456             :     ENTRY1( DRAW, A, XML_ETACTION_PROC_ATTRS,
     457             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     458             :     ENTRY1( PRESENTATION, SOUND, XML_ETACTION_PROC_ATTRS,
     459             :         OASIS_XLINK_ACTIONS ), /* generated entry */
     460             :     ENTRY1( FORM, FORM, XML_ETACTION_PROC_ATTRS,
     461             :         OASIS_FORM_ACTIONS ), /* generated entry */
     462             : //  ENTRY1( SVG, FONT_FACE_URI, XML_ETACTION_PROC_ATTRS,
     463             : //      OASIS_XLINK_ACTIONS ), /* generated entry */
     464             : //  ENTRY1( SVG, DEFINITION_SRC, XML_ETACTION_PROC_ATTRS,
     465             : //      OASIS_XLINK_ACTIONS ), /* generated entry */
     466           1 :     ENTRY2QN( CHART, SYMBOL_IMAGE, XML_ETACTION_RENAME_ELEM_PROC_ATTRS,
     467             :               XML_NAMESPACE_STYLE, XML_SYMBOL_IMAGE,
     468             :               OASIS_BACKGROUND_IMAGE_ACTIONS ),
     469             : //      OASIS_XLINK_ACTIONS ), /* generated entry */
     470             : //  events don't have real URIs
     471             : //  ENTRY1( PRESENTATION, EVENT_LISTENER, XML_ETACTION_PROC_ATTRS,
     472             : //      OASIS_XLINK_ACTIONS ), /* generated entry */
     473             : //  ENTRY1( SCRIPT, EVENT_LISTENER, XML_ETACTION_PROC_ATTRS,
     474             : //      OASIS_XLINK_ACTIONS ), /* generated entry */
     475             : 
     476             :     // add namespace prefix to name
     477             :     ENTRY1( CONFIG, CONFIG_ITEM_SET, XML_ETACTION_PROC_ATTRS,
     478             :         OASIS_CONFIG_ITEM_SET_ACTIONS ),
     479             : 
     480             :     // add namespace prefix to formula and condition
     481             :     //  text:condition
     482             :     ENTRY1( TEXT, SECTION, XML_ETACTION_PROC_ATTRS,
     483             :         OASIS_FORMULA_ACTIONS ), /* generated entry */
     484             :     //  text:formula
     485             :     ENTRY1( TEXT, SEQUENCE, XML_ETACTION_PROC_ATTRS,
     486             :         OASIS_FORMULA_ACTIONS ), /* generated entry */
     487             :     //  text:condition
     488             :     ENTRY1( TEXT, DATABASE_NEXT, XML_ETACTION_PROC_ATTRS,
     489             :         OASIS_FORMULA_ACTIONS ), /* generated entry */
     490             :     //  text:condition
     491           1 :     ENTRY2QN( TEXT, DATABASE_ROW_SELECT, XML_ETACTION_RENAME_ELEM_PROC_ATTRS,
     492             :         XML_NAMESPACE_TEXT, XML_DATABASE_SELECT,
     493             :         OASIS_FORMULA_ACTIONS ), /* generated entry */
     494             :     //  text:condition
     495             :     ENTRY1( TEXT, CONDITIONAL_TEXT, XML_ETACTION_PROC_ATTRS,
     496             :         OASIS_FORMULA_ACTIONS ), /* generated entry */
     497             :     //  text:condition
     498             :     ENTRY1( TEXT, HIDDEN_TEXT, XML_ETACTION_PROC_ATTRS,
     499             :         OASIS_FORMULA_ACTIONS ), /* generated entry */
     500             :     //  text:condition
     501             :     ENTRY1( TEXT, HIDDEN_PARAGRAPH, XML_ETACTION_PROC_ATTRS,
     502             :         OASIS_FORMULA_ACTIONS ), /* generated entry */
     503             :     //  text:formula
     504             :     ENTRY1( TEXT, TABLE_FORMULA, XML_ETACTION_PROC_ATTRS,
     505             :         OASIS_FORMULA_ACTIONS ), /* generated entry */
     506             : 
     507             :     //  process table::content-validation
     508             :     ENTRY1( TABLE, CONTENT_VALIDATION, XML_ETACTION_PROC_ATTRS,
     509             :         OASIS_CONTENT_VALIDATION_ACTIONS ),
     510             : 
     511             :     // rename <table:dependencies> to <table:dependences>
     512           1 :     ENTRY1Q( TABLE, DEPENDENCIES, XML_ETACTION_RENAME_ELEM,
     513             :                         XML_NAMESPACE_TABLE, XML_DEPENDENCES ),
     514           1 :     ENTRY1Q( TABLE, DEPENDENCY, XML_ETACTION_RENAME_ELEM,
     515             :                         XML_NAMESPACE_TABLE, XML_DEPENDENCE ),
     516             : 
     517             :     // process table::conversion-mode
     518             :     ENTRY1( TABLE, CONVERSION_MODE, XML_ETACTION_PROC_ATTRS,
     519             :             OASIS_DDE_CONV_MODE_ACTIONS ),
     520             : 
     521             :     // process table::data-pilot-member
     522             :     ENTRY1( TABLE, DATA_PILOT_MEMBER, XML_ETACTION_PROC_ATTRS,
     523             :             OASIS_DATAPILOT_MEMBER_ACTIONS ),
     524             : 
     525             :     // process table::data-pilot-level
     526             :     ENTRY1( TABLE, DATA_PILOT_LEVEL, XML_ETACTION_PROC_ATTRS,
     527             :             OASIS_DATAPILOT_LEVEL_ACTIONS ),
     528             : 
     529             :     // process table::source-service
     530             :     ENTRY1( TABLE, SOURCE_SERVICE, XML_ETACTION_PROC_ATTRS,
     531             :             OASIS_SOURCE_SERVICE_ACTIONS ),
     532             : 
     533             :     // entries for date time change (#i36576#)
     534             :     ENTRY1( TEXT, DATE, XML_ETACTION_PROC_ATTRS, OASIS_DATETIME_ACTIONS ),
     535             :     ENTRY1( TEXT, CREATION_DATE, XML_ETACTION_PROC_ATTRS,
     536             :                     OASIS_DATETIME_ACTIONS ),
     537             :     ENTRY1( TEXT, TIME, XML_ETACTION_PROC_ATTRS, OASIS_DATETIME_ACTIONS ),
     538             :     ENTRY1( TEXT, CREATION_TIME, XML_ETACTION_PROC_ATTRS,
     539             :                     OASIS_DATETIME_ACTIONS ),
     540             :     ENTRY1( TEXT, PRINT_TIME, XML_ETACTION_PROC_ATTRS, OASIS_DATETIME_ACTIONS ),
     541             :     ENTRY1( TEXT, MODIFICATION_TIME, XML_ETACTION_PROC_ATTRS,
     542             :                     OASIS_DATETIME_ACTIONS ),
     543             :     ENTRY1( TEXT, EDITING_DURATION, XML_ETACTION_PROC_ATTRS,
     544             :                     OASIS_DATETIME_ACTIONS ),
     545             :     ENTRY1( FORM, TIME, XML_ETACTION_PROC_ATTRS, OASIS_DATETIME_ACTIONS ),
     546             :     ENTRY1( PRESENTATION, SETTINGS, XML_ETACTION_PROC_ATTRS,
     547             :                     OASIS_DATETIME_ACTIONS ),
     548             : 
     549             :     // fix <text:alphabatical-index-mark text:main-etry>
     550             :     ENTRY1( TEXT, ALPHABETICAL_INDEX_MARK, XML_ETACTION_PROC_ATTRS,
     551             :             OASIS_ALPHABETICAL_INDEX_MARK_ACTIONS ),
     552             :     ENTRY1( TEXT, ALPHABETICAL_INDEX_MARK_START, XML_ETACTION_PROC_ATTRS,
     553             :             OASIS_ALPHABETICAL_INDEX_MARK_ACTIONS ),
     554             : 
     555             :     // fix id strings in old animation elements
     556             :     ENTRY1( PRESENTATION, DIM, XML_ETACTION_PROC_ATTRS, OASIS_ANIMATION_ACTIONS ),
     557             :     ENTRY1( PRESENTATION, PLAY, XML_ETACTION_PROC_ATTRS, OASIS_ANIMATION_ACTIONS ),
     558             :     ENTRY1( PRESENTATION, SHOW_TEXT, XML_ETACTION_PROC_ATTRS, OASIS_ANIMATION_ACTIONS ),
     559             :     ENTRY1( PRESENTATION, SHOW_SHAPE, XML_ETACTION_PROC_ATTRS, OASIS_ANIMATION_ACTIONS ),
     560             :     ENTRY1( PRESENTATION, HIDE_TEXT, XML_ETACTION_PROC_ATTRS, OASIS_ANIMATION_ACTIONS ),
     561             :     ENTRY1( PRESENTATION, HIDE_SHAPE, XML_ETACTION_PROC_ATTRS, OASIS_ANIMATION_ACTIONS ),
     562             : 
     563             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ETACTION_EOT )
     564          23 : };
     565             : 
     566             : // XML_ETACTION_STYLE
     567             : static XMLTransformerActionInit aStyleActionTable[] =
     568             : {
     569             :     ENTRY0( STYLE, FAMILY, XML_ATACTION_STYLE_FAMILY ),
     570             :     ENTRY1( STYLE, NAME, XML_ATACTION_DECODE_STYLE_NAME,
     571             :                  XML_FAMILY_TYPE_END ),
     572             :     ENTRY1( STYLE, DISPLAY_NAME, XML_ATACTION_STYLE_DISPLAY_NAME,
     573             :                  XML_FAMILY_TYPE_END ),
     574             :     ENTRY1( STYLE, PARENT_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     575             :                  XML_FAMILY_TYPE_END ),
     576             :     ENTRY1( STYLE, NEXT_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     577             :                  XML_FAMILY_TYPE_END ),
     578             :     ENTRY1( STYLE, LIST_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     579             :                  XML_FAMILY_TYPE_LIST ),
     580             :     ENTRY1( STYLE, MASTER_PAGE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     581             :                  XML_FAMILY_TYPE_MASTER_PAGE ),
     582             :     ENTRY0( STYLE, DEFAULT_OUTLINE_LEVEL, XML_ATACTION_REMOVE ),
     583             :     ENTRY1( TEXT, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     584             :                  XML_FAMILY_TYPE_TEXT ),    // list level styles
     585             :     ENTRY1( DRAW, NAME, XML_ATACTION_DECODE_STYLE_NAME,
     586             :                  XML_FAMILY_TYPE_END ),
     587             :     ENTRY1( DRAW, DISPLAY_NAME, XML_ATACTION_STYLE_DISPLAY_NAME,
     588             :                  XML_FAMILY_TYPE_END ),
     589             :     ENTRY0( DRAW, DISTANCE, XML_ATACTION_IN2INCH ),
     590             :     ENTRY0( DRAW, DOTS1_LENGTH, XML_ATACTION_IN2INCH ),
     591             :     ENTRY0( DRAW, DOTS2_LENGTH, XML_ATACTION_IN2INCH ),
     592             :     ENTRY0( SVG, WIDTH, XML_ATACTION_IN2INCH ),
     593             :     ENTRY0( SVG, HEIGHT, XML_ATACTION_IN2INCH ),
     594             :     ENTRY0( DRAW, START, XML_ATACTION_NEG_PERCENT ),
     595             :     ENTRY0( DRAW, END, XML_ATACTION_NEG_PERCENT ),
     596             :     ENTRY1( XLINK, HREF, XML_ATACTION_URI_OASIS, sal_True ),
     597             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     598             : };
     599             : 
     600             : // OASIS_FRAME_ELEM_ACTIONS
     601             : static XMLTransformerActionInit aFrameActionTable[] =
     602             : {
     603             :     ENTRY0( DRAW, TEXT_BOX, XML_ETACTION_COPY ),
     604             :     ENTRY0( DRAW, IMAGE, XML_ETACTION_COPY ),
     605             :     ENTRY0( DRAW, OBJECT, XML_ETACTION_COPY ),
     606             :     ENTRY0( DRAW, OBJECT_OLE, XML_ETACTION_COPY ),
     607             :     ENTRY0( DRAW, APPLET, XML_ETACTION_COPY ),
     608             :     ENTRY0( DRAW, PLUGIN, XML_ETACTION_COPY ),
     609             :     ENTRY0( DRAW, FLOATING_FRAME, XML_ETACTION_COPY ),
     610             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     611             : };
     612             : 
     613             : // OASIS_EVENT_ELEM_ACTIONS
     614             : static XMLTransformerActionInit aEventActionTable[] =
     615             : {
     616             :     ENTRY0( XLINK, HREF, XML_ATACTION_HREF ),
     617             :     ENTRY1( SCRIPT, LANGUAGE, XML_ATACTION_REMOVE_NAMESPACE_PREFIX,
     618             :                     XML_NAMESPACE_OOO ),
     619             :     ENTRY0( SCRIPT, EVENT_NAME, XML_ATACTION_EVENT_NAME ),
     620             :     ENTRY0( SCRIPT, MACRO_NAME, XML_ATACTION_MACRO_NAME ),
     621             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     622             : };
     623             : 
     624             : // OASIS_EVENT_ELEM_ACTIONS
     625             : static XMLTransformerActionInit aDlgActionTable[] =
     626             : {
     627             :     ENTRY0( DLG, BORDER, XML_ATACTION_DLG_BORDER )
     628             : };
     629             : 
     630             : // action table for OASIS_MASTER_PAGE_ACTIONS
     631             : static XMLTransformerActionInit aMasterPageActionTable[] =
     632             : {
     633             :     ENTRY1( STYLE, NAME, XML_ATACTION_DECODE_STYLE_NAME,
     634             :                  XML_FAMILY_TYPE_MASTER_PAGE ),
     635             :     ENTRY1( STYLE, DISPLAY_NAME, XML_ATACTION_STYLE_DISPLAY_NAME,
     636             :                  XML_FAMILY_TYPE_MASTER_PAGE ),
     637             :     ENTRY1( STYLE, NEXT_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     638             :                  XML_FAMILY_TYPE_MASTER_PAGE ),
     639           1 :     ENTRY1Q( STYLE, PAGE_LAYOUT_NAME, XML_ATACTION_RENAME,
     640             :                         XML_NAMESPACE_STYLE, XML_PAGE_MASTER_NAME ),
     641             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     642           1 : };
     643             : 
     644             : // action table for OASIS_TEXT_STYLE_REF_ACTIONS
     645             : static XMLTransformerActionInit aTextStyleRefActionTable[] =
     646             : {
     647             :     ENTRY1( TEXT, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     648             :                 XML_FAMILY_TYPE_TEXT ),
     649             :     ENTRY1( TEXT, VISITED_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     650             :                   XML_FAMILY_TYPE_TEXT ),
     651             :     ENTRY1( XLINK, HREF, XML_ATACTION_URI_OASIS, sal_False ),
     652             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     653             : };
     654             : 
     655             : // action table for OASIS_PARA_STYLE_REF_ACTIONS
     656             : static XMLTransformerActionInit aParaStyleRefActionTable[] =
     657             : {
     658             :     ENTRY1( TEXT, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     659             :                 XML_FAMILY_TYPE_PARAGRAPH ),
     660             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     661             : };
     662             : 
     663             : 
     664             : // action table for OASIS_LIST_STYLE_REF_ACTIONS
     665             : static XMLTransformerActionInit aListStyleRefActionTable[] =
     666             : {
     667             :     ENTRY1( TEXT, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     668             :                 XML_FAMILY_TYPE_LIST ),
     669             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     670             : };
     671             : 
     672             : // action table for OASIS_MASTER_PAGE_REF_ACTIONS
     673             : static XMLTransformerActionInit aMasterPageRefActionTable[] =
     674             : {
     675             :     ENTRY1( DRAW, MASTER_PAGE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     676             :                 XML_FAMILY_TYPE_MASTER_PAGE ),
     677             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     678             : };
     679             : 
     680             : // action table for OASIS_MAP_STYLE_REF_ACTIONS
     681             : static XMLTransformerActionInit aMapStyleRefActionTable[] =
     682             : {
     683             :     ENTRY1( STYLE, APPLY_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     684             :                 XML_FAMILY_TYPE_END ),
     685             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     686             : };
     687             : 
     688             : // action table for OASIS_TABLE_STYLE_REF_ACTIONS (#i40011#, #i40015#)
     689             : static XMLTransformerActionInit aTableStyleRefActionTable[] =
     690             : {
     691             :     ENTRY1( TABLE, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     692             :                 XML_FAMILY_TYPE_END ),
     693             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     694             : };
     695             : 
     696             : static XMLTransformerActionInit aFontFaceActionTable[] =
     697             : {
     698           1 :     ENTRY1Q( SVG, FONT_FAMILY, XML_ATACTION_RENAME,
     699             :                         XML_NAMESPACE_FO, XML_FONT_FAMILY ),
     700           1 :     ENTRY1Q( STYLE, FONT_ADORNMENTS, XML_ATACTION_RENAME,
     701             :                         XML_NAMESPACE_STYLE, XML_FONT_STYLE_NAME ),
     702             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     703           2 : };
     704             : 
     705             : // action table for OASIS_PARA_ACTIONS
     706             : static XMLTransformerActionInit aParaActionTable[] =
     707             : {
     708             :     ENTRY1( TEXT, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     709             :                 XML_FAMILY_TYPE_PARAGRAPH ),
     710             :     ENTRY1( TEXT, COND_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     711             :                 XML_FAMILY_TYPE_PARAGRAPH ),
     712           1 :     ENTRY1Q( TEXT, OUTLINE_LEVEL, XML_ATACTION_RENAME,
     713             :                         XML_NAMESPACE_TEXT, XML_LEVEL ),
     714             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     715           1 : };
     716             : 
     717             : // !!ATTENTION!! If you change something here, please also change
     718             : // aConnectorActionTable if apropriate
     719             : static XMLTransformerActionInit aShapeActionTable[] =
     720             : {
     721             :     ENTRY1( DRAW, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     722             :                 XML_FAMILY_TYPE_GRAPHIC ),
     723             :     ENTRY1( DRAW, TEXT_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     724             :                  XML_FAMILY_TYPE_PARAGRAPH ),
     725             :     ENTRY1( PRESENTATION, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     726             :                  XML_FAMILY_TYPE_PRESENTATION ),
     727             :     ENTRY0( SVG, X, XML_ATACTION_IN2INCH ),
     728             :     ENTRY0( SVG, Y, XML_ATACTION_IN2INCH ),
     729             :     ENTRY0( SVG, X1, XML_ATACTION_IN2INCH ),
     730             :     ENTRY0( SVG, Y1, XML_ATACTION_IN2INCH ),
     731             :     ENTRY0( SVG, X2, XML_ATACTION_IN2INCH ),
     732             :     ENTRY0( SVG, Y2, XML_ATACTION_IN2INCH ),
     733             :     ENTRY0( SVG, CX, XML_ATACTION_IN2INCH ),
     734             :     ENTRY0( SVG, CY, XML_ATACTION_IN2INCH ),
     735             :     ENTRY0( DRAW, END_X, XML_ATACTION_IN2INCH ),
     736             :     ENTRY0( DRAW, END_Y, XML_ATACTION_IN2INCH ),
     737             :     ENTRY0( SVG, R, XML_ATACTION_IN2INCH ),
     738             :     ENTRY0( SVG, RX, XML_ATACTION_IN2INCH ),
     739             :     ENTRY0( SVG, RY, XML_ATACTION_IN2INCH ),
     740             :     ENTRY0( SVG, WIDTH, XML_ATACTION_SVG_WIDTH_HEIGHT_OASIS ),
     741             :     ENTRY0( SVG, HEIGHT, XML_ATACTION_SVG_WIDTH_HEIGHT_OASIS ),
     742             :     ENTRY0( FO, MIN_WIDTH, XML_ATACTION_IN2INCH ),
     743             :     ENTRY0( FO, MIN_HEIGHT, XML_ATACTION_IN2INCH ),
     744             :     ENTRY0( FO, MAX_WIDTH, XML_ATACTION_IN2INCH ),
     745             :     ENTRY0( FO, MAX_HEIGHT, XML_ATACTION_IN2INCH ),
     746             :     ENTRY0( DRAW, CORNER_RADIUS, XML_ATACTION_IN2INCH ),
     747             :     ENTRY0( DRAW, LINE_SKEW, XML_ATACTION_INS2INCHS ),
     748             :     ENTRY0( DRAW, CAPTION_POINT_X, XML_ATACTION_IN2INCH ),
     749             :     ENTRY0( DRAW, CAPTION_POINT_Y, XML_ATACTION_IN2INCH ),
     750             :     ENTRY0( DR3D, DISTANCE, XML_ATACTION_IN2INCH ),
     751             :     ENTRY0( DR3D, FOCAL_LENGTH, XML_ATACTION_IN2INCH ),
     752           1 :     ENTRY1Q( DRAW, CONTROL, XML_ATACTION_RENAME,
     753             :                     XML_NAMESPACE_FORM, XML_ID ),
     754             :     ENTRY1( XLINK, HREF, XML_ATACTION_URI_OASIS, sal_True ),
     755             : 
     756             :     // BM: needed by chart:legend.  The legend needs also the draw actions.  As
     757             :     // there is no merge mechanism, all actions have to be in the same table
     758             :     ENTRY2( CHART, LEGEND_POSITION, XML_ATACTION_RENAME_ATTRIBUTE,
     759             :             RENAME_ENTRY( XML_START, XML_LEFT ),
     760             :             RENAME_ENTRY( XML_END, XML_RIGHT )),
     761             : 
     762             :     ENTRY0( DRAW, ID, XML_ATACTION_DECODE_ID ),
     763             : 
     764             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     765           1 : };
     766             : 
     767             : // OASIS_ANIMATION_ACTIONS
     768             : static XMLTransformerActionInit aAnimationActionTable[] =
     769             : {
     770             :     ENTRY0( DRAW, SHAPE_ID, XML_ATACTION_DECODE_ID ),
     771             :     ENTRY0( PRESENTATION, DELAY,       XML_ATACTION_RNG2ISO_DATETIME ),
     772             :     ENTRY0( PRESENTATION, PAUSE,       XML_ATACTION_RNG2ISO_DATETIME ),
     773             : 
     774             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     775             : };
     776             : 
     777             : // OOO_CONNECTOR_ACTIONS
     778             : static XMLTransformerActionInit aConnectorActionTable[] =
     779             : {
     780             :     ENTRY1( DRAW, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     781             :                 XML_FAMILY_TYPE_GRAPHIC ),
     782             :     ENTRY1( DRAW, TEXT_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     783             :                  XML_FAMILY_TYPE_PARAGRAPH ),
     784             :     ENTRY1( PRESENTATION, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     785             :                  XML_FAMILY_TYPE_PRESENTATION ),
     786             :     ENTRY0( SVG, X1, XML_ATACTION_IN2TWIPS ),
     787             :     ENTRY0( SVG, Y1, XML_ATACTION_IN2TWIPS ),
     788             :     ENTRY0( SVG, X2, XML_ATACTION_IN2TWIPS ),
     789             :     ENTRY0( SVG, Y2, XML_ATACTION_IN2TWIPS ),
     790             :     ENTRY0( DRAW, END_X, XML_ATACTION_IN2INCH ),
     791             :     ENTRY0( DRAW, END_Y, XML_ATACTION_IN2INCH ),
     792             :     ENTRY0( SVG, WIDTH, XML_ATACTION_SVG_WIDTH_HEIGHT_OASIS ),
     793             :     ENTRY0( SVG, HEIGHT, XML_ATACTION_SVG_WIDTH_HEIGHT_OASIS ),
     794             :     ENTRY0( FO, MIN_WIDTH, XML_ATACTION_IN2INCH ),
     795             :     ENTRY0( FO, MIN_HEIGHT, XML_ATACTION_IN2INCH ),
     796             :     ENTRY0( FO, MAX_WIDTH, XML_ATACTION_IN2INCH ),
     797             :     ENTRY0( FO, MAX_HEIGHT, XML_ATACTION_IN2INCH ),
     798             :     ENTRY0( DRAW, LINE_SKEW, XML_ATACTION_INS2INCHS ),
     799           1 :     ENTRY1Q( DRAW, CONTROL, XML_ATACTION_RENAME,
     800             :                     XML_NAMESPACE_FORM, XML_ID ),
     801             :     ENTRY1( XLINK, HREF, XML_ATACTION_URI_OASIS, sal_True ),
     802             :     ENTRY0( DRAW, START_SHAPE, XML_ATACTION_DECODE_ID ),
     803             :     ENTRY0( DRAW, END_SHAPE, XML_ATACTION_DECODE_ID ),
     804             : 
     805             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     806           1 : };
     807             : 
     808             : // OASIS_INDEX_ENTRY_TAB_STOP_ACTIONS
     809             : static XMLTransformerActionInit aIndexEntryTabStopActionTable[] =
     810             : {
     811             :     ENTRY0( STYLE, POSITION, XML_ATACTION_IN2INCH ),
     812             :     ENTRY1( TEXT, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     813             :                   XML_FAMILY_TYPE_TEXT ),
     814             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     815             : };
     816             : 
     817             : // OASIS_TAB_STOP_ACTIONS
     818             : static XMLTransformerActionInit aTabStopActionTable[] =
     819             : {
     820             :     ENTRY0( STYLE, POSITION, XML_ATACTION_IN2INCH ),
     821           1 :     ENTRY1Q( STYLE, LEADER_TEXT, XML_ATACTION_RENAME,
     822             :                   XML_NAMESPACE_STYLE, XML_LEADER_CHAR ),
     823             :     ENTRY0( STYLE, LEADER_STYLE, XML_ATACTION_REMOVE ),
     824             :     ENTRY0( STYLE, LEADER_TYPE, XML_ATACTION_REMOVE ),
     825             :     ENTRY0( STYLE, LEADER_WIDTH, XML_ATACTION_REMOVE ),
     826             :     ENTRY0( STYLE, LEADER_COLOR, XML_ATACTION_REMOVE ),
     827             :     ENTRY0( STYLE, LEADER_TEXT_STYLE, XML_ATACTION_REMOVE ),
     828             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     829           1 : };
     830             : 
     831             : // OASIS_LINENUMBERING_ACTIONS
     832             : static XMLTransformerActionInit aLineNumberingActionTable[] =
     833             : {
     834             :     ENTRY0( TEXT, OFFSET, XML_ATACTION_IN2INCH ),
     835             :     ENTRY1( TEXT, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     836             :                 XML_FAMILY_TYPE_TEXT ),
     837           1 :     ENTRY1Q( TEXT, COUNT_IN_TEXT_BOXES , XML_ATACTION_RENAME,
     838             :                     XML_NAMESPACE_TEXT, XML_COUNT_IN_FLOATING_FRAMES),
     839             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     840           1 : };
     841             : 
     842             : static XMLTransformerActionInit aFootnoteSepActionTable[] =
     843             : {
     844             :     ENTRY0( STYLE, WIDTH, XML_ATACTION_IN2INCH ),
     845             :     ENTRY0( STYLE, DISTANCE_BEFORE_SEP, XML_ATACTION_IN2INCH ),
     846             :     ENTRY0( STYLE, DISTANCE_AFTER_SEP, XML_ATACTION_IN2INCH ),
     847             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     848             : };
     849             : 
     850             : // OASIS_NOTES_ACTIONS (processed by special context)
     851             : static XMLTransformerActionInit aNotesActionTable[] =
     852             : {
     853             :     ENTRY0( TEXT, NOTE_CLASS, XML_ATACTION_STYLE_FAMILY ),
     854             :     ENTRY1( TEXT, CITATION_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     855             :                 XML_FAMILY_TYPE_TEXT ),
     856             :     ENTRY1( TEXT, CITATION_BODY_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     857             :                 XML_FAMILY_TYPE_TEXT ),
     858             :     ENTRY1( TEXT, DEFAULT_STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     859             :                 XML_FAMILY_TYPE_PARAGRAPH ),
     860             :     ENTRY1( TEXT, MASTER_PAGE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     861             :                 XML_FAMILY_TYPE_MASTER_PAGE ),
     862             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     863             : };
     864             : 
     865             : // OASIS_DROP_CAP_ACTIONS
     866             : static XMLTransformerActionInit aDropCapActionTable[] =
     867             : {
     868             :     ENTRY0( STYLE, DISTANCE, XML_ATACTION_IN2INCH ),
     869             :     ENTRY1( STYLE, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     870             :                 XML_FAMILY_TYPE_TEXT ),
     871             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     872             : };
     873             : 
     874             : static XMLTransformerActionInit aColumnsActionTable[] =
     875             : {
     876             :     ENTRY0( STYLE, COLUMN_GAP, XML_ATACTION_IN2INCH ),
     877             :     ENTRY0( STYLE, SPACE_BEFORE, XML_ATACTION_REMOVE ),
     878             :     ENTRY0( STYLE, SPACE_AFTER, XML_ATACTION_REMOVE ),
     879           1 :     ENTRY1Q( FO, START_INDENT, XML_ATACTION_RENAME_IN2INCH,
     880             :            XML_NAMESPACE_FO, XML_MARGIN_LEFT ),
     881           1 :     ENTRY1Q( FO, END_INDENT, XML_ATACTION_RENAME_IN2INCH,
     882             :            XML_NAMESPACE_FO, XML_MARGIN_RIGHT ),
     883             :     ENTRY0( STYLE, WIDTH, XML_ATACTION_IN2INCH ),
     884             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     885           2 : };
     886             : 
     887             : // OASIS_TEXT_VALUE_TYPE_ACTIONS
     888             : static XMLTransformerActionInit aTextValueTypeActionTable[] =
     889             : {
     890           1 :     ENTRY1Q( OFFICE, VALUE_TYPE, XML_ATACTION_RENAME,
     891             :            XML_NAMESPACE_TEXT, XML_VALUE_TYPE ),
     892           1 :     ENTRY1Q( OFFICE, VALUE, XML_ATACTION_RENAME,
     893             :            XML_NAMESPACE_TEXT, XML_VALUE ),
     894           1 :     ENTRY1Q( OFFICE, CURRENCY, XML_ATACTION_RENAME,
     895             :            XML_NAMESPACE_TEXT, XML_CURRENCY ),
     896           1 :     ENTRY1Q( OFFICE, DATE_VALUE, XML_ATACTION_RENAME_RNG2ISO_DATETIME,
     897             :            XML_NAMESPACE_TEXT, XML_DATE_VALUE ),
     898           1 :     ENTRY1Q( OFFICE, TIME_VALUE, XML_ATACTION_RENAME_RNG2ISO_DATETIME,
     899             :            XML_NAMESPACE_TEXT, XML_TIME_VALUE ),
     900           1 :     ENTRY1Q( OFFICE, BOOLEAN_VALUE, XML_ATACTION_RENAME,
     901             :            XML_NAMESPACE_TEXT, XML_BOOLEAN_VALUE ),
     902           1 :     ENTRY1Q( OFFICE, STRING_VALUE, XML_ATACTION_RENAME,
     903             :            XML_NAMESPACE_TEXT, XML_STRING_VALUE ),
     904             :     ENTRY0( TEXT, FORMULA, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
     905             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     906           7 : };
     907             : 
     908             : // OASIS_TABLE_VALUE_TYPE_ACTIONS
     909             : static XMLTransformerActionInit aTableValueTypeActionTable[] =
     910             : {
     911           1 :     ENTRY1Q( OFFICE, VALUE_TYPE, XML_ATACTION_RENAME,
     912             :            XML_NAMESPACE_TABLE, XML_VALUE_TYPE ),
     913           1 :     ENTRY1Q( OFFICE, VALUE, XML_ATACTION_RENAME,
     914             :            XML_NAMESPACE_TABLE, XML_VALUE ),
     915           1 :     ENTRY1Q( OFFICE, CURRENCY, XML_ATACTION_RENAME,
     916             :            XML_NAMESPACE_TABLE, XML_CURRENCY ),
     917           1 :     ENTRY1Q( OFFICE, DATE_VALUE, XML_ATACTION_RENAME_RNG2ISO_DATETIME,
     918             :            XML_NAMESPACE_TABLE, XML_DATE_VALUE ),
     919           1 :     ENTRY1Q( OFFICE, TIME_VALUE, XML_ATACTION_RENAME_RNG2ISO_DATETIME,
     920             :            XML_NAMESPACE_TABLE, XML_TIME_VALUE ),
     921           1 :     ENTRY1Q( OFFICE, BOOLEAN_VALUE, XML_ATACTION_RENAME,
     922             :            XML_NAMESPACE_TABLE, XML_BOOLEAN_VALUE ),
     923           1 :     ENTRY1Q( OFFICE, STRING_VALUE, XML_ATACTION_RENAME,
     924             :            XML_NAMESPACE_TABLE, XML_STRING_VALUE ),
     925             :     ENTRY1( TABLE, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
     926             :                 XML_FAMILY_TYPE_TABLE_CELL ),
     927             :     ENTRY0( TABLE, FORMULA, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
     928           1 :     ENTRY1Q( TABLE, CONTENT_VALIDATION_NAME, XML_ATACTION_RENAME,
     929             :            XML_NAMESPACE_TABLE, XML_VALIDATION_NAME ),
     930             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     931           8 : };
     932             : 
     933             : // action table for OASIS_ANNOTATION_ACTIONS
     934             : static XMLTransformerActionInit aAnnotationActionTable[] =
     935             : {
     936           1 :     ENTRY1Q( DC, CREATOR, XML_ATACTION_MOVE_FROM_ELEM,
     937             :                 XML_NAMESPACE_OFFICE, XML_AUTHOR ),
     938           1 :     ENTRY1Q( DC, DATE, XML_ATACTION_MOVE_FROM_ELEM_RNG2ISO_DATETIME,
     939             :                 XML_NAMESPACE_OFFICE, XML_CREATE_DATE ),
     940           1 :     ENTRY1Q( META, DATE_STRING, XML_ATACTION_MOVE_FROM_ELEM,
     941             :                 XML_NAMESPACE_OFFICE, XML_CREATE_DATE_STRING ),
     942             :     ENTRY0( TEXT, P, XML_ETACTION_EXTRACT_CHARACTERS ),
     943             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     944           3 : };
     945             : 
     946             : // action table for OASIS_CHANGE_INFO_ACTIONS
     947             : static XMLTransformerActionInit aChangeInfoActionTable[] =
     948             : {
     949           1 :     ENTRY1Q( DC, CREATOR, XML_ATACTION_MOVE_FROM_ELEM,
     950             :                 XML_NAMESPACE_OFFICE, XML_CHG_AUTHOR ),
     951           1 :     ENTRY1Q( DC, DATE, XML_ATACTION_MOVE_FROM_ELEM_RNG2ISO_DATETIME,
     952             :                 XML_NAMESPACE_OFFICE, XML_CHG_DATE_TIME ),
     953             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     954           2 : };
     955             : 
     956             : // OASIS_BACKGROUND_IMAGE_ACTIONS
     957             : static XMLTransformerActionInit aBackgroundImageActionTable[] =
     958             : {
     959           1 :     ENTRY1Q( DRAW, OPACITY, XML_ATACTION_RENAME_NEG_PERCENT,
     960             :                      XML_NAMESPACE_DRAW, XML_TRANSPARENCY ),
     961             :     ENTRY1( XLINK, HREF, XML_ATACTION_URI_OASIS, sal_True ),
     962             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     963           1 : };
     964             : 
     965             : // OASIS_DDE_CONNECTION_DECL
     966             : static XMLTransformerActionInit aDDEConnectionDeclActionTable[] =
     967             : {
     968           1 :     ENTRY1Q( OFFICE, NAME, XML_ATACTION_RENAME,
     969             :                      XML_NAMESPACE_TEXT, XML_NAME ),
     970             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     971           1 : };
     972             : 
     973             : 
     974             : // OASIS_FORM_CONTROL_ACTIONS
     975             : static XMLTransformerActionInit aFormControlActionTable[] =
     976             : {
     977             :     ENTRY0( FORM, NAME, XML_ATACTION_MOVE_TO_ELEM ),
     978           1 :     ENTRY2QN( FORM, CONTROL_IMPLEMENTATION,
     979             :                     XML_ATACTION_RENAME_REMOVE_NAMESPACE_PREFIX,
     980             :                        XML_NAMESPACE_FORM, XML_SERVICE_NAME,
     981             :                     XML_NAMESPACE_OOO ),
     982             :     ENTRY0( FORM, ID, XML_ATACTION_MOVE_TO_ELEM ),
     983             :     ENTRY1( XLINK, HREF, XML_ATACTION_URI_OASIS, sal_False ),
     984             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     985           1 : };
     986             : 
     987             : // OASIS_FORM_COLUMN_ACTIONS
     988             : static XMLTransformerActionInit aFormColumnActionTable[] =
     989             : {
     990           1 :     ENTRY1Q( FORM, TEXT_STYLE_NAME, XML_ATACTION_RENAME_DECODE_STYLE_NAME_REF,
     991             :                         XML_NAMESPACE_FORM, XML_COLUMN_STYLE_NAME ),
     992           1 :     ENTRY2QN( FORM, CONTROL_IMPLEMENTATION,
     993             :                     XML_ATACTION_RENAME_REMOVE_NAMESPACE_PREFIX,
     994             :                        XML_NAMESPACE_FORM, XML_SERVICE_NAME,
     995             :                     XML_NAMESPACE_OOO ),
     996             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
     997           2 : };
     998             : 
     999             : // OASIS_FORM_PROP_ACTIONS
    1000             : static XMLTransformerActionInit aFormPropActionTable[] =
    1001             : {
    1002           1 :     ENTRY1Q( OFFICE, VALUE_TYPE, XML_ATACTION_RENAME,
    1003             :                           XML_NAMESPACE_FORM, XML_PROPERTY_TYPE ),
    1004             :     ENTRY0( OFFICE, VALUE, XML_ATACTION_REMOVE ),
    1005             :     ENTRY0( OFFICE, STRING_VALUE, XML_ATACTION_REMOVE ),
    1006             :     ENTRY0( OFFICE, BOOLEAN_VALUE, XML_ATACTION_REMOVE ),
    1007             :     ENTRY0( OFFICE, DATE_VALUE, XML_ATACTION_REMOVE ),
    1008             :     ENTRY0( OFFICE, TIME_VALUE, XML_ATACTION_REMOVE ),
    1009             :     ENTRY0( OFFICE, CURRENCY, XML_ATACTION_REMOVE ),
    1010             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1011           1 : };
    1012             : 
    1013             : // OASIS_XLINK_ACTIONS
    1014             : static XMLTransformerActionInit aXLinkActionTable[] =
    1015             : {
    1016             :     ENTRY1( XLINK, HREF, XML_ATACTION_URI_OASIS, sal_False ),
    1017             :     ENTRY0( TABLE, REFRESH_DELAY, XML_ATACTION_RNG2ISO_DATETIME ),
    1018             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1019             : };
    1020             : 
    1021             : // OASIS_CONFIG_ITEM_SET_ACTIONS
    1022             : static XMLTransformerActionInit aConfigItemSetActionTable[] =
    1023             : {
    1024             :     ENTRY1( CONFIG, NAME, XML_ATACTION_REMOVE_NAMESPACE_PREFIX,
    1025             :                     XML_NAMESPACE_OOO ),
    1026             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1027             : };
    1028             : 
    1029             : // OASIS_FORMULA_ACTIONS
    1030             : static XMLTransformerActionInit aFormulaActionTable[] =
    1031             : {
    1032             :     ENTRY0( TEXT, CONDITION, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
    1033             :     ENTRY0( TEXT, FORMULA, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
    1034             :     ENTRY0( TABLE, CONDITION, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
    1035             :     ENTRY0( TABLE, FORMULA, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
    1036             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1037             : };
    1038             : 
    1039             : // OASIS_CONTENT_VALIDATION_ACTIONS
    1040             : static XMLTransformerActionInit aContentValidationActionTable[] =
    1041             : {
    1042             :     ENTRY0( TABLE, CONDITION, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
    1043             :     ENTRY0( TABLE, DISPLAY_LIST, XML_ATACTION_REMOVE ),
    1044             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1045             : };
    1046             : 
    1047             : // OASIS_DDE_CONV_MODE_ACTIONS
    1048             : static XMLTransformerActionInit aDDEConvModeActionTable[] =
    1049             : {
    1050           1 :     ENTRY1Q( TABLE, KEEP_TEXT, XML_ATACTION_RENAME,
    1051             :                         XML_NAMESPACE_TABLE, XML_LET_TEXT ),
    1052             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1053           1 : };
    1054             : 
    1055             : // OASIS_DATAPILOT_MEMBER_ACTIONS
    1056             : static XMLTransformerActionInit aDataPilotMemberActionTable[] =
    1057             : {
    1058           1 :     ENTRY1Q( TABLE, SHOW_DETAILS, XML_ATACTION_RENAME,
    1059             :                         XML_NAMESPACE_TABLE, XML_DISPLAY_DETAILS ),
    1060             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1061           1 : };
    1062             : 
    1063             : // OASIS_DATAPILOT_LEVEL_ACTIONS
    1064             : static XMLTransformerActionInit aDataPilotLevelActionTable[] =
    1065             : {
    1066           1 :     ENTRY1Q( TABLE, SHOW_EMPTY, XML_ATACTION_RENAME,
    1067             :                         XML_NAMESPACE_TABLE, XML_DISPLAY_EMPTY ),
    1068             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1069           1 : };
    1070             : 
    1071             : // OASIS_SOURCE_SERVICE_ACTIONS
    1072             : static XMLTransformerActionInit aSourceServiceActionTable[] =
    1073             : {
    1074           1 :     ENTRY1Q( TABLE, USER_NAME, XML_ATACTION_RENAME,
    1075             :                         XML_NAMESPACE_TABLE, XML_USERNAME ),
    1076             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1077           1 : };
    1078             : 
    1079             : // OASIS_CHART_ACTIONS
    1080             : static XMLTransformerActionInit aChartActionTable[] =
    1081             : {
    1082             :     ENTRY0( CHART, CLASS, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
    1083             :     ENTRY1( DRAW, STYLE_NAME, XML_ATACTION_DECODE_STYLE_NAME_REF,
    1084             :                 XML_FAMILY_TYPE_GRAPHIC ),
    1085             :     ENTRY0( SVG, WIDTH, XML_ATACTION_IN2INCH ),
    1086             :     ENTRY0( SVG, HEIGHT, XML_ATACTION_IN2INCH ),
    1087             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1088             : };
    1089             : 
    1090             : // OASIS_FORM_ACTIONS
    1091             : static XMLTransformerActionInit aFormActionTable[] =
    1092             : {
    1093           1 :     ENTRY2QN( FORM, CONTROL_IMPLEMENTATION,
    1094             :                     XML_ATACTION_RENAME_REMOVE_NAMESPACE_PREFIX,
    1095             :                        XML_NAMESPACE_FORM, XML_SERVICE_NAME,
    1096             :                     XML_NAMESPACE_OOO ),
    1097             :     ENTRY1( XLINK, HREF, XML_ATACTION_URI_OASIS, sal_False ),
    1098             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1099           1 : };
    1100             : 
    1101             : // OASIS_ALPHABETICAL_INDEX_MARK_ACTIONS
    1102             : static XMLTransformerActionInit aAlphabeticalIndexMarkActionTable[] =
    1103             : {
    1104           1 :     ENTRY1Q( TEXT, MAIN_ENTRY, XML_ATACTION_RENAME,
    1105             :                         XML_NAMESPACE_TEXT, XML_MAIN_ETRY ),
    1106             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1107           1 : };
    1108             : 
    1109             : // OASIS_DRAW_AREA_POLYGON_ACTIONS (to be added to OASIS_SHAPE_ACTIONS)
    1110             : static XMLTransformerActionInit aDrawAreaPolygonActionTable[] =
    1111             : {
    1112           1 :     ENTRY1Q( DRAW, POINTS, XML_ATACTION_RENAME,
    1113             :              XML_NAMESPACE_SVG, XML_POINTS ),
    1114             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1115           1 : };
    1116             : 
    1117             : // OASIS_SCRIPT_ACTIONS
    1118             : static XMLTransformerActionInit aScriptActionTable[] =
    1119             : {
    1120             :     ENTRY1( SCRIPT, LANGUAGE, XML_ATACTION_REMOVE_NAMESPACE_PREFIX, XML_NAMESPACE_OOO ),
    1121           1 :     ENTRY1Q( OOO, NAME, XML_ATACTION_RENAME, XML_NAMESPACE_SCRIPT, XML_NAME ),
    1122           1 :     ENTRY1Q( OOO, READONLY, XML_ATACTION_RENAME, XML_NAMESPACE_SCRIPT, XML_READONLY ),
    1123             :     ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
    1124           2 : };
    1125             : 
    1126             : // OASIS_DATETIME_ACTIONS
    1127             : static XMLTransformerActionInit aDateTimeActionTable[] =
    1128             : {
    1129             :     ENTRY0( TEXT,   DATE_VALUE,        XML_ATACTION_RNG2ISO_DATETIME ),
    1130             :     ENTRY0( TEXT,   TIME_VALUE,        XML_ATACTION_RNG2ISO_DATETIME ),
    1131             :     ENTRY0( TEXT,   DATE_ADJUST,       XML_ATACTION_RNG2ISO_DATETIME ),
    1132             :     ENTRY0( TEXT,   TIME_ADJUST,       XML_ATACTION_RNG2ISO_DATETIME ),
    1133             :     ENTRY0( TEXT,   DURATION,          XML_ATACTION_RNG2ISO_DATETIME ),
    1134             :     ENTRY0( OFFICE, DATE_VALUE,        XML_ATACTION_RNG2ISO_DATETIME ),
    1135             :     ENTRY0( OFFICE, TIME_VALUE,        XML_ATACTION_RNG2ISO_DATETIME ),
    1136             :     ENTRY0( FORM,   VALUE,             XML_ATACTION_RNG2ISO_DATETIME ),
    1137             :     ENTRY0( FORM,   CURRENT_VALUE,     XML_ATACTION_RNG2ISO_DATETIME ),
    1138             :     ENTRY0( TABLE,  DATE_START,        XML_ATACTION_RNG2ISO_DATETIME ),
    1139             :     ENTRY0( TABLE,  DATE_END,          XML_ATACTION_RNG2ISO_DATETIME ),
    1140             :     ENTRY0( TABLE,  REFRESH_DELAY,     XML_ATACTION_RNG2ISO_DATETIME ),
    1141             :     ENTRY0( PRESENTATION, DELAY,       XML_ATACTION_RNG2ISO_DATETIME ),
    1142             :     ENTRY0( PRESENTATION, PAUSE,       XML_ATACTION_RNG2ISO_DATETIME ),
    1143             :     ENTRY0( OFFICE, TOKEN_INVALID,     XML_ATACTION_EOT )
    1144             : };
    1145             : 
    1146             : static XMLTokenEnum aTokenMap[] =
    1147             : {
    1148             :     XML_NONE, XML_SOLID, XML_DOTTED, XML_DASH, XML_LONG_DASH, XML_DOT_DASH,
    1149             :     XML_DOT_DOT_DASH, XML_WAVE, XML_SMALL_WAVE, XML_TOKEN_END
    1150             : };
    1151             : 
    1152             : // -----------------------------------------------------------------------------
    1153             : 
    1154             : class XMLTableTransformerContext_Impl : public XMLTransformerContext
    1155             : {
    1156             :     ::rtl::OUString m_aElemQName;
    1157             : 
    1158             : public:
    1159             :     TYPEINFO();
    1160             : 
    1161             :     XMLTableTransformerContext_Impl( XMLTransformerBase& rTransformer,
    1162             :                            const ::rtl::OUString& rQName );
    1163             : 
    1164             :     virtual ~XMLTableTransformerContext_Impl();
    1165             : 
    1166             :     virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
    1167             :     virtual void EndElement();
    1168             : };
    1169             : 
    1170           0 : TYPEINIT1( XMLTableTransformerContext_Impl, XMLTransformerContext );
    1171             : 
    1172           0 : XMLTableTransformerContext_Impl::XMLTableTransformerContext_Impl(
    1173             :         XMLTransformerBase& rImp,
    1174             :         const OUString& rQName ) :
    1175             :     XMLTransformerContext( rImp, rQName ),
    1176           0 :     m_aElemQName( rQName )
    1177             : {
    1178           0 : }
    1179             : 
    1180           0 : XMLTableTransformerContext_Impl::~XMLTableTransformerContext_Impl()
    1181             : {
    1182           0 : }
    1183             : 
    1184           0 : void XMLTableTransformerContext_Impl::StartElement(
    1185             :         const Reference< XAttributeList >& rAttrList )
    1186             : {
    1187           0 :     Reference< XAttributeList > xAttrList( rAttrList );
    1188             : 
    1189           0 :     XMLMutableAttributeList *pMutableAttrList = 0;
    1190             : 
    1191           0 :     sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
    1192           0 :     for( sal_Int16 i=0; i < nAttrCount; i++ )
    1193             :     {
    1194           0 :         const OUString& rAttrName = xAttrList->getNameByIndex( i );
    1195           0 :         OUString aLocalName;
    1196             :         sal_uInt16 nPrefix =
    1197           0 :             GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName,
    1198           0 :                                                                  &aLocalName );
    1199           0 :         if( XML_NAMESPACE_TABLE == nPrefix )
    1200             :         {
    1201           0 :             if ( IsXMLToken( aLocalName, XML_IS_SUB_TABLE ) )
    1202             :             {
    1203           0 :                 const OUString& rValue = xAttrList->getValueByIndex( i );
    1204           0 :                 if( IsXMLToken( rValue, XML_TRUE ) )
    1205             :                 {
    1206           0 :                     m_aElemQName = GetTransformer().GetNamespaceMap().GetQNameByKey(
    1207             :                                 XML_NAMESPACE_TABLE,
    1208           0 :                                 ::xmloff::token::GetXMLToken( XML_SUB_TABLE ) );
    1209           0 :                     if ( !pMutableAttrList )
    1210             :                     {
    1211             :                         pMutableAttrList =
    1212           0 :                             new XMLMutableAttributeList( xAttrList );
    1213           0 :                         xAttrList = pMutableAttrList;
    1214             :                     }
    1215           0 :                     pMutableAttrList->RemoveAttributeByIndex( i );
    1216           0 :                 }
    1217             :                 // OD 2005-07-05 #i50521# - no break here for savety reason.
    1218             :             }
    1219             :             // Convert attribute table:style-name for <table:table> (#i40011#, #i40015#)
    1220           0 :             else if ( IsXMLToken( aLocalName, XML_STYLE_NAME ) )
    1221             :             {
    1222           0 :                 const OUString& rValue = xAttrList->getValueByIndex( i );
    1223           0 :                 OUString aAttrValue( rValue );
    1224           0 :                 if( GetTransformer().DecodeStyleName(aAttrValue) )
    1225             :                 {
    1226           0 :                     if ( !pMutableAttrList )
    1227             :                     {
    1228             :                         pMutableAttrList =
    1229           0 :                             new XMLMutableAttributeList( xAttrList );
    1230           0 :                         xAttrList = pMutableAttrList;
    1231             :                     }
    1232           0 :                     pMutableAttrList->SetValueByIndex( i, aAttrValue );
    1233           0 :                 }
    1234             :             }
    1235           0 :             else if( IsXMLToken( aLocalName, XML_PRINT ) )
    1236             :             {
    1237           0 :                 if ( !pMutableAttrList )
    1238             :                 {
    1239             :                     pMutableAttrList =
    1240           0 :                         new XMLMutableAttributeList( xAttrList );
    1241           0 :                     xAttrList = pMutableAttrList;
    1242             :                 }
    1243           0 :                 pMutableAttrList->RemoveAttributeByIndex( i );
    1244             :             }
    1245             :         }
    1246           0 :     }
    1247             : 
    1248           0 :     GetTransformer().GetDocHandler()->startElement( m_aElemQName, xAttrList );
    1249           0 : }
    1250             : 
    1251           0 : void XMLTableTransformerContext_Impl::EndElement()
    1252             : {
    1253           0 :     GetTransformer().GetDocHandler()->endElement( m_aElemQName );
    1254           0 : }
    1255             : 
    1256             : // -----------------------------------------------------------------------------
    1257             : 
    1258             : class XMLBodyOASISTransformerContext_Impl : public XMLTransformerContext
    1259             : {
    1260             :     sal_Bool m_bFirstChild;
    1261             : 
    1262             : public:
    1263             :     TYPEINFO();
    1264             : 
    1265             :     XMLBodyOASISTransformerContext_Impl( XMLTransformerBase& rTransformer,
    1266             :                            const ::rtl::OUString& rQName );
    1267             : 
    1268             :     virtual ~XMLBodyOASISTransformerContext_Impl();
    1269             : 
    1270             :     virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
    1271             : 
    1272             :     virtual XMLTransformerContext *CreateChildContext( sal_uInt16 nPrefix,
    1273             :                                    const ::rtl::OUString& rLocalName,
    1274             :                                    const ::rtl::OUString& rQName,
    1275             :                                    const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
    1276             :     virtual void EndElement();
    1277             : };
    1278             : 
    1279           0 : TYPEINIT1( XMLBodyOASISTransformerContext_Impl, XMLTransformerContext );
    1280             : 
    1281           0 : XMLBodyOASISTransformerContext_Impl::XMLBodyOASISTransformerContext_Impl(
    1282             :         XMLTransformerBase& rImp,
    1283             :         const OUString& rQName ) :
    1284             :     XMLTransformerContext( rImp, rQName ),
    1285           0 :     m_bFirstChild( sal_False )
    1286             : {
    1287           0 : }
    1288             : 
    1289           0 : XMLBodyOASISTransformerContext_Impl::~XMLBodyOASISTransformerContext_Impl()
    1290             : {
    1291           0 : }
    1292             : 
    1293           0 : void XMLBodyOASISTransformerContext_Impl::StartElement(
    1294             :         const Reference< XAttributeList >& )
    1295             : {
    1296           0 : }
    1297             : 
    1298           0 : XMLTransformerContext* XMLBodyOASISTransformerContext_Impl::CreateChildContext( sal_uInt16 nPrefix,
    1299             :                                    const ::rtl::OUString& rLocalName,
    1300             :                                    const ::rtl::OUString& rQName,
    1301             :                                    const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList )
    1302             : {
    1303           0 :     if (!m_bFirstChild)
    1304             :     {
    1305           0 :         m_bFirstChild = sal_True;
    1306           0 :         XMLTransformerContext::StartElement(xAttrList);
    1307             :     }
    1308             : 
    1309           0 :     return XMLTransformerContext::CreateChildContext(nPrefix, rLocalName, rQName, xAttrList);
    1310             : }
    1311             : 
    1312           0 : void XMLBodyOASISTransformerContext_Impl::EndElement()
    1313             : {
    1314           0 :     if (!m_bFirstChild)
    1315           0 :         XMLTransformerContext::StartElement(Reference< XAttributeList >());
    1316             : 
    1317           0 :     XMLTransformerContext::EndElement();
    1318           0 : }
    1319             : 
    1320             : //-----------------------------------------------------------------------------
    1321             : 
    1322             : class XMLTabStopOASISTContext_Impl : public XMLPersElemContentTContext
    1323             : {
    1324             : public:
    1325             :     TYPEINFO();
    1326             : 
    1327             :     XMLTabStopOASISTContext_Impl( XMLTransformerBase& rTransformer,
    1328             :                            const ::rtl::OUString& rQName );
    1329             : 
    1330             :     virtual ~XMLTabStopOASISTContext_Impl();
    1331             : 
    1332             :     virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
    1333             : };
    1334             : 
    1335           0 : TYPEINIT1( XMLTabStopOASISTContext_Impl, XMLPersElemContentTContext );
    1336             : 
    1337           0 : XMLTabStopOASISTContext_Impl::XMLTabStopOASISTContext_Impl(
    1338             :         XMLTransformerBase& rImp,
    1339             :         const OUString& rQName ) :
    1340           0 :     XMLPersElemContentTContext( rImp, rQName )
    1341             : {
    1342           0 : }
    1343             : 
    1344           0 : XMLTabStopOASISTContext_Impl::~XMLTabStopOASISTContext_Impl()
    1345             : {
    1346           0 : }
    1347             : 
    1348           0 : void XMLTabStopOASISTContext_Impl::StartElement(
    1349             :         const Reference< XAttributeList >& rAttrList )
    1350             : {
    1351             :     XMLTransformerActions *pActions =
    1352           0 :         GetTransformer().GetUserDefinedActions( OASIS_TAB_STOP_ACTIONS  );
    1353             :     OSL_ENSURE( pActions, "go no actions" );
    1354             : 
    1355           0 :     sal_Unicode cStyleLeaderChar = 0;
    1356           0 :     sal_Int16 nLeaderText = -1;
    1357           0 :     Reference< XAttributeList > xAttrList( rAttrList );
    1358           0 :     XMLMutableAttributeList *pMutableAttrList = 0;
    1359           0 :     sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
    1360           0 :     for( sal_Int16 i=0; i < nAttrCount; i++ )
    1361             :     {
    1362           0 :         const OUString& rAttrName = xAttrList->getNameByIndex( i );
    1363           0 :         OUString aLocalName;
    1364             :         sal_uInt16 nPrefix =
    1365           0 :             GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName,
    1366           0 :                                                                  &aLocalName );
    1367           0 :         XMLTransformerActions::key_type aKey( nPrefix, aLocalName );
    1368             :         XMLTransformerActions::const_iterator aIter =
    1369           0 :             pActions->find( aKey );
    1370           0 :         if( !(aIter == pActions->end() ) )
    1371             :         {
    1372           0 :             if( !pMutableAttrList )
    1373             :             {
    1374             :                 pMutableAttrList =
    1375           0 :                     new XMLMutableAttributeList( xAttrList );
    1376           0 :                 xAttrList = pMutableAttrList;
    1377             :             }
    1378           0 :             const OUString& rAttrValue = xAttrList->getValueByIndex( i );
    1379           0 :             switch( (*aIter).second.m_nActionType )
    1380             :             {
    1381             :             case XML_ATACTION_REMOVE:
    1382           0 :                 if( IsXMLToken( aLocalName, XML_LEADER_STYLE ) )
    1383             :                 {
    1384           0 :                     if( IsXMLToken( rAttrValue, XML_NONE ) )
    1385           0 :                         cStyleLeaderChar = ' ';
    1386           0 :                     else if( IsXMLToken( rAttrValue, XML_DOTTED ) )
    1387           0 :                         cStyleLeaderChar = '.';
    1388             :                     else
    1389           0 :                         cStyleLeaderChar = 0;
    1390           0 :                     pMutableAttrList->RemoveAttributeByIndex( i );
    1391           0 :                     --i;
    1392           0 :                     --nAttrCount;
    1393             :                 }
    1394           0 :                 break;
    1395             :             case XML_ATACTION_RENAME:
    1396             :                 {
    1397             :                     OUString aNewAttrQName(
    1398           0 :                         GetTransformer().GetNamespaceMap().GetQNameByKey(
    1399           0 :                             (*aIter).second.GetQNamePrefixFromParam1(),
    1400             :                             ::xmloff::token::GetXMLToken(
    1401           0 :                             (*aIter).second.GetQNameTokenFromParam1()) ) );
    1402             :                     pMutableAttrList->RenameAttributeByIndex( i,
    1403           0 :                                                               aNewAttrQName );
    1404             :                 }
    1405           0 :                 if( IsXMLToken( aLocalName, XML_LEADER_TEXT ) )
    1406             :                 {
    1407           0 :                     if( rAttrValue.getLength() > 1 )
    1408             :                     {
    1409           0 :                         OUString aAttrValue( rAttrValue.copy( 0, 1 ) );
    1410           0 :                         pMutableAttrList->SetValueByIndex( i, aAttrValue );
    1411           0 :                         nLeaderText = i;
    1412             :                     }
    1413             :                 }
    1414           0 :                 break;
    1415             :             case XML_ATACTION_IN2INCH:
    1416             :                 {
    1417           0 :                     OUString aAttrValue( rAttrValue );
    1418           0 :                     if( XMLTransformerBase::ReplaceSingleInWithInch(
    1419           0 :                                 aAttrValue ) )
    1420           0 :                         pMutableAttrList->SetValueByIndex( i, aAttrValue );
    1421             :                 }
    1422           0 :                 break;
    1423             :             default:
    1424             :                 OSL_ENSURE( !this, "unknown action" );
    1425           0 :                 break;
    1426           0 :             }
    1427             :         }
    1428           0 :     }
    1429             : 
    1430           0 :     if( cStyleLeaderChar && ' ' != cStyleLeaderChar )
    1431             :     {
    1432           0 :         if( nLeaderText != -1 )
    1433             :         {
    1434             :             OUString aNewAttrQName(
    1435           0 :                 GetTransformer().GetNamespaceMap().GetQNameByKey(
    1436             :                             XML_NAMESPACE_STYLE,
    1437           0 :                             ::xmloff::token::GetXMLToken( XML_LEADER_CHAR ) ) );
    1438             :             pMutableAttrList->AddAttribute( aNewAttrQName,
    1439           0 :                                     OUString::valueOf( cStyleLeaderChar ) );
    1440           0 :         }
    1441             :     }
    1442             :     else
    1443             :     {
    1444           0 :         if( nLeaderText != -1 )
    1445           0 :             pMutableAttrList->RemoveAttributeByIndex( nLeaderText );
    1446             :     }
    1447             : 
    1448           0 :     XMLPersElemContentTContext::StartElement( xAttrList );
    1449           0 : }
    1450             : 
    1451             : // -----------------------------------------------------------------------------
    1452             : 
    1453             : class XMLConfigItemTContext_Impl : public XMLTransformerContext
    1454             : {
    1455             :     ::rtl::OUString m_aContent;
    1456             :     sal_Bool m_bIsRedlineProtectionKey;
    1457             :     sal_Bool m_bIsCursorX;
    1458             :     sal_Bool m_bIsCursorY;
    1459             : 
    1460             : public:
    1461             : 
    1462             :     TYPEINFO();
    1463             : 
    1464             :     XMLConfigItemTContext_Impl( XMLTransformerBase& rTransformer,
    1465             :                            const ::rtl::OUString& rQName );
    1466             : 
    1467             :     virtual ~XMLConfigItemTContext_Impl();
    1468             : 
    1469             :     virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
    1470             :     virtual void EndElement();
    1471             : 
    1472             :     virtual void Characters( const ::rtl::OUString& rChars );
    1473             : };
    1474             : 
    1475           0 : TYPEINIT1( XMLConfigItemTContext_Impl, XMLTransformerContext );
    1476             : 
    1477           0 : XMLConfigItemTContext_Impl::XMLConfigItemTContext_Impl(
    1478             :         XMLTransformerBase& rImp,
    1479             :         const OUString& rQName ) :
    1480             :     XMLTransformerContext( rImp, rQName ),
    1481             :     m_bIsRedlineProtectionKey( sal_False ),
    1482             :     m_bIsCursorX( sal_False ),
    1483           0 :     m_bIsCursorY( sal_False )
    1484             : {
    1485           0 : }
    1486             : 
    1487           0 : XMLConfigItemTContext_Impl::~XMLConfigItemTContext_Impl()
    1488             : {
    1489           0 : }
    1490             : 
    1491           0 : void XMLConfigItemTContext_Impl::StartElement(
    1492             :         const Reference< XAttributeList >& rAttrList )
    1493             : {
    1494           0 :     Reference< XAttributeList > xAttrList( rAttrList );
    1495             : 
    1496           0 :     sal_Int16 nAttrCount = xAttrList.is() ? xAttrList->getLength() : 0;
    1497           0 :     for( sal_Int16 i=0; i < nAttrCount; i++ )
    1498             :     {
    1499           0 :         const OUString& rAttrName = xAttrList->getNameByIndex( i );
    1500           0 :         OUString aLocalName;
    1501             :         sal_uInt16 nPrefix =
    1502           0 :             GetTransformer().GetNamespaceMap().GetKeyByAttrName( rAttrName,
    1503           0 :                                                                  &aLocalName );
    1504           0 :         if( XML_NAMESPACE_CONFIG == nPrefix )
    1505             :         {
    1506           0 :             if ( IsXMLToken( aLocalName, XML_NAME ) )
    1507             :             {
    1508           0 :                 const OUString& rValue = xAttrList->getValueByIndex( i );
    1509           0 :                 const sal_Char sRedlineProtectionKey[] = "RedlineProtectionKey";
    1510           0 :                 const sal_Char sCursorX[] = "CursorPositionX";
    1511           0 :                 const sal_Char sCursorY[] = "CursorPositionY";
    1512           0 :                 if( rValue.equalsAsciiL( sRedlineProtectionKey, sizeof(sRedlineProtectionKey)-1 ) )
    1513           0 :                     m_bIsRedlineProtectionKey = sal_True;
    1514           0 :                 else if( rValue.equalsAsciiL( sCursorX, sizeof(sCursorX)-1 ) )
    1515           0 :                     m_bIsCursorX = sal_True;
    1516           0 :                 else if( rValue.equalsAsciiL( sCursorY, sizeof(sCursorY)-1 ) )
    1517           0 :                     m_bIsCursorY = sal_True;
    1518             : 
    1519           0 :                 break;
    1520             :             }
    1521             :         }
    1522           0 :     }
    1523             : 
    1524           0 :     XMLTransformerContext::StartElement( xAttrList );
    1525           0 : }
    1526             : 
    1527           0 : void XMLConfigItemTContext_Impl::Characters( const ::rtl::OUString& rChars )
    1528             : {
    1529           0 :     rtl::OUString sChars(rChars);
    1530           0 :     if (m_bIsRedlineProtectionKey)
    1531           0 :         m_aContent += rChars;
    1532           0 :     else if (m_bIsCursorX || m_bIsCursorY)
    1533             :     {
    1534           0 :         sal_Int32 nPos = rChars.toInt32();
    1535           0 :         if (m_bIsCursorX && nPos > 255)
    1536           0 :             nPos = 255;
    1537           0 :         else if (m_bIsCursorY && nPos > 31999)
    1538           0 :             nPos = 31999;
    1539             : 
    1540           0 :         sChars = ::rtl::OUString::valueOf(nPos);
    1541             :     }
    1542             : 
    1543           0 :     XMLTransformerContext::Characters( sChars );
    1544           0 : }
    1545             : 
    1546           0 : void XMLConfigItemTContext_Impl::EndElement()
    1547             : {
    1548             : 
    1549           0 :     if( m_bIsRedlineProtectionKey )
    1550             :     {
    1551             :         const Reference< XPropertySet > rPropSet =
    1552           0 :             GetTransformer().GetPropertySet();
    1553           0 :         if( rPropSet.is() )
    1554             :         {
    1555           0 :             const sal_Char sRedlineProtectionKey[] = "RedlineProtectionKey";
    1556           0 :             OUString aPropName(RTL_CONSTASCII_USTRINGPARAM(sRedlineProtectionKey));
    1557             :             Reference< XPropertySetInfo > xPropSetInfo(
    1558           0 :                         rPropSet->getPropertySetInfo() );
    1559           0 :             if( xPropSetInfo.is() &&
    1560           0 :                 xPropSetInfo->hasPropertyByName( aPropName ) )
    1561             :             {
    1562           0 :                 Sequence < sal_Int8 > aKey;
    1563           0 :                 ::sax::Converter::decodeBase64( aKey, m_aContent );
    1564           0 :                 rPropSet->setPropertyValue( aPropName, makeAny( aKey ) );
    1565           0 :             }
    1566           0 :         }
    1567             :     }
    1568           0 :     XMLTransformerContext::EndElement();
    1569           0 : }
    1570             : 
    1571             : // -----------------------------------------------------------------------------
    1572             : 
    1573             : class XMLTrackedChangesOASISTContext_Impl : public XMLTransformerContext
    1574             : {
    1575             :     ::rtl::OUString m_aAttrQName;
    1576             : 
    1577             : public:
    1578             : 
    1579             :     TYPEINFO();
    1580             : 
    1581             :     XMLTrackedChangesOASISTContext_Impl( XMLTransformerBase& rTransformer,
    1582             :                            const ::rtl::OUString& rQName,
    1583             :                                sal_uInt16 nPrefix,
    1584             :                             XMLTokenEnum eToken );
    1585             : 
    1586             :     virtual ~XMLTrackedChangesOASISTContext_Impl();
    1587             : 
    1588             :     virtual void StartElement( const ::com::sun::star::uno::Reference< ::com::sun::star::xml::sax::XAttributeList >& xAttrList );
    1589             : };
    1590             : 
    1591           0 : TYPEINIT1( XMLTrackedChangesOASISTContext_Impl, XMLTransformerContext );
    1592             : 
    1593           0 : XMLTrackedChangesOASISTContext_Impl::XMLTrackedChangesOASISTContext_Impl(
    1594             :         XMLTransformerBase& rImp,
    1595             :         const OUString& rQName,
    1596             :         sal_uInt16 nPrefix,
    1597             :         XMLTokenEnum eToken ) :
    1598             :     XMLTransformerContext( rImp, rQName ),
    1599           0 :     m_aAttrQName( rImp.GetNamespaceMap().GetQNameByKey( nPrefix,
    1600           0 :                                                         GetXMLToken(eToken)) )
    1601             : {
    1602           0 : }
    1603             : 
    1604           0 : XMLTrackedChangesOASISTContext_Impl::~XMLTrackedChangesOASISTContext_Impl()
    1605             : {
    1606           0 : }
    1607             : 
    1608           0 : void XMLTrackedChangesOASISTContext_Impl::StartElement(
    1609             :         const Reference< XAttributeList >& rAttrList )
    1610             : {
    1611           0 :     Reference< XAttributeList > xAttrList( rAttrList );
    1612             :     const Reference< XPropertySet > rPropSet =
    1613           0 :         GetTransformer().GetPropertySet();
    1614           0 :     if( rPropSet.is() )
    1615             :     {
    1616           0 :         const sal_Char sRedlineProtectionKey[] = "RedlineProtectionKey";
    1617           0 :         OUString aPropName(RTL_CONSTASCII_USTRINGPARAM(sRedlineProtectionKey));
    1618             :         Reference< XPropertySetInfo > xPropSetInfo(
    1619           0 :                     rPropSet->getPropertySetInfo() );
    1620           0 :         if( xPropSetInfo.is() &&
    1621           0 :             xPropSetInfo->hasPropertyByName( aPropName ) )
    1622             :         {
    1623           0 :             Any aAny = rPropSet->getPropertyValue( aPropName);
    1624           0 :             Sequence < sal_Int8 > aKey;
    1625           0 :             aAny >>= aKey;
    1626           0 :             if( aKey.getLength() )
    1627             :             {
    1628           0 :                 OUStringBuffer aBuffer;
    1629           0 :                 ::sax::Converter::encodeBase64( aBuffer, aKey );
    1630             :                 XMLMutableAttributeList *pMutableAttrList =
    1631           0 :                     new XMLMutableAttributeList( xAttrList );
    1632           0 :                 xAttrList = pMutableAttrList;
    1633             :                 pMutableAttrList->AddAttribute( m_aAttrQName,
    1634           0 :                                                 aBuffer.makeStringAndClear() );
    1635           0 :             }
    1636           0 :         }
    1637             :     }
    1638           0 :     XMLTransformerContext::StartElement( xAttrList );
    1639           0 : }
    1640             : 
    1641             : // -----------------------------------------------------------------------------
    1642             : 
    1643           0 : XMLTransformerContext *Oasis2OOoTransformer::CreateUserDefinedContext(
    1644             :                               const TransformerAction_Impl& rAction,
    1645             :                               const OUString& rQName,
    1646             :                                  sal_Bool bPersistent )
    1647             : {
    1648           0 :     switch( rAction.m_nActionType )
    1649             :     {
    1650             :     case XML_ETACTION_META:
    1651           0 :         return new XMLMetaTransformerContext( *this, rQName );
    1652             :     case XML_ETACTION_DOCUMENT:
    1653           0 :         return new XMLDocumentTransformerContext( *this, rQName );
    1654             :     case XML_ETACTION_BODY:
    1655           0 :         return new XMLBodyOASISTransformerContext_Impl( *this, rQName );
    1656             :     case XML_ETACTION_NOTES:
    1657             :         return new XMLNotesTransformerContext( *this, rQName,
    1658           0 :                 static_cast< XMLTokenEnum>( rAction.m_nParam1 ), bPersistent );
    1659             :     case XML_ETACTION_TABLE:
    1660           0 :         return new XMLTableTransformerContext_Impl( *this, rQName );
    1661             :     case XML_ETACTION_STYLE:
    1662           0 :         return new XMLStyleOASISTContext( *this, rQName, bPersistent );
    1663             :     case XML_ETACTION_STYLE_RENAME:
    1664             :         return new XMLStyleOASISTContext( *this, rQName,
    1665           0 :                     rAction.GetQNamePrefixFromParam1(),
    1666           0 :                     rAction.GetQNameTokenFromParam1(), bPersistent );
    1667             :     case XML_ETACTION_FRAME:
    1668           0 :         return new XMLFrameOASISTransformerContext( *this, rQName );
    1669             :     case XML_ETACTION_EVENT:
    1670           0 :         return new XMLEventOASISTransformerContext( *this, rQName );
    1671             :     case XML_ETACTION_DLG:
    1672           0 :         return new XMLDlgOASISTransformerContext( *this, rQName );
    1673             :     case XML_ETACTION_TAB_STOP:
    1674           0 :         return new XMLTabStopOASISTContext_Impl( *this, rQName );
    1675             :     case XML_ETACTION_FORM_CONTROL:
    1676             :         {
    1677           0 :             const XMLTransformerContext *pCurrent = GetCurrentContext();
    1678             :             return new XMLControlOASISTransformerContext( *this, rQName,
    1679             :                         pCurrent ? pCurrent->HasQName( XML_NAMESPACE_FORM,
    1680           0 :                                            XML_FORM ) : sal_False  );
    1681             :         }
    1682             :     case XML_ETACTION_FORM_PROPERTY:
    1683             :         return new XMLFormPropOASISTransformerContext( *this, rQName,
    1684           0 :                 static_cast< XMLTokenEnum >( rAction.m_nParam1 ) );
    1685             :     case XML_ETACTION_CHART:
    1686           0 :         return new XMLChartOASISTransformerContext( *this, rQName );
    1687             :     case XML_ETACTION_CONFIG_ITEM:
    1688           0 :         return new XMLConfigItemTContext_Impl( *this, rQName );
    1689             :     case XML_ETACTION_TRACKED_CHANGES:
    1690             :         return new XMLTrackedChangesOASISTContext_Impl( *this, rQName,
    1691           0 :                                rAction.GetQNamePrefixFromParam1(),
    1692           0 :                             rAction.GetQNameTokenFromParam1() );
    1693             :     case XML_ETACTION_CHART_PLOT_AREA:
    1694           0 :         return new XMLChartPlotAreaOASISTContext( *this, rQName );
    1695             :     default:
    1696             :         OSL_ENSURE( !this, "no user defined context found!" );
    1697           0 :         break;
    1698             :     }
    1699             : 
    1700             :     // default is copying
    1701           0 :     return new XMLTransformerContext( *this, rQName );
    1702             : }
    1703             : 
    1704           0 : XMLTransformerActions *Oasis2OOoTransformer::GetUserDefinedActions(
    1705             :         sal_uInt16 n )
    1706             : {
    1707           0 :     XMLTransformerActions *pActions = 0;
    1708           0 :     if( n < MAX_OASIS_ACTIONS )
    1709             :     {
    1710           0 :         if( !m_aActions[n] )
    1711             :         {
    1712           0 :             if( n<MAX_OASIS_PROP_ACTIONS )
    1713             :             {
    1714           0 :                 m_aActions[n] =
    1715           0 :                     XMLStyleOASISTContext::CreateTransformerActions( n );
    1716             :             }
    1717           0 :             else switch( n )
    1718             :             {
    1719             :             case OASIS_STYLE_ACTIONS:
    1720             :                 m_aActions[OASIS_STYLE_ACTIONS] =
    1721           0 :                     new XMLTransformerActions( aStyleActionTable );
    1722           0 :                 break;
    1723             :             case OASIS_FONT_FACE_ACTIONS:
    1724             :                 m_aActions[OASIS_FONT_FACE_ACTIONS] =
    1725           0 :                     new XMLTransformerActions( aFontFaceActionTable );
    1726           0 :                 break;
    1727             :             case OASIS_SHAPE_ACTIONS:
    1728             :                 m_aActions[OASIS_SHAPE_ACTIONS] =
    1729           0 :                     new XMLTransformerActions( aShapeActionTable );
    1730           0 :                 break;
    1731             :             case OASIS_CONNECTOR_ACTIONS:
    1732             :                 m_aActions[OASIS_CONNECTOR_ACTIONS] =
    1733           0 :                     new XMLTransformerActions( aConnectorActionTable );
    1734           0 :                 break;
    1735             :             case OASIS_INDEX_ENTRY_TAB_STOP_ACTIONS:
    1736             :                 m_aActions[OASIS_INDEX_ENTRY_TAB_STOP_ACTIONS] =
    1737           0 :                     new XMLTransformerActions( aIndexEntryTabStopActionTable );
    1738           0 :                 break;
    1739             :             case OASIS_TAB_STOP_ACTIONS:
    1740             :                 m_aActions[OASIS_TAB_STOP_ACTIONS] =
    1741           0 :                     new XMLTransformerActions( aTabStopActionTable );
    1742           0 :                 break;
    1743             :             case OASIS_LINENUMBERING_ACTIONS:
    1744             :                 m_aActions[OASIS_LINENUMBERING_ACTIONS] =
    1745           0 :                     new XMLTransformerActions( aLineNumberingActionTable );
    1746           0 :                 break;
    1747             :             case OASIS_FOOTNOTE_SEP_ACTIONS:
    1748             :                 m_aActions[OASIS_FOOTNOTE_SEP_ACTIONS] =
    1749           0 :                     new XMLTransformerActions( aFootnoteSepActionTable );
    1750           0 :                 break;
    1751             :             case OASIS_DROP_CAP_ACTIONS:
    1752             :                 m_aActions[OASIS_DROP_CAP_ACTIONS] =
    1753           0 :                     new XMLTransformerActions( aDropCapActionTable );
    1754           0 :                 break;
    1755             :             case OASIS_COLUMNS_ACTIONS:
    1756             :                 m_aActions[OASIS_COLUMNS_ACTIONS] =
    1757           0 :                     new XMLTransformerActions( aColumnsActionTable );
    1758           0 :                 break;
    1759             :             case OASIS_TEXT_VALUE_TYPE_ACTIONS:
    1760             :                 m_aActions[OASIS_TEXT_VALUE_TYPE_ACTIONS] =
    1761           0 :                     new XMLTransformerActions( aTextValueTypeActionTable );
    1762           0 :                 break;
    1763             :             case OASIS_TABLE_VALUE_TYPE_ACTIONS:
    1764             :                 m_aActions[OASIS_TABLE_VALUE_TYPE_ACTIONS] =
    1765           0 :                     new XMLTransformerActions( aTableValueTypeActionTable );
    1766           0 :                 break;
    1767             :             case OASIS_PARA_ACTIONS:
    1768             :                 m_aActions[OASIS_PARA_ACTIONS] =
    1769           0 :                     new XMLTransformerActions( aParaActionTable );
    1770           0 :                 break;
    1771             :             case OASIS_LIST_STYLE_REF_ACTIONS:
    1772             :                 m_aActions[OASIS_LIST_STYLE_REF_ACTIONS] =
    1773           0 :                     new XMLTransformerActions( aListStyleRefActionTable );
    1774           0 :                 break;
    1775             :             case OASIS_TEXT_STYLE_REF_ACTIONS:
    1776             :                 m_aActions[OASIS_TEXT_STYLE_REF_ACTIONS] =
    1777           0 :                     new XMLTransformerActions( aTextStyleRefActionTable );
    1778           0 :                 break;
    1779             :             case OASIS_PARA_STYLE_REF_ACTIONS:
    1780             :                 m_aActions[OASIS_PARA_STYLE_REF_ACTIONS] =
    1781           0 :                     new XMLTransformerActions( aParaStyleRefActionTable );
    1782           0 :                 break;
    1783             :             case OASIS_MASTER_PAGE_REF_ACTIONS:
    1784             :                 m_aActions[OASIS_MASTER_PAGE_REF_ACTIONS] =
    1785           0 :                     new XMLTransformerActions( aMasterPageRefActionTable );
    1786           0 :                 break;
    1787             :             case OASIS_MAP_STYLE_REF_ACTIONS:
    1788             :                 m_aActions[OASIS_MAP_STYLE_REF_ACTIONS] =
    1789           0 :                     new XMLTransformerActions( aMapStyleRefActionTable );
    1790           0 :                 break;
    1791             :             case OASIS_MASTER_PAGE_ACTIONS:
    1792             :                 m_aActions[OASIS_MASTER_PAGE_ACTIONS] =
    1793           0 :                     new XMLTransformerActions( aMasterPageActionTable );
    1794           0 :                 break;
    1795             :             case OASIS_NOTES_ACTIONS:
    1796             :                 m_aActions[OASIS_NOTES_ACTIONS] =
    1797           0 :                     new XMLTransformerActions( aNotesActionTable );
    1798           0 :                 break;
    1799             :             case OASIS_ANNOTATION_ACTIONS:
    1800             :                 m_aActions[OASIS_ANNOTATION_ACTIONS] =
    1801           0 :                     new XMLTransformerActions( aAnnotationActionTable );
    1802           0 :                 break;
    1803             :             case OASIS_CHANGE_INFO_ACTIONS:
    1804             :                 m_aActions[OASIS_CHANGE_INFO_ACTIONS] =
    1805           0 :                     new XMLTransformerActions( aChangeInfoActionTable );
    1806           0 :                 break;
    1807             :             case OASIS_FRAME_ELEM_ACTIONS:
    1808             :                 m_aActions[OASIS_FRAME_ELEM_ACTIONS] =
    1809           0 :                     new XMLTransformerActions( aFrameActionTable );
    1810           0 :                 break;
    1811             :             case OASIS_BACKGROUND_IMAGE_ACTIONS:
    1812             :                 m_aActions[OASIS_BACKGROUND_IMAGE_ACTIONS] =
    1813           0 :                     new XMLTransformerActions( aBackgroundImageActionTable );
    1814           0 :                 break;
    1815             :             case OASIS_DDE_CONNECTION_DECL_ACTIONS:
    1816             :                 m_aActions[OASIS_DDE_CONNECTION_DECL_ACTIONS] =
    1817           0 :                     new XMLTransformerActions( aDDEConnectionDeclActionTable );
    1818           0 :                 break;
    1819             :             case OASIS_EVENT_ACTIONS:
    1820             :                 m_aActions[OASIS_EVENT_ACTIONS] =
    1821           0 :                     new XMLTransformerActions( aEventActionTable );
    1822           0 :                 break;
    1823             :             case OASIS_DLG_ACTIONS:
    1824             :                 m_aActions[OASIS_DLG_ACTIONS] =
    1825           0 :                     new XMLTransformerActions( aDlgActionTable );
    1826           0 :                 break;
    1827             :             case OASIS_FORM_CONTROL_ACTIONS:
    1828             :                 m_aActions[OASIS_FORM_CONTROL_ACTIONS] =
    1829           0 :                     new XMLTransformerActions( aFormControlActionTable );
    1830           0 :                 break;
    1831             :             case OASIS_FORM_COLUMN_ACTIONS:
    1832             :                 m_aActions[OASIS_FORM_COLUMN_ACTIONS] =
    1833           0 :                     new XMLTransformerActions( aFormColumnActionTable );
    1834           0 :                 break;
    1835             :             case OASIS_FORM_PROP_ACTIONS:
    1836             :                 m_aActions[OASIS_FORM_PROP_ACTIONS] =
    1837           0 :                     new XMLTransformerActions( aFormPropActionTable );
    1838           0 :                 break;
    1839             :             case OASIS_XLINK_ACTIONS:
    1840             :                 m_aActions[OASIS_XLINK_ACTIONS] =
    1841           0 :                     new XMLTransformerActions( aXLinkActionTable );
    1842           0 :                 break;
    1843             :             case OASIS_CONFIG_ITEM_SET_ACTIONS:
    1844             :                 m_aActions[OASIS_CONFIG_ITEM_SET_ACTIONS] =
    1845           0 :                     new XMLTransformerActions( aConfigItemSetActionTable );
    1846           0 :                 break;
    1847             :             case OASIS_FORMULA_ACTIONS:
    1848             :                 m_aActions[OASIS_FORMULA_ACTIONS] =
    1849           0 :                     new XMLTransformerActions( aFormulaActionTable );
    1850           0 :                 break;
    1851             :             case OASIS_CHART_ACTIONS:
    1852             :                 m_aActions[OASIS_CHART_ACTIONS] =
    1853           0 :                     new XMLTransformerActions( aChartActionTable );
    1854           0 :                 break;
    1855             :             case OASIS_FORM_ACTIONS:
    1856             :                 m_aActions[OASIS_FORM_ACTIONS] =
    1857           0 :                     new XMLTransformerActions( aFormActionTable );
    1858           0 :                 break;
    1859             :             case OASIS_ALPHABETICAL_INDEX_MARK_ACTIONS:
    1860             :                 m_aActions[OASIS_ALPHABETICAL_INDEX_MARK_ACTIONS] =
    1861             :                     new XMLTransformerActions(
    1862           0 :                         aAlphabeticalIndexMarkActionTable );
    1863           0 :                 break;
    1864             :             case OASIS_CONTENT_VALIDATION_ACTIONS:
    1865             :                 m_aActions[OASIS_CONTENT_VALIDATION_ACTIONS] =
    1866           0 :                     new XMLTransformerActions( aContentValidationActionTable );
    1867             :             case OASIS_DDE_CONV_MODE_ACTIONS:
    1868             :                 m_aActions[OASIS_DDE_CONV_MODE_ACTIONS] =
    1869           0 :                     new XMLTransformerActions( aDDEConvModeActionTable );
    1870           0 :                 break;
    1871             :             case OASIS_DATAPILOT_MEMBER_ACTIONS:
    1872             :                 m_aActions[OASIS_DATAPILOT_MEMBER_ACTIONS] =
    1873           0 :                     new XMLTransformerActions( aDataPilotMemberActionTable );
    1874           0 :                 break;
    1875             :             case OASIS_DATAPILOT_LEVEL_ACTIONS:
    1876             :                 m_aActions[OASIS_DATAPILOT_LEVEL_ACTIONS] =
    1877           0 :                     new XMLTransformerActions( aDataPilotLevelActionTable );
    1878           0 :                 break;
    1879             :             case OASIS_SOURCE_SERVICE_ACTIONS:
    1880             :                 m_aActions[OASIS_SOURCE_SERVICE_ACTIONS] =
    1881           0 :                     new XMLTransformerActions( aSourceServiceActionTable );
    1882           0 :                 break;
    1883             :             case OASIS_DRAW_AREA_POLYGON_ACTIONS:
    1884             :                 m_aActions[OASIS_DRAW_AREA_POLYGON_ACTIONS] =
    1885           0 :                     new XMLTransformerActions( aShapeActionTable );
    1886           0 :                 m_aActions[OASIS_DRAW_AREA_POLYGON_ACTIONS]
    1887           0 :                     ->Add( aDrawAreaPolygonActionTable );
    1888           0 :                 break;
    1889             :             case OASIS_SCRIPT_ACTIONS:
    1890             :                 m_aActions[OASIS_SCRIPT_ACTIONS] =
    1891           0 :                     new XMLTransformerActions( aScriptActionTable );
    1892           0 :                 break;
    1893             :             case OASIS_DATETIME_ACTIONS:
    1894             :                 m_aActions[OASIS_DATETIME_ACTIONS] =
    1895           0 :                     new XMLTransformerActions( aDateTimeActionTable );
    1896           0 :                 break;
    1897             :             // Bugdoc with table won't load correctly (#i40011#, #i40015#)
    1898             :             case OASIS_TABLE_STYLE_REF_ACTIONS:
    1899             :                 m_aActions[OASIS_TABLE_STYLE_REF_ACTIONS] =
    1900           0 :                     new XMLTransformerActions( aTableStyleRefActionTable );
    1901           0 :                 break;
    1902             :             case OASIS_ANIMATION_ACTIONS:
    1903             :                 m_aActions[OASIS_ANIMATION_ACTIONS] =
    1904           0 :                     new XMLTransformerActions( aAnimationActionTable );
    1905           0 :                 break;
    1906             :             }
    1907             :         }
    1908           0 :         pActions = m_aActions[n];
    1909             :     }
    1910             : 
    1911           0 :     return pActions;
    1912             : }
    1913             : 
    1914           0 : OUString Oasis2OOoTransformer::GetEventName( const OUString& rName,
    1915             :                                              sal_Bool bForm )
    1916             : {
    1917           0 :     if( bForm && !m_pFormEventMap )
    1918             :         m_pFormEventMap =
    1919           0 :             XMLEventOASISTransformerContext::CreateFormEventMap();
    1920           0 :     if( !m_pEventMap )
    1921           0 :         m_pEventMap = XMLEventOASISTransformerContext::CreateEventMap();
    1922             : 
    1923           0 :     OUString aMacroName;
    1924             :     sal_uInt16 nPrefix =
    1925           0 :         GetNamespaceMap().GetKeyByAttrName( rName, &aMacroName );
    1926             :     return XMLEventOASISTransformerContext::GetEventName(
    1927             :                 nPrefix, aMacroName, *m_pEventMap,
    1928           0 :                    bForm ? m_pFormEventMap : 0  );
    1929             : }
    1930             : 
    1931           0 : Oasis2OOoTransformer::Oasis2OOoTransformer() throw() :
    1932             :     XMLTransformerBase( aActionTable, aTokenMap ),
    1933             :     m_pEventMap( 0 ),
    1934           0 :     m_pFormEventMap( 0 )
    1935             : {
    1936           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_OFFICE), GetXMLToken(XML_N_OFFICE), XML_NAMESPACE_OFFICE );
    1937           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_OFFICE), GetXMLToken(XML_N_OFFICE_OOO), XML_NAMESPACE_OFFICE );
    1938             : 
    1939           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_META), GetXMLToken(XML_N_META), XML_NAMESPACE_META );
    1940           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_META), GetXMLToken(XML_N_META_OOO), XML_NAMESPACE_META );
    1941             : 
    1942           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_STYLE), GetXMLToken(XML_N_STYLE), XML_NAMESPACE_STYLE );
    1943           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_STYLE), GetXMLToken(XML_N_STYLE_OOO), XML_NAMESPACE_STYLE );
    1944             : 
    1945           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_NUMBER), GetXMLToken(XML_N_NUMBER), XML_NAMESPACE_NUMBER );
    1946           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_NUMBER), GetXMLToken(XML_N_NUMBER_OOO), XML_NAMESPACE_NUMBER );
    1947             : 
    1948           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_CONFIG), GetXMLToken(XML_N_CONFIG), XML_NAMESPACE_CONFIG );
    1949           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_CONFIG), GetXMLToken(XML_N_CONFIG_OOO), XML_NAMESPACE_CONFIG );
    1950             : 
    1951           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_TEXT), GetXMLToken(XML_N_TEXT), XML_NAMESPACE_TEXT );
    1952           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_TEXT), GetXMLToken(XML_N_TEXT_OOO), XML_NAMESPACE_TEXT );
    1953             : 
    1954           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_TABLE), GetXMLToken(XML_N_TABLE), XML_NAMESPACE_TABLE );
    1955           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_TABLE), GetXMLToken(XML_N_TABLE_OOO), XML_NAMESPACE_TABLE );
    1956             : 
    1957           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_DRAW), GetXMLToken(XML_N_DRAW), XML_NAMESPACE_DRAW );
    1958           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_DRAW), GetXMLToken(XML_N_DRAW_OOO), XML_NAMESPACE_DRAW );
    1959             : 
    1960           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_DR3D), GetXMLToken(XML_N_DR3D), XML_NAMESPACE_DR3D );
    1961           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_DR3D), GetXMLToken(XML_N_DR3D_OOO), XML_NAMESPACE_DR3D );
    1962             : 
    1963           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_PRESENTATION), GetXMLToken(XML_N_PRESENTATION), XML_NAMESPACE_PRESENTATION );
    1964           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_PRESENTATION), GetXMLToken(XML_N_PRESENTATION_OOO), XML_NAMESPACE_PRESENTATION );
    1965             : 
    1966           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_CHART), GetXMLToken(XML_N_CHART), XML_NAMESPACE_CHART );
    1967           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_CHART), GetXMLToken(XML_N_CHART_OOO), XML_NAMESPACE_CHART );
    1968             : 
    1969           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_FORM), GetXMLToken(XML_N_FORM), XML_NAMESPACE_FORM );
    1970           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_FORM), GetXMLToken(XML_N_FORM_OOO), XML_NAMESPACE_FORM );
    1971             : 
    1972           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_SCRIPT), GetXMLToken(XML_N_SCRIPT), XML_NAMESPACE_SCRIPT );
    1973           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_SCRIPT), GetXMLToken(XML_N_SCRIPT_OOO), XML_NAMESPACE_SCRIPT );
    1974             : 
    1975           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_DLG), GetXMLToken(XML_N_DLG), XML_NAMESPACE_DLG );
    1976           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_DLG), GetXMLToken(XML_N_DLG), XML_NAMESPACE_DLG );
    1977             : 
    1978           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_FO), GetXMLToken(XML_N_FO_COMPAT), XML_NAMESPACE_FO );
    1979           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_FO), GetXMLToken(XML_N_FO), XML_NAMESPACE_FO );
    1980             : 
    1981           0 :     GetNamespaceMap().Add( GetXMLToken(XML_NP_SVG), GetXMLToken(XML_N_SVG_COMPAT), XML_NAMESPACE_SVG );
    1982           0 :     GetReplaceNamespaceMap().Add( GetXMLToken(XML_NP_SVG), GetXMLToken(XML_N_SVG),  XML_NAMESPACE_SVG );
    1983             : 
    1984             : 
    1985           0 :     for( sal_uInt16 i=0; i<MAX_OASIS_ACTIONS; ++i )
    1986           0 :         m_aActions[i] = 0;
    1987           0 : }
    1988             : 
    1989           0 : Oasis2OOoTransformer::~Oasis2OOoTransformer() throw()
    1990             : {
    1991           0 :     for( sal_uInt16 i=0; i<MAX_OASIS_ACTIONS; ++i )
    1992           0 :         delete m_aActions[i];
    1993           0 :     XMLEventOASISTransformerContext::FlushEventMap( m_pEventMap );
    1994           0 :     XMLEventOASISTransformerContext::FlushEventMap( m_pFormEventMap );
    1995           0 : }
    1996             : 
    1997             : namespace
    1998             : {
    1999             :     class theOasis2OOoTransformerUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theOasis2OOoTransformerUnoTunnelId> {};
    2000             : }
    2001             : 
    2002           0 : const Sequence< sal_Int8 > & Oasis2OOoTransformer::getUnoTunnelId() throw()
    2003             : {
    2004           0 :     return theOasis2OOoTransformerUnoTunnelId::get().getSeq();
    2005             : }
    2006             : 
    2007             : // XUnoTunnel
    2008           0 : sal_Int64 SAL_CALL Oasis2OOoTransformer::getSomething( const Sequence< sal_Int8 >& rId )
    2009             :     throw(RuntimeException)
    2010             : {
    2011           0 :     if( rId.getLength() == 16
    2012           0 :         && 0 == memcmp( getUnoTunnelId().getConstArray(),
    2013           0 :                                         rId.getConstArray(), 16 ) )
    2014             :     {
    2015           0 :         return reinterpret_cast< sal_Int64 >( this );
    2016             :     }
    2017             :     else
    2018             :     {
    2019           0 :         return (sal_Int64)0;
    2020             :     }
    2021             : }
    2022             : 
    2023             : // XServiceInfo
    2024           0 : OUString SAL_CALL Oasis2OOoTransformer::getImplementationName()
    2025             :     throw(RuntimeException)
    2026             : {
    2027           0 :     return Oasis2OOoTransformer_getImplementationName();
    2028             : }
    2029             : 
    2030           0 : sal_Bool SAL_CALL Oasis2OOoTransformer::supportsService( const OUString& )
    2031             :     throw(RuntimeException)
    2032             : {
    2033           0 :     return sal_False;
    2034             : }
    2035             : 
    2036           0 : Sequence< OUString > SAL_CALL Oasis2OOoTransformer::getSupportedServiceNames(  )
    2037             :     throw(RuntimeException)
    2038             : {
    2039           0 :     Sequence<OUString> aSeq(0);
    2040           0 :     return aSeq;
    2041             : }
    2042             : 
    2043             : // Service registration
    2044             : 
    2045           3 : OUString SAL_CALL Oasis2OOoTransformer_getImplementationName() throw()
    2046             : {
    2047             :     return OUString( RTL_CONSTASCII_USTRINGPARAM(
    2048           3 :         "com.sun.star.comp.Oasis2OOoTransformer" ) );
    2049             : }
    2050             : 
    2051           0 : Sequence< OUString > SAL_CALL Oasis2OOoTransformer_getSupportedServiceNames()
    2052             :     throw()
    2053             : {
    2054           0 :     const OUString aServiceName( Oasis2OOoTransformer_getImplementationName() );
    2055           0 :     const Sequence< OUString > aSeq( &aServiceName, 1 );
    2056           0 :     return aSeq;
    2057             : }
    2058             : 
    2059           0 : Reference< XInterface > SAL_CALL Oasis2OOoTransformer_createInstance(
    2060             :         const Reference< XMultiServiceFactory > &)
    2061             :     throw( Exception )
    2062             : {
    2063             :     OSL_TRACE("Creating Oasis2OOoTransformer");
    2064           0 :     return (cppu::OWeakObject*)new Oasis2OOoTransformer;
    2065           3 : }
    2066             : 
    2067             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10