Lines Matching refs:pT

103 		T* pT = static_cast<T*>(this);  in OnFindReplaceCmd()  local
119 pT->OnFindNext(pDialog->GetFindString(), pDialog->SearchDown(), in OnFindReplaceCmd()
124 pT->OnReplaceSel(pDialog->GetFindString(), in OnFindReplaceCmd()
130 pT->OnReplaceAll(pDialog->GetFindString(), pDialog->GetReplaceString(), in OnFindReplaceCmd()
137 pT->OnTerminatingFindReplaceDialog(m_pFindReplaceDialog); in OnFindReplaceCmd()
147 T* pT = static_cast<T*>(this); in OnEditFind() local
148 pT->FindReplace(TRUE); in OnEditFind()
155 T* pT = static_cast<T*>(this); in OnEditRepeat() local
165 pT->FindReplace(TRUE); in OnEditRepeat()
169 if(!pT->FindTextSimple(m_sFindNext, m_bMatchCase, m_bWholeWord, m_bFindDown)) in OnEditRepeat()
170 pT->TextNotFound(m_sFindNext); in OnEditRepeat()
178 T* pT = static_cast<T*>(this); in OnEditReplace() local
180 DWORD style = pT->GetStyle(); in OnEditReplace()
183 pT->FindReplace(FALSE); in OnEditReplace()
231 T* pT = static_cast<T*>(this); in AdjustDialogPosition() local
235 ::SendMessage(pT->m_hWnd, EM_GETSEL, (WPARAM)&nStartChar, (LPARAM)&nEndChar); in AdjustDialogPosition()
236 POINT point = pT->PosFromChar(nStartChar); in AdjustDialogPosition()
237 ::ClientToScreen(pT->GetParent(), &point); in AdjustDialogPosition()
272 T* pT = static_cast<T*>(this); in FindReplace() local
292 pT->GetSelText(findNext); in FindReplace()
297 DWORD dwFlags = pT->GetFindReplaceDialogFlags(); in FindReplace()
299 m_pFindReplaceDialog = pT->CreateFindReplaceDialog(bFindOnly, in FindReplace()
300 findNext, replaceWith, dwFlags, pT->operator HWND()); in FindReplace()
308 T* pT = static_cast<T*>(this); in SameAsSelected() local
315 ::SendMessage(pT->m_hWnd, EM_GETSEL, (WPARAM)&nStartChar, (LPARAM)&nEndChar); in SameAsSelected()
321 pT->GetSelText(selectedText); in SameAsSelected()
329 T* pT = static_cast<T*>(this); in TextNotFound() local
331 pT->OnTextNotFound(lpszFind); in TextNotFound()
359 T* pT = static_cast<T*>(this); in OnFindNext() local
366 if(!pT->FindTextSimple(m_sFindNext, m_bMatchCase, m_bWholeWord, m_bFindDown)) in OnFindNext()
367 pT->TextNotFound(m_sFindNext); in OnFindNext()
369 pT->AdjustDialogPosition(m_pFindReplaceDialog->operator HWND()); in OnFindNext()
374 T* pT = static_cast<T*>(this); in OnReplaceSel() local
382 if(pT->SameAsSelected(m_sFindNext, m_bMatchCase, m_bWholeWord)) in OnReplaceSel()
383 pT->ReplaceSel(m_sReplaceWith); in OnReplaceSel()
385 if(!pT->FindTextSimple(m_sFindNext, m_bMatchCase, m_bWholeWord, m_bFindDown)) in OnReplaceSel()
386 pT->TextNotFound(m_sFindNext); in OnReplaceSel()
388 pT->AdjustDialogPosition(m_pFindReplaceDialog->operator HWND()); in OnReplaceSel()
393 T* pT = static_cast<T*>(this); in OnReplaceAll() local
402 if(!pT->SameAsSelected(m_sFindNext, m_bMatchCase, m_bWholeWord)) in OnReplaceAll()
404 if(!pT->FindTextSimple(m_sFindNext, m_bMatchCase, m_bWholeWord, m_bFindDown)) in OnReplaceAll()
406 pT->TextNotFound(m_sFindNext); in OnReplaceAll()
411 pT->OnReplaceAllCoreBegin(); in OnReplaceAll()
417 pT->ReplaceSel(m_sReplaceWith); in OnReplaceAll()
418 } while(pT->FindTextSimple(m_sFindNext, m_bMatchCase, m_bWholeWord, m_bFindDown)); in OnReplaceAll()
420 pT->OnReplaceAllCoreEnd(replaceCount); in OnReplaceAll()
425 T* pT = static_cast<T*>(this); in OnReplaceAllCoreBegin() local
429 pT->HideSelection(TRUE, FALSE); in OnReplaceAllCoreBegin()
435 T* pT = static_cast<T*>(this); in OnReplaceAllCoreEnd() local
436 pT->HideSelection(FALSE, FALSE); in OnReplaceAllCoreEnd()
440 ATL::CString message = pT->GetTranslationText(eText_OnReplaceAllMessage); in OnReplaceAllCoreEnd()
448 pT->GetTranslationText(eText_OnReplaceAllTitle), in OnReplaceAllCoreEnd()
453 pT->MessageBox(formattedMessage, in OnReplaceAllCoreEnd()
454 pT->GetTranslationText(eText_OnReplaceAllTitle), in OnReplaceAllCoreEnd()
462 T* pT = static_cast<T*>(this); in OnTextNotFound() local
463 ATL::CString message = pT->GetTranslationText(eText_OnTextNotFoundMessage); in OnTextNotFound()
471 pT->GetTranslationText(eText_OnTextNotFoundTitle), in OnTextNotFound()
476 pT->MessageBox(formattedMessage, in OnTextNotFound()
477 pT->GetTranslationText(eText_OnTextNotFoundTitle), in OnTextNotFound()
533 T* pT = static_cast<T*>(this); variable
538 UINT nLen = pT->GetBufferLength();
540 pT->GetSel(nStartChar, nEndChar);
548 LPCTSTR lpszText = pT->LockBuffer();
562 else if((nStartChar != nEndChar) && (pT->SameAsSelected(lpszFind, bMatchCase, bWholeWord)))
597 pT->UnlockBuffer();
646 pT->UnlockBuffer();
651 pT->SetSel(n, n + nLenFind);
676 pT->UnlockBuffer();
678 pT->SetSel(n, n + nLenFind);
689 pT->UnlockBuffer();
697 const T* pT = static_cast<const T*>(this); in LockBuffer() local
698 ATLASSERT(pT->m_hWnd != NULL); in LockBuffer()
713 HLOCAL hLocal = pT->GetHandle(); in LockBuffer()
723 const T* pT = static_cast<const T*>(this); in UnlockBuffer() local
724 ATLASSERT(pT->m_hWnd != NULL); in UnlockBuffer()
726 HLOCAL hLocal = pT->GetHandle(); in UnlockBuffer()
733 const T* pT = static_cast<const T*>(this); in GetBufferLength() local
734 ATLASSERT(pT->m_hWnd != NULL); in GetBufferLength()
737 LPCTSTR lpszText = pT->LockBuffer(); in GetBufferLength()
740 pT->UnlockBuffer(); in GetBufferLength()
756 const T* pT = static_cast<const T*>(this); in GetSelText() local
759 pT->GetSel(nStartChar, nEndChar); in GetSelText()
760 ATLASSERT((UINT)nEndChar <= pT->GetBufferLength()); in GetSelText()
761 LPCTSTR lpszText = pT->LockBuffer(); in GetSelText()
762 LONG nLen = pT->EndOfLine(lpszText, nEndChar, nStartChar) - nStartChar; in GetSelText()
765 pT->UnlockBuffer(); in GetSelText()
805 T* pT = static_cast<T*>(this); in BEGIN_MSG_MAP() local
810 pT->GetSel(ft.chrg); in BEGIN_MSG_MAP()
838 ft.chrg.cpMax = pT->GetTextLength() + this->m_nInitialSearchPos; in BEGIN_MSG_MAP()
843 ft.chrg.cpMax = pT->GetTextLength(); in BEGIN_MSG_MAP()
858 if(pT->FindAndSelect(dwFlags, ft) != -1) in BEGIN_MSG_MAP()
873 ft.chrg.cpMin = pT->GetTextLength(); in BEGIN_MSG_MAP()
876 this->m_nInitialSearchPos = this->m_nInitialSearchPos - pT->GetTextLength(); in BEGIN_MSG_MAP()
878 bRet = (pT->FindAndSelect(dwFlags, ft) != -1) ? TRUE : FALSE; in BEGIN_MSG_MAP()
886 T* pT = static_cast<T*>(this); in FindAndSelect() local
887 LONG index = pT->FindText(dwFlags, ft); in FindAndSelect()
889 pT->SetSel(ft.chrgText); in FindAndSelect()