1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 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. 14 * 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). 20 * 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. 25 * 26 ************************************************************************/ 27 28 #ifndef IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED 29 #define IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED 30 31 #include <tools/solar.h> 32 33 class String; 34 namespace com { namespace sun { namespace star { namespace uno { class Any; } } } } 35 namespace sfx2 { class SvLinkSource; class LinkManager; } 36 37 /** Document links administration interface 38 */ 39 class IDocumentLinksAdministration 40 { 41 public: 42 /** Links un-/sichtbar in LinkManager einfuegen (gelinkte Bereiche) 43 */ 44 virtual bool IsVisibleLinks() const = 0; 45 46 /** 47 */ 48 virtual void SetVisibleLinks(bool bFlag) = 0; 49 50 /** 51 */ 52 virtual sfx2::LinkManager& GetLinkManager() = 0; 53 54 /** 55 */ 56 virtual const sfx2::LinkManager& GetLinkManager() const = 0; 57 58 /** FME 2005-02-25 #i42634# Moved common code of SwReader::Read() and 59 SwDocShell::UpdateLinks() to new SwDoc::UpdateLinks(): 60 */ 61 virtual void UpdateLinks(sal_Bool bUI) = 0; 62 63 /** SS fuers Linken von Dokumentteilen 64 */ 65 virtual bool GetData(const String& rItem, const String& rMimeType, ::com::sun::star::uno::Any& rValue) const = 0; 66 67 /** 68 */ 69 virtual bool SetData(const String& rItem, const String& rMimeType, const ::com::sun::star::uno::Any& rValue) = 0; 70 71 /** 72 */ 73 virtual ::sfx2::SvLinkSource* CreateLinkSource(const String& rItem) = 0; 74 75 /** embedded alle lokalen Links (Bereiche/Grafiken) 76 */ 77 virtual bool EmbedAllLinks() = 0; 78 79 /** 80 */ 81 virtual void SetLinksUpdated(const bool bNewLinksUpdated) = 0; 82 83 /** 84 */ 85 virtual bool LinksUpdated() const = 0; 86 87 protected: 88 virtual ~IDocumentLinksAdministration() {}; 89 }; 90 91 #endif // IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED 92