merge the formfield patch from ooo-build
[ooovba.git] / dbaccess / source / ui / inc / ConnectionLineAccess.hxx
blob4dc38fa68204df5fb49caccc389ee3fad1b5b3b6
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: ConnectionLineAccess.hxx,v $
10 * $Revision: 1.6 $
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_CONNECTIONLINEACCESS_HXX
31 #define DBACCESS_CONNECTIONLINEACCESS_HXX
33 #ifndef _COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLERELATIONSET_HPP_
34 #include <com/sun/star/accessibility/XAccessibleRelationSet.hpp>
35 #endif
36 #ifndef _CPPUHELPER_IMPLBASE2_HXX_
37 #include <cppuhelper/implbase2.hxx>
38 #endif
39 #ifndef _TOOLKIT_AWT_VCLXACCESSIBLECOMPONENT_HXX_
40 #include <toolkit/awt/vclxaccessiblecomponent.hxx>
41 #endif
43 namespace dbaui
45 typedef ::cppu::ImplHelper2< ::com::sun::star::accessibility::XAccessibleRelationSet,
46 ::com::sun::star::accessibility::XAccessible
47 > OConnectionLineAccess_BASE;
48 class OTableConnection;
49 /** the class OConnectionLineAccess represents the accessible object for the connection between two table windows
50 like they are used in the QueryDesign and the RelationDesign
52 class OConnectionLineAccess : public VCLXAccessibleComponent
53 , public OConnectionLineAccess_BASE
55 const OTableConnection* m_pLine; // the window which I should give accessibility to
56 protected:
57 /** this function is called upon disposing the component
59 virtual void SAL_CALL disposing();
61 /** isEditable returns the current editable state
62 @return true if it is editable otherwise false
64 virtual sal_Bool isEditable() const;
65 public:
66 OConnectionLineAccess(OTableConnection* _pLine);
68 // XInterface
69 virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& aType ) throw (::com::sun::star::uno::RuntimeException);
70 virtual void SAL_CALL acquire( ) throw ()
71 { // here inline is allowed because we do not use this class outside this dll
72 VCLXAccessibleComponent::acquire( );
74 virtual void SAL_CALL release( ) throw ()
75 { // here inline is allowed because we do not use this class outside this dll
76 VCLXAccessibleComponent::release( );
79 // XTypeProvider
80 virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes( ) throw (::com::sun::star::uno::RuntimeException);
82 // XServiceInfo - static methods
83 static ::rtl::OUString getImplementationName_Static(void) throw( com::sun::star::uno::RuntimeException );
84 // XServiceInfo
85 virtual ::rtl::OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException);
87 // XAccessible
88 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException);
90 // XAccessibleContext
91 virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException);
92 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int32 i ) throw (::com::sun::star::uno::RuntimeException);
93 virtual sal_Int32 SAL_CALL getAccessibleIndexInParent( ) throw (::com::sun::star::uno::RuntimeException);
94 virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException);
95 virtual ::rtl::OUString SAL_CALL getAccessibleDescription( ) throw (::com::sun::star::uno::RuntimeException);
96 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) throw (::com::sun::star::uno::RuntimeException);
98 // XAccessibleComponent
99 virtual sal_Bool SAL_CALL contains( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
100 virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException);
101 virtual ::com::sun::star::awt::Rectangle SAL_CALL getBounds( ) throw (::com::sun::star::uno::RuntimeException);
102 virtual ::com::sun::star::awt::Point SAL_CALL getLocation( ) throw (::com::sun::star::uno::RuntimeException);
103 virtual ::com::sun::star::awt::Point SAL_CALL getLocationOnScreen( ) throw (::com::sun::star::uno::RuntimeException);
104 virtual ::com::sun::star::awt::Size SAL_CALL getSize( ) throw (::com::sun::star::uno::RuntimeException);
105 virtual sal_Bool SAL_CALL isShowing( ) throw (::com::sun::star::uno::RuntimeException);
106 virtual sal_Bool SAL_CALL isVisible( ) throw (::com::sun::star::uno::RuntimeException);
107 virtual sal_Bool SAL_CALL isFocusTraversable( ) throw (::com::sun::star::uno::RuntimeException);
109 // XAccessibleRelationSet
110 virtual sal_Int32 SAL_CALL getRelationCount( ) throw (::com::sun::star::uno::RuntimeException);
111 virtual ::com::sun::star::accessibility::AccessibleRelation SAL_CALL getRelation( sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
112 virtual sal_Bool SAL_CALL containsRelation( sal_Int16 aRelationType ) throw (::com::sun::star::uno::RuntimeException);
113 virtual ::com::sun::star::accessibility::AccessibleRelation SAL_CALL getRelationByType( sal_Int16 aRelationType ) throw (::com::sun::star::uno::RuntimeException);
116 #endif // DBACCESS_CONNECTIONLINEACCESS_HXX