Kaydet (Commit) ba49d03a authored tarafından Caolán McNamara's avatar Caolán McNamara

we only need this image once, don't need to keep it

Change-Id: I4ab3fc515bb1484d00f3a690b9fe8ae9c9dca9fe
üst db9ef688
...@@ -56,8 +56,6 @@ class SW_DLLPUBLIC SwSpellPopup : public PopupMenu ...@@ -56,8 +56,6 @@ class SW_DLLPUBLIC SwSpellPopup : public PopupMenu
OUString m_aDicNameSingle; OUString m_aDicNameSingle;
bool m_bGrammarResults; // show grammar results? Or show spellcheck results? bool m_bGrammarResults; // show grammar results? Or show spellcheck results?
Image m_aInfo16;
static void fillLangPopupMenu( PopupMenu *pPopupMenu, sal_uInt16 nLangStart, static void fillLangPopupMenu( PopupMenu *pPopupMenu, sal_uInt16 nLangStart,
const css::uno::Sequence< OUString >& aSeq, SwWrtShell* pWrtSh, const css::uno::Sequence< OUString >& aSeq, SwWrtShell* pWrtSh,
std::map< sal_Int16, OUString > &rLangTable ); std::map< sal_Int16, OUString > &rLangTable );
......
...@@ -450,14 +450,13 @@ SwSpellPopup::SwSpellPopup( ...@@ -450,14 +450,13 @@ SwSpellPopup::SwSpellPopup(
const linguistic2::ProofreadingResult &rResult, const linguistic2::ProofreadingResult &rResult,
sal_Int32 nErrorInResult, sal_Int32 nErrorInResult,
const uno::Sequence< OUString > &rSuggestions, const uno::Sequence< OUString > &rSuggestions,
const OUString &rParaText ) : const OUString &rParaText )
PopupMenu( SW_RES(MN_SPELL_POPUP) ), : PopupMenu(SW_RES(MN_SPELL_POPUP))
m_pSh( pWrtSh ), , m_pSh(pWrtSh)
m_xGrammarResult( rResult ), , m_xGrammarResult(rResult)
m_aSuggestions( rSuggestions ), , m_aSuggestions(rSuggestions)
m_sExplanationLink( ), , m_sExplanationLink()
m_bGrammarResults( true ), , m_bGrammarResults(true)
m_aInfo16( SW_RES(IMG_INFO_16) )
{ {
m_nCheckedLanguage = LanguageTag::convertToLanguageType( rResult.aLocale ); m_nCheckedLanguage = LanguageTag::convertToLanguageType( rResult.aLocale );
m_nGrammarError = nErrorInResult; m_nGrammarError = nErrorInResult;
...@@ -468,7 +467,7 @@ m_aInfo16( SW_RES(IMG_INFO_16) ) ...@@ -468,7 +467,7 @@ m_aInfo16( SW_RES(IMG_INFO_16) )
InsertSeparator(OString(), nPos++); InsertSeparator(OString(), nPos++);
InsertItem(MN_SHORT_COMMENT, aMessageText, MenuItemBits::NOSELECT, OString(), nPos++); InsertItem(MN_SHORT_COMMENT, aMessageText, MenuItemBits::NOSELECT, OString(), nPos++);
if (bUseImagesInMenus) if (bUseImagesInMenus)
SetItemImage( MN_SHORT_COMMENT, m_aInfo16 ); SetItemImage(MN_SHORT_COMMENT, Image(SW_RES(IMG_INFO_16)));
// Add an item to show detailed infos if the FullCommentURL property is defined // Add an item to show detailed infos if the FullCommentURL property is defined
beans::PropertyValues aProperties = rResult.aErrors[ nErrorInResult ].aProperties; beans::PropertyValues aProperties = rResult.aErrors[ nErrorInResult ].aProperties;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment