diff options
author | Jacobo Aragunde Pérez <jaragunde@igalia.com> | 2014-02-03 19:08:31 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2014-02-04 13:08:57 +0000 |
commit | 2bb87dd6596f8e961f5618d8e7686fa12c64e2cf (patch) | |
tree | 3b473eec6bcaa2c168e18fe39a8497cfb34ceae8 /offapi/com/sun/star | |
parent | ac8cb745d7b385b24a3576aa6c40780fdcfe9b15 (diff) |
fdo#39944: Add DOCUMENT_* accessibility UNO roles
Added a set of UNO accessibility roles for specific kinds of
documents:
* DOCUMENT_PRESENTATION for Impress
* DOCUMENT_SPREADSHEET for Calc
* DOCUMENT_TEXT for Writer
The other applications still use the existing DOCUMENT role.
These roles translates directly to ATK but in the other toolkits we
keep using the same association that DOCUMENT role had.
Change-Id: Ibac47527e5effdecb28d2314cde8558cf4fb010a
Reviewed-on: https://gerrit.libreoffice.org/7847
Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'offapi/com/sun/star')
6 files changed, 32 insertions, 6 deletions
diff --git a/offapi/com/sun/star/accessibility/AccessibleRole.idl b/offapi/com/sun/star/accessibility/AccessibleRole.idl index 2baa6a992611..ca3b79bb8b5c 100644 --- a/offapi/com/sun/star/accessibility/AccessibleRole.idl +++ b/offapi/com/sun/star/accessibility/AccessibleRole.idl @@ -705,6 +705,30 @@ constants AccessibleRole */ const short COMMENT_END = 82; + /** View of an presentation document. + + <p>It's an specific variation of DOCUMENT for presentations.</p> + + @since LibreOffice 4.3 + */ + const short DOCUMENT_PRESENTATION = 83; + + /** View of an spreadsheet document. + + <p>It's an specific variation of DOCUMENT for spreadsheets.</p> + + @since LibreOffice 4.3 + */ + const short DOCUMENT_SPREADSHEET = 84; + + /** View of an text document. + + <p>It's an specific variation of DOCUMENT for text.</p> + + @since LibreOffice 4.3 + */ + const short DOCUMENT_TEXT = 85; + }; }; }; }; }; diff --git a/offapi/com/sun/star/drawing/AccessibleDrawDocumentView.idl b/offapi/com/sun/star/drawing/AccessibleDrawDocumentView.idl index 1c3c3fa289fd..9dcf863142b0 100644 --- a/offapi/com/sun/star/drawing/AccessibleDrawDocumentView.idl +++ b/offapi/com/sun/star/drawing/AccessibleDrawDocumentView.idl @@ -69,8 +69,10 @@ service AccessibleDrawDocumentView <p>You can access the following information: <ul> - <li>Role: The object's role is - com::sun::star::accessibility::AccessibleRole::DOCUMENT.</li> + <li>Role: The object's role might be + com::sun::star::accessibility::AccessibleRole::DOCUMENT or + com::sun::star::accessibility::AccessibleRole::DOCUMENT_PRESENTATION + , the former for a Draw and the latter for an Impress document.</li> <li>Name: Its name is "AccessibleDrawDocumentView", "AccessibleOutlineView", or "slide window".</li> <li>Description: The description is "Draw Document", "Accessible diff --git a/offapi/com/sun/star/sheet/AccessibleSpreadsheetDocumentView.idl b/offapi/com/sun/star/sheet/AccessibleSpreadsheetDocumentView.idl index 77939c957f83..7b0d7fe51771 100644 --- a/offapi/com/sun/star/sheet/AccessibleSpreadsheetDocumentView.idl +++ b/offapi/com/sun/star/sheet/AccessibleSpreadsheetDocumentView.idl @@ -92,7 +92,7 @@ service AccessibleSpreadsheetDocumentView </ul> <li>The description is ???.</li> <li>The name is Spreadsheet Document View with a unique number.</li> - <li>The role is ::com::sun::star::accessibility::AccessibleRole::DOCUMENT</li> + <li>The role is ::com::sun::star::accessibility::AccessibleRole::DOCUMENT_SPREADSHEET</li> <li>There are no relations.</li> <li>The following states are supported: <ul> diff --git a/offapi/com/sun/star/sheet/AccessibleSpreadsheetPageView.idl b/offapi/com/sun/star/sheet/AccessibleSpreadsheetPageView.idl index 767392718a92..6ff4454b04be 100644 --- a/offapi/com/sun/star/sheet/AccessibleSpreadsheetPageView.idl +++ b/offapi/com/sun/star/sheet/AccessibleSpreadsheetPageView.idl @@ -96,7 +96,7 @@ service AccessibleSpreadsheetPageView <li>The description is ???.</li> <li>The name is Spreadsheet Document Page Preview.</li> <li>The role is - ::com::sun::star::accessibility::AccessibleRole::DOCUMENT</li> + ::com::sun::star::accessibility::AccessibleRole::DOCUMENT_SPREADSHEET</li> <li>There are no relations.</li> <li>The following states are supported: <ul> diff --git a/offapi/com/sun/star/text/AccessibleTextDocumentPageView.idl b/offapi/com/sun/star/text/AccessibleTextDocumentPageView.idl index cfe22fe76e99..5a6ace720b0b 100644 --- a/offapi/com/sun/star/text/AccessibleTextDocumentPageView.idl +++ b/offapi/com/sun/star/text/AccessibleTextDocumentPageView.idl @@ -47,7 +47,7 @@ service AccessibleTextDocumentPageView returns an object that supports one of the service ::com::sun::star::text::AccessiblePageView. <li>The role is - ::com::sun::star::accessibility::AccessibleRole::DOCUMENT. + ::com::sun::star::accessibility::AccessibleRole::DOCUMENT_TEXT. <li>The name is "document view" (or the equivalent term in application's language). <li>The description also is "document view" (or the equivalent term diff --git a/offapi/com/sun/star/text/AccessibleTextDocumentView.idl b/offapi/com/sun/star/text/AccessibleTextDocumentView.idl index 4d4acf4a151f..818b18eeea53 100644 --- a/offapi/com/sun/star/text/AccessibleTextDocumentView.idl +++ b/offapi/com/sun/star/text/AccessibleTextDocumentView.idl @@ -129,7 +129,7 @@ service AccessibleTextDocumentView but also keep the z order. </ul> <li>The role is - ::com::sun::star::accessibility::AccessibleRole::DOCUMENT. + ::com::sun::star::accessibility::AccessibleRole::DOCUMENT_TEXT. <li>The name is "document view" (or the equivalent term in application's language). <li>The description also is "document view" (or the equivalent term |