LibreOffice Module sc (master) 1
AccessibleCellBase.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#pragma once
21
23#include <address.hxx>
24#include <com/sun/star/accessibility/XAccessibleValue.hpp>
26
29
33{
34public:
35 //===== internal ========================================================
37 const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
38 ScDocument* pDoc,
39 const ScAddress& rCellAddress,
40 sal_Int64 nIndex);
41protected:
42 virtual ~ScAccessibleCellBase() override;
43public:
44
45 virtual bool isVisible() override;
46
48
49 virtual css::uno::Any SAL_CALL queryInterface(
50 css::uno::Type const & rType ) override;
51
52 virtual void SAL_CALL acquire() noexcept override;
53
54 virtual void SAL_CALL release() noexcept override;
55
57
58 virtual sal_Int32 SAL_CALL getForeground( ) override;
59
60 virtual sal_Int32 SAL_CALL getBackground( ) override;
61
63
65 virtual sal_Int64 SAL_CALL
67
68protected:
70 virtual OUString
72
74 virtual OUString
75 createAccessibleName() override;
76
77public:
79
80 virtual css::uno::Any SAL_CALL
81 getCurrentValue() override;
82
83 virtual sal_Bool SAL_CALL
84 setCurrentValue( const css::uno::Any& aNumber ) override;
85
86 virtual css::uno::Any SAL_CALL
87 getMaximumValue( ) override;
88
89 virtual css::uno::Any SAL_CALL
90 getMinimumValue( ) override;
91
92 virtual css::uno::Any SAL_CALL
93 getMinimumIncrement( ) override;
94
96
99 virtual OUString SAL_CALL
100 getImplementationName() override;
101
103
105 virtual css::uno::Sequence< css::uno::Type > SAL_CALL
106 getTypes() override;
107
110 virtual css::uno::Sequence<sal_Int8> SAL_CALL
111 getImplementationId() override;
112
113protected:
115
117
118 sal_Int64 mnIndex;
119
120private:
121 virtual bool IsEditable(sal_Int64 nParentStates);
122protected:
124 OUString GetNote() const;
125
127 OUString GetAllDisplayNote() const;
129 OUString getShadowAttrs() const;
131 OUString getBorderAttrs();
132public:
133 const ScAddress& GetCellAddress() const { return maCellAddress; }
134};
135
136/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
cppu::ImplHelper1< css::accessibility::XAccessibleValue > ScAccessibleCellBaseImpl
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
===== XTypeProvider ===================================================
virtual sal_Int32 SAL_CALL getForeground() override
===== XAccessibleComponent ============================================
virtual ~ScAccessibleCellBase() override
virtual sal_Int64 SAL_CALL getAccessibleIndexInParent() override
===== XAccessibleContext ==============================================
OUString getShadowAttrs() const
virtual css::uno::Any SAL_CALL getCurrentValue() override
===== XAccessibleValue ================================================
virtual css::uno::Any SAL_CALL getMaximumValue() override
virtual OUString createAccessibleDescription() override
Return this object's description.
const ScAddress & GetCellAddress() const
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Returns an implementation id.
virtual bool IsEditable(sal_Int64 nParentStates)
ScAccessibleCellBase(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScDocument *pDoc, const ScAddress &rCellAddress, sal_Int64 nIndex)
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) override
===== XInterface =====================================================
OUString GetAllDisplayNote() const
virtual sal_Bool SAL_CALL setCurrentValue(const css::uno::Any &aNumber) override
virtual css::uno::Any SAL_CALL getMinimumIncrement() override
virtual void SAL_CALL acquire() noexcept override
virtual bool isVisible() override
virtual void SAL_CALL release() noexcept override
virtual OUString createAccessibleName() override
Return the object's current name.
virtual css::uno::Any SAL_CALL getMinimumValue() override
virtual sal_Int32 SAL_CALL getBackground() override
sal_Int32 nIndex
unsigned char sal_Bool