LibreOffice Module sw (master) 1
accframebase.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_ACCFRAMEBASE_HXX
21#define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCFRAMEBASE_HXX
22
23#include "acccontext.hxx"
24#include <svl/listener.hxx>
25#include <ndtyp.hxx>
26
27class SwFlyFrame;
28
30{
31 bool m_bIsSelected; // protected by base class mutex
32 bool IsSelected();
33
34protected:
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( );
42
43 virtual void InvalidateCursorPos_() override;
44 virtual void InvalidateFocus_() override;
45
46 virtual ~SwAccessibleFrameBase() override;
47 virtual void Notify(const SfxHint&) override;
48
49public:
50 SwAccessibleFrameBase(std::shared_ptr<SwAccessibleMap> const& pInitMap,
51 sal_Int16 nInitRole,
52 const SwFlyFrame *pFlyFrame );
53
54 virtual bool HasCursor() override; // required by map to remember that object
55
56 static SwNodeType GetNodeType( const SwFlyFrame *pFlyFrame );
57
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;
61};
62
63#endif
64
65/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Notify(const SfxHint &) override
virtual void InvalidateCursorPos_() override
virtual void GetStates(sal_Int64 &rStateSet) override
virtual ~SwAccessibleFrameBase() override
virtual void InvalidateFocus_() override
SwAccessibleFrameBase(std::shared_ptr< SwAccessibleMap > const &pInitMap, sal_Int16 nInitRole, const SwFlyFrame *pFlyFrame)
virtual bool HasCursor() override
SwFlyFrame * getFlyFrame() const
virtual bool SetSelectedState(bool bSelected) override
virtual void Dispose(bool bRecursive, bool bCanSkipInvisible=true) override
static SwNodeType GetNodeType(const SwFlyFrame *pFlyFrame)
general base class for all free-flowing frames
Definition: flyfrm.hxx:79
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:188
SwNodeType
Definition: ndtyp.hxx:28