Bump version to 4.3-4
[LibreOffice.git] / sc / inc / documentlinkmgr.hxx
blob4c43adfe158555284430b41917a952062bfe2e74
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_SC_INC_DOCUMENTLINKMGR_HXX
11 #define INCLUDED_SC_INC_DOCUMENTLINKMGR_HXX
13 #include <boost/noncopyable.hpp>
14 #include <rtl/ustring.hxx>
16 class ScDocument;
17 class SfxObjectShell;
18 class Window;
20 namespace sfx2 {
22 class LinkManager;
26 namespace sc {
28 class DataStream;
29 struct DocumentLinkManagerImpl;
31 class DocumentLinkManager : boost::noncopyable
33 DocumentLinkManagerImpl* mpImpl;
35 public:
36 DocumentLinkManager( ScDocument& rDoc, SfxObjectShell* pShell );
37 ~DocumentLinkManager();
39 void setDataStream( DataStream* p );
40 DataStream* getDataStream();
41 const DataStream* getDataStream() const;
43 /**
44 * @param bCreate if true, create a new link manager instance in case one
45 * does not exist.
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();
68 #endif
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */