cf18038c66
ExecuteSpellPopup is quite accurate at identifying whether the spelling at PosPixel is a spelling error or not. If it is not a misspelled word, then it just silently returns. If we make this a bDone flag, then it will just move on to the normal right-click dialog. There are a few additional scenarios that need to be handled (mainly in terms of showing the edit-mode menu instead of the full format menu, and also not always returning the correct row/col when in edit mode). I will do them in separate patches so that each edge case can be clearly seen and handled. They all rely on this patch being applied first. This is the base patch. Too many things simply don't work with the interim check, so I removed it. (Part of the problem is that EditView kicks on and off, and then a new CompleteOnlineSpelling needs to be run before IsWrongSpelledWordAtPos can return a meaningful answer.) This patch specifically fixes the problem of not opening SpellPopup on a misspelled word in a wrapped-cell. Steps to reproduce: 1.) Open LOv4304.ods from bug 81894 comment 6. 2.) Right-click on "spellng" in cell B12. Before the patch, a full format popup was displayed (not in edit mode) because IsSpellErrorAtPos returned false, when it should have been true. With this patch, spelling suggestions are provided. As an example of an edge case, also notice: 3.) double-click on cell B4 (to enter edit mode) 4.) right click on "spellng" which appears to be in D4 Before the patch, nothing happened at all, but with the patch at least the fall-back menu is displayed. (EditView never switches out of cell B, so SpellPopup is looking at wrong information.) Change-Id: I91d413debc58de832dc7413034618e9e2bae3dd5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130297 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com> Reviewed-by: Eike Rathke <erack@redhat.com> |
||
---|---|---|
.. | ||
AccessibleComponentBase.hxx | ||
AccessibleContextBase.hxx | ||
AccessibleEditableTextPara.hxx | ||
AccessibleParaManager.hxx | ||
AccessibleSelectionBase.hxx | ||
AccessibleStaticTextBase.hxx | ||
acorrcfg.hxx | ||
adjustitem.hxx | ||
autokernitem.hxx | ||
blinkitem.hxx | ||
borderline.hxx | ||
boxitem.hxx | ||
brushitem.hxx | ||
bulletitem.hxx | ||
charhiddenitem.hxx | ||
charreliefitem.hxx | ||
charrotateitem.hxx | ||
charscaleitem.hxx | ||
cmapitem.hxx | ||
colritem.hxx | ||
contouritem.hxx | ||
crossedoutitem.hxx | ||
CustomPropertyField.hxx | ||
editdata.hxx | ||
editeng.hxx | ||
editengdllapi.h | ||
editerr.hxx | ||
editids.hrc | ||
editobj.hxx | ||
editrids.hrc | ||
editstat.hxx | ||
editund2.hxx | ||
editview.hxx | ||
edtdlg.hxx | ||
eedata.hxx | ||
eeitem.hxx | ||
eerdll.hxx | ||
emphasismarkitem.hxx | ||
escapementitem.hxx | ||
fhgtitem.hxx | ||
fieldupdater.hxx | ||
flditem.hxx | ||
flstitem.hxx | ||
fontitem.hxx | ||
forbiddencharacterstable.hxx | ||
forbiddenruleitem.hxx | ||
formatbreakitem.hxx | ||
frmdir.hxx | ||
frmdiritem.hxx | ||
hangulhanja.hxx | ||
hngpnctitem.hxx | ||
hyphenzoneitem.hxx | ||
itemtype.hxx | ||
justifyitem.hxx | ||
keepitem.hxx | ||
kernitem.hxx | ||
langitem.hxx | ||
legacyitem.hxx | ||
lineitem.hxx | ||
lrspitem.hxx | ||
lspcitem.hxx | ||
macros.hxx | ||
measfld.hxx | ||
memberids.h | ||
misspellrange.hxx | ||
nhypitem.hxx | ||
numdef.hxx | ||
numitem.hxx | ||
opaqitem.hxx | ||
optitems.hxx | ||
orphitem.hxx | ||
outliner.hxx | ||
outlobj.hxx | ||
overflowingtxt.hxx | ||
paperinf.hxx | ||
paragraphdata.hxx | ||
paravertalignitem.hxx | ||
pbinitem.hxx | ||
pgrditem.hxx | ||
pmdlitem.hxx | ||
postitem.hxx | ||
prntitem.hxx | ||
protitem.hxx | ||
rsiditem.hxx | ||
scriptspaceitem.hxx | ||
scripttypeitem.hxx | ||
section.hxx | ||
shaditem.hxx | ||
shdditem.hxx | ||
sizeitem.hxx | ||
SpellPortions.hxx | ||
spltitem.hxx | ||
splwrap.hxx | ||
svxacorr.hxx | ||
svxenum.hxx | ||
svxfont.hxx | ||
svxrtf.hxx | ||
swafopt.hxx | ||
Trie.hxx | ||
tstpitem.hxx | ||
twolinesitem.hxx | ||
txtrange.hxx | ||
udlnitem.hxx | ||
ulspitem.hxx | ||
unoedhlp.hxx | ||
unoedprx.hxx | ||
unoedsrc.hxx | ||
unofdesc.hxx | ||
unofield.hxx | ||
UnoForbiddenCharsTable.hxx | ||
unofored.hxx | ||
unoforou.hxx | ||
unoipset.hxx | ||
unolingu.hxx | ||
unonames.hxx | ||
unonrule.hxx | ||
unoprnms.hxx | ||
unotext.hxx | ||
unoviwou.hxx | ||
urlfieldhelper.hxx | ||
wghtitem.hxx | ||
widwitem.hxx | ||
writingmodeitem.hxx | ||
wrlmitem.hxx | ||
xmlcnitm.hxx |