RTFIO
RTFIO::FontTable
RTFIO::FontTableEntry
RTFIO::ListOverrideTableEntry
RTFIO::ListTableEntry
RTFIO::ListTables
RTFInfo
StyledTextIOReader_RTF
StyledTextIOReader_RTF::ReaderContext
StyledTextIOReader_RTF::ReaderContext::Destination_
StyledTextIOReader_RTF::ReaderContext::GroupContext
StyledTextIOReader_RTF::ReaderContext::SinkStreamDestination
StyledTextIOReader_RTF::ReaderContext::SinkStreamDestination::Context
StyledTextIOWriter_RTF
The knowledge of how to read RTF is in StyledTextIOReader_RTF
and the knowledge of how to write RTF is in
StyledTextIOWriter_RTF
.
RTFIO [public]
This RTFIO class serves as a (shared) scope to define some other classes used in reading/writing
RTF. It probably should be replaced with something using namespaces. But I wanted to make as small and
simple a change as possible to the old code (that used RTFInfo
for this purpose).
RTFIO::FontTable [public]
This object contains a vector of RTFIO::FontTableEntry
. This corresponds to the
\fonttbl RTF element. Its used to associate font numbers with names and other information.
RTFIO::FontTableEntry [public]
These objects are collected together in a RTFIO::FontTable
.
RTFIO::ListOverrideTableEntry [public]
These objects are collected together in a RTFIO::ListTables
.
RTFIO::ListTableEntry [public]
These objects are collected together in a RTFIO::ListTables
.
RTFIO::ListTables [public]
This object contains a vector of RTFIO::ListTableEntry
. This corresponds to the
\listtable RTF element. It also contains a vector of RTFIO::ListOverrideTableEntry
entries. These
map to \listoverridetable entries. See the RTF 1.5 (or later) spec.
RTFInfo [public]
This RTFInfo class is designed to capture any extra information about the RTF file you might want to keep track of, as a side-effect of reading it in (beyond simply the things which Led supports). For example, if you wanted to keep track of the original character set, the author, or the original style sheet information, this would be a good place to store those things.
NB: This class used to contain all the definitions name contained in RTFIO
.
StyledTextIOReader_RTF [public]
StyledTextIOReader
This is the class you construct to read in content as RTF-formatted text. You must specify SrcStream of input data (usually a file, or a clipboard record), and a SinkStream (usually a text buffer) to write to.
Then call StyledTextIOReader_RTF::Read () to get the actual reading done.
Member Details |
---|
Take the given size and data parameters, and consturct a new Led_DIB (which must be freed by caller using delete()). Returns NULL if unable to convert the given format. |
Construct a Led_DIB given HENHMETAFILE, the desired 'shownSize' and 'bmSize' can override the size specified in the metafile itself. This routine is only available if qWindows. |
Get the font which is used for RTF \plain directives. This can be set
via |
Read in the data from a \pict group. |
Internal/Private Search for the given string (up to a max of maxCharsToExamine characters). Return true iff the string is found and leave the stream positioned where found. If fail to find - leave stream pointer unchanged. Don't THROW cuz of end of file - but just treat that as not finding. Other exceptions also return stream to original position. |
Set the font which is used for RTF \plain directives. See
|
StyledTextIOReader_RTF::ReaderContext [public]
This context object is used during the process of reading RTF text from a source, and internalizing it into internal format. It is used to keep track of various document context information, like character sets, etc.
StyledTextIOReader_RTF::ReaderContext::Destination_ [public]
StyledTextIOReader_RTF::ReaderContext::GroupContext [public]
Helper class to implement nested scopes where we save/restore font info while reading
StyledTextIOReader_RTF::ReaderContext::SinkStreamDestination [public]
StyledTextIOReader_RTF::ReaderContext::Destination_
StyledTextIOReader_RTF::ReaderContext::SinkStreamDestination::Context [public]
StyledTextIOWriter_RTF [public]
StyledTextIOWriter