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