LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SwSpellPopup Class Reference

#include <olmenu.hxx>

Collaboration diagram for SwSpellPopup:
[legend]

Public Member Functions

 SwSpellPopup (SwWrtShell *pWrtSh, const css::uno::Reference< css::linguistic2::XSpellAlternatives > &xAlt, const OUString &rParaText)
 
 SwSpellPopup (SwWrtShell *pWrtSh, const css::linguistic2::ProofreadingResult &rResult, sal_Int32 nErrorInResult, const css::uno::Sequence< OUString > &rSuggestions, const OUString &rParaText)
 
 ~SwSpellPopup ()
 
PopupMenuGetMenu ()
 
void Execute (const tools::Rectangle &rPopupPos, vcl::Window *pWin)
 
void Execute (sal_uInt16 nId)
 

Private Member Functions

void checkRedline ()
 Checks if any of the redline menu items should be hidden. More...
 

Static Private Member Functions

static void fillLangPopupMenu (PopupMenu *pPopupMenu, sal_uInt16 nLangStart, const css::uno::Sequence< OUString > &aSeq, SwWrtShell *pWrtSh, std::map< sal_Int16, OUString > &rLangTable)
 

Private Attributes

VclBuilder m_aBuilder
 
VclPtr< PopupMenum_xPopupMenu
 
sal_uInt16 const m_nIgnoreWordId
 
sal_uInt16 const m_nAddMenuId
 
sal_uInt16 const m_nAddId
 
sal_uInt16 const m_nSpellDialogId
 
sal_uInt16 const m_nCorrectMenuId
 
sal_uInt16 const m_nCorrectDialogId
 
sal_uInt16 const m_nLangSelectionMenuId
 
sal_uInt16 const m_nLangParaMenuId
 
sal_uInt16 const m_nRedlineAcceptId
 
sal_uInt16 const m_nRedlineRejectId
 
sal_uInt16 const m_nRedlineNextId
 
sal_uInt16 const m_nRedlinePrevId
 
SwWrtShellm_pSh
 
css::uno::Sequence< css::uno::Reference< css::linguistic2::XDictionary > > m_aDics
 
css::uno::Reference< css::linguistic2::XSpellAlternatives > m_xSpellAlt
 
css::linguistic2::ProofreadingResult m_xGrammarResult
 
sal_Int32 m_nGrammarError
 
css::uno::Sequence< OUString > m_aSuggestions
 
OUString m_sExplanationLink
 
LanguageType m_nCheckedLanguage
 
std::map< sal_Int16, OUString > m_aLangTable_Text
 
std::map< sal_Int16, OUString > m_aLangTable_Paragraph
 
OUString m_aDicNameSingle
 
bool const m_bGrammarResults
 

Detailed Description

Definition at line 76 of file olmenu.hxx.

Constructor & Destructor Documentation

SwSpellPopup::SwSpellPopup ( SwWrtShell pWrtSh,
const css::uno::Reference< css::linguistic2::XSpellAlternatives > &  xAlt,
const OUString &  rParaText 
)
SwSpellPopup::SwSpellPopup ( SwWrtShell pWrtSh,
const css::linguistic2::ProofreadingResult &  rResult,
sal_Int32  nErrorInResult,
const css::uno::Sequence< OUString > &  rSuggestions,
const OUString &  rParaText 
)
SwSpellPopup::~SwSpellPopup ( )

Definition at line 576 of file olmenu.cxx.

Member Function Documentation

void SwSpellPopup::checkRedline ( )
private
void SwSpellPopup::Execute ( const tools::Rectangle rPopupPos,
vcl::Window pWin 
)

Definition at line 616 of file olmenu.cxx.

References PopupMenu::Execute(), OutputDevice::LogicToPixel(), and m_xPopupMenu.

Referenced by Execute().

void SwSpellPopup::Execute ( sal_uInt16  nId)

Definition at line 622 of file olmenu.cxx.

References linguistic::AddEntryToDic(), SwRewriter::AddRule(), comphelper::anyToString(), Application::CreateMessageDialog(), CRSR_SKIP_CHARS, SwCursorShell::DeleteCurrent, SwWrtShell::DelLeft(), SwCursorShell::EndAction(), SwEditShell::EndUndo(), SwWrtShell::EnterStdMode(), SfxDispatcher::Execute(), Execute(), SwView::Execute(), FN_REDLINE_ACCEPT_DIRECT, FN_REDLINE_NEXT_CHANGE, FN_REDLINE_PREV_CHANGE, FN_REDLINE_REJECT_DIRECT, FN_SPELL_GRAMMAR_DIALOG, SvxAutoCorrCfg::Get(), SvxAutoCorrCfg::GetAutoCorrect(), cppu::getCaughtException(), SwCursorShell::GetCursor(), SwCursorShell::GetCursorDescr(), LinguMgr::GetDictionaryList(), SfxViewFrame::GetDispatcher(), SfxViewShell::GetFrameWeld(), LinguMgr::GetIgnoreAllList(), Menu::GetItemText(), SfxShell::GetPool(), Menu::GetPopupMenu(), comphelper::getProcessComponentContext(), SwWrtShell::GetView(), SfxViewShell::GetViewFrame(), SwEditShell::IgnoreGrammarErrorAt(), SwWrtShell::Insert(), SwWrtShell::IsInsMode(), SwWrtShell::Left(), m_aDicNameSingle, m_aLangTable_Paragraph, m_aLangTable_Text, m_aSuggestions, m_bGrammarResults, m_nAddId, m_nAddMenuId, m_nCorrectDialogId, m_nGrammarError, m_nIgnoreWordId, m_nRedlineAcceptId, m_nRedlineNextId, m_nRedlinePrevId, m_nRedlineRejectId, m_nSpellDialogId, m_pSh, m_sExplanationLink, m_xGrammarResult, m_xPopupMenu, m_xSpellAlt, MN_AUTOCORR_END, MN_AUTOCORR_START, MN_DICTIONARIES_END, MN_DICTIONARIES_START, MN_EXPLANATION_LINK, MN_IGNORE_SELECTION, MN_SET_LANGUAGE_PARAGRAPH_END, MN_SET_LANGUAGE_PARAGRAPH_START, MN_SET_LANGUAGE_SELECTION_END, MN_SET_LANGUAGE_SELECTION_START, MN_SET_PARA_MORE, MN_SET_PARA_NONE, MN_SET_PARA_RESET, MN_SET_SELECTION_MORE, MN_SET_SELECTION_NONE, MN_SET_SELECTION_RESET, MN_SHORT_COMMENT, MN_SUGGESTION_END, MN_SUGGESTION_START, linguistic::NONE, SwWrtShell::Pop(), SwCursorShell::Push(), SvxAutoCorrect::PutText(), RES_CHRATR_CJK_LANGUAGE, RES_CHRATR_CTL_LANGUAGE, RES_CHRATR_LANGUAGE, SwLangHelper::ResetLanguages(), SwLangHelper::SelectCurrentPara(), SwWrtShell::SetInsMode(), SwLangHelper::SetLanguage(), SwLangHelper::SetLanguage_None(), SvtLinguConfig::SetProperty(), SwCursorShell::StartAction(), SwEditShell::StartUndo(), SvxDicError(), SvxPrepareAutoCorrect(), sw_CharDialog(), SwResId(), UI_REPLACE, UndoArg1, UndoArg2, UndoArg3, UPN_IS_GRAMMAR_INTERACTIVE, and USHRT_MAX.

void SwSpellPopup::fillLangPopupMenu ( PopupMenu pPopupMenu,
sal_uInt16  nLangStart,
const css::uno::Sequence< OUString > &  aSeq,
SwWrtShell pWrtSh,
std::map< sal_Int16, OUString > &  rLangTable 
)
staticprivate
PopupMenu& SwSpellPopup::GetMenu ( )
inline

Definition at line 130 of file olmenu.hxx.

References VclPtr< PopupMenu >::get().

Member Data Documentation

VclBuilder SwSpellPopup::m_aBuilder
private

Definition at line 78 of file olmenu.hxx.

OUString SwSpellPopup::m_aDicNameSingle
private

Definition at line 107 of file olmenu.hxx.

Referenced by Execute().

css::uno::Sequence< css::uno::Reference< css::linguistic2::XDictionary > > SwSpellPopup::m_aDics
private

Definition at line 93 of file olmenu.hxx.

std::map< sal_Int16, OUString > SwSpellPopup::m_aLangTable_Paragraph
private

Definition at line 105 of file olmenu.hxx.

Referenced by Execute().

std::map< sal_Int16, OUString > SwSpellPopup::m_aLangTable_Text
private

Definition at line 104 of file olmenu.hxx.

Referenced by Execute().

css::uno::Sequence< OUString > SwSpellPopup::m_aSuggestions
private

Definition at line 99 of file olmenu.hxx.

Referenced by Execute().

bool const SwSpellPopup::m_bGrammarResults
private

Definition at line 108 of file olmenu.hxx.

Referenced by Execute().

sal_uInt16 const SwSpellPopup::m_nAddId
private

Definition at line 82 of file olmenu.hxx.

Referenced by Execute().

sal_uInt16 const SwSpellPopup::m_nAddMenuId
private

Definition at line 81 of file olmenu.hxx.

Referenced by Execute().

LanguageType SwSpellPopup::m_nCheckedLanguage
private

Definition at line 102 of file olmenu.hxx.

sal_uInt16 const SwSpellPopup::m_nCorrectDialogId
private

Definition at line 85 of file olmenu.hxx.

Referenced by Execute().

sal_uInt16 const SwSpellPopup::m_nCorrectMenuId
private

Definition at line 84 of file olmenu.hxx.

sal_Int32 SwSpellPopup::m_nGrammarError
private

Definition at line 97 of file olmenu.hxx.

Referenced by Execute().

sal_uInt16 const SwSpellPopup::m_nIgnoreWordId
private

Definition at line 80 of file olmenu.hxx.

Referenced by Execute().

sal_uInt16 const SwSpellPopup::m_nLangParaMenuId
private

Definition at line 87 of file olmenu.hxx.

sal_uInt16 const SwSpellPopup::m_nLangSelectionMenuId
private

Definition at line 86 of file olmenu.hxx.

sal_uInt16 const SwSpellPopup::m_nRedlineAcceptId
private

Definition at line 88 of file olmenu.hxx.

Referenced by checkRedline(), and Execute().

sal_uInt16 const SwSpellPopup::m_nRedlineNextId
private

Definition at line 90 of file olmenu.hxx.

Referenced by checkRedline(), and Execute().

sal_uInt16 const SwSpellPopup::m_nRedlinePrevId
private

Definition at line 91 of file olmenu.hxx.

Referenced by checkRedline(), and Execute().

sal_uInt16 const SwSpellPopup::m_nRedlineRejectId
private

Definition at line 89 of file olmenu.hxx.

Referenced by checkRedline(), and Execute().

sal_uInt16 const SwSpellPopup::m_nSpellDialogId
private

Definition at line 83 of file olmenu.hxx.

Referenced by Execute().

SwWrtShell* SwSpellPopup::m_pSh
private

Definition at line 92 of file olmenu.hxx.

Referenced by checkRedline(), and Execute().

OUString SwSpellPopup::m_sExplanationLink
private

Definition at line 100 of file olmenu.hxx.

Referenced by Execute().

css::linguistic2::ProofreadingResult SwSpellPopup::m_xGrammarResult
private

Definition at line 96 of file olmenu.hxx.

Referenced by Execute().

VclPtr<PopupMenu> SwSpellPopup::m_xPopupMenu
private

Definition at line 79 of file olmenu.hxx.

Referenced by checkRedline(), and Execute().

css::uno::Reference< css::linguistic2::XSpellAlternatives > SwSpellPopup::m_xSpellAlt
private

Definition at line 94 of file olmenu.hxx.

Referenced by Execute().


The documentation for this class was generated from the following files: