android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / core / access / accpage.hxx
blob9c4d06ba532e808d22274c1bb0ea089de10afd91
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_SW_SOURCE_CORE_ACCESS_ACCPAGE_HXX
21 #define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCPAGE_HXX
23 #include "acccontext.hxx"
25 /**
26 * accessibility implementation for the page (SwPageFrame)
27 * The page is _only_ visible in the page preview. For the regular
28 * document view, it doesn't make sense to add this additional element
29 * into the hierarchy. For the page preview, however, the page is the
30 * important.
32 class SwAccessiblePage : public SwAccessibleContext
34 bool m_bIsSelected; // protected by base class mutex
36 bool IsSelected();
38 using SwAccessibleFrame::GetBounds;
40 protected:
41 // Set states for getAccessibleStateSet.
42 // This derived class additionally sets
43 // FOCUSABLE(1) and FOCUSED(+)
44 virtual void GetStates( sal_Int64& rStateSet ) override;
46 virtual void InvalidateCursorPos_() override;
47 virtual void InvalidateFocus_() override;
49 virtual ~SwAccessiblePage() override;
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);
57 // XAccessibleContext methods that need to be overridden
59 virtual OUString SAL_CALL getAccessibleDescription() override;
61 // XServiceInfo
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;
69 // XTypeProvider
70 virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId( ) override;
72 virtual bool HasCursor() override; // required by map to remember that object
75 #endif
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */