office-gobmx/include/editeng
Justin Luth cf18038c66 tdf#81894 sc spelling: eliminate separate(inaccurate) check
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>
2022-02-25 15:22:32 +01:00
..
AccessibleComponentBase.hxx
AccessibleContextBase.hxx Recheck include/[s-x]* with IWYU 2021-12-24 01:44:48 +01:00
AccessibleEditableTextPara.hxx new comphelper::WeakImplComponentHelper 2021-12-24 08:21:00 +01:00
AccessibleParaManager.hxx loplugin:moveparam in editeng 2021-10-10 19:45:23 +02:00
AccessibleSelectionBase.hxx
AccessibleStaticTextBase.hxx
acorrcfg.hxx
adjustitem.hxx
autokernitem.hxx
blinkitem.hxx
borderline.hxx tdf#48622 Add new border line width defaults 2021-11-04 09:07:54 +01:00
boxitem.hxx
brushitem.hxx
bulletitem.hxx
charhiddenitem.hxx
charreliefitem.hxx
charrotateitem.hxx
charscaleitem.hxx
cmapitem.hxx
colritem.hxx sd theme: add doc model for shape fill color 2022-02-17 08:23:15 +01:00
contouritem.hxx
crossedoutitem.hxx
CustomPropertyField.hxx
editdata.hxx
editeng.hxx tdf#145671 Don't open URL twice in cell edit mode 2021-12-06 14:11:44 +01:00
editengdllapi.h
editerr.hxx
editids.hrc use more TypedWhichId 2022-02-24 19:31:38 +01:00
editobj.hxx
editrids.hrc
editstat.hxx
editund2.hxx Recheck include/[e-r]* with IWYU 2021-12-20 10:06:34 +01:00
editview.hxx tdf#81894 sc spelling: eliminate separate(inaccurate) check 2022-02-25 15:22:32 +01:00
edtdlg.hxx
eedata.hxx
eeitem.hxx add more TypedWhichId 2022-02-10 09:47:46 +01:00
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 PPTX import: implement native handling of a color's luminance offset 2021-11-24 09:33:30 +01:00
misspellrange.hxx
nhypitem.hxx
numdef.hxx
numitem.hxx
opaqitem.hxx
optitems.hxx
orphitem.hxx
outliner.hxx tdf#133713 sd: bullets and numbering should enable it 2021-12-21 08:30:40 +01:00
outlobj.hxx
overflowingtxt.hxx Recheck include/[e-r]* with IWYU 2021-12-20 10:06:34 +01:00
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 cui, editeng, sw: WrdStt -> WordStart 2021-11-23 08:09:48 +01:00
svxenum.hxx
svxfont.hxx tools::Long->sal_Int32 in the DX arrays 2021-10-30 15:43:23 +02:00
svxrtf.hxx
swafopt.hxx
Trie.hxx
tstpitem.hxx
twolinesitem.hxx
txtrange.hxx Recheck include/[e-r]* with IWYU 2021-12-20 10:06:34 +01:00
udlnitem.hxx
ulspitem.hxx
unoedhlp.hxx
unoedprx.hxx
unoedsrc.hxx
unofdesc.hxx
unofield.hxx
UnoForbiddenCharsTable.hxx
unofored.hxx
unoforou.hxx Recheck include/[e-r]* with IWYU 2021-12-20 10:06:34 +01:00
unoipset.hxx Recheck include/[e-r]* with IWYU 2021-12-20 10:06:34 +01:00
unolingu.hxx
unonames.hxx Recheck include/[e-r]* with IWYU 2021-12-20 10:06:34 +01:00
unonrule.hxx
unoprnms.hxx sd theme: add UNO API for shape fill color 2022-02-24 08:43:12 +01:00
unotext.hxx osl::Mutex->std::mutex in SvxUnoTextContent 2021-12-20 18:12:48 +01:00
unoviwou.hxx
urlfieldhelper.hxx
wghtitem.hxx
widwitem.hxx
writingmodeitem.hxx
wrlmitem.hxx
xmlcnitm.hxx Recheck include/[e-r]* with IWYU 2021-12-20 10:06:34 +01:00