summaryrefslogtreecommitdiffstats
path: root/accessibility
Commit message (Collapse)AuthorAgeFilesLines
* remove unnecessary use of void in function declarationsNoel Grandin2015-04-1526-94/+94
| | | | | | | | | | | | | | | | ie. void f(void); becomes void f(); I used the following command to make the changes: git grep -lP '\(\s*void\s*\)' -- *.cxx \ | xargs perl -pi -w -e 's/(\w+)\s*\(\s*void\s*\)/$1\(\)/g;' and ran it for both .cxx and .hxx files. Change-Id: I314a1b56e9c14d10726e32841736b0ad5eef8ddd
* loplugin:redundantcast: redundant const_cast followed by implicit upcastStephan Bergmann2015-04-131-1/+1
| | | | Change-Id: I58297ba336d96358eb0683684bbd763870ef56cb
* loplugin:staticmethodsNoel Grandin2015-04-132-3/+3
| | | | Change-Id: I33a8ca28b0c3bf1c31758d93238e74927bebde9c
* loplugin:staticmethodsNoel Grandin2015-04-092-2/+2
| | | | Change-Id: I715374b531da2850434b2436633b6042ecb9ebe0
* Resolves: tdf#82998 no object:active descendant changed emittedCaolán McNamara2015-04-031-40/+16
| | | | | | | | | | | | | | | | | for listboxes in WB_DROPDOWN mode which means the dropdown exists, but when the drop down is not activated. I think it's plausible that there was confusion around "b_IsDropDownList" and that the meaning taken by the author was the the dropdown is active if b_IsDropDownList is set, so renamed that to bHasDropDownList and take the old "b_IsDropDownList" path when "b_IsDropDownList && ..IsInDropDown()" Folded the then both equal code paths of the LISTBOX code together. No idea if there should be an additional equivalent AccessibleEventId::SELECTION_CHANGED for LISTBOXES like COMBOBOX instead of AccessibleEventId::ACTIVE_DESCENDANT_CHANGED in the dropdown not active case. Change-Id: I6db3ec21b392b7bf1b488235464202bb326f2535
* Related: tdf#82998 rearrange, no logic changeCaolán McNamara2015-04-031-34/+41
| | | | Change-Id: I1d3a6a552bd535622009b43e0633a357b1a919e6
* Related: tdf#82998 assume VALUE_CHANGED makes sense only for windowsCaolán McNamara2015-04-031-1/+5
| | | | | | | | | | jdiggs: I believe [VALUE_CHANGED] is expected for Windows' accessibility APIs. However for ATK/AT-SPI2, value-change events are expected only for the sorts of things which implement AtkValue (scrollbars, progressbars, sliders, spinbuttons, etc.) Combo boxes, lists, and the like should not be emitting this event. Change-Id: I9dcab7fb4004a24f88915f904eb508dfee2d4ae5
* Related: tdf#82998 don't emit an Indeterminate state change for boxesCaolán McNamara2015-04-031-14/+2
| | | | | | | | | Emitting object:state-changed:indeterminate is appropriate for things like tri-state checkboxes when the state is neither fully checked nor fully unchecked. ... jdiggs think that this event doesn't make sense in this instance for any platform's accessibility API Change-Id: Id8288522a825ad7ff61524ad4f225a79c015bb8f
* Clean up C-style casts from pointers to voidStephan Bergmann2015-03-283-4/+4
| | | | Change-Id: Ifab61517e0b2e721b85a3e2cc7d927198f1690c4
* tdf#88230: cleanup solar mutex yieldingPranav Kant2015-03-207-21/+16
| | | | | | | Use SolarMutexReleaser, instead. Change-Id: I276459c42b688813ea168d6fc80466a07a5ecba4 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* create new 'enum class' SotClipboardFormatId to unify typesNoel Grandin2015-03-181-1/+1
| | | | | | | | | | | | of which there are several. There are some issues here I am unsure of - the SW and SC and CHART2 modules essentially ignore the enum values and assign their own ids Perhaps I should change them to use the common values and create new enum values where necessary? - the sc/qa/ and sq/qa/ and starmath/qa/ code was doing some dodgy stuff. I translated the code to pass down the stuff numeric values to the underlying code, but perhaps further fixing is necessary? Change-Id: Ic06d723e404481e3f1bca67c43b70321b764d923
* V801: Decreased performanceCaolán McNamara2015-03-092-3/+3
| | | | Change-Id: Iba139ede7bd72e23c0b7a28a8a4ff38ea816725a
* Avoid unnecessary bad downcasts to ToolBoxStephan Bergmann2015-02-241-6/+6
| | | | Change-Id: I239aee06ce543b6f7c213d845313ca51b3a5502d
* Typo: aditional->additionalJulien Nabet2015-02-221-1/+1
| | | | Change-Id: I7db230949a97da28c60101d8cce1e30fbc08535c
* boost::foo_ptr->std::foo_ptrCaolán McNamara2015-02-1611-173/+169
| | | | Change-Id: I9219619b538b6530a89f5932ac51eb3b62eb396a
* loplugin:deletedspecialStephan Bergmann2015-02-077-24/+16
| | | | Change-Id: I39285a4eb7f205cc89cd2aa4e48ccbfc9ccfd83e
* callcatcher: remove some unused methodsCaolán McNamara2015-02-022-29/+0
| | | | Change-Id: Id3ca991e9ede13512a39865496429aabb7e71088
* callcatcher: large newly detected unused methods post de-virtualizationCaolán McNamara2015-01-296-66/+0
| | | | | | | | | | | | | | | | | | i.e lots now able to be detected after... commit b44cbb26efe1d0b0950b1e1613e131b506dc3876 Author: Noel Grandin <noel@peralex.com> Date: Tue Jan 20 12:38:10 2015 +0200 new loplugin: change virtual methods to non-virtual Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I605e2fa56f7186c3d3a764f3cd30f5cf7f881f9d
* tdf#88702 ACCESSIBILITY Toggle buttons state not reliably updatedNiklas Johansson2015-01-271-4/+3
| | | | | | | | | | | We need to adapt the accessibility code to handle VCLEVENT_TOOLBOX_ITEMUPDATED, since it is now sent from vcl/source/window/toolbox2.cxx. I have tested the patch successfully on Windows and Fedora. Change-Id: Ia4328d3c34547cc28ce9a3946f90223442ee84e3 Reviewed-on: https://gerrit.libreoffice.org/14190 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* new loplugin: change virtual methods to non-virtualNoel Grandin2015-01-2615-21/+21
| | | | | | | | | | Where we can prove that the virtual method is never overriden. In the case of pure-virtual methods, we remove the method entirely. Sometimes this leads to entire methods and fields being eliminated. Change-Id: I138ef81c95f115dbd8c023a83cfc7e9d5d6d14ae
* Accessibility: Expose keyboard short-cuts of menu entriesNiklas Johansson2015-01-071-0/+4
| | | | | | | | | | | | | | | | | | | On Windows the keyboard short-cuts of menu items like "Open Ctrl+O" is not exposed to accessibility tools on Windows. On Mac and Linux it is. If I understand Microsoft's notes correctly, it is expected that the short-cut gets appended to the accessibleName. This is what Acrobat Reader, Internet Explorer, Firefox is doing. And with this patch LibreOffice as well. For info from Microsoft on the matter see: http://msdn.microsoft.com/en-us/library/windows/desktop/dd318482%28v=vs.85%29.aspx Change-Id: I4ed7c4c45998063bb50744b44c792351070489d7 Reviewed-on: https://gerrit.libreoffice.org/13516 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
* fdo#84938: replace BUTTONTYPE_ constants with 'enum class'Noel Grandin2015-01-061-4/+4
| | | | Change-Id: I54f9019297913683605b5aea9f79b3defc1dcc13
* boost::unordered_map->std::unordered_mapCaolán McNamara2015-01-022-2/+0
| | | | | | you can get debug stl this way Change-Id: Ia70a3e7c7c452390e8bee34975d296c9318e4a19
* boost::unordered_map -> c++11 std::unordered_mapCaolán McNamara2014-12-271-2/+2
| | | | Change-Id: I28438000c2b0a8e6ce4f5640f861f572c0cb83c8
* reduce scope of local variablesMichael Weghorn2014-12-081-3/+2
| | | | | | | | | | This eliminates some of the warnings from Cppcheck report of 2014-11-29. Change-Id: Id5bf885de12a6de262d2cca9fa71627ac67f50d9 Reviewed-on: https://gerrit.libreoffice.org/13330 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* fdo#86117 a11y: Exception when closing popup from ToolBox w/o separatorMaxim Monastirsky2014-11-301-1/+7
| | | | | | | | | | | | | | | | | | | For some reason PopupWindowControllerImpl::WindowEventListener is getting the VCLEVENT_WINDOW_HIDE event twice, and while processing the second one the ToolBox no longer has an active down item, which results in a IndexOutOfBoundsException in VCLXAccessibleToolBox::getAccessibleChild, because ToolBox::GetItemPos(0) correctly returns TOOLBOX_ITEM_NOTFOUND. But when a ToolBox has at least one separator, ToolBox::GetItemPos(0) "detects" its position as the current down item, and no exception is thrown. Probably it just hides the bug, because it seems to me that getting the hide event twice is the real bug here. Change-Id: If018350dd91cd959c0c8f7d6859474f95fb8cd1e Reviewed-on: https://gerrit.libreoffice.org/13173 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Maxim Monastirsky <momonasmon@gmail.com>
* fdo#86023 - O[U]String needs a 'clear' methodBrij Mohan Lal Srivastava2014-11-146-8/+8
| | | | | | | Added clear() method to OString and OUString class, Updated appropriate call-sites. Change-Id: I0ba97fa6dc7af3e31b605953089a4e8e9c3e61ac Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* fdo#84938: replace TOOLBOXITEM_ constants with enumNoel Grandin2014-11-051-4/+4
| | | | | | | Change-Id: I08c4a456f9e80f70719ca8c3ad5c0f0d2d8282f6 Reviewed-on: https://gerrit.libreoffice.org/12258 Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
* fdo#38835 strip out OUString globalsNoel Grandin2014-11-053-8/+6
| | | | | | | they are largely unnecessary these days, since our OUString infrastructure gained optimised handling for static char constants. Change-Id: I07f73484f82d0582252cb4324d4107c998432c37
* fdo#84938: replace MIB_ constants with enumNoel Grandin2014-11-011-2/+2
| | | | | | | Change-Id: I58c1b4c9e4c4b3751b233d2fe10b9c953b945c4a Reviewed-on: https://gerrit.libreoffice.org/12179 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* fdo#84938: replace MENUITEM constants with enumNoel Grandin2014-10-231-1/+1
| | | | Change-Id: I7b0085af3b13bd6e1a50bf1e0e986d1524b52d7b
* fdo#84938: replace TIB_ constants with enumNoel Grandin2014-10-201-5/+5
| | | | | | | Change-Id: I435ce2331fb49e7ce9fe97bdfddfaef706759a84 Reviewed-on: https://gerrit.libreoffice.org/12023 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* convert SV_BMP_ constants to enumNoel Grandin2014-10-181-4/+4
| | | | | | | Change-Id: I46cb7f649fa44d8967e0e7da03583157d2706f05 Reviewed-on: https://gerrit.libreoffice.org/12018 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
* More -Werror,-Wunused-private-fieldStephan Bergmann2014-10-151-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ...detected with a modified trunk Clang with > Index: lib/Sema/SemaDeclCXX.cpp > =================================================================== > --- lib/Sema/SemaDeclCXX.cpp (revision 219190) > +++ lib/Sema/SemaDeclCXX.cpp (working copy) > @@ -1917,9 +1917,10 @@ > const Type *T = FD.getType()->getBaseElementTypeUnsafe(); > // FIXME: Destruction of ObjC lifetime types has side-effects. > if (const CXXRecordDecl *RD = T->getAsCXXRecordDecl()) > - return !RD->isCompleteDefinition() || > - !RD->hasTrivialDefaultConstructor() || > - !RD->hasTrivialDestructor(); > + return !RD->hasAttr<WarnUnusedAttr>() && > + (!RD->isCompleteDefinition() || > + !RD->hasTrivialDefaultConstructor() || > + !RD->hasTrivialDestructor()); > return false; > } > > @@ -3517,9 +3518,11 @@ > bool addFieldInitializer(CXXCtorInitializer *Init) { > AllToInit.push_back(Init); > > +#if 0 > // Check whether this initializer makes the field "used". > if (Init->getInit()->HasSideEffects(S.Context)) > S.UnusedPrivateFields.remove(Init->getAnyMember()); > +#endif > > return false; > } to warn about members of SAL_WARN_UNUSED-annotated class types, and warn about initializations with side effects (cf. <http://lists.cs.uiuc.edu/pipermail/cfe-dev/2014-October/039602.html> "-Wunused-private-field distracted by side effects"). Change-Id: I3f3181c4eb8180ca28e1fa3dffc9dbe1002c6628
* coverity#1242517 Arguments in wrong order (gold ?)Caolán McNamara2014-10-082-2/+2
| | | | | | Looks like they are backwards to me Change-Id: I20f38050172c1671a81d6ab7de80123ad1703528
* coverity#1242449 Identical code for different branchesCaolán McNamara2014-10-031-4/+1
| | | | Change-Id: I0cffc9df6d971393ae874060a8c306e12966370c
* loplugin: cstylecastNoel Grandin2014-10-028-31/+31
| | | | Change-Id: Ib36c0f4f8afa0bcaafa0836182e90a9f1d8aff75
* loplugin: cstylecastNoel Grandin2014-09-309-20/+20
| | | | | Change-Id: Ie5cbad7ee18b0ecbca5df97808431be577449c32 Signed-off-by: Stephan Bergmann <sbergman@redhat.com>
* fdo#82577: Handle WindowNoel Grandin2014-09-2337-68/+68
| | | | | | | Put the VCL Window class in the vcl namespace. Avoids clash with the X11 Window typedef. Change-Id: Ib1beb7ab4ad75562a42aeb252732a073d25eff1a
* fdo#82577: Handle FontNoel Grandin2014-09-1810-11/+11
| | | | | | | Put the VCL Font class in the vcl namespace. Avoids clash with the X11 Font typedef. Change-Id: I1a84f7cad8b31697b9860a3418f7dff794ff6537
* accessibility: sal_False/True -> false/trueStephan Bergmann2014-09-1521-41/+41
| | | | Change-Id: I4ac9d6ce48217893246a82fde4546dad09c58bd0
* toolkit: sal_Bool -> boolStephan Bergmann2014-09-121-2/+2
| | | | Change-Id: I8819d408e8556bbf38605c2feef2fa87d8dd41c3
* SfxHint: convert home-grown RTTI to normal C++ RTTINoel Grandin2014-09-061-3/+3
| | | | | | | | | | Also note that I fixed a bug in SvxFontMenuControl::Notify where the if statement had the check the wrong way around. Change-Id: I611e8929c65818191e36bd80f2b985820ada4411 Reviewed-on: https://gerrit.libreoffice.org/11147 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* fdo#82577: Handle KeyCodeTor Lillqvist2014-08-234-5/+5
| | | | | | | Put the VCL KeyCode class in the vcl namespace. Avoids clash with the X11 KeyCode typedef. Change-Id: I624c9d937f7c5f5986d313b6c5f060bd8bb7e028
* coverity#1132662 Dereference after null checkCaolán McNamara2014-07-181-1/+1
| | | | Change-Id: Ifbaa05e70c8958d0289047efb75a13e0b8a13a4b
* use SimpleReferenceObject in svtools moduleNoel Grandin2014-07-081-24/+0
| | | | | | to replace hand-rolled version Change-Id: I7a1048ff1ea335c3934fe7e91a09489a4d7aeb96
* use SimpleReferenceObject in accessibilityNoel Grandin2014-07-081-0/+1
| | | | | | to replace hand-rolled version Change-Id: I9dd8d02024702972722b43f2654db91eb3da3794
* Notify screen readers when selection changes in listboxesNiklas Johansson2014-07-041-1/+6
| | | | | | | | | | | | When you change selections in listboxes without dropdown fuctionality an accessilble event needs to be sent, this does not happen today. An example of such listbox is the Suggestions in the Spelling and Grammar dialog. Change-Id: I6100c88ae5398d8bf3f511aee7b35e88fbf151f5 Reviewed-on: https://gerrit.libreoffice.org/10087 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* fix some more indent and strip ::rtl::Caolán McNamara2014-07-021-7/+7
| | | | Change-Id: I8a4f220e6e07babbb2fa8f8dcab524ba90e62986
* Related: #i124856# guard against crashJürgen Schmidt2014-07-021-1/+1
| | | | | | | | | | | | Patch By: hanya Review By: jsc (cherry picked from commit efe87c0d84e5f76034378d48d0d1fc2025a37645) Conflicts: accessibility/source/standard/vclxaccessiblebox.cxx Change-Id: I24fd4278406dacea33230cc1bf1528e3c5aaedf2