Lines Matching refs:pWrtShell

179     SwWrtShell* pWrtShell = GetWrtShell_Impl();  in ~SwSpellDialogChildWindow()  local
180 if(!m_pSpellState->m_bInitialCall && pWrtShell) in ~SwSpellDialogChildWindow()
181 pWrtShell->SpellEnd(); in ~SwSpellDialogChildWindow()
202 SwWrtShell* pWrtShell = GetWrtShell_Impl(); in GetNextWrongSentence() local
203 if(pWrtShell) in GetNextWrongSentence()
209 pWrtShell->MoveContinuationPosToEndOfCheckedSentence(); in GetNextWrongSentence()
212 ShellModes eSelMode = pWrtShell->GetView().GetShellMode(); in GetNextWrongSentence()
227 if(!MakeTextSelection_Impl(*pWrtShell, eSelMode)) in GetNextWrongSentence()
232 if(0 != (pWrtShell->GetSelectionType()& nsSelectionType::SEL_DRW_TXT)) in GetNextWrongSentence()
240 if(!pWrtShell->HasSelection()) in GetNextWrongSentence()
241 pWrtShell->GoStartSentence(); in GetNextWrongSentence()
244 pWrtShell->ExpandToSentenceBorders(); in GetNextWrongSentence()
248 bOtherText = !(pWrtShell->GetFrmType(0,sal_True) & FRMTYPE_BODY); in GetNextWrongSentence()
252 m_pSpellState->pOtherCursor = new SwPaM(*pWrtShell->GetCrsr()->GetPoint()); in GetNextWrongSentence()
254 pWrtShell->SpellStart( DOCPOS_OTHERSTART, DOCPOS_OTHEREND, DOCPOS_CURR, NULL ); in GetNextWrongSentence()
258 SwPaM* pCrsr = pWrtShell->GetCrsr(); in GetNextWrongSentence()
260 if(!pWrtShell->IsStartOfDoc()) in GetNextWrongSentence()
264 *pWrtShell->GetDoc(), in GetNextWrongSentence()
267 pWrtShell->SpellStart( DOCPOS_START, DOCPOS_END, DOCPOS_CURR, NULL ); in GetNextWrongSentence()
272 SdrView* pSdrView = pWrtShell->GetDrawView(); in GetNextWrongSentence()
301 if(!SpellDrawText_Impl(*pWrtShell, aRet)) in GetNextWrongSentence()
303 if(!FindNextDrawTextError_Impl(*pWrtShell) || !SpellDrawText_Impl(*pWrtShell, aRet)) in GetNextWrongSentence()
305 lcl_LeaveDrawText(*pWrtShell); in GetNextWrongSentence()
310 if(!m_pSpellState->m_bOtherSpelled && pWrtShell->HasOtherCnt()) in GetNextWrongSentence()
312pWrtShell->SpellStart(DOCPOS_OTHERSTART, DOCPOS_OTHEREND, DOCPOS_OTHERSTART, NULL ); in GetNextWrongSentence()
313 if(!pWrtShell->SpellSentence(aRet, m_bIsGrammarCheckingOn)) in GetNextWrongSentence()
315 pWrtShell->SpellEnd(); in GetNextWrongSentence()
324 pWrtShell->SpellStart(DOCPOS_START, DOCPOS_END, DOCPOS_START, NULL ); in GetNextWrongSentence()
325 if(!pWrtShell->SpellSentence(aRet, m_bIsGrammarCheckingOn)) in GetNextWrongSentence()
328 pWrtShell->SpellEnd(); in GetNextWrongSentence()
338 if(!pWrtShell->SpellSentence(aRet, m_bIsGrammarCheckingOn)) in GetNextWrongSentence()
345 bOtherText = !(pWrtShell->GetFrmType(0,sal_True) & FRMTYPE_BODY); in GetNextWrongSentence()
349 pWrtShell->SetSelection(*m_pSpellState->pOtherCursor); in GetNextWrongSentence()
350 pWrtShell->SpellEnd(); in GetNextWrongSentence()
353pWrtShell->SpellStart(DOCPOS_OTHERSTART, DOCPOS_CURR, DOCPOS_OTHERSTART, NULL ); in GetNextWrongSentence()
354 pWrtShell->SpellSentence(aRet, m_bIsGrammarCheckingOn); in GetNextWrongSentence()
359 pWrtShell->SpellEnd(); in GetNextWrongSentence()
366pWrtShell->SpellStart(DOCPOS_START, DOCPOS_END, DOCPOS_START, NULL ); in GetNextWrongSentence()
367 if(!pWrtShell->SpellSentence(aRet, m_bIsGrammarCheckingOn)) in GetNextWrongSentence()
370 pWrtShell->SpellEnd(); in GetNextWrongSentence()
377 if(!m_pSpellState->m_bOtherSpelled && pWrtShell->HasOtherCnt()) in GetNextWrongSentence()
379pWrtShell->SpellStart(DOCPOS_OTHERSTART, DOCPOS_OTHEREND, DOCPOS_OTHERSTART, NULL ); in GetNextWrongSentence()
380 if(!pWrtShell->SpellSentence(aRet, m_bIsGrammarCheckingOn)) in GetNextWrongSentence()
382 pWrtShell->SpellEnd(); in GetNextWrongSentence()
394 … !FindNextDrawTextError_Impl(*pWrtShell) || !SpellDrawText_Impl(*pWrtShell, aRet))) in GetNextWrongSentence()
396 lcl_LeaveDrawText(*pWrtShell); in GetNextWrongSentence()
417 SwUnoInternalPaM aPam(*pWrtShell->GetDoc()); in GetNextWrongSentence()
421 pWrtShell->SetSelection(aPam); in GetNextWrongSentence()
422 pWrtShell->SpellStart(DOCPOS_START, DOCPOS_CURR, DOCPOS_START); in GetNextWrongSentence()
423 if(!pWrtShell->SpellSentence(aRet, m_bIsGrammarCheckingOn)) in GetNextWrongSentence()
424 pWrtShell->SpellEnd(); in GetNextWrongSentence()
461 SwWrtShell* pWrtShell = GetWrtShell_Impl(); in ApplyChangedSentence() local
463 if(pWrtShell && !m_pSpellState->m_bInitialCall) in ApplyChangedSentence()
465 ShellModes eSelMode = pWrtShell->GetView().GetShellMode(); in ApplyChangedSentence()
476 bRecheck |= pWrtShell->HasLastSentenceGotGrammarChecked(); in ApplyChangedSentence()
479 pWrtShell->ApplyChangedSentence(rChanged, bRecheck); in ApplyChangedSentence()
482 SdrView* pDrView = pWrtShell->GetDrawView(); in ApplyChangedSentence()
530 SwWrtShell* pWrtShell = GetWrtShell_Impl(); in SetGrammarChecking() local
531 if(pWrtShell) in SetGrammarChecking()
533 ShellModes eSelMode = pWrtShell->GetView().GetShellMode(); in SetGrammarChecking()
541 pWrtShell->PutSpellingToSentenceStart(); in SetGrammarChecking()
544 SdrView* pSdrView = pWrtShell->GetDrawView(); in SetGrammarChecking()
562 SwWrtShell* pWrtShell = GetWrtShell_Impl(); in GetFocus() local
563 if(pWrtShell && !m_pSpellState->m_bInitialCall) in GetFocus()
565 ShellModes eSelMode = pWrtShell->GetView().GetShellMode(); in GetFocus()
581 SwPaM* pCursor = pWrtShell->GetCrsr(); in GetFocus()
591 SdrView* pSdrView = pWrtShell->GetDrawView(); in GetFocus()
624 SwWrtShell* pWrtShell = GetWrtShell_Impl(); in LoseFocus() local
625 if(pWrtShell) in LoseFocus()
627 m_pSpellState->m_eSelMode = pWrtShell->GetView().GetShellMode(); in LoseFocus()
640 SwPaM* pCursor = pWrtShell->GetCrsr(); in LoseFocus()
650 SdrView* pSdrView = pWrtShell->GetDrawView(); in LoseFocus()
672 SwWrtShell* pWrtShell = GetWrtShell_Impl(); in InvalidateSpellDialog() local
673 if(!m_pSpellState->m_bInitialCall && pWrtShell) in InvalidateSpellDialog()
674 pWrtShell->SpellEnd(0, false); in InvalidateSpellDialog()