/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.org. * * OpenOffice.org is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License version 3 * only, as published by the Free Software Foundation. * * OpenOffice.org is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License version 3 for more details * (a copy is included in the LICENSE file that accompanied this code). * * You should have received a copy of the GNU Lesser General Public License * version 3 along with OpenOffice.org. If not, see * * for a copy of the LGPLv3 License. * ************************************************************************/ #ifndef __com_sun_star_drawing_AccessibleGraphicShape_idl__ #define __com_sun_star_drawing_AccessibleGraphicShape_idl__ #include #include #include module com { module sun { module star { module drawing { /** The AccessibleDrawDocumentView service is implemented by views of Draw and Impress documents.

An object that implements the AccessibleDrawDocumentView service provides information about the view of a Draw or Impress document in one of the various view modes. With its children it gives access to the current page and the shapes on that page.

This service gives a simplified view on the underlying document. It tries both to keep the structure of the accessibility representation tree as simple as possible and provide as much relevant information as possible. This has the following consequences:

  1. Only the current draw page and only the visible shapes are accessible. To switch to another page or to access shapes that lie outside the currently visible area, the user has to issue these requests manually or programmatically through the usual channels, e.g. pressing keys or selecting menu entries.
  2. The hierarchy exposed through the XAccessibleContext interface does not necessarily correspond directly to the underlying draw page structure. Internal nodes in this hierarchy are introduced by group shapes, 3D scenes, and OLE objects.
  3. The view modes editing view, outline view, slides view, notes view, handout view, and presentation view are not exposed explicitly. However, if there happens to be a view mode change which results in a rearrangement of the visible shapes, the user gets notified of this.

@since OOo 1.1.2 */ published service AccessibleDrawDocumentView { /** Base interface for being accessible. It gives access to the XAccessibleContext interface. */ interface ::com::sun::star::accessibility::XAccessible; /** Provide access to the view of a document.

You can access the following information:

  • Role: The object's role is AccessibleRole::DOCUMENT.
  • Name: Its name is "AccessibleDrawDocumentView", "AccessibleOutlineView", or "slide window".
  • Description: The description is "Draw Document", "Accessible Draw Document Outline", or "slide window".
  • Children: The shapes of the current draw page that are currently visible are direct and indirect children of (an object implementing) this service. Group shapes, 3D scenes, and OLE objects introduce further levels into the hierarchy. If the visibility of shapes changes--due to scrolling, switching the current draw page, or changing the view mode--the appropriate listeners are called and the user gets informed of this.
  • Parent: The parent will usually be the window that contains the draw document view. It has to be set via implementation dependent ways.
  • Relations: Relations are set and modified from the outside.
  • States: AccessibleStateType::DEFUNC is set if a document view becomes obsolete like when the window, which displays the view, is closed. Otherwise the states AccessibleStateType::ENABLED, AccessibleStateType::SHOWING, AccessibleStateType::VISIBLE, AccessibleStateType::FOCUSABLE, and AccessibleStateType::SELECTABLE are always set.
  • Locale: Is obtained from the parent and returned unchanged.

*/ interface ::com::sun::star::accessibility::XAccessibleContext; /** Provide access to a draw document's graphical representation.

The main purpose of this interface is to provide a bounding box of the currently visible area and to let the user find children (i.e. shapes) that cover a given test point. The more interesting part of the graphical representation of a draw page lies in its children. See the AccessibleShape service for more information about shapes.

@see AccessibleShape */ interface ::com::sun::star::accessibility::XAccessibleComponent; }; }; }; }; }; #endif /* vim:set shiftwidth=4 softtabstop=4 expandtab: */