xref: /AOO41X/main/sw/source/core/access/accframebase.hxx (revision 707fc0d4d52eb4f69d89a98ffec6918ca5de6326)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _ACCFRAMEBASE_HXX
24 #define _ACCFRAMEBASE_HXX
25 
26 #include <acccontext.hxx>
27 
28 #include <calbck.hxx>
29 
30 class SwFlyFrm;
31 
32 class SwAccessibleFrameBase : public SwAccessibleContext,
33                               public SwClient
34 {
35     sal_Bool    bIsSelected;    // protected by base class mutex
36 
37     sal_Bool    IsSelected();
38 
39 protected:
40 
41     // Set states for getAccessibleStateSet.
42     // This drived class additionaly sets SELECTABLE(1), SELECTED(+),
43     // FOCUSABLE(1) and FOCUSED(+)
44     virtual void GetStates( ::utl::AccessibleStateSetHelper& rStateSet );
45 
46     virtual void _InvalidateCursorPos();
47     virtual void _InvalidateFocus();
48 
49     virtual ~SwAccessibleFrameBase();
50     virtual void Modify( const SfxPoolItem* pOld, const SfxPoolItem *pNew);
51 
52 public:
53 
54     SwAccessibleFrameBase( SwAccessibleMap* pInitMap,
55                            sal_Int16 nInitRole,
56                            const SwFlyFrm *pFlyFrm );
57 
58     virtual sal_Bool HasCursor();   // required by map to remember that object
59 
60     static sal_uInt8 GetNodeType( const SwFlyFrm *pFlyFrm );
61 
62     // The object is not visible an longer and should be destroyed
63     virtual void Dispose( sal_Bool bRecursive = sal_False );
64 };
65 
66 
67 #endif
68