-bool wxHtmlHelpData::AlreadyHasBook(wxHtmlBookRecord * bookr)
-{
- size_t bookCount = m_BookRecords.GetCount();
- if (bookCount == 0) return FALSE ;
-
- wxHtmlBookRecord currentBook(wxEmptyString,wxEmptyString,wxEmptyString);
- size_t i;
- for (i=0; i<bookCount; i++)
- {
- currentBook = m_BookRecords.Item(i) ;
- if (currentBook.GetBasePath().IsSameAs(bookr->GetBasePath()) &&
- currentBook.GetTitle().IsSameAs(bookr->GetTitle()) &&
- currentBook.GetStart().IsSameAs(bookr->GetStart()) )
- return TRUE ;
-
- }
- return FALSE ;
-}
-