9d721922ec
2008/04/01 15:49:08 thb 1.5.1256.3: #i85898# Stripping all external header guards 2008/04/01 12:46:16 thb 1.5.1256.2: #i85898# Stripping all external header guards 2008/03/31 14:17:53 rt 1.5.1256.1: #i87441# Change license header to LPGL v3.
76 lines
3.4 KiB
C++
76 lines
3.4 KiB
C++
/*************************************************************************
|
|
*
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
|
*
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
|
*
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
|
*
|
|
* $RCSfile: AccessibleSelectionBase.hxx,v $
|
|
* $Revision: 1.6 $
|
|
*
|
|
* This file is part of OpenOffice.org.
|
|
*
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
* only, as published by the Free Software Foundation.
|
|
*
|
|
* OpenOffice.org 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 version 3 for more details
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
* <http://www.openoffice.org/license.html>
|
|
* for a copy of the LGPLv3 License.
|
|
*
|
|
************************************************************************/
|
|
|
|
#ifndef _SVX_ACCESSIBILITY_ACCESSIBLE_SELECTION_BASE_HXX
|
|
#define _SVX_ACCESSIBILITY_ACCESSIBLE_SELECTION_BASE_HXX
|
|
|
|
#include <comphelper/accessibleselectionhelper.hxx>
|
|
#include "svx/svxdllapi.h"
|
|
|
|
namespace accessibility
|
|
{
|
|
/** @descr
|
|
This base class provides a base implementation of the
|
|
<type>XAccessibleSelection</type> interface.
|
|
The following methods have to be implemented if this
|
|
class is used:
|
|
|
|
<method>implGetMutex</method>,
|
|
<method>implGetAccessibleContext</method>,
|
|
<method>implIsSelected</method>,
|
|
<method>implSelect</method>,
|
|
*/
|
|
class SVX_DLLPUBLIC AccessibleSelectionBase : public ::comphelper::OCommonAccessibleSelection,
|
|
public ::com::sun::star::accessibility::XAccessibleSelection
|
|
{
|
|
protected:
|
|
|
|
virtual ::osl::Mutex& implGetMutex() = 0;
|
|
|
|
public:
|
|
|
|
// XAccessibleSelection - default implementations
|
|
virtual void SAL_CALL selectAccessibleChild( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
virtual sal_Bool SAL_CALL isAccessibleChildSelected( sal_Int32 nChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
virtual void SAL_CALL clearAccessibleSelection( ) throw (::com::sun::star::uno::RuntimeException);
|
|
virtual void SAL_CALL selectAllAccessibleChildren( ) throw (::com::sun::star::uno::RuntimeException);
|
|
virtual sal_Int32 SAL_CALL getSelectedAccessibleChildCount( ) throw (::com::sun::star::uno::RuntimeException);
|
|
virtual ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessible > SAL_CALL getSelectedAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
virtual void SAL_CALL deselectAccessibleChild( sal_Int32 nSelectedChildIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException);
|
|
|
|
public:
|
|
|
|
AccessibleSelectionBase();
|
|
virtual ~AccessibleSelectionBase();
|
|
};
|
|
|
|
}
|
|
|
|
#endif // _SVX_ACCESSIBILITY_ACCESSIBLE_SELECTION_BASE_HXX
|