/src/libreoffice/editeng/source/uno/unopracc.cxx
Line | Count | Source |
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 | | |
21 | | #include <cppuhelper/typeprovider.hxx> |
22 | | #include <com/sun/star/uno/Any.hxx> |
23 | | #include <com/sun/star/uno/Reference.hxx> |
24 | | #include <cppuhelper/supportsservice.hxx> |
25 | | #include <unopracc.hxx> |
26 | | #include <editeng/unoedsrc.hxx> |
27 | | |
28 | | using namespace ::com::sun::star; |
29 | | |
30 | | |
31 | | SvxAccessibleTextPropertySet::SvxAccessibleTextPropertySet( const SvxEditSource* pEditSrc, const SvxItemPropertySet* pPropSet ) |
32 | 0 | : SvxUnoTextRangeBase( pEditSrc, pPropSet ) |
33 | 0 | { |
34 | 0 | } |
35 | | |
36 | | SvxAccessibleTextPropertySet::~SvxAccessibleTextPropertySet() noexcept |
37 | 0 | { |
38 | 0 | } |
39 | | |
40 | | uno::Reference< text::XText > SAL_CALL SvxAccessibleTextPropertySet::getText() |
41 | 0 | { |
42 | | // TODO (empty?) |
43 | 0 | return uno::Reference< text::XText > (); |
44 | 0 | } |
45 | | |
46 | | uno::Any SAL_CALL SvxAccessibleTextPropertySet::queryInterface( const uno::Type & rType ) |
47 | 0 | { |
48 | 0 | return OWeakObject::queryInterface(rType); |
49 | 0 | } |
50 | | |
51 | | void SAL_CALL SvxAccessibleTextPropertySet::acquire() |
52 | | noexcept |
53 | 0 | { |
54 | 0 | OWeakObject::acquire(); |
55 | 0 | } |
56 | | |
57 | | void SAL_CALL SvxAccessibleTextPropertySet::release() |
58 | | noexcept |
59 | 0 | { |
60 | 0 | OWeakObject::release(); |
61 | 0 | } |
62 | | |
63 | | // XTypeProvider |
64 | | uno::Sequence< uno::Type > SAL_CALL SvxAccessibleTextPropertySet::getTypes() |
65 | 0 | { |
66 | 0 | static ::cppu::OTypeCollection ourTypeCollection( |
67 | 0 | ::cppu::UnoType<beans::XPropertySet>::get(), |
68 | 0 | ::cppu::UnoType<beans::XMultiPropertySet>::get(), |
69 | 0 | ::cppu::UnoType<beans::XPropertyState>::get(), |
70 | 0 | ::cppu::UnoType<lang::XServiceInfo>::get(), |
71 | 0 | ::cppu::UnoType<lang::XTypeProvider>::get() ); |
72 | |
|
73 | 0 | return ourTypeCollection.getTypes() ; |
74 | 0 | } |
75 | | |
76 | | uno::Sequence< sal_Int8 > SAL_CALL SvxAccessibleTextPropertySet::getImplementationId() |
77 | 0 | { |
78 | 0 | return css::uno::Sequence<sal_Int8>(); |
79 | 0 | } |
80 | | |
81 | | // XServiceInfo |
82 | | OUString SAL_CALL SAL_CALL SvxAccessibleTextPropertySet::getImplementationName() |
83 | 0 | { |
84 | 0 | return u"SvxAccessibleTextPropertySet"_ustr; |
85 | 0 | } |
86 | | |
87 | | sal_Bool SAL_CALL SvxAccessibleTextPropertySet::supportsService (const OUString& sServiceName) |
88 | 0 | { |
89 | 0 | return cppu::supportsService(this, sServiceName); |
90 | 0 | } |
91 | | |
92 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |