Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
7 : : *
8 : : * OpenOffice.org - a multi-platform office productivity suite
9 : : *
10 : : * This file is part of OpenOffice.org.
11 : : *
12 : : * OpenOffice.org is free software: you can redistribute it and/or modify
13 : : * it under the terms of the GNU Lesser General Public License version 3
14 : : * only, as published by the Free Software Foundation.
15 : : *
16 : : * OpenOffice.org is distributed in the hope that it will be useful,
17 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 : : * GNU Lesser General Public License version 3 for more details
20 : : * (a copy is included in the LICENSE file that accompanied this code).
21 : : *
22 : : * You should have received a copy of the GNU Lesser General Public License
23 : : * version 3 along with OpenOffice.org. If not, see
24 : : * <http://www.openoffice.org/license.html>
25 : : * for a copy of the LGPLv3 License.
26 : : *
27 : : ************************************************************************/
28 : :
29 : :
30 : : //------------------------------------------------------------------------
31 : : //
32 : : // Global header
33 : : //
34 : : //------------------------------------------------------------------------
35 : : #include <osl/mutex.hxx>
36 : : #include <com/sun/star/uno/Any.hxx>
37 : : #include <com/sun/star/uno/Reference.hxx>
38 : : #include <cppuhelper/weakref.hxx>
39 : : #include <com/sun/star/lang/XComponent.hpp>
40 : : #include <cppuhelper/typeprovider.hxx>
41 : : #include <comphelper/servicehelper.hxx>
42 : :
43 : :
44 : : //------------------------------------------------------------------------
45 : : //
46 : : // Project-local header
47 : : //
48 : : //------------------------------------------------------------------------
49 : :
50 : : #include <editeng/unopracc.hxx>
51 : : #include <editeng/unoedsrc.hxx>
52 : :
53 : : using namespace ::com::sun::star;
54 : :
55 : : //------------------------------------------------------------------------
56 : : //
57 : : // SvxAccessibleTextPropertySet implementation
58 : : //
59 : : //------------------------------------------------------------------------
60 : :
61 : 4 : SvxAccessibleTextPropertySet::SvxAccessibleTextPropertySet( const SvxEditSource* pEditSrc, const SvxItemPropertySet* pPropSet )
62 : 4 : : SvxUnoTextRangeBase( pEditSrc, pPropSet )
63 : : {
64 : 4 : }
65 : :
66 : 4 : SvxAccessibleTextPropertySet::~SvxAccessibleTextPropertySet() throw()
67 : : {
68 [ - + ]: 4 : }
69 : :
70 : 0 : uno::Reference< text::XText > SAL_CALL SvxAccessibleTextPropertySet::getText() throw (uno::RuntimeException)
71 : : {
72 : : // TODO (empty?)
73 : 0 : return uno::Reference< text::XText > ();
74 : : }
75 : :
76 : : // XServiceInfo
77 : 0 : ::rtl::OUString SAL_CALL SAL_CALL SvxAccessibleTextPropertySet::getImplementationName (void) throw (uno::RuntimeException)
78 : : {
79 : 0 : return ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM ("SvxAccessibleTextPropertySet"));
80 : : }
81 : :
82 : 0 : sal_Bool SAL_CALL SvxAccessibleTextPropertySet::supportsService (const ::rtl::OUString& sServiceName) throw (uno::RuntimeException)
83 : : {
84 : : // Iterate over all supported service names and return true if on of them
85 : : // matches the given name.
86 : : uno::Sequence< ::rtl::OUString> aSupportedServices (
87 [ # # ]: 0 : getSupportedServiceNames ());
88 [ # # ]: 0 : for (int i=0; i<aSupportedServices.getLength(); i++)
89 [ # # ][ # # ]: 0 : if (sServiceName == aSupportedServices[i])
90 : 0 : return sal_True;
91 [ # # ]: 0 : return sal_False;
92 : : }
93 : :
94 : 0 : uno::Sequence< ::rtl::OUString> SAL_CALL SvxAccessibleTextPropertySet::getSupportedServiceNames (void) throw (uno::RuntimeException)
95 : : {
96 : : // TODO
97 : 0 : return SvxUnoTextRangeBase::getSupportedServiceNames();
98 : : }
99 : :
100 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|