LibreOffice Module sw (master)  1
accpage.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_SW_SOURCE_CORE_ACCESS_ACCPAGE_HXX
21 #define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCPAGE_HXX
22 
23 #include "acccontext.hxx"
24 
33 {
34  bool m_bIsSelected; // protected by base class mutex
35 
36  bool IsSelected();
37 
39 
40 protected:
41  // Set states for getAccessibleStateSet.
42  // This derived class additionally sets
43  // FOCUSABLE(1) and FOCUSED(+)
44  virtual void GetStates( ::utl::AccessibleStateSetHelper& rStateSet ) override;
45 
46  virtual void InvalidateCursorPos_() override;
47  virtual void InvalidateFocus_() override;
48 
49  virtual ~SwAccessiblePage() override;
50 
51 public:
52  // convenience constructor to avoid typecast;
53  // may only be called with SwPageFrame argument
54  SwAccessiblePage(std::shared_ptr<SwAccessibleMap> const& pInitMap,
55  const SwFrame* pFrame);
56 
57  // XAccessibleContext methods that need to be overridden
58 
59  virtual OUString SAL_CALL getAccessibleDescription() override;
60 
61  // XServiceInfo
62 
63  virtual OUString SAL_CALL getImplementationName() override;
64  virtual sal_Bool SAL_CALL supportsService (
65  const OUString& sServiceName) override;
66  virtual css::uno::Sequence< OUString> SAL_CALL
67  getSupportedServiceNames() override;
68 
69  // XTypeProvider
70  virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
71 
72  virtual bool HasCursor() override; // required by map to remember that object
73 };
74 
75 #endif
76 
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the Writer layout elements.
Definition: frame.hxx:295
virtual ~SwAccessiblePage() override
Definition: accpage.cxx:124
virtual void InvalidateCursorPos_() override
Definition: accpage.cxx:65
SwAccessiblePage(std::shared_ptr< SwAccessibleMap > const &pInitMap, const SwFrame *pFrame)
Definition: accpage.cxx:110
virtual bool HasCursor() override
Definition: accpage.cxx:128
virtual sal_Bool SAL_CALL supportsService(const OUString &sServiceName) override
Return whether the specified service is supported by this class.
Definition: accpage.cxx:139
virtual OUString SAL_CALL getImplementationName() override
Definition: accpage.cxx:134
virtual OUString SAL_CALL getAccessibleDescription() override
Definition: accpage.cxx:158
virtual void InvalidateFocus_() override
Definition: accpage.cxx:92
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Definition: accpage.cxx:144
accessibility implementation for the page (SwPageFrame) The page is only visible in the page preview...
Definition: accpage.hxx:32
unsigned char sal_Bool
SwRect GetBounds(const SwAccessibleMap &rAccMap, const SwFrame *pFrame=nullptr)
Definition: accframe.cxx:334
bool m_bIsSelected
Definition: accpage.hxx:34
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId() override
Definition: accpage.cxx:153
bool IsSelected()
Definition: accpage.cxx:39
virtual void GetStates(::utl::AccessibleStateSetHelper &rStateSet) override
Definition: accpage.cxx:44
const sal_Char sServiceName[]
Definition: accdoc.cxx:61