soui 5.0.0.1
Soui5 Doc
 
Loading...
Searching...
No Matches
STrText Class Reference

Class for handling text with translation support. More...

#include <SWnd.h>

Public Member Functions

 STrText (SWindow *pOwner=NULL)
 Constructor.
 
void SetOwner (SWindow *pOwner)
 Sets the owner window.
 
void SetText (const SStringT &strText, bool bAutoEscape=true)
 Sets the text.
 
SStringT GetText (BOOL bRawText=FALSE) const
 Gets the text.
 
void TranslateText ()
 Translates the text.
 

Static Public Member Functions

static SStringW EscapeString (const SStringW &str)
 Escapes a string.
 

Protected Attributes

SWindowpOwner
 
SStringT strRaw
 
bool bAutoEscape
 
SStringT strTr
 

Detailed Description

Class for handling text with translation support.

Definition at line 230 of file SWnd.h.

Constructor & Destructor Documentation

◆ STrText()

SNSBEGIN STrText::STrText ( SWindow * pOwner = NULL)

Constructor.

Parameters
pOwnerOwner window.

Definition at line 19 of file Swnd.cpp.

Member Function Documentation

◆ EscapeString()

SStringW STrText::EscapeString ( const SStringW & str)
static

Escapes a string.

Parameters
strString to escape.
Returns
Escaped string.

Definition at line 52 of file Swnd.cpp.

◆ GetText()

SStringT STrText::GetText ( BOOL bRawText = FALSE) const

Gets the text.

Parameters
bRawTextFlag to get raw text.
Returns
Text string.

Definition at line 30 of file Swnd.cpp.

◆ SetOwner()

void STrText::SetOwner ( SWindow * pOwner)

Sets the owner window.

Parameters
pOwnerOwner window.

Definition at line 25 of file Swnd.cpp.

◆ SetText()

void STrText::SetText ( const SStringT & strText,
bool bAutoEscape = true )

Sets the text.

Parameters
strTextText to set.
bAutoEscapeFlag to automatically escape the text.

Definition at line 35 of file Swnd.cpp.

◆ TranslateText()

void STrText::TranslateText ( )

Translates the text.

Definition at line 42 of file Swnd.cpp.

Member Data Documentation

◆ bAutoEscape

bool STrText::bAutoEscape
protected

Auto-escape flag

Definition at line 273 of file SWnd.h.

◆ pOwner

SWindow* STrText::pOwner
protected

Owner window

Definition at line 271 of file SWnd.h.

◆ strRaw

SStringT STrText::strRaw
protected

Raw text

Definition at line 272 of file SWnd.h.

◆ strTr

SStringT STrText::strTr
protected

Translated text

Definition at line 274 of file SWnd.h.


The documentation for this class was generated from the following files: