1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118
|
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- richtext.qdoc -->
<title>Qt 4.8: Rich Text Processing</title>
<link rel="stylesheet" type="text/css" href="style/offline.css" />
</head>
<body>
<div class="header" id="qtdocheader">
<div class="content">
<a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
</div>
<div class="breadcrumb toolblock">
<ul>
<li class="first"><a href="index.html">Home</a></li>
<!-- Breadcrumbs go here -->
<li>Rich Text Processing</li>
</ul>
</div>
</div>
<div class="content mainContent">
<link rel="next" href="richtext-structure.html" />
<p class="naviNextPrevious headerNavi">
<a class="nextPage" href="richtext-structure.html">Rich Text Document Structure</a>
</p><p/>
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#rich-text-processing-apis">Rich Text Processing APIs</a></li>
</ul>
</div>
<h1 class="title">Rich Text Processing</h1>
<span class="subtitle"></span>
<!-- $$$richtext.html-description -->
<div class="descr"> <a name="details"></a>
<p>The Scribe framework provides a set of classes for reading and manipulating structured rich text documents. Unlike previous rich text support in Qt, the new classes are centered around the <a href="qtextdocument.html">QTextDocument</a> class rather than raw textual information. This enables the developer to create and modify structured rich text documents without having to prepare content in an intermediate markup format.</p>
<p>The information within a document can be accessed via two complementary interfaces: A cursor-based interface is used for editing, and a read-only hierarchical interface provides a high level overview of the document structure. The main advantage of the cursor-based interface is that the text can be edited using operations that mimic a user's interaction with an editor, without losing the underlying structure of the document. The read-only hierarchical interface is most useful when performing operations such as searching and document export.</p>
<p>This document is divided up into chapters for convenient reference:</p>
<ul>
<li><a href="richtext-structure.html">Rich Text Document Structure</a> outlines the different kinds of elements in a <a href="qtextdocument.html">QTextDocument</a>, and describes how they are arranged in a document structure.</li>
<li><a href="richtext-cursor.html">The QTextCursor Interface</a> explains how rich text documents can be edited using the cursor-based interface.</li>
<li><a href="richtext-layouts.html">Document Layouts</a> briefly explains the role of document layouts.</li>
<li><a href="richtext-common-tasks.html">Common Rich Text Editing Tasks</a> examines some common tasks that involve reading or manipulating rich text documents.</li>
<li><a href="richtext-advanced-processing.html">Advanced Rich Text Processing</a> examines advanced rich text editing tasks.</li>
<li><a href="richtext-html-subset.html">Supported HTML Subset</a> lists the HTML tags supported by <a href="qtextdocument.html">QTextDocument</a>.</li>
</ul>
<a name="rich-text-processing-apis"></a>
<h2>Rich Text Processing APIs</h2>
<p>Qt provides an extensive collection of classes for parsing, rendering manipulating and editing rich text.</p>
<table class="annotated">
<tr class="odd topAlign"><td class="tblName"><p><a href="qabstracttextdocumentlayout.html">QAbstractTextDocumentLayout</a></p></td><td class="tblDescr"><p>Abstract base class used to implement custom layouts for QTextDocuments</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qfont.html">QFont</a></p></td><td class="tblDescr"><p>Specifies a font used for drawing text</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qplaintextdocumentlayout.html">QPlainTextDocumentLayout</a></p></td><td class="tblDescr"><p>Implements a plain text layout for QTextDocument</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qplaintextedit.html">QPlainTextEdit</a></p></td><td class="tblDescr"><p>Widget that is used to edit and display plain text</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qsyntaxhighlighter.html">QSyntaxHighlighter</a></p></td><td class="tblDescr"><p>Allows you to define syntax highlighting rules, and in addition you can use the class to query a document's current formatting or user data</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextblock.html">QTextBlock</a></p></td><td class="tblDescr"><p>Container for text fragments in a QTextDocument</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextblockformat.html">QTextBlockFormat</a></p></td><td class="tblDescr"><p>Formatting information for blocks of text in a QTextDocument</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextblockgroup.html">QTextBlockGroup</a></p></td><td class="tblDescr"><p>Container for text blocks within a QTextDocument</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextblockuserdata.html">QTextBlockUserData</a></p></td><td class="tblDescr"><p>Used to associate custom data with blocks of text</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextbrowser.html">QTextBrowser</a></p></td><td class="tblDescr"><p>Rich text browser with hypertext navigation</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextcharformat.html">QTextCharFormat</a></p></td><td class="tblDescr"><p>Formatting information for characters in a QTextDocument</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextcursor.html">QTextCursor</a></p></td><td class="tblDescr"><p>Offers an API to access and modify QTextDocuments</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextdocument.html">QTextDocument</a></p></td><td class="tblDescr"><p>Holds formatted text that can be viewed and edited using a QTextEdit</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextdocumentfragment.html">QTextDocumentFragment</a></p></td><td class="tblDescr"><p>Represents a piece of formatted text from a QTextDocument</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextdocumentwriter.html">QTextDocumentWriter</a></p></td><td class="tblDescr"><p>Format-independent interface for writing a QTextDocument to files or other devices</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextedit.html">QTextEdit</a></p></td><td class="tblDescr"><p>Widget that is used to edit and display both plain and rich text</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextformat.html">QTextFormat</a></p></td><td class="tblDescr"><p>Formatting information for a QTextDocument</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextfragment.html">QTextFragment</a></p></td><td class="tblDescr"><p>Holds a piece of text in a QTextDocument with a single QTextCharFormat</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextframe.html">QTextFrame</a></p></td><td class="tblDescr"><p>Represents a frame in a QTextDocument</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextframeformat.html">QTextFrameFormat</a></p></td><td class="tblDescr"><p>Formatting information for frames in a QTextDocument</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextimageformat.html">QTextImageFormat</a></p></td><td class="tblDescr"><p>Formatting information for images in a QTextDocument</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextinlineobject.html">QTextInlineObject</a></p></td><td class="tblDescr"><p>Represents an inline object in a QTextLayout</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextlayout.html">QTextLayout</a></p></td><td class="tblDescr"><p>Used to lay out and render text</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextlength.html">QTextLength</a></p></td><td class="tblDescr"><p>Encapsulates the different types of length used in a QTextDocument</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextline.html">QTextLine</a></p></td><td class="tblDescr"><p>Represents a line of text inside a QTextLayout</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextlist.html">QTextList</a></p></td><td class="tblDescr"><p>Decorated list of items in a QTextDocument</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextlistformat.html">QTextListFormat</a></p></td><td class="tblDescr"><p>Formatting information for lists in a QTextDocument</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextobject.html">QTextObject</a></p></td><td class="tblDescr"><p>Base class for different kinds of objects that can group parts of a QTextDocument together</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtextoption.html">QTextOption</a></p></td><td class="tblDescr"><p>Description of general rich text properties</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtexttable.html">QTextTable</a></p></td><td class="tblDescr"><p>Represents a table in a QTextDocument</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtexttablecell.html">QTextTableCell</a></p></td><td class="tblDescr"><p>Represents the properties of a cell in a QTextTable</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtexttablecellformat.html">QTextTableCellFormat</a></p></td><td class="tblDescr"><p>Formatting information for table cells in a QTextDocument</p></td></tr>
<tr class="odd topAlign"><td class="tblName"><p><a href="qtexttableformat.html">QTextTableFormat</a></p></td><td class="tblDescr"><p>Formatting information for tables in a QTextDocument</p></td></tr>
<tr class="even topAlign"><td class="tblName"><p><a href="qtextframe-iterator.html">QTextFrame::iterator</a></p></td><td class="tblDescr"><p>Iterator for reading the contents of a QTextFrame</p></td></tr>
</table>
</div>
<!-- @@@richtext.html -->
<p class="naviNextPrevious footerNavi">
<a class="nextPage" href="richtext-structure.html">Rich Text Document Structure</a>
</p>
<div class="ft">
<span></span>
</div>
</div>
<div class="footer">
<p>
<acronym title="Copyright">©</acronym> 2012 Nokia Corporation and/or its
subsidiaries. Documentation contributions included herein are the copyrights of
their respective owners.</p>
<br />
<p>
The documentation provided herein is licensed under the terms of the
<a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
License version 1.3</a> as published by the Free Software Foundation.</p>
<p>
Documentation sources may be obtained from <a href="http://www.qt-project.org">
www.qt-project.org</a>.</p>
<br />
<p>
Nokia, Qt and their respective logos are trademarks of Nokia Corporation
in Finland and/or other countries worldwide. All other trademarks are property
of their respective owners. <a title="Privacy Policy"
href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
</div>
</body>
</html>
|