merged tag ooo/OOO330_m14
[LibreOffice.git] / sw / inc / IDocumentLinksAdministration.hxx
blobc3e6855f3c813fc64a1904aa331fbe8b19a93088
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED
29 #define IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED
31 #include <tools/solar.h>
33 class String;
34 namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
35 namespace sfx2 { class SvLinkSource; class LinkManager; }
37 /** Document links administration interface
39 class IDocumentLinksAdministration
41 public:
42 /** Links un-/sichtbar in LinkManager einfuegen (gelinkte Bereiche)
44 virtual bool IsVisibleLinks() const = 0;
46 /**
48 virtual void SetVisibleLinks(bool bFlag) = 0;
50 /**
52 virtual sfx2::LinkManager& GetLinkManager() = 0;
54 /**
56 virtual const sfx2::LinkManager& GetLinkManager() const = 0;
58 /** FME 2005-02-25 #i42634# Moved common code of SwReader::Read() and
59 SwDocShell::UpdateLinks() to new SwDoc::UpdateLinks():
61 virtual void UpdateLinks(BOOL bUI) = 0;
63 /** SS fuers Linken von Dokumentteilen
65 virtual bool GetData(const String& rItem, const String& rMimeType, ::com::sun::star::uno::Any& rValue) const = 0;
67 /**
69 virtual bool SetData(const String& rItem, const String& rMimeType, const ::com::sun::star::uno::Any& rValue) = 0;
71 /**
73 virtual ::sfx2::SvLinkSource* CreateLinkSource(const String& rItem) = 0;
75 /** embedded alle lokalen Links (Bereiche/Grafiken)
77 virtual bool EmbedAllLinks() = 0;
79 /**
81 virtual void SetLinksUpdated(const bool bNewLinksUpdated) = 0;
83 /**
85 virtual bool LinksUpdated() const = 0;
87 protected:
88 virtual ~IDocumentLinksAdministration() {};
91 #endif // IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED