#ifndef _SubtitleEncorePAL_h #define _SubtitleEncorePAL_h /* * Adobe Encore DVD text script support for subtitle editor * PAL version. * * http://kitone.free.fr/subtitleeditor/ * * Copyright @ 2005-2006, kitone * * Contact: kitone at free dot fr * * Adobe Encore DVD text script support by Laurens Keek * Created using following documentation: * http://www.adobe.com/support/techdocs/329569.html * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * General Public License for more details. * * You should have received a copy of the GNU General Public * License along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * See gpl.txt for more information regarding the GNU General Public License. * * * \file * \brief * \author kitone (kitone at free dot fr) */ #include "Document.h" #include "SubtitleFormat.h" class SubtitleEncorePAL : public SubtitleFormat { public: SubtitleEncorePAL(Document *doc); ~SubtitleEncorePAL(); /* * */ bool open(const Glib::ustring &filename, const Glib::ustring &encoding); /* * */ bool save(const Glib::ustring &filename, const Glib::ustring &encoding); /* * */ static Glib::ustring get_name(); /* * */ static bool check(const std::string &line); /* * */ static Glib::ustring get_extension(); protected: /* * convertir le temps utiliser par subtitle editor en temps valide pour le format Encore DVD * 0:00:00.000 -> 00:00:00:00 (last 00 are frames, not time!) */ Glib::ustring subtitletime_to_encore_time(const SubtitleTime &time); }; #endif//_SubtitleEncorePAL_h