Update ooo320-m1
[ooovba.git] / offapi / com / sun / star / text / XParagraphCursor.idl
blob7f8827e24cf381776a71f4bbe7807bf571fa9e57
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: XParagraphCursor.idl,v $
10 * $Revision: 1.11 $
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_XParagraphCursor_idl__
31 #define __com_sun_star_text_XParagraphCursor_idl__
33 #ifndef __com_sun_star_text_XTextCursor_idl__
34 #include <com/sun/star/text/XTextCursor.idl>
35 #endif
38 //=============================================================================
40 module com { module sun { module star { module text {
42 //=============================================================================
44 /** makes it possible to move paragraph by paragraph.
46 published interface XParagraphCursor: com::sun::star::text::XTextCursor
48 //-------------------------------------------------------------------------
50 /** determines if the cursor is positioned at the start of a paragraph.
52 boolean isStartOfParagraph();
54 //-------------------------------------------------------------------------
56 /** determines if the cursor is positioned at the end of a paragraph.
58 boolean isEndOfParagraph();
60 //-------------------------------------------------------------------------
62 /** moves the cursor to the start of the current paragraph.
64 @returns
65 <true/> if the cursor is now at the start of a paragraph,
66 <false/> otherwise. If <false/> was returned the cursor
67 will remain at its original position.
69 boolean gotoStartOfParagraph( [in] boolean bExpand );
71 //-------------------------------------------------------------------------
73 /** moves the cursor to the end of the current paragraph.
75 @returns
76 <true/> if the cursor is now at the end of a paragraph,
77 <false/> otherwise. If <false/> was returned the cursor
78 will remain at its original position.
80 boolean gotoEndOfParagraph( [in] boolean bExpand );
82 //-------------------------------------------------------------------------
84 /** moves the cursor to the next paragraph.
86 @returns
87 <true/> if the cursor was moved. It returns <false/> it the
88 cursor can not advance further.
90 boolean gotoNextParagraph( [in] boolean bExpand );
92 //-------------------------------------------------------------------------
94 /** moves the cursor to the previous paragraph.
96 @returns
97 <true/> if the cursor was moved. It returns <false/> it the
98 cursor can not advance further.
100 boolean gotoPreviousParagraph( [in] boolean bExpand );
104 //=============================================================================
106 }; }; }; };
108 #endif