merged tag ooo/OOO330_m14
[LibreOffice.git] / offapi / com / sun / star / sheet / XSheetLinkable.idl
blob159176dce9d3532efdabb0561c02ca7c8e8974fc
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 __com_sun_star_sheet_XSheetLinkable_idl__
29 #define __com_sun_star_sheet_XSheetLinkable_idl__
31 #ifndef __com_sun_star_uno_XInterface_idl__
32 #include <com/sun/star/uno/XInterface.idl>
33 #endif
35 #ifndef __com_sun_star_sheet_SheetLinkMode_idl__
36 #include <com/sun/star/sheet/SheetLinkMode.idl>
37 #endif
39 //=============================================================================
41 module com { module sun { module star { module sheet {
43 //=============================================================================
45 /** enables a sheet to refer to another sheet in a different document.
47 <p>To insert a sheet link, the sheet used as linked sheet has to exist
48 already. The method <member>XSheetLinkable::link</member> creates a
49 <type>SheetLink</type> object in the document's <type>SheetLinks</type>
50 collection and links the sheet to the specified external sheet.</p>
52 @see com::sun::star::sheet::SheetLinks
53 @see com::sun::star::sheet::SheetLink
55 @deprecated
57 published interface XSheetLinkable: com::sun::star::uno::XInterface
59 //-------------------------------------------------------------------------
61 /** returns the link mode of the spreadsheet.
63 <p>If the returned value is <const>SheetLinkMode::NORMAL</const>,
64 formulas are copied. With <const>SheetLinkMode::VALUE</const>,
65 only results of formulas are used.</p>
67 com::sun::star::sheet::SheetLinkMode getLinkMode();
69 //-------------------------------------------------------------------------
71 /** enables the linking of the sheet and controls whether formulas
72 are copied.
74 @param nLinkMode
75 the value specifying the link mode for this spreadsheet.
77 <p>If the value is <const>SheetLinkMode::NORMAL</const>,
78 formulas are copied. With <const>SheetLinkMode::VALUE</const>,
79 only results of formulas are used.</p>
81 void setLinkMode( [in] com::sun::star::sheet::SheetLinkMode nLinkMode );
83 //-------------------------------------------------------------------------
85 /** returns the target URL of the link.
87 string getLinkUrl();
89 //-------------------------------------------------------------------------
91 /** sets the target URL of the link.
93 <p>A <type>SheetLink</type> object with the same file name must
94 exist already or the link will not work.</p>
96 void setLinkUrl( [in] string aLinkUrl );
98 //-------------------------------------------------------------------------
100 /** returns the sheet name of the sheet in the source document.
102 string getLinkSheetName();
104 //-------------------------------------------------------------------------
106 /** sets the name of the linked sheet in the source document.
108 <p>This method sets the sheet name in the <type>SheetLink</type>
109 object, it does not modify the sheet name in the source document.</p>
111 void setLinkSheetName( [in] string aLinkSheetName );
113 //-------------------------------------------------------------------------
115 /** links the sheet to another sheet in another document.
117 <p>A <type>SheetLink</type> object is created if it does not exist,
118 and the link mode, the URL of the linked document and the linked
119 sheet name are set.</p>
121 void link( [in] string aUrl,
122 [in] string aSheetName,
123 [in] string aFilterName,
124 [in] string aFilterOptions,
125 [in] com::sun::star::sheet::SheetLinkMode nMode );
129 //=============================================================================
131 }; }; }; };
133 #endif