* LyX, The Document Processor
*
* Copyright 1995 Matthias Ettrich
- * Copyright 1995-2000 The LyX Team.
+ * Copyright 1995-2001 The LyX Team.
*
* ====================================================== */
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_;
///
};
+inline
+bool operator<(Format const & a, Format const & b)
+{
+ return compare_no_case(a.prettyname(),b.prettyname()) < 0;
+}
+
+
///
class Formats {
public:
///
typedef FormatList::const_iterator const_iterator;
///
- Format const & Get(int i) const {
+ Format const & Get(FormatList::size_type i) const {
return formatlist[i];
}
///
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);
std::queue<int> Q;
///
int BFS_init(string const & start, bool clear_visited = true);
+ ///
+ bool Move(string const & from, string const & to, bool copy);
};
extern Formats formats;