1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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 .
21 #include <com/sun/star/accessibility/XAccessibleValue.hpp>
22 #include <com/sun/star/accessibility/XAccessible.hpp>
23 #include <accessibility/accessiblebrowseboxcell.hxx>
24 #include <cppuhelper/implbase2.hxx>
27 typedef ::cppu::ImplHelper2
< css::accessibility::XAccessible
,
28 css::accessibility::XAccessibleValue
29 > AccessibleCheckBoxCell_BASE
;
31 class AccessibleCheckBoxCell final
: public AccessibleBrowseBoxCell
32 ,public AccessibleCheckBoxCell_BASE
38 virtual ~AccessibleCheckBoxCell() override
{}
40 virtual sal_Int64
implCreateStateSet() override
;
43 AccessibleCheckBoxCell(const css::uno::Reference
< css::accessibility::XAccessible
>& _rxParent
,
44 ::vcl::IAccessibleTableProvider
& _rBrowseBox
,
47 const TriState
& _eState
,
53 DECLARE_XTYPEPROVIDER( )
56 virtual css::uno::Reference
< css::accessibility::XAccessibleContext
> SAL_CALL
getAccessibleContext( ) override
;
59 virtual sal_Int64 SAL_CALL
getAccessibleChildCount( ) override
;
60 virtual css::uno::Reference
< css::accessibility::XAccessible
> SAL_CALL
getAccessibleChild( sal_Int64 i
) override
;
61 virtual OUString SAL_CALL
getImplementationName() override
;
62 virtual sal_Int64 SAL_CALL
getAccessibleIndexInParent( ) override
;
66 virtual css::uno::Any SAL_CALL
getCurrentValue( ) override
;
67 virtual sal_Bool SAL_CALL
setCurrentValue( const css::uno::Any
& aNumber
) override
;
68 virtual css::uno::Any SAL_CALL
getMaximumValue( ) override
;
69 virtual css::uno::Any SAL_CALL
getMinimumValue( ) override
;
70 virtual css::uno::Any SAL_CALL
getMinimumIncrement( ) override
;
73 void SetChecked( bool _bChecked
);
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */