diff options
author | Eike Rathke <erack@redhat.com> | 2014-08-05 22:51:01 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2014-08-11 20:06:45 +0200 |
commit | 8c23a767d926d8d08213f5e2f8e81775c653cbd7 (patch) | |
tree | 21eb39564d45a3c4e05c0dc96f913028415427f0 /sc/source/filter/inc | |
parent | 5c37960d9507fac206f0b90d36f778db9fe2b6a5 (diff) |
write OOXML externalReferences, externalLinks, fdo#45286
This for the first time writes external references (hopefully) correctly
and adds the necessary relationship streams and the externalLink streams
with sheetData. At least Excel 2013 loaded the result without
complaining, so do we.
Change-Id: I3d615490a60c5420ae13c0bfc6297642d86a07b9
Diffstat (limited to 'sc/source/filter/inc')
-rw-r--r-- | sc/source/filter/inc/xecontent.hxx | 7 | ||||
-rw-r--r-- | sc/source/filter/inc/xelink.hxx | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/sc/source/filter/inc/xecontent.hxx b/sc/source/filter/inc/xecontent.hxx index 0a6705c31f60..214229397860 100644 --- a/sc/source/filter/inc/xecontent.hxx +++ b/sc/source/filter/inc/xecontent.hxx @@ -110,13 +110,14 @@ public: virtual void WriteEmbeddedData( XclExpStream& rStrm ); void SetDisplay( bool bDisplay ) { mbSetDisplay = bDisplay; } -private: + /** Builds file name from the passed file URL. Tries to convert to relative file name. @param rnLevel (out-param) The parent directory level. @param rbRel (out-param) true = path is relative. */ - OUString BuildFileName( + static OUString BuildFileName( sal_uInt16& rnLevel, bool& rbRel, - const OUString& rUrl, const XclExpRoot& rRoot ) const; + const OUString& rUrl, const XclExpRoot& rRoot ); +private: /** Writes the body of the HLINK record. */ virtual void WriteBody( XclExpStream& rStrm ) SAL_OVERRIDE; diff --git a/sc/source/filter/inc/xelink.hxx b/sc/source/filter/inc/xelink.hxx index 444192e820fe..89d8b2f17303 100644 --- a/sc/source/filter/inc/xelink.hxx +++ b/sc/source/filter/inc/xelink.hxx @@ -200,6 +200,9 @@ public: /** Writes the entire Link table. */ virtual void Save( XclExpStream& rStrm ) SAL_OVERRIDE; + /** Writes the entire Link table to OOXML. */ + virtual void SaveXml( XclExpXmlStream& rStrm ) SAL_OVERRIDE; + private: typedef boost::shared_ptr< XclExpLinkManagerImpl > XclExpLinkMgrImplPtr; XclExpLinkMgrImplPtr mxImpl; |