Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / offapi / com / sun / star / text / TextDocumentView.idl
blob220dc9ead5cf059575f61d4370ee761312aa61da
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef __com_sun_star_text_TextDocumentView_idl__
20 #define __com_sun_star_text_TextDocumentView_idl__
22 #include <com/sun/star/view/OfficeDocumentView.idl>
24 #include <com/sun/star/view/XViewSettingsSupplier.idl>
26 #include <com/sun/star/text/XTextViewCursorSupplier.idl>
28 #include <com/sun/star/beans/XPropertySet.idl>
31 module com { module sun { module star { module text {
34 /** specifies the view of a TextDocument.
36 published service TextDocumentView
38 service com::sun::star::view::OfficeDocumentView;
41 /** This interface permits access to the properties of the view.
43 interface com::sun::star::view::XViewSettingsSupplier;
46 /** This interface makes it possible to access the cursor which belongs
47 to the view and can be visible for the user.
49 interface com::sun::star::text::XTextViewCursorSupplier;
52 /** Gives access to the objects properties.
54 @since OOo 2.0
56 [optional] interface com::sun::star::beans::XPropertySet;
59 /** returns the number of pages in the document
61 <p>Since the document needs to be formatted to get the result
62 obtaining this value may take some time.</p>
64 @since OOo 2.0
66 [optional, property, readonly] long PageCount;
68 /** returns the number of lines in the document
70 <p>Since the document needs to be formatted to get the result
71 obtaining this value may take some time.</p>
73 <p>Empty paragraphs are not counted.</p>
75 @since OOo 2.0
77 [optional, property, readonly] long LineCount;
79 /** specifies if spell checking should be done while typing.
81 @since OOo 2.0
83 [optional, property] boolean IsConstantSpellcheck;
85 /** specifies if the marks for misspelled text should be displayed.
87 @since OOo 2.0
89 [optional, property] boolean IsHideSpellMarks;
94 }; }; }; };
96 #endif
98 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */