Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef INCLUDED_DBACCESS_SOURCE_UI_INC_JACCESS_HXX
20 : #define INCLUDED_DBACCESS_SOURCE_UI_INC_JACCESS_HXX
21 :
22 : #include <toolkit/awt/vclxaccessiblecomponent.hxx>
23 : #include <cppuhelper/implbase1.hxx>
24 :
25 : namespace dbaui
26 : {
27 : class OJoinTableView;
28 : typedef ::cppu::ImplHelper1< ::com::sun::star::accessibility::XAccessible
29 : > OJoinDesignViewAccess_BASE;
30 : /** the class OJoinDesignViewAccess represents the accessible object for join views
31 : like the QueryDesign and the RelationDesign
32 : */
33 0 : class OJoinDesignViewAccess : public VCLXAccessibleComponent, public OJoinDesignViewAccess_BASE
34 : {
35 : OJoinTableView* m_pTableView; // the window which I should give accessibility to
36 :
37 : protected:
38 : /** isEditable returns the current editable state
39 : @return true if the controller is not readonly otherwise false
40 : */
41 : virtual sal_Bool isEditable() const;
42 : public:
43 : /** OJoinDesignViewAccess needs a valid view
44 : */
45 : OJoinDesignViewAccess( OJoinTableView* _pTableView);
46 :
47 : // XInterface
48 : DECLARE_XINTERFACE( )
49 : DECLARE_XTYPEPROVIDER( )
50 :
51 : // XServiceInfo - static methods
52 : static OUString getImplementationName_Static(void) throw( com::sun::star::uno::RuntimeException );
53 :
54 : virtual OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
55 :
56 : // XAccessible
57 : virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
58 :
59 : // XAccessibleContext
60 : virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 : 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;
62 : virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
63 :
64 : OJoinTableView* getTableView() const { return m_pTableView; }
65 :
66 0 : void notifyAccessibleEvent(
67 : const sal_Int16 _nEventId,
68 : const ::com::sun::star::uno::Any& _rOldValue,
69 : const ::com::sun::star::uno::Any& _rNewValue
70 : )
71 : {
72 0 : NotifyAccessibleEvent(_nEventId,_rOldValue,_rNewValue);
73 0 : }
74 :
75 : void clearTableView();
76 : };
77 : }
78 : #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_JACCESS_HXX
79 :
80 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|