Revert "jsdialogs: set LOKNotifier in Deck"
[LibreOffice.git] / include / comphelper / accimplaccess.hxx
blob46cce628be1260004967872f8ab8d03e1bd06eda
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_COMPHELPER_ACCIMPLACCESS_HXX
21 #define INCLUDED_COMPHELPER_ACCIMPLACCESS_HXX
23 #include <cppuhelper/implbase1.hxx>
24 #include <com/sun/star/lang/XUnoTunnel.hpp>
25 #include <comphelper/comphelperdllapi.h>
27 namespace comphelper
29 //= OAccessibleImplementationAccess
31 typedef ::cppu::ImplHelper1 < css::lang::XUnoTunnel
32 > OAccImpl_Base;
34 /** This is a helper class which allows accessing several aspects of the implementation
35 of an AccessibleContext.
37 <p>For instance, when you want to implement a context which can be re-parented, you:
38 <ul><li>derive your class from OAccessibleImplementationAccess</li>
39 <li>use <code>setAccessibleParent( <em>component</em>, <em>new_parent</em> )</code>
40 </ul>
41 </p>
43 <p>Another aspect which can be controlled from the outside are states. If you have a class which
44 has only partial control over it's states, you may consider deriving from OAccessibleImplementationAccess.<br/>
45 For instance, say you have an implementation (say component A) which is <em>unable</em> to know or to
46 determine if the represented object is selected, but another component (say B) which uses A (and integrates
47 it into a tree of accessibility components) is.<br/>
48 In this case, if A is derived from OAccessibleImplementationAccess, B can manipulate this
49 foreign-controlled state flag "SELECTED" by using the static helper methods on this class.</p>
51 <p>Please note that the support for foreign controlled states is rather restrictive: You can't have states
52 which <em>may be</em> controlled by a foreign instances. This is implied by the fact that a derived
53 class can ask for states which are <em>set</em> only, not for the ones which are <em>reset</em> currently.
54 </p>
56 class COMPHELPER_DLLPUBLIC OAccessibleImplementationAccess : public OAccImpl_Base
58 protected:
59 OAccessibleImplementationAccess( );
60 virtual ~OAccessibleImplementationAccess( );
62 // XUnoTunnel
63 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence< sal_Int8 >& _rIdentifier ) override;
65 public:
67 private:
68 COMPHELPER_DLLPRIVATE static css::uno::Sequence< sal_Int8 > getUnoTunnelImplementationId();
71 } // namespace comphelper
73 #endif // INCLUDED_COMPHELPER_ACCIMPLACCESS_HXX
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */