update dev300-m58
[ooovba.git] / dbaccess / source / ui / inc / JAccess.hxx
blobfedd6938571b91cc508c0e3ba946179b1f66b229
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: JAccess.hxx,v $
10 * $Revision: 1.8 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef DBACCESS_JACCESS_HXX
31 #define DBACCESS_JACCESS_HXX
33 #ifndef _TOOLKIT_AWT_VCLXACCESSIBLECOMPONENT_HXX_
34 #include <toolkit/awt/vclxaccessiblecomponent.hxx>
35 #endif
36 #ifndef _CPPUHELPER_IMPLBASE1_HXX_
37 #include <cppuhelper/implbase1.hxx>
38 #endif
40 namespace dbaui
42 class OJoinTableView;
43 typedef ::cppu::ImplHelper1< ::com::sun::star::accessibility::XAccessible
44 > OJoinDesignViewAccess_BASE;
45 /** the class OJoinDesignViewAccess represents the accessible object for join views
46 like the QueryDesign and the RelationDesign
48 class OJoinDesignViewAccess : public VCLXAccessibleComponent, public OJoinDesignViewAccess_BASE
50 OJoinTableView* m_pTableView; // the window which I should give accessibility to
52 protected:
53 /** isEditable returns the current editable state
54 @return true if the controller is not readonly otherwise false
56 virtual sal_Bool isEditable() const;
57 public:
58 /** OJoinDesignViewAccess needs a valid view
60 OJoinDesignViewAccess( OJoinTableView* _pTableView);
62 // XInterface
63 DECLARE_XINTERFACE( )
64 DECLARE_XTYPEPROVIDER( )
66 // XServiceInfo - static methods
67 static ::rtl::OUString getImplementationName_Static(void) throw( com::sun::star::uno::RuntimeException );
69 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException);
71 // XAccessible
72 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException);
74 // XAccessibleContext
75 virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException);
76 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);
77 virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException);
79 OJoinTableView* getTableView() const { return m_pTableView; }
81 void notifyAccessibleEvent(
82 const sal_Int16 _nEventId,
83 const ::com::sun::star::uno::Any& _rOldValue,
84 const ::com::sun::star::uno::Any& _rNewValue
87 NotifyAccessibleEvent(_nEventId,_rOldValue,_rNewValue);
90 void clearTableView();
93 #endif // DBACCESS_JACCESS_HXX