31 #ifndef TBX_DOCWINDOW_H_
32 #define TBX_DOCWINDOW_H_
34 #include "../window.h"
35 #include "../closewindowlistener.h"
virtual void document_modified_changed(Document *doc)
Document modified flag has changed.
Definition: docwindow.cc:128
A library for creating RISC OS toolbox applications.
Definition: abouttobeshownlistener.cc:35
Document * document_interface()
Return pointer to the document interface.
Definition: docwindow.h:83
void dcs_save(const tbx::EventInfo &info)
Save selected from the DCS prompt so show save window.
Definition: docwindow.cc:96
The Window object represents a toolbox window.
Definition: window.h:70
void dcs_cancel(const tbx::EventInfo &info)
Cancel selected from the DCS prompt so just delete dcs object.
Definition: docwindow.cc:111
Listener for the close window request message.
Definition: closewindowlistener.h:46
Base class for a document.
Definition: document.h:53
Document * document_interface() const
Return pointer to the document interface.
Definition: docwindow.h:88
tbx::Window _window
Window showing document.
Definition: docwindow.h:68
Listener for when a cancel is selected from the DCS dialog.
Definition: dcs.h:223
virtual void close_window(const tbx::EventInfo &close_event)
Close window request from window.
Definition: docwindow.cc:67
Document * _document
Document that is being shown.
Definition: docwindow.h:69
DocWindow(Document *doc, std::string template_name)
Create the main window for a given document using a resource template.
Definition: docwindow.cc:45
Listener for when a save is selected from the DCS dialog.
Definition: dcs.h:211
void dcs_discard(const tbx::EventInfo &info)
Discard selected from DCS prompt so just delete the window.
Definition: docwindow.cc:86
Listener for when a discard is selected from the DCS dialog.
Definition: dcs.h:199
static Document * document(tbx::Window window)
Get the document showed by a window.
Definition: docwindow.cc:120
Class to provide information on a toolbox event.
Definition: eventinfo.h:49
Listener for document modified state changed.
Definition: document.h:144
Base class for the document window.
Definition: docwindow.h:66