diff options
author | Oliver Bolte <obo@openoffice.org> | 2009-02-27 05:38:42 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2009-02-27 05:38:42 +0000 |
commit | 590a804e7815574a066c658f1f05875a6d0f448f (patch) | |
tree | 2ba33087772154dc21e47c7537422eb45c2e078f /sw/source/ui/wrtsh | |
parent | fbb1370148b2eebc0d6819d77c67f7a2d30b924a (diff) |
CWS-TOOLING: integrate CWS sw31a11y01
2009-01-09 11:36:08 +0100 ab r266069 : #i97891# NSAccessibilityRoleDescription
2009-01-07 11:01:19 +0100 od r265955 : #i88069# emit accessibility event TEXT_ATTRIBUTE_CHANGED on change of paragraph attributes
2009-01-06 11:50:21 +0100 od r265904 : #i81824# methods <SwWrtShell::_FwdPara()> and <SwWrtShell::_BwdPara()>
- avoid unnecessary cursor movements due avoid unnecessary
accessibility events.
Diffstat (limited to 'sw/source/ui/wrtsh')
-rw-r--r-- | sw/source/ui/wrtsh/wrtsh4.cxx | 43 |
1 files changed, 30 insertions, 13 deletions
diff --git a/sw/source/ui/wrtsh/wrtsh4.cxx b/sw/source/ui/wrtsh/wrtsh4.cxx index b7203ca765db..0a7c17118abd 100644 --- a/sw/source/ui/wrtsh/wrtsh4.cxx +++ b/sw/source/ui/wrtsh/wrtsh4.cxx @@ -250,12 +250,16 @@ BOOL SwWrtShell::_FwdPara() { Push(); ClearMark(); - if(!SwCrsrShell::Right(1,CRSR_SKIP_CHARS)) - { - Pop(FALSE); - return 0; - } - SwCrsrShell::Left(1,CRSR_SKIP_CHARS); + // --> OD 2009-01-06 #i81824# + // going right and back again left not needed and causes too much + // accessibility events due to the cursor movements. +// if(!SwCrsrShell::Right(1,CRSR_SKIP_CHARS)) +// { +// Pop(FALSE); +// return 0; +// } +// SwCrsrShell::Left(1,CRSR_SKIP_CHARS); + // <-- BOOL bRet = SwCrsrShell::MovePara(fnParaNext, fnParaStart); ClearMark(); @@ -268,15 +272,28 @@ BOOL SwWrtShell::_BwdPara() { Push(); ClearMark(); - if(!SwCrsrShell::Left(1,CRSR_SKIP_CHARS)) + // --> OD 2009-01-06 #i81824# + // going left and back again right not needed and causes too much + // accessibility events due to the cursor movements. +// if(!SwCrsrShell::Left(1,CRSR_SKIP_CHARS)) +// { +// Pop(FALSE); +// return 0; +// } +// SwCrsrShell::Right(1,CRSR_SKIP_CHARS); + // <-- + // --> OD 2009-01-06 #i81824# + // going to start of paragraph only needed, if move to previous paragraph + // does not happen. Otherwise, useless accessibility events are triggered + // due to cursor movements. +// if(!IsSttOfPara()) +// SttPara(); + BOOL bRet = SwCrsrShell::MovePara(fnParaPrev, fnParaStart); + if ( !bRet && !IsSttOfPara() ) { - Pop(FALSE); - return 0; - } - SwCrsrShell::Right(1,CRSR_SKIP_CHARS); - if(!IsSttOfPara()) SttPara(); - BOOL bRet = SwCrsrShell::MovePara(fnParaPrev, fnParaStart); + } + // <-- ClearMark(); Combine(); |