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 .
19 #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_JACCESS_HXX
20 #define INCLUDED_DBACCESS_SOURCE_UI_INC_JACCESS_HXX
22 #include <toolkit/awt/vclxaccessiblecomponent.hxx>
23 #include <cppuhelper/implbase1.hxx>
24 #include <vcl/vclptr.hxx>
29 typedef ::cppu::ImplHelper1
< ::com::sun::star::accessibility::XAccessible
30 > OJoinDesignViewAccess_BASE
;
31 /** the class OJoinDesignViewAccess represents the accessible object for join views
32 like the QueryDesign and the RelationDesign
34 class OJoinDesignViewAccess
: public VCLXAccessibleComponent
, public OJoinDesignViewAccess_BASE
36 VclPtr
<OJoinTableView
> m_pTableView
; // the window which I should give accessibility to
39 /** OJoinDesignViewAccess needs a valid view
41 OJoinDesignViewAccess( OJoinTableView
* _pTableView
);
45 DECLARE_XTYPEPROVIDER( )
47 // XServiceInfo - static methods
48 static OUString
getImplementationName_Static() throw( com::sun::star::uno::RuntimeException
);
50 virtual OUString SAL_CALL
getImplementationName() throw(com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
53 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessibleContext
> SAL_CALL
getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
56 virtual sal_Int32 SAL_CALL
getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
57 virtual ::com::sun::star::uno::Reference
< ::com::sun::star::accessibility::XAccessible
> SAL_CALL
getAccessibleChild( sal_Int32 i
) throw (::com::sun::star::lang::IndexOutOfBoundsException
,::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
58 virtual sal_Int16 SAL_CALL
getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException
, std::exception
) SAL_OVERRIDE
;
60 OJoinTableView
* getTableView() const { return m_pTableView
; }
62 void notifyAccessibleEvent(
63 const sal_Int16 _nEventId
,
64 const ::com::sun::star::uno::Any
& _rOldValue
,
65 const ::com::sun::star::uno::Any
& _rNewValue
68 NotifyAccessibleEvent(_nEventId
,_rOldValue
,_rNewValue
);
71 void clearTableView();
74 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_JACCESS_HXX
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */