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#include <optional>
27#include <string_view>
28
29namespace sfx2 { class LinkManager; }
30class SwDoc;
31class SwPaM;
32class SwNodeRange;
33
34namespace sw
35{
36
38{
39public:
40
42
43 bool IsVisibleLinks() const override;
44
45 void SetVisibleLinks(bool bFlag) override;
46
48
49 const sfx2::LinkManager& GetLinkManager() const override;
50
51 void UpdateLinks() override;
52
53 bool GetData(const OUString& rItem, const OUString& rMimeType, css::uno::Any& rValue) const override;
54
55 void SetData(const OUString& rItem) override;
56
57 ::sfx2::SvLinkSource* CreateLinkSource(const OUString& rItem) override;
58
59 bool EmbedAllLinks() override;
60
61 void SetLinksUpdated(const bool bNewLinksUpdated) override;
62
63 bool LinksUpdated() const override;
64
65 //Non-Interface method
66 bool SelectServerObj( std::u16string_view rStr, SwPaM*& rpPam, std::optional<SwNodeRange>& rpRange ) const;
67
68 virtual ~DocumentLinksAdministrationManager() override;
69
70private:
71
74
75 bool mbVisibleLinks; //< TRUE: Links are inserted visibly.
76 bool mbLinksUpdated; //< #i38810# flag indicating, that the links have been updated.
77 std::unique_ptr<sfx2::LinkManager> m_pLinkMgr; //< List of linked stuff (graphics/DDE/OLE).
78
80};
81
82}
83
84#endif
85
86/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Document links administration interface.
Definition: doc.hxx:197
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:188
bool SelectServerObj(std::u16string_view rStr, SwPaM *&rpPam, std::optional< SwNodeRange > &rpRange) const
DocumentLinksAdministrationManager(DocumentLinksAdministrationManager const &)=delete
bool EmbedAllLinks() override
embedded all local links (Areas/Graphics)
bool IsVisibleLinks() const override
Insert links in-/visibly into LinkManager (linked ranges).
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
DocumentLinksAdministrationManager & operator=(DocumentLinksAdministrationManager const &)=delete
::sfx2::SvLinkSource * CreateLinkSource(const OUString &rItem) override
void UpdateLinks() override
#i42634# Moved common code of SwReader::Read() and SwDocShell::UpdateLinks() to new SwDoc::UpdateLink...
Dialog to specify the properties of date form field.