Paragraph::depth_type & depth,
LyXFont &);
///
- void insertStringAsLines(Paragraph *&, Paragraph::size_type &,
+ void insertStringAsLines(Paragraph *&, lyx::pos_type &,
LyXFont const &, string const &) const;
#ifndef NO_COMPABILITY
///
void insertErtContents(Paragraph * par, int & pos,
- LyXFont const & font,
bool set_inactive = true);
#endif
///
///
void writeFileAscii(std::ostream &, int);
///
- string const asciiParagraph(Paragraph const *,
- unsigned int linelen) const;
+ string const asciiParagraph(Paragraph const *, unsigned int linelen,
+ bool noparbreak = false) const;
///
void makeLaTeXFile(string const & filename,
string const & original_path,
\param \a endpar if == 0 then to the end
*/
void latexParagraphs(std::ostream & os, Paragraph * par,
- Paragraph * endpar, TexRow & texrow) const;
+ Paragraph * endpar, TexRow & texrow) const;
///
void simpleDocBookOnePar(std::ostream &,
Paragraph * par, int & desc_on,
/// Mark this buffer as dirty.
void markDirty();
- /// Returns the buffers filename.
+ /// Returns the buffer's filename. It is always an absolute path.
string const & fileName() const;
+ /// Returns the the path where the buffer lives.
+ /// It is always an absolute path.
+ string const & filePath() const;
+
/** A transformed version of the file name, adequate for LaTeX.
\param no_path optional if \c true then the path is stripped.
*/
/// Where to put temporary files.
string tmppath;
- /// The path to the document file.
- string filepath;
-
/** If we are writing a nice LaTeX file or not.
While writing as LaTeX, tells whether we are
doing a 'nice' LaTeX file */
bool read_only;
/// name of the file the buffer is associated with.
- string filename;
+ string filename_;
+
+ /// The path to the document file.
+ string filepath_;
/// Format number of buffer
int file_format;
setParagraph();
}
///
- inset_iterator(Paragraph * paragraph,
- Paragraph::size_type pos);
+ inset_iterator(Paragraph * paragraph, lyx::pos_type pos);
///
inset_iterator & operator++() { // prefix ++
if (par) {
///
Paragraph * getPar() { return par; }
///
- Paragraph::size_type getPos() const { return it.getPos(); }
+ lyx::pos_type getPos() const { return it.getPos(); }
///
friend
bool operator==(inset_iterator const & iter1,
inline
string const & Buffer::fileName() const
{
- return filename;
+ return filename_;
+}
+
+
+inline
+string const & Buffer::filePath() const
+{
+ return filepath_;
}