mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 11:16:55 +00:00
Buffer: Make setExportStatus a private member
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@40088 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
47b28d4511
commit
098184ba6a
@ -3475,10 +3475,9 @@ bool Buffer::autoSave() const
|
||||
}
|
||||
|
||||
|
||||
namespace {
|
||||
// helper class, to guarantee this gets reset properly
|
||||
class MarkAsExporting {
|
||||
public:
|
||||
// helper class, to guarantee this gets reset properly
|
||||
class Buffer::MarkAsExporting {
|
||||
public:
|
||||
MarkAsExporting(Buffer const * buf) : buf_(buf)
|
||||
{
|
||||
LASSERT(buf_, /* */);
|
||||
@ -3488,10 +3487,10 @@ namespace {
|
||||
{
|
||||
buf_->setExportStatus(false);
|
||||
}
|
||||
private:
|
||||
private:
|
||||
Buffer const * const buf_;
|
||||
};
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
void Buffer::setExportStatus(bool e) const
|
||||
|
@ -638,8 +638,6 @@ private:
|
||||
ExportStatus preview(std::string const & format, bool includeall = false) const;
|
||||
|
||||
public:
|
||||
/// mark the buffer as busy exporting something, or not
|
||||
void setExportStatus(bool e) const;
|
||||
///
|
||||
bool isExporting() const;
|
||||
|
||||
@ -681,6 +679,11 @@ public:
|
||||
void checkChildBuffers();
|
||||
|
||||
private:
|
||||
class MarkAsExporting;
|
||||
friend class MarkAsExporting;
|
||||
/// mark the buffer as busy exporting something, or not
|
||||
void setExportStatus(bool e) const;
|
||||
|
||||
/// Change name of buffer. Updates "read-only" flag.
|
||||
void setFileName(support::FileName const & fname);
|
||||
///
|
||||
|
Loading…
Reference in New Issue
Block a user