}
s << ", size " << sub.size() << ", aspect " << sub.aspect_adjust() << ", colour " << sub.colour()
- << ", vpos " << sub.v_position() << ", valign " << ((int) sub.v_align()) << ",\n"
- << ", hpos " << sub.h_position() << ", halign " << ((int) sub.h_align()) << ";\n"
- << "effect " << ((int) sub.effect()) << ", effect colour " << sub.effect_colour();
+ << ", vpos " << sub.v_position() << ", valign " << ((int) sub.v_align())
+ << ", hpos " << sub.h_position() << ", halign " << ((int) sub.h_align())
+ << ", effect " << ((int) sub.effect()) << ", effect colour " << sub.effect_colour();
return s;
}
*/
-#include <iostream>
-#include <cstdlib>
-#include <boost/filesystem.hpp>
-#include <getopt.h>
#include "dcp.h"
#include "exceptions.h"
#include "reel.h"
#include "subtitle_string.h"
#include "cpl.h"
#include "common.h"
+#include <getopt.h>
+#include <boost/filesystem.hpp>
+#include <boost/foreach.hpp>
+#include <iostream>
+#include <cstdlib>
using std::string;
using std::cerr;
list<SubtitleString> subs = reel->main_subtitle()->subtitle_content()->subtitles ();
cout << " Subtitle: " << subs.size() << " subtitles in " << reel->main_subtitle()->subtitle_content()->language() << "\n";
if (list_subtitles) {
- for (list<SubtitleString>::const_iterator k = subs.begin(); k != subs.end(); ++k) {
- cout << " " << k->text() << "\n";
- cout << " "
- << "font:" << k->font().get_value_or("[default]") << "; "
- << "italic:" << k->italic() << "; "
- << "color:" << k->colour() << "; "
- << "in:" << k->in() << "; "
- << "out:" << k->out() << "; "
- << "v_position:" << k->v_position() << "; "
- << "v_align:" << k->v_align() << "; "
- << "effect:" << k->effect() << "; "
- << "effect_color:" << k->effect_colour() << "; "
- << "fade_up_time:" << k->fade_up_time() << "; "
- << "fade_down_time:" << k->fade_down_time() << "; "
- << "size: " << k->size() << "\n";
+ BOOST_FOREACH (SubtitleString const& k, subs) {
+ cout << k << "\n";
}
}
}