LibreOffice Module editeng (master) 1
unopracc.cxx
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
22#include <com/sun/star/uno/Any.hxx>
23#include <com/sun/star/uno/Reference.hxx>
25#include <unopracc.hxx>
26#include <editeng/unoedsrc.hxx>
27
28using namespace ::com::sun::star;
29
30
32 : SvxUnoTextRangeBase( pEditSrc, pPropSet )
33{
34}
35
37{
38}
39
40uno::Reference< text::XText > SAL_CALL SvxAccessibleTextPropertySet::getText()
41{
42 // TODO (empty?)
43 return uno::Reference< text::XText > ();
44}
45
47{
48 return OWeakObject::queryInterface(rType);
49}
50
52 noexcept
53{
54 OWeakObject::acquire();
55}
56
58 noexcept
59{
60 OWeakObject::release();
61}
62
63// XTypeProvider
64uno::Sequence< uno::Type > SAL_CALL SvxAccessibleTextPropertySet::getTypes()
65{
66 static ::cppu::OTypeCollection ourTypeCollection(
72
73 return ourTypeCollection.getTypes() ;
74}
75
76uno::Sequence< sal_Int8 > SAL_CALL SvxAccessibleTextPropertySet::getImplementationId()
77{
78 return css::uno::Sequence<sal_Int8>();
79}
80
81// XServiceInfo
83{
84 return "SvxAccessibleTextPropertySet";
85}
86
87sal_Bool SAL_CALL SvxAccessibleTextPropertySet::supportsService (const OUString& sServiceName)
88{
90}
91
92/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
constexpr OUStringLiteral sServiceName
SvxAccessibleTextPropertySet(const SvxEditSource *, const SvxItemPropertySet *)
Definition: unopracc.cxx:31
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes() override
Definition: unopracc.cxx:64
virtual ~SvxAccessibleTextPropertySet() noexcept override
Definition: unopracc.cxx:36
virtual sal_Bool SAL_CALL supportsService(const OUString &) override
Definition: unopracc.cxx:87
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: unopracc.cxx:76
virtual css::uno::Reference< css::text::XText > SAL_CALL getText() override
Definition: unopracc.cxx:40
virtual void SAL_CALL acquire() noexcept override
Definition: unopracc.cxx:51
virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type &rType) override
Definition: unopracc.cxx:46
virtual void SAL_CALL release() noexcept override
Definition: unopracc.cxx:57
virtual OUString SAL_CALL getImplementationName() override
Definition: unopracc.cxx:82
Wrapper class for unified EditEngine/Outliner access.
Definition: unoedsrc.hxx:56
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
unsigned char sal_Bool