libyui
|
#include <YRichText.h>
Protected Attributes | |
ImplPtr< YRichTextPrivate > | priv |
Additional Inherited Members | |
![]() | |
YWidget (YWidget *parent) | |
YWidgetChildrenManager * | childrenManager () const |
void | setChildrenManager (YWidgetChildrenManager *manager) |
void | setBeingDestroyed () |
void | dumpWidget (YWidget *w, int indentationLevel) |
Text formatted with simple HTML-like tags, with "links" generating events.
Constructor.
'plainTextMode' indicates that the text should be treated as plain text, i.e. any HTML-like tags in the text should not be interpreted in any way.
|
virtual |
Destructor.
Derived classes should implement this, method is used to trigger event like user has pressed the link in the RichText
bool YRichText::autoScrollDown | ( | ) | const |
Return 'true' if this RichText widget should automatically scroll down when the text content is changed. This is useful for progress displays and log files.
|
virtual |
|
virtual |
Get the position value of the horizontal scrollbar.
Might not be available in all frontends.
bool YRichText::plainTextMode | ( | ) | const |
Return 'true' if this RichText widget is in "plain text" mode, i.e. does not try to interpret RichText/HTML tags.
|
virtual |
Set this RichText widget's "auto scroll down" mode on or off.
Derived classes may want to reimplement this, but they should call this base class function in the new function.
Set the position value of the horizontal scrollbar. Only values previously obtained using hScrollValue() and some special values are allowed.
The special values are:
"minimum": Moves the scrollbar to the start. "maximum": Moves the scrollbar to the end.
The meaning of start and end can depend on the text direction (LTR or RTL).
Might not be available in all frontends.
Set this RichText widget's "plain text" mode on or off.
Derived classes may want to reimplement this, but they should call this base class function in the new function.
|
virtual |
Make this widget shrinkable, i.e. very small in layouts.
This method is intentionally not virtual because it doesn't have any immediate effect; it is only needed in preferredWidth() / preferredHeight().
Alias for setValue().
Change the text content of the RichText widget.
Derived classes should overwrite this function, but call this base class function in the new function.
Set the position value of the vertical scrollbar. Only values previously obtained using vScrollValue() and some special values are allowed.
The special values are:
"minimum": Moves the scrollbar to the start. "maximum": Moves the scrollbar to the end.
This might not be available in all frontends.
bool YRichText::shrinkable | ( | ) | const |
Returns 'true' if this widget is "shrinkable", i.e. it should be very small by default.
|
inline |
Alias for value().
string YRichText::value | ( | ) | const |
Return the text content of the RichText widget.
|
virtual |
Get the position value of the vertical scrollbar.
Might not be available in all frontends.
Returns a descriptive name of this widget class for logging, debugging etc.
Reimplemented from YWidget.