diff options
author | Niklas Johansson <sleeping.pillow@gmail.com> | 2015-10-03 00:25:48 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-10 12:01:11 +0000 |
commit | e2ff5810f1578794aa2617e8d0b44d64642f8eca (patch) | |
tree | 2fdddecd6c79f2187eb002ea1b1be8d52d82b5d3 /sw | |
parent | db3fb670bfc485799b6010541d9316736948befc (diff) |
tdf#93139 Orca Screen Reader does not read bullet part 2
Since we now expose the bullet character to accessible text we should
not also expose the attributes, that will make NVDA read the bullet
twice. We can also remove some special cases for the fact that the bullet
earlier was not apart of the accessible text.
Change-Id: I5a8b84f92c32da7ffabdd5136655d88a2d149e75
Reviewed-on: https://gerrit.libreoffice.org/19106
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/access/accpara.cxx | 25 | ||||
-rw-r--r-- | sw/source/core/access/accportions.cxx | 9 |
2 files changed, 3 insertions, 31 deletions
diff --git a/sw/source/core/access/accpara.cxx b/sw/source/core/access/accpara.cxx index 7d0934c2001a..48225567d4c0 100644 --- a/sw/source/core/access/accpara.cxx +++ b/sw/source/core/access/accpara.cxx @@ -1683,14 +1683,6 @@ uno::Sequence<PropertyValue> SwAccessibleParagraph::getCharacterAttributes( pValues = aValues.getArray(); - const SwTextNode* pTextNode( GetTextNode() ); - PropertyValue& rValue = pValues[aValues.getLength() - 1 ]; - rValue.Name = "NumberingPrefix"; - OUString sNumBullet = pTextNode->GetNumString(); - rValue.Value <<= sNumBullet; - rValue.Handle = -1; - rValue.State = PropertyState_DIRECT_VALUE; - OUString strTypeName = GetFieldTypeNameAtIndex(nIndex); if (!strTypeName.isEmpty()) { @@ -2364,23 +2356,6 @@ void SwAccessibleParagraph::_correctValues( const sal_Int32 nIndex, continue; } - //number bullet - if (rValue.Name == UNO_NAME_NUMBERING_RULES) - { - if ( pTextNode->HasBullet() || pTextNode->HasNumber() ) - { - uno::Any aVal; - SwNumRule* pNumRule = pTextNode->GetNumRule(); - if (pNumRule) - { - uno::Reference< container::XIndexReplace > xNum = new SwXNumberingRules(*pNumRule); - aVal.setValue(&xNum, cppu::UnoType<container::XIndexReplace>::get()); - } - rValue.Value <<= aVal; - } - continue; - } - //footnote & endnote if (rValue.Name == UNO_NAME_CHAR_ESCAPEMENT) { diff --git a/sw/source/core/access/accportions.cxx b/sw/source/core/access/accportions.cxx index 1fb823cf96cd..ec6eb87ae886 100644 --- a/sw/source/core/access/accportions.cxx +++ b/sw/source/core/access/accportions.cxx @@ -148,13 +148,9 @@ void SwAccessiblePortionData::Special( switch( nType ) { case POR_POSTITS: - sDisplay = OUString(sal_Unicode(0xfffc)); - break; case POR_FLYCNT: sDisplay = OUString(sal_Unicode(0xfffc)); break; - case POR_GRFNUM: - break; case POR_FLD: case POR_HIDDEN: case POR_COMBINED: @@ -180,10 +176,11 @@ void SwAccessiblePortionData::Special( break; case POR_NUMBER: case POR_BULLET: - { sDisplay = rText + " "; break; - } + // There should probably be some special treatment to graphical bullets + case POR_GRFNUM: + break; // #i111768# - apply patch from kstribley: // Include the control characters. case POR_CONTROLCHAR: |