![]() |
Rogue Wave Views Annotated Text Package API Reference Guide |
Rogue Wave Views Documentation Home |
Annotated text gadget class. More...
#include <ilviews/annotext/zone.h>
Classes | |
| class | Data |
| Holds user data for a text zone. More... | |
Public Member Functions | |
| IlvATZone (IlvATCursor *start, IlvATCursor *end) | |
Initializes a new IlvATZone instance. More... | |
| IlvAnnoText * | getAnnoText () const |
| Returns the annotated text object associated with this text zone. More... | |
| Data * | getData () const |
| Returns the zone data of this text zone. More... | |
| IlvATInteractor * | getInteractor () const |
| Returns the interactor for this text zone. More... | |
| IlvATZone * | getParent () const |
| Returns the text zone immediately containing this text zone. More... | |
| IlvATPalette * | getTextPalette () const |
Returns the IlvATPalette of this text zone. More... | |
| IlAny | getUserData () const |
| Returns the user data of the text zone. More... | |
| void | setData (Data *userData) |
| Sets the user data. More... | |
| void | setInteractor (IlvATInteractor *inter) |
| Sets the interactor for this text zone. More... | |
| void | setUserData (IlAny userData) |
| Sets a pointer 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 | ||
| ) |
Initializes a new IlvATZone instance.
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 this text zone.
IlvAnnoText holding the IlvATZone. | Data* IlvATZone::getData | ( | ) | const |
| IlvATInteractor* IlvATZone::getInteractor | ( | ) | const |
Returns the interactor for this 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 this text zone.
IlvATPalette associated with this text zone, or 0 if it has not yet been affected to an IlvATPalette. | IlAny IlvATZone::getUserData | ( | ) | const |
| void IlvATZone::setData | ( | Data * | userData | ) |
| void IlvATZone::setInteractor | ( | IlvATInteractor * | inter | ) |
Sets the interactor for this text zone.
If there was another interator in place, it is not modified or deleted.
| inter | The interactor to install. |
| void IlvATZone::setUserData | ( | IlAny | userData | ) |
Sets a pointer user data.
To retrieve the user data, you must call getUserData().
| userData | The new user data. |
setData() has been called with a non-null value before, this data object is deleted. © Copyright 2018, 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.