diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 09:06:44 +0000 |
commit | ed5640d8b587fbcfed7dd7967f3de04b37a76f26 (patch) | |
tree | 7a5f7c6c9d02226d7471cb3cc8fbbf631b415303 /offapi/com/sun/star/text/AccessibleParagraphView.idl | |
parent | Initial commit. (diff) | |
download | libreoffice-upstream.tar.xz libreoffice-upstream.zip |
Adding upstream version 4:7.4.7.upstream/4%7.4.7upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | offapi/com/sun/star/text/AccessibleParagraphView.idl | 173 |
1 files changed, 173 insertions, 0 deletions
diff --git a/offapi/com/sun/star/text/AccessibleParagraphView.idl b/offapi/com/sun/star/text/AccessibleParagraphView.idl new file mode 100644 index 000000000..5f9482739 --- /dev/null +++ b/offapi/com/sun/star/text/AccessibleParagraphView.idl @@ -0,0 +1,173 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This file incorporates work covered by the following license notice: + * + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed + * with this work for additional information regarding copyright + * ownership. The ASF licenses this file to you under the Apache + * License, Version 2.0 (the "License"); you may not use this file + * except in compliance with the License. You may obtain a copy of + * the License at http://www.apache.org/licenses/LICENSE-2.0 . + */ +#ifndef __com_sun_star_text_AccessibleParagraphView_idl__ +#define __com_sun_star_text_AccessibleParagraphView_idl__ + +#include <com/sun/star/accessibility/XAccessibleContext.idl> +#include <com/sun/star/accessibility/XAccessibleComponent.idl> +#include <com/sun/star/accessibility/XAccessibleEditableText.idl> +#include <com/sun/star/accessibility/XAccessibleEventBroadcaster.idl> +#include <com/sun/star/accessibility/XAccessibleTextAttributes.idl> + + +module com { module sun { module star { module text { + + +/** The accessible view of a paragraph fragment. + + + @since OOo 1.1.2 + */ +service AccessibleParagraphView +{ + /** This interface gives access to a paragraph fragment that is at least + partially visible on the screen. A paragraph fragment is the portion + of a paragraph that is displayed on a single page or a in a single + column. + + <ul> + <li>The parent returned by + ::com::sun::star::accessibility::XAccessibleContext::getAccessibleParent() + is the accessible view of a text document (in this case the + paragraph is contained in a page body) or the accessible + view of a header, footer, footnote, endnote, table cell, + text frame, page or shape.</li> + <li>The children returned by + ::com::sun::star::accessibility::XAccessibleContext::getAccessibleChild() + are the graphics, text boxes and OLE objects that are bound + <em>as</em> character within the paragraph. Graphics, text + boxes and OLE objects that are bound to the paragraph or + <em>to</em> a character within the paragraph are not + children of the paragraph fragment but of the document view + itself.</li> + <li>The role is either + ::com::sun::star::accessibility::AccessibleRole::PARAGRAPH or + ::com::sun::star::accessibility::AccessibleRole::HEADING. + The later one is returned + if the paragraph's style is contained in the chapter + numbering of a text document. + <li>The name is "paragraph" or "heading" (or the equivalent term + in application's language) with a number appended. + <li>The description contains the term "paragraph" (or the equivalent + term in application's language) and the first sentence of + the paragraph. + <li>There are no relations. + <li>The following states are supported by the + ::com::sun::star::accessibility::XAccessibleStateSet returned by + ::com::sun::star::accessibility::XAccessibleContext::getAccessibleStateSet(). + <ul> + <li>::com::sun::star::accessibility::AccessibleStateType::DEFUNC + (indicates that + the document window has been closed or the paragraph + fragment is not existing any longer). + <li>::com::sun::star::accessibility::AccessibleStateType::EDITABLE + <li>::com::sun::star::accessibility::AccessibleStateType::ENABLED + (always contained) + <li>::com::sun::star::accessibility::AccessibleStateType::MULTI_LINE + (always contained) + <li>::com::sun::star::accessibility::AccessibleStateType::MULTI_SELECTABLE + (always contained) + <li>::com::sun::star::accessibility::AccessibleStateType::OPAQUE + <li>::com::sun::star::accessibility::AccessibleStateType::SHOWING + <li>::com::sun::star::accessibility::AccessibleStateType::VISIBLE + <li>::com::sun::star::accessibility::AccessibleStateType::FOCUSED + </ul> + <li>Depending of the application's region setting, the locale is + the western, Asian or complex language of the paragraph. + </ul> + + */ + interface ::com::sun::star::accessibility::XAccessibleContext; + + /** This interface describes the graphical representation of a paragraph + fragment. + */ + interface ::com::sun::star::accessibility::XAccessibleComponent; + + /** This interface gives access to a paragraph fragment's text. The text + contains the paragraph's editable text as well as generated text, + like chapter numbers, hyphens or fields. Characters of generated + text contribute to the text's character indexing. However, it is not + possible to set the caret or start a selection within generated text. + <p>For text frames, graphics, etc. that are bound as character some + text is generated that contains the objects description. + <p>The attributes (or properties) returned by + ::com::sun::star::accessibility::XAccessibleText::getCharacterAttributes() + are a sub set of the properties described by the service + ::com::sun::star::style::CharacterProperties. For + properties that have Asian and complex counterparts, the value that + is visible is returned. This can be in fact the western, Asian or + complex value. It's not possible to change the value of any property + by using + ::com::sun::star::accessibility::XAccessibleEditableText::setAttributes(). + <p><em>TODO: If there is a demand, some attributes might be added that + tells whether the character at a certain index is editable or generated. + </em> + + */ + [optional] interface ::com::sun::star::accessibility::XAccessibleEditableText; + + /** This interface is a subset of + ::com::sun::star::accessibility::XAccessibleEditableText + and gives access to a paragraph + fragment's text in a read-only mode. The text contains the + paragraph's text (changeable as well as generated text, like chapter + numbers, hyphens or fields). Characters of generated text contribute + to the text's character indexing. + <p>For text frames, graphics, etc. that are bound as character + some text is generated that contains the objects description. + <p>The attributes (or properties) returned by + ::com::sun::star::accessibility::XAccessibleText::getCharacterAttributes() + are a sub set of the properties described by the service + ::com::sun::star::style::CharacterProperties. For + properties that have Asian and complex counterparts, the value that + is visible is returned. This can be in fact the western, Asian or + complex value. + <p><em>TODO: If there is a demand, some attributes might be added + that tells whether the character at a certain index is changeable or + generated. + </em> + */ + interface ::com::sun::star::accessibility::XAccessibleText; + + /** This interface is for selecting the paragraph's children. Multi + selection is supported only for children that are multi selectable + in the GUI, too. + */ + [optional] interface ::com::sun::star::accessibility::XAccessibleSelection; + + /** This is the interface for listeners. + */ + interface ::com::sun::star::accessibility::XAccessibleEventBroadcaster; + + /** This interface gives access to the default attributes of a paragraph + and to the run attributes of a certain character in a paragraph + + @since OOo 2.0.4 + */ + [optional] interface ::com::sun::star::accessibility::XAccessibleTextAttributes; + +}; + + +}; }; }; }; + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |