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

Resolves: fdo#39793 open the 'Font' tab after Set Language ... More ...

Change-Id: I23c80a462ef473defe5536f9090167ae734553b7
üst 993f4921
...@@ -848,7 +848,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) ...@@ -848,7 +848,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
else if (nId == MN_SET_SELECTION_MORE) else if (nId == MN_SET_SELECTION_MORE)
{ {
//Open Format/Character Dialog //Open Format/Character Dialog
sw_CharDialog( *m_pSh, true, nId, 0, 0 ); sw_CharDialog( *m_pSh, true, SID_ATTR_CHAR_FONT, 0, 0 );
} }
else if (MN_SET_LANGUAGE_PARAGRAPH_START <= nId && nId <= MN_SET_LANGUAGE_PARAGRAPH_END) else if (MN_SET_LANGUAGE_PARAGRAPH_START <= nId && nId <= MN_SET_LANGUAGE_PARAGRAPH_END)
{ {
...@@ -880,7 +880,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId ) ...@@ -880,7 +880,7 @@ void SwSpellPopup::Execute( sal_uInt16 nId )
m_pSh->Push(); // save cursor m_pSh->Push(); // save cursor
SwLangHelper::SelectCurrentPara( *m_pSh ); SwLangHelper::SelectCurrentPara( *m_pSh );
//Open Format/Character Dialog //Open Format/Character Dialog
sw_CharDialog( *m_pSh, true, nId, 0, 0 ); sw_CharDialog( *m_pSh, true, SID_ATTR_CHAR_FONT, 0, 0 );
m_pSh->Pop( sal_False ); // restore cursor m_pSh->Pop( sal_False ); // restore cursor
} }
} }
......
...@@ -181,6 +181,10 @@ void sw_CharDialog( SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot,const ...@@ -181,6 +181,10 @@ void sw_CharDialog( SwWrtShell &rWrtSh, bool bUseDialog, sal_uInt16 nSlot,const
{ {
pDlg->SetCurPageId("fonteffect"); pDlg->SetCurPageId("fonteffect");
} }
else if (pDlg && nSlot == SID_ATTR_CHAR_FONT)
{
pDlg->SetCurPageId("font");
}
const SfxItemSet* pSet = NULL; const SfxItemSet* pSet = NULL;
if ( !bUseDialog ) if ( !bUseDialog )
......
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