Lines Matching refs:pSrchItem
114 if (nSlot == FN_REPEAT_SEARCH && !pSrchItem) in ExecSearch()
129 delete pSrchItem; in ExecSearch()
130 pSrchItem = (SvxSearchItem*) pArgs->Get(SID_SEARCH_ITEM).Clone(); in ExecSearch()
143 delete pSrchItem; in ExecSearch()
144 pSrchItem = (SvxSearchItem*) pArgs->Get(SID_SEARCH_ITEM).Clone(); in ExecSearch()
194 ASSERT(pSrchItem, "Search-Item fehlt"); in ExecSearch()
195 if( !pSrchItem ) in ExecSearch()
196 pSrchItem = new SvxSearchItem(SID_SEARCH_ITEM); in ExecSearch()
204 delete pSrchItem; in ExecSearch()
205 pSrchItem = (SvxSearchItem*) pArgs->Get(SID_SEARCH_ITEM).Clone(); in ExecSearch()
208 switch (pSrchItem->GetCommand()) in ExecSearch()
265 if( pSrchItem->GetReplaceString().Len() || in ExecSearch()
272 sal_Bool bBack = pSrchItem->GetBackward(); in ExecSearch()
275 String aReplace( pSrchItem->GetReplaceString() ); in ExecSearch()
276 SearchOptions aTmp( pSrchItem->GetSearchOptions() ); in ExecSearch()
279 pSrchItem->SetReplaceString( *pBackRef ); in ExecSearch()
283 pSrchItem->SetReplaceString( aReplace ); in ExecSearch()
297 sal_uInt16 nOldCmd = pSrchItem->GetCommand(); in ExecSearch()
298 pSrchItem->SetCommand( nCmd ); in ExecSearch()
302 pSrchItem->SetCommand( nOldCmd ); in ExecSearch()
320 SwSearchOptions aOpts( pWrtShell, pSrchItem->GetBackward() ); in ExecSearch()
323 if( !pSrchItem->GetSelection() ) in ExecSearch()
470 SwSearchOptions aOpts( pWrtShell, pSrchItem->GetBackward() ); in SearchAndWrap()
479 if (!pSrchItem->GetSelection()) in SearchAndWrap()
502 if (!pSrchItem->GetSelection() && !bExtra ) in SearchAndWrap()
584 SwSearchOptions aOpts( pWrtShell, pSrchItem->GetBackward() ); in SearchAll()
586 if (!pSrchItem->GetSelection()) in SearchAll()
614 if( pSrchItem->GetPattern() ) // Vorlagen? in Replace()
617 aRewriter.AddRule(UNDO_ARG1, pSrchItem->GetSearchString()); in Replace()
619 aRewriter.AddRule(UNDO_ARG3, pSrchItem->GetReplaceString()); in Replace()
624 pSrchItem->GetReplaceString(), in Replace()
632 GetPostItMgr()->Replace(pSrchItem); in Replace()
633 sal_Bool bReplaced = pWrtShell->SwEditShell::Replace( pSrchItem->GetReplaceString(), in Replace()
634 pSrchItem->GetRegExp()); in Replace()
670 sal_Bool bDoReplace = pSrchItem->GetCommand() == SVX_SEARCHCMD_REPLACE || in FUNC_Search()
671 pSrchItem->GetCommand() == SVX_SEARCHCMD_REPLACE_ALL; in FUNC_Search()
673 int eRanges = pSrchItem->GetSelection() ? in FUNC_Search()
675 if (pSrchItem->GetCommand() == SVX_SEARCHCMD_FIND_ALL || in FUNC_Search()
676 pSrchItem->GetCommand() == SVX_SEARCHCMD_REPLACE_ALL) in FUNC_Search()
714 SearchOptions aSearchOpt( pSrchItem->GetSearchOptions() ); in FUNC_Search()
724 !pSrchItem->GetPattern(), in FUNC_Search()
728 pSrchItem->GetSearchString().Len() ? &aSearchOpt : 0, in FUNC_Search()
731 else if( pSrchItem->GetPattern() ) in FUNC_Search()
734 const String sRplStr( pSrchItem->GetReplaceString() ); in FUNC_Search()
735 nFound = pWrtShell->SearchTempl( pSrchItem->GetSearchString(), in FUNC_Search()
744 nFound = pWrtShell->SearchPattern(aSearchOpt, pSrchItem->GetNotes(), in FUNC_Search()
785 if ( !pSrchItem ) in StateSearch()
787 pSrchItem = new SvxSearchItem( SID_SEARCH_ITEM ); in StateSearch()
788 pSrchItem->SetFamily(SFX_STYLE_FAMILY_PARA); in StateSearch()
789 pSrchItem->SetSearchString( pWrtShell->GetSelTxt() ); in StateSearch()
798 pSrchItem->SetSearchString( aTxt ); in StateSearch()
799 pSrchItem->SetSelection( sal_False ); in StateSearch()
802 pSrchItem->SetSelection( sal_True ); in StateSearch()
806 rSet.Put( *pSrchItem ); in StateSearch()