update dev300-m58
[ooovba.git] / offapi / com / sun / star / text / TextDocumentView.idl
blob32b2f8af887da4dd8a50028803209bf5bdf2ad79
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: TextDocumentView.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_TextDocumentView_idl__
31 #define __com_sun_star_text_TextDocumentView_idl__
33 #ifndef __com_sun_star_view_OfficeDocumentView_idl__
34 #include <com/sun/star/view/OfficeDocumentView.idl>
35 #endif
37 #ifndef __com_sun_star_view_XViewSettingsSupplier_idl__
38 #include <com/sun/star/view/XViewSettingsSupplier.idl>
39 #endif
41 #ifndef __com_sun_star_text_XTextViewCursorSupplier_idl__
42 #include <com/sun/star/text/XTextViewCursorSupplier.idl>
43 #endif
45 #ifndef __com_sun_star_beans_XPropertySet_idl__
46 #include <com/sun/star/beans/XPropertySet.idl>
47 #endif
49 //=============================================================================
51 module com { module sun { module star { module text {
53 //=============================================================================
55 /** specifies the view of a <type>TextDocument</type>.
57 published service TextDocumentView
59 service com::sun::star::view::OfficeDocumentView;
62 /** This interface permits access to the properties of the view.
64 interface com::sun::star::view::XViewSettingsSupplier;
67 /** This interface makes it possible to access the cursor which belongs
68 to the view and can be visible for the user.
70 interface com::sun::star::text::XTextViewCursorSupplier;
73 /** Gives access to the objects properties.
75 @since OOo 2.0
77 [optional] interface com::sun::star::beans::XPropertySet;
80 //-------------------------------------------------------------------------
81 /** returns the number of pages in the document
83 <p>Since the document needs to be formatted to get the result
84 obtaining this value may take some time.</p>
86 @since OOo 2.0
88 [optional, property, readonly] long PageCount;
90 //-------------------------------------------------------------------------
91 /** returns the number of lines in the document
93 <p>Since the document needs to be formatted to get the result
94 obtaining this value may take some time.</p>
96 <p>Empty paragraphs are not counted.</p>
98 @since OOo 2.0
100 [optional, property, readonly] long LineCount;
102 //-------------------------------------------------------------------------
103 /** specifies if spellchecking should be done while typing.
105 @since OOo 2.0
107 [optional, property] boolean IsConstantSpellcheck;
109 //-------------------------------------------------------------------------
110 /** specifies if the marks for misspelled text should be displayed.
112 @since OOo 2.0
114 [optional, property] boolean IsHideSpellMarks;
116 //-------------------------------------------------------------------------
119 //=============================================================================
121 }; }; }; };
123 #endif