Files
libreoffice/dbaccess/source/ui/inc/JAccess.hxx

97 lines
3.9 KiB
C++
Raw Normal View History

2002-02-06 07:55:08 +00:00
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
2002-02-06 07:55:08 +00:00
*
* $RCSfile: JAccess.hxx,v $
2002-02-06 07:55:08 +00:00
*
* $Revision: 1.6 $
2002-02-06 07:55:08 +00:00
*
* last change: $Author: rt $ $Date: 2005-09-08 15:28:28 $
2002-02-06 07:55:08 +00:00
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
2002-02-06 07:55:08 +00:00
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
2002-02-06 07:55:08 +00:00
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
2002-02-06 07:55:08 +00:00
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
2002-02-06 07:55:08 +00:00
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
2002-02-06 07:55:08 +00:00
*
************************************************************************/
#ifndef DBACCESS_JACCESS_HXX
#define DBACCESS_JACCESS_HXX
#ifndef _TOOLKIT_AWT_VCLXACCESSIBLECOMPONENT_HXX_
#include <toolkit/awt/vclxaccessiblecomponent.hxx>
#endif
#ifndef _CPPUHELPER_IMPLBASE1_HXX_
#include <cppuhelper/implbase1.hxx>
2002-02-06 07:55:08 +00:00
#endif
namespace dbaui
{
class OJoinTableView;
typedef ::cppu::ImplHelper1< ::com::sun::star::accessibility::XAccessible
> OJoinDesignViewAccess_BASE;
2002-02-06 07:55:08 +00:00
/** the class OJoinDesignViewAccess represents the accessible object for join views
like the QueryDesign and the RelationDesign
*/
class OJoinDesignViewAccess : public VCLXAccessibleComponent, public OJoinDesignViewAccess_BASE
2002-02-06 07:55:08 +00:00
{
2002-02-08 07:56:33 +00:00
OJoinTableView* m_pTableView; // the window which I should give accessibility to
2002-02-06 07:55:08 +00:00
protected:
/** isEditable returns the current editable state
@return true if the controller is not readonly otherwise false
*/
virtual sal_Bool isEditable() const;
public:
/** OJoinDesignViewAccess needs a valid view
*/
OJoinDesignViewAccess( OJoinTableView* _pTableView);
// XInterface
DECLARE_XINTERFACE( )
DECLARE_XTYPEPROVIDER( )
2002-02-06 07:55:08 +00:00
// XServiceInfo - static methods
static ::rtl::OUString getImplementationName_Static(void) throw( com::sun::star::uno::RuntimeException );
virtual ::rtl::OUString SAL_CALL getImplementationName() throw(com::sun::star::uno::RuntimeException);
// XAccessible
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) throw (::com::sun::star::uno::RuntimeException);
2002-02-06 07:55:08 +00:00
// XAccessibleContext
virtual sal_Int32 SAL_CALL getAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException);
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);
2002-02-06 07:55:08 +00:00
virtual sal_Int16 SAL_CALL getAccessibleRole( ) throw (::com::sun::star::uno::RuntimeException);
OJoinTableView* getTableView() const { return m_pTableView; }
void notifyAccessibleEvent(
const sal_Int16 _nEventId,
const ::com::sun::star::uno::Any& _rOldValue,
const ::com::sun::star::uno::Any& _rNewValue
)
{
NotifyAccessibleEvent(_nEventId,_rOldValue,_rNewValue);
}
2002-02-06 07:55:08 +00:00
};
}
#endif // DBACCESS_JACCESS_HXX