Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / dbaccess / source / ui / inc / JAccess.hxx
blob93fee35d5de059f0882a3c0ae97c69a69d56c82f
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 .
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>
26 namespace dbaui
28 class OJoinTableView;
29 typedef ::cppu::ImplHelper1< css::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
38 public:
39 /** OJoinDesignViewAccess needs a valid view
41 OJoinDesignViewAccess( OJoinTableView* _pTableView);
43 // XInterface
44 DECLARE_XINTERFACE( )
45 DECLARE_XTYPEPROVIDER( )
47 // XServiceInfo - static methods
48 static OUString getImplementationName_Static() throw( css::uno::RuntimeException );
50 virtual OUString SAL_CALL getImplementationName() throw(css::uno::RuntimeException, std::exception) override;
52 // XAccessible
53 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (css::uno::RuntimeException, std::exception) override;
55 // XAccessibleContext
56 virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (css::uno::RuntimeException, std::exception) override;
57 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (css::lang::IndexOutOfBoundsException,css::uno::RuntimeException, std::exception) override;
58 virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (css::uno::RuntimeException, std::exception) override;
60 void notifyAccessibleEvent(
61 const sal_Int16 _nEventId,
62 const css::uno::Any& _rOldValue,
63 const css::uno::Any& _rNewValue
66 NotifyAccessibleEvent(_nEventId,_rOldValue,_rNewValue);
69 void clearTableView();
72 #endif // INCLUDED_DBACCESS_SOURCE_UI_INC_JACCESS_HXX
74 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */