android: Update app-specific/MIME type icons
[LibreOffice.git] / sw / source / core / access / accframebase.hxx
blob1487073c3b5e8f7c9e535ae5883a2427555013e7
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_ACCFRAMEBASE_HXX
21 #define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCFRAMEBASE_HXX
23 #include "acccontext.hxx"
24 #include <svl/listener.hxx>
25 #include <ndtyp.hxx>
27 class SwFlyFrame;
29 class SwAccessibleFrameBase : public SwAccessibleContext, public SvtListener
31 bool m_bIsSelected; // protected by base class mutex
32 bool IsSelected();
34 protected:
35 // Set states for getAccessibleStateSet.
36 // This derived class additionally sets SELECTABLE(1), SELECTED(+),
37 // FOCUSABLE(1) and FOCUSED(+)
38 virtual void GetStates( sal_Int64& rStateSet ) override;
39 SwFlyFrame* getFlyFrame() const;
40 bool GetSelectedState( );
41 SwPaM* GetCursor();
43 virtual void InvalidateCursorPos_() override;
44 virtual void InvalidateFocus_() override;
46 virtual ~SwAccessibleFrameBase() override;
47 virtual void Notify(const SfxHint&) override;
49 public:
50 SwAccessibleFrameBase(std::shared_ptr<SwAccessibleMap> const& pInitMap,
51 sal_Int16 nInitRole,
52 const SwFlyFrame *pFlyFrame );
54 virtual bool HasCursor() override; // required by map to remember that object
56 static SwNodeType GetNodeType( const SwFlyFrame *pFlyFrame );
58 // The object is not visible any longer and should be destroyed
59 virtual void Dispose(bool bRecursive, bool bCanSkipInvisible = true) override;
60 virtual bool SetSelectedState( bool bSelected ) override;
63 #endif
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */