Add set_font_file()
[libdcp.git] / src / interop_subtitle_asset.h
index 8c71154292e32e2848c8279505d226ca37f9c86b..4b96c795605850ea633be5003b11624454e5a110 100644 (file)
@@ -59,6 +59,9 @@ public:
                NoteHandler note
                ) const;
 
+       void write_to_assetmap (xmlpp::Node* node, boost::filesystem::path root) const;
+       void add_to_pkl (boost::shared_ptr<PKL> pkl, boost::filesystem::path root) const;
+
        std::list<boost::shared_ptr<LoadFontNode> > load_font_nodes () const;
 
        void add_font (std::string load_id, boost::filesystem::path file);
@@ -67,6 +70,7 @@ public:
        void write (boost::filesystem::path path) const;
        void resolve_fonts (std::list<boost::shared_ptr<Asset> > assets);
        void add_font_assets (std::list<boost::shared_ptr<Asset> >& assets);
+       void set_font_file (std::string load_id, boost::filesystem::path file);
 
        /** Set the reel number or sub-element identifier
         *  of these subtitles.
@@ -105,10 +109,14 @@ public:
                return _movie_title;
        }
 
+       static std::string static_pkl_type (Standard) {
+               return "text/xml;asdcpKind=Subtitle";
+       }
+
 protected:
 
-       std::string pkl_type (Standard) const {
-               return "text/xml";
+       std::string pkl_type (Standard s) const {
+               return static_pkl_type (s);
        }
 
 private: