mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
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:
parent
ac89ab9cfe
commit
041474d127
@ -102,6 +102,12 @@ void GViewBase::setRestore(Gtk::Button * restore)
|
||||
}
|
||||
|
||||
|
||||
bool GViewBase::readOnly() const
|
||||
{
|
||||
return kernel().isBufferReadonly();
|
||||
}
|
||||
|
||||
|
||||
void GViewBase::onApply()
|
||||
{
|
||||
dialog().ApplyButton();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user