]> git.lyx.org Git - lyx.git/blobdiff - src/converter.h
change LyXScreen names to begin with lower case
[lyx.git] / src / converter.h
index 013370c3935517471d3d7cb73fc5f269ee4dbc10..6bac8b87ff96420044a29e081df1f6fed1957eb6 100644 (file)
@@ -5,7 +5,7 @@
  *           LyX, The Document Processor
  *        
  *           Copyright 1995 Matthias Ettrich
- *           Copyright 1995-2000 The LyX Team.
+ *           Copyright 1995-2001 The LyX Team.
  *
  * ====================================================== */
 
@@ -61,9 +61,6 @@ public:
        void setViewer(string const & v) {
                viewer_ = v;
        }
-       friend bool operator<(Format const & a, Format const & b) {
-               return compare_no_case(a.prettyname(),b.prettyname()) < 0;
-       }
 private:
        string name_;
        ///
@@ -77,6 +74,13 @@ private:
 };
 
 
+inline
+bool operator<(Format const & a, Format const & b)
+{
+       return compare_no_case(a.prettyname(),b.prettyname()) < 0;
+}
+
+
 ///
 class Formats {
 public:
@@ -85,7 +89,7 @@ public:
        ///
        typedef FormatList::const_iterator const_iterator;
        ///
-       Format const & Get(int i) const {
+       Format const & Get(FormatList::size_type i) const {
                return formatlist[i];
        }
        ///
@@ -215,10 +219,12 @@ public:
                     string const & from_file, string const & to_file_base,
                     string const & from_format, string const & to_format);
        ///
-       string const dvi_papersize(Buffer const * buffer);
+       string const papersize(Buffer const * buffer);
        ///
        string const dvips_options(Buffer const * buffer);
        ///
+       string const dvipdfm_options(Buffer const * buffer);
+       ///
        void Update(Formats const & formats);
        ///
        void UpdateLast(Formats const & formats);