LibreOffice Module unotools (master) 1
accessiblerelationsethelper.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_UNOTOOLS_ACCESSIBLERELATIONSETHELPER_HXX
21#define INCLUDED_UNOTOOLS_ACCESSIBLERELATIONSETHELPER_HXX
22
24
25#include <com/sun/star/accessibility/XAccessibleRelationSet.hpp>
27#include <mutex>
28#include <vector>
29
30//= XAccessibleRelationSet helper classes
31
32//... namespace utl .......................................................
33namespace utl
34{
40 : public cppu::WeakImplHelper<css::accessibility::XAccessibleRelationSet>
41{
42public:
43 //===== internal ========================================================
46
47private:
48 virtual ~AccessibleRelationSetHelper() override;
49
50public:
51 //===== XAccessibleRelationSet ==========================================
52
58 virtual sal_Int32 SAL_CALL getRelationCount() override;
59
73 virtual css::accessibility::AccessibleRelation SAL_CALL getRelation(sal_Int32 nIndex) override;
74
87 virtual sal_Bool SAL_CALL containsRelation(sal_Int16 aRelationType) override;
88
100 virtual css::accessibility::AccessibleRelation SAL_CALL
101 getRelationByType(sal_Int16 aRelationType) override;
102
104 void AddRelation(const css::accessibility::AccessibleRelation& rRelation);
105
106 //===== XTypeProvider ===================================================
107
110 virtual css::uno::Sequence<css::uno::Type> SAL_CALL getTypes() override;
111
114 virtual css::uno::Sequence<sal_Int8> SAL_CALL getImplementationId() override;
115
116private:
120 std::vector<css::accessibility::AccessibleRelation> maRelations;
121};
122}
123//... namespace utl .......................................................
124#endif
125
126/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
@descr This base class provides an implementation of the AccessibleRelationSet service.
std::mutex maMutex
Mutex guarding this object.
std::vector< css::accessibility::AccessibleRelation > maRelations
The implementation of this helper interface.
sal_Int32 nIndex
std::mutex mutex
Definition: textsearch.cxx:94
unsigned char sal_Bool
#define UNOTOOLS_DLLPUBLIC