#include "text_subtitle.h"
#include "film.h"
#include "font.h"
-#include "raw_convert.h"
#include "subtitle_content.h"
+#include <dcp/raw_convert.h>
#include <libxml++/libxml++.h>
-#include <boost/make_shared.hpp>
#include <iostream>
#include "i18n.h"
using std::string;
using std::cout;
using boost::shared_ptr;
-using boost::make_shared;
+using dcp::raw_convert;
TextSubtitleContent::TextSubtitleContent (shared_ptr<const Film> film, boost::filesystem::path path)
: Content (film, path)
boost::mutex::scoped_lock lm (_mutex);
_length = s.length ();
- subtitle->add_font (make_shared<Font> (TEXT_FONT_ID));
+ subtitle->add_font (shared_ptr<Font> (new Font (TEXT_FONT_ID)));
}
string
}
void
-TextSubtitleContent::as_xml (xmlpp::Node* node) const
+TextSubtitleContent::as_xml (xmlpp::Node* node, bool with_paths) const
{
node->add_child("Type")->add_child_text ("TextSubtitle");
- Content::as_xml (node);
+ Content::as_xml (node, with_paths);
if (subtitle) {
subtitle->as_xml (node);