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 <calbck.hxx>
25 #include <ndtyp.hxx>
26 
27 class SwFlyFrame;
28 
30  public SwClient
31 {
32  bool m_bIsSelected; // protected by base class mutex
33  bool IsSelected();
34 
35 protected:
36  // Set states for getAccessibleStateSet.
37  // This derived class additionally sets SELECTABLE(1), SELECTED(+),
38  // FOCUSABLE(1) and FOCUSED(+)
39  virtual void GetStates( ::utl::AccessibleStateSetHelper& rStateSet ) override;
40  SwFlyFrame* getFlyFrame() const;
41  bool GetSelectedState( );
42  SwPaM* GetCursor();
43 
44  virtual void InvalidateCursorPos_() override;
45  virtual void InvalidateFocus_() override;
46 
47  virtual ~SwAccessibleFrameBase() override;
48  virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew) override;
49 
50 public:
51  SwAccessibleFrameBase(std::shared_ptr<SwAccessibleMap> const& pInitMap,
52  sal_Int16 nInitRole,
53  const SwFlyFrame *pFlyFrame );
54 
55  virtual bool HasCursor() override; // required by map to remember that object
56 
57  static SwNodeType GetNodeType( const SwFlyFrame *pFlyFrame );
58 
59  // The object is not visible an longer and should be destroyed
60  virtual void Dispose(bool bRecursive, bool bCanSkipInvisible = true) override;
61  virtual bool SetSelectedState( bool bSeleted ) override;
62 };
63 
64 #endif
65 
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Modify(const SfxPoolItem *pOld, const SfxPoolItem *pNew) override
virtual void GetStates(::utl::AccessibleStateSetHelper &rStateSet) 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
PaM is Point and Mark: a selection of the document model.
Definition: pam.hxx:136
SwNodeType
Definition: ndtyp.hxx:28
static SwNodeType GetNodeType(const SwFlyFrame *pFlyFrame)
virtual void InvalidateCursorPos_() override
general base class for all free-flowing frames
Definition: flyfrm.hxx:60
virtual ~SwAccessibleFrameBase() override
virtual bool SetSelectedState(bool bSeleted) override
virtual void Dispose(bool bRecursive, bool bCanSkipInvisible=true) override