namespace {
-int const LYX_FORMAT = 294; //pavel pdfoptions
+int const LYX_FORMAT = 295; //Uwe: htmlurl, href
} // namespace anon
{
public:
Impl(Buffer & parent, FileName const & file, bool readonly);
-
- limited_stack<Undo> undostack;
- limited_stack<Undo> redostack;
+
BufferParams params;
LyXVC lyxvc;
string temppath;
///
frontend::WorkAreaManager * wa_;
+
+ ///
+ Undo undo_;
};
: lyx_clean(true), bak_clean(true), unnamed(false), read_only(readonly_),
filename(file), file_fully_loaded(false), inset(params),
toc_backend(&parent), embedded_files(&parent), timestamp_(0),
- checksum_(0), wa_(0)
+ checksum_(0), wa_(0), undo_(parent)
{
inset.setAutoBreakRows(true);
lyxvc.buffer(&parent);
}
-limited_stack<Undo> & Buffer::undostack()
-{
- return pimpl_->undostack;
-}
-
-
-limited_stack<Undo> const & Buffer::undostack() const
-{
- return pimpl_->undostack;
-}
-
-
-limited_stack<Undo> & Buffer::redostack()
-{
- return pimpl_->redostack;
-}
-
-
-limited_stack<Undo> const & Buffer::redostack() const
-{
- return pimpl_->redostack;
-}
-
-
BufferParams & Buffer::params()
{
return pimpl_->params;
return pimpl_->embedded_files;
}
+Undo & Buffer::undo()
+{
+ return pimpl_->undo_;
+}
+
+
string const Buffer::getLatexName(bool const no_path) const
{
}
lex.next();
- string const token(lex.getString());
+ string const token = lex.getString();
if (!lex) {
Alert::error(_("Document could not be read"),
void Buffer::changeRefsIfUnique(docstring const & from, docstring const & to,
- int inset_code)
+ InsetCode code)
{
- InsetCode code = static_cast<InsetCode>(inset_code);
-
//FIXME: This does not work for child documents yet.
BOOST_ASSERT(code == CITE_CODE || code == REF_CODE);
// Check if the label 'from' appears more than once