本文整理汇总了C++中KHTMLPart::findTextBegin方法的典型用法代码示例。如果您正苦于以下问题:C++ KHTMLPart::findTextBegin方法的具体用法?C++ KHTMLPart::findTextBegin怎么用?C++ KHTMLPart::findTextBegin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KHTMLPart
的用法示例。
在下文中一共展示了KHTMLPart::findTextBegin方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: MessageReceived
//.........这里部分代码省略.........
#if 0
std::string cURL;
pcMsg->FindString( "url", &cURL );
os::Clipboard cClipboard;
cClipboard.Lock();
cClipboard.Clear();
os::Message* pcData = cClipboard.GetData();
pcData->AddString( "text/plain", cURL );
cClipboard.Commit();
cClipboard.Unlock();
#endif
break;
}
case ID_COPY:
{
#if 0
if ( m_cSelectedText.empty() ) {
break;
}
os::Clipboard cClipboard;
cClipboard.Lock();
cClipboard.Clear();
os::Message* pcData = cClipboard.GetData();
pcData->AddString( "text/plain", m_cSelectedText );
cClipboard.Commit();
cClipboard.Unlock();
#endif
break;
}
case ID_FIND:
#if 0
if ( m_pcSearchDialog == NULL ) {
m_pcHTMLPart->findTextBegin();
m_pcSearchDialog = new FindDialog( os::Messenger(this), os::Message(ID_DO_SEARCH), os::Message(ID_SEARCH_CLOSED) );
m_pcSearchDialog->Show();
m_pcSearchDialog->MakeFocus();
}
#endif
break;
case ID_DO_SEARCH:
{
#if 0
bool bFromTop = false;
pcMsg->FindBool( "from_top", &bFromTop );
pcMsg->FindBool( "case_sensitive", &m_bSearchCaseSensitive );
pcMsg->FindString( "string", &m_cLastSearchStr );
KHTMLView* pcActiveView = dynamic_cast<KHTMLView*>(GetFocusChild());
KHTMLPart* pcPart = m_pcHTMLPart;
if ( pcActiveView != NULL ) {
pcPart = pcActiveView->part();
}
if ( bFromTop ) {
pcPart->findTextBegin();
}
pcPart->findTextNext( m_cLastSearchStr.c_str(), true, m_bSearchCaseSensitive );
break;
#endif
}
case ID_REPEAT_FIND:
#if 0
if ( m_cLastSearchStr.empty() == false ) {
KHTMLView* pcActiveView = dynamic_cast<KHTMLView*>(GetFocusChild());