LibreOffice Module sw (master)  1
DocumentLinksAdministrationManager.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  * This file incorporates work covered by the following license notice:
10  *
11  * Licensed to the Apache Software Foundation (ASF) under one or more
12  * contributor license agreements. See the NOTICE file distributed
13  * with this work for additional information regarding copyright
14  * ownership. The ASF licenses this file to you under the Apache
15  * License, Version 2.0 (the "License"); you may not use this file
16  * except in compliance with the License. You may obtain a copy of
17  * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18  */
19 
20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTLINKSADMINISTRATIONMANAGER_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTLINKSADMINISTRATIONMANAGER_HXX
22 
24 
25 #include <memory>
26 
27 namespace sfx2 { class LinkManager; }
28 class SwDoc;
29 class SwPaM;
30 class SwNodeRange;
31 
32 namespace sw
33 {
34 
36 {
37 public:
38 
40 
41  bool IsVisibleLinks() const override;
42 
43  void SetVisibleLinks(bool bFlag) override;
44 
46 
47  const sfx2::LinkManager& GetLinkManager() const override;
48 
49  void UpdateLinks() override;
50 
51  bool GetData(const OUString& rItem, const OUString& rMimeType, css::uno::Any& rValue) const override;
52 
53  bool SetData(const OUString& rItem, const OUString& rMimeType, const css::uno::Any& rValue) override;
54 
55  ::sfx2::SvLinkSource* CreateLinkSource(const OUString& rItem) override;
56 
57  bool EmbedAllLinks() override;
58 
59  void SetLinksUpdated(const bool bNewLinksUpdated) override;
60 
61  bool LinksUpdated() const override;
62 
63  //Non-Interface method
64  bool SelectServerObj( const OUString& rStr, SwPaM*& rpPam, std::unique_ptr<SwNodeRange>& rpRange ) const;
65 
66  virtual ~DocumentLinksAdministrationManager() override;
67 
68 private:
69 
72 
73  bool mbVisibleLinks; //< TRUE: Links are inserted visibly.
74  bool mbLinksUpdated; //< #i38810# flag indicating, that the links have been updated.
75  std::unique_ptr<sfx2::LinkManager> m_pLinkMgr; //< List of linked stuff (graphics/DDE/OLE).
76 
78 };
79 
80 }
81 
82 #endif
83 
84 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool IsVisibleLinks() const override
Insert links in-/visibly into LinkManager (linked ranges).
Definition: doc.hxx:185
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:40
bool SelectServerObj(const OUString &rStr, SwPaM *&rpPam, std::unique_ptr< SwNodeRange > &rpRange) const
DocumentLinksAdministrationManager & operator=(DocumentLinksAdministrationManager const &)=delete
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:136
Document links administration interface.
bool GetData(const OUString &rItem, const OUString &rMimeType, css::uno::Any &rValue) const override
for linking of parts of documents.
void SetLinksUpdated(const bool bNewLinksUpdated) override
::sfx2::SvLinkSource * CreateLinkSource(const OUString &rItem) override
bool SetData(const OUString &rItem, const OUString &rMimeType, const css::uno::Any &rValue) override
void UpdateLinks() override
#i42634# Moved common code of SwReader::Read() and SwDocShell::UpdateLinks() to new SwDoc::UpdateLink...
bool EmbedAllLinks() override
embedded all local links (Areas/Graphics)