MHEG5  15.3.0
source/classes/inc/mh5text.h File Reference

Implement the MHEG5 Text Class 36 Text Class Defines attributes and behaviour of pieces of textual information. Base class: Visible Subclasses: EntryField, HyperText Status: Concrete class. More...

#include "mh5visible.h"

Go to the source code of this file.

Data Structures

struct  MHEG5Text

Defines

#define HJUSTIFICATION_START   (0)
#define HJUSTIFICATION_END   (1)
#define HJUSTIFICATION_CENTRE   (2)
#define HJUSTIFICATION_JUSTIFIED   (3)
#define VJUSTIFICATION_START   (0)
#define VJUSTIFICATION_END   (1)
#define VJUSTIFICATION_CENTRE   (2)
#define VJUSTIFICATION_JUSTIFIED   (3)
#define LINE_ORIENTATION_HORIZONTAL   (MHEG5FALSE)
#define LINE_ORIENTATION_VERTICAL   (MHEG5TRUE)
#define BOM_NONE   0
#define BOM_LITTLE_ENDIAN   1
#define BOM_BIG_ENDIAN   2

Functions

void MHEG5textInit (MHEG5Text *text)
 <Function description>="">
void MHEG5textFree (MHEG5Text *text)
 Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed.
MHEG5TextMHEG5textClone (MHEG5Text *source)
 Copy a text object with original values.
void MHEG5textPrepare (MHEG5Text *text)
 Apply the preparation behaviour of the text class Apply the preparation behaviour of the text class. As this class has no own preparation behaviour this function just invokes the preparation behaviour from the base class.
void MHEG5textActivate (MHEG5Text *text)
 Apply the activation behaviour of the text class. As this class has no own activation behaviour this function just invokes the activation behaviour from the base class.
void MHEG5textDeactivate (MHEG5Text *text)
 Apply the deactivation behaviour of the text class. As this class has no own deactivation behaviour this function just invokes the deactivation behaviour from the base class.
void MHEG5textDestruct (MHEG5Text *text)
 Destruct a text object.
MHEG5ErrorCode MHEG5getTextData (MHEG5Root *target, MHEG5GList *params)
 Set the Variable referenced by `TextDataVar` to the value of the `TextData` attribute. Implementation of the GetTextData (Target, TextDataVar) action of the text class.
MHEG5ErrorCode MHEG5getTextContent (MHEG5Root *target, MHEG5GList *params)
 The effect of this action is to transfer the data of the content attribute of the text to the variable. Implementation of the GetTextContent (Target, TextContentVar) action of the text class. `NOTE`: There is a difference, depending on the type of the TextContentVar and the type of the content which can be either included or referenced. Please refer to the MHEG5 standard.
MHEG5ErrorCode MHEG5setFontAttributes (MHEG5Root *target, MHEG5GList *params)
 The effect of this action is to set the FontAttributes to the given attributes. Implementation of the MHEG5setFontAttributes (Target, NewFontAttributes) action of the text class.
MHEG5ErrorCode MHEG5setTextColour (MHEG5Root *target, MHEG5GList *params)
 The effect of this action is to set the TextColour to the given colour. Implementation of the MHEG5setTextColour (Target, NewTextColour) action of the text class.
MHEG5ErrorCode MHEG5setBackgroundColour (MHEG5Root *target, MHEG5GList *params)
 The effect of this action is to set the BackgroundColour to the given colour. Implementation of the MHEG5setBackgroundColour (Target, NewBackgroundColour) action of the text class.
MHEG5ErrorCode MHEG5setFontRef (MHEG5Root *target, MHEG5GList *params)
 The effect of this action is to change the character font used to preset a text. Implementation of the MHEG5setFontRef (Target, NewFont) action of the text class.
void MHEG5textRedraw (MHEG5Text *text)
void MHEG5textUtf8Content (MHEG5Text *text, unsigned char *data, int len)
 Adapt new content for Text objects. Content is encoded using UTF8 - this is converted to 16 bit unicode.
void MHEG5textUtf16Content (MHEG5Text *text, unsigned char *data, int len)
 Content for Text objects is encoded using UTF16.
void MHEG5textContentUnadapt (MHEG5Text *text, MHEG5Byte **utf8Data, MHEG5Int *utf8Len)
 Undo the adaption of content for Text objects. Adapted content is stored as 16 bit unicode - this is converted back to UTF8.
void MHEG5textContentUnadaptUTF16 (MHEG5Text *text, MHEG5Byte **utf16Data, MHEG5Int *utf16Len)
 Undo the adaption of content for Text objects. Adapted content is stored as 16 bit unicode - this is converted back to its original format.
void MHEG5textClearTextData (MHEG5Text *text)
 Clear text data.

Detailed Description

Implement the MHEG5 Text Class 36 Text Class Defines attributes and behaviour of pieces of textual information. Base class: Visible Subclasses: EntryField, HyperText Status: Concrete class.

Date:
05/02/2002
Author:
R.Freeman

Function Documentation

MHEG5ErrorCode MHEG5getTextContent ( MHEG5Root target,
MHEG5GList params 
)

The effect of this action is to transfer the data of the content attribute of the text to the variable. Implementation of the GetTextContent (Target, TextContentVar) action of the text class. `NOTE`: There is a difference, depending on the type of the TextContentVar and the type of the content which can be either included or referenced. Please refer to the MHEG5 standard.

Parameters:
MHEG5Root*target
MHEG5GList*params
Returns:
MHEG5ErrorCode MHEG5ErrorCode
MHEG5ErrorCode MHEG5getTextData ( MHEG5Root target,
MHEG5GList params 
)

Set the Variable referenced by `TextDataVar` to the value of the `TextData` attribute. Implementation of the GetTextData (Target, TextDataVar) action of the text class.

Parameters:
MHEG5Root*target
MHEG5GList*params
Returns:
MHEG5ErrorCode MHEG5ErrorCode
MHEG5ErrorCode MHEG5setBackgroundColour ( MHEG5Root target,
MHEG5GList params 
)

The effect of this action is to set the BackgroundColour to the given colour. Implementation of the MHEG5setBackgroundColour (Target, NewBackgroundColour) action of the text class.

Parameters:
MHEG5Root*target
MHEG5GList*params
Returns:
MHEG5ErrorCode MHEG5ErrorCode
MHEG5ErrorCode MHEG5setFontAttributes ( MHEG5Root target,
MHEG5GList params 
)

The effect of this action is to set the FontAttributes to the given attributes. Implementation of the MHEG5setFontAttributes (Target, NewFontAttributes) action of the text class.

Parameters:
MHEG5Root*target
MHEG5GList*params
Returns:
MHEG5ErrorCode MHEG5ErrorCode
MHEG5ErrorCode MHEG5setFontRef ( MHEG5Root target,
MHEG5GList params 
)

The effect of this action is to change the character font used to preset a text. Implementation of the MHEG5setFontRef (Target, NewFont) action of the text class.

Parameters:
MHEG5StringsourceGID
MHEG5IntsourceID
MHEG5GList*params
Returns:
MHEG5ErrorCode MHEG5ErrorCode
MHEG5ErrorCode MHEG5setTextColour ( MHEG5Root target,
MHEG5GList params 
)

The effect of this action is to set the TextColour to the given colour. Implementation of the MHEG5setTextColour (Target, NewTextColour) action of the text class.

Parameters:
MHEG5Root*target
MHEG5GList*params
Returns:
MHEG5ErrorCode MHEG5ErrorCode
void MHEG5textActivate ( MHEG5Text text)

Apply the activation behaviour of the text class. As this class has no own activation behaviour this function just invokes the activation behaviour from the base class.

Parameters:
MHEG5Text*text
Returns:
void

Clear text data.

Parameters:
textText object that content is for.
Returns:
void.

Copy a text object with original values.

Returns:
*
void MHEG5textContentUnadapt ( MHEG5Text text,
MHEG5Byte **  utf8Data,
MHEG5Int *  utf8Len 
)

Undo the adaption of content for Text objects. Adapted content is stored as 16 bit unicode - this is converted back to UTF8.

Parameters:
textText object that content is for.
utf8DataUnadapted content (UTF8 encoded).
utf8LenLength of the unadapted content in bytes.
Returns:
void.
void MHEG5textContentUnadaptUTF16 ( MHEG5Text text,
MHEG5Byte **  utf16Data,
MHEG5Int *  utf16Len 
)

Undo the adaption of content for Text objects. Adapted content is stored as 16 bit unicode - this is converted back to its original format.

Parameters:
textText object that content is for.
utf16DataUnadapted content (UTF16 encoded).
utf16LenLength of the unadapted content in bytes.
Returns:
void.
void MHEG5textDeactivate ( MHEG5Text text)

Apply the deactivation behaviour of the text class. As this class has no own deactivation behaviour this function just invokes the deactivation behaviour from the base class.

Parameters:
MHEG5Text*text
Returns:
void
void MHEG5textDestruct ( MHEG5Text text)

Destruct a text object.

Parameters:
MHEG5Text*text
Returns:
void
void MHEG5textFree ( MHEG5Text text)

Free off all memory associated with the specified object, including any exchanged attributes and internal data. The data holding the object itself is not freed.

Parameters:
textPointer to object to free.
Returns:
Void
void MHEG5textInit ( MHEG5Text text)

<Function description>="">

Returns:
<Return value>=""> Initialise a text object with default values.
Parameters:
textPointer to object to initialise.
Returns:
Void

<Function description>="">

Parameters:
textPointer to object to initialise.
Returns:
Void
void MHEG5textPrepare ( MHEG5Text text)

Apply the preparation behaviour of the text class Apply the preparation behaviour of the text class. As this class has no own preparation behaviour this function just invokes the preparation behaviour from the base class.

Parameters:
MHEG5Text*text
Returns:
void
void MHEG5textUtf16Content ( MHEG5Text text,
unsigned char *  data,
int  len 
)

Content for Text objects is encoded using UTF16.

Parameters:
textText object that content is for.
dataNew content (UTF16 encoded).
lenLength of the new content in bytes.
Returns:
void.
void MHEG5textUtf8Content ( MHEG5Text text,
unsigned char *  data,
int  len 
)

Adapt new content for Text objects. Content is encoded using UTF8 - this is converted to 16 bit unicode.

Parameters:
textText object that content is for.
dataNew content (UTF8 encoded).
lenLength of the new content in bytes.
Returns:
void.
 All Data Structures Files Functions Variables Typedefs Defines