summaryrefslogtreecommitdiff
path: root/xmloff/source/transform/Oasis2OOo.cxx
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-21 14:54:25 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-21 14:54:25 +0000
commitd8d374c039e7d349141befe3c9ef97f82f42bfa7 (patch)
tree0d8beb16c0dee86c583b981721582328549c7864 /xmloff/source/transform/Oasis2OOo.cxx
parent3c1c770dcda999fa9eaaaff938b427b16613b07f (diff)
INTEGRATION: CWS calc29 (1.11.62); FILE MERGED
2005/02/11 11:03:48 nn 1.11.62.3: RESYNC: (1.11-1.13); FILE MERGED 2005/02/10 17:20:13 sab 1.11.62.2: #i41739#; ignore elements in text:p in office:annotation, but keep characters 2005/02/10 10:52:14 sab 1.11.62.1: #i42214#,#i40797#; remove new attributes
Diffstat (limited to 'xmloff/source/transform/Oasis2OOo.cxx')
-rw-r--r--xmloff/source/transform/Oasis2OOo.cxx34
1 files changed, 30 insertions, 4 deletions
diff --git a/xmloff/source/transform/Oasis2OOo.cxx b/xmloff/source/transform/Oasis2OOo.cxx
index dfe7261f567d..67a36dd147a5 100644
--- a/xmloff/source/transform/Oasis2OOo.cxx
+++ b/xmloff/source/transform/Oasis2OOo.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: Oasis2OOo.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: rt $ $Date: 2005-01-27 11:28:40 $
+ * last change: $Author: vg $ $Date: 2005-02-21 15:54:25 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -597,9 +597,10 @@ static XMLTransformerActionInit aActionTable[] =
// text:formula
ENTRY1( TEXT, TABLE_FORMULA, XML_ETACTION_PROC_ATTRS,
OASIS_FORMULA_ACTIONS ), /* generated entry */
- // table:condition
+
+ // process table::content-validation
ENTRY1( TABLE, CONTENT_VALIDATION, XML_ETACTION_PROC_ATTRS,
- OASIS_FORMULA_ACTIONS ), /* generated entry */
+ OASIS_CONTENT_VALIDATION_ACTIONS ),
// rename <table:dependencies> to <table:dependences>
ENTRY1Q( TABLE, DEPENDENCIES, XML_ETACTION_RENAME_ELEM,
@@ -1011,6 +1012,7 @@ static XMLTransformerActionInit aAnnotationActionTable[] =
XML_NAMESPACE_OFFICE, XML_CREATE_DATE ),
ENTRY1Q( META, DATE_STRING, XML_ATACTION_MOVE_FROM_ELEM,
XML_NAMESPACE_OFFICE, XML_CREATE_DATE_STRING ),
+ ENTRY0( TEXT, P, XML_ETACTION_EXTRACT_CHARACTERS ),
ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
};
@@ -1107,6 +1109,14 @@ static XMLTransformerActionInit aFormulaActionTable[] =
ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
};
+// OASIS_CONTENT_VALIDATION_ACTIONS
+static XMLTransformerActionInit aContentValidationActionTable[] =
+{
+ ENTRY0( TABLE, CONDITION, XML_ATACTION_REMOVE_ANY_NAMESPACE_PREFIX ),
+ ENTRY0( TABLE, DISPLAY_LIST, XML_ATACTION_REMOVE ),
+ ENTRY0( OFFICE, TOKEN_INVALID, XML_ATACTION_EOT )
+};
+
// OASIS_DDE_CONV_MODE_ACTIONS
static XMLTransformerActionInit aDDEConvModeActionTable[] =
{
@@ -1298,6 +1308,19 @@ void XMLTableTransformerContext_Impl::StartElement(
}
}
// <--
+ else if( IsXMLToken( aLocalName, XML_PRINT ) )
+ {
+ if ( !pMutableAttrList )
+ {
+ pMutableAttrList =
+ new XMLMutableAttributeList( xAttrList );
+ xAttrList = pMutableAttrList;
+ }
+ XMLMutableAttributeList *pMutableAttrList =
+ new XMLMutableAttributeList( xAttrList );
+ xAttrList = pMutableAttrList;
+ pMutableAttrList->RemoveAttributeByIndex( i );
+ }
}
}
@@ -1933,6 +1956,9 @@ XMLTransformerActions *Oasis2OOoTransformer::GetUserDefinedActions(
new XMLTransformerActions(
aAlphabeticalIndexMarkActionTable );
break;
+ case OASIS_CONTENT_VALIDATION_ACTIONS:
+ m_aActions[OASIS_CONTENT_VALIDATION_ACTIONS] =
+ new XMLTransformerActions( aContentValidationActionTable );
case OASIS_DDE_CONV_MODE_ACTIONS:
m_aActions[OASIS_DDE_CONV_MODE_ACTIONS] =
new XMLTransformerActions( aDDEConvModeActionTable );