1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_SC_INC_DOCUMENTLINKMGR_HXX
11 #define INCLUDED_SC_INC_DOCUMENTLINKMGR_HXX
13 #include <boost/noncopyable.hpp>
14 #include <rtl/ustring.hxx>
29 struct DocumentLinkManagerImpl
;
31 class DocumentLinkManager
: boost::noncopyable
33 DocumentLinkManagerImpl
* mpImpl
;
36 DocumentLinkManager( ScDocument
& rDoc
, SfxObjectShell
* pShell
);
37 ~DocumentLinkManager();
39 void setDataStream( DataStream
* p
);
40 DataStream
* getDataStream();
41 const DataStream
* getDataStream() const;
44 * @param bCreate if true, create a new link manager instance in case one
47 * @return link manager instance.
49 sfx2::LinkManager
* getLinkManager( bool bCreate
= true );
51 const sfx2::LinkManager
* getExistingLinkManager() const;
53 bool idleCheckLinks();
55 bool hasDdeLinks() const;
57 bool updateDdeLinks( Window
* pWin
);
59 bool updateDdeLink( const OUString
& rAppl
, const OUString
& rTopic
, const OUString
& rItem
);
61 size_t getDdeLinkCount() const;
63 void disconnectDdeLinks();
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */