Viadeo Twitter Google Bookmarks ! Facebook Digg del.icio.us MySpace Yahoo MyWeb Blinklist Netvouz Reddit Simpy StumbleUpon Bookmarks Windows Live Favorites 
Logo Documentation Qt ·  Page d'accueil  ·  Toutes les classes  ·  Classes principales  ·  Annotées  ·  Classes groupées  ·  Modules  ·  Fonctions  · 

Atom Class

The Atom class is the fundamental unit for representing documents internally. More...

 #include <Atom>

Public Types

enum Type { AbstractLeft, AbstractRight, AnnotatedList, AutoLink, ..., UnknownCommand }

Public Functions

Atom(Type type, const QString & string = "")
Atom(Type type, const QString & p1, const QString & p2)
Atom(Atom * previous, Type type, const QString & string = "")
Atom(Atom * previous, Type type, const QString & p1, const QString & p2)
void appendChar(QChar ch)
void appendString(const QString & string)
void chopString()
int count() const
void dump() const
Atom * next()
const Atom * next() const
const Atom * next(Type t) const
const Atom * next(Type t, const QString & s) const
void setNext(Atom * newNext)
void setString(const QString & string)
const QString & string() const
const QString & string(int i) const
Type type() const
QString typeString() const

Detailed Description

The Atom class is the fundamental unit for representing documents internally.

Atoms have a type and are completed by a string whose meaning depends on the type. For example, the string

italic text looks nicer than bold text

is represented by the following atoms:

(FormattingLeft, ATOM_FORMATTING_ITALIC) (String, "italic") (FormattingRight, ATOM_FORMATTING_ITALIC) (String, " text is more attractive than ") (FormattingLeft, ATOM_FORMATTING_BOLD) (String, "bold") (FormattingRight, ATOM_FORMATTING_BOLD) (String, " text")

\alsoText

Member Type Documentation

enum Atom::Type

ConstantValue
Atom::AbstractLeft0
Atom::AbstractRight1
Atom::AnnotatedList2
Atom::AutoLink3
Atom::BaseName4
Atom::BriefLeft5
Atom::BriefRight6
Atom::C7
Atom::CaptionLeft8
Atom::CaptionRight9
Atom::Code10
Atom::CodeBad11
Atom::CodeNew12
Atom::CodeOld13
Atom::CodeQuoteArgument14
Atom::CodeQuoteCommand15
Atom::DivLeft16
Atom::DivRight17
Atom::EndQmlText18
Atom::FormatElse21
Atom::FormatEndif22
Atom::FormatIf23
Atom::FootnoteLeft19
Atom::FootnoteRight20
Atom::FormattingLeft24
Atom::FormattingRight25
Atom::GeneratedList26
Atom::Image29
Atom::ImageText30
Atom::ImportantNote?
Atom::InlineImage33
Atom::LineBreak38
Atom::Link39
Atom::LinkNode40
Atom::ListLeft41
Atom::ListItemNumber42
Atom::ListTagLeft43
Atom::ListTagRight44
Atom::ListItemLeft45
Atom::ListItemRight46
Atom::ListRight47
Atom::Nop48
Atom::Note?
Atom::ParaLeft51
Atom::ParaRight52
Atom::Qml53
Atom::QmlText54
Atom::QuotationLeft55
Atom::QuotationRight56
Atom::RawString57
Atom::SectionLeft58
Atom::SectionRight59
Atom::SectionHeadingLeft60
Atom::SectionHeadingRight61
Atom::SidebarLeft62
Atom::SidebarRight63
Atom::SinceList64
Atom::String68
Atom::TableLeft69
Atom::TableRight70
Atom::TableHeaderLeft71
Atom::TableHeaderRight72
Atom::TableRowLeft73
Atom::TableRowRight74
Atom::TableItemLeft75
Atom::TableItemRight76
Atom::TableOfContents77
Atom::Target78
Atom::UnhandledFormat79
Atom::UnknownCommand80

Member Function Documentation

Atom::Atom(Type type, const QString & string = "")

Constructs an atom of the specified type with the single parameter string and does not put the new atom in a list.

Atom::Atom(Type type, const QString & p1, const QString & p2)

Constructs an atom of the specified type with the two parameters p1 and p2 and does not put the new atom in a list.

Atom::Atom(Atom * previous, Type type, const QString & string = "")

Constructs an atom of the specified type with the single parameter string and inserts the new atom into the list after the previous atom.

Atom::Atom(Atom * previous, Type type, const QString & p1, const QString & p2)

Constructs an atom of the specified type with the two parameters p1 and p2 and inserts the new atom into the list after the previous atom.

void Atom::appendChar(QChar ch)

Appends ch to the string parameter of this atom.

\alsostring()

void Atom::appendString(const QString & string)

Appends string to the string parameter of this atom.

\alsostring()

void Atom::chopString()

\alsostring()

int Atom::count() const

void Atom::dump() const

Dumps this Atom to stderr in printer friendly form.

Atom * Atom::next()

Return the next atom in the atom list. \also type(), string()

See also setNext().

const Atom * Atom::next() const

Return the next atom in the atom list. \also type(), string()

const Atom * Atom::next(Type t) const

Return the next Atom in the list if it is of Type t. Otherwise return 0.

const Atom * Atom::next(Type t, const QString & s) const

Return the next Atom in the list if it is of Type t and its string part is s. Otherwise return 0.

void Atom::setNext(Atom * newNext)

See also next().

void Atom::setString(const QString & string)

See also string().

const QString & Atom::string() const

Returns the string parameter that together with the type characterizes this atom.

\alsotype(), next()

See also setString().

const QString & Atom::string(int i) const

Type Atom::type() const

Return the type of this atom. \also string(), next()

QString Atom::typeString() const

Return the type of this atom as a string. Return "Invalid" if type() returns an impossible value.

This is only useful for debugging.

\alsotype()

Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia. Qt 5.0-snapshot
Copyright © 2012 Developpez LLC. Tous droits réservés Developpez LLC. Aucune reproduction, même partielle, ne peut être faite de ce site et de l'ensemble de son contenu : textes, documents et images sans l'autorisation expresse de Developpez LLC. Sinon, vous encourez selon la loi jusqu'à 3 ans de prison et jusqu'à 300 000 E de dommages et intérêts. Cette page est déposée à la SACD.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter ou par MP !
 
 
 
 
Partenaires

Hébergement Web