Bakery::Document
Bakery::Document_XML
Document.h
sigc::signal< void, bool > typedef sigc::signal<void, bool> Bakery::Document::type_signal_modified type_signal_modified

For instance, void on_document_modified(bool modified);.

sigc::signal< void > typedef sigc::signal<void> Bakery::Document::type_signal_forget type_signal_forget
Glib::ustring Glib::ustring Bakery::Document::m_strContents m_strContents
Glib::ustring Glib::ustring Bakery::Document::m_file_uri m_file_uri
Glib::ustring Glib::ustring Bakery::Document::m_file_extension m_file_extension
ViewBase * ViewBase* Bakery::Document::m_pView m_pView
type_signal_modified type_signal_modified Bakery::Document::signal_modified_ signal_modified_
type_signal_forget type_signal_forget Bakery::Document::signal_forget_ signal_forget_
bool bool Bakery::Document::m_bModified m_bModified
bool bool Bakery::Document::m_bIsNew m_bIsNew
bool bool Bakery::Document::m_bReadOnly m_bReadOnly
Bakery::Document::Document
()
Document
virtual Bakery::Document::~Document
()
~Document
bool bool Bakery::Document::save () save
bool bool Bakery::Document::load () load
bool bool Bakery::Document::load_from_data (const guchar *data, std::size_t length) load_from_data const guchar * data std::size_t length
bool virtual bool Bakery::Document::get_modified () const get_modified
void virtual void Bakery::Document::set_modified (bool bVal=true) set_modified bool bVal true
bool virtual bool Bakery::Document::get_is_new () const get_is_new

Whether this just a default document.

void void Bakery::Document::set_is_new (bool bVal) set_is_new bool bVal

Called by App_WithDoc::init_create_document().

Glib::ustring virtual Glib::ustring Bakery::Document::get_contents () const get_contents
void virtual void Bakery::Document::set_contents (const Glib::ustring &strVal) set_contents const Glib::ustring & strVal
Glib::ustring virtual Glib::ustring Bakery::Document::get_file_uri_with_extension (const Glib::ustring &uri) get_file_uri_with_extension const Glib::ustring & uri
Glib::ustring virtual Glib::ustring Bakery::Document::get_file_uri () const get_file_uri
void virtual void Bakery::Document::set_file_uri (const Glib::ustring &file_uri, bool bEnforceFileExtension=false) set_file_uri const Glib::ustring & file_uri bool bEnforceFileExtension false
Glib::ustring virtual Glib::ustring Bakery::Document::get_name () const get_name

Gets filename part of file_uri, or 'untitled'.

bool virtual bool Bakery::Document::get_read_only () const get_read_only
void virtual void Bakery::Document::set_read_only (bool bVal) set_read_only bool bVal
void virtual void Bakery::Document::set_view (ViewBase *pView) set_view ViewBase * pView

If you don't want to use a View, then don't use set_view().

ViewBase * virtual ViewBase* Bakery::Document::get_view () get_view
void virtual void Bakery::Document::set_file_extension (const Glib::ustring &strVal) set_file_extension const Glib::ustring & strVal
Glib::ustring virtual Glib::ustring Bakery::Document::get_file_extension () const get_file_extension
type_signal_modified & type_signal_modified& Bakery::Document::signal_modified () signal_modified

This signal is emitted when the document has been modified.

It allows the view to update itself to show the new information.

type_signal_forget & type_signal_forget& Bakery::Document::signal_forget () signal_forget

This signal is emitted when the view should forget the document.

This is used internally, and you should not need to use it yourself.

Glib::ustring static Glib::ustring Bakery::Document::util_file_uri_get_name (const Glib::ustring &file_uri, const Glib::ustring &file_extension) util_file_uri_get_name const Glib::ustring & file_uri const Glib::ustring & file_extension
bool virtual bool Bakery::Document::load_after () load_after load_after

Allow app to update icons/title bar.

overrideable. Does anything which should be done after the data has been loaded from disk, but before updating the View.

bool virtual bool Bakery::Document::save_before () save_before save_before

overrideable.

Does anything which should be done before the view has saved its data, before writing to disk..

bool virtual bool Bakery::Document::read_from_disk () read_from_disk
bool virtual bool Bakery::Document::write_to_disk () write_to_disk

The Document is like the 'Model' in the Model-View-Controller framework.

Each App should have a Document. Each View gets and sets data in its document.

Bakery::Document
Bakery::Document_XML
Glib::ustring
Bakery::ViewBase
sigc::trackable
Bakery::Document
m_pView
m_file_uri m_strContents m_file_extension
- Bakery::Document
  Document
- Bakery::Document
  get_contents
- Bakery::Document
  get_file_extension
- Bakery::Document
  get_file_uri
- Bakery::Document
  get_file_uri_with_extension
- Bakery::Document
  get_is_new
- Bakery::Document
  get_modified
- Bakery::Document
  get_name
- Bakery::Document
  get_read_only
- Bakery::Document
  get_view
- Bakery::Document
  load
- Bakery::Document
  load_after
- Bakery::Document
  load_from_data
- Bakery::Document
  m_bIsNew
- Bakery::Document
  m_bModified
- Bakery::Document
  m_bReadOnly
- Bakery::Document
  m_file_extension
- Bakery::Document
  m_file_uri
- Bakery::Document
  m_pView
- Bakery::Document
  m_strContents
- Bakery::Document
  read_from_disk
- Bakery::Document
  save
- Bakery::Document
  save_before
- Bakery::Document
  set_contents
- Bakery::Document
  set_file_extension
- Bakery::Document
  set_file_uri
- Bakery::Document
  set_is_new
- Bakery::Document
  set_modified
- Bakery::Document
  set_read_only
- Bakery::Document
  set_view
- Bakery::Document
  signal_forget
- Bakery::Document
  signal_forget_
- Bakery::Document
  signal_modified
- Bakery::Document
  signal_modified_
- Bakery::Document
  type_signal_forget
- Bakery::Document
  type_signal_modified
- Bakery::Document
  util_file_uri_get_name
- Bakery::Document
  write_to_disk
- Bakery::Document
  ~Document