Hi Laurent, Thomas and all!

I'm interested in this problem, because we are developing CoGrOO, a Portuguese 
Grammar Checker (nowadays, CoGrOO is running very well; a interested company is 
testing it and it'll be launched at March or April, probably).
CoGrOO runs with a GUI like Naber's checker GUI, for now.
Thus, all of we have the same problem. I researched in OO2 source tree 
something related with wavy line:
Look at a call to the method that draws this wavy line (from 
sw/source/core/txtnode/fntcache.cxx):

rInf.GetOut().DrawWaveLine( aPos, aEnd, nWave );

What do you think about we try to develop a API only to draw a colored wavy 
line under any word (or set of words)? It'll be necessary to patch OO code, but 
I don't see alternatives.

Below there are results of my research in OO source tree:

Where DrawWaveLine appears:
                                             
sw/source/core/txtnode/fntcache.cxx
svx/source/editeng/impedit3.cxx
vcl/source/gdi/outdev3.cxx
vcl/inc/outdev.hxx
vcl/source/gdi/pdfwriter_impl.cxx
vcl/source/gdi/pdfwriter_impl.hxx
binfilter/bf_svx/source/editeng/svx_impedit3.cxx
binfilter/bf_sw/source/core/txtnode/sw_fntcache.cxx
vcl/util/defs/wntmsci10
rvpapi/com/sun/star/portal/client/XRmOutputDevice.idl


Where SwDrawTextInfo appears:

binfilter/bf_sw/source/core/inc/drawfont.hxx
sw/source/core/inc/drawfont.hxx
sw/source/core/txtnode/fntcache.cxx
binfilter/bf_sw/source/core/inc/fntcache.hxx
sw/source/core/inc/fntcache.hxx
sw/source/core/txtnode/fntcap.cxx
sw/source/core/text/frmcrsr.cxx
sw/source/core/text/frmpaint.cxx
sw/source/core/text/inftxt.cxx
sw/source/core/text/itratr.cxx
sw/source/core/text/itrcrsr.cxx
sw/source/core/text/porfld.cxx
binfilter/bf_sw/source/core/txtnode/sw_fntcache.cxx
binfilter/bf_sw/source/core/txtnode/sw_fntcap.cxx
sw/source/core/txtnode/swfont.cxx
binfilter/bf_sw/source/core/inc/swfont.hxx
sw/source/core/inc/swfont.hxx
binfilter/bf_sw/source/core/text/sw_frmcrsr.cxx
binfilter/bf_sw/source/core/text/sw_frmpaint.cxx
binfilter/bf_sw/source/core/text/sw_inftxt.cxx
binfilter/bf_sw/source/core/text/sw_itratr.cxx
binfilter/bf_sw/source/core/text/sw_itrcrsr.cxx
binfilter/bf_sw/source/core/text/sw_porfld.cxx
binfilter/bf_sw/source/core/txtnode/sw_swfont.cxx
binfilter/bf_sw/source/core/txtnode/sw_txtedt.cxx
binfilter/bf_sw/source/core/text/sw_txtfly.cxx
sw/source/core/text/txtfly.cxx
binfilter/bf_sw/source/core/text/txtfly.hxx
sw/source/core/text/txtfly.hxx


Where SpellChecker and related appears:

helpcontent2/source/text/swriter/guide/auto_spellcheck.xhp
qadevOOo/objdsc/lnn/com.sun.star.lingu2.SpellChecker.csv
svx/source/editeng/edtspell.cxx
binfilter/inc/bf_svx/edtspell.hxx
svx/inc/edtspell.hxx
sd/source/ui/func/fuspell.cxx
binfilter/bf_sd/source/ui/inc/fuspell.hxx
sd/source/ui/inc/fuspell.hxx
qadevOOo/tests/basic/ifc/linguistic2/XSpellChecker/linguistic2_XSpellChecker.xba
binfilter/bf_linguistic/source/linguistic_spelldsp.cxx
binfilter/bf_linguistic/source/linguistic_spelldta.cxx
qadevOOo/tests/basic/mod/lnn/SpellChecker/lnn_SpellChecker.xba
lingucomponent/source/spellcheck/myspell
lingucomponent/source/spellcheck/myspell/myspell.cxx
lingucomponent/source/spellcheck/myspell/myspell.hxx
binfilter/bf_svx/source/options/optspell.hrc
svx/inc/optspell.hrc
binfilter/inc/bf_svx/optspell.hxx
svx/source/options/optspell.src
odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java
odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java
binfilter/bf_sc/source/ui/view/sc_spelleng.cxx
binfilter/bf_sd/source/ui/func/sd_fuspell.cxx
sw/source/ui/lingu/sdrspell.cxx
binfilter/bf_sw/source/ui/lingu/sdrspell.hxx
sw/source/ui/inc/sdrspell.hxx
lingucomponent/source/spellcheck/spell
svx/source/dialog/SpellAttrib.cxx
svx/source/dialog/SpellAttrib.hxx
lingucomponent/source/spellcheck
helpcontent2/source/text/swriter/guide/spellcheck_dialog.xhp
qadevOOo/tests/basic/mod/lnn/SpellChecker
offapi/com/sun/star/linguistic2/SpellChecker.idl
qadevOOo/tests/java/mod/_lnn/SpellChecker.java
sd/source/ui/dlg/SpellDialogChildWindow.cxx
svx/source/dialog/SpellDialogChildWindow.cxx
sd/source/ui/inc/SpellDialogChildWindow.hxx
svx/inc/SpellDialogChildWindow.hxx
sc/source/ui/view/spelldialog.cxx
svx/source/dialog/SpellDialog.cxx
svx/source/dialog/SpellDialog.hrc
sc/source/ui/inc/spelldialog.hxx
svx/source/inc/SpellDialog.hxx
svx/source/dialog/SpellDialog.src
linguistic/source/spelldsp.cxx
binfilter/bf_linguistic/source/spelldsp.hxx
linguistic/source/spelldsp.hxx
lingucomponent/source/spellcheck/spell/spelldta.cxx
linguistic/source/spelldta.cxx
binfilter/inc/bf_linguistic/spelldta.hxx
lingucomponent/source/spellcheck/spell/spelldta.hxx
linguistic/inc/spelldta.hxx
sc/source/ui/view/spelleng.cxx
binfilter/bf_sc/source/ui/inc/spelleng.hxx
sc/source/ui/inc/spelleng.hxx
offapi/com/sun/star/linguistic2/SpellFailure.idl
lingucomponent/source/spellcheck/spell/spell.map
sc/source/ui/inc/spellparam.hxx
svx/inc/SpellPortions.hxx
lingucomponent/source/spellcheck/spell/sspellimp.cxx
linguistic/workben/sspellimp.cxx
lingucomponent/source/spellcheck/spell/sspellimp.hxx
linguistic/workben/sspellimp.hxx
binfilter/bf_svx/source/editeng/svx_edtspell.cxx
binfilter/bf_svx/source/options/svx_optspell.cxx
binfilter/bf_svx/source/options/svx_optspell.src
binfilter/bf_sw/source/ui/lingu/sw_sdrspell.cxx
sw/source/ui/dialog/SwSpellDialogChildWindow.cxx
sw/source/ui/inc/SwSpellDialogChildWindow.hxx
offapi/com/sun/star/linguistic2/XSpellAlternatives.idl
odk/examples/DevelopersGuide/OfficeDev/Linguistic/XSpellAlternatives_impl.java
qadevOOo/tests/basic/ifc/linguistic2/XSpellChecker
offapi/com/sun/star/linguistic2/XSpellChecker1.idl
offapi/com/sun/star/linguistic2/XSpellChecker.idl
qadevOOo/tests/java/ifc/linguistic2/_XSpellChecker.java


Regads,

Carlos Menezes


-----Original Message-----
From: Laurent Godard [mailto:[EMAIL PROTECTED]
Sent: Wed 15/2/2006 08:57
To: [email protected]
Subject: Re: [lingu-dev] Negative spell checker and thesaurus
 
Hi thomas,

thanks for your response

> But if you like to to do sth sentence based (like proof-reading or
> grammar checking) we are currently at a loss. :-(
> We are still missing a real solution here.
>

yes !

> Anything that can be done about this for the time being must get along
> with means of existing UNO API only. And with that at least the problem
> with the underlining can not be solved completly to ones satisfaction.
> Everything will be just a workaround until we have such functionality
> available in the API.

yes and that's why i suggested to create an API for this
disply non printing formating (eg. waves,but could be stickers, lines in 
marge aso)

lets start simple for that need and only deal with waves

again : where is the code doing this ? should i contact the graphics 
project or Juergen at api project ?
I'm not skilled in c++ but can try to help though

> All the other things: iterating through text, identifying word 
> boundaries, selecting text and replacing it should be fine with
> the current API.
> 

yes, it works

Laurent

-- 
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


<<winmail.dat>>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to