diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-06-06 14:20:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-06-06 14:52:49 +0100 |
commit | 516ed22b3f51982df7dbfa875ce8056e167da091 (patch) | |
tree | 1289a749232332299b693d006392a78dc1c1e8ca /editeng | |
parent | Slowly, but surely going on compiling for mingw64 (diff) | |
download | core-516ed22b3f51982df7dbfa875ce8056e167da091.tar.gz core-516ed22b3f51982df7dbfa875ce8056e167da091.zip |
Remove remnants of help agent
it was removed with 66714f1888eaccef4eb5341971278ae7dfafa16b
but gobs of code (and UI) still existed to collect the help id
and give it to the missing help agent with various UI visible
options and buttons to control the help agent which isn't
there
Change-Id: I625da27b3046d481e43f4d35d32cc7063a1c6291
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/source/misc/svxacorr.cxx | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/editeng/source/misc/svxacorr.cxx b/editeng/source/misc/svxacorr.cxx index e9228891d7a5..1f4bc8f9aeef 100644 --- a/editeng/source/misc/svxacorr.cxx +++ b/editeng/source/misc/svxacorr.cxx @@ -1412,69 +1412,6 @@ sal_uLong SvxAutoCorrect::AutoCorrect( SvxAutoCorrDoc& rDoc, const String& rTxt, } while( false ); - if( nRet ) - { - const char* aHelpIds[] = - { - HID_AUTOCORR_HELP_WORD, - HID_AUTOCORR_HELP_SENT, - HID_AUTOCORR_HELP_SENTWORD, - HID_AUTOCORR_HELP_ACORWORD, - "", - HID_AUTOCORR_HELP_ACORSENTWORD, - "", - HID_AUTOCORR_HELP_CHGTOENEMDASH, - HID_AUTOCORR_HELP_WORDENEMDASH, - HID_AUTOCORR_HELP_SENTENEMDASH, - HID_AUTOCORR_HELP_SENTWORDENEMDASH, - HID_AUTOCORR_HELP_ACORWORDENEMDASH, - "", - HID_AUTOCORR_HELP_ACORSENTWORDENEMDASH, - "", - HID_AUTOCORR_HELP_CHGQUOTES, - HID_AUTOCORR_HELP_CHGSGLQUOTES, - HID_AUTOCORR_HELP_SETINETATTR, - HID_AUTOCORR_HELP_INGNOREDOUBLESPACE, - HID_AUTOCORR_HELP_CHGWEIGHTUNDERL, - HID_AUTOCORR_HELP_CHGFRACTIONSYMBOL, - HID_AUTOCORR_HELP_CHGORDINALNUMBER - }; - - sal_uLong nHelpId = 0; - if( nRet & ( Autocorrect|CptlSttSntnc|CptlSttWrd|ChgToEnEmDash ) ) - { - // from 0 - 15 - if( nRet & ChgToEnEmDash ) - nHelpId += 8; - if( nRet & Autocorrect ) - nHelpId += 4; - if( nRet & CptlSttSntnc ) - nHelpId += 2; - if( nRet & CptlSttWrd ) - nHelpId += 1; - } - else - { - if( nRet & ChgQuotes) nHelpId = 16; - else if( nRet & ChgSglQuotes) nHelpId = 17; - else if( nRet & SetINetAttr) nHelpId = 18; - else if( nRet & IgnoreDoubleSpace) nHelpId = 19; - else if( nRet & ChgWeightUnderl) nHelpId = 20; - else if( nRet & AddNonBrkSpace) nHelpId = 21; - else if( nRet & ChgOrdinalNumber) nHelpId = 22; - } - - if( nHelpId ) - { - Help* pHelp = Application::GetHelp(); - if (pHelp) - { - nHelpId -= 1; - Application::GetHelp()->OpenHelpAgent( aHelpIds[nHelpId] ); - } - } - } - return nRet; } |