/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * This file incorporates work covered by the following license notice: * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed * with this work for additional information regarding copyright * ownership. The ASF licenses this file to you under the Apache * License, Version 2.0 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ #pragma once #include class OAccessibleMenuItemComponent : public OAccessibleMenuBaseComponent { friend class OAccessibleMenuBaseComponent; protected: VclPtr m_pParent; sal_uInt16 m_nItemPos; OUString m_sAccessibleName; OUString m_sItemText; virtual bool IsEnabled() override; virtual bool IsVisible() override; void Select(); void DeSelect(); virtual void Click() override; void SetItemPos( sal_uInt16 nItemPos ); void SetAccessibleName( const OUString& sAccessibleName ); OUString GetAccessibleName(); void SetItemText( const OUString& sItemText ); OUString GetItemText(); virtual bool IsMenuHideDisabledEntries() override; virtual void FillAccessibleStateSet( sal_Int64& rStateSet ) override; // OCommonAccessibleComponent virtual css::awt::Rectangle implGetBounds( ) override; // XComponent virtual void SAL_CALL disposing() override; public: OAccessibleMenuItemComponent( Menu* pParent, sal_uInt16 nItemPos, Menu* pMenu ); virtual ~OAccessibleMenuItemComponent() override; // XAccessibleContext virtual sal_Int64 SAL_CALL getAccessibleChildCount( ) override; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleChild( sal_Int64 i ) override; virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleParent( ) override; virtual sal_Int64 SAL_CALL getAccessibleIndexInParent( ) override; virtual sal_Int16 SAL_CALL getAccessibleRole( ) override; virtual OUString SAL_CALL getAccessibleDescription( ) override; virtual OUString SAL_CALL getAccessibleName( ) override; virtual css::uno::Reference< css::accessibility::XAccessibleRelationSet > SAL_CALL getAccessibleRelationSet( ) override; virtual css::lang::Locale SAL_CALL getLocale( ) override; // XAccessibleComponent virtual css::uno::Reference< css::accessibility::XAccessible > SAL_CALL getAccessibleAtPoint( const css::awt::Point& aPoint ) override; virtual void SAL_CALL grabFocus( ) override; virtual sal_Int32 SAL_CALL getForeground( ) override; virtual sal_Int32 SAL_CALL getBackground( ) override; // XAccessibleExtendedComponent virtual css::uno::Reference< css::awt::XFont > SAL_CALL getFont( ) override; virtual OUString SAL_CALL getTitledBorderText( ) override; virtual OUString SAL_CALL getToolTipText( ) override; }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ on value='distro/collabora/cp-4.4'>distro/collabora/cp-4.4 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2023-12-30cid#1545421 COPY_INSTEAD_OF_MOVECaolán McNamara
2023-12-03cid#1546453 COPY_INSTEAD_OF_MOVECaolán McNamara
2022-09-17cid#1500499 Resource leakCaolán McNamara
2022-06-13clang-tidy modernize-pass-by-value in connectivityNoel Grandin
2022-04-11use more string_viewNoel Grandin
2022-04-11loplugin:stringview add check for getToken().toInt32Noel Grandin
2020-12-11Adapt the remaining OUString functions to std string_viewStephan Bergmann
2020-07-18compact namespace: connectivityNoel Grandin
2019-12-18sal_Char->char in connectivityNoel Grandin
2019-11-15make some classes module-privateNoel Grandin
2019-10-09Resolve FIXME Decimal Separator should be OUString (connectivity/dbaccess/svx)Julien Nabet
2019-07-03Fix typoAndrea Gelmini
2019-03-12tdf#42949 Fix IWYU warnings in include/connectivity/*Gabor Kelemen
2018-07-27connectivity: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)Stephan Bergmann
2018-02-05loplugin:useuniqueptr in OSQLParseNodeNoel Grandin
2017-07-19loplugin:constparams in connectivityNoel Grandin
2017-02-17remove unused enumerators from SQLNodeTypeNoel Grandin
2017-02-06Add missing #includesStephan Bergmann
2016-11-15loplugin:constantparamNoel Grandin
2016-02-25convert SQLNodeType to scoped enumNoel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-10-20com::sun::star->css in include/connectivityNoel Grandin
2015-08-05loplugin:unusedmethodsNoel Grandin
2015-04-30Bin some pointless comments and reduce some vertical whitespaceTor Lillqvist
2015-04-23loplugin:staticmethodsNoel Grandin
2015-02-18boost->stdCaolán McNamara
2015-01-28That is well worth an assertLionel Elie Mamane
2014-12-12connectivity: Use appropriate OUString functions on string constantsStephan Bergmann
2014-11-17sal: clean up public headers with include-what-you-useMichael Stahl
2014-09-04fdo#55703 automagically use IS NULL fo 'null' in query design.Norbert Thiebaud
2014-06-25remove spurious com::sun::star::chaosMichael Stahl
2014-06-04compareToAscii -> equalsAsciiNoel Grandin