+ FindAndReplaceOptions::SearchScope scope = FindAndReplaceOptions::S_BUFFER;
+ if (CurrentDocument->isChecked())
+ scope = FindAndReplaceOptions::S_BUFFER;
+ else if (MasterDocument->isChecked())
+ scope = FindAndReplaceOptions::S_DOCUMENT;
+ else if (OpenDocuments->isChecked())
+ scope = FindAndReplaceOptions::S_OPEN_BUFFERS;
+ else
+ LASSERT(false, /**/);