Rogue Wave Views Annotated Text Package API Reference Guide |
Rogue Wave Views Documentation Home |
Annotated text gadget class. More...
#include <ilviews/annotext/zone.h>
Public Member Functions | |
IlvATZone (IlvATCursor *start, IlvATCursor *end) | |
Constructor. More... | |
IlvAnnoText * | getAnnoText () const |
Returns the annotated text object associated with the text zone. More... | |
IlvATInteractor * | getInteractor () const |
Returns the interactor of the text zone. More... | |
IlvATZone * | getParent () const |
Returns the text zone immediately containing this zone. More... | |
IlvATPalette * | getTextPalette () const |
Returns the IlvATPalette of the text zone. More... | |
IlAny | getUserData () const |
Returns the user data of the text zone. More... | |
void | setInteractor (IlvATInteractor *inter) |
Sets the interactor of the text zone. More... | |
void | setUserData (IlAny userData) |
Set the user data. More... | |
Annotated text gadget class.
Library: ilvatext
An instance of this class represents a contiguous zone of the text flow. IlvATZone
instances can be nested but always in a hierarchical way, which may be ensured by checking whether the two boundaries of an IlvATZone
belong to the same upper IlvATZone
(or to no IlvATZone
at all). The IlvAnnoText::insertZone()
member function checks this. An IlvATZone
is linked to an IlvATPalette
which carries graphical information such as margins, font, foreground and background colors. It may have a specific IlvATInteractor
or use the one assigned to its IlvATPalette
. A user data field enables the storage of additional information specific to an instance of the IlvATZone
class. This is useful, for example, when writing an IlvATInteractor
assigned to an IlvATPalette
instance. In this case, when an IlvATPalette
instance is applied to any IlvATZone
belonging to this IlvATPalette
, it uses the user data information of the particular instance that triggers it (such as a hypertext interactor using information stored in the user data field of the IlvATZone
to know what new file must be loaded).
IlvATZone::IlvATZone | ( | IlvATCursor * | start, |
IlvATCursor * | end | ||
) |
Constructor.
Initializes a new instance of the IlvATZone
class. The text zone begins just after the start cursor and ends just before the end cursor.
start | Specifies the beginning of the text zone. |
end | Specifies the end of the text zone. |
IlvAnnoText* IlvATZone::getAnnoText | ( | ) | const |
Returns the annotated text object associated with the text zone.
IlvAnnoText
holding the IlvATZone
. IlvATInteractor* IlvATZone::getInteractor | ( | ) | const |
Returns the interactor of the text zone.
IlvATInteractor
associated with the text zone, or, if no IlvATInteractor
has been associated to it, a pointer to the IlvATInteractor
associated with the IlvATPalette
to which the current IlvATZone
belongs; if the current IlvATZone
doesn't belong to any IlvATPalette
, or if its IlvATPalette
doesn't have an IlvATInteractor
attached, the function returns 0
. IlvATZone* IlvATZone::getParent | ( | ) | const |
IlvATPalette* IlvATZone::getTextPalette | ( | ) | const |
Returns the IlvATPalette
of the text zone.
IlvATPalette
associated with the text zone, or 0
if it has not yet been affected to an IlvATPalette
. IlAny IlvATZone::getUserData | ( | ) | const |
Returns the user data of the text zone.
IlAny
) associated with the IlvATZone
. void IlvATZone::setInteractor | ( | IlvATInteractor * | inter | ) |
Sets the interactor of the text zone.
inter | The interactor. |
void IlvATZone::setUserData | ( | IlAny | userData | ) |
Set the user data.
userData | The user data. |
© Copyright 2016, Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave is a registered trademark of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.