merge the formfield patch from ooo-build
[ooovba.git] / offapi / com / sun / star / text / XTextRange.idl
blob5e0781607cd8e413e01b9524c5ac27fde5e594f0
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: XTextRange.idl,v $
10 * $Revision: 1.10 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef __com_sun_star_text_XTextRange_idl__
31 #define __com_sun_star_text_XTextRange_idl__
33 #ifndef __com_sun_star_uno_XInterface_idl__
34 #include <com/sun/star/uno/XInterface.idl>
35 #endif
37 //=============================================================================
39 module com { module sun { module star { module text {
41 published interface XText;
43 //=============================================================================
45 // DocMerge from xml: interface com::sun::star::text::XTextRange
46 /** describes the object's position in a text.
50 <p>It represents a text range. The beginning and end of the range may
51 be identical.
52 </p>
54 published interface XTextRange: com::sun::star::uno::XInterface
56 //-------------------------------------------------------------------------
58 // DocMerge from idl: method com::sun::star::text::XTextRange::getText
59 /** @returns
60 the text interface in which the text position is contained.
62 XText getText();
64 //-------------------------------------------------------------------------
66 // DocMerge from idl: method com::sun::star::text::XTextRange::getStart
67 /** @returns
68 a text range which contains only the start of this text range.
70 XTextRange getStart();
72 //-------------------------------------------------------------------------
74 // DocMerge from idl: method com::sun::star::text::XTextRange::getEnd
75 /** @returns
76 a text range which contains only the end of this text range.
78 XTextRange getEnd();
80 //-------------------------------------------------------------------------
82 // DocMerge from idl: method com::sun::star::text::XTextRange::getString
83 /** @returns
84 the string that is included in this text range.
86 string getString();
88 //-------------------------------------------------------------------------
90 // DocMerge from xml: method com::sun::star::text::XTextRange::setString
91 /** the whole string of characters of this piece of text is replaced.
95 <p>All styles are removed when applying this method.
97 </p>
99 [oneway] void setString( [in] string aString );
103 //=============================================================================
105 }; }; }; };
107 #endif