void PictSelection::CollectFonts (IFontList* fontlist) { if (GetFont() != nil) { Merge((IFont*) GetFont(), fontlist); } else { for (First(); !AtEnd(); Next()) { Selection* s = GetCurrent(); if (s->HasChildren()) { ((PictSelection*) s)->CollectFonts(fontlist); } else if (s->IsA(TEXTSELECTION)) { Merge((IFont*) s->GetFont(), fontlist); } } } }