LibreOffice Module sc (master)  1
documentlinkmgr.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #pragma once
11 
12 #include <rtl/ustring.hxx>
13 #include <memory>
14 
15 class SfxObjectShell;
16 namespace weld { class Window; }
17 
18 namespace sfx2 {
19 
20 class LinkManager;
21 
22 }
23 
24 namespace sc {
25 
26 class DataStream;
27 struct DocumentLinkManagerImpl;
28 
30 {
31  std::unique_ptr<DocumentLinkManagerImpl> mpImpl;
32 
33 public:
36  const DocumentLinkManager& operator=(const DocumentLinkManager&) = delete;
38 
39  void setDataStream( DataStream* p );
41  const DataStream* getDataStream() const;
42 
49  sfx2::LinkManager* getLinkManager( bool bCreate = true );
50 
52 
53  bool idleCheckLinks();
54 
55  bool hasDdeLinks() const;
56  bool hasDdeOrOleOrWebServiceLinks() const;
57 
59 
60  void updateDdeLink( std::u16string_view rAppl, std::u16string_view rTopic, std::u16string_view rItem );
61 
62  size_t getDdeLinkCount() const;
63 
64 private:
65  bool hasDdeOrOleOrWebServiceLinks(bool bDde, bool bOle, bool bWebService) const;
66 };
67 
68 }
69 
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
std::unique_ptr< DocumentLinkManagerImpl > mpImpl
bool updateDdeOrOleOrWebServiceLinks(weld::Window *pWin)
const sfx2::LinkManager * getExistingLinkManager() const
sfx2::LinkManager * getLinkManager(bool bCreate=true)
size_t getDdeLinkCount() const
bool hasDdeOrOleOrWebServiceLinks() const
DataStream * getDataStream()
const DocumentLinkManager & operator=(const DocumentLinkManager &)=delete
void setDataStream(DataStream *p)
DocumentLinkManager(SfxObjectShell *pShell)
void updateDdeLink(std::u16string_view rAppl, std::u16string_view rTopic, std::u16string_view rItem)