[Libreoffice-commits] .: oox/source
Muthu Subramanian
sumuthu at kemper.freedesktop.org
Tue Jul 5 03:59:35 PDT 2011
oox/source/vml/vmldrawingfragment.cxx | 7 +++++++
1 file changed, 7 insertions(+)
New commits:
commit d78cd75a209c12916d346b6a7762f109bac95e43
Author: Muthu Subramanian <sumuthu at novell.com>
Date: Tue Jul 5 16:47:26 2011 +0530
Pointers for importing legacyDiagramText.
diff --git a/oox/source/vml/vmldrawingfragment.cxx b/oox/source/vml/vmldrawingfragment.cxx
index 255b5c0..35b088a 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
More information about the Libreoffice-commits
mailing list