summaryrefslogtreecommitdiff
path: root/sc/inc/documentlinkmgr.hxx
blob: c4c4971d5c11fa7a358330fce37f67022ba4da78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
 * This file is part of the LibreOffice project.
 *
 * This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
 */

#ifndef SC_DOCUMENTLINKMGR_HXX
#define SC_DOCUMENTLINKMGR_HXX

#include <boost/noncopyable.hpp>
#include <rtl/ustring.hxx>

class ScDocument;
class SfxObjectShell;
class Window;

namespace sfx2 {

class LinkManager;

}

namespace sc {

class DataStream;
struct DocumentLinkManagerImpl;

class DocumentLinkManager : boost::noncopyable
{
    DocumentLinkManagerImpl* mpImpl;

public:
    DocumentLinkManager( ScDocument& rDoc, SfxObjectShell* pShell );
    ~DocumentLinkManager();

    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;

    bool idleCheckLinks();

    bool hasDdeLinks() const;

    bool updateDdeLinks( Window* pWin );

    bool updateDdeLink( const OUString& rAppl, const OUString& rTopic, const OUString& rItem );

    size_t getDdeLinkCount() const;

    void disconnectDdeLinks();
};

}

#endif

/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
-27&id=b6fc0ac84ce68586393784713693cc6b658a2785'>remove WITH_ACTIVEX_COMPONENTMatúš Kukan Change-Id: I3320b3ce3307598a479dfac5b120e85441c670dc 2013-08-29firebird is conditionalStephan Bergmann Change-Id: Ia497f9799a1ca0c77f14e2f4a4a8ecddc917f447 2013-07-16Setup Firebird installation / scp2 details.Andrzej J.R. Hunt Change-Id: I03393b08db5878b099a2e71b9b515b707a386e3f 2013-06-09fdo#60924 autoinstall - gbuild/scp2: add canvas moduleMarcos Paulo de Souza Change-Id: I740ee32653059669e299ab52f7709319a8534f21 2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks 2013-03-03remove stale javafiltersAndras Timar Change-Id: Id0c413d64e6f6fa7ded3c5ff10e764bc2e40f006 2013-02-19Kill the --without-system-stdlibs optionFridrich Štrba Change-Id: I54bff2c8593995829857d30b38b8626a8c1a1a4f 2012-12-25Get rid of (most uses of) GUITor Lillqvist GUI only takes values UNX or WNT, so it is fairly pointless. One can check whether OS is WNT or not instead. Change-Id: I78ae32c03536a496a563e5deeb0fca78aebf9c34 Reviewed-on: https://gerrit.libreoffice.org/1304 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net> 2012-11-09binfilter.die.die.dieNorbert Thiebaud Change-Id: Ia3c103e4343d309b997ed37e33a382ffdfbddac3 Reviewed-on: https://gerrit.libreoffice.org/1014 Reviewed-by: Tor Lillqvist <tml@iki.fi> Tested-by: Tor Lillqvist <tml@iki.fi> 2012-09-07fdo#54450 install evolution DB driver correctlyDavid Tardon Change-Id: I0b6eb67014a61e22981f1f6be488fa762d639554 2012-05-29gbuildize scp2David Tardon Change-Id: If9a0906a76943160cfdbd647b26a801bc4389615