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 #ifndef INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLECELLBASE_HXX
21 #define INCLUDED_SC_SOURCE_UI_INC_ACCESSIBLECELLBASE_HXX
22 
24 #include <address.hxx>
25 #include <com/sun/star/accessibility/XAccessibleValue.hpp>
26 #include <cppuhelper/implbase1.hxx>
27 
30 
32  : public ScAccessibleContextBase,
34 {
35 public:
36  //===== internal ========================================================
38  const css::uno::Reference<css::accessibility::XAccessible>& rxParent,
39  ScDocument* pDoc,
40  const ScAddress& rCellAddress,
41  sal_Int32 nIndex);
42 protected:
43  virtual ~ScAccessibleCellBase() override;
44 public:
45 
46  virtual bool isVisible() override;
47 
49 
50  virtual css::uno::Any SAL_CALL queryInterface(
51  css::uno::Type const & rType ) override;
52 
53  virtual void SAL_CALL acquire() throw () override;
54 
55  virtual void SAL_CALL release() throw () override;
56 
58 
59  virtual sal_Int32 SAL_CALL getForeground( ) override;
60 
61  virtual sal_Int32 SAL_CALL getBackground( ) override;
62 
64 
66  virtual sal_Int32 SAL_CALL
67  getAccessibleIndexInParent() override;
68 
69 protected:
71  virtual OUString
72  createAccessibleDescription() override;
73 
75  virtual OUString
76  createAccessibleName() override;
77 
78 public:
80 
81  virtual css::uno::Any SAL_CALL
82  getCurrentValue() override;
83 
84  virtual sal_Bool SAL_CALL
85  setCurrentValue( const css::uno::Any& aNumber ) override;
86 
87  virtual css::uno::Any SAL_CALL
88  getMaximumValue( ) override;
89 
90  virtual css::uno::Any SAL_CALL
91  getMinimumValue( ) override;
92 
94 
97  virtual OUString SAL_CALL
98  getImplementationName() override;
99 
101 
103  virtual css::uno::Sequence< css::uno::Type > SAL_CALL
104  getTypes() override;
105 
108  virtual css::uno::Sequence<sal_Int8> SAL_CALL
109  getImplementationId() override;
110 
111 protected:
113 
115 
116  sal_Int32 mnIndex;
117 
118 private:
119  virtual bool IsEditable(
120  const css::uno::Reference<css::accessibility::XAccessibleStateSet>& rxParentStates);
121 protected:
123  OUString GetNote() const;
124 
126  OUString GetAllDisplayNote() const;
128  OUString getShadowAttrs() const;
130  OUString getBorderAttrs();
131 public:
132  const ScAddress& GetCellAddress() const { return maCellAddress; }
133 };
134 
135 #endif
136 
137 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual sal_Bool SAL_CALL setCurrentValue(const css::uno::Any &aNumber) override
virtual bool isVisible() override
sal_Int32 nIndex
virtual css::uno::Any SAL_CALL getMinimumValue() override
virtual OUString createAccessibleDescription() override
Return this object's description.
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Returns an implementation id.
ScAccessibleCellBase(const css::uno::Reference< css::accessibility::XAccessible > &rxParent, ScDocument *pDoc, const ScAddress &rCellAddress, sal_Int32 nIndex)
virtual OUString createAccessibleName() override
Return the object's current name.
cppu::ImplHelper1< css::accessibility::XAccessibleValue > ScAccessibleCellBaseImpl
virtual OUString SAL_CALL getImplementationName() override
===== XServiceInfo ====================================================
OUString GetNote() const
const ScAddress & GetCellAddress() const
unsigned char sal_Bool
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
===== XTypeProvider ===================================================
virtual ~ScAccessibleCellBase() override
virtual void SAL_CALL acquire() override
virtual sal_Int32 SAL_CALL getAccessibleIndexInParent() override
===== XAccessibleContext ==============================================
OUString GetAllDisplayNote() const
OUString getShadowAttrs() const
virtual css::uno::Any SAL_CALL getMaximumValue() override
virtual bool IsEditable(const css::uno::Reference< css::accessibility::XAccessibleStateSet > &rxParentStates)
virtual void SAL_CALL release() override
virtual sal_Int32 SAL_CALL getBackground() override
virtual css::uno::Any SAL_CALL queryInterface(css::uno::Type const &rType) override
===== XInterface =====================================================
virtual sal_Int32 SAL_CALL getForeground() override
===== XAccessibleComponent ============================================
virtual css::uno::Any SAL_CALL getCurrentValue() override
===== XAccessibleValue ================================================