19 #ifndef BAKERY_DOCUMENT_XML_H 20 #define BAKERY_DOCUMENT_XML_H 23 #include <libxml++/libxml++.h> 63 virtual bool set_xml(
const Glib::ustring& strXML);
64 virtual Glib::ustring
get_xml()
const;
68 static void set_node_attribute_value(xmlpp::Element* node,
const Glib::ustring& strAttributeName,
const Glib::ustring& strValue);
70 static xmlpp::Element*
get_node_child_named(
const xmlpp::Element* node,
const Glib::ustring& strName);
93 #endif // BAKERY_DOCUMENT_XML_H virtual bool load_after()
Allow app to update icons/title bar.
static xmlpp::Element * get_node_child_named_with_add(xmlpp::Element *node, const Glib::ustring &strName)
void add_indenting_white_space_to_node(xmlpp::Node *node=0, const Glib::ustring &start_indent=Glib::ustring())
virtual void Util_DOM_Write(Glib::ustring &refstrXML) const
void set_write_formatted(bool formatted=true)
Whether to add extra whitespace when writing the XML to disk.
virtual void set_dtd_name(const std::string &strVal)
Definition: Document_XML.h:34
bool m_write_formatted
Definition: Document_XML.h:88
Bakery::Document type_base
Definition: Document_XML.h:80
static xmlpp::Element * get_node_child_named(const xmlpp::Element *node, const Glib::ustring &strName)
std::string m_strDTD_Name
Definition: Document_XML.h:86
virtual Glib::ustring get_dtd_root_node_name() const
static void set_node_attribute_value(xmlpp::Element *node, const Glib::ustring &strAttributeName, const Glib::ustring &strValue)
virtual bool save_before()
overrideable.
virtual bool set_xml(const Glib::ustring &strXML)
The Document is like the 'Model' in the Model-View-Controller framework.
Definition: Document.h:34
virtual std::string get_dtd_name() const
virtual const xmlpp::Element * get_node_document() const
void add_indenting_white_space()
Put each node on its own line and add white space for indenting, even if there are child text nodes...
Glib::ustring m_strRootNodeName
Definition: Document_XML.h:87
xmlpp::Document * m_pDOM_Document
Definition: Document_XML.h:84
virtual Glib::ustring get_xml() const
static Glib::ustring get_node_attribute_value(const xmlpp::Element *node, const Glib::ustring &strAttributeName)
virtual void set_dtd_root_node_name(const Glib::ustring &strVal)
xmlpp::DomParser m_DOM_Parser
Definition: Document_XML.h:83