Branch libreoffice-5-0-4
[LibreOffice.git] / include / svx / AccessibleOLEShape.hxx
blob4591edd939f23fb59909d3fea53bc7e7e1e073e4
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 .
20 #ifndef INCLUDED_SVX_ACCESSIBLEOLESHAPE_HXX
21 #define INCLUDED_SVX_ACCESSIBLEOLESHAPE_HXX
23 #include <svx/AccessibleShape.hxx>
25 #include <com/sun/star/accessibility/XAccessibleAction.hpp>
26 #include <svx/svxdllapi.h>
28 namespace accessibility {
30 /** @descr
31 This class makes OLE objects accessible. With respect to its
32 base class AccessibleShape it supports the additional
33 XAccessibleAction interface.
35 class SVX_DLLPUBLIC AccessibleOLEShape
36 : public AccessibleShape,
37 public ::com::sun::star::accessibility::XAccessibleAction
39 public:
40 //===== internal ========================================================
41 AccessibleOLEShape (
42 const AccessibleShapeInfo& rShapeInfo,
43 const AccessibleShapeTreeInfo& rShapeTreeInfo);
44 virtual ~AccessibleOLEShape();
46 //===== XAccessibleAction ===============================================
48 sal_Int32 SAL_CALL getAccessibleActionCount()
49 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
51 sal_Bool SAL_CALL doAccessibleAction (sal_Int32 nIndex)
52 throw (::com::sun::star::lang::IndexOutOfBoundsException,
53 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 OUString SAL_CALL getAccessibleActionDescription (sal_Int32 nIndex)
56 throw (::com::sun::star::lang::IndexOutOfBoundsException,
57 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
59 ::com::sun::star::uno::Reference<
60 ::com::sun::star::accessibility::XAccessibleKeyBinding> SAL_CALL getAccessibleActionKeyBinding (
61 sal_Int32 nIndex)
62 throw (::com::sun::star::lang::IndexOutOfBoundsException,
63 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
65 //===== XInterface ======================================================
67 virtual com::sun::star::uno::Any SAL_CALL
68 queryInterface (const com::sun::star::uno::Type & rType)
69 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
71 virtual void SAL_CALL
72 acquire()
73 throw () SAL_OVERRIDE;
75 virtual void SAL_CALL
76 release()
77 throw () SAL_OVERRIDE;
79 //===== XServiceInfo ====================================================
81 virtual OUString SAL_CALL
82 getImplementationName()
83 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
85 virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL
86 getSupportedServiceNames()
87 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
89 //===== XTypeProvider ===================================================
91 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL
92 getTypes()
93 throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
94 // ====== XAccessibleExtendedAttributes =====================================
95 virtual ::com::sun::star::uno::Any SAL_CALL getExtendedAttributes() throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE ;
96 protected:
97 /// Create a name string that contains the accessible name.
98 virtual OUString
99 CreateAccessibleBaseName ()
100 throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
102 /// Create a description string that contains the accessible description.
103 virtual OUString
104 CreateAccessibleDescription ()
105 throw (::com::sun::star::uno::RuntimeException) SAL_OVERRIDE;
107 private:
108 AccessibleOLEShape (const AccessibleOLEShape&) SAL_DELETED_FUNCTION;
110 AccessibleOLEShape& operator= (const AccessibleOLEShape&) SAL_DELETED_FUNCTION;
113 } // end of namespace accessibility
115 #endif
117 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */