summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/OOo2Oasis.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-11-26 12:09:47 +0000
committerRüdiger Timm <rt@openoffice.org>2004-11-26 12:09:47 +0000
commit3d9dff8f6c8c759d90f37c7cc8ece929f552caa4 (patch)
tree51c08b7f008dd5f9fe6ebcec13fd5ba57ddc9b48 /xmloff/source/transform/OOo2Oasis.cxx
parentd66a9c532ccbbc2ba7783384684f6eac149c8e36 (diff)
INTEGRATION: CWS oasisbf2 (1.3.50); FILE MERGED
2004/11/26 11:40:50 mib 1.3.50.3: RESYNC: (1.3-1.8); FILE MERGED 2004/10/28 11:56:59 sab 1.3.50.2: #i35794#; change attribute names 2004/10/27 17:23:36 dvo 1.3.50.1: #i35802# image maps should use draw:points (instead of svg:points) on <draw:area-polygon> update filter + OASIS transformer
Diffstat (limited to 'xmloff/source/transform/OOo2Oasis.cxx')
-rw-r--r--xmloff/source/transform/OOo2Oasis.cxx72
1 files changed, 66 insertions, 6 deletions
diff --git a/xmloff/source/transform/OOo2Oasis.cxx b/xmloff/source/transform/OOo2Oasis.cxx
index 09559418c195..c3e78ead31d2 100644
--- a/xmloff/source/transform/OOo2Oasis.cxx
+++ b/xmloff/source/transform/OOo2Oasis.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: OOo2Oasis.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: obo $ $Date: 2004-11-17 11:07:07 $
+ * last change: $Author: rt $ $Date: 2004-11-26 13:09:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -468,7 +468,7 @@ static XMLTransformerActionInit aActionTable[] =
ENTRY1( DRAW, CONTOUR_PATH, XML_ETACTION_PROC_ATTRS, OOO_SHAPE_ACTIONS ),
ENTRY1( DRAW, AREA_RECTANGLE, XML_ETACTION_PROC_ATTRS, OOO_SHAPE_ACTIONS ),
ENTRY1( DRAW, AREA_CIRCLE, XML_ETACTION_PROC_ATTRS, OOO_SHAPE_ACTIONS ),
- ENTRY1( DRAW, AREA_POLYGON, XML_ETACTION_PROC_ATTRS, OOO_SHAPE_ACTIONS ),
+ ENTRY1( DRAW, AREA_POLYGON, XML_ETACTION_PROC_ATTRS, OOO_DRAW_AREA_POLYGON_ACTIONS ),
ENTRY1( DRAW, GLUE_POINT, XML_ETACTION_PROC_ATTRS, OOO_SHAPE_ACTIONS ),
ENTRY1( DR3D, SCENE, XML_ETACTION_PROC_ATTRS, OOO_SHAPE_ACTIONS ),
ENTRY1( DR3D, CUBE, XML_ETACTION_PROC_ATTRS, OOO_SHAPE_ACTIONS ),
@@ -615,6 +615,18 @@ static XMLTransformerActionInit aActionTable[] =
ENTRY1( TABLE, CONVERSION_MODE, XML_ETACTION_PROC_ATTRS,
OOO_DDE_CONV_MODE_ACTIONS ),
+ // process table::data-pilot-member
+ ENTRY1( TABLE, DATA_PILOT_MEMBER, XML_ETACTION_PROC_ATTRS,
+ OOO_DATAPILOT_MEMBER_ACTIONS ),
+
+ // process table::data-pilot-level
+ ENTRY1( TABLE, DATA_PILOT_LEVEL, XML_ETACTION_PROC_ATTRS,
+ OOO_DATAPILOT_LEVEL_ACTIONS ),
+
+ // process table::source-service
+ ENTRY1( TABLE, SOURCE_SERVICE, XML_ETACTION_PROC_ATTRS,
+ OOO_SOURCE_SERVICE_ACTIONS ),
+
ENTRY0( OFFICE, TOKEN_INVALID, XML_ETACTION_EOT )
};
@@ -791,6 +803,7 @@ static XMLTransformerActionInit aShapeActionTable[] =
ENTRY1Q( FORM, ID, XML_ATACTION_RENAME,
XML_NAMESPACE_DRAW, XML_CONTROL ),
ENTRY1( XLINK, HREF, XML_ATACTION_URI_OOO, sal_True ),
+
// BM: needed by chart:legend. The legend needs also the draw actions. As
// there is no merge mechanism, all actions have to be in the same table
ENTRY2( CHART, LEGEND_POSITION, XML_ATACTION_RENAME_ATTRIBUTE,
@@ -1041,6 +1054,38 @@ static XMLTransformerActionInit aDDEConvModeActionTable[] =
ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
};
+// OOO_DATAPILOT_MEMBER_ACTIONS
+static XMLTransformerActionInit aDataPilotMemberActionTable[] =
+{
+ ENTRY1Q( TABLE, DISPLAY_DETAILS, XML_ATACTION_RENAME,
+ XML_NAMESPACE_TABLE, XML_SHOW_DETAILS ),
+ ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
+};
+
+// OOO_DATAPILOT_LEVEL_ACTIONS
+static XMLTransformerActionInit aDataPilotLevelActionTable[] =
+{
+ ENTRY1Q( TABLE, DISPLAY_EMPTY, XML_ATACTION_RENAME,
+ XML_NAMESPACE_TABLE, XML_SHOW_EMPTY ),
+ ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
+};
+
+// OOO_SOURCE_SERVICE_ACTIONS
+static XMLTransformerActionInit aSourceServiceActionTable[] =
+{
+ ENTRY1Q( TABLE, USERNAME, XML_ATACTION_RENAME,
+ XML_NAMESPACE_TABLE, XML_USER_NAME ),
+ ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
+};
+
+// OOO_DRAW_AREA_POLYGON_ACTIONS (to be added to OOO_SHAPE_ACTIONS)
+static XMLTransformerActionInit aDrawAreaPolygonActionTable[] =
+{
+ ENTRY1Q( SVG, POINTS, XML_ATACTION_RENAME,
+ XML_NAMESPACE_DRAW, XML_POINTS ),
+ ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
+};
+
// OOO_CHART_ACTIONS
static XMLTransformerActionInit aChartActionTable[] =
{
@@ -1662,6 +1707,10 @@ XMLTransformerActions *OOo2OasisTransformer::GetUserDefinedActions(
m_aActions[OOO_FORMULA_ACTIONS] =
new XMLTransformerActions( aFormulaActionTable );
break;
+ case OOO_CHART_ACTIONS:
+ m_aActions[OOO_CHART_ACTIONS] =
+ new XMLTransformerActions( aChartActionTable );
+ break;
case OOO_ERROR_MACRO_ACTIONS:
m_aActions[OOO_ERROR_MACRO_ACTIONS] =
new XMLTransformerActions( aErrorMacroActionTable );
@@ -1670,9 +1719,20 @@ XMLTransformerActions *OOo2OasisTransformer::GetUserDefinedActions(
m_aActions[OOO_DDE_CONV_MODE_ACTIONS] =
new XMLTransformerActions( aDDEConvModeActionTable );
break;
- case OOO_CHART_ACTIONS:
- m_aActions[OOO_CHART_ACTIONS] =
- new XMLTransformerActions( aChartActionTable );
+ case OOO_DATAPILOT_MEMBER_ACTIONS:
+ m_aActions[OOO_DATAPILOT_MEMBER_ACTIONS] =
+ new XMLTransformerActions( aDataPilotMemberActionTable );
+ case OOO_DATAPILOT_LEVEL_ACTIONS:
+ m_aActions[OOO_DATAPILOT_LEVEL_ACTIONS] =
+ new XMLTransformerActions( aDataPilotLevelActionTable );
+ case OOO_SOURCE_SERVICE_ACTIONS:
+ m_aActions[OOO_SOURCE_SERVICE_ACTIONS] =
+ new XMLTransformerActions( aSourceServiceActionTable );
+ case OOO_DRAW_AREA_POLYGON_ACTIONS:
+ m_aActions[OOO_DRAW_AREA_POLYGON_ACTIONS] =
+ new XMLTransformerActions( aShapeActionTable );
+ m_aActions[OOO_DRAW_AREA_POLYGON_ACTIONS]
+ ->Add( aDrawAreaPolygonActionTable );
break;
case OOO_SCRIPT_ACTIONS:
m_aActions[OOO_SCRIPT_ACTIONS] =