1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED
25 #define IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED
26 
27 #include <tools/solar.h>
28 
29 class String;
30 namespace com { namespace sun { namespace star { namespace uno { class Any; } } } }
31 namespace sfx2 { class SvLinkSource;  class LinkManager; }
32 
33  /** Document links administration interface
34  */
35  class IDocumentLinksAdministration
36  {
37  public:
38     /** Links un-/sichtbar in LinkManager einfuegen (gelinkte Bereiche)
39     */
40 	virtual bool IsVisibleLinks() const = 0;
41 
42     /**
43     */
44 	virtual void SetVisibleLinks(bool bFlag) = 0;
45 
46     /**
47     */
48     virtual sfx2::LinkManager& GetLinkManager() = 0;
49 
50     /**
51     */
52 	virtual const sfx2::LinkManager& GetLinkManager() const = 0;
53 
54     /** FME 2005-02-25 #i42634# Moved common code of SwReader::Read() and
55         SwDocShell::UpdateLinks() to new SwDoc::UpdateLinks():
56     */
57     virtual void UpdateLinks(sal_Bool bUI) = 0;
58 
59     /** SS fuers Linken von Dokumentteilen
60     */
61 	virtual bool GetData(const String& rItem, const String& rMimeType, ::com::sun::star::uno::Any& rValue) const = 0;
62 
63     /**
64     */
65 	virtual bool SetData(const String& rItem, const String& rMimeType, const ::com::sun::star::uno::Any& rValue) = 0;
66 
67     /**
68     */
69     virtual ::sfx2::SvLinkSource* CreateLinkSource(const String& rItem) = 0;
70 
71     /** embedded alle lokalen Links (Bereiche/Grafiken)
72     */
73 	virtual bool EmbedAllLinks() = 0;
74 
75     /**
76     */
77     virtual void SetLinksUpdated(const bool bNewLinksUpdated) = 0;
78 
79     /**
80     */
81     virtual bool LinksUpdated() const = 0;
82 
83 protected:
~IDocumentLinksAdministration()84     virtual ~IDocumentLinksAdministration() {};
85  };
86 
87  #endif // IDOCUMENTLINKSADMINISTRATION_HXX_INCLUDED
88