1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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
{
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
40 //===== internal ========================================================
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 (
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
);
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
93 throw (::com::sun::star::uno::RuntimeException
);
96 /// Create a name string that contains the accessible name.
98 CreateAccessibleBaseName ()
99 throw (::com::sun::star::uno::RuntimeException
);
101 /// Create a description string that contains the accessible description.
103 CreateAccessibleDescription ()
104 throw (::com::sun::star::uno::RuntimeException
);
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
123 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */