fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / include / svx / AccessibleOLEShape.hxx
blob1c3fe797ed59c62e505208ac05bd4a0c1ce9536c
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 _SVX_ACCESSIBILITY_ACCESSIBLE_OLE_SHAPE_HXX
21 #define _SVX_ACCESSIBILITY_ACCESSIBLE_OLE_SHAPE_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 <type>AccessibleShape</type> it supports the additional
33 <type>XAccessibleAction</type> 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 (void);
46 //===== XAccessibleAction ===============================================
48 sal_Int32 SAL_CALL getAccessibleActionCount (void)
49 throw (::com::sun::star::uno::RuntimeException);
51 sal_Bool SAL_CALL doAccessibleAction (sal_Int32 nIndex)
52 throw (::com::sun::star::lang::IndexOutOfBoundsException,
53 ::com::sun::star::uno::RuntimeException);
55 OUString SAL_CALL getAccessibleActionDescription (sal_Int32 nIndex)
56 throw (::com::sun::star::lang::IndexOutOfBoundsException,
57 ::com::sun::star::uno::RuntimeException);
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);
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);
71 virtual void SAL_CALL
72 acquire (void)
73 throw ();
75 virtual void SAL_CALL
76 release (void)
77 throw ();
79 //===== XServiceInfo ====================================================
81 virtual OUString SAL_CALL
82 getImplementationName (void)
83 throw (::com::sun::star::uno::RuntimeException);
85 virtual ::com::sun::star::uno::Sequence< OUString> SAL_CALL
86 getSupportedServiceNames (void)
87 throw (::com::sun::star::uno::RuntimeException);
89 //===== XTypeProvider ===================================================
91 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type> SAL_CALL
92 getTypes (void)
93 throw (::com::sun::star::uno::RuntimeException);
95 protected:
96 /// Create a name string that contains the accessible name.
97 virtual OUString
98 CreateAccessibleBaseName ()
99 throw (::com::sun::star::uno::RuntimeException);
101 /// Create a description string that contains the accessible description.
102 virtual OUString
103 CreateAccessibleDescription ()
104 throw (::com::sun::star::uno::RuntimeException);
106 private:
107 /** Don't use the default constructor. Use the public constructor that
108 takes the original shape and the parent as arguments instead.
110 SVX_DLLPRIVATE AccessibleOLEShape (void);
112 /// Don't use the constructor. Not yet implemented.
113 SVX_DLLPRIVATE AccessibleOLEShape (const AccessibleOLEShape&);
115 /// Don't use the assignment operator. Not yet implemented.
116 SVX_DLLPRIVATE AccessibleOLEShape& operator= (const AccessibleOLEShape&);
119 } // end of namespace accessibility
121 #endif
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */