libglom-1.22  1.21.7
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes
GlomBakery::Document_XML Class Reference
Inheritance diagram for GlomBakery::Document_XML:
Inheritance graph
[legend]
Collaboration diagram for GlomBakery::Document_XML:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Document_XML ()
virtual ~Document_XML ()
virtual bool load_after (int& failure_code)
 Allow app to update icons/title bar.
virtual bool save_before ()
 overrideable.
void set_dtd_name (const std::string& strVal)
std::string get_dtd_name () const
void set_dtd_root_node_name (const Glib::ustring& strVal, const Glib::ustring& xmlns=Glib::ustring())
 Set the root node name and (optionally) the xmlns ID to be written when writing the document.
Glib::ustring get_dtd_root_node_name () const
Glib::ustring get_xml () const

Protected Types

typedef GlomBakery::Document type_base

Protected Member Functions

const xmlpp::Element* get_node_document () const
xmlpp::Element* get_node_document ()
void Util_DOM_Write (Glib::ustring& refstrXML) const
void add_indenting_white_space_to_node (xmlpp::Node* node=0, const Glib::ustring& start_indent=Glib::ustring())
 Put each node on its own line and add white space for indenting, even if there are child text nodes.

Protected Attributes

xmlpp::DomParser m_DOM_Parser
xmlpp::Document* m_pDOM_Document
std::string m_strDTD_Name
Glib::ustring m_strRootNodeName
Glib::ustring m_root_xmlns
bool m_write_formatted

Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

void GlomBakery::Document_XML::add_indenting_white_space_to_node ( xmlpp::Node *  node = 0,
const Glib::ustring &  start_indent = Glib::ustring() 
) [protected]

Put each node on its own line and add white space for indenting, even if there are child text nodes.

set_write_formatted() does not cause nodes to be indented if there are child text nodes, because it assumes that the white space is then significant.

const xmlpp::Element* GlomBakery::Document_XML::get_node_document ( ) const [protected]
xmlpp::Element* GlomBakery::Document_XML::get_node_document ( ) [protected]
Glib::ustring GlomBakery::Document_XML::get_xml ( ) const
virtual bool GlomBakery::Document_XML::load_after ( int &  failure_code) [virtual]

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.

Parameters:
failure_codeUsed to return a custom error code that is understood by your application. This must be greater than zero.

Reimplemented from GlomBakery::Document.

virtual bool GlomBakery::Document_XML::save_before ( ) [virtual]

overrideable.

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

Reimplemented from GlomBakery::Document.

void GlomBakery::Document_XML::set_dtd_root_node_name ( const Glib::ustring &  strVal,
const Glib::ustring &  xmlns = Glib::ustring() 
)

Set the root node name and (optionally) the xmlns ID to be written when writing the document.

The root node name is also used when reading documents.

void GlomBakery::Document_XML::Util_DOM_Write ( Glib::ustring &  refstrXML) const [protected]

Member Data Documentation

xmlpp::DomParser GlomBakery::Document_XML::m_DOM_Parser [protected]
xmlpp::Document* GlomBakery::Document_XML::m_pDOM_Document [protected]
Glib::ustring GlomBakery::Document_XML::m_root_xmlns [protected]

The documentation for this class was generated from the following file: