LibreOffice
LibreOffice 7.6 SDK API Reference
XFlatParagraph.idl
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  *
9  * This file incorporates work covered by the following license notice:
10  *
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 .
18  */
19 
20 
21 module com { module sun { module star { module text {
22 
23 
30 {
31 
37  string getText();
38 
45  boolean isModified();
46 
58  void setChecked( [in] long nType, [in] boolean bVal );
59 
69  boolean isChecked( [in] long nType );
70 
86  com::sun::star::lang::Locale getLanguageOfText( [in] long nPos, [in] long nLen )
88 
105  [in] long nLen )
107 
125  void changeText( [in] long nPos, [in] long nLen, [in] string NewText,
126  [in] sequence<::com::sun::star::beans::PropertyValue> aAttributes )
128 
143  void changeAttributes( [in] long nPos, [in] long nLen,
144  [in] sequence<::com::sun::star::beans::PropertyValue> aAttributes )
146 
152  sequence< long > getLanguagePortions();
153 };
154 
155 
156 }; }; }; };
157 
158 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
com::sun::star::text::XFlatParagraph::isChecked
boolean isChecked([in] long nType)
returns whether the respective text node has already been processed
com::sun::star::text::XFlatParagraph::isModified
boolean isModified()
check whether the content has been modified
com::sun::star::text::XFlatParagraph
provides functionality to ...
Definition: XFlatParagraph.idl:30
com::sun::star::text::XFlatParagraph::getPrimaryLanguageOfText
com::sun::star::lang::Locale getPrimaryLanguageOfText([in] long nPos, [in] long nLen)
get the single most probable language of the specific text, especially after getLanguageOfText fails
com::sun::star::text::XFlatParagraph::setChecked
void setChecked([in] long nType, [in] boolean bVal)
change the "checked" flag of the respective text node, i.e., mark the text node as "processed"
com::sun::star::text::XTextMarkup
provides functionality to markup text.
Definition: XTextMarkup.idl:30
com::sun::star::text::XFlatParagraph::changeText
void changeText([in] long nPos, [in] long nLen, [in] string NewText, [in] sequence<::com::sun::star::beans::PropertyValue > aAttributes)
replace the specific text with new text.
com::sun::star::lang::Locale
object represents a specific geographical, political, or cultural region.
Definition: Locale.idl:34
com
Definition: Ambiguous.idl:20
com::sun::star::text::XFlatParagraph::getLanguageOfText
com::sun::star::lang::Locale getLanguageOfText([in] long nPos, [in] long nLen)
get the language of the specific text
com::sun::star::text::XFlatParagraph::getText
string getText()
get the content of the paragraph
com::sun::star::text::XFlatParagraph::changeAttributes
void changeAttributes([in] long nPos, [in] long nLen, [in] sequence<::com::sun::star::beans::PropertyValue > aAttributes)
replace the attributes of the specific text with the given set of attributes.
com::sun::star::lang::IllegalArgumentException
This exception is thrown to indicate that a method has passed an illegal or inappropriate argument.
Definition: IllegalArgumentException.idl:27
com::sun::star::text::XFlatParagraph::getLanguagePortions
sequence< long > getLanguagePortions()
get a list of indexes that separate each two different languages