1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: TextDocumentView.idl,v $
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
>
37 #ifndef __com_sun_star_view_XViewSettingsSupplier_idl__
38 #include
<com
/sun
/star
/view
/XViewSettingsSupplier.idl
>
41 #ifndef __com_sun_star_text_XTextViewCursorSupplier_idl__
42 #include
<com
/sun
/star
/text
/XTextViewCursorSupplier.idl
>
45 #ifndef __com_sun_star_beans_XPropertySet_idl__
46 #include
<com
/sun
/star
/beans
/XPropertySet.idl
>
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.
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>
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>
100 [optional, property
, readonly] long LineCount
;
102 //-------------------------------------------------------------------------
103 /** specifies if spellchecking should be done while typing.
107 [optional, property
] boolean IsConstantSpellcheck
;
109 //-------------------------------------------------------------------------
110 /** specifies if the marks for misspelled text should be displayed.
114 [optional, property
] boolean IsHideSpellMarks
;
116 //-------------------------------------------------------------------------
119 //=============================================================================