Add readonly() function to GViewBase

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@9038 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Spray 2004-10-03 12:32:30 +00:00
parent ac89ab9cfe
commit 041474d127
2 changed files with 7 additions and 0 deletions

View File

@ -102,6 +102,12 @@ void GViewBase::setRestore(Gtk::Button * restore)
}
bool GViewBase::readOnly() const
{
return kernel().isBufferReadonly();
}
void GViewBase::onApply()
{
dialog().ApplyButton();

View File

@ -32,6 +32,7 @@ public:
void setApply(Gtk::Button * apply);
void setOK(Gtk::Button * ok);
void setRestore(Gtk::Button * restore);
bool readOnly() const;
protected:
// Build the dialog
virtual void build();