/* -*- 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 . */ #include #include #include "a11ywrapperradiobutton.h" #include "a11ytextwrapper.h" #include "a11yvaluewrapper.h" // Wrapper for AXRadioButton role @implementation AquaA11yWrapperRadioButton : AquaA11yWrapper -(id)valueAttribute { if ( [ self accessibleValue ] ) { return [ AquaA11yValueWrapper valueAttributeForElement: self ]; } return [ NSNumber numberWithInt: 0 ]; } -(BOOL)accessibilityIsAttributeSettable:(NSString *)attribute { // Related: tdf#148453 Acquire solar mutex during native accessibility calls SolarMutexGuard aGuard; if ( [ attribute isEqualToString: NSAccessibilityValueAttribute ] ) { return NO; } return [ super accessibilityIsAttributeSettable: attribute ]; } -(NSArray *)accessibilityAttributeNames { // Related: tdf#148453 Acquire solar mutex during native accessibility calls SolarMutexGuard aGuard; // Default Attributes NSMutableArray * attributeNames = [ NSMutableArray arrayWithArray: [ super accessibilityAttributeNames ] ]; // Special Attributes and removing unwanted attributes depending on role [ attributeNames removeObjectsInArray: [ AquaA11yTextWrapper specialAttributeNames ] ]; [ attributeNames addObject: NSAccessibilityMinValueAttribute ]; [ attributeNames addObject: NSAccessibilityMaxValueAttribute ]; [ attributeNames addObject: NSAccessibilityValueAttribute ]; return attributeNames; } @end /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /option> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2016-07-20Replace fallthrough comments with new SAL_FALLTHROUGH macroStephan Bergmann
2016-07-20Fix typosAndrea Gelmini
2016-07-12Remove excess newlinesChris Sherlock
2015-11-17use unique_ptr for pImpl in ucbhelper/Noel Grandin
2015-11-15use initialiser for Sequence<OUString>Noel Grandin
2015-11-11com::sun::star->css in ucbhelper/Noel Grandin
2015-11-10loplugin:nullptr (automatic rewrite)Stephan Bergmann
2015-11-06loplugin:stringconstant: elide explicit ctor usage (automatic rewrite)Stephan Bergmann
2015-11-05use uno::Reference::set method instead of assignmentNoel Grandin
2015-11-01no need to use OUString constructor in call to createInstanceNoel Grandin
2015-10-12Replace "SAL_OVERRIDE" with "override" in LIBO_INTERNAL_ONLY codeStephan Bergmann
2015-10-05loplugin:stringconstantStephan Bergmann
2015-10-05tdf#82744: fix WebDAV lock/unlock behaviour - part 3Giuseppe Castagno
2015-09-30Fix typosAndrea Gelmini
2015-09-15Resolves: tdf#88206 replace cppu::WeakImplHelper* etc.Takeshi Abe
2015-08-31loplugin:stringconstant: OUStringBuffer: appendAscii -> appendStephan Bergmann
2015-08-18Remove newly unused ucbhelper/fileidentifierconverter.hxxStephan Bergmann
2015-08-18Remove obsolete getLocalFileURLStephan Bergmann
2015-08-11loplugin: defaultparamsNoel Grandin
2015-08-03inline some use-once typedefsNoel Grandin
2015-07-16tdf#84190 : when auth fails, don't remember passwords for cmisSzymon Kłos
2015-06-26loplugin:stringconstant: handle OUString+=OUString(literal)Stephan Bergmann
2015-05-26cppcheck: noExplicitConstructorCaolán McNamara
2015-04-22Various #include <sal/log.hxx> fixupsStephan Bergmann
2015-04-15remove unnecessary use of void in function declarationsNoel Grandin
2015-04-01Add support for cppu::UnoType<void>Stephan Bergmann
2015-04-01Replace remaining getCppuType et al with cppu::UnoTypeStephan Bergmann
2015-03-09V801: Decreased performanceCaolán McNamara
2015-01-02boost::unordered_map->std::unordered_mapCaolán McNamara