1 \section{\class{wxRichTextXMLHandler
}}\label{wxrichtextxmlhandler
}
3 A handler for loading and saving content in an XML format specific
4 to wxRichTextBuffer. You can either add the handler to the buffer
5 and load and save through the buffer or control API, or you can
6 create an instance of the handler on the stack and call its
9 \wxheading{Derived from
}
11 \helpref{wxRichTextFileHandler
}{wxrichtextfilehandler
}
13 \wxheading{Include files
}
15 <wx/richtext/richtextxml.h>
17 \wxheading{Data structures
}
19 \latexignore{\rtfignore{\wxheading{Members
}}}
21 \membersection{wxRichTextXMLHandler::wxRichTextXMLHandler
}\label{wxrichtextxmlhandlerwxrichtextxmlhandler
}
23 \func{}{wxRichTextXMLHandler
}{\param{const wxString\&
}{name = wxT("XML")
},
\param{const wxString\&
}{ext = wxT("xml")
},
\param{int
}{type = wxRICHTEXT
\_TYPE\_XML}}
27 \membersection{wxRichTextXMLHandler::CanLoad
}\label{wxrichtextxmlhandlercanload
}
29 \constfunc{bool
}{CanLoad
}{\void}
33 \membersection{wxRichTextXMLHandler::CanSave
}\label{wxrichtextxmlhandlercansave
}
35 \constfunc{bool
}{CanSave
}{\void}
39 \membersection{wxRichTextXMLHandler::CreateStyle
}\label{wxrichtextxmlhandlercreatestyle
}
41 \func{wxString
}{CreateStyle
}{\param{const wxTextAttrEx\&
}{attr
},
\param{bool
}{isPara = false
}}
43 Creates XML code for a given character or paragraph style.
45 \membersection{wxRichTextXMLHandler::DoLoadFile
}\label{wxrichtextxmlhandlerdoloadfile
}
47 \func{bool
}{DoLoadFile
}{\param{wxRichTextBuffer*
}{buffer
},
\param{wxInputStream\&
}{stream
}}
49 Loads buffer context from the given stream.
51 \membersection{wxRichTextXMLHandler::DoSaveFile
}\label{wxrichtextxmlhandlerdosavefile
}
53 \func{bool
}{DoSaveFile
}{\param{wxRichTextBuffer*
}{buffer
},
\param{wxOutputStream\&
}{stream
}}
55 Saves buffer context to the given stream.
57 \membersection{wxRichTextXMLHandler::ExportXML
}\label{wxrichtextxmlhandlerexportxml
}
59 \func{bool
}{ExportXML
}{\param{wxOutputStream\&
}{stream
},
\param{wxMBConv*
}{convMem
},
\param{wxMBConv*
}{convFile
},
\param{wxRichTextObject\&
}{obj
},
\param{int
}{level
}}
61 Recursively exports an object to the stream.
63 \membersection{wxRichTextXMLHandler::GetNodeContent
}\label{wxrichtextxmlhandlergetnodecontent
}
65 \func{wxString
}{GetNodeContent
}{\param{wxXmlNode*
}{node
}}
67 Helper function: gets node context.
69 \membersection{wxRichTextXMLHandler::GetParamNode
}\label{wxrichtextxmlhandlergetparamnode
}
71 \func{wxXmlNode*
}{GetParamNode
}{\param{wxXmlNode*
}{node
},
\param{const wxString\&
}{param
}}
73 Helper function: gets a named parameter from the XML node.
75 \membersection{wxRichTextXMLHandler::GetParamValue
}\label{wxrichtextxmlhandlergetparamvalue
}
77 \func{wxString
}{GetParamValue
}{\param{wxXmlNode*
}{node
},
\param{const wxString\&
}{param
}}
79 Helper function: gets a named parameter from the XML node.
81 \membersection{wxRichTextXMLHandler::GetStyle
}\label{wxrichtextxmlhandlergetstyle
}
83 \func{bool
}{GetStyle
}{\param{wxTextAttrEx\&
}{attr
},
\param{wxXmlNode*
}{node
},
\param{bool
}{isPara = false
}}
85 Helper function: gets style parameters from the given XML node.
87 \membersection{wxRichTextXMLHandler::GetText
}\label{wxrichtextxmlhandlergettext
}
89 \func{wxString
}{GetText
}{\param{wxXmlNode*
}{node
},
\param{const wxString\&
}{param = wxEmptyString
},
\param{bool
}{translate = false
}}
91 Helper function: gets text from the node.
93 \membersection{wxRichTextXMLHandler::HasParam
}\label{wxrichtextxmlhandlerhasparam
}
95 \func{bool
}{HasParam
}{\param{wxXmlNode*
}{node
},
\param{const wxString\&
}{param
}}
97 Helper function: returns
\true if the node has the given parameter.
99 \membersection{wxRichTextXMLHandler::ImportXML
}\label{wxrichtextxmlhandlerimportxml
}
101 \func{bool
}{ImportXML
}{\param{wxRichTextBuffer*
}{buffer
},
\param{wxXmlNode*
}{node
}}
103 Recursively imports an object.