cool#10610 Ensure the parent-child relations of comments.
[LibreOffice.git] / svtools / source / control / accessibletabbarpage.hxx
blob6a7198dff7370e80b025d8a647e4b4548d07c7e1
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 #pragma once
22 #include "accessibletabbarbase.hxx"
24 #include <com/sun/star/accessibility/XAccessible.hpp>
25 #include <com/sun/star/lang/XServiceInfo.hpp>
26 #include <cppuhelper/implbase.hxx>
28 namespace accessibility
34 class AccessibleTabBarPage final : public cppu::ImplInheritanceHelper<
35 AccessibleTabBarBase,
36 css::accessibility::XAccessible,
37 css::lang::XServiceInfo>
39 friend class AccessibleTabBarPageList;
41 private:
42 sal_uInt16 m_nPageId;
43 bool m_bShowing;
44 bool m_bSelected;
45 OUString m_sPageText;
47 css::uno::Reference< css::accessibility::XAccessible > m_xParent;
49 bool IsEnabled();
50 bool IsShowing() const;
51 bool IsSelected() const;
53 void SetShowing( bool bShowing );
54 void SetSelected( bool bSelected );
55 void SetPageText( const OUString& sPageText );
57 void FillAccessibleStateSet( sal_Int64& rStateSet );
59 // OCommonAccessibleComponent
60 virtual css::awt::Rectangle implGetBounds( ) override;
62 // XComponent
63 virtual void SAL_CALL disposing() override;
65 public:
66 AccessibleTabBarPage( TabBar* pTabBar, sal_uInt16 nPageId,
67 const css::uno::Reference< css::accessibility::XAccessible >& rxParent );
69 // XServiceInfo
70 virtual OUString SAL_CALL getImplementationName() override;
71 virtual sal_Bool SAL_CALL supportsService( const OUString& rServiceName ) override;
72 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
74 // XAccessible
75 virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override;
77 // XAccessibleContext
78 virtual sal_Int64 SAL_CALL getAccessibleChildCount( ) override;
79 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int64 i ) override;
80 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override;
81 virtual sal_Int64 SAL_CALL getAccessibleIndexInParent( ) override;
82 virtual sal_Int16 SAL_CALL getAccessibleRole( ) override;
83 virtual OUString SAL_CALL getAccessibleDescription( ) override;
84 virtual OUString SAL_CALL getAccessibleName( ) override;
85 virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override;
86 virtual sal_Int64 SAL_CALL getAccessibleStateSet( ) override;
87 virtual css::lang::Locale SAL_CALL getLocale( ) override;
89 // XAccessibleComponent
90 virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override;
91 virtual void SAL_CALL grabFocus( ) override;
92 virtual sal_Int32 SAL_CALL getForeground( ) override;
93 virtual sal_Int32 SAL_CALL getBackground( ) override;
95 // XAccessibleExtendedComponent
96 virtual OUString SAL_CALL getTitledBorderText( ) override;
97 virtual OUString SAL_CALL getToolTipText( ) override;
101 } // namespace accessibility
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */