1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements.  See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership.  The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance
9 * with the License.  You may obtain a copy of the License at
10 *
11 *   http://www.apache.org/licenses/LICENSE-2.0
12 *
13 * Unless required by applicable law or agreed to in writing,
14 * software distributed under the License is distributed on an
15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16 * KIND, either express or implied.  See the License for the
17 * specific language governing permissions and limitations
18 * under the License.
19 *
20 *************************************************************/
21
22
23#ifndef __com_sun_star_text_TextDocumentView_idl__
24#define __com_sun_star_text_TextDocumentView_idl__
25
26#ifndef __com_sun_star_view_OfficeDocumentView_idl__
27#include <com/sun/star/view/OfficeDocumentView.idl>
28#endif
29
30#ifndef __com_sun_star_view_XViewSettingsSupplier_idl__
31#include <com/sun/star/view/XViewSettingsSupplier.idl>
32#endif
33
34#ifndef __com_sun_star_text_XTextViewCursorSupplier_idl__
35#include <com/sun/star/text/XTextViewCursorSupplier.idl>
36#endif
37
38#ifndef __com_sun_star_beans_XPropertySet_idl__
39#include <com/sun/star/beans/XPropertySet.idl>
40#endif
41
42//=============================================================================
43
44 module com {  module sun {  module star {  module text {
45
46//=============================================================================
47
48/** specifies the view of a <type>TextDocument</type>.
49 */
50published service TextDocumentView
51{
52	service com::sun::star::view::OfficeDocumentView;
53
54
55	/** This interface permits access to the properties of the view.
56	 */
57	interface com::sun::star::view::XViewSettingsSupplier;
58
59
60	/** This interface makes it possible to access the cursor which belongs
61				to the view and can be visible for the user.
62	 */
63	interface com::sun::star::text::XTextViewCursorSupplier;
64
65
66    /** Gives access to the objects properties.
67
68        @since OpenOffice 2.0
69     */
70    [optional] interface com::sun::star::beans::XPropertySet;
71
72
73    //-------------------------------------------------------------------------
74    /** returns the number of pages in the document
75
76        <p>Since the document needs to be formatted to get the result
77        obtaining this value may take some time.</p>
78
79        @since OpenOffice 2.0
80     */
81    [optional, property, readonly] long PageCount;
82
83    //-------------------------------------------------------------------------
84    /** returns the number of lines in the document
85
86        <p>Since the document needs to be formatted to get the result
87        obtaining this value may take some time.</p>
88
89        <p>Empty paragraphs are not counted.</p>
90
91        @since OpenOffice 2.0
92     */
93    [optional, property, readonly] long LineCount;
94
95    //-------------------------------------------------------------------------
96    /** specifies if spellchecking should be done while typing.
97
98        @since OpenOffice 2.0
99     */
100    [optional, property] boolean IsConstantSpellcheck;
101
102    //-------------------------------------------------------------------------
103    /** specifies if the marks for misspelled text should be displayed.
104
105        @since OpenOffice 2.0
106     */
107    [optional, property] boolean IsHideSpellMarks;
108
109    //-------------------------------------------------------------------------
110};
111
112//=============================================================================
113
114}; }; }; };
115
116#endif
117