21#include <com/sun/star/linguistic2/XDictionary.hpp>
22#include <com/sun/star/linguistic2/XSpellAlternatives.hpp>
23#include <com/sun/star/linguistic2/ProofreadingResult.hpp>
24#include <com/sun/star/uno/Sequence.h>
26#include <rtl/ustring.hxx>
37#define MN_IGNORE_SELECTION 201
38#define MN_SHORT_COMMENT 208
39#define MN_EXPLANATION_LINK 209
42#define MN_DICTIONARIES_START 300
43#define MN_DICTIONARIES_END (MN_DICTIONARIES_START + 99)
46#define MN_SUGGESTION_START 500
47#define MN_SUGGESTION_END (MN_SUGGESTION_START + MN_MAX_NUM_LANG)
50#define MN_AUTOCORR_START 700
51#define MN_AUTOCORR_END (MN_AUTOCORR_START + MN_MAX_NUM_LANG)
54#define MN_MAX_NUM_LANG 99
56#define MN_NONE_OFFSET (MN_MAX_NUM_LANG + 1)
57#define MN_RESET_OFFSET (MN_MAX_NUM_LANG + 2)
58#define MN_MORE_OFFSET (MN_MAX_NUM_LANG + 3)
61#define MN_SET_LANGUAGE_SELECTION_START 900
62#define MN_SET_LANGUAGE_SELECTION_END (MN_SET_LANGUAGE_SELECTION_START + MN_MAX_NUM_LANG)
63#define MN_SET_SELECTION_NONE (MN_SET_LANGUAGE_SELECTION_START + MN_NONE_OFFSET)
64#define MN_SET_SELECTION_RESET (MN_SET_LANGUAGE_SELECTION_START + MN_RESET_OFFSET)
65#define MN_SET_SELECTION_MORE (MN_SET_LANGUAGE_SELECTION_START + MN_MORE_OFFSET)
68#define MN_SET_LANGUAGE_PARAGRAPH_START 1100
69#define MN_SET_LANGUAGE_PARAGRAPH_END (MN_SET_LANGUAGE_PARAGRAPH_START + MN_MAX_NUM_LANG)
70#define MN_SET_PARA_NONE (MN_SET_LANGUAGE_PARAGRAPH_START + MN_NONE_OFFSET)
71#define MN_SET_PARA_RESET (MN_SET_LANGUAGE_PARAGRAPH_START + MN_RESET_OFFSET)
72#define MN_SET_PARA_MORE (MN_SET_LANGUAGE_PARAGRAPH_START + MN_MORE_OFFSET)
93 css::uno::Sequence< css::uno::Reference< css::linguistic2::XDictionary > >
m_aDics;
94 css::uno::Reference< css::linguistic2::XSpellAlternatives >
m_xSpellAlt;
106 static void fillLangPopupMenu(
PopupMenu *pPopupMenu, sal_uInt16 nLangStart,
107 const css::uno::Sequence< OUString >& aSeq,
SwWrtShell* pWrtSh,
108 std::map< sal_Int16, OUString > &rLangTable );
115 css::uno::Reference< css::linguistic2::XSpellAlternatives > xAlt,
116 const OUString & rParaText );
119 const css::linguistic2::ProofreadingResult &rResult,
120 sal_Int32 nErrorInResult,
121 const css::uno::Sequence< OUString > &rSuggestions,
122 const OUString & rParaText );
126 void InitItemCommands(
const css::uno::Sequence< OUString >& aSuggestions);
130 return *m_xPopupMenu;
136 void Execute( sal_uInt16 nId );
Used by the UI to modify the document model.