LibreOffice Module sw (master)  1
accfrmobj.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_ACCFRMOBJ_HXX
21 #define INCLUDED_SW_SOURCE_CORE_ACCESS_ACCFRMOBJ_HXX
22 
23 #include <vcl/vclptr.hxx>
24 
25 class SwAccessibleMap;
26 class SwFrame;
27 class SdrObject;
28 namespace vcl { class Window; }
29 class SwRect;
30 
31 namespace sw { namespace access {
32 
34 {
35  public:
38  explicit SwAccessibleChild( const SdrObject* pDrawObj );
39  explicit SwAccessibleChild( const SwFrame* pFrame );
40  explicit SwAccessibleChild( vcl::Window* pWindow );
41  SwAccessibleChild( const SwFrame* pFrame,
42  const SdrObject* pDrawObj,
43  vcl::Window* pWindow );
44 
45  SwAccessibleChild(SwAccessibleChild const &) = default;
47  SwAccessibleChild & operator =(SwAccessibleChild const &) = default;
49 
50  SwAccessibleChild& operator=( const SdrObject* pDrawObj );
51  SwAccessibleChild& operator=( const SwFrame* pFrame );
53 
54  bool operator==( const SwAccessibleChild& r ) const;
55 
56  bool IsValid() const;
57 
58  const SwFrame* GetSwFrame() const { return mpFrame; }
59  const SdrObject* GetDrawObject() const { return mpDrawObj; }
60  vcl::Window* GetWindow() const { return mpWindow; }
61 
62  const SwFrame* GetParent( const bool bInPagePreview ) const;
63 
64  bool IsAccessible( bool bPagePreview ) const;
65  bool IsBoundAsChar() const;
66 
67  bool IsVisibleChildrenOnly() const;
68  SwRect GetBox( const SwAccessibleMap& rAccMap ) const;
69  SwRect GetBounds( const SwAccessibleMap& rAccMap ) const;
70 
73  bool AlwaysIncludeAsChild() const;
74 
75  private:
76  const SwFrame* mpFrame;
79 
80  void Init( const SdrObject* pDrawObj );
81  void Init( const SwFrame* pFrame );
82  void Init( vcl::Window* pWindow );
83 };
84 
85 } } // eof of namespace sw::access
86 
87 #endif
88 
89 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class of the Writer layout elements.
Definition: frame.hxx:295
SwAccessibleChild & operator=(SwAccessibleChild const &)=default
const SdrObject * mpDrawObj
Definition: accfrmobj.hxx:77
VclPtr< vcl::Window > mpWindow
Definition: accfrmobj.hxx:78
SwRect GetBounds(const SwAccessibleMap &rAccMap) const
Definition: accfrmobj.cxx:273
Dialog to specify the properties of date form field.
Definition: accfrmobj.cxx:38
Of course Writer needs its own rectangles.
Definition: swrect.hxx:34
const SdrObject * GetDrawObject() const
Definition: accfrmobj.hxx:59
bool operator==(const SwAccessibleChild &r) const
Definition: accfrmobj.cxx:188
bool IsVisibleChildrenOnly() const
Definition: accfrmobj.cxx:202
const SwFrame * GetSwFrame() const
Definition: accfrmobj.hxx:58
void Init(const SdrObject *pDrawObj)
Definition: accfrmobj.cxx:98
const SwFrame * GetParent(const bool bInPagePreview) const
Definition: accfrmobj.cxx:311
bool AlwaysIncludeAsChild() const
indicating, if accessible child is included even, if the corresponding object is not visible...
Definition: accfrmobj.cxx:299
bool IsAccessible(bool bPagePreview) const
Definition: accfrmobj.cxx:122
vcl::Window * GetWindow() const
Definition: accfrmobj.hxx:60
SwRect GetBox(const SwAccessibleMap &rAccMap) const
Definition: accfrmobj.cxx:222