- BOOST_FOREACH (shared_ptr<TextContent> j, i->caption) {
- have_caption[j->original_type()] = true;
- }
- }
-
- bool video_panel = false;
- bool audio_panel = false;
- bool caption_panel[CAPTION_COUNT] = { false, false };
- for (size_t i = 0; i < _notebook->GetPageCount(); ++i) {
- if (_notebook->GetPage(i) == _video_panel) {
- video_panel = true;
- } else if (_notebook->GetPage(i) == _audio_panel) {
- audio_panel = true;
- }
- for (int j = 0; j < CAPTION_COUNT; ++j) {
- if (_notebook->GetPage(i) == _caption_panel[j]) {
- caption_panel[j] = true;
- }
+ BOOST_FOREACH (shared_ptr<TextContent> j, i->text) {
+ have_text[j->original_type()] = true;