summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMuthu Subramanian <sumuthu@novell.com>2011-07-05 16:47:26 +0530
committerMuthu Subramanian <sumuthu@novell.com>2011-07-05 16:47:26 +0530
commitd78cd75a209c12916d346b6a7762f109bac95e43 (patch)
tree2b058a91e91195e9c6d5b77128e1c059534dd07c
parent77075eb7eae53f945226a1e22c7b46e43601826a (diff)
Pointers for importing legacyDiagramText.
-rw-r--r--oox/source/vml/vmldrawingfragment.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/oox/source/vml/vmldrawingfragment.cxx b/oox/source/vml/vmldrawingfragment.cxx
index 255b5c032..35b088a4e 100644
--- a/oox/source/vml/vmldrawingfragment.cxx
+++ b/oox/source/vml/vmldrawingfragment.cxx
@@ -50,6 +50,13 @@ DrawingFragment::DrawingFragment( XmlFilterBase& rFilter, const OUString& rFragm
FragmentHandler2( rFilter, rFragmentPath, false ), // do not trim whitespace, has been preprocessed by the input stream
mrDrawing( rDrawing )
{
+ RelationsRef xLegacyRels = getRelations().getRelationsFromType( CREATE_MSOFFICE_RELATION_TYPE( "legacyDiagramText" ) );
+ for( Relations::const_iterator aIt = xLegacyRels->begin(), aEnd = xLegacyRels->end(); aIt != aEnd; ++aIt )
+ {
+ OUString aLegacyFragmentPath = getFragmentPathFromRelation( aIt->second );
+ // TODO: import legacyDiagramText from aLegacyFragmentPath - this is a binary import.
+ // printf("legacyDiagram: %s\n", ::rtl::OUStringToOString( aLegacyFragmentPath, RTL_TEXTENCODING_UTF8).getStr());
+ }
}
Reference< XInputStream > DrawingFragment::openFragmentStream() const