diff options
Diffstat (limited to 'sc/inc/documentlinkmgr.hxx')
-rw-r--r-- | sc/inc/documentlinkmgr.hxx | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/sc/inc/documentlinkmgr.hxx b/sc/inc/documentlinkmgr.hxx index ead56985788e..2206dfb0c44f 100644 --- a/sc/inc/documentlinkmgr.hxx +++ b/sc/inc/documentlinkmgr.hxx @@ -12,6 +12,15 @@ #include <boost/noncopyable.hpp> +class ScDocument; +class SfxObjectShell; + +namespace sfx2 { + +class LinkManager; + +} + namespace sc { class DataStream; @@ -22,11 +31,21 @@ class DocumentLinkManager : boost::noncopyable DocumentLinkManagerImpl* mpImpl; public: - DocumentLinkManager(); + DocumentLinkManager( ScDocument& rDoc, SfxObjectShell* pShell ); void setDataStream( DataStream* p ); DataStream* getDataStream(); const DataStream* getDataStream() const; + + /** + * @param bCreate if true, create a new link manager instance in case one + * does not exist. + * + * @return link manager instance. + */ + sfx2::LinkManager* getLinkManager( bool bCreate = true ); + + const sfx2::LinkManager* getExistingLinkManager() const; }; } |